/* ═══════════════════════════════════════════════════════════════════════
   FLECT — DESIGN TOKENS & BASE
   ═══════════════════════════════════════════════════════════════════════

   Type families (self-hosted, /assets/fonts):
     PP Neue Montreal  — Regular (400), Medium (500)  → UI, body, headings
     PP Editorial New  — Regular (400), Italic (400i) → accent / italic display

   Colour tokens are pulled directly from Figma — do not eyeball.
     --ink           #2E1919   primary text + logo
     --paper         #FFFFFF   body background
     Hero radial     beige #F3DFC6 → lime #F4FFC3 → white  (top-anchored)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   FONT FACE
───────────────────────────────────── */
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../assets/fonts/PPNeueMontreal-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../assets/fonts/PPNeueMontreal-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('../assets/fonts/PPEditorialNew-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('../assets/fonts/PPEditorialNew-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ─────────────────────────────────────
   RESET & BASE
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Colour (from Figma) ── */
  --ink:        #2E1919;
  --ink-80:     rgba(46, 25, 25, 0.80);
  --ink-55:     rgba(46, 25, 25, 0.55);
  --ink-40:     rgba(46, 25, 25, 0.40);
  --paper:      #FFFFFF;
  --clear-10:   rgba(255, 255, 255, 0.10);
  --lime:       #ECF7BD;      /* button label + fill (from Figma) */

  /* Hero radial stops (from Figma gradient) */
  --hero-beige: rgba(243, 223, 198, 1);
  --hero-lime:  rgba(244, 255, 195, 1);
  --superellipse-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%20preserveAspectRatio%3D'none'%3E%3Cpath%20fill%3D'black'%20d%3D'M%2012%200%20H%2088%20L%2093.79%200.08%20L%2095.67%200.31%20L%2096.99%200.7%20L%2097.98%201.26%20L%2098.74%202.02%20L%2099.3%203.01%20L%2099.69%204.33%20L%2099.92%206.21%20L%20100%2012%20V%2088%20L%2099.92%2093.79%20L%2099.69%2095.67%20L%2099.3%2096.99%20L%2098.74%2097.98%20L%2097.98%2098.74%20L%2096.99%2099.3%20L%2095.67%2099.69%20L%2093.79%2099.92%20L%2088%20100%20H%2012%20L%206.21%2099.92%20L%204.33%2099.69%20L%203.01%2099.3%20L%202.02%2098.74%20L%201.26%2097.98%20L%200.7%2096.99%20L%200.31%2095.67%20L%200.08%2093.79%20L%200%2088%20V%2012%20L%200.08%206.21%20L%200.31%204.33%20L%200.7%203.01%20L%201.26%202.02%20L%202.02%201.26%20L%203.01%200.7%20L%204.33%200.31%20L%206.21%200.08%20L%2012%200%20Z'%2F%3E%3C%2Fsvg%3E");
  --section-superellipse-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%20preserveAspectRatio%3D'none'%3E%3Cpath%20fill%3D'black'%20d%3D'M%208%200%20H%2092%20L%2096.02%200.04%20L%2097.18%200.15%20L%2097.97%200.33%20L%2098.57%200.6%20L%2099.04%200.96%20L%2099.4%201.43%20L%2099.67%202.03%20L%2099.85%202.82%20L%2099.96%203.98%20L%20100%208%20V%2092%20L%2099.96%2096.02%20L%2099.85%2097.18%20L%2099.67%2097.97%20L%2099.4%2098.57%20L%2099.04%2099.04%20L%2098.57%2099.4%20L%2097.97%2099.67%20L%2097.18%2099.85%20L%2096.02%2099.96%20L%2092%20100%20H%208%20L%203.98%2099.96%20L%202.82%2099.85%20L%202.03%2099.67%20L%201.43%2099.4%20L%200.96%2099.04%20L%200.6%2098.57%20L%200.33%2097.97%20L%200.15%2097.18%20L%200.04%2096.02%20L%200%2092%20V%208%20L%200.04%203.98%20L%200.15%202.82%20L%200.33%202.03%20L%200.6%201.43%20L%200.96%200.96%20L%201.43%200.6%20L%202.03%200.33%20L%202.82%200.15%20L%203.98%200.04%20L%208%200%20Z'%2F%3E%3C%2Fsvg%3E");

  /* ── Type families ── */
  --ff-sans:    'PP Neue Montreal', system-ui, -apple-system, sans-serif;
  --ff-display: 'PP Editorial New', Georgia, serif;

  /* ── Layout ── */
  --content-max: 1064px;     /* inner content cap on desktop */
  --pad-x:       8px;         /* min side gutter (full-bleed containers) */
  --nav-h:       76px;
  --nav-inset:   8px;         /* gap between the floating header and the edges */
  --nav-radius:  12px;
  --vv-top:      0px;          /* visual viewport correction for iOS Chrome */
  --vv-height:   100dvh;
  --stable-vh:   100svh;
  --mobile-cta-h: 44px;

  /* ── Motion ── */
  --ease:       cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe:  cubic-bezier(0.16, 1, 0.22, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  background: transparent;
  scrollbar-width: none;
}

body {
  font-family: var(--ff-sans);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--ink); color: var(--paper); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────
   LAYOUT PRIMITIVES
   Full-bleed section (100vw) with an inner container capped at 1064px.
   Side gutter never drops below --pad-x (8px).
───────────────────────────────────── */
.section {
  width: 100%;
  position: relative;
}
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ─────────────────────────────────────
   TYPOGRAPHY UTILITIES (desktop base; mobile scales below)
───────────────────────────────────── */
.display-h1 {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(38px, 4.05vw, 70px);
  line-height: 1.06;          /* tight, scales with font size */
  letter-spacing: -0.03em;
  color: var(--ink);
}
.display-h1 .accent {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
.display-h2 {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(42px, 3.48vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.display-h2 .accent {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}

.lead {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.8;
}
.lead .accent {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
.nowrap { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   Transparent by default, glass background appears on scroll.
   Logo letters slide away on scroll, leaving the mark.
   ═══════════════════════════════════════════════════════════════════════ */
/* Floating bar: inset from the edges, rounded, transparent → glass on scroll
   (matches Figma — header sits at x8/y8, 12px corners, 16px inner padding). */
.nav {
  position: fixed;
  top: calc(var(--nav-inset) + var(--vv-top));
  left: var(--nav-inset);
  right: var(--nav-inset);
  z-index: 100;
  height: var(--nav-h);
  pointer-events: none;
}
.nav-inner {
  --nav-superellipse-mask: none;
  width: 100%;
  height: 100%;
  border-radius: var(--nav-radius);
  border: 1px solid transparent;
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  align-items: center;
  -webkit-mask-image: var(--nav-superellipse-mask);
  mask-image: var(--nav-superellipse-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease),
              -webkit-backdrop-filter .45s var(--ease), border-color .45s var(--ease);
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-color: rgba(0, 0, 0, 0.06);
}
.nav-content {
  width: 100%;
  height: 100%;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Three equal columns so the menu is truly centred (matches Figma). */
.nav-col { flex: 1 0 0; min-width: 0; display: flex; align-items: center; }
.nav-col--start  { justify-content: flex-start; }
.nav-col--center { justify-content: center; }
.nav-col--end    { justify-content: flex-end; gap: 8px; }

/* ── Logo (mark + letters, mark stays / letters slide) ── */
.nav-logo {
  --logo-h: 28px;
  --logo-full-w: 118px;   /* LogoFull viewBox */
  --logo-mark-w: 31px;    /* Icon viewBox */
  --logo-letters-w: 84px; /* Font viewBox */
  --logo-gap: 3px;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--logo-full-w);
  height: var(--logo-h);
  overflow: hidden;
  isolation: isolate;
}
.nav-logo-mark,
.nav-logo-letters {
  position: absolute;
  top: 0;
  height: 100%;
}
.nav-logo-mark {
  left: 0;
  width: var(--logo-mark-w);
  z-index: 2;
}
.nav-logo-letters {
  left: calc(var(--logo-mark-w) + var(--logo-gap));
  width: var(--logo-letters-w);
  overflow: hidden;
  z-index: 1;
  clip-path: inset(-8px 0 -8px 0);
}
.nav-logo-letters img {
  display: block;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transform-origin: left center;
  opacity: 1;
  filter: blur(0);
  transition:
    transform .86s cubic-bezier(.16, 1, .18, 1),
    opacity .62s var(--ease-out),
    filter .74s var(--ease-out);
  will-change: transform, opacity, filter;
}
.nav-logo img { width: 100%; height: 100%; }
.nav.scrolled .nav-logo-letters img {
  opacity: 0;
  filter: blur(2px);
  transform: translate3d(-112%, 0, 0);
}

/* ── Menu (PP Neue Montreal Medium 18 / -0.36px — from Figma) ── */
.nav-menu {
  gap: 32px;
}
.nav-menu a {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  position: relative;
  transition: opacity .28s var(--ease-out), color .28s var(--ease-out);
}
.nav-menu a::before,
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  transition:
    transform .72s var(--ease-luxe),
    opacity .5s var(--ease-out);
}
.nav-menu a::before {
  display: none;
}
.nav-menu a::after {
  bottom: -4px;
  height: 1px;
  opacity: 0;
  background: currentColor;
}
.nav-menu a:hover::before,
.nav-menu a:hover::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTON — letter-roll (Novu-style)
   On hover each character rolls up and out while a clone rolls in from
   below, staggered left→right. js/buttons.js builds the per-char markup;
   CSS + :hover drive the motion.
   ═══════════════════════════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-label { display: inline-flex; line-height: 1; }
.roll-space { display: inline-block; }

.roll-char {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1;
  /* room for descenders inside the clip without changing layout height */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.roll-char > span {
  display: block;
  transition: transform .55s var(--ease-luxe);
  transition-delay: var(--cd, 0ms);
}
.roll-char .r-bot {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
}
.btn:hover .roll-char .r-top { transform: translateY(-110%); }
.btn:hover .roll-char .r-bot { transform: translateY(0); }

/* ── CTA variant: ink pill, lime label (from Figma) ── */
.btn-cta {
  height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--lime);
  pointer-events: auto;
}
.btn-cta .btn-label {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.btn-cta .btn-ico { width: 24px; height: 24px; flex: 0 0 auto; }

.mobile-bottom-cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  .roll-char > span { transition: none; }
  .btn:hover .roll-char .r-top { transform: none; }
  .btn:hover .roll-char .r-bot { transform: translateY(110%); }
}

/* ── Burger (shown ≤900px, animates to an X) ── */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--ink);
}
.nav-burger-box {
  position: relative;
  width: 24px;
  height: 14px;
}
.nav-burger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform .4s var(--ease-luxe),
    opacity .3s var(--ease);
  will-change: transform, opacity;
}
.nav-burger-line:nth-child(1) { top: 0; }
.nav-burger-line:nth-child(2) { bottom: 0; }
body.menu-open .nav-burger-line:nth-child(1) { transform: translate3d(0, 6px, 0) rotate(45deg); }
body.menu-open .nav-burger-line:nth-child(2) { transform: translate3d(0, -6px, 0) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE MENU (full-screen overlay; links stagger in)
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  top: var(--vv-top);
  left: 0;
  right: 0;
  z-index: 180;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: var(--vv-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--pad-x) max(10vh, calc(40px + env(safe-area-inset-bottom)));
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
  transition: opacity .22s var(--ease-out), visibility 0s linear .22s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s var(--ease-out), visibility 0s linear 0s;
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.menu-open .nav {
  z-index: 220;
}
body.menu-open .nav-inner {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none;
}
body.menu-open .nav-col--center {
  opacity: 0;
  pointer-events: none;
}
body.menu-open .nav-burger {
  pointer-events: auto;
}
body.menu-open .mobile-bottom-cta {
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-left: 8px;
}
.m-link {
  font-size: clamp(40px, 13vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity .6s var(--ease-luxe), transform .6s var(--ease-luxe),
              filter .6s var(--ease-luxe);
  transition-delay: 0ms;
}
body.menu-open .m-link {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition-delay: var(--md, 0ms);
}
/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  /* Hero radial glow over white, anchored just above top-centre — from Figma.
     Wider/softer falloff so the top corners read as a gentle wash, not a band. */
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 72%,
      var(--paper) 94%,
      var(--paper) 100%
    ),
    radial-gradient(
      135% 105% at 50% -8%,
      var(--hero-beige) 0%,
      var(--hero-lime) 28%,
      var(--paper) 60%
    ),
    var(--paper);
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding-top: 222px;
  padding-bottom: 136px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-inline: 16px;
}
/* Single H1, explicit <br> line breaks; keep each line intact on desktop. */
.hero-h1 { white-space: nowrap; }

.hero-lead {
  width: min(100%, 610px);
  text-align: center;
  padding-inline: 16px;
  --reveal-base: 260ms;
}

/* ── Hero images ── */
.hero-images {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.hero-images figure {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  -webkit-mask-image: var(--superellipse-mask);
  mask-image: var(--superellipse-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRACTICE
   ═══════════════════════════════════════════════════════════════════════ */
.practice {
  min-height: 100svh;
  position: relative;
  border: 1px solid var(--clear-10);
  border-radius: clamp(34px, 3.7vw, 64px);
  overflow: hidden;
  background-color: #eef3ef;
  -webkit-mask-image: var(--section-superellipse-mask);
  mask-image: var(--section-superellipse-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.practice-sky {
  position: absolute;
  inset: -8%;
  z-index: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
  contain: paint;
  backface-visibility: hidden;
}
.practice-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}
.practice-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: 136px 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.practice-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  text-align: center;
}
.practice-title {
  width: min(100%, 880px);
  text-align: center;
  --reveal-base: 40ms;
}
.practice-lead {
  width: min(100%, 700px);
  text-align: center;
  padding-inline: 0;
  --reveal-base: 150ms;
}
.practice-photo {
  width: min(528px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  -webkit-mask-image: var(--superellipse-mask);
  mask-image: var(--superellipse-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.practice-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.practice-scroll-stage {
  display: block;
}
.practice-ticker {
  width: 100%;
  overflow: visible;
  display: flex;
  justify-content: center;
  padding-inline: 0;
}
.practice-ticker-text {
  width: min(100%, 840px);
  padding-inline: 16px;
  text-align: center;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(42px, 3.48vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  --reveal-base: 80ms;
  --line-delay: 170ms;
  --word-delay: 42ms;
}
.practice-ticker-text .accent {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
/* ═══════════════════════════════════════════════════════════════════════
   WORKS
   ═══════════════════════════════════════════════════════════════════════ */
.works {
  min-height: auto;
  background: var(--paper);
  border: 1px solid var(--clear-10);
  border-radius: 0;
  overflow: visible;
}
.works-inner {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: 136px 0;
}
.works-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}
.works-title {
  width: 100%;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(42px, 3.48vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  --reveal-base: 40ms;
}
.works-subtitle {
  width: min(100%, 902px);
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.8;
  --reveal-base: 150ms;
}
.stanford-logo {
  display: inline-block;
  width: 99px;
  height: 21px;
  max-width: none;
  margin-inline: 6px;
  vertical-align: -0.04em;
  transition:
    opacity 1.1s var(--ease-luxe),
    filter 1.1s var(--ease-luxe),
    transform 1.1s var(--ease-luxe);
  transition-delay: 210ms;
}
.works-subtitle:not(.visible) .stanford-logo {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 14px, 0);
}
.works-subtitle.visible .stanford-logo {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.method-scroll {
  --method-progress: 0;
  --method-dot-progress: 0;
  position: relative;
  height: max(4600px, calc(var(--vv-height) * 5.35));
  margin-top: 112px;
}
.method-sticky {
  --method-sticky-h: min(766px, calc(var(--vv-height) - 112px));
  position: sticky;
  top: max(calc(var(--vv-top) + 56px), calc(var(--vv-top) + 50vh - 383px));
  height: var(--method-sticky-h);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.method-copy-stack {
  position: relative;
  height: 292px;
  padding-right: 32px;
}
.method-step {
  position: absolute;
  top: 50%;
  left: 0;
  right: 32px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 30px;
  min-height: 292px;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, -50%, 0);
  transition: filter .42s var(--ease-out);
  will-change: opacity, transform;
  pointer-events: none;
}
.method-step:first-child:not([data-method-state]) {
  opacity: 1;
  filter: none;
  transform: translate3d(0, -50%, 0);
}
.method-step.is-near {
  filter: blur(4px);
}
.method-step.is-active {
  filter: none;
}
.method-step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  min-height: 92px;
}
.method-step-number {
  min-width: 54px;
  padding-top: 11px;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #88623f;
  text-align: right;
}
.method-step-title {
  width: 100%;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
}
.method-step-title .accent {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
.method-title-line {
  display: inline;
}
.method-step-text {
  width: min(100%, 520px);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: rgba(46, 25, 25, 0.6);
}
.method-progress {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}
.method-progress-dot {
  position: absolute;
  left: 50%;
  top: calc(8.5px + var(--method-dot-progress) * (100% - 17px));
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #88623f;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 0 1px rgba(136, 98, 63, 0.08);
  will-change: top;
}
.method-visual-stack {
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: visible;
  border-radius: 24px;
}
.method-device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(364px, 72%);
  margin: 0;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: 50% 50%;
}
.method-screen-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.method-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.965);
  transform-origin: 50% 50%;
  transition: filter .46s var(--ease-out);
  will-change: opacity, transform;
}
.method-screen:first-child:not([data-method-state]) {
  opacity: 1;
  filter: none;
  transform: scale(1);
}
.method-screen.is-near {
  filter: blur(5px);
}
.method-screen.is-active {
  filter: none;
}
.method-device-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.benefits {
  padding: 136px var(--pad-x);
  overflow: hidden;
  background: var(--paper);
}
.benefits-title {
  width: 100%;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(42px, 3.48vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
  --reveal-base: 40ms;
}
.benefits-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, var(--content-max));
  margin: 60px auto 0;
}
.benefit-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  min-width: 0;
  aspect-ratio: 344 / 374;
  align-items: flex-end;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(46, 25, 25, 0.10);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: none;
  transform-origin: 50% 50%;
}
.benefit-card:nth-child(4) { grid-column: 2 / span 2; }
.benefit-card:nth-child(5) { grid-column: 4 / span 2; }
.benefit-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 47%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 32%, #fff 100%);
  pointer-events: none;
}
.benefit-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 0;
  transition: transform .9s var(--ease-luxe);
}
.benefit-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
}
.benefit-card h4 {
  font-size: 26px;
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
.benefit-card p {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: rgba(46, 25, 25, 0.6);
}

@media (min-width: 768px) {
  .benefit-card-art {
    transform: scale(0.94);
  }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .benefit-card:hover .benefit-card-art {
    transform: scale(1);
  }
}

.comparison {
  margin-top: 0;
  background: var(--paper);
  border: 1px solid var(--clear-10);
  border-radius: 0;
  overflow: hidden;
}
.comparison-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  width: 100%;
  min-height: clamp(720px, 53.36vw, 922px);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}
.comparison-side {
  position: relative;
  min-width: 0;
  min-height: inherit;
  overflow: visible;
}
.comparison-side--bad {
  z-index: 2;
  background:
    radial-gradient(ellipse 86% 54% at 100% 50%,
      rgba(166, 166, 166, 0.34) 0%,
      rgba(186, 186, 186, 0.30) 27%,
      rgba(216, 216, 216, 0.24) 50%,
      rgba(226, 226, 226, 0.18) 69%,
      rgba(255, 255, 255, 0.62) 100%),
    var(--paper);
}
.comparison-side--bad::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 864px);
  background:
    radial-gradient(ellipse 72% 42% at 100% 50%,
      rgba(166, 166, 166, 0.18) 0%,
      rgba(216, 216, 216, 0.18) 52%,
      rgba(255, 255, 255, 0.42) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.comparison-side--good {
  z-index: 1;
  background:
    radial-gradient(ellipse 92% 46% at 0% 50%,
      #f5efb7 0%,
      #ebeca1 24%,
      #dff2af 44%,
      #edf6dc 64%,
      #ffffff 100%),
    var(--paper);
}
.comparison-divider {
  position: relative;
  z-index: 6;
  width: 1px;
  min-height: inherit;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.10) 50%,
    rgba(0, 0, 0, 0) 100%);
}
.comparison-title {
  position: absolute;
  z-index: 7;
  top: 12.9%;
  font-size: clamp(30px, 2.43vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.comparison-title--bad {
  right: 28.7%;
  opacity: 0.7;
}
.comparison-title--good {
  left: 50%;
  transform: translate3d(-50%, 0, 0);
}
.comparison-title--good span {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
.comparison-bubble {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 23px 24px;
  border-radius: 60px;
  font-size: clamp(16px, 1.16vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  will-change: transform, opacity, filter;
}
.comparison-bubble--bad {
  top: var(--top);
  right: var(--right);
  opacity: 0.6;
  border: 1px dashed rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(ellipse 80% 110% at 50% 0%,
      rgba(255, 255, 255, 0.66) 0%,
      rgba(255, 255, 255, 0.40) 64%,
      rgba(255, 255, 255, 0.34) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.comparison-good-list {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.comparison-bubble--good {
  top: var(--top);
  left: 50%;
  gap: 12px;
  max-width: min(620px, calc(100% - 64px));
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 140% 130% at 50% 0%,
      #ffffdb 0%,
      #ecf7bd 100%) padding-box,
    linear-gradient(108deg,
      rgba(255, 255, 255, 0.62) 0%,
      rgba(255, 255, 255, 0.04) 50%,
      rgba(255, 255, 255, 0.62) 100%) border-box;
  transform: translate3d(calc(-50% - 46vw), 0, 0);
  opacity: 0;
  filter: blur(10px);
  transition:
    transform 1.55s var(--ease-luxe),
    opacity 1.1s var(--ease-out),
    filter 1.25s var(--ease-out);
  transition-delay: calc(.16s + var(--d, 0s));
}
.comparison-bubble--good img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.comparison-bubble--good-wide {
  min-height: 100px;
}
.comparison-good-cover {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: min(30%, 260px);
  background:
    linear-gradient(90deg,
      rgba(236, 247, 189, 0.78) 0%,
      rgba(236, 247, 189, 0.58) 36%,
      rgba(236, 247, 189, 0) 100%),
    radial-gradient(ellipse 120% 58% at 0% 50%,
      rgba(239, 231, 158, 0.70) 0%,
      rgba(215, 237, 153, 0.42) 58%,
      rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}
.comparison-stage.visible .comparison-bubble--good {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  filter: blur(0);
}

/* ═══════════════════════════════════════════════════════════════════════
   HAPPINESS LIFESTYLE INDEX
   ═══════════════════════════════════════════════════════════════════════ */
.hli {
  position: relative;
  padding: 136px var(--pad-x);
  overflow: hidden;
  border: 1px solid var(--clear-10);
  border-radius: clamp(34px, 3.7vw, 46px);
  background: var(--paper);
  isolation: isolate;
}
.hli-bg {
  position: absolute;
  left: 50%;
  bottom: -296px;
  z-index: 0;
  width: min(1064px, calc(100% - 16px));
  aspect-ratio: 1;
  opacity: 0.86;
  filter: blur(130px);
  transform: translate3d(-50%, 0, 0) scale(1.04);
  pointer-events: none;
}
.hli-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hli-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: min(100%, var(--content-max));
  margin-inline: auto;
}
.hli-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: 100%;
  text-align: center;
}
.hli-title {
  width: 100%;
  max-width: 1064px;
  font-size: clamp(42px, 3.48vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  --reveal-base: 40ms;
}
.hli-understandable-break {
  display: none;
}
.hli-brown {
  color: #88623f;
}
.hli .accent {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
.hli-text {
  width: min(100%, 882px);
  max-width: 882px;
  font-size: clamp(21px, 1.51vw, 26px);
  line-height: 1.34;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: rgba(46, 25, 25, 0.8);
  --line-delay: 150ms;
  --word-delay: 26ms;
}
.hli-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  align-items: stretch;
}
.hli-diagram {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hli-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 110% 140% at 50% 0%,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.74) 56%,
      rgba(255, 255, 255, 0.40) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.hli-tags-card {
  display: flex;
  min-height: 270px;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px 40px;
}
.hli-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 60px;
  background:
    radial-gradient(ellipse 115% 150% at 50% 0%,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.70) 58%,
      rgba(255, 255, 255, 0.22) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 12px, 0) scale(0.985);
  transition:
    opacity .9s var(--ease-luxe),
    filter .9s var(--ease-luxe),
    transform .9s var(--ease-luxe);
  transition-delay: calc(.18s + var(--i) * 70ms);
}
.hli-tag img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.hli-tag.visible,
.hli-tags-card.visible .hli-tag {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}
.hli-flow-dots {
  display: flex;
  width: 4px;
  height: 34px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.hli-flow-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #88623f;
  opacity: 0.38;
  transform: scale(0.82);
  animation: hliDotPulse 1.38s var(--ease-luxe) infinite;
}
.hli-flow-dots span:nth-child(2) { animation-delay: .16s; }
.hli-flow-dots span:nth-child(3) { animation-delay: .32s; }
.hli-flow-dots span:nth-child(4) { animation-delay: .48s; }
.hli-index-card {
  position: relative;
  height: 344px;
  overflow: hidden;
  padding: 40px 24px 0;
  text-align: center;
}
.hli-index-card h3 {
  font-size: clamp(34px, 2.43vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
}
.hli-score {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.hli-bars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 21px;
}
.hli-bars span {
  width: 4px;
  height: 21px;
  border-radius: 2px;
  background: rgba(46, 25, 25, 0.15);
  transform: scaleY(0.24);
  transform-origin: 50% 100%;
}
.hli-bars span.is-active {
  background: #88623f;
}
.hli-index-card.visible .hli-bars span {
  animation: hliBarGrow .7s var(--ease-luxe) forwards;
  animation-delay: calc(.42s + var(--i) * 34ms);
}
.hli-score p {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hli-score-current {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
}
.hli-score-current,
.hli-score-total {
  letter-spacing: calc(-0.085em - 2px);
}
.hli-score-slash,
.hli-score-total {
  color: rgba(46, 25, 25, 0.3);
}
.hli-mockup {
  position: absolute;
  left: 50%;
  bottom: -2px;
  z-index: 1;
  width: min(358px, 78%);
  max-width: none;
  height: auto;
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(-50%, 18px, 0) scale(0.985);
  transition:
    opacity 1s var(--ease-out),
    filter 1s var(--ease-out),
    transform 1s var(--ease-luxe);
  transition-delay: .56s;
}
.hli-index-card.visible .hli-mockup {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(-50%, 0, 0) scale(1);
}
.hli-person {
  position: relative;
  min-width: 0;
  min-height: 640px;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  -webkit-mask-image: var(--superellipse-mask);
  mask-image: var(--superellipse-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hli-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

@keyframes hliDotPulse {
  0%, 100% { opacity: 0.32; transform: scale(0.82); }
  45% { opacity: 1; transform: scale(1.1); }
}
@keyframes hliBarGrow {
  from { transform: scaleY(0.24); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .access-gallery-card {
    transition: none;
  }
  .hli-tag,
  .hli-mockup,
  .hli-tag.visible,
  .hli-tags-card.visible .hli-tag,
  .hli-index-card.visible .hli-mockup {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  .hli-flow-dots span,
  .hli-index-card.visible .hli-bars span {
    animation: none;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCESS PLACEHOLDER + FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer-flow {
  position: relative;
  width: 100%;
  margin-top: -1px;
  border-top-left-radius: clamp(34px, 3.7vw, 46px);
  border-top-right-radius: clamp(34px, 3.7vw, 46px);
  background: #38430a;
  overflow: hidden;
  isolation: isolate;
}
.access-placeholder {
  position: relative;
  z-index: 1;
  width: min(100%, 1920px);
  margin: -1px auto 0;
  padding: 136px 0;
  border: 0;
  border-radius: clamp(34px, 3.7vw, 46px);
  background: #38430a;
  color: var(--lime);
  overflow: hidden;
  transform: translateZ(0);
}
.access-inner {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.access-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  text-align: center;
}
.access-title {
  width: 100%;
  font-family: var(--ff-sans);
  font-size: clamp(42px, 3.48vw, 60px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--lime);
  --reveal-base: 40ms;
}
.access-title .accent,
.access-lead .accent {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
}
.access-lead {
  width: min(100%, 530px);
  font-size: clamp(21px, 1.51vw, 26px);
  line-height: 1.34;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--lime);
  opacity: 0.8;
  --reveal-base: 150ms;
}
.access-gallery {
  --access-gallery-h: 528px;
  position: relative;
  align-self: center;
  width: min(100vw, 1920px);
  height: var(--access-gallery-h);
  overflow: hidden;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  cursor: pointer;
  isolation: isolate;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
}
.access-gallery:focus {
  outline: none;
}
.access-gallery:focus-visible {
  outline: 1px solid rgba(236, 247, 189, 0.64);
  outline-offset: 8px;
}
.access-gallery::before,
.access-gallery::after {
  content: "";
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 300;
  width: clamp(88px, 7.4vw, 164px);
  pointer-events: none;
}
.access-gallery::before {
  left: 0;
  background: linear-gradient(90deg, #38430a 0%, rgba(56, 67, 10, 0.92) 28%, rgba(56, 67, 10, 0) 100%);
}
.access-gallery::after {
  right: 0;
  background: linear-gradient(270deg, #38430a 0%, rgba(56, 67, 10, 0.92) 28%, rgba(56, 67, 10, 0) 100%);
}
@media (min-width: 1920px) {
  .access-gallery::before,
  .access-gallery::after {
    display: block;
  }
}
.access-gallery-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: var(--access-card-size, 528px);
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(236, 247, 189, 0.08);
  -webkit-mask-image: var(--superellipse-mask);
  mask-image: var(--superellipse-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  will-change: transform, opacity;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.access-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: var(--superellipse-mask);
  mask-image: var(--superellipse-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.access-gallery-card:nth-child(n + 4) {
  opacity: 0;
}
.access-info {
  display: flex;
  width: min(100%, 656px);
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.access-info-title {
  font-size: clamp(34px, 2.43vw, 42px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--lime);
  --reveal-base: 40ms;
}
.access-info-text {
  width: 100%;
  font-size: clamp(21px, 1.51vw, 26px);
  line-height: 1.34;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--lime);
  opacity: 0.8;
  --reveal-base: 120ms;
}
.access-form {
  position: relative;
  --access-line-base: rgba(236, 247, 189, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 528px;
  max-width: 100%;
  min-height: 88px;
  padding: 22px 0;
  border-bottom: 0;
  overflow: clip;
}
.access-form::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--access-line-base);
  transform-origin: left center;
}
.access-form.is-border-running::after {
  animation: accessBorderRun .86s var(--ease-luxe) 1;
}
.access-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--lime);
  font-family: var(--ff-sans);
  font-size: 20px;
  line-height: 1.34;
  letter-spacing: 0;
  font-weight: 500;
}
.access-input::placeholder {
  color: var(--lime);
  opacity: 0.8;
}
.access-submit {
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  border-radius: 50px;
  background: var(--lime);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  transition:
    transform .55s var(--ease-luxe),
    background .32s var(--ease-out);
}
.access-submit svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.access-submit:hover {
  transform: translate3d(0, -1px, 0);
}
.access-submit:active {
  transform: translate3d(0, 1px, 0);
}
.access-form.is-submitted .access-submit {
  background: #ffffff;
}
@keyframes accessBorderRun {
  0% {
    transform: translateX(0) scaleX(1);
  }
  42% {
    transform: translateX(100%) scaleX(1);
  }
  43% {
    transform: translateX(0) scaleX(0);
  }
  100% {
    transform: translateX(0) scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .access-form.is-border-running::after {
    animation: none;
  }
}
.site-footer {
  position: relative;
  --footer-pad-top: 136px;
  min-height: clamp(520px, 43vw, 744px);
  padding: 136px var(--pad-x) 0;
  overflow: hidden;
  border-top-left-radius: clamp(34px, 3.7vw, 46px);
  border-top-right-radius: clamp(34px, 3.7vw, 46px);
  background: var(--lime);
}
.footer-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-bottom: clamp(150px, 14.2vw, 242px);
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 72px var(--footer-pad-top);
  width: 100%;
}
.footer-link-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-heading {
  font-family: var(--ff-display);
  font-size: 26px;
  font-style: italic;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: #38430a;
}
.footer-link {
  position: relative;
  width: max-content;
  max-width: 100%;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color .28s var(--ease-out), opacity .28s var(--ease-out);
}
.footer-link::before,
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  transition:
    transform .72s var(--ease-luxe),
    opacity .5s var(--ease-out);
}
.footer-link::before {
  display: none;
}
.footer-link::after {
  bottom: -5px;
  height: 1px;
  opacity: 0;
  background: currentColor;
}
.footer-link:hover::before,
.footer-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
}
.footer-copyright {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer-wordmark-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: clamp(86px, 14.14vw, 242px);
  overflow: hidden;
  pointer-events: none;
}
.footer-wordmark {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  max-width: none;
  height: auto;
  transform: translate3d(-50%, 0, 0);
}

/* Lazy-loaded media fades in once decoded (see js/lazyload.js) */
.lazy-img {
  opacity: 0;
  transition: opacity .7s var(--ease-out);
}
.lazy-img.loaded { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS (typography blur cascade — Mirai-style)
   JS splits .word-fade text into .w spans and assigns --delay per line.
   ═══════════════════════════════════════════════════════════════════════ */
.word-fade .w {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 1.1s var(--ease-luxe),
    filter 1.1s var(--ease-luxe),
    transform 1.1s var(--ease-luxe);
  transition-delay: 0ms;
  will-change: opacity, filter, transform;
}
.word-fade.visible .w {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
  transition-delay: calc(var(--reveal-base, 0ms) + var(--delay, 0ms));
}
.word-fade.revealed .w {
  filter: none;
  will-change: auto;
}

/* Generic block reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .method-step,
  .method-step.is-near,
  .method-step.is-active,
  .method-screen,
  .method-screen.is-near,
  .method-screen.is-active,
  .word-fade .w,
  .word-fade.visible .w,
  .reveal-up,
  .reveal-up.visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   Desktop ≥1080 · Tablet 768–1079 · Mobile <768
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1079px) {
  .hero .container { padding-top: 168px; padding-bottom: 96px; gap: 48px; }
  .hero-h1 { white-space: normal; }   /* allow the lines to wrap if needed */

  .practice-inner { width: min(100%, 860px); padding: 112px 24px; }
  .practice-photo { width: min(528px, 72vw); }
  .practice-ticker-text { width: min(100%, 700px); }

  .works-inner { width: min(100%, 860px); padding: 112px 24px; }
  .method-scroll { margin-top: 88px; }
  .method-sticky {
    --method-sticky-h: min(720px, calc(var(--vv-height) - 112px));
    top: max(calc(var(--vv-top) + 56px), calc(var(--vv-top) + 50vh - 360px));
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  }
  .method-step-title { font-size: 38px; }
  .method-step-text { font-size: 23px; }
  .method-device { width: min(320px, 76%); }

  .benefits { padding: 112px 24px; }
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 704px);
    margin-inline: auto;
  }
  .benefit-card,
  .benefit-card:nth-child(4),
  .benefit-card:nth-child(5) {
    grid-column: auto;
  }

  .comparison-stage {
    min-height: 720px;
  }
  .comparison-title {
    font-size: 32px;
  }
  .comparison-bubble {
    min-height: 62px;
    padding: 18px 20px;
    font-size: 16px;
  }
  .comparison-bubble--good img {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .hli {
    padding: 112px 24px;
  }
  .hli-inner {
    width: min(100%, 860px);
    gap: 72px;
  }
  .hli-copy {
    gap: 64px;
  }
  .hli-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hli-tags-card {
    min-height: 250px;
    padding: 28px 24px;
  }
  .hli-tag {
    min-height: 52px;
    padding: 13px 14px;
    gap: 10px;
    font-size: 17px;
  }
  .hli-tag img {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .hli-index-card {
    height: clamp(320px, 37.5vw, 344px);
    padding-top: 34px;
  }
  .hli-person {
    min-height: 604px;
  }

  .access-placeholder {
    padding: 112px 0;
  }
  .access-inner {
    width: min(100%, 860px);
    gap: 72px;
  }
  .access-copy {
    gap: 64px;
  }

  .site-footer {
    padding-top: 112px;
  }
  .footer-content {
    width: min(100%, 860px);
  }
  .footer-links {
    gap: 40px;
  }
  .footer-link {
    font-size: 18px;
  }
}

/* Collapse the inline nav into the burger early */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-col--center { display: none; }   /* let the logo column claim the space */
  .nav-col--start { flex: 1 1 auto; }
  .nav-col--end { flex: 0 0 auto; }
  .nav-burger { display: inline-flex; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --pad-x: 8px; --nav-h: 64px; }

  .nav-logo {
    --logo-h: 20.4px;
    --logo-full-w: 85.9px;
    --logo-mark-w: 23px;
    --logo-letters-w: 61.2px;
    --logo-gap: 1.7px;
  }

  .nav-col--end > .btn-cta { display: none; }

  .mobile-bottom-cta {
    display: block;
    position: fixed;
    left: 50%;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 120;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
    visibility: visible;
    transition:
      opacity .58s var(--ease-luxe),
      filter .72s var(--ease-luxe),
      transform .82s var(--ease-luxe);
    filter: blur(0);
    will-change: opacity, filter, transform;
  }
  body.mobile-cta-docked .mobile-bottom-cta {
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    pointer-events: none;
    transform: translate3d(-50%, 0, 0) scale(0.985);
  }
  html.keyboard-open .mobile-bottom-cta {
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    pointer-events: none;
  }
  .mobile-bottom-cta .btn-cta {
    height: var(--mobile-cta-h);
    padding: 0 16px;
    box-shadow: none;
  }
  .btn-cta .btn-label { display: inline-flex; }
  .btn-cta .btn-ico { width: 20px; height: 20px; }

  .display-h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.06; }
  .lead { font-size: 19px; }

  .hero {
    margin-top: 0;
  }
  .hero .container { padding-top: 152px; padding-bottom: 96px; gap: 48px; }
  .hero-lead { max-width: 100%; --reveal-base: 180ms; }

  /* Mobile shows a single image — the portrait only */
  .hero-figure--app { display: none; }
  .hero-images figure { aspect-ratio: 1 / 1; border-radius: 12px; }

  .practice {
    min-height: auto;
    border-radius: 30px;
  }
  .practice-sky { inset: -10%; }
  .practice-inner {
    width: 100%;
    padding: 96px 8px;
    gap: 64px;
  }
  .practice-copy { gap: 52px; }
  .practice-title {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
  }
  .practice-lead {
    width: 100%;
    max-width: 700px;
    padding-inline: 16px;
    font-size: 19px;
  }
  .practice-photo {
    width: 100%;
    max-width: 528px;
    border-radius: 12px;
  }
  .practice-ticker {
    transform: none;
    will-change: auto;
    justify-content: center;
    padding-inline: 0;
    overflow: visible;
  }
  .practice-scroll-stage {
    min-height: auto;
    display: block;
  }
  .practice-ticker-text {
    width: 100%;
    padding-inline: 16px;
    white-space: normal;
    text-align: center;
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
    will-change: auto;
  }

  .works {
    min-height: auto;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .works-inner {
    width: 100%;
    padding: 96px 8px 0;
  }
  .works-header { gap: 28px; }
  .works-title {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
  }
  .works-subtitle {
    width: 100%;
    font-size: 19px;
  }
  .stanford-logo {
    width: 72px;
    height: 15px;
    margin-inline: 4px;
    vertical-align: -0.03em;
  }
  .method-scroll {
    height: max(2180px, calc(var(--stable-vh) * 3.28));
    margin-top: 72px;
  }
  .method-sticky {
    top: calc(var(--vv-top) + 98px);
    height: calc(var(--stable-vh) - 146px);
    min-height: 590px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 8px 40px;
  }
  .method-copy-stack {
    width: 100%;
    height: 212px;
    padding: 0 16px;
    flex: 0 0 auto;
  }
  .method-step {
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    gap: 14px;
    min-height: 212px;
    text-align: center;
  }
  .method-step:first-child {
    transform: translate3d(0, 0, 0);
  }
  .method-step-head {
    display: flex;
    min-height: 94px;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }
  .method-step-number {
    min-width: 0;
    padding-top: 0;
    font-size: 15px;
    text-align: center;
  }
  .method-step-title {
    font-size: clamp(32px, 8.4vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  .method-title-line {
    display: block;
  }
  .method-step-text {
    width: min(100%, 700px);
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -0.02em;
  }
  .method-progress {
    display: none;
  }
  .method-visual-stack {
    width: 100%;
    height: min(430px, calc(var(--stable-vh) - 320px));
    min-height: 300px;
    flex: 0 0 auto;
  }
  .method-device {
    width: min(208px, 54vw);
  }

  .benefits {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    padding: 80px 0 96px;
    overflow: hidden;
    isolation: isolate;
  }
  .benefits-title {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
  }
  .benefits-grid {
    display: block;
    height: min(344px, 88.3vw);
    margin-top: 44px;
    perspective: 1200px;
    transform-style: preserve-3d;
    touch-action: pan-y;
    outline: none;
    cursor: grab;
  }
  .benefits-grid.is-dragging {
    cursor: grabbing;
  }
  .benefit-card,
  .benefit-card:nth-child(4),
  .benefit-card:nth-child(5) {
    position: absolute;
    top: 0;
    left: 50%;
    grid-column: auto;
    width: min(316px, 81vw);
    min-width: 0;
    height: auto;
    padding: 20px;
    border-radius: 28px;
    backface-visibility: hidden;
    transition: opacity .42s var(--ease-out);
    will-change: auto;
  }
  .benefits-grid.is-dragging .benefit-card {
    will-change: transform, opacity;
  }
  .benefit-card::after {
    height: 50%;
  }
  .benefit-card-copy {
    min-height: 96px;
    gap: 10px;
  }
  .benefit-card h4 {
    font-size: 23px;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }
  .benefit-card p {
    font-size: 17px;
    line-height: 1.24;
  }

  .comparison {
    border-radius: 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
  }
  .comparison-stage {
    --comparison-list-top: clamp(144px, 37vw, 168px);
    --comparison-row-gap: clamp(78px, 20vw, 88px);
    position: relative;
    display: block;
    min-height: calc(var(--comparison-list-top) + var(--comparison-row-gap) + var(--comparison-row-gap) + var(--comparison-row-gap) + var(--comparison-row-gap) + 168px);
    height: auto;
    padding: 0 8px;
    gap: 0;
    overflow: hidden;
    border-radius: 30px;
    background: var(--paper);
    contain: layout;
  }
  .comparison-stage.reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .comparison-side {
    position: absolute;
    inset: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: inherit;
  }
  .comparison-side--bad,
  .comparison-side--good {
    min-height: 0;
    padding: 0;
  }
  .comparison-side--bad {
    z-index: 1;
    background:
      radial-gradient(ellipse 84% 54% at 50% 56%,
        rgba(166, 166, 166, 0.32) 0%,
        rgba(210, 210, 210, 0.24) 48%,
        rgba(255, 255, 255, 0.70) 100%),
      var(--paper);
  }
  .comparison-side--bad::after {
    inset: 0;
    width: 100%;
    background:
      radial-gradient(ellipse 76% 52% at 50% 56%,
        rgba(166, 166, 166, 0.12) 0%,
        rgba(255, 255, 255, 0.36) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .comparison-side--good {
    z-index: 3;
    opacity: 0;
    background:
      radial-gradient(ellipse 88% 62% at 50% 52%,
        #f5efb7 0%,
        #ebeca1 24%,
        #dff2af 44%,
        #edf6dc 64%,
        #ffffff 100%),
      var(--paper);
    transition: opacity .62s var(--ease-out);
    will-change: opacity;
  }
  .comparison-stage.comparison-good-ready .comparison-side--good {
    opacity: 1;
  }
  .comparison-side--good .comparison-title {
    opacity: 0;
    filter: blur(4px);
    transform: none;
    transition:
      opacity .62s var(--ease-out),
      filter .68s var(--ease-luxe);
    transition-delay: .08s;
  }
  .comparison-divider {
    display: none;
  }
  .comparison-title {
    position: absolute;
    top: clamp(68px, 18vw, 84px);
    left: 0;
    right: auto;
    width: 100%;
    margin-bottom: 0;
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
    text-align: center;
  }
  .comparison-title--bad {
    opacity: 0.7;
    right: auto;
  }
  .comparison-title--good {
    left: 0;
    transform: none;
  }
  .comparison-bubble {
    min-height: 0;
    padding: 10px 11px;
    border-radius: 24px;
    font-size: clamp(15px, 4.1vw, 17px);
    line-height: 1.16;
    white-space: normal;
    text-align: left;
  }
  .comparison-bubble--bad,
  .comparison-bubble--good,
  .comparison-bubble--good-wide {
    top: var(--mobile-y);
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100% - 16px);
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 34px;
    justify-content: flex-start;
    transform: translate3d(-50%, 0, 0);
  }
  .comparison-bubble--good {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(-50%, 0, 0);
    transition:
      opacity .62s var(--ease-out),
      filter .68s var(--ease-luxe);
    transition-delay: calc(.12s + var(--d, 0s) * .45);
  }
  .comparison-side--bad .comparison-bubble:nth-of-type(1),
  .comparison-good-list .comparison-bubble:nth-child(1) {
    --mobile-y: var(--comparison-list-top);
  }
  .comparison-side--bad .comparison-bubble:nth-of-type(2),
  .comparison-good-list .comparison-bubble:nth-child(2) {
    --mobile-y: calc(var(--comparison-list-top) + var(--comparison-row-gap));
  }
  .comparison-side--bad .comparison-bubble:nth-of-type(3),
  .comparison-good-list .comparison-bubble:nth-child(3) {
    --mobile-y: calc(var(--comparison-list-top) + var(--comparison-row-gap) + var(--comparison-row-gap));
  }
  .comparison-side--bad .comparison-bubble:nth-of-type(4),
  .comparison-good-list .comparison-bubble:nth-child(4) {
    --mobile-y: calc(var(--comparison-list-top) + var(--comparison-row-gap) + var(--comparison-row-gap) + var(--comparison-row-gap));
  }
  .comparison-side--bad .comparison-bubble:nth-of-type(5),
  .comparison-good-list .comparison-bubble:nth-child(5) {
    --mobile-y: calc(var(--comparison-list-top) + var(--comparison-row-gap) + var(--comparison-row-gap) + var(--comparison-row-gap) + var(--comparison-row-gap));
  }
  .comparison-good-list {
    position: absolute;
    inset: 0;
    display: block;
  }
  .comparison-stage.visible .comparison-bubble--good {
    transform: translate3d(-50%, 0, 0);
  }
  .comparison-stage.comparison-good-ready .comparison-title--good {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
  .comparison-stage.comparison-good-ready .comparison-bubble--good {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(-50%, 0, 0);
  }
  .comparison-good-cover {
    display: none;
  }
  .comparison-bubble--good img {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .hli {
    padding: 96px 8px;
    border-radius: 30px;
  }
  .hli-bg {
    top: calc(57% + 200px);
    bottom: auto;
    width: 180%;
    max-width: none;
    opacity: 0.86;
    filter: blur(88px);
    transform: translate3d(-50%, -50%, 0) scale(1.03);
  }
  .hli-inner {
    width: 100%;
    gap: 64px;
  }
  .hli-copy {
    gap: 52px;
  }
  .hli-title {
    padding-inline: 16px;
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
  }
  .hli-understandable-break {
    display: block;
  }
  .hli-text {
    width: min(100%, 882px);
    max-width: 882px;
    padding-inline: 16px;
    font-size: 19px;
    line-height: 1.32;
    letter-spacing: -0.02em;
  }
  .hli-showcase {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hli-card,
  .hli-person {
    border-radius: 30px;
  }
  .hli-tags-card {
    min-height: auto;
    padding: 24px 14px;
    gap: 8px;
  }
  .hli-tag {
    min-height: 48px;
    padding: 12px 14px;
    gap: 8px;
    font-size: 17px;
  }
  .hli-tag img {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .hli-flow-dots {
    height: 32px;
  }
  .hli-index-card {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    padding: 32px 18px 0;
  }
  .hli-index-card h3 {
    font-size: clamp(32px, 8.6vw, 40px);
  }
  .hli-score {
    margin-top: 18px;
    gap: 10px;
  }
  .hli-bars {
    gap: 5px;
  }
  .hli-score p {
    font-size: 23px;
  }
  .hli-mockup {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 16px;
    margin-bottom: -2px;
    width: min(358px, 84%);
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  .hli-index-card.visible .hli-mockup {
    transform: translate3d(0, 0, 0) scale(1);
  }
  .hli-person {
    display: none;
  }

  .footer-flow {
    margin-top: 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    overflow: visible;
  }
  .access-placeholder {
    width: 100%;
    padding: 96px 0 calc(128px + env(safe-area-inset-bottom));
    border-radius: 30px;
    background: #38430a;
    overflow: visible;
    transform: none;
  }
  .access-inner {
    width: 100%;
    gap: 64px;
  }
  .access-copy {
    gap: 52px;
  }
  .access-title {
    padding-inline: 16px;
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }
  .access-lead {
    width: 100%;
    padding-inline: 16px;
    font-size: 19px;
    line-height: 1.32;
  }
  .access-gallery {
    --access-mobile-card: min(calc(100vw - 16px), 390px);
    display: grid;
    place-items: center;
    width: 100%;
    height: var(--access-mobile-card) !important;
    padding-bottom: 0;
    overflow: hidden;
    perspective: none;
    cursor: pointer;
  }
  .access-gallery::before,
  .access-gallery::after {
    display: none;
  }
  .access-gallery-card,
  .access-gallery-card:nth-child(n + 4) {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--access-mobile-card) !important;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 30px;
    opacity: 0 !important;
    filter: blur(16px) !important;
    transform: translate3d(-50%, 0, 0) scale(0.985) !important;
    clip-path: inset(0 round 30px);
    pointer-events: none;
    transition:
      opacity .7s var(--ease-luxe),
      filter .7s var(--ease-luxe),
      transform .7s var(--ease-luxe);
    z-index: 1;
  }
  .access-gallery-card.is-active,
  .access-gallery-card:nth-child(n + 4).is-active {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translate3d(-50%, 0, 0) scale(1) !important;
    z-index: 2;
  }
  .access-info {
    width: 100%;
    gap: 32px;
    padding-inline: 16px;
  }
  .access-info-title {
    font-size: clamp(32px, 8.6vw, 40px);
    line-height: 1;
  }
  .access-info-text {
    font-size: 19px;
    line-height: 1.32;
  }
  .access-form {
    width: 100%;
    min-height: 76px;
    padding: 16px 0;
  }
  .access-input {
    font-size: 19px;
  }
  .access-submit {
    height: 44px;
    padding-inline: 16px;
    font-size: 20px;
  }
  .site-footer {
    --footer-pad-top: 80px;
    min-height: 520px;
    padding: 80px 8px 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }
  .footer-content {
    gap: 48px;
    padding-bottom: clamp(96px, 26vw, 132px);
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--footer-pad-top) 16px;
  }
  .footer-link-group {
    gap: 12px;
  }
  .footer-heading {
    font-size: 23px;
    line-height: 1.22;
  }
  .footer-link {
    font-size: 17px;
    line-height: 1.22;
    white-space: normal;
  }
  .footer-copyright {
    font-size: 14px;
  }
  .footer-wordmark-wrap {
    height: clamp(54px, 14.14vw, 86px);
  }

  /* Mobile reveals the whole text block to avoid per-word line jumps in Safari. */
  .word-fade {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 8px, 0);
    transition:
      opacity .82s var(--ease-out),
      filter .92s var(--ease-out),
      transform .92s var(--ease-out);
    transition-delay: var(--reveal-base, 0ms);
    transform-origin: 50% 65%;
    backface-visibility: hidden;
    will-change: opacity, filter, transform;
  }
  .word-fade.visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
  .word-fade.revealed {
    filter: none;
    will-change: auto;
  }
  .hero-lead.word-fade.visible { opacity: 0.8; }
  .word-fade .w {
    display: inline;
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    transition-delay: 0ms !important;
    will-change: auto;
  }
}
