/* Orbit version: the hero is just the name, the face and the case studies.
   The section is pinned for a while; orbit.js moves the cards from scroll position:
   scattered around the name → gathered into a deck by the face (the name squishes away) →
   spread into a row that drifts sideways on its own and stops when you point at a card. */
.orbit { position: relative; height: 340vh; height: 340svh; }
/* Hidden for the first frames, until orbit.js and page.js have placed the cards and the face. */
.booting .orbit__pin, .booting .dock { visibility: hidden; }
.orbit__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.orbit__nav { position: absolute; left: 0; right: 0; top: 0; z-index: 6; padding: 24px 30px; }
.orbit__name {
  /* Above the cards: on short screens the top cards tuck behind the name. */
  position: absolute; left: 0; right: 0; top: var(--name-y, 56%); translate: 0 calc(-50% + var(--ry, 0px) + var(--ndy, 0px)); z-index: 6;
  font-size: var(--nfs, min(15.5vw, 28vh));
  /* Squished toward its centre as the cards gather (orbit.js sets these). */
  scale: var(--sx, 1) var(--sy, 1); transform-origin: 50% 50%;
  opacity: var(--nop, 1);
}
.orbit-page .avatar--hero { --w: min(600px, 48vw, 68vh); }
/* The face sits just under the page layer while it's in the hero, so cards pass in front. */
.orbit-page .dock.in-hero { z-index: 0; }

.orbit__cards { position: absolute; inset: 0; pointer-events: none; }   /* no z-index: each card layers against the name itself */
.ocard {
  --w: clamp(260px, 22vw, 330px);
  position: absolute; left: 0; top: 0; width: var(--w); pointer-events: auto;
  transform-origin: 50% 50%; will-change: transform;
}
/* The card itself sits in an inner layer (orbit.js wraps it), so the hover tilt isn't wiped
   by GSAP, which owns the outer layer's transform (and clears rotate/scale on it). */
.ocard__in {
  display: flex; flex-direction: column; padding: 12px 12px 14px;
  background: #fff; border: 2px solid var(--ink); border-radius: 24px; color: var(--ink);
  box-shadow: 0 24px 44px -28px rgba(20, 10, 40, .45), 0 10px 20px -14px rgba(0, 0, 0, .18);
  transform-origin: 50% 60%;
  rotate: calc(var(--hv, 0) * var(--hdir, -3deg) + var(--lean, 0deg)); scale: calc((1 + var(--hv, 0) * .08) * var(--is, 1) * var(--os, 1));
}
.ocard__link { flex: 1; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ocard__top { order: -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 4px 10px; }
.ocard__name { font: 800 16px var(--font-body); }
.ocard__kind { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font-body); color: var(--ink-2); white-space: nowrap; }
.ocard__media { overflow: hidden; aspect-ratio: 16 / 10; border: 2px solid var(--ink); border-radius: 14px; background: #f2f2f4; }
.ocard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ocard__line { margin: 10px 4px 0; font: 500 15px/1.3 var(--font-body); letter-spacing: -.01em; }
.ocard__links { display: flex; gap: 16px; margin: 10px 4px 0; font: 800 13px var(--font-body); }
.ocard__links a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ocard__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 16px; }

/* Thought layout (arcade6, data-layout="thought"): the name sits higher, and the project names
   circle over the face's head as little chips, between the name and the face. Pointing at one
   brings its card up in the middle of the screen (orbit.js). */
.orbit__chips { position: absolute; inset: 0; pointer-events: none; }
.ochip {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; cursor: pointer;
  padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: 800 15px var(--font-body); box-shadow: 2px 3px 0 var(--ink); transition: background .2s, color .2s;
}
.orbit__ringlabel {
  position: absolute; left: 50%; top: var(--ring-y, 70%); z-index: 8; translate: -50% -50%; pointer-events: none;
  font: 700 13px ui-monospace, Menlo, monospace; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2);
}
.ochip.is-morph { display: flex; justify-content: flex-start; align-items: flex-start; padding: 15px 17px; font-size: 16px; box-shadow: 0 34px 60px -34px rgba(20, 10, 40, .45), 0 12px 24px -14px rgba(0, 0, 0, .18); }
.ochip.is-on, .ochip:focus-visible { background: var(--ink); color: #fff; outline: none; }
.ochip.is-nudge { animation: chip-nudge .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes chip-nudge { 0%, 100% { rotate: 0deg; } 35% { rotate: -1.2deg; } 70% { rotate: .6deg; } }
@media (max-width: 700px) { .ochip { padding: 6px 11px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .ochip.is-nudge { animation: none; } }
.orbit__pin[data-layout="thought"] { --name-y: 33%; }
/* Desktop: a bigger name (up to 19% of the width) filling the room under the menu. It sits on
   the ring of names, which sits on the face, so its size is capped by what's left above them:
   the screen height - the visible face (.57 of its width, down to just under the eyes) - the ring and gaps -
   the menu and "product designer" with clear air under the menu (~205px all told). */
@media (min-width: 701px) {
  .orbit__pin[data-layout="thought"] { --nfs: max(110px, min(21vw, calc(100vh - min(600px, 48vw, 68vh) * .57 - 205px))); }
}
/* The face shows down to just under the eyes (the glasses end at ~57% of the drawing), fixed to the bottom. */
.orbit-page:has(.orbit__pin[data-layout="thought"]) .avatar--hero { bottom: calc(var(--w) * -.43); }
@media (max-width: 700px) { .orbit__pin[data-layout="thought"] { --name-y: 30%; } .orbit__ringlabel { font-size: 11px; } }
/* The row sits under the name here, so the arrows go under the row. */
.orbit__pin[data-layout="thought"] .orbit__arrows { top: calc(var(--row-y, 60%) + var(--row-h, 320px) / 2 + 22px); }

/* Arrows centred under the row, shown once the deck has spread out (orbit.js). */
.orbit__arrows { position: absolute; left: 0; right: 0; top: calc(50% + var(--row-h, 320px) / 2 + 28px); z-index: 8; display: flex; justify-content: center; gap: 12px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.orbit__pin.is-row .orbit__arrows { opacity: 1; visibility: visible; }
.orbit__arrow {
  pointer-events: auto; width: 52px; height: 52px; display: grid; place-items: center; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); font: 800 22px/1 var(--font-body);
  cursor: pointer; box-shadow: 3px 4px 0 var(--ink); transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast);
}
.orbit__arrow:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.orbit__arrow:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.orbit__arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Phones: the face sits right under the row, so the arrows go above it instead. */
@media (max-width: 700px) { .orbit__arrows { top: calc(50% - var(--row-h, 320px) / 2 - 76px); } }
@media (max-width: 700px) { .orbit__arrow { width: 44px; height: 44px; font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .orbit__arrows, .orbit__arrow { transition: none; } }

/* The nudge: each card gives a little wiggle while the face points them out (orbit.js). */
.ocard.is-nudge .ocard__in { animation: card-nudge .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes card-nudge { 0%, 100% { rotate: 0deg; translate: 0 0; } 30% { rotate: -4deg; translate: 0 -10px; } 60% { rotate: 3deg; translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .ocard.is-nudge .ocard__in { animation: none; } }

.orbit__hint {
  position: absolute; left: 30px; bottom: 26px; z-index: 6; margin: 0;
  font: 700 13px ui-monospace, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
  opacity: var(--hint, 1); transition: opacity .3s;
}

/* The face's line while it's in the hero: a bubble just above its head (orbit.js). */
.osay { z-index: 25; }   /* above the orbiting cards */
/* Next to the face, the tail points left at it. */
.osay::after { left: -9px; right: auto; bottom: auto; top: 16px; transform: rotate(135deg); }
.final .osay { color: var(--accent); border-color: var(--ink); box-shadow: 4px 5px 0 var(--ink); background: #fff; }

/* "product designer", small, just above the name. */
.orbit__role {
  position: absolute; left: 0; right: 0; top: calc(var(--name-y, 56%) - var(--nfs, min(15.5vw, 28vh)) * .4 - 2.4em); z-index: 6; pointer-events: none; margin: 0; text-align: center;
  font: 700 clamp(12px, 1.05vw, 15px) ui-monospace, Menlo, monospace; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2);
  opacity: calc(var(--nop, 1) * var(--ro, 1)); translate: 0 calc((1 - var(--ro, 1)) * 10px + var(--ry, 0px) + var(--ndy, 0px) + var(--rdy, 0px));
  clip-path: inset(-1em 0 var(--cut, 0px) 0);
}

/* Intro (orbit.js): the name reveals left to right, then the cards burst out from the centre.
   --rv hides the name from the right; each card's inner layer fades/grows with --io/--is. */
.orbit__name { clip-path: inset(0 max(var(--side, 0%), var(--rv, 0%)) var(--cut, 0px) var(--side, 0%)); }
/* Thought layout: the solid panel behind the ring of names (orbit.js sizes it). The name and
   "product designer" rise up from behind it: --ry moves them down, --cut hides what's below its top. */
.orbit__stage {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; border-radius: 32px;
  background: var(--bg) var(--grain, none) repeat 0 0 / 256px 256px;   /* the page's own grain (page.js), so it reads as the page */
}
/* Like a big footer wordmark: the letters keep their colour over most of their height, then
   blend into the page and are fully transparent at the very base. The fade line is a very wide
   arch matching the name's slight arch; orbit.js sets the gradient's centre (far below), size and
   stops from where the letters actually sit. */
.orbit__pin[data-layout="thought"] .orbit__name {
  --fade: radial-gradient(ellipse var(--mrx, 2000px) var(--mry, 1000px) at 50% var(--mcy, 1100px), transparent var(--m0, 90%), rgba(0, 0, 0, .18) var(--m1, 91%), rgba(0, 0, 0, .7) var(--m2, 94%), #000 var(--m3, 97%));
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
/* Progressive blur over the bottom of the letters (--shade tall, sitting on the stage's top edge):
   each layer blurs more than the last and covers a lower slice, so the edges soften gradually
   toward the base. Wider than the name, fading out at the sides. */
.orbit__pblur { position: absolute; left: -14%; right: -14%; bottom: calc(100% - 40px); height: calc(var(--shade, 80px) + 40px); pointer-events: none; }   /* runs 40px past the base, so the blur dissolves instead of stopping on a line */
.orbit__pblur i {
  position: absolute; inset: 0; --ends: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: var(--band), var(--ends); -webkit-mask-composite: source-in; mask-image: var(--band), var(--ends); mask-composite: intersect;
}
.orbit__pblur i:nth-child(1) { --band: linear-gradient(to bottom, transparent 0%, #000 18%, #000 40%, transparent 60%); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
.orbit__pblur i:nth-child(2) { --band: linear-gradient(to bottom, transparent 18%, #000 40%, #000 58%, transparent 78%); -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); }
.orbit__pblur i:nth-child(3) { --band: linear-gradient(to bottom, transparent 40%, #000 58%, #000 74%, transparent 92%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.orbit__pblur i:nth-child(4) { --band: linear-gradient(to bottom, transparent 56%, #000 74%, #000 82%, transparent 100%); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
@media (max-width: 700px) { .orbit__stage { border-radius: 22px; } }
.ocard__in { opacity: var(--io, 1); }

/* Opening a case study: the card comes to the middle over a dark backdrop, then its picture
   grows and the case study page takes over with the same picture (orbit.js + case.js). */
.ofocus { position: fixed; inset: 0; z-index: 200; background: rgba(16, 2, 31, .72); opacity: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ofocus__card { position: fixed; z-index: 201; margin: 0; pointer-events: none; transform-origin: 0 0; }
/* Footer: a dark rounded card; the face sits on its top edge, peeking over (page.js). */
.final .footer.ofoot {
  position: relative; z-index: 10; display: block; max-width: none; overflow: hidden;
  margin: 0 24px 24px; padding: 72px clamp(24px, 6vw, 110px) 34px; border-radius: 36px;
  background: var(--ink-night); color: var(--paper);
}
.ofoot > * { position: relative; z-index: 1; }
.ofoot__main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ofoot__kicker { margin: 0 0 18px; font: 700 17px var(--font-body); color: rgba(240, 240, 240, .6); }
.ofoot__title { margin: 0; font: 500 clamp(44px, 6vw, 92px)/1 var(--font-body); letter-spacing: -.03em; color: var(--paper); }
.ofoot__reach { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.ofoot__big { font: 500 clamp(28px, 3.6vw, 56px)/1.05 var(--font-body); letter-spacing: -.02em; color: var(--paper); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out, ease); }
.ofoot__big:hover, .ofoot__big:focus-visible { background-size: 100% 2px; }
.ofoot__note, .ofoot__dim { font: 600 16px var(--font-body); color: rgba(240, 240, 240, .5); }
.ofoot__label { display: block; margin-bottom: 14px; font: 700 13px ui-monospace, Menlo, monospace; letter-spacing: .22em; text-transform: uppercase; color: rgba(240, 240, 240, .5); }
.ofoot__reach .ofoot__label { margin-bottom: 0; }
.ofoot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 44px 0 72px; }
.ofoot__links { display: grid; gap: 12px; }
.ofoot__links--2 { grid-template-columns: repeat(2, max-content); column-gap: 56px; }
.ofoot__links a, .ofoot__top { font: 600 19px var(--font-body); color: var(--paper); text-decoration: none; }
.ofoot__links a:hover, .ofoot__top:hover { color: var(--lilac-100, #d9c8ff); }
.ofoot__val { display: flex; align-items: center; gap: 10px; font: 600 19px var(--font-body); }
.ofoot__dim { display: block; margin-top: 8px; }
.ofoot__dot { width: 10px; height: 10px; border-radius: 50%; background: #c8f54a; box-shadow: 0 0 0 4px rgba(200, 245, 74, .18); }
.ofoot__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ofoot__copy { display: inline-flex; align-items: center; gap: 12px; font: 600 16px var(--font-body); color: rgba(240, 240, 240, .6); }
.ofoot__copy img { border-radius: 8px; }
.ofoot a:focus-visible { outline: 3px solid var(--lilac-100, #d9c8ff); outline-offset: 3px; border-radius: 4px; }
/* While the face sits on the footer it goes behind it, so it peeks over the top edge. */
.final .dock.is-home.on-foot { z-index: 5; }
@media (max-width: 900px) { .ofoot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .final .footer.ofoot { margin: 0 12px 12px; padding: 56px 22px 26px; border-radius: 28px; }
  .ofoot__reach { align-items: flex-start; text-align: left; }
  .ofoot__links--2 { column-gap: 32px; }
  .ofoot__links a, .ofoot__top, .ofoot__val { font-size: 17px; }
}

/* Blogs: the latest three Medium posts in a row, and a button to the rest (tools/medium.py). */
.writing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wcard {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; background: #fff; color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 24px 44px -30px rgba(20, 10, 40, .45);
  transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.wcard:hover, .wcard:focus-visible { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 30px 50px -28px rgba(20, 10, 40, .55); outline: none; }
.wcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wcard__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 6px; border: 2px solid var(--ink); border-radius: 14px; background: #f2f2f4; }
.wcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wcard__meta { margin: 0 4px; font: 700 12px ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.wcard__title { margin: 0 4px; font: 800 19px/1.25 var(--font-body); letter-spacing: -.01em; }
.wcard__go { margin: auto 4px 0; padding-top: 6px; font: 800 14px var(--font-body); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.writing__more { margin-top: 36px; }
@media (max-width: 700px) {
  /* Phones: the same row, swiped through. */
  .writing__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 24px; scrollbar-width: none; }
  .writing__grid::-webkit-scrollbar { display: none; }
  .wcard { flex: 0 0 78vw; scroll-snap-align: center; }
  .wcard__title { font-size: 18px; }
  .writing__more { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wcard { transition: none; } }

@media (max-width: 700px) {
  .orbit__role { top: calc(var(--name-y, 53%) - 21vw * .4 - 2.4em); font-size: 11px; letter-spacing: .26em; }
  .orbit__nav { padding: 18px 20px; }
  .orbit__name { top: var(--name-y, 53%); font-size: 21vw; }
  .orbit-page .avatar--hero { --w: 82vw; }
  .ocard { --w: 72vw; }
  .orbit__hint { left: 20px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit__hint { transition: none; }
}

/* Play tiles' entrance (shared/reveal.js). */
/* (hidden with opacity until revealed: a clip-path would stop the page noticing it scroll in) */
.rv--mask:not(.is-in) { opacity: 0; }
.rv--mask.is-in { animation: rv-mask .95s cubic-bezier(.76, 0, .24, 1) both; }
.rv--mask.is-in > video, .rv--mask.is-in > img { animation: rv-settle 1.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rv-mask { from { clip-path: inset(100% 0 0 0 round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }
@keyframes rv-settle { from { scale: 1.14; } to { scale: 1; } }
.rv--drop { opacity: 0; translate: 0 46px; rotate: -2.5deg; transition: opacity .55s ease, translate .9s cubic-bezier(.34, 1.4, .64, 1), rotate .9s cubic-bezier(.34, 1.4, .64, 1); }
.rv--drop.is-in { opacity: 1; translate: 0 0; rotate: 0deg; }
.rv--pixel:not(.is-in) { visibility: hidden; }
/* Blog cards: open from left to right, the picture settling as they open. */
.rv--side:not(.is-in) { opacity: 0; }
.rv--side.is-in { animation: rv-side .9s cubic-bezier(.76, 0, .24, 1) both; }
.rv--side.is-in .wcard__media img { animation: rv-settle 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rv-side { from { clip-path: inset(0 100% 0 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
.rv__px { position: absolute; inset: -2px; z-index: 2; width: calc(100% + 4px); height: calc(100% + 4px); image-rendering: pixelated; pointer-events: none; }

/* =====================================================================
   Phones (max-width: 700px): top bar with "Book a call" + menu, the full-screen menu,
   the hero ring under the name, FAQ accordions, swiped testimonials, a smaller face
   whose bubbles sit above it. shared/phone.js drives the menu, accordions and dots.
   ===================================================================== */
.mbar, .mmenu, .mdots { display: none; }
@media (max-width: 700px) {
  /* Top: the hero menu's links go (the menu button replaces them); the fixed bar gets a
     backing that fades out, so headings scroll under it instead of into the label. */
  .orbit__nav .hero__links, .orbit__hint, .topbar__cta { display: none; }
  .orbit__nav { padding: 14px 16px; }
  .orbit__nav .logo-tile { width: 44px; }
  .topbar { top: 0; left: 0; right: 0; padding: 14px 16px 26px; background: linear-gradient(to bottom, var(--bg) 58%, transparent); }
  .topbar .section-label { font-size: 19px; mix-blend-mode: normal; color: var(--ink); }
  .mbar { display: flex; align-items: center; gap: 8px; position: fixed; top: 14px; right: 16px; z-index: 310; }
  .booting .mbar { visibility: hidden; }
  .mbar__book { height: 44px; min-width: 0; padding: 0 16px; font-size: 13px; }
  .mbar__menu {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; cursor: pointer;
    border: 2px solid var(--ink); border-radius: 50%; background: var(--surface, #fff); color: var(--ink);
  }
  .mbar__menu i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out, ease); }
  .menu-open .mbar__menu i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .mbar__menu i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .menu-open .mbar__book { opacity: 0; pointer-events: none; }
  .mbar__book { transition: opacity .25s; }

  /* The menu: fills the screen, opening as a circle out of the menu button. */
  .mmenu {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 300; overflow: hidden;
    padding: 92px 24px max(24px, env(safe-area-inset-bottom)); background: var(--brand, #330466); color: var(--ink);
    clip-path: circle(0 at calc(100% - 38px) 36px); transition: clip-path .55s cubic-bezier(.76, 0, .24, 1);
  }
  .mmenu.is-on { clip-path: circle(150vmax at calc(100% - 38px) 36px); }
  .mmenu[hidden] { display: none; }
  .menu-open, .menu-open body { overflow: hidden; }
  .mmenu__links { display: flex; flex-direction: column; align-items: flex-start; }
  .mmenu__links a {
    padding: 2px 0; color: var(--ink); text-decoration: none; text-transform: uppercase; white-space: nowrap;
    font: 800 min(15vw, 9.4vh)/.98 "Archivo", "Arial Narrow", sans-serif; font-stretch: 62%; letter-spacing: -.02em;
  }
  .mmenu__links a:nth-child(even) { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; }
  .mmenu__links a:active { color: var(--butter, #fee897); }
  .mmenu__foot { position: relative; z-index: 1; display: grid; gap: 16px; margin-top: auto; padding-top: 24px; }
  .mmenu__book { justify-self: start; }
  .mmenu__elsewhere { display: flex; gap: 22px; margin: 0; font: 700 16px var(--font-body); }
  .mmenu__elsewhere a { color: var(--ink); text-underline-offset: 4px; }
  .mmenu__status { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font: 600 14px var(--font-body); color: var(--ink-2); }
  .mmenu__status span { display: inline-flex; align-items: center; gap: 8px; }
  /* The face peeks in from the right edge, beside the links. */
  .mmenu__face { position: absolute; right: -24vw; top: 34%; width: 64vw; height: auto; pointer-events: none; transform: rotate(-16deg); filter: drop-shadow(1.5px 0 0 #f3eff8) drop-shadow(-1.5px 0 0 #f3eff8) drop-shadow(0 1.5px 0 #f3eff8) drop-shadow(0 -1.5px 0 #f3eff8); }
  @media (prefers-reduced-motion: reduce) { .mmenu, .mbar__menu i { transition: none; } }

  /* Hero: name higher, the ring right under it (orbit.js), the bubble between ring and face. */
  .orbit__pin[data-layout="thought"] { --name-y: 27%; }
  .osay.osay--down::after { left: calc(50% - 7px); right: auto; top: auto; bottom: -9px; transform: rotate(45deg); }
  .osay.osay--down { max-width: min(300px, 84vw); }

  /* FAQ: questions in order, tap one to open its answer. */
  .faq__grid { display: flex; flex-direction: column; gap: 0; }
  .faq .qa { order: var(--o, 0); padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
  .faq .qa:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
  .faq .qa__n { margin-bottom: 6px; }
  .faq .qa h3 { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; font-size: 22px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .faq .qa h3::after { content: "+"; flex: none; font: 700 30px/1 var(--font-body); color: var(--accent); transition: transform .3s var(--ease-out, ease); }
  .faq .qa.is-open h3::after { transform: rotate(45deg); }
  .faq .qa p { max-height: 0; overflow: hidden; opacity: 0; font-size: 17px; transition: max-height .4s var(--ease-out, ease), opacity .3s, margin .4s; }
  .faq .qa.is-open p { max-height: 16em; opacity: 1; margin-top: 12px; }

  /* Testimonials: a row you swipe, one card at a time (no drifting, no arrows). */
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; margin: 0 -20px; padding: 10px 0 18px; }
  .marquee::-webkit-scrollbar { display: none; }
  .quotes { animation: none; transform: none !important; gap: 14px; padding: 0 20px; }
  .testi { width: 84vw; padding: 22px; scroll-snap-align: center; }
  .quotes__nav { display: none; }

  /* Dots under the swiped rows. */
  .mdots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
  .mdots i { width: 7px; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 28%, transparent); transition: width .3s var(--ease-out, ease), background .3s; }
  .mdots i.is-on { width: 22px; background: var(--accent); }

  /* The face in the corner: smaller (page.js), and its bubbles sit right above it, not beside it over the text. */
  .final .dock .bubble, .final .dock.is-home .bubble {
    left: calc(100px * var(--k, 1)); right: auto; top: auto; bottom: calc(100% + 12px); translate: -100% 0;
    max-width: min(240px, 70vw); font-size: 14px;
  }
  .final .dock .bubble::after { left: auto; right: 18px; top: auto; bottom: -9px; transform: rotate(45deg); }
}
