/* UPAB ------------------------------------------------------------------- */
:root {
  --ground: #f3f4f8;      /* cool porcelain studio */
  --white: #ffffff;
  --navy: #001357;        /* the wordmark */
  --slate: #4a5378;
  --blue: #1f63ff;        /* second plate */
  --violet: #6a1fe6;      /* third plate */
  --steel: #c3c8d3;       /* base plate */
  --line: rgba(0, 19, 87, 0.12);

  --display: 'Funnel Display', 'Segoe UI', system-ui, sans-serif;
  --text: 'Funnel Sans', 'Segoe UI', system-ui, sans-serif;

  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 200; left: 1rem; top: -5rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--navy); color: #fff; }
.skip:focus { top: 1rem; }

/* type */
.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 5rem);
  line-height: 1; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display); font-weight: 450;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.75rem);
  line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance;
}
p, li, dd { text-wrap: pretty; }
.lede { font-size: 1.15em; line-height: 1.5; color: var(--slate); text-wrap: pretty; }
.lede strong { color: var(--navy); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.5rem; border-radius: 0.9rem;
  font-weight: 550; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--navy); color: #fff; }
.btn--ink:hover { background: var(--blue); }
.btn--line { border-color: rgba(0, 19, 87, 0.25); background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--line:hover { border-color: var(--navy); background: #fff; }
.btn--sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.94rem; border-radius: 0.75rem; }
.link { text-decoration: underline; text-decoration-color: rgba(31, 99, 255, 0.5); text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: color 0.25s, text-decoration-color 0.25s; }
.link:hover { color: var(--blue); text-decoration-color: var(--blue); }

/* 3D stage --------------------------------------------------------------- */
.stage { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 1; transition: opacity 0.7s var(--ease); }
.stage.is-off { opacity: 0; }
.stage canvas { width: 100%; height: 100%; }
.no-gl .stage { display: none; }
/* without WebGL the hero shows the logo mark instead of the live stack */
.no-gl .hero::after { content: ''; position: absolute; right: var(--pad); top: 50%; width: min(34vw, 30rem); aspect-ratio: 0.9; transform: translateY(-50%); background: url(../assets/brand/mark-560.png) center / contain no-repeat; }
@media (max-width: 60rem) { .no-gl .hero::after { top: 6rem; right: 50%; width: 46vw; transform: translateX(50%); } }
main, .foot { position: relative; z-index: 1; }
.bubble {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none;
  max-width: 15rem; padding: 0.7rem 0.95rem; border-radius: 1rem 1rem 1rem 0.3rem;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px -12px rgba(0, 19, 87, 0.3), 0 0 0 1px var(--line);
  font-size: 0.95rem; font-weight: 500; line-height: 1.35;
  opacity: 0; transition: opacity 0.35s;
}
.bubble.is-on { opacity: 1; }
body.over-robot { cursor: pointer; }

/* Header ----------------------------------------------------------------- */
.bar {
  position: fixed; z-index: 50; top: 0.75rem; left: var(--pad); right: var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem; border-radius: 1.1rem;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.6s var(--ease);
}
.bar.is-stuck { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0, 19, 87, 0.35); }
.bar.is-hidden { transform: translateY(calc(-100% - 3rem)); }
.bar__logo { margin-right: auto; }
.bar__logo img { height: 2.1rem; width: auto; }
.bar__nav { display: flex; gap: 0.25rem; }
.bar__nav a { padding: 0.55rem 0.85rem; border-radius: 0.65rem; text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--slate); transition: color 0.25s, background-color 0.25s; }
.bar__nav a:hover, .bar__nav a.is-here { color: var(--navy); background: rgba(0, 19, 87, 0.06); }
.bar__menu { display: none; width: 2.75rem; height: 2.6rem; border: 0; background: none; cursor: pointer; place-items: center; }
.bar__menu i { position: relative; width: 1.3rem; height: 0.6rem; }
.bar__menu i::before, .bar__menu i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.bar__menu i::before { top: 0; }
.bar__menu i::after { top: calc(100% - 1.5px); }
.bar.is-open .bar__menu i::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.bar.is-open .bar__menu i::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 7rem var(--pad) clamp(3rem, 9vh, 6rem);
}
.hero__copy { max-width: min(52rem, 54vw); }
.hero__title {
  font-family: var(--display); font-weight: 380;
  font-size: clamp(2.9rem, 0.8rem + 5vw, 7rem);
  line-height: 0.95; letter-spacing: -0.045em;
  text-wrap: balance; margin-left: -0.05em;
}
.hero__proof { margin-top: 1.75rem; font-size: 0.95rem; color: var(--slate); }
.hero__proof b { color: var(--navy); font-weight: 600; }
.hero__lede strong { display: block; margin-bottom: 0.35rem; color: var(--navy); font-weight: 600; }
.hero__lede strong span { display: block; }
.hero__lede { max-width: 35rem; margin-top: clamp(1.25rem, 3vh, 2rem); font-size: 1.2em; line-height: 1.5; color: var(--slate); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.5rem, 3.5vh, 2.25rem); }
.hero__hint {
  position: absolute; z-index: 2; right: var(--pad); bottom: clamp(3rem, 9vh, 6rem);
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -14px rgba(0, 19, 87, 0.35);
  font-size: 0.92rem; font-weight: 500; color: var(--navy);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
/* it has done its job once you start scrolling */
.hero__hint.is-gone { opacity: 0 !important; transform: translateY(0.75rem); pointer-events: none; }
.hero__hint-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(31, 99, 255, 0.5); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 99, 255, 0.45); } 80%, 100% { box-shadow: 0 0 0 0.9rem rgba(31, 99, 255, 0); } }

/* Layers ----------------------------------------------------------------- */
.layers__pin { position: relative; height: 100svh; padding: 0 var(--pad); display: grid; align-items: center; }
.layers__panels { position: relative; width: min(34rem, 40vw); height: 28rem; }
.panel { position: absolute; inset: 0 0 auto 0; }
.panel__n { font-size: 0.95rem; font-weight: 500; color: var(--blue); margin-bottom: 1rem; }
.panel .lede { margin-top: 1.1rem; }
.panel--intro .lede { margin-top: 1.5rem; }
.ticks { margin-top: 1.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 0.7rem 0 0.7rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0.1rem; top: 1.15rem; width: 0.6rem; height: 0.6rem; border-radius: 0.18rem; transform: rotate(45deg) scaleY(0.75); background: linear-gradient(135deg, var(--blue), var(--violet)); }
.layers__dots { position: absolute; left: var(--pad); bottom: clamp(2rem, 6vh, 3.5rem); display: flex; gap: 0.5rem; }
.layers__dots li { width: 2.25rem; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.layers__dots li::after { content: ''; position: absolute; inset: 0; background: var(--navy); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Sheets that slide over the 3D stage ------------------------------------ */
.gap, .proof, .people { background: var(--ground); position: relative; }
.gap { border-radius: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem) 0 0; box-shadow: 0 -30px 60px -40px rgba(0, 19, 87, 0.25); }

/* Gap -------------------------------------------------------------------- */
.gap__pin {
  height: 100svh; padding: clamp(6rem, 13vh, 8rem) var(--pad) clamp(2rem, 5vh, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: 1fr auto; column-gap: clamp(2rem, 5vw, 6rem);
}
.gap__copy { align-self: center; }
.gap__copy .h2 { max-width: 16ch; font-size: clamp(2.2rem, 1.1rem + 2.9vw, 4.4rem); }
.gap__count { display: flex; align-items: flex-end; gap: 1rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); }
.gap__count > span:first-child { font-family: var(--display); font-weight: 300; font-size: clamp(4rem, 2rem + 6vw, 8.5rem); line-height: 0.8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; min-width: 2.1ch; }
.gap__unit { color: var(--slate); line-height: 1.3; padding-bottom: 0.3rem; }
.gap__unit b { color: var(--navy); font-weight: 600; }
.gap__steps { margin-top: clamp(1.25rem, 3vh, 2rem); display: grid; gap: 0.15rem; max-width: 30rem; }
.gap__steps li { padding: 0.55rem 0 0.55rem 1rem; border-left: 2px solid var(--line); color: var(--slate); opacity: 0.45; transition: opacity 0.5s, border-color 0.5s; }
.gap__steps li.is-on { opacity: 1; border-color: var(--blue); }
.gap__steps b { color: var(--navy); font-weight: 600; }
.gap__board { align-self: center; justify-self: center; width: 100%; max-width: 40rem; aspect-ratio: 1.15; display: grid; place-items: center; perspective: 2400px; }
.iso { width: 72%; display: grid; grid-template-columns: repeat(8, 1fr); gap: 3.2%; transform: rotateX(58deg) rotateZ(-45deg); transform-style: preserve-3d; }
.t { position: relative; aspect-ratio: 1; transform-style: preserve-3d; }
.t i, .t b { position: absolute; inset: 0; border-radius: 24%; }
.t i { border: 1.5px solid #b9bfcd; background: rgba(255, 255, 255, 0.7); }
.t b { background: linear-gradient(135deg, #8fc0ff, var(--c, var(--blue)) 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, -6px 6px 14px -4px color-mix(in srgb, var(--c, var(--blue)) 55%, transparent); opacity: 0; }
.gap__name { grid-column: 1 / -1; font-family: var(--display); font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.6rem); letter-spacing: -0.015em; }

/* Method ----------------------------------------------------------------- */
.method__pin {
  height: 100svh; padding: clamp(6rem, 13vh, 8rem) var(--pad) clamp(2rem, 5vh, 3rem);
  display: grid; grid-template-rows: auto 1fr auto;
}
.method__head .lede { margin-top: 1rem; max-width: 26rem; }
.method__stages { position: relative; align-self: center; width: min(28rem, 40vw); height: 15rem; }
.stage-t { position: absolute; inset: 0 0 auto 0; }
.stage-t__n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.8rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); font-family: var(--display); font-weight: 500; margin-bottom: 1rem; }
.stage-t .h3 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.5rem); font-weight: 350; letter-spacing: -0.045em; line-height: 0.95; }
.stage-t p:not([class]) { margin-top: 1rem; font-size: 1.15em; color: var(--slate); max-width: 24rem; }
.stage-t__out { margin-top: 0.4rem; font-weight: 600; }
.stage-t--plus .stage-t__n { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; border: 0; }
.method__rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.method__rail li { padding-top: 0.85rem; font-size: 0.95rem; font-weight: 500; color: var(--slate); }
.method__rail li.is-on { color: var(--navy); }
.method__fill { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--steel), var(--violet), var(--blue)); transform-origin: left; transform: scaleX(0); }

/* Proof ------------------------------------------------------------------ */
.proof { padding: clamp(6rem, 16vh, 11rem) var(--pad) clamp(4rem, 10vh, 7rem); border-radius: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem) 0 0; box-shadow: 0 -30px 60px -40px rgba(0, 19, 87, 0.25); }
.proof__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 7rem); align-items: end; }
.proof__head .h2 { max-width: 11ch; }
.proof__head .lede { max-width: 30rem; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); }
.figures > div { padding: 1.5rem 1.5rem 0 0; }
.figures > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.figures dt { font-family: var(--display); font-weight: 350; font-size: clamp(2.5rem, 1.5rem + 3vw, 4.75rem); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.figures dd { margin-top: 0.6rem; color: var(--slate); max-width: 15rem; text-wrap: balance; }
.cases { margin-top: clamp(4rem, 12vh, 8rem); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: start; padding: clamp(2rem, 5vh, 3rem) 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case__big {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(5rem, 2rem + 11vw, 14rem); line-height: 0.8; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--navy) 30%, var(--blue) 75%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}
.case__big small { font-size: 0.35em; letter-spacing: -0.02em; margin-left: 0.08em; }
.case__body { padding-top: 0.6rem; max-width: 34rem; }
.case__body .h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 0.6em; }
.case__sub { margin-top: 0.5rem; font-weight: 600; color: var(--blue); }
.case__body p:not(.case__sub) { margin-top: 1rem; color: var(--slate); font-size: 1.08em; }
.tag { font-family: var(--text); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; padding: 0.3rem 0.65rem; border-radius: 0.55rem; background: rgba(106, 31, 230, 0.1); color: var(--violet); }

/* People ----------------------------------------------------------------- */
.people { padding: clamp(4rem, 10vh, 7rem) var(--pad) clamp(5rem, 12vh, 9rem); }
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 7rem); }
.why .h2 { grid-column: 1 / -1; max-width: 20ch; margin-bottom: clamp(1rem, 3vh, 2rem); }
.why .lede { max-width: 34rem; }
.why__list { display: grid; border-top: 1px solid var(--line); }
.why__list li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--slate); }
.why__list b { color: var(--navy); font-weight: 600; }
.founder { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; margin-top: clamp(5rem, 14vh, 9rem); }
.founder__photo { border-radius: clamp(1.25rem, 2.5vw, 2rem); overflow: hidden; background: #dfe3ec; }
.founder__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.founder__copy { max-width: 34rem; padding-bottom: 0.5rem; }
.founder__copy > p { margin-top: 1.25rem; font-size: 1.15em; color: var(--slate); }
.offices { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--slate); }
.offices li { max-width: 16rem; }
.offices b { display: block; font-family: var(--display); font-weight: 450; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.02em; }

/* Contact ---------------------------------------------------------------- */
.contact { min-height: 100svh; display: grid; align-items: center; padding: 8rem var(--pad) 6rem; }
.contact__copy { max-width: min(62rem, 54vw); }
.contact__title { font-family: var(--display); font-weight: 380; font-size: clamp(2.5rem, 0.9rem + 4.4vw, 6rem); line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: clamp(2rem, 5vh, 3rem); }
.who__q { font-weight: 600; margin-right: 0.35rem; }
.chip { min-height: 2.6rem; padding: 0 1rem; border-radius: 0.75rem; border: 1px solid rgba(0, 19, 87, 0.18); background: rgba(255, 255, 255, 0.55); cursor: pointer; font-weight: 500; font-size: 0.95rem; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.who__a { margin-top: 1.25rem; min-height: 4.7em; max-width: 34rem; font-size: 1.12em; color: var(--slate); text-wrap: pretty; }
.who__a b { color: var(--navy); font-weight: 600; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2rem; }

/* Footer ----------------------------------------------------------------- */
.foot { background: var(--navy); color: #fff; padding: clamp(3rem, 8vh, 5rem) var(--pad) 2rem; border-radius: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem) 0 0; }
.foot__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem clamp(2rem, 5vw, 5rem); flex-wrap: wrap; }
.foot__logo { position: relative; height: clamp(4.5rem, 3rem + 4vw, 7.5rem); width: auto; filter: drop-shadow(0 0 2.5rem rgba(70, 120, 255, 0.35)); }
.foot__motto { font-family: var(--display); font-weight: 350; font-size: clamp(2rem, 0.9rem + 3.3vw, 4.75rem); line-height: 1; letter-spacing: -0.04em; text-align: right; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 7vh, 4.5rem); padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.7); }
.foot li { padding: 0.2rem 0; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.foot__legal { margin-top: 3rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); }

/* Initial states for the intro (only when JS runs) ------------------------ */
.js [data-fade] { opacity: 0; }
.js .hero__title { visibility: hidden; }
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* Tablet and phone -------------------------------------------------------- */
@media (max-width: 60rem) {
  .bar { gap: 0.5rem; top: 0.5rem; left: 0.75rem; right: 0.75rem; }
  .bar__menu { display: grid; }
  .bar__nav {
    position: fixed; inset: 0; z-index: -1; padding: 6rem var(--pad) 3rem;
    flex-direction: column; justify-content: center; gap: 0;
    background: var(--ground); border-radius: 0;
    opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  .bar__nav a { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3.5rem); font-weight: 400; letter-spacing: -0.035em; color: var(--navy); padding: 0.6rem 0; border-radius: 0; border-bottom: 1px solid var(--line); transform: translateY(1rem); transition: transform 0.6s var(--ease), color 0.25s; }
  .bar__nav a:hover, .bar__nav a.is-here { background: none; }
  .bar.is-open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bar.is-open .bar__nav { opacity: 1; visibility: visible; }
  .bar.is-open .bar__nav a { transform: none; }

  .hero { align-items: start; padding-top: max(19rem, 44svh); padding-bottom: 3rem; }
  .hero__lede strong span { display: inline; }
  .hero__copy { max-width: none; }
  .hero__hint { display: none; }
  .layers__pin { align-items: end; padding-bottom: 4.5rem; }
  .layers__panels { width: 100%; height: 19rem; }
  .panel .ticks { display: none; }
  .gap__pin { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: center; gap: 0.5rem; padding-top: 5.5rem; }
  .gap__copy { align-self: start; }
  .gap__board { max-width: 22rem; aspect-ratio: 1.4; }
  .gap__steps li:not(.is-on) { display: none; }
  .gap__name { font-size: 1rem; }
  .method__pin { grid-template-rows: auto 1fr auto; }
  .method__head .lede { display: none; }
  .method__stages { width: 100%; align-self: end; height: 12rem; margin-bottom: 1.5rem; }
  .method__rail li { font-size: 0.75rem; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures > div:nth-child(n + 3) { margin-top: 1.5rem; border-top: 1px solid var(--line); }
  .case, .why, .founder, .proof__head { grid-template-columns: 1fr; }
  .why .h2 { margin-bottom: 0; }
  .foot__top { flex-direction: column; align-items: flex-start; }
  .foot__motto { text-align: left; }
  .foot__motto span { display: block; }
  .founder__photo { max-width: 22rem; }
  .contact { align-items: end; padding-top: 40svh; padding-bottom: 4rem; }
  .contact__title { font-size: min(2.6rem, 8.6vw); }
  .method__head .h2 { font-size: 2rem; }
  .contact__copy { max-width: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 30rem) {
  .bar__cta { display: none; }
  .hero__cta .btn, .contact__cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-fade] { opacity: 1; }
  .js .hero__title { visibility: visible; }
  .hero__hint-dot { animation: none; }
}

/* Phones and tablets: no live blur over the moving 3D canvas (it is re-blurred every frame) */
/* (class set in index.html for phones and tablets only) */
@media all {
  .lite .btn--line, .lite .bubble, .lite .bar.is-stuck, .lite .hero__hint, .lite .about__photo figcaption {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .lite .btn--line { background: rgba(255, 255, 255, 0.9); }
  .lite .bubble { background: #fff; }
  .lite .bar.is-stuck { background: rgba(255, 255, 255, 0.96); }
  .lite .hero__hint { background: #fff; }
  .lite .t b { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset; }
}

/* Pinned chapters: the section is tall, its content sticks. Native sticky is jitter-free on touch. */
#layers { height: 560svh; }
#gap { height: 330svh; }
#method { height: 660svh; }
.layers__pin, .gap__pin, .method__pin { position: sticky; top: 0; }
/* phones: skip paint-heavy decoration on very tall sheets */
.lite .gap, .lite .proof { box-shadow: none; }
.lite .hero__hint-dot { animation: none; }

/* phones: the 3D canvas sits inside the chapter it belongs to and scrolls natively with it */
.stage.stage--inflow { position: absolute; z-index: -1; }
.contact { position: relative; }

/* touch: text blocks in pinned chapters switch with a fixed-time transition, not scroll-linked fades */
.swap > * { opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s; }
.swap > .is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease 0.16s, transform 0.55s var(--ease) 0.16s, visibility 0s 0.16s; }
