/* ───────────────── Tokens ───────────────── */
:root {
  --ivory: #f6f2ea;
  --ivory-2: #ede7db;
  --ink: #2a2826;
  --ink-soft: #5d5a54;
  --muted: #8a857c;
  --gold: #bb9e6b;
  --gold-deep: #7b6342;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, sans-serif;

  /* Design unit = 1% of viewport width; hero type and spacing follow the mockup's proportions. */
  --u: 1vw;
  --nav-h: max(60px, calc(var(--u) * 5));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }   /* font sizes here are the full design sizes (phones); desktop sets them at 75% in the block at the end */
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 1rem;   /* text with no size of its own: full size on phones, 75% on desktop (block at the end) */
}
@media (max-width: 760px) { body { font-size: 1rem; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(13px, calc(var(--u) * 1.449));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.muted { color: var(--muted); }

/* ───────────────── Buttons ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--sans);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .35s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a98b58; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #111; }
.btn-line { border: 1.5px solid var(--gold); color: var(--gold-deep); background: transparent; }
.btn-line:hover { background: rgba(187, 158, 107, 0.1); }
.btn-sm {
  width: max(120px, calc(var(--u) * 10.9));
  height: max(38px, calc(var(--u) * 2.95));
  font-size: max(14px, calc(var(--u) * 1.051));
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* the page scrolls only where the journey glides it: the browser must never nudge the scroll position
   to "anchor" content when things move (the journey's guide changes size as you move on) */
html, body { overflow-anchor: none; }

/* ───────────────── Nav ───────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--u) * 2.9) 0 calc(var(--u) * 2.6);
  background: var(--ivory);
}
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: max(24px, calc(var(--u) * 2.2)); line-height: 1; }
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: calc(var(--u) * 4.75);
  font-size: max(15px, calc(var(--u) * 1.1));
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .35s ease;
}
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }

/* ───────────────── Hero (measured from the mockup, in --u) ───────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 40fr 60fr;
  grid-template-rows: calc(100vh - var(--nav-h));
}
.hero-photo { overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* The copy block is as wide as its longest line; the buttons stretch to that same width. */
.hero-copy {
  align-self: center;
  justify-self: start;
  width: max-content;
  max-width: calc(100% - var(--u) * 6);
  margin-left: calc(var(--u) * 6.5); /* gap to the photo */
  margin-top: 3.5vh;                 /* sits a little below centre */
}
.hero h1 {
  margin-top: calc(var(--u) * 2.5);
  font-family: var(--serif);
  font-weight: 500;
  font-size: max(2.2rem, calc(var(--u) * 4));
  line-height: 1.06;
  letter-spacing: -0.003em;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.pipeline {
  margin-top: calc(var(--u) * 3.7);
  display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 1.4);
  font-size: calc(var(--u) * 1.3);
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.pipeline svg { width: calc(var(--u) * 0.55); height: calc(var(--u) * 1.05); flex: none; }
.pipeline-for {
  margin-top: calc(var(--u) * 1.2);
  font-family: var(--serif);
  font-style: italic;
  font-size: calc(var(--u) * 2.6);
  line-height: 1.1;
  color: var(--gold);
}
.hero-ctas { display: flex; gap: calc(var(--u) * 1.4); margin-top: calc(var(--u) * 4.2); }
.hero-ctas .btn { flex: 1; height: clamp(50px, calc(var(--u) * 4), 66px); font-size: clamp(1rem, calc(var(--u) * 1.3), 1.351rem); }
.hero-scroll {
  position: absolute; right: calc(var(--u) * 2.9); bottom: calc(var(--u) * 2.4);
  font-style: italic; font-size: max(15px, calc(var(--u) * 1.251));
  display: inline-flex; gap: calc(var(--u) * 1.3); align-items: center;
}
.hero-scroll span { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ───────────────── Journey ─────────────────
   The stage is pinned. Only .tl-track (the line + year labels) moves, one-to-one with
   scroll. Chapters sit still in the middle of the screen; the one whose dot is at the
   focus point gets .is-active and fades in. Positions are set by js/journey.js. */
.journey { position: relative; /* height set by journey.js */ }
.journey-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; overflow: clip; }  /* clip: never a scroll target */
.tl-track { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; z-index: 1; }
.tl { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.tl path { fill: none; stroke-linecap: round; }
.tl .ink  { stroke: #a39886; stroke-width: 1.8; }   /* the timeline: the path you travel */
.tl .warm { stroke: url(#tl-warm); stroke-width: 1.8; }
.tl .thread { stroke: #c2a26b; stroke-width: 2; }   /* the inner thread, 2020 → 2023 */
.tl .thread-glow { stroke: #c2a26b; stroke-width: 9; opacity: 0.16; }
.tl .thread-travel {                         /* light running down through the strung photos, while Amazon is up */
  stroke: #e9cf98; stroke-width: 3; stroke-dasharray: 9 100; stroke-dashoffset: 9;
  animation: thread-flow 4.2s cubic-bezier(.45, 0, .55, 1) infinite; animation-play-state: paused; opacity: 0;
  transition: opacity 0.6s ease;
}
.journey:has(.chapter-amazon.is-active) .tl .thread-travel { animation-play-state: running; opacity: 0.9; }
@keyframes thread-flow { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -100; } }
.tl .thread-seed { fill: var(--gold); }
.tl .gold { stroke: var(--gold); stroke-width: 2; }
.tl .frag { stroke: var(--gold); stroke-width: 1.4; }
.tl .travel {
  stroke: var(--gold); stroke-width: 2.4;
  stroke-dasharray: 70 1600;
  animation: travel 7s linear infinite;
  animation-play-state: paused;             /* repainting the whole line is costly: only while 2024 is up */
  opacity: 0; transition: opacity 0.6s ease;
}
.journey:has(.chapter-turn.is-active) .tl .travel { animation-play-state: running; opacity: 1; }
@keyframes travel { from { stroke-dashoffset: 70; } to { stroke-dashoffset: -1600; } }
/* each chapter's dot is the same stop as on the opening timeline: an open gold ring with a soft glow */
.tl .dot { fill: var(--ivory); stroke: var(--gold); stroke-width: 2.2; filter: drop-shadow(0 0 7px rgba(214, 180, 118, 0.7)); }
/* 2023: the braid breathes. A soft light travels down both strands into the dot, which glows as
   it arrives; only while 2023 is up */
.tl .braid-light {
  stroke: #ecd29c; stroke-width: 2.6; stroke-dasharray: 14 100; stroke-dashoffset: 14;
  filter: drop-shadow(0 0 3px rgba(236, 200, 140, 0.9)); opacity: 0;
  animation: braid-breath 5s cubic-bezier(.45, 0, .55, 1) infinite; animation-play-state: paused;
}
.tl .halo.breath { transform-box: fill-box; transform-origin: center; animation: dot-breath 5s ease-in-out infinite; animation-play-state: paused; }
.journey:has(.chapter-awake.is-active) .tl .braid-light,
.journey:has(.chapter-awake.is-active) .tl .halo.breath { animation-play-state: running; }
@keyframes braid-breath {
  0% { stroke-dashoffset: 14; opacity: 0; } 12% { opacity: 1; } 62% { stroke-dashoffset: -88; opacity: 1; }
  70%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes dot-breath {
  0%, 52% { scale: 1; opacity: 0.16; } 68% { scale: 1.9; opacity: 0.34; } 100% { scale: 1; opacity: 0.16; }
}
.tl .halo { fill: var(--gold); opacity: 0.16; }

/* a chapter arriving: one soft ripple from its dot, and its year slides in beside it (journey.js arrive) */
.tl .ripple { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: dot-ripple 1.8s cubic-bezier(.2,.6,.3,1) both; }
@keyframes dot-ripple { 0% { scale: 1; opacity: 0.85; } 100% { scale: 4.2; opacity: 0; } }
.tl-label.arrive { animation: label-arrive 0.9s cubic-bezier(.2,.7,.2,1) 0.3s both; }
.tl-label.on-left.arrive { animation-name: label-arrive-l; }
@keyframes label-arrive { from { opacity: 0; translate: -14px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes label-arrive-l { from { opacity: 0; translate: 14px 0; } to { opacity: 1; translate: 0 0; } }
.tl-label { position: absolute; left: 0; top: 0; line-height: 1.25; white-space: nowrap; }
.tl-label.on-left { text-align: right; }
.tl-label.centred { text-align: center; }
/* …and its label speaks the opening timeline's language: the year in serif, the same name in small caps */
.tl-label .y { display: block; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 2.7rem; line-height: 1; color: var(--ink); }
.tl-label .p { display: block; margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }

.chapter {
  position: absolute;
  inset: var(--nav-h) 0 0 0;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;          /* its own GPU layer: fading never repaints the photos */
  /* leaving: clears quickly */
  transition: opacity 0.24s ease-in, visibility 0s linear 0.24s;
}
/* arriving: a beat later, rises a few pixels as it fades in */
.chapter.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.42s cubic-bezier(.2, .7, .2, 1) 0.06s;
}
/* riding (data-ride, js/journey.js): moving with the line instead of fading, fully shown */
.chapter.riding { opacity: 1; visibility: visible; transition: none; }
.chapter.riding.far { visibility: hidden; }
/* inside the chapters: hold the line (or the year beside it) to see the whole journey on it, shrunk;
   drag along it and let go on a chapter to go there (js/guide.js) */
.jline-hit, .jline-tag { position: absolute; z-index: 6; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; }
.jline-hit { top: var(--nav-h); bottom: 0; width: 36px; }
.jline-tag { border-radius: 10px; transition: background 0.3s ease; }
.jline-tag:hover, .jline-tag:focus-visible { background: rgba(187, 158, 107, 0.08); }
.journey.scrubbing .jline-hit, .journey.scrubbing .jline-tag { cursor: grabbing; }
/* while it's open the page steps back, so the shrunk timeline reads clearly */
.journey-stage::after {
  content: ""; position: absolute; inset: var(--nav-h) 0 0 0; z-index: 6; pointer-events: none;
  background: rgba(246, 242, 234, 0.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
}
.journey.scrubbing .journey-stage::after { opacity: 1; }
.journey.scrubbing .jline-hit, .journey.scrubbing .jline-tag { z-index: 8; }
.jscrub { position: absolute; z-index: 7; top: 0; height: 100%; width: 0; pointer-events: none; }
.jscrub-line {
  position: absolute; left: -0.5px; width: 1px; transform: scaleY(0); transform-origin: 50% 50%;
  background: linear-gradient(180deg, rgba(187, 158, 107, 0), rgba(187, 158, 107, 0.75) 8%, rgba(187, 158, 107, 0.75) 92%, rgba(187, 158, 107, 0));
  transition: transform 0.3s ease;
}
.jscrub.open .jscrub-line { transform: scaleY(1); transition: transform 0.45s cubic-bezier(.2, .7, .2, 1); }
.jscrub-stop {
  position: absolute; left: 0; height: 0; display: flex; align-items: center; gap: 1rem; white-space: nowrap;
  opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.2s ease;
}
.jscrub.open .jscrub-stop { opacity: 1; transform: none; transition: opacity 0.35s ease calc(var(--k, 0) * 0.04s), transform 0.4s cubic-bezier(.2, .7, .2, 1) calc(var(--k, 0) * 0.04s); }
.jscrub-stop i {
  flex: none; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--gold); background: var(--ivory); box-shadow: 0 0 0 4px var(--ivory), 0 0 12px 2px rgba(214, 180, 118, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.jscrub-stop b { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); transition: color 0.2s ease, font-size 0.2s ease; }
.jscrub-stop span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); transition: color 0.2s ease; }
.jscrub-stop.now i { background: rgba(187, 158, 107, 0.5); }
.jscrub-stop.picked i { background: var(--gold); transform: scale(1.5); box-shadow: 0 0 0 4px var(--ivory), 0 0 18px 5px rgba(214, 180, 118, 0.6); }
.jscrub-stop.picked b { color: var(--ink); font-size: 2.1rem; }
.jscrub-stop.picked span { color: var(--gold-deep); }
.jscrub.labels-left .jscrub-stop { flex-direction: row-reverse; left: auto; right: 0; }
.jscrub.labels-left .jscrub-stop i { margin-left: 0; margin-right: -6.5px; }


/* the journey at a glance (js/guide.js): the timeline on the opening page, under her words. Light
   and elegant: a hairline that fades in and out, small open rings with a soft glow, the year in serif,
   the name in small caps, a line in italic, and a sparkle where the line trails off past 2025. */
.journey { --guide-h: 0px; --frame-gap: 0px; }
.overview { position: absolute; z-index: 3; left: 5vw; right: 5vw; top: calc(68vh - var(--nav-h)); height: 190px; }
.overview ol { position: absolute; inset: 0 5vw; display: flex; justify-content: space-between; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.overview ol::before {
  content: ""; position: absolute; left: -5vw; right: -5vw; top: 6px; height: 1px; transform-origin: left;
  background: linear-gradient(90deg, rgba(187, 158, 107, 0), rgba(187, 158, 107, 0.6) 9%, rgba(187, 158, 107, 0.6) 88%, rgba(187, 158, 107, 0));
}
.overview ol::after {                            /* the sparkle where the line trails off: the journey goes on */
  content: ""; position: absolute; right: -6.5vw; top: -1px; width: 15px; height: 15px; background: var(--gold); opacity: 0.75;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.overview li { position: relative; z-index: 1; width: 0; display: flex; justify-content: center; }
.overview button { position: relative; display: block; padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; }
.overview button::before {
  content: ""; display: block; width: 13px; height: 13px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--gold); background: var(--ivory);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 14px 3px rgba(214, 180, 118, 0.35);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.overview b, .overview span, .overview i { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; transition: color 0.3s ease; }
.overview b { top: 30px; white-space: nowrap; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.overview span { top: 70px; white-space: nowrap; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.overview i { top: 92px; width: 12.5vw; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.149rem; line-height: 1.3; color: var(--ink-soft); }
.tl-clip { position: absolute; inset: 0; clip-path: inset(var(--nav-h) 0 0 0); }   /* lines never run under the nav */

.overview-hint {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; margin: 0; text-align: center;
  pointer-events: none;   /* at the foot of the opening page, the first thing to do */
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.overview-hint::after { content: "↓"; display: inline-block; margin-left: 0.6rem; letter-spacing: 0; animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob { 50% { transform: translateY(4px); } }
/* arriving on the opening page: one sequence, played each time it arrives (keyed to the opening
   being the active chapter, so nothing shows early and then redraws) */
.journey:has(.chapter-intro.is-active) .overview ol::before { animation: ov-draw 1.5s cubic-bezier(.45, 0, .25, 1) 0.55s both; }
.journey:has(.chapter-intro.is-active) .overview ol::after { animation: ov-fade 1s ease 1.9s both; }
@keyframes ov-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.journey:has(.chapter-intro.is-active) .overview button { animation: ov-stop 0.8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(0.75s + var(--k, 0) * 0.17s); }
@keyframes ov-stop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.journey:has(.chapter-intro.is-active) .overview-hint { animation: ov-fade 1s ease 2.1s both; }
@keyframes ov-fade { from { opacity: 0; } }
.chapter-intro.is-active .kicker, .chapter-intro.is-active .title, .chapter-intro.is-active .text { animation: ov-rise 0.9s cubic-bezier(.2, .7, .2, 1) both; }
.chapter-intro.is-active .title { animation-delay: 0.12s; }
.chapter-intro.is-active .text { animation-delay: 0.26s; }
.chapter-intro.is-active .text + .text { animation-delay: 0.38s; }
@keyframes ov-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chapter-intro.is-active .intro-photo { animation: ph-settle 1.1s cubic-bezier(.2, .8, .25, 1) both; animation-delay: var(--d, 0.2s); }
@keyframes ph-settle { from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--r) * 1.8)) scale(1.04); } to { opacity: 1; transform: rotate(var(--r)); } }
.chapter-intro.is-active .intro-photo img { animation: ph-float 7s ease-in-out infinite; animation-delay: calc(var(--d, 0.2s) + 1.2s); }
@keyframes ph-float { 50% { transform: translateY(-5px); } }
.ph-a { --d: 0.15s; } .ph-b { --d: 0.4s; } .ph-c { --d: 0.3s; } .ph-d { --d: 0.55s; }
.chapter-intro.is-active .intro-sprig { animation: ov-fade 1.2s ease 1s both, sprig-sway 6s ease-in-out 2.2s infinite; transform-origin: 70% 90%; }
@keyframes sprig-sway { 50% { transform: rotate(-24deg); } }
/* arriving on the opening page: the line draws in, the stops appear in turn, a light travels along */
.jg-glint {
  position: absolute; top: 10px; left: 0; width: 70px; height: 3px; margin-top: -1.5px; border-radius: 2px; z-index: 0;
  background: linear-gradient(90deg, rgba(236, 210, 156, 0), #ecd29c, rgba(236, 210, 156, 0));
  opacity: 0; animation: jg-glint 4.2s ease-in-out infinite; animation-play-state: paused;
}
@keyframes jg-glint { 0% { left: -4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
/* the opening page: her words sit in the upper part, above the overview */
.chapter-intro { align-items: flex-start; }
.chapter.chapter-intro .body { position: relative; z-index: 2; max-width: 50rem; margin-top: 6vh; }
/* page headings share one style: About's opening and the Portfolio header (.page-head) */
.chapter-intro .title, .page-head .title { font-size: clamp(3rem, 4.4vw, 5rem); line-height: 1.05; }
.chapter-intro .text, .page-head .text { max-width: 48rem; font-size: 1.3rem; }
.chapter-intro .text + .text { margin-top: 1rem; }   /* the chapters' body text */
.chapter-intro .kicker, .page-head .kicker { color: var(--gold-deep); font-weight: 700; letter-spacing: 0.3em; margin-bottom: 1.2rem; }
/* her Dubai years, taped and layered either side of the words, with a dried sprig and a fine line */
.intro-photo { position: absolute; z-index: 1; margin: 0; transform: rotate(var(--r)); }
.intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 22px 46px -26px rgba(70, 50, 25, 0.6); }
.intro-photo.print img { border-radius: 3px; border: 7px solid #f4eee3; }
.intro-photo::before {                           /* a soft wash behind it */
  content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 214, 192, 0.55), rgba(226, 214, 192, 0));
}
.intro-photo .tape { position: absolute; z-index: 1; top: -16px; width: 30%; height: 30px; background: rgba(228, 219, 199, 0.85); box-shadow: 0 1px 2px rgba(60, 45, 25, 0.06); }
.ph-a { left: 3vw; top: 10%; width: 17.5vw; height: 29%; --r: -4deg; }
.ph-a .tape { left: 26%; transform: rotate(-3deg); }
.ph-b { left: 6vw; top: 36%; width: 11vw; height: 19%; --r: 4deg; }
.ph-b .tape { right: 10%; transform: rotate(5deg); width: 26%; }
.ph-c { left: 81vw; top: 9%; width: 9.5vw; height: 25%; --r: 5deg; }
.ph-c .tape { left: 30%; transform: rotate(2deg); }
.ph-d { left: 78.5vw; top: 34%; width: 14.5vw; height: 21%; --r: -3deg; }
.intro-sprig { position: absolute; z-index: 0; left: 75.5vw; top: 45%; width: 6vw; transform: rotate(-28deg); }   /* peeking from behind the family photo */

/* nothing animates in a chapter that isn't on screen */
.chapter:not(.is-active) *, .chapter:not(.is-active) *::before, .chapter:not(.is-active) *::after { animation-play-state: paused !important; }

.chapter .body { max-width: 48rem; text-align: center; }
.kicker {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4rem;
}
.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.1vw, 3.3rem);
  line-height: 1.12;
  color: var(--ink);
}
.title em { color: var(--gold-deep); }
.title + .title { margin-top: 0.45em; }
.title.gold, .title.gold em { color: var(--gold); }
.text {
  max-width: 36rem; margin: 1.6rem auto 0;
  font-size: 1.149rem; line-height: 1.65; color: var(--ink-soft);
}
.aside { margin-top: 2.6rem; font-size: 1rem; letter-spacing: 0.12em; color: var(--ink); }

.chapter .photo { margin: 2.5rem auto 0; max-width: 30rem; }
.chapter .photo img { width: 100%; max-height: 32vh; object-fit: cover; }

/* 01 — Dubai: typed first line of code, then memories bubbling up around it */
.chapter-dubai .body { position: relative; z-index: 2; }
.code {
  display: inline-flex; align-items: center;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(1rem, 1.251vw, 1.251rem);
  color: var(--ink-soft);
  min-height: 1.6em;
  margin-bottom: 1.6rem;
}
.code .ln { color: #c5beb2; padding-right: 1rem; margin-right: 1rem; border-right: 1px solid #ddd5c8; }
.code .fn { color: var(--ink); }
.code .pn { color: var(--muted); }
.code .str { color: var(--gold-deep); }
.code .caret {
  display: inline-block; width: 0.55em; height: 1.15em; margin-left: 3px;
  background: var(--gold); animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chapter-dubai .hello { font-size: clamp(3.1rem, 5.2vw, 5.4rem); }
.chapter-dubai .hello, .chapter-dubai .text { opacity: 0; transform: translateY(10px); transition: opacity 0.9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.chapter-dubai .text { transition-delay: 0.35s; }
.chapter-dubai.typed .hello, .chapter-dubai.typed .text { opacity: 1; transform: none; }

.memories { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.memories * { pointer-events: none; -webkit-user-drag: none; user-select: none; }  /* photos never catch scrolls or drags */
/* memories: crisp photographs in two loose pairs around the story, floating with soft
   shadows (one childhood photo may carry tape), with subtle decorative curves around them. */
.chapter-dubai .text { font-size: 1.3rem; max-width: 29rem; }
.chapter-dubai .code { font-size: clamp(1.051rem, 1.351vw, 1.351rem); }

/* photos float in softly from just below, bob gently while they're up, and float away */
.piece {
  position: absolute; margin: 0;
  opacity: 0;
  transform: translateY(26px) scale(0.95) rotate(calc(var(--r) * 0.6));
  transition: opacity 1.3s ease, transform 1.8s cubic-bezier(.22, 1, .36, 1);
}
.piece.in { opacity: 1; transform: rotate(var(--r)); }
.piece.out { opacity: 0; transform: translateY(-22px) scale(0.98) rotate(calc(var(--r) * 1.2)); transition: opacity 1.3s ease, transform 1.6s cubic-bezier(.4, 0, .4, 1); }
.piece .bob { position: relative; }
.piece.in:not(.pinned) .bob { animation: bob var(--bob-time, 7s) ease-in-out var(--bob-delay, 0s) infinite; }
/* the pinned photo crossfades between childhood photos in place */
.pin-photo { position: relative; }
.pin-photo img.incoming { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.pin-photo img.incoming.shown { opacity: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(0.4deg); } }
.piece img {
  position: relative;
  display: block; width: 100%; aspect-ratio: var(--ar); object-fit: cover;
  box-shadow: 0 1px 3px rgba(60, 45, 25, 0.07), 0 22px 40px -24px rgba(60, 45, 25, 0.32);   /* floats, subtly */
}
.piece::after {                          /* the lifted shadow, gone once it has settled */
  content: ""; position: absolute; inset: 6% 4% -4%; z-index: -1;
  box-shadow: 0 34px 60px -22px rgba(60, 45, 25, 0.32);
  opacity: 1; transition: opacity 1.6s ease 0.2s;
}
.piece.in::after { opacity: 0; }
.piece .tape { position: absolute; z-index: 1; background: rgba(236, 231, 219, 0.88); box-shadow: 0 1px 2px rgba(60, 45, 25, 0.05); }
.piece .tape-top  { top: -14px; left: 32%; width: 36%; height: 30px; transform: rotate(2deg); }
.piece .tape-side { top: 10%; right: -9%; width: 15%; height: 38%; transform: rotate(4deg); }
.piece .pin {
  position: absolute; z-index: 1; top: calc(clamp(28px, 2.3vw, 42px) / -2); right: 14%;
  width: clamp(28px, 2.3vw, 42px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #dcc596, #b9995f 55%, #8f7444);
  box-shadow: 0 4px 10px rgba(60, 45, 25, 0.3), inset 0 -2px 3px rgba(0, 0, 0, 0.12);
}
.piece .sun { position: absolute; top: -30px; right: -46px; width: 44px; height: 44px; overflow: visible; }
.piece .sun path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }

/* the pressed palm leaf, tucked behind a photo and peeking out */
.piece img.leaf {
  position: absolute; z-index: -1;
  width: 95%; aspect-ratio: auto; height: auto; object-fit: contain;
  box-shadow: none; filter: drop-shadow(0 10px 14px rgba(60, 45, 25, 0.16));
  pointer-events: none;
}
.piece img.leaf-left { top: -34%; left: -46%; transform: rotate(-14deg); }
.piece img.leaf-right { top: -34%; right: -46%; transform: scaleX(-1) rotate(-14deg); }
/* catching up after a scroll: show everything finished, no transitions */
.chapter-dubai.skip *, .chapter-dubai.skip *::after { transition: none !important; }

/* silk ribbons: fine gold strands that draw themselves in, then drift (js/dubai.js) */
.memories .ribbons { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.memories .ribbons path {
  fill: none; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 3.2s cubic-bezier(.45, 0, .2, 1);
}
.chapter-dubai.typed .memories .ribbons path { stroke-dashoffset: 0; }
/* a soft glint of light that travels slowly up the line */
.memories .ribbons path.glint {
  stroke-dasharray: 0.07 1; stroke-dashoffset: 0.07;
  opacity: 0; transition: opacity 1s ease 3s;
  animation: glint 6.5s cubic-bezier(.45, 0, .55, 1) infinite;
}
.chapter-dubai.typed .memories .ribbons path.glint { opacity: 1; }
@keyframes glint { from { stroke-dashoffset: 0.07; } to { stroke-dashoffset: -1; } }

/* 02 — Berkeley: an orbit around the story, with experiences gathering on it as satellites */
.chapter-berkeley .body { position: relative; z-index: 2; }
.chapter-berkeley .text + .text { margin-top: 1rem; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-svg .orbit {
  fill: none; stroke: var(--gold); stroke-opacity: 0.3; stroke-width: 1;
  stroke-dasharray: 2 10; vector-effect: non-scaling-stroke;
  animation: orbit-drift 60s linear infinite;
}
@keyframes orbit-drift { to { stroke-dashoffset: -220; } }
.orbit-svg .orbit-traveller { fill: var(--gold); opacity: 0.6; filter: drop-shadow(0 0 4px rgba(187, 158, 107, 0.9)); }
.chapter-berkeley .orbit-svg { opacity: 0; transition: opacity 2s ease 0.3s; }
.chapter-berkeley.is-active .orbit-svg { opacity: 1; }

/* satellites: a gold point on the orbit, with year, name and role beside it */
.satellites { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.satellite {
  position: absolute; display: flex; align-items: flex-start; gap: 0.9rem;
  transform: translate(-13px, -13px);
  opacity: 0; translate: 0 8px;
  transition: opacity 1s ease, translate 1.2s cubic-bezier(.22, 1, .36, 1);
}
.satellite.side-left { flex-direction: row-reverse; transform: translate(calc(-100% + 13px), -13px); text-align: right; }
.satellite.in { opacity: 1; translate: 0 0; }
.sat-dot {
  flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 6px, rgba(187, 158, 107, 0.16) 7px 100%);
  box-shadow: inset 0 0 0 1px rgba(187, 158, 107, 0.3);
}
.sat-dot::after {                          /* a slow pulse, out of step on each point */
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(187, 158, 107, 0.4); opacity: 0;
  animation: sat-pulse 3.8s ease-out var(--pulse-delay, 0s) infinite;
}
@keyframes sat-pulse { 0% { opacity: 0.9; transform: scale(0.6); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.satellite.in .sat-dot { animation: sat-found 1.1s ease-out; }
@keyframes sat-found { 0% { box-shadow: 0 0 0 0 rgba(187, 158, 107, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(187, 158, 107, 0); } }
.sat-words { display: flex; flex-direction: column; max-width: 12vw; padding-top: 2px; }
.sat-year { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; }
.sat-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; color: var(--ink); margin-top: 0.15rem; }
.sat-role { font-size: 0.8rem; line-height: 1.4; color: var(--muted); margin-top: 0.2rem; }

/* the UC Berkeley seal: large and very faint behind the story, settling in on arrival */
.uni-seal {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: min(40vw, 66vh); height: auto;
  translate: -50% -50%; scale: 1.08;
  opacity: 0; filter: saturate(0.55);
  transition: opacity 1.8s ease, scale 2.4s cubic-bezier(.2, .7, .2, 1);
  animation: seal-turn 260s linear infinite;
  pointer-events: none;
}
.chapter-berkeley.arrived .uni-seal { opacity: 0.045; scale: 1; }
@keyframes seal-turn { to { rotate: 360deg; } }

/* the orbit draws in around the story */
.chapter-berkeley .orbit-svg { opacity: 0; scale: 0.96; transition: opacity 1.6s ease 0.2s, scale 2s cubic-bezier(.2, .7, .2, 1) 0.2s; }
.chapter-berkeley.arrived .orbit-svg { opacity: 1; scale: 1; }

/* photos are found while exploring: they drift in from the nearest edge and settle */
.piece.explore { transform: translate(var(--from-x, 0), var(--from-y, 20px)) scale(0.96) rotate(calc(var(--r) * 1.5)); }
.piece.explore.in { transform: rotate(var(--r)); }
.piece.explore.out { transform: translateY(-14px) scale(0.98) rotate(calc(var(--r) * 1.2)); }
.piece .tape-corner { top: -12px; left: -6%; width: 34%; height: 28px; transform: rotate(-24deg); }
.piece .tape-l { left: 8%; width: 30%; transform: rotate(-4deg); }
.piece .tape-r { left: auto; right: 6%; width: 30%; transform: rotate(5deg); }
.piece img.leaf-mid { top: 4%; right: -44%; width: 78%; transform: scaleX(-1) rotate(-30deg); }

/* small hand-placed details */
.deco { position: absolute; opacity: 0; transition: opacity 1.4s ease 1.4s; pointer-events: none; }
.chapter-berkeley.arrived .deco { opacity: 1; }
.sparkle { width: 100%; height: 100%; display: block; overflow: visible; }
.sparkle path { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linejoin: round; }
.deco.s1 { left: 26.5%; top: 46%; width: 20px; height: 20px; }
.deco.s2 { left: 1.8%; top: 63%; width: 18px; height: 18px; }
.deco.s3 { left: 5.8%; top: 86%; width: 26px; height: 26px; }
.deco.s4 { left: 59.5%; top: 79%; width: 24px; height: 24px; }
.chapter-berkeley.arrived .deco[class*=" s"] .sparkle { animation: twinkle 3.6s ease-in-out infinite; }
.deco.s2 .sparkle { animation-delay: -1.1s !important; }
.deco.s3 .sparkle { animation-delay: -2.2s !important; }
.deco.s4 .sparkle { animation-delay: -0.6s !important; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: 0.35; transform: scale(0.7) rotate(18deg); } }
.deco.burst { left: 2.2%; top: 6%; width: 56px; height: 56px; overflow: visible; }
.deco.burst path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
/* the handwritten note rides along with the astrophysics photo, just above it */
.piece .hand-note {
  position: absolute; left: 4%; top: -2.4rem; white-space: nowrap;
  transform: rotate(-9deg); transform-origin: left bottom;
  font-family: "Caveat", cursive; font-size: 1.551rem; line-height: 1; color: var(--gold-deep);
  opacity: 0; transition: opacity 1s ease 1.2s;
}
.piece.in .hand-note { opacity: 1; }

.chapter-berkeley .body { max-width: 40rem; }
.chapter-story.chapter-berkeley .title { max-width: none; margin-left: auto; margin-right: auto; font-size: clamp(3rem, 4.6vw, 5.2rem); }
.chapter-story.chapter-berkeley .text { max-width: 31rem; margin-left: auto; margin-right: auto; font-size: 1.2rem; line-height: 1.6; }

/* 2020 — expression: soft, feathered photographs that dissolve into the page, a faint
   circle behind the story, and a fine gold axis above and below it */
.chapter-inward .body { position: relative; z-index: 2; max-width: 34rem; }
.chapter-story.chapter-inward .title { font-size: clamp(2.8rem, 4.2vw, 4.6rem); }
.chapter-story.chapter-inward .text { max-width: 28rem; margin-left: auto; margin-right: auto; }

.halo-circle {
  position: absolute; left: 50%; top: 50%; z-index: 0; width: 64vmin; height: 64vmin; border-radius: 50%;
  translate: -50% -50%; scale: 0.9; opacity: 0;
  background: radial-gradient(circle, rgba(243, 226, 202, 0.55) 0%, rgba(243, 226, 202, 0.18) 55%, rgba(243, 226, 202, 0) 72%);
  box-shadow: inset 0 0 0 1px rgba(187, 158, 107, 0.07);
  transition: opacity 2s ease, scale 2.6s cubic-bezier(.22, 1, .36, 1);
}
.chapter-inward.arrived .halo-circle { opacity: 1; scale: 1; }

/* the gold axis: a line with a dot above the story and below it, and a short divider */
.chapter-inward .body::before, .chapter-inward .body::after {
  content: ""; position: absolute; left: 50%; width: 7px; height: 92px; translate: -50% 0;
  background:
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) no-repeat,
    linear-gradient(rgba(187, 158, 107, 0.85), rgba(187, 158, 107, 0.85)) no-repeat center / 2px 100%;
  transform: scaleY(0); transition: transform 1.6s cubic-bezier(.22, 1, .36, 1) 0.3s;
}
.chapter-inward .body::before { bottom: calc(100% + 1.6rem); background-position: center top, center bottom; background-size: 7px 7px, 2px calc(100% - 4px); transform-origin: bottom; }
.chapter-inward .body::after { top: calc(100% + 1.6rem); background-position: center bottom, center top; background-size: 7px 7px, 2px calc(100% - 4px); transform-origin: top; }
.chapter-inward.arrived .body::before, .chapter-inward.arrived .body::after { transform: scaleY(1); }
.chapter-inward .divider {
  display: block; width: 1.2px; height: 30px; margin: 1.3rem auto 1.1rem;
  background: rgba(187, 158, 107, 0.85);
  transform: scaleY(0); transition: transform 1.2s cubic-bezier(.22, 1, .36, 1) 0.8s;
}
.chapter-inward.arrived .divider { transform: scaleY(1); }
.chapter-inward .divider + .text { margin-top: 0; }

/* the soft photographs: feathered edges, a warm glow, and they bloom into focus */
/* each starts tiny at the centre of the page and bursts out to its place, overshooting a touch */
.soft { position: absolute; margin: 0; z-index: 1; isolation: isolate;
  opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.18); filter: blur(6px);
  transition: transform 2.3s cubic-bezier(.16, 1.12, .3, 1), opacity 0.9s ease, filter 1.6s ease 0.3s;
}
.soft.in { opacity: 1; transform: none; filter: blur(0); }
.shockwave {                               /* a soft ring that ripples out from the centre at the burst */
  position: absolute; left: 50%; top: 50%; z-index: 0; width: 40vmin; height: 40vmin; border-radius: 50%;
  translate: -50% -50%; scale: 0.2; opacity: 0;
  border: 1.5px solid rgba(187, 158, 107, 0.6);
  box-shadow: 0 0 40px rgba(222, 190, 132, 0.35), inset 0 0 30px rgba(222, 190, 132, 0.25);
}
.chapter-inward.burst .shockwave { animation: shockwave 2.6s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes shockwave { 0% { scale: 0.2; opacity: 0.9; } 100% { scale: 3.2; opacity: 0; } }
.soft::before {                            /* warm glow the image dissolves into */
  content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 206, 168, 0.4), rgba(238, 206, 168, 0) 100%);
}
.soft img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
}
.soft:not(.round) img {                    /* photos: a soft rectangular feather on every edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent),
                      linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent),
                      linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-composite: intersect;
}
.soft.round img {
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.soft img.incoming { opacity: 0; transition: opacity 1.8s ease; }
.soft img.incoming.shown { opacity: 1; }

/* 2021 — Amazon: structured and programmatic. Everything sits on a faint grid; a scan line
   sweeps down once and each piece renders top-to-bottom as it passes; wellness on the left
   (tied to the inner thread), the work and the app on the right. */
.chapter-amazon { justify-content: flex-start; padding-left: 25vw; }
.chapter-amazon .body { position: relative; z-index: 2; max-width: 33vw; text-align: left; }
.chapter-story.chapter-amazon .title { font-size: clamp(2.6rem, 3.9vw, 4.2rem); }
.chapter-story.chapter-amazon .text { margin-left: 0; max-width: 30rem; }
.chapter-amazon .kicker { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: none; color: var(--gold-deep); }

.amz-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background-image:
    linear-gradient(rgba(187, 158, 107, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 158, 107, 0.11) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 40%, transparent 100%);
  transition: opacity 1.2s ease;
}
.chapter-amazon.arrived .amz-grid { opacity: 1; }
.amz-scan {                                  /* one sweep, like a build compiling */
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(187, 158, 107, 0.9) 20%, rgba(187, 158, 107, 0.9) 80%, transparent);
  box-shadow: 0 0 18px rgba(187, 158, 107, 0.6);
}
.chapter-amazon.scanning .amz-scan { animation: scan 1.5s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* every piece renders top-to-bottom as the scan reaches it (--at = its height on the page) */
.chapter-amazon [style*="--at"] { clip-path: inset(0 0 100% 0); transition: clip-path 0.7s cubic-bezier(.65, 0, .35, 1) calc(var(--at) * 1.5s); }
.chapter-amazon.arrived [style*="--at"] { clip-path: inset(-30px -60px -30px -60px); }
.chapter-amazon.instant [style*="--at"] { transition: none; }

.mono-label { position: absolute; top: 2%; margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--gold-deep); }

/* tiles: crisp rectangles with small crop marks at two corners */
.tile { position: absolute; margin: 0; z-index: 1; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 12px 26px -16px rgba(60, 45, 25, 0.4); }
.tile::before {
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 12px no-repeat;
  opacity: 0.7;
}

/* "Wellness & Impact": the photos hang on the inner thread, which swings in to run through them */
.thread-label {
  position: absolute; margin: 0; z-index: 3; white-space: nowrap;
  writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep);
}
.amz-left { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wtile { position: absolute; margin: 0; isolation: isolate; will-change: transform; }   /* moved by the pulled thread (js/amazon.js) */
.wtile::after {                               /* the knots where the thread enters and leaves the photo */
  content: ""; position: absolute; left: 50%; top: -5px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(187, 158, 107, 0.18);
}
.wtile > i { position: absolute; left: 50%; bottom: -5px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(187, 158, 107, 0.18); }
.wtile::before {
  content: ""; position: absolute; inset: -7%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 206, 168, 0.36), rgba(238, 206, 168, 0) 100%);
}
.wtile img {
  display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent),
                      linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent),
                      linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
          mask-composite: intersect;
}
.wtile.changing img, .wtile.changing figcaption { opacity: 0; }
.wtile figcaption {
  position: absolute; left: calc(50% + 12px); bottom: -1.35rem;
  font-family: "Caveat", cursive; font-size: 1.449rem; line-height: 1; color: var(--gold-deep);
  transform: rotate(-4deg); transition: opacity 0.45s ease;
}
.wtile figcaption:empty { display: none; }

/* right: the work, and the app */
.amz-right { position: absolute; left: 64vw; top: 0; bottom: 0; width: 28vw; z-index: 1; }
.amz-right .mono-label { left: 0; }
.t-skyline { left: 0; top: 8%; width: 8.5vw; height: 22%; }
.t-office { left: 10vw; top: 8%; width: 17.5vw; height: 22%; }
.t-team { left: 0; top: 76%; width: 15.5vw; height: 20%; }
.t-laptop { left: 17vw; top: 76%; width: 10.5vw; height: 20%; }
.phones { position: absolute; left: 0; top: 33%; display: flex; gap: 1.6vw; align-items: flex-start; }
.phone { margin: 0; width: 7.8vw; }
.phone:nth-child(2) { margin-top: 1.8vw; }   /* a measured offset, not a random one */
.phone img {
  display: block; width: 100%; aspect-ratio: 520 / 1126; object-fit: cover;
  border: 5px solid #1d1c1a; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 22px 40px -18px rgba(30, 25, 15, 0.55);
}
.phone figcaption { margin-top: 0.6rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.68rem; color: var(--muted); }

/* story chapters share the Dubai chapter's typographic presence: the story is the anchor */
.chapter-story .title { font-size: clamp(2.8rem, 4.6vw, 4.9rem); line-height: 1.05; }
.chapter-story .text { font-size: 1.3rem; max-width: 29rem; }

/* 2023 — Awakening: a quiet dawn, below the central braid (the two lines meet in the middle and
   come down into a gold dot above the words). A warm light rises slowly behind the words, which come into
   focus one after another, like waking; the last line arrives on its own, in gold. */
.chapter-awake .body { position: relative; z-index: 1; max-width: 40rem; margin-top: 6vh; }
.chapter-awake .title { font-size: clamp(2.6rem, 4vw, 4.3rem); line-height: 1.08; }
.chapter-awake .text { max-width: 35rem; font-size: 1.2rem; line-height: 1.7; }
.chapter-awake .turn {
  margin: 1.9rem 0 0; font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(1.6rem, 2.1vw, 2.1rem); color: var(--gold-deep);
}
.dawn {
  position: absolute; left: 50%; bottom: -38%; width: 120vw; height: 95%; z-index: 0; pointer-events: none;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 205, 150, 0.55), rgba(246, 222, 184, 0.28) 45%, rgba(246, 242, 234, 0) 100%);
  opacity: 0; transform: translateY(14%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chapter-awake.riding .dawn { opacity: 1; transform: none; transition: none; }   /* the warmth comes up with the page */
.chapter-awake.is-active .dawn {
  opacity: 1; transform: none;
  transition: opacity 3.2s ease-out 0.2s, transform 4s cubic-bezier(.2, .7, .2, 1) 0.2s;
}
.chapter-awake .kicker, .chapter-awake .title, .chapter-awake .text, .chapter-awake .turn {
  opacity: 0; filter: blur(5px); transition: opacity 0.25s ease, filter 0.25s ease;
}
.chapter-awake.is-active .kicker, .chapter-awake.is-active .title, .chapter-awake.is-active .text, .chapter-awake.is-active .turn {
  opacity: 1; filter: none; transition: opacity 1.3s ease-out var(--d), filter 1.6s ease-out var(--d);
}
/* sparks: a few warm motes rise gently from the glow at the bottom and fade */
.sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sparks i {
  position: absolute; bottom: 4%; width: var(--s); height: var(--s); border-radius: 50%;
  background: #f0cf8e; box-shadow: 0 0 6px 1px rgba(240, 200, 130, 0.75); opacity: 0;
  animation: spark-rise var(--d) ease-in-out var(--w) infinite;
}
@keyframes spark-rise {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: var(--o); }
  70% { opacity: calc(var(--o) * 0.6); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--h) * -1)); }
}
/* the photos: whole, softly rounded, in warm light; each wakes into focus after the words */
.glimpses { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glimpse {
  position: absolute; margin: 0; display: grid; grid-template: 100% / 100%; justify-items: center;
  opacity: 0; filter: blur(10px) saturate(0.6) brightness(1.08);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.glimpse.end { align-items: end; }
.glimpse.start { align-items: start; }
.glimpse.awake {
  opacity: 1; filter: none;
  transition: opacity 1.8s ease-out, filter 2.4s ease-out;
}
.glimpse img {
  grid-area: 1 / 1; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 18px 40px -22px rgba(120, 84, 40, 0.45);
  transition: opacity 1.5s ease, filter 1.7s ease;
}
.glimpse.swapping img:not(.incoming) { opacity: 0; filter: blur(4px); }
.glimpse img.incoming { opacity: 0; filter: blur(8px); }
.glimpse img.incoming.shown { opacity: 1; filter: none; }
.chapter-awake .kicker { --d: 0.25s; }
.chapter-awake .title { --d: 0.6s; }
.chapter-awake .text { --d: 1.15s; }
.chapter-awake .turn { --d: 2.6s; }

/* 2024 — Building with Purpose. Sangha on the left (BloOm and Jiva, its early versions), Ohm Chants
   on the right (the app in hand, the room at Ohm Center behind it), and between them a gold line with
   the turn itself: June 2024, I left Amazon. */
.chapter-turn { padding: 0; }
.chapter-turn > * { position: absolute; margin: 0; }
.turn-head { left: 31.8vw; width: 40vw; top: 9%; text-align: center; z-index: 3; }
.turn-head .kicker { margin-bottom: 1.1rem; color: var(--gold); letter-spacing: 0.4em; }
.turn-head .title { font-size: clamp(2.8rem, 4.1vw, 4.6rem); line-height: 1.05; }
.turn-head .title .dot { color: var(--gold); }
.turn-head .sub {
  margin: 1.4rem auto 0; max-width: 30rem; font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(1.351rem, 1.749vw, 1.949rem); line-height: 1.35; color: var(--gold-deep);
}
.turn-wave { left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.turn-wave path { fill: none; stroke: var(--gold); stroke-opacity: 0.7; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
/* the watercolour behind it all (her artwork: a warm wash, gold rings and a lotus on the left, a
   lilac wash on the right), laid over the whole screen so it sits exactly as drawn */
.turn-bg {
  left: 0; top: calc(var(--nav-h) * -1); width: 100vw; height: 100vh; object-fit: cover; z-index: 0; pointer-events: none;
  /* blended into the page (its own cream drops away, the timeline shows through), softened, and faded
     out at the edges so the colour carries on from the chapters around it */
  mix-blend-mode: multiply; opacity: 0.5; filter: saturate(0.45); transform: scale(0.84); transform-origin: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 52%, #000 45%, transparent 100%), linear-gradient(90deg, #000 45%, transparent 62%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 70% 72% at 50% 52%, #000 45%, transparent 100%), linear-gradient(90deg, #000 45%, transparent 62%);
          mask-composite: intersect;
}
/* Ohm Chants: the singing bowl, lotus and leaves behind the phone, blended into the page */
.turn-bowl {
  left: 61vw; top: 5%; width: 37vw; height: auto; z-index: 1; pointer-events: none;
  mix-blend-mode: multiply; filter: saturate(0.75);
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 55% 52%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 64% at 55% 52%, #000 55%, transparent 100%);
}
.turn-card { left: 14vw; top: 10%; width: 15.3vw; height: 46%; object-fit: cover; border-radius: 12px; transform: rotate(-8deg); box-shadow: 0 30px 50px -28px rgba(30, 40, 80, 0.55); z-index: 1; }
.turn-phone { margin: 0; z-index: 2; }
.turn-phone.left { left: 21.5vw; top: 21.5%; height: 46.5%; transform: rotate(10deg); }
.turn-phone.right { left: 71vw; top: 7%; height: 58%; transform: rotate(8deg); }
.phone-frame {
  position: relative; height: 100%; aspect-ratio: 0.48; padding: 2.4%; box-sizing: border-box; border-radius: 13% / 6.2%;
  background: linear-gradient(145deg, #2b2724, #151311);
  box-shadow: 0 46px 80px -34px rgba(50, 35, 15, 0.65), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 11% / 5.3%; background: #0d0c0b; }
.phone-screen::after { content: ""; position: absolute; z-index: 2; top: 1.7%; left: 50%; width: 30%; height: 3.3%; transform: translateX(-50%); border-radius: 999px; background: #0b0a09; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.8s ease; }
.phone-screen img.on { opacity: 1; }
/* the words */
.turn-item { text-align: left; z-index: 3; }
.turn-item .num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.7rem; }
.turn-item h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(1.7rem, 2.049vw, 2.3rem); line-height: 1.12; color: var(--ink); margin: 0 0 0.5rem; }
.turn-item p:not(.num):not(.tagline):not(.quiet) { font-family: "Cormorant Garamond", serif; font-size: clamp(1.149rem, 1.3vw, 1.449rem); line-height: 1.4; color: var(--ink-soft); margin: 0; }
.turn-logo {                                     /* the Ohm Center mark, set on the phone like a badge */
  left: 67.8vw; top: 50%; width: 5.2vw; height: 5.2vw; border-radius: 50%; object-fit: cover; z-index: 3;
  box-shadow: 0 0 0 1.5px rgba(246, 242, 234, 0.9), 0 16px 32px -14px rgba(60, 30, 80, 0.55);
}
.turn-item .tagline { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; letter-spacing: 0.16em; color: var(--gold-deep); }
.turn-item .tagline::after { content: ""; width: 4.5vw; height: 1px; margin-left: 1.2rem; background: rgba(187, 158, 107, 0.6); }
.i1 { left: 12vw; top: 68.5%; width: 25vw; }
.i2 { left: 68.3vw; top: 69%; width: 27vw; }
.turn-mid { left: 41.8vw; top: 57.5%; width: 20vw; text-align: center; }
.turn-mid::before { content: ""; position: absolute; left: 50%; top: -11.5%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold); }
.turn-mid::after { content: ""; position: absolute; left: 50%; top: -9%; width: 1px; height: 6.5%; background: rgba(187, 158, 107, 0.7); }
.turn-mid .num { margin-bottom: 0.6rem; }
.turn-mid h3 { font-size: clamp(2.3rem, 3vw, 3.4rem); }
.turn-mid .quiet { margin: 0.8rem auto 0; max-width: 17rem; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(1.3rem, 1.649vw, 1.8rem); line-height: 1.3; color: var(--gold-deep); }
/* arriving: the phones lead. They glide in from the sides at a steeper tilt and settle, as if set down
   on a table (BloOm comes in with the Jiva phone); the words fade in around them as they land; the
   Ohm Center badge appears last. Played each time the chapter arrives. */
.chapter-turn.is-active .turn-card { animation: turn-card 1s cubic-bezier(.2, .75, .25, 1) both; }
.chapter-turn.is-active .turn-phone.left { animation: turn-left 1.05s cubic-bezier(.2, .75, .25, 1) 0.08s both; }
.chapter-turn.is-active .turn-phone.right { animation: turn-right 1.05s cubic-bezier(.2, .75, .25, 1) 0.05s both; }
.chapter-turn.is-active .turn-bowl { animation: turn-fade 1.1s ease-out 0.1s both; }
.chapter-turn.is-active .turn-logo { animation: turn-badge 0.5s cubic-bezier(.3, 1.4, .5, 1) 0.85s both; }
.chapter-turn.is-active :is(.turn-head, .turn-item, .turn-wave) { animation: turn-fade 0.7s ease-out 0.45s both; }
.chapter-turn.is-active .turn-head { animation-delay: 0.3s; }
@keyframes turn-card { from { opacity: 0; transform: translateX(-70px) rotate(-15deg); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes turn-left { from { opacity: 0; transform: translateX(-90px) rotate(19deg); } to { opacity: 1; transform: rotate(10deg); } }
@keyframes turn-right { from { opacity: 0; transform: translateX(90px) rotate(17deg); } to { opacity: 1; transform: rotate(8deg); } }
@keyframes turn-badge { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes turn-fade { from { opacity: 0; } to { opacity: 1; } }

/* 2025 — Cornell Tech: her words on the left by the line, a faint seal beside them; beneath, one calm
   row of prints with museum labels (Cornell, then spirituality on campus); Ohm Chants on the right (js/cornell.js) */
.chapter-cornell { padding: 0; }
.chapter-cornell > * { position: absolute; margin: 0; }
.cornell-seal { left: 52vw; top: 4%; width: 20vw; opacity: 0.06; filter: grayscale(1) sepia(0.6); pointer-events: none; z-index: 0; }
.chapter-cornell .body { left: 12vw; width: 46vw; top: 6%; max-width: none; text-align: left; z-index: 2; }
.chapter-cornell .kicker { color: var(--gold-deep); }
.chapter-cornell .title { font-size: clamp(2.8rem, 4.1vw, 4.6rem); line-height: 1.05; }
.chapter-cornell .title em { display: block; }
.chapter-cornell .text { max-width: 34rem; margin-left: 0; font-size: 1.149rem; line-height: 1.65; }
.c-gallery { left: 12vw; width: 58vw; top: 54%; display: flex; gap: 1.8vw; z-index: 1; }
.c-shot { margin: 0; flex: 1; min-width: 0; }
.c-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f4eee3; border-radius: 2px; box-shadow: 0 22px 40px -28px rgba(60, 40, 20, 0.55); }
.c-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.4s ease-in-out; }
.c-photo img.incoming { opacity: 0; }
.c-photo img.incoming.shown { opacity: 1; }
.c-shot figcaption { margin-top: 0.75rem; line-height: 1.25; transition: opacity 0.4s ease; }
.c-shot figcaption.swap { opacity: 0; }
.c-shot figcaption b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.251rem; color: var(--gold-deep); }
.c-shot figcaption span { display: block; margin-top: 0.15rem; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
/* on the side: a simple upright phone in the right corner, set apart by a fine line, its phases evenly
   spaced beneath */
.cornell-app { left: 76vw; right: 3vw; top: 22%; bottom: 4%; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.cornell-app::before { content: ""; position: absolute; left: -2.6vw; top: 0; bottom: 2%; width: 1px; background: linear-gradient(180deg, rgba(187, 158, 107, 0), rgba(187, 158, 107, 0.45) 15%, rgba(187, 158, 107, 0.45) 85%, rgba(187, 158, 107, 0)); }
.cornell-app .side-note { margin: 0 0 0.9rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.cornell-app .phone-frame { height: auto; flex: 1; min-height: 0; box-shadow: 0 30px 50px -30px rgba(50, 35, 15, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.cornell-app figcaption { width: 100%; margin-top: 1.1rem; display: grid; justify-items: center; gap: 0.7rem; }
.cornell-app .app-name { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.steps-mini { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; list-style: none; margin: 0; padding: 0; }
.steps-mini::before { content: ""; position: absolute; left: 16.7%; right: 16.7%; top: 3px; height: 1px; background: rgba(187, 158, 107, 0.45); }
.steps-mini li { position: relative; padding-top: 0.85rem; text-align: center; font-size: 0.72rem; line-height: 1.3; color: var(--muted); transition: color 0.4s ease; }
.steps-mini li::before { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; border: 1.2px solid rgba(187, 158, 107, 0.7); background: var(--ivory); transition: background 0.4s ease; }
.steps-mini li.done::before { background: rgba(187, 158, 107, 0.55); border-color: transparent; }
.steps-mini li.on { color: var(--ink); }
.steps-mini li.on::before { background: var(--gold); border-color: var(--gold); }
.steps-mini em { display: block; font-style: normal; font-size: 0.66rem; color: var(--gold-deep); }
/* arriving: the words, then the moments around them */
/* premium academic: Cornell carnelian used sparingly, a small-caps kicker ending in a hairline */
.chapter-cornell { --carnelian: #a5201c; }
.chapter-cornell .cornell-seal { mix-blend-mode: multiply; }
.chapter-cornell .kicker { display: inline-flex; align-items: center; gap: 0.9rem; color: var(--carnelian); letter-spacing: 0.3em; }
.chapter-cornell .kicker::after { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: 0.45; }
.chapter-cornell .title { font-weight: 500; letter-spacing: -0.005em; }
.chapter-cornell .title em { color: var(--carnelian); }
.cornell-app .side-note { font-family: var(--serif); font-size: 0.949rem; font-weight: 500; font-style: italic; letter-spacing: 0.02em; text-transform: none; }
.chapter-cornell :is(.body, .c-shot, .cornell-app, .cornell-seal) { opacity: 0; }
.chapter-cornell.is-active .cornell-seal { animation: c-fade 1.6s ease-out 0.1s both; }
.chapter-cornell.is-active .body { animation: c-rise 0.9s cubic-bezier(.2,.7,.2,1) 0.1s both; }
/* the prints rise softly into place, left to right */
.chapter-cornell.is-active .c-shot { animation: c-place 1.1s cubic-bezier(.2,.7,.2,1) var(--d) both; }
.chapter-cornell .s1 { --d: 0.5s; } .chapter-cornell .s2 { --d: 0.65s; } .chapter-cornell .e1 { --d: 0.8s; }
.chapter-cornell.is-active .cornell-app { animation: c-rise 1.1s cubic-bezier(.2,.7,.2,1) 1.05s both; }
.chapter-cornell.is-active .steps-mini::before { animation: c-draw 1.1s ease-out 1.7s both; transform-origin: left; }
@keyframes c-fade { from { opacity: 0; } to { opacity: var(--o, 1); } }
.cornell-seal { --o: 0.06; }
@keyframes c-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes c-place {
  0% { opacity: 0; translate: 0 16px; }
  100% { opacity: 1; translate: 0 0; }
}
@keyframes c-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.steps {
  list-style: none; margin-top: 4rem; text-align: left;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.steps li { font-size: 0.949rem; color: var(--muted); border-top: 1px solid rgba(187, 158, 107, 0.55); padding-top: 1.1rem; }
.steps li span { display: block; font-family: var(--serif); font-size: 1.749rem; color: var(--ink); line-height: 1.1; margin-bottom: 0.35rem; }

.chapter-noscript .body { max-width: 64rem; }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: start; }
.collage .photo { margin: 0; max-width: none; }
.collage .photo img { max-height: 24vh; }
.collage .photo:nth-child(odd) { transform: rotate(-2deg) translateY(1.5rem); }
.collage .photo:nth-child(even) { transform: rotate(1.5deg); }

/* Today: the line has come in to the middle and fades out at the top of the screen (like Values);
   beneath it a heading, then three parts of who I am side by side (js/today.js) */
.today-label { visibility: hidden; }             /* "Today" is said beneath the line instead */
.tl .gold-tail { stroke-width: 2; }
.chapter-today { flex-direction: column; justify-content: flex-start; padding: calc(21vh - var(--nav-h)) 5vw 0; }
.today-head { text-align: center; max-width: 60rem; }
.today-head .kicker { margin-bottom: 0.8rem; color: var(--gold); letter-spacing: 0.4em; }
.today-head .title { font-size: clamp(2.4rem, 3.4vw, 3.8rem); line-height: 1.05; }
.today-sub { max-width: 40rem; margin: 0.9rem auto 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.3vw, 1.3rem); line-height: 1.45; color: var(--ink-soft); }
.facets { display: grid; grid-template-columns: 1fr 1fr 1.3fr; width: 100%; max-width: 1400px; margin-top: 4vh; }
.facet { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 2.2vw; }
.facet + .facet { border-left: 1px solid rgba(187, 158, 107, 0.28); }
.facet-shot { position: relative; height: 34vh; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: 6px; background: var(--ivory-2); }
.facet-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease-in-out; }
.facet-shot img.on { opacity: 1; }
.facet h3 { margin: 1.4rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 2.6vw, 2.9rem); line-height: 1.05; color: var(--ink); }
.facet p { margin: 0.7rem 0 0; max-width: 25rem; font-family: var(--serif); font-size: clamp(1.1rem, 1.3vw, 1.32rem); line-height: 1.45; color: var(--ink-soft); }
.facet-projects { display: flex; justify-content: center; width: 100%; white-space: nowrap; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.facet-projects li { padding: 0 0.8rem; }
/* Building: one screen from each project, fanned out, Ohm Chants in front */
.fan { position: relative; width: 100%; height: 34vh; }
.fan img { position: absolute; top: 50%; left: 33%; width: 34%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; box-shadow: 0 22px 40px -24px rgba(50, 35, 15, 0.45);
  transition: left 0.7s cubic-bezier(.2,.7,.2,1), width 0.7s cubic-bezier(.2,.7,.2,1), rotate 0.7s cubic-bezier(.2,.7,.2,1), translate 0.7s cubic-bezier(.2,.7,.2,1); }
.fan .fan-l { left: 3%; translate: 0 -46%; rotate: -4deg; z-index: 1; }
.fan .fan-r { left: 63%; translate: 0 -46%; rotate: 4deg; z-index: 1; }
.fan .fan-c { left: 30%; width: 40%; translate: 0 -50%; z-index: 2; }
.facet-build:hover .fan-l { translate: -8px -46%; }
.facet-build:hover .fan-r { translate: 8px -46%; }
.facet-projects li + li { border-left: 1px solid rgba(187, 158, 107, 0.45); }
/* arriving: the heading, then the three parts one after another */
.chapter-today :is(.today-head > *, .facet) { opacity: 0; }
.chapter-today.is-active .today-head > * { animation: c-rise 0.9s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.chapter-today .today-head .kicker { --d: 0.1s; } .chapter-today .today-head .title { --d: 0.25s; } .chapter-today .today-sub { --d: 0.4s; }
.chapter-today.is-active .facet { animation: c-rise 1s cubic-bezier(.2,.7,.2,1) var(--d) both; }
.chapter-today .facet:nth-child(1) { --d: 0.5s; } .chapter-today .facet:nth-child(2) { --d: 0.65s; } .chapter-today .facet:nth-child(3) { --d: 0.8s; }

/* ───────────────── After the journey ───────────────── */
/* Let's connect: three quiet ways onward, right after Today */
.reach { padding: 16vh 6vw 18vh; text-align: center; }
.reach-links { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 7vh auto 0; border-top: 1px solid rgba(187, 158, 107, 0.4); border-bottom: 1px solid rgba(187, 158, 107, 0.4); }
.reach-link { position: relative; display: grid; gap: 0.5rem; padding: 2.6rem 2rem; text-align: left; transition: background 0.35s ease; }
.reach-link + .reach-link { border-left: 1px solid rgba(187, 158, 107, 0.4); }
.reach-link b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2vw, 2.1rem); color: var(--ink); }
.reach-link span { font-size: 0.949rem; color: var(--ink-soft); }
.reach-link i { position: absolute; right: 2rem; top: 2.8rem; font-style: normal; font-size: 1.3rem; color: var(--gold); transition: transform 0.35s ease; }
.reach-link:hover { background: rgba(187, 158, 107, 0.07); }
.reach-link:hover i { transform: translateX(6px); }
.values {
  position: relative;
  min-height: 100vh;
  padding: 40vh 16px 20vh;
  text-align: center;
}
.values-line {
  position: absolute; left: 50%; top: 0; width: 1.6px; height: 32vh;
  transform: translateX(-50%);
  background: linear-gradient(var(--gold), rgba(187, 158, 107, 0));
}
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 1rem 0; }
.stub { min-height: 60vh; padding: 20vh 16px; text-align: center; border-top: 1px solid var(--ivory-2); }

/* ───────────────── Portfolio page ─────────────────
   A heading and an index of the projects, then one project per row: its screens on one side and
   its story on the other, alternating sides. Each row rises in as it scrolls into view (js/portfolio.js) */
.pf { padding-top: var(--nav-h); }
/* the header sits where About's opening words do: the same distance below the nav */
.pf-head { max-width: 50rem; margin: 0 auto; padding: calc(6vh + 14px) 0 9vh; text-align: center; }

/* the project navigator: a sticky column on the left, like a small timeline; the project you're on is lit */
.pf-body { display: grid; grid-template-columns: 170px 1fr; gap: 4vw; padding: 0 calc(6.4vw + 170px) 0 2.4vw; }   /* the projects sit centred: as much space on the right as the navigator column takes on the left */
.pf-nav { position: sticky; top: calc(var(--nav-h) + 8vh); align-self: start; padding: 0.4rem 0 0; }
.pf-nav p { margin: 0 0 1.4rem; padding-left: 1.4rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.pf-nav ol { position: relative; margin: 0; padding: 0; list-style: none; }
.pf-nav ol::before { content: ""; position: absolute; left: 4px; top: 0.9rem; bottom: 0.9rem; width: 1px; background: rgba(187, 158, 107, 0.3); }
.pf-nav a { position: relative; display: block; padding: 0.7rem 0 0.7rem 1.4rem; font-family: var(--sans); font-size: 0.92rem; line-height: 1.2; color: var(--ink-soft); transition: color 0.3s ease; }
.pf-nav a span { display: none; }
.pf-nav a i { position: absolute; left: 2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgba(187, 158, 107, 0.45); transition: all 0.3s ease; }
.pf-nav a:hover { color: var(--ink); }
.pf-nav a.on { color: var(--ink); font-weight: 600; }
.pf-nav a.on i { left: 0; width: 9px; height: 9px; margin-top: -4.5px; background: var(--gold); box-shadow: 0 0 0 4px rgba(187, 158, 107, 0.16); }

.pf-project { padding: 9vh 0; border-top: 1px solid rgba(187, 158, 107, 0.3); scroll-margin-top: calc(var(--nav-h) + 2vh); }   /* a fine line between projects only */
.pf-row { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 5vw; }
.pf-project.flip .pf-media { order: 2; }
.pf-media { position: relative; height: min(48vh, 440px); }
/* three 4:5 screens: the middle one forward */
.pf-cards img { position: absolute; top: 50%; width: 36%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 26px 46px -28px rgba(50, 35, 15, 0.5); }
.pf-cards .pf-l { left: 1%; translate: 0 -45%; rotate: -4deg; }
.pf-cards .pf-r { right: 1%; translate: 0 -45%; rotate: 4deg; }
.pf-cards .pf-c { left: 50%; width: 42%; translate: -50% -50%; z-index: 2; }
/* phone screenshots in frames */
.pf-phones { display: flex; justify-content: center; align-items: center; gap: 3vw; height: auto; padding: 5% 0; }   /* as tall as its phones */
.pf-phones .phone-frame { flex: none; height: auto; width: 34%; aspect-ratio: 0.48; padding: 0; }   /* sized by width alone, so they always keep a phone's shape */
/* the screen is pinned inside the frame (not sized by height: 100%, which Safari doesn't resolve here) */
.pf-phones .phone-screen { position: absolute; top: 1.15%; bottom: 1.15%; left: 2.4%; right: 2.4%; width: auto; height: auto; }
.pf-phones .phone-frame:nth-child(2) { translate: 0 8%; }
.pf-phones-3 { gap: 1.8vw; }
.pf-phones-3 .phone-frame { width: 28%; }
.pf-phones-3 .phone-frame:nth-child(3) { translate: 0 -4%; }
.phone-soon { display: grid; place-items: center; background: #24211e; }
.phone-soon span { padding: 0 12%; text-align: center; font-family: var(--sans); font-style: italic; font-size: 0.949rem; color: rgba(255, 255, 255, 0.45); }
.pf-soon { display: grid; place-items: center; border: 1px dashed rgba(187, 158, 107, 0.5); border-radius: 14px; font-family: var(--sans); font-style: italic; font-size: 1.149rem; color: var(--muted); }
.pf-n { display: flex; align-items: center; gap: 1rem; margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; color: var(--gold); }
.pf-status { padding: 0.3rem 0.7rem; border: 1px solid rgba(187, 158, 107, 0.5); border-radius: 999px; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.pf-words h2 { margin: 0.9rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 3.3vw, 3.5rem); line-height: 1.02; color: var(--ink); }
.pf-line { margin: 0.8rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.5vw, 1.5rem); line-height: 1.35; color: var(--gold-deep); }
.pf-text { max-width: 31rem; margin: 1.2rem 0 0; font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); }
/* ── HOME: below the hero — the work first, then four photographs of the person behind it, then the invitation ── */
.hm { --wrap: min(1240px, calc(100vw - var(--u) * 5.5)); padding: 0 0 2vh; }   /* one container for every section: the nav's edges, capped at 1240px */
.hm > section { width: var(--wrap); margin-left: auto; margin-right: auto; }
.hm-first { position: relative; padding-top: 12vh; }
.hm-first .values-line { display: none; }
.hm-thumb { flex: none !important; width: 58px; height: 58px; overflow: hidden; border-radius: 12px; background: #efe9de; }
.hm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* things I've built: an editorial showcase — one featured project, two supporting */
.tb .wk-head { margin-bottom: 2rem !important; }
.tb-stage { position: relative; overflow: hidden; border-radius: 18px; background: transparent; border: 1px solid rgba(42, 40, 38, 0.08); }
.tb-scr { position: absolute; display: block; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(40, 28, 12, 0.45), 0 0 0 1px rgba(42, 40, 38, 0.06); transition: translate 0.8s cubic-bezier(.2,.7,.2,1); }
/* featured */
.tb-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4vw; align-items: center; }
.tb-ohm { aspect-ratio: 16 / 9; background: #f2eeed; }   /* a whisper of lavender, just enough to set it apart */
.tb-ohm .tb-scr { filter: contrast(1.1) saturate(1.04) brightness(0.98); box-shadow: 0 34px 60px -28px rgba(40, 28, 12, 0.55), 0 0 0 1px rgba(42, 40, 38, 0.14); }   /* more definition, not more brightness */
.tb-ohm .s1, .tb-ohm .s3 { width: 21%; top: 20%; }
.tb-ohm .s1 { left: 16%; rotate: -5deg; }
.tb-ohm .s3 { right: 16%; rotate: 5deg; }
.tb-ohm .s2 { width: 25%; left: 37.5%; top: 10%; z-index: 2; }
.tb-feature:hover .s1 { translate: -8px 0; } .tb-feature:hover .s3 { translate: 8px 0; } .tb-feature:hover .s2 { translate: 0 -8px; }
.tb-k { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.tb-copy h3 { margin: 0.8rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.tb-copy > p:not(.tb-k) { max-width: 28rem; margin: 1rem 0 0; font-size: 1.051rem; line-height: 1.7; color: var(--ink-soft); }
.tb-facts { display: flex; gap: 3.4rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(42, 40, 38, 0.12); list-style: none; }
.tb-facts li { font-size: 0.949rem; color: var(--ink-soft); }
.tb-facts b { display: block; margin-bottom: 0.45rem; font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1; color: var(--ink); }
.tb-copy h3 a { color: inherit; }
.tb-actions { display: flex; align-items: center; gap: 3.2rem; margin-top: 1.8rem; }
.tb-store { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem 0.55rem 0.8rem; border-radius: 10px; background: var(--ink); color: #fff; transition: transform 0.3s; }
.tb-store:hover { transform: translateY(-2px); }
.tb-store svg { width: 20px; height: 20px; fill: #fff; }
.tb-store span { display: grid; font-size: 0.949rem; font-weight: 700; line-height: 1.05; }
.tb-store small { font-size: 0.56rem; font-weight: 400; letter-spacing: 0.03em; }
.tb-feature:has(.tb-go:hover) .tb-go i, .tb-go:hover i { transform: translateX(4px); }
.tb-go { display: inline-flex; gap: 0.5rem; margin-top: 0; font-size: 0.949rem; font-weight: 700; color: var(--ink); }
.tb-go i { font-style: normal; color: var(--gold); transition: transform 0.3s; }
.tb-feature:hover .tb-go i { transform: translateX(4px); }
/* supporting */
.tb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.4rem; }
.tb-card { display: block; }
.tb-amz, .tb-reg { aspect-ratio: 16 / 9; }

.tb-amz .a1, .tb-amz .a2 { width: 33%; top: 9%; }   /* larger, cropped by the bottom edge */
.tb-amz .a1 { left: 14%; }
.tb-amz .a2 { right: 14%; top: 22%; }
.tb-card:hover .a1 { translate: 0 -8px; } .tb-card:hover .a2 { translate: 0 -14px; }
.tb-reg { display: grid; place-items: end center; }
.tb-reg { position: relative; }
.tb-inset { position: absolute; right: 4%; bottom: 7%; z-index: 2; width: 38%; border-radius: 10px; box-shadow: 0 24px 46px -20px rgba(20, 16, 12, 0.55), 0 0 0 1px rgba(42, 40, 38, 0.1); transition: translate 0.8s cubic-bezier(.2,.7,.2,1); }
.tb-card:hover .tb-inset { translate: -6px -10px; }
.tb-web { width: 84%; margin-bottom: -6%; margin-right: 10%;   /* large, cropped by the bottom edge */ overflow: hidden; border-radius: 10px; background: #1e1e1e; box-shadow: 0 30px 60px -30px rgba(40, 28, 12, 0.5); transition: translate 0.8s cubic-bezier(.2,.7,.2,1); }
.tb-web img { display: block; width: 100%; height: auto; }
.tb-card:hover .tb-web { translate: 0 -8px; }
.tb-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: 1.2rem; }
.tb-arrow { display: inline-block; margin-left: 0.15em; font-family: var(--sans); font-size: 0.55em; color: var(--gold); vertical-align: 0.35em; transition: transform 0.3s; }
.tb-card:hover .tb-arrow, .tb-copy h3 a:hover .tb-arrow { transform: translate(3px, -3px); }
.tb-card .tb-stage, .tb-feature .tb-stage { transition: border-color 0.3s, box-shadow 0.4s; }
.tb-card:hover .tb-stage, .tb-feature .tb-stage:hover { border-color: rgba(42, 40, 38, 0.2); box-shadow: 0 24px 50px -36px rgba(40, 28, 12, 0.4); }
.tb-info h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.tb-info p { margin: 0.35rem 0 0; font-size: 0.949rem; color: var(--ink-soft); }
.tb-info small { flex: none; margin-top: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid rgba(42, 40, 38, 0.15); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.tb-feature, .tb-card { opacity: 0; translate: 0 26px; transition: opacity 1s ease, translate 1.1s cubic-bezier(.2,.7,.2,1); }
.tb-card + .tb-card { transition-delay: 0.12s; }
.tb-feature.in, .tb-card.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .tb-feature, .tb-card { opacity: 1; translate: none; } }
/* moments within: one intro line, then a strip of photos at varied heights and offsets, no captions */
.hm > section.ots { width: 100%; margin-top: 11vh; padding: 0 calc(var(--u) * 2.9) 0 calc(var(--u) * 2.6); }
.ots-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.2rem 3rem; margin-top: -0.4rem; }
.ots-vals { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(42, 40, 38, 0.1); }   /* the values sit under the photos, as their caption */
.ots-vk { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.ots-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ots-pills li { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid rgba(42, 40, 38, 0.18); font-size: 0.849rem; color: var(--ink); background: #fffdf9; }
.ots-intro { max-width: 36rem; margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.ots-strip { padding: 2rem 0 0.6rem; }   /* static: the staggered photos stay put */
.ots-strip::-webkit-scrollbar { display: none; }
.ots-strip.grabbing { cursor: grabbing; }
.ots-strip ul { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.4vw; width: 100%; margin: 0; padding: 0; list-style: none; }
.ots-strip li { flex: none; }
.ots-strip img { display: block; height: 100%; width: 100%; object-fit: cover; border-radius: 12px; filter: sepia(0.12) saturate(0.92) contrast(1.03) brightness(1.02);   /* one light, warm treatment so the set feels curated */ pointer-events: none; transition: scale 0.8s cubic-bezier(.2,.7,.2,1); }
.ots-strip li { overflow: hidden; border-radius: 12px; }
.ots-strip li:hover img { scale: 1.04; }
/* varied sizes and offsets; Zion is the focal point */
.ots .m1 { height: 16.44vw; width: 12.97vw; margin-top: 0.98vw; }
.ots .m2 { height: 14.62vw; width: 12.01vw; margin-top: 0; }
.ots .m3 { height: 20.10vw; width: 16.33vw; margin-top: 0.49vw; }
.ots .m4 { height: 13.70vw; width: 18.73vw; margin-top: 1.88vw; }
.ots .m5 { height: 17.36vw; width: 12.97vw; margin-top: 0.20vw; }
.ots .m6 { height: 15.07vw; width: 14.42vw; margin-top: 1.35vw; }
.ots .m6 img { object-position: 50% 30%; }
.ots li { opacity: 0; translate: 0 18px; transition: opacity 0.9s ease, translate 1s cubic-bezier(.2,.7,.2,1); }
.ots li.in { opacity: 1; translate: 0 0; }
.ots li:nth-child(2) { transition-delay: 0.06s; } .ots li:nth-child(3) { transition-delay: 0.12s; } .ots li:nth-child(4) { transition-delay: 0.18s; } .ots li:nth-child(5) { transition-delay: 0.24s; } .ots li:nth-child(6) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .ots li { opacity: 1; translate: none; } }
/* beyond the work: the hero's split again — photo edge to edge, words beside it, same type and buttons */
.hm > section.bw { display: grid; grid-template-columns: 60fr 40fr; width: 100%; min-height: 86vh; margin-top: 18vh; }
.bw-photo { order: 2; overflow: hidden; }
.bw-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.bw-copy { align-self: center; justify-self: end; max-width: 40rem; margin-right: calc(var(--u) * 6.5); padding: 8vh 0 8vh calc(var(--u) * 2.6); }
.bw h2 { margin-top: calc(var(--u) * 2); font-family: var(--serif); font-weight: 500; font-size: max(2rem, calc(var(--u) * 3.2)); line-height: 1.08; letter-spacing: -0.003em; color: var(--ink); }
.bw h2 em { font-style: normal; color: var(--gold-deep); }
.bw-values { flex-wrap: wrap; justify-content: flex-start !important; gap: 0.6rem 1rem !important; margin-top: calc(var(--u) * 3) !important; font-size: max(12px, calc(var(--u) * 1)) !important; }
.bw-values i { font-style: normal; color: var(--gold); }
.bw-btn { gap: 0.6rem; margin-top: calc(var(--u) * 3.4); padding: 0 2rem; height: clamp(50px, calc(var(--u) * 4), 62px); font-size: clamp(1rem, calc(var(--u) * 1.2), 1.251rem); }
.bw-copy > *, .bw-photo img { opacity: 0; translate: 0 24px; transition: opacity 1s ease, translate 1.1s cubic-bezier(.2,.7,.2,1); }
.bw-photo img { translate: 0 0; scale: 1.04; transition: opacity 1.2s ease, scale 1.8s cubic-bezier(.2,.7,.2,1); }
.bw-copy > .in, .bw-photo img.in { opacity: 1; translate: 0 0; scale: 1; }
.bw-copy > :nth-child(2) { transition-delay: 0.1s; } .bw-copy > :nth-child(3) { transition-delay: 0.2s; } .bw-copy > :nth-child(4) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .bw-copy > *, .bw-photo img { opacity: 1; translate: none; scale: 1; } }
/* hero: small logos tucked under the buttons */
.hero-logos { display: flex; align-items: center; gap: 1.6rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.hero-logos li { display: grid; place-items: center; opacity: 0.85; transition: opacity 0.3s, transform 0.3s; }
.hero-logos li:hover { opacity: 1; transform: translateY(-2px); }
.hero-logos .hl-seal img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }
.hero-logos .hl-app img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.hero-logos .hl-word img { height: 24px; width: auto; }
.hero-logos .amz-word { font-size: 1.051rem; }
/* values: a quiet list, with one small photo beside it that changes as you move through them */
.st.st-values.vq { display: grid; grid-template-columns: minmax(220px, 0.7fr) 1.3fr; gap: 5vw; align-items: center; max-width: 60rem; text-align: left; }
.vq-pic { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 160px 160px 18px 18px; }
.vq-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.04; transition: opacity 0.8s ease, scale 1.6s cubic-bezier(.2,.7,.2,1); }
.vq-pic img.on { opacity: 1; scale: 1; }
.vq-list ol { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.vq-list li { border-top: 1px solid rgba(42, 40, 38, 0.12); }
.vq-list li:last-child { border-bottom: 1px solid rgba(42, 40, 38, 0.12); }
.vq-list button { display: block; width: 100%; padding: 1.1rem 0; border: 0; background: none; text-align: left; cursor: pointer; }
.vq-list b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; color: rgba(42, 40, 38, 0.4); transition: color 0.4s; }
.vq-list span { display: block; max-height: 0; overflow: hidden; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); opacity: 0; transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease; }
.vq-list li.on b { color: var(--ink); }
.vq-list li.on b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 0.6rem; vertical-align: 0.35em; border-radius: 50%; background: var(--gold); }
.vq-list li.on span { max-height: 5em; margin-top: 0.4rem; opacity: 1; }
/* the story: centred statements, no titles */
.st { max-width: 62rem; margin: 18vh auto 0 !important; text-align: center; }
.st-big { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); }
.st-big em { color: var(--gold-deep); }
.st-why .sv-k { margin-bottom: 1.4rem; }
.st-why .st-big + .sv-link { margin-top: 2rem; }
.st-small { max-width: 34rem; margin: 1.6rem auto 1.6rem; font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.st-why .sv-link { display: inline-block; }
.st-words { display: flex; justify-content: center; flex-wrap: nowrap; gap: 0.2rem 0; margin: 0; padding: 0; list-style: none; }
.st-words li + li::before { content: "·"; margin: 0 0.5em; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.5rem); color: rgba(42, 40, 38, 0.25); }
.st-words button { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 3.5rem); letter-spacing: -0.02em; color: rgba(42, 40, 38, 0.28); transition: color 0.4s; }
.st-words button.on, .st-words button:hover { color: var(--gold-deep); }
.st-line { min-height: 1.8em; margin: 1.4rem auto 0; font-size: 1.08rem; color: var(--ink-soft); }
.st-line.swap { animation: st-in 0.5s ease; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }
.st-lead { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.st-mid { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.st-mid em { color: var(--gold-deep); }
.st > *, .st-lead { opacity: 0; translate: 0 24px; transition: opacity 1s ease, translate 1.1s cubic-bezier(.2,.7,.2,1); }
.st > *:nth-child(2) { transition-delay: 0.12s; } .st > *:nth-child(3) { transition-delay: 0.24s; }
.st > .in, .st-lead.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .st > *, .st-lead { opacity: 1; translate: none; } }
/* selected work runs edge to edge like the hero: same gutters as the nav, bigger cards */
.hm > section.hm-work { width: 100%; padding: 0 calc(var(--u) * 2.9) 0 calc(var(--u) * 2.6) !important; margin-top: 14vh !important; }
.hm-work .hz { --in: calc(var(--u) * 2.6); margin: 0 calc(var(--u) * -2.9) 0 calc(var(--u) * -2.6); }
.hm-work .hz-card { width: clamp(340px, 44vw, 720px); }
/* the work header: one quiet line — label, a hairline running across, then the controls */
.wk-head { align-items: center !important; gap: 1.4rem !important; margin-bottom: 1.6rem !important; }
.wk-label { flex: none; margin: 0; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
.wk-rule { flex: 1; height: 1px; background: rgba(42, 40, 38, 0.15); }
.wk-all { flex: none; font-size: 0.88rem; font-weight: 700; color: var(--ink); transition: color 0.2s; }
.wk-all:hover { color: var(--gold-deep); }
.wk-all span { color: var(--gold); }
.wk-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.wk-tools { display: flex; align-items: center; gap: 1.6rem; }
/* logos: in colour, bigger, drifting slowly in a loop (pauses on hover) */
.lg { width: 100vw !important; margin: 0 calc(50% - 50vw) !important; overflow: hidden; padding: 3.2rem 0; border-bottom: 1px solid rgba(42, 40, 38, 0.08); }
.lg-track { display: flex; align-items: center; gap: 5.5rem; width: max-content; margin: 0; padding: 0; list-style: none; animation: lg-drift 45s linear infinite; }
.lg:hover .lg-track { animation-play-state: paused; }
@keyframes lg-drift { to { transform: translateX(calc(-100% / 3)); } }
.lg li { flex: none; display: grid; place-items: center; }
.lg-seal img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }
.lg-app img { width: 62px; height: 62px; border-radius: 15px; object-fit: cover; box-shadow: 0 10px 22px -12px rgba(40, 28, 12, 0.5); }
.lg-word img { height: 48px; width: auto; }
.amz-word { display: inline-flex; align-items: baseline; gap: 0.3rem; font-family: var(--sans); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.04em; color: #232f3e; }
.amz-word b { font-weight: 400; color: #25d1da; }
@media (prefers-reduced-motion: reduce) { .lg-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .lg li[aria-hidden] { display: none; } }
/* mission: words + a photo, the same split as the hero */
.mv { margin-top: 14vh; }
.mv-top { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 6vw; align-items: center; }
.mv-h { margin: 1rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.mv-h em { color: var(--gold-deep); }
.mv-why { max-width: 34rem; margin: 1.6rem 0 2rem; font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.mv-btn { gap: 0.6rem; padding: 0.95rem 1.7rem; font-size: 0.949rem; font-weight: 700; }
.mv-photo { position: relative; margin: 0; }
.mv-photo::before { content: ""; position: absolute; inset: 7% -5% -5% 7%; border: 1.5px solid var(--gold); border-radius: 18px; }   /* an offset gold frame */
.mv-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 18px; }
/* values: four cards, each with its own colour bar and number */
.mv-k { margin-top: 13vh !important; }
.mv-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.mv-values li { --c: var(--gold); position: relative; padding: 2rem 1.6rem 1.8rem; border-radius: 16px; background: transparent; border: 1px solid rgba(42, 40, 38, 0.1); transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.mv-values li::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.mv-values li:hover { transform: translateY(-4px); }
.mv-values li { --c: var(--gold); }   /* one quiet accent for all four */
.mv-values i { display: block; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--c); }
.mv-values b { display: block; margin-top: 1.4rem; font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.mv-values span { display: block; margin-top: 0.6rem; font-size: 0.949rem; line-height: 1.6; color: var(--ink-soft); }
.mv-words, .mv-photo, .mv-values li { opacity: 0; translate: 0 24px; transition: opacity 0.9s ease, translate 1s cubic-bezier(.2,.7,.2,1), transform 0.4s cubic-bezier(.2,.7,.2,1); }
.mv-photo { transition-delay: 0.12s; }
.mv-values li:nth-child(2) { transition-delay: 0.08s; } .mv-values li:nth-child(3) { transition-delay: 0.16s; } .mv-values li:nth-child(4) { transition-delay: 0.24s; }
.mv-words.in, .mv-photo.in, .mv-values li.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .mv-words, .mv-photo, .mv-values li { opacity: 1; translate: none; } }
.hm-work { padding-top: 14vh; }
/* credibility strip under the hero */
.hm-trust { padding: 2.2rem 0; border-bottom: 1px solid rgba(187, 158, 107, 0.3); text-align: center; }
.hm-trust p { margin: 0; font-size: 0.949rem; letter-spacing: 0.02em; color: var(--muted); }
.hm-trust b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: 0; color: var(--ink); }
.hm-trust i { margin: 0 1.1rem; font-style: normal; color: var(--gold); }
/* selected work: a horizontal row of project cards */
.hz-nav { display: flex; gap: 0.5rem; }
.hz-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(123, 99, 66, 0.3); background: none; font-size: 1rem; color: var(--gold-deep); cursor: pointer; transition: background 0.2s, opacity 0.2s; }
.hz-nav button:hover { background: rgba(187, 158, 107, 0.12); }
.hz-nav button:disabled { opacity: 0.3; cursor: default; background: none; }
.hz { --in: calc((100vw - var(--wrap)) / 2); margin: 0 calc(50% - 50vw); padding: 0 var(--in); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--in); scrollbar-width: none; cursor: grab; outline: none; }
.hz::-webkit-scrollbar { display: none; }
.hz.grabbing { cursor: grabbing; scroll-snap-type: none; }
.hz-track { display: flex; gap: 1.6rem; width: max-content; margin: 0; padding: 0.4rem 0 2rem; list-style: none; }
.hz-track li { scroll-snap-align: start; opacity: 0; translate: 40px 0; transition: opacity 0.8s ease, translate 0.9s cubic-bezier(.2,.7,.2,1); }
.hz-track li:nth-child(2) { transition-delay: 0.08s; } .hz-track li:nth-child(3) { transition-delay: 0.16s; } .hz-track li:nth-child(4) { transition-delay: 0.24s; } .hz-track li:nth-child(5) { transition-delay: 0.32s; }
.hz-track li.in { opacity: 1; translate: 0 0; }
.hz-card { display: block; width: clamp(340px, 40vw, 600px); user-select: none; -webkit-user-select: none; }
.hz-stage { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 24px; transition: background-color 0.5s; background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(255, 252, 244, 0.9), rgba(255, 252, 244, 0) 70%), #efe9de; }
/* each project in its own brand colour: its name top-left, one screen rising from the bottom edge */
.hz-color { place-items: end center; }
.hz-brand { position: absolute; left: 1.4rem; top: 1.3rem; z-index: 2; display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; }
.hz-icon { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.4); }
.hz-screen { position: relative; display: block; width: 40%; margin-bottom: -18%; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 50px -20px rgba(0, 0, 0, 0.45); transition: translate 0.7s cubic-bezier(.2,.7,.2,1); }
.hz-screen-web { align-self: center; width: 84%; margin-bottom: 0; border-radius: 10px; transition: translate 0.7s cubic-bezier(.2,.7,.2,1); }
.hz-card:hover .hz-screen, .hz-card:hover .hz-screen-web { translate: 0 -8px; }
.hz-sg { place-items: center !important; background: #fffdf9; }
.hz-sgs { background: #fffdf9; }
.hz-sg .hz-glow { width: 46%; }
/* every card on clean warm white with a hairline: the screens carry the colour */
.hz-color { border: 1px solid rgba(42, 40, 38, 0.08); }
/* Sangha: the five layers, side by side */
.hz-layers { display: flex; align-items: flex-end; justify-content: center; width: 88%; }
.hz-layers img { width: 22%; height: auto; margin: 0 -1.5%; transition: translate 0.6s cubic-bezier(.2,.7,.2,1); }
.hz-layers img:nth-child(odd) { translate: 0 -4%; }
.hz-card:hover .hz-layers img { translate: 0 -8%; }
.hz-card:hover .hz-layers img:nth-child(2) { transition-delay: 0.05s; } .hz-card:hover .hz-layers img:nth-child(3) { transition-delay: 0.1s; } .hz-card:hover .hz-layers img:nth-child(4) { transition-delay: 0.15s; } .hz-card:hover .hz-layers img:nth-child(5) { transition-delay: 0.2s; }
.hz-ohm { background: #fffdf9; }
.hz-ohm .hz-brand { color: #5a3577; }
.hz-par { background: #fffdf9; }
.hz-par .hz-brand { color: #e8d3a3; }
.hz-reg { background: #fffdf9; }
.hz-reg .hz-brand { color: #f0d9c4; }
.hz-amz { background: #fffdf9; }
.hz-amz .hz-brand { color: #5fd3e0; text-transform: lowercase; font-size: 1rem; letter-spacing: 0; }
.hz-card:hover .hz-color { background-color: inherit; }
/* each project shown as a zoomed-in detail of its real screens, edge to edge */
.hz-shot { background: #efe9de; }
.hz-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s cubic-bezier(.2,.7,.2,1); }
.hz-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.08); pointer-events: none; }
.hz-card:hover .hz-shot img { scale: 1.05; }
.hz-pair { display: flex; gap: 6%; width: 64%; translate: 0 16%; transition: translate 0.6s cubic-bezier(.2,.7,.2,1); }
.hz-pair .c1-device:last-child { translate: 0 10%; }
.hz-stage .c1-device { flex: 1; padding: 6px; box-shadow: 0 30px 50px -28px rgba(60, 40, 20, 0.6); }
.hz-web { width: 82%; overflow: hidden; border-radius: 8px; background: #1e1e1e; box-shadow: 0 30px 50px -28px rgba(40, 28, 12, 0.6); transition: translate 0.6s cubic-bezier(.2,.7,.2,1); }
.hz-web img { display: block; width: 100%; height: auto; }
.hz-card:hover .hz-pair { translate: 0 10%; }
.hz-card:hover .hz-stage:not(.hz-color) { background-color: #ebe3d4; }
.hz-card:hover .hz-web { translate: 0 -6px; }
.hz-glow { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff 36%, rgba(255, 249, 226, 0.9) 50%, rgba(250, 238, 196, 0.35) 62%, rgba(250, 238, 196, 0) 72%); transition: scale 0.8s cubic-bezier(.2,.7,.2,1); }
.hz-card:hover .hz-glow { scale: 1.12; }
.hz-soon { position: relative; font-size: 0.8rem; letter-spacing: 0.35em; text-indent: 0.35em; text-transform: uppercase; color: #52703d; }
.hz-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: 1.1rem; padding: 0 0.2rem; }
.hz-card b { display: inline-block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s cubic-bezier(.2,.7,.2,1); }
.hz-card:hover b { background-size: 100% 1px; }
.hz-card span:not(.hz-soon):not(.hz-glow) { display: block; margin-top: 0.15rem; font-size: 0.94rem; color: var(--ink-soft); }
.hz-card small { flex: none; margin-top: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid rgba(187, 158, 107, 0.4); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.hz-foot { display: flex; align-items: center; gap: 2rem; margin-top: 0.4rem; }
.hz-bar { position: relative; flex: 1; height: 1px; background: rgba(187, 158, 107, 0.3); }
.hz-bar i { position: absolute; top: -1px; height: 3px; border-radius: 2px; background: var(--gold); transition: left 0.15s linear; }
/* who I am: the sentence centred above, then two equal halves, like two pages of a book */
.me { margin-top: 16vh; }
.me-k { text-align: center; }
.me-line { max-width: 48rem; margin: 1rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3.8rem); line-height: 1.15; color: var(--ink); }
.me-line em { color: var(--gold-deep); }
.me-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 3.4rem; }
.me-half { margin: 0; }
.me-half img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -38px rgba(60, 40, 20, 0.5); transition: scale 1s cubic-bezier(.2,.7,.2,1); }
.me-half:last-child img { object-position: 50% 35%; }
.me-half:hover img { scale: 1.015; }
.me-half figcaption { max-width: 30rem; margin-top: 1.2rem; padding: 0 0.3rem; font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
.me-half small { display: block; margin-bottom: 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.me-line, .me-half { opacity: 0; translate: 0 26px; transition: opacity 1s ease, translate 1.1s cubic-bezier(.2,.7,.2,1); }
.me-half + .me-half { transition-delay: 0.12s; }
.me-line.in, .me-half.in { opacity: 1; translate: 0 0; }
.me-values { margin-top: 9vh; }
.me-values ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4vw; margin: 1.4rem 0 2.6rem; padding: 0; list-style: none; }
.me-values li { padding-top: 1.1rem; border-top: 1px solid rgba(187, 158, 107, 0.45); opacity: 0; translate: 0 20px; transition: opacity 0.8s ease, translate 0.9s cubic-bezier(.2,.7,.2,1); }
.me-values li:nth-child(2) { transition-delay: 0.1s; } .me-values li:nth-child(3) { transition-delay: 0.2s; } .me-values li:nth-child(4) { transition-delay: 0.3s; }
.me-values li.in { opacity: 1; translate: 0 0; }
.me-values b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--ink); }
.me-values span { display: block; margin-top: 0.4rem; font-size: 0.949rem; line-height: 1.6; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .me-line, .me-half, .me-values li { opacity: 1; translate: none; transition: none; } }
/* beyond the work: a loose, asymmetric arrangement — larger photos, varied sizes, one crossing the middle */
.sides { max-width: 1100px; margin: 18vh auto 0; }
.sides > .sv-k { text-align: center; }
.sides-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; margin-top: 3rem; }
.sd { margin: 0; }
.sd img { display: block; width: 100%; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(60, 40, 20, 0.5); }
.sd figcaption { margin-top: 1rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.3rem); line-height: 1.05; color: var(--ink); }
.sd-1 { grid-column: 1 / 7; grid-row: 1; }
.sd img { will-change: translate; }
.sd-1 img { aspect-ratio: 4 / 3; }
.sd-2 { grid-column: 7 / 11; grid-row: 1; z-index: 2; margin: 14vh 0 0 -3vw; }   /* crosses slightly toward the middle, over the first */
.sd-2 img { aspect-ratio: 4 / 5; border-radius: 999px 999px 20px 20px; }
.sd-2 figcaption { font-style: italic; font-size: clamp(2.2rem, 3.4vw, 3.6rem); color: var(--gold-deep); }   /* the one larger caption */
.sd-3 { grid-column: 2 / 5; grid-row: 2; margin-top: 6vh; }
.sd-3 img { aspect-ratio: 3 / 4; }
.sd-4 { grid-column: 6 / 12; grid-row: 2; margin-top: 14vh; }
.sd-4 img { aspect-ratio: 3 / 2; object-position: 50% 60%; }
.sd-4 figcaption { font-style: italic; color: var(--gold-deep); }
.sd img { transition: rotate 0.6s cubic-bezier(.2,.7,.2,1); }
.sd:hover img { rotate: -1.2deg; }
/* captions reveal word by word */
.sd figcaption span { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.sd figcaption i { display: inline-block; font-style: inherit; translate: 0 110%; transition: translate 0.8s cubic-bezier(.2,.7,.2,1); }
.sd.in figcaption i { translate: 0 0; }
.sd figcaption span:nth-child(2) i { transition-delay: 0.08s; } .sd figcaption span:nth-child(3) i { transition-delay: 0.16s; } .sd figcaption span:nth-child(4) i { transition-delay: 0.24s; } .sd figcaption span:nth-child(5) i { transition-delay: 0.32s; }
/* the closing underline draws itself */
.hm-draw { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size 1.2s cubic-bezier(.2,.7,.2,1) 0.5s; }
.sides-end.in .hm-draw { background-size: 100% 2px; }
.sd, .sides-end { opacity: 0; translate: 0 30px; transition: opacity 1s ease, translate 1.1s cubic-bezier(.2,.7,.2,1); }
.sd.in, .sides-end.in { opacity: 1; translate: 0 0; }
.sides-end { display: grid; justify-items: center; gap: 1.2rem; margin-top: 12vh; text-align: center; }
.sides-end p { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.1; color: var(--ink); }
.sides-end em { color: var(--gold-deep); }
/* the invitation: one soft beige band with a gentle glow */
/* the close: a full-bleed warm band (like the hero, edge to edge), with the footer inside it */
.hm-end { margin-top: 8vh; background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255, 252, 244, 0.9), rgba(255, 252, 244, 0) 70%), #efe9de; }
.hm-close { width: min(1240px, calc(100vw - var(--u) * 5.5)); margin: 0 auto; padding: 14vh 0 12vh; text-align: center; }
.ft { display: flex; justify-content: space-between; align-items: center; gap: 2rem; width: min(1240px, calc(100vw - var(--u) * 5.5)); margin: 0 auto; padding: 1.8rem 0 2.2rem; border-top: 1px solid rgba(187, 158, 107, 0.35); font-size: 0.88rem; color: var(--muted); }
.ft-logo { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.ft nav { display: flex; gap: 2rem; }
.ft nav a { color: var(--ink-soft); transition: color 0.2s; }
.ft nav a:hover { color: var(--gold-deep); }
.ft p { margin: 0; }
.hm-close .sv-k { margin-bottom: 1rem; }
.hm-close h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.2vw, 3.2rem); line-height: 1.1; color: var(--ink); }
.hm-close h2 em { color: var(--gold-deep); }
.hm-close p:not(.sv-k) { margin: 0.8rem 0 1.8rem; font-size: 1.02rem; color: var(--ink-soft); }
.hm-actions { display: flex; justify-content: center; align-items: center; gap: 1.8rem; }

/* ── HOME · modern pass: tighter, crisper, more contrast — same fonts and palette as the rest of the site ── */
.hm .sv-h, .me-line, .hm-close h2 { letter-spacing: -0.02em; }
.hm .sv-h { font-size: clamp(2.6rem, 4.2vw, 4.4rem); line-height: 1; }
.me-line { font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: 0.98; }
.hm-close h2 { font-size: clamp(2.6rem, 4.4vw, 4.6rem); line-height: 1; }
.hm .sv-k { font-size: 0.7rem; letter-spacing: 0.28em; color: var(--ink-soft); }
.hz-stage, .me-half img { border-radius: 14px; box-shadow: none; }
.hz-stage { border: 1px solid rgba(42, 40, 38, 0.06); }
.hz-screen { border-radius: 16px 16px 0 0; box-shadow: 0 -6px 30px -18px rgba(0, 0, 0, 0.35); }
.hz-card b { font-family: var(--sans); font-weight: 700; font-size: 1.051rem; letter-spacing: -0.01em; }
.hz-card span:not(.hz-soon):not(.hz-glow):not(.hz-brand) { font-size: 0.9rem; color: var(--muted); }
.hz-card small { border-color: rgba(42, 40, 38, 0.15); color: var(--ink-soft); }
.hz-nav button { border-color: rgba(42, 40, 38, 0.2); color: var(--ink); }
.hm-trust b { font-family: var(--sans); font-weight: 700; font-size: 0.949rem; letter-spacing: 0.02em; }
.hm-trust i { color: rgba(42, 40, 38, 0.3); }
.me-values b { font-family: var(--sans); font-weight: 700; font-size: 1.051rem; letter-spacing: -0.01em; }
.me-values li { border-top-color: rgba(42, 40, 38, 0.15); }
.hm-end { background: #1c1a17; color: #f3eee6; }   /* the close goes dark, a calm, modern bookend to the bright hero */
.hm-close h2 { color: #f6f1e8; }
.hm-close h2 em { color: #d8b878; }
.hm-close p:not(.sv-k) { color: rgba(243, 238, 230, 0.7) !important; }
.hm-end .sv-k { color: rgba(243, 238, 230, 0.55); }
.hm-end .btn-dark { background: #f3eee6; color: #1c1a17; }
.hm-end .btn-dark:hover { background: #fff; }
.hm-end .sv-link { color: #f3eee6; }
.ft { border-top-color: rgba(243, 238, 230, 0.12); color: rgba(243, 238, 230, 0.5); }
.ft-logo { color: #f3eee6; }
.ft nav a { color: rgba(243, 238, 230, 0.75); }
.ft nav a:hover { color: #d8b878; }

/* ── SERVICES + CONTACT ── */
.sv { padding: calc(var(--nav-h) + 4vh) calc(6.4vw + 170px) 14vh; }
.sv-head { max-width: 50rem; margin: 0 auto; padding: 6vh 0 4vh; text-align: center; }
.sv-head .text + .text { margin-top: 0.8rem; }
.sv-k { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
/* hero */
.sv-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4vw; align-items: center; padding: 7vh 0 4vh; }
.sv-hero h1 { margin: 1rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 4.2vw, 4.6rem); line-height: 1.04; color: var(--ink); }
.sv-hero h1 em { color: var(--gold-deep); }
.sv-intro { max-width: 36rem; margin: 1.4rem 0 0; font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.sv-intro + .sv-intro { margin-top: 0.9rem; }
.sv-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.2rem; }
.sv-cta { gap: 0.6rem; padding: 0.95rem 1.7rem; font-size: 0.949rem; font-weight: 700; }
.sv-link { position: relative; font-size: 0.949rem; font-weight: 700; color: var(--ink); }
.sv-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform-origin: left; transition: transform 0.3s; }
.sv-link:hover::after { transform: scaleX(0.4); }
.sv-phones { padding: 1rem 0; }
.sv-hero .sv-phones .pr-p1, .sv-hero .sv-phones .pr-p3 { width: clamp(104px, 8.4vw, 136px); }
.sv-hero .sv-phones .pr-p2 { width: clamp(124px, 10vw, 162px); }
.sv-hero .sv-phones .pr-p1 { margin-right: -22px; }
.sv-hero .sv-phones .pr-p3 { margin-left: -22px; }
.sv-hero .sv-phones .c1-device { padding: 6px; }
/* sections */
.sv-sec { margin-top: 13vh; }
.sv-sechead { margin-bottom: 2.2rem; }
.sv-sechead-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.sv-h { margin: 0.7rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 2.8vw, 2.8rem); line-height: 1.1; color: var(--ink); }
.sv-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(187, 158, 107, 0.12); color: var(--gold-deep); }
.sv-ic svg, .ct-tick svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* services list */
.sv-rows { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.sv-row { display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem 1.6rem; border: 1px solid rgba(187, 158, 107, 0.3); border-radius: 16px; transition: background 0.3s, border-color 0.3s; }
.sv-row span { flex: 1; font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.sv-row b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); }
.sv-row em { font-style: normal; font-size: 1.2rem; color: var(--gold); transition: transform 0.3s; }
.sv-row:hover { background: rgba(187, 158, 107, 0.07); border-color: rgba(187, 158, 107, 0.55); }
.sv-row:hover em { transform: translate(3px, -3px); }
.sv-row-flag { padding: 1.9rem 1.8rem; border-color: rgba(187, 158, 107, 0.55); background: rgba(187, 158, 107, 0.06); }
.sv-row-flag b { font-size: 1.851rem; }
.sv-row-flag .sv-ic { width: 54px; height: 54px; background: var(--gold); color: #fff; }
.sv-tag { display: inline-block; margin-bottom: 0.35rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
/* process */
.sv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sv-steps li { padding-top: 1.2rem; border-top: 1px solid rgba(187, 158, 107, 0.45); }
.sv-steps li:first-child { border-top: 2px solid var(--gold); padding-top: calc(1.2rem - 1px); }   /* titles stay level with the others */
.sv-steps b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.551rem; color: var(--ink); }
.sv-steps span { display: block; margin-top: 0.4rem; font-size: 0.949rem; line-height: 1.55; color: var(--ink-soft); }
/* selected work */
.sv-work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.sv-work a { display: block; }
.sv-shot { display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 16px; background: #efe9de; }
.sv-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 0.6s cubic-bezier(.2,.7,.2,1); }
.sv-work a:hover img { scale: 1.04; }
.sv-work b { display: block; margin-top: 0.9rem; font-family: var(--serif); font-weight: 500; font-size: 1.351rem; color: var(--ink); }
.sv-work small { font-size: 0.88rem; color: var(--ink-soft); }
/* FAQ */
.sv-faq { display: grid; grid-template-columns: 1fr 1.8fr; gap: 5vw; align-items: start; }
.sv-q { border-bottom: 1px solid rgba(187, 158, 107, 0.35); }
.sv-q:first-child { border-top: 1px solid rgba(187, 158, 107, 0.35); }
.sv-q summary { position: relative; padding: 1.3rem 2.4rem 1.3rem 0; list-style: none; cursor: pointer; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.sv-q summary::-webkit-details-marker { display: none; }
.sv-q summary i { position: absolute; right: 0.4rem; top: 50%; width: 14px; height: 14px; translate: 0 -50%; }
.sv-q summary i::before, .sv-q summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--gold-deep); transition: rotate 0.3s; }
.sv-q summary i::after { rotate: 90deg; }
.sv-q[open] summary i::after { rotate: 0deg; }
.sv-q p { margin: 0 0 1.4rem; max-width: 40rem; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.sv-q p:not(:last-child) { margin-bottom: 0.8rem; }
.sv-q strong { font-weight: 700; color: var(--ink); }
/* close */
.sv-close { margin-top: 14vh; padding: 9vh 2rem; text-align: center; border-top: 1px solid rgba(187, 158, 107, 0.3); }
.sv-close h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 3.4vw, 3.4rem); color: var(--ink); }
.sv-close p { margin: 0.6rem 0 1.8rem; font-size: 1.051rem; color: var(--ink-soft); }
/* contact */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; margin-top: 4vh; }
.ct-form, .ct-aside { padding: clamp(1.8rem, 3vw, 2.8rem); border-radius: 22px; border: 1px solid rgba(187, 158, 107, 0.3); background: rgba(255, 255, 255, 0.45); }
.ct-quick .ct-field { margin-top: 1.1rem; }
.ct-quick .ct-field input, .ct-quick .ct-field textarea { background: rgba(255, 253, 249, 0.85); }
.ct-aside { position: sticky; top: calc(var(--nav-h) + 3vh); background: radial-gradient(ellipse 80% 70% at 80% 0%, rgba(232, 214, 176, 0.5), rgba(232, 214, 176, 0) 70%), #efe9de; border-color: transparent; }
.ct-form h2, .ct-aside h2 { margin: 0.6rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 2.4vw, 2.4rem); line-height: 1.1; color: var(--ink); }
.ct-sub, .ct-aside p:not(.cs-n) { margin: 0.6rem 0 0; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.ct-field { display: grid; gap: 0.5rem; min-width: 0; margin: 1.6rem 0 0; padding: 0; border: 0; }
.ct-field > span, .ct-field legend { padding: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.ct-field small { font-weight: 400; color: var(--muted); }
.ct-field input, .ct-field textarea, .ct-field select { width: 100%; padding: 0.85rem 1.05rem; border: 1px solid rgba(123, 99, 66, 0.25); border-radius: 12px; background: #fffdf9; font: inherit; font-size: 0.98rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.ct-field textarea { resize: vertical; min-height: 7rem; }
.ct-field input:focus, .ct-field textarea:focus, .ct-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187, 158, 107, 0.18); }
.ct-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.7rem; }
.ct-svc { position: relative; display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; border: 1px solid rgba(123, 99, 66, 0.22); border-radius: 14px; background: #fffdf9; font-size: 0.92rem; color: var(--ink); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.ct-svc .sv-ic { width: 36px; height: 36px; }
.ct-svc .sv-ic svg { width: 18px; height: 18px; }
.ct-svc span { flex: 1; }
.ct-svc input { position: absolute; opacity: 0; pointer-events: none; }
.ct-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(123, 99, 66, 0.3); color: transparent; }
.ct-tick svg { width: 14px; height: 14px; stroke-width: 2.4; }
.ct-svc:has(input:checked) { border-color: var(--gold); background: rgba(187, 158, 107, 0.1); }
.ct-svc:has(input:checked) .ct-tick { background: var(--gold); border-color: var(--gold); color: #fff; }
.ct-svc:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(187, 158, 107, 0.3); }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ct-k { margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(187, 158, 107, 0.3); font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.ct-k + .ct-two .ct-field { margin-top: 1rem; }
.ct-error { margin: 1.2rem 0 0; font-size: 0.9rem; color: #a3412f; }
.ct-error[hidden] { display: none; }
.ct-send { gap: 0.6rem; width: 100%; margin-top: 1.8rem; padding: 1rem; font-size: 0.98rem; font-weight: 700; border: 0; cursor: pointer; }
.ct-honey { position: absolute; left: -9999px; }
.ct-done { display: none; }
.ct-form.sent > *:not(.ct-done), .ct-quick.sent > *:not(.ct-done) { display: none; }
.ct-form.sent .ct-done, .ct-quick.sent .ct-done { display: block; padding: 3rem 0; text-align: center; }
.ct-done h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 2.4rem; color: var(--ink); }
.ct-done p { margin: 0.6rem 0 0; color: var(--ink-soft); }
.ct-send:disabled { opacity: 0.6; cursor: default; }
.ct-note { margin: 0.8rem 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
.ct-mail { display: inline-flex; gap: 0.5rem; margin-top: 1.6rem; padding: 0.85rem 1.4rem; border-radius: 999px; background: var(--ink); font-size: 0.92rem; font-weight: 700; color: #fff; transition: transform 0.3s; }
.ct-mail:hover { transform: translateY(-2px); }
.ct-mail:not([href]) { opacity: 0.45; pointer-events: none; }
.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.ct-steps li { padding-top: 1.1rem; border-top: 1px solid rgba(187, 158, 107, 0.45); font-size: 0.949rem; line-height: 1.55; color: var(--ink-soft); }
.ct-steps span { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold); }
.ct-steps b { display: block; margin: 0.6rem 0 0.3rem; font-family: var(--serif); font-weight: 500; font-size: 1.449rem; color: var(--ink); }

/* ── PARANITYA: a short case study, about a minute to explore ── */
.pr-k { margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.pr-line { margin: 0.6rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.5vw, 1.5rem); color: var(--gold-deep); }
.pr .cs-logo { object-fit: cover; }
.pr-soon { display: grid; place-content: center; gap: 0.4rem; aspect-ratio: 786 / 1704; border-radius: 12.5% / 5.8%; background: linear-gradient(170deg, #efe8f3, #f6f1e6); text-align: center; }
.pr-soon span { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.pr-soon small { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
/* hero: a full-width warm gold/beige band; three phones overlap in a cluster, the middle one in front */
.pr-hero { margin: 6vh calc(50% - 50vw) 0; padding: clamp(48px, 6vw, 84px) 0; background: radial-gradient(ellipse 45% 65% at 50% 50%, rgba(232, 214, 176, 0.55), rgba(232, 214, 176, 0) 72%), #efe9de; }   /* a soft beige band, the gold only as a glow behind the phones */
.pr-phones { display: flex; justify-content: center; align-items: center; }
.pr-phones .c1-device { flex: none; padding: 8px; }   /* px, not %: % would resolve against the row */
.pr-phones .pr-p1, .pr-phones .pr-p3 { z-index: 1; width: clamp(190px, 15vw, 228px); box-shadow: 0 30px 50px -30px rgba(80, 55, 20, 0.55); }
.pr-phones .pr-p1 { margin-right: -36px; }
.pr-phones .pr-p3 { margin-left: -36px; }
.pr-phones .pr-p2 { position: relative; z-index: 2; width: clamp(220px, 18vw, 268px); box-shadow: 0 44px 70px -34px rgba(80, 55, 20, 0.7); }
.pr-ch { margin-top: 13vh; }
.pr-text { max-width: 40rem; margin: 1rem 0 0; font-size: 1.051rem; line-height: 1.7; color: var(--ink-soft); }
.pr-journeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; margin-top: 3rem; }
.pr-journeys .c1-device { width: 72%; margin: 0 auto; }
.pr-journeys h3 { margin: 1.4rem 0 0; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--ink); }
.pr-journeys p { max-width: 17rem; margin: 0.4rem auto 0; text-align: center; font-size: 0.949rem; line-height: 1.55; color: var(--ink-soft); }
.pr-detail { display: grid; grid-template-columns: 1fr 340px; gap: 5vw; align-items: center; }
.pr-zoom { margin: 0; }   /* the settings card, close up */
.pr-zoom img { display: block; width: 100%; border-radius: 22px; box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 30px 50px -28px rgba(60, 40, 20, 0.5); }
.pr-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.pr-status li { padding-top: 1.1rem; border-top: 1px solid rgba(187, 158, 107, 0.45); }
.pr-status li:first-child { border-top: 2px solid var(--gold); }
.pr-status b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); }
.pr-status span { display: block; margin-top: 0.3rem; font-size: 0.949rem; line-height: 1.55; color: var(--ink-soft); }

/* 05 · Sangha: no box; a small light appears and opens up into "Coming soon" */
.sg-media { overflow: hidden; }
.sg-glow { position: absolute; left: 50%; top: 50%; width: min(78%, 330px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff 38%, rgba(255, 249, 226, 0.9) 50%, rgba(250, 238, 196, 0.35) 62%, rgba(250, 238, 196, 0) 72%); opacity: 0; scale: 0.04; transition: opacity 0.9s ease, scale 2.6s cubic-bezier(.2,.7,.2,1); }
.sg-soon { position: absolute; left: 0; right: 0; top: 50%; margin: 0; translate: 0 -50%; text-align: center; font-family: var(--sans); font-weight: 400; font-size: clamp(1rem, 1.5vw, 1.351rem); letter-spacing: 0.4em; text-indent: 0.4em; text-transform: uppercase; color: #52703d; opacity: 0; transition: opacity 1.6s ease; }
.sg-media.s-dot .sg-glow { opacity: 1; }
.sg-media.s-open .sg-glow { scale: 1; }
.sg-media.s-text .sg-soon { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sg-glow, .sg-soon { transition: none; } }

/* 03 · registry: the main screen on a laptop; the gallery screenshots shown exactly as they are */
#non-profit-registry .pf-row { grid-template-columns: 1.3fr 1fr; gap: 4vw; }   /* more room for the window */
.rg-main { display: flex; align-items: center; height: auto; overflow: visible; padding: 0 1%; }
.rg-window { width: 100%; overflow: hidden; border-radius: 12px; background: #1e1e1e; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 34px 60px -30px rgba(40, 28, 12, 0.55); }   /* a real Safari window: its own toolbar on top of the page */
.rg-window img { display: block; width: 100%; height: auto; }
.rg-shotimg img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 22px 36px -26px rgba(60, 40, 20, 0.5); }
.rg-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4vw; align-items: start; }
.rg-shot { margin: 0; }
.rg-shot figcaption { margin-top: 1.1rem; font-size: 0.94rem; line-height: 1.55; color: var(--ink-soft); }
.rg-shot figcaption span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); }
.rg-shot figcaption b { display: block; margin: 0.3rem 0 0.3rem; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--ink); }
.pf-stats { display: flex; gap: 2.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }   /* a project's results, at a glance */
.pf-stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: 1; color: #5f4a72; }
.pf-stats span { display: block; margin-top: 0.35rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pf-meta { margin: 1.4rem 0 0; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.pf-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pf-tags li { padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(187, 158, 107, 0.12); font-size: 0.78rem; color: var(--gold-deep); }
/* see more: the rest of the screens open beneath the project in a strip you can scroll sideways */
.pf-toggle { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem; padding: 0.7rem 1.3rem; border: 1px solid rgba(187, 158, 107, 0.6); border-radius: 999px; background: none; font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); cursor: pointer; transition: background 0.3s ease, color 0.3s ease; }
.pf-toggle em { font-style: normal; transition: rotate 0.4s ease; }
.pf-toggle:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.pf-toggle[aria-expanded="true"] em { rotate: 180deg; }
.pf-close { display: flex; align-items: center; gap: 0.5rem; margin: 3.2rem auto 0.4rem; padding: 0.4rem 0; border: 0; background: none; font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color 0.3s ease; }
.pf-close em { font-style: normal; transition: translate 0.3s ease; }
.pf-close:hover { color: var(--gold-deep); }
.pf-close:hover em { translate: 0 -3px; }
.pf-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s cubic-bezier(.2,.7,.2,1); }
.pf-more.open { grid-template-rows: 1fr; }
.pf-more-inner { overflow: hidden; }
.pf-gallery { scroll-margin-top: calc(var(--nav-h) + 3vh); display: flex; gap: 1.4rem; margin-top: 4.5vh; padding: 0 0 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(187, 158, 107, 0.5) transparent; }
.pf-gallery figure { flex: none; margin: 0; scroll-snap-align: start; }
.pf-gallery img { height: min(46vh, 420px); width: auto; border-radius: 12px; box-shadow: 0 18px 34px -24px rgba(50, 35, 15, 0.5); }
/* explore my work: a title, then the work with deliberate weight (the shipped features lead), then what I took away.
   Space, not rules, separates the parts */
.pf-work { margin-top: 3vh; padding: 3vh 0 1vh; scroll-margin-top: calc(var(--nav-h) + 3vh); }
.pf-work-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 2.7vw, 2.8rem); line-height: 1.1; color: var(--ink); }
.pf-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.6rem 3.4vw; margin: 2.6rem 0 0; }
.pf-point > span, .pf-point > div > span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.pf-point h4 { margin: 0.8rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.449rem, 1.749vw, 1.8rem); line-height: 1.18; color: var(--ink); }
.pf-point p { margin: 0.9rem 0 0; font-size: 1.08rem; line-height: 1.65; color: var(--ink-soft); }
/* the lead: what shipped, as a card across the full width with its features showcased on the right */
.pf-point.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 4vw; align-items: center; padding: 2.4rem 2.8rem; border-radius: 16px; background: #fbf8f2; box-shadow: 0 20px 40px -32px rgba(60, 40, 20, 0.35); }
.pf-point.lead h4 { font-size: clamp(1.9rem, 2.4vw, 2.5rem); line-height: 1.1; }
.pf-showcase { padding: 1.6rem 1.8rem; border-radius: 12px; background: rgba(187, 158, 107, 0.08); }
.pf-showcase-k { margin: 0 !important; font-size: 0.68rem !important; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep) !important; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pf-chips li { padding: 0.55rem 1.15rem; border: 1px solid rgba(187, 158, 107, 0.7); border-radius: 999px; background: var(--ivory); font-family: var(--sans); font-size: 0.98rem; color: var(--ink); }
.pf-chips li.more { border-color: transparent; background: none; padding-left: 0.3rem; font-style: italic; color: var(--gold-deep); }
.pf-chips.quiet li { padding: 0.32rem 0.8rem; border: 0; background: rgba(187, 158, 107, 0.14); font-family: var(--sans); font-size: 0.849rem; color: var(--gold-deep); }
.pf-stat { margin-top: 0.9rem !important; font-family: var(--sans); font-weight: 700; font-size: 1.051rem !important; line-height: 1.4 !important; color: var(--gold-deep) !important; }
/* what I took away: an editorial moment, a big statement then a quieter reflection */
.pf-learned { display: grid; grid-template-columns: 0.9fr 1fr; gap: 1.4rem 4vw; margin-top: 6rem; padding: 0 0 1rem; }
.pf-learned-k { grid-column: 1 / -1; margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.pf-learned-big { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 2.8vw, 3rem); line-height: 1.12; color: var(--ink); }
.pf-learned-small { margin: 0.4rem 0 0; font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft);  font-family: var(--sans);}
.pf-gallery figcaption { margin-top: 0.7rem; font-family: var(--sans); font-style: italic; font-size: 1rem; color: var(--ink-soft); }
/* rising in */
.pf-project .pf-media, .pf-project .pf-words { opacity: 0; translate: 0 34px; transition: opacity 1s ease, translate 1s cubic-bezier(.2,.7,.2,1); }
.pf-project .pf-words { transition-delay: 0.15s; }
.pf-project.in .pf-media, .pf-project.in .pf-words { opacity: 1; translate: 0 0; }

/* ── Ohm Chants: its own spread. Words left, four phones fanned out in a soft lavender glow on the right,
   and its key features in a row beneath ── */
.pf-project.ohm .pf-row { grid-template-columns: 0.85fr 1.15fr; gap: 3vw; }
.ohm-k { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.pf-project.ohm h2 { font-size: clamp(3rem, 4.6vw, 4.8rem); }
.ohm-fan { position: relative; height: auto; aspect-ratio: 1.22; }
.ohm-fan::before { content: ""; position: absolute; inset: -6% -4% -10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 170, 214, 0.6), rgba(232, 200, 225, 0.3) 55%, rgba(246, 242, 234, 0)); }
.ohm-fan .phone-frame { position: absolute; height: auto; aspect-ratio: 0.48; padding: 0; }
.ohm-fan .phone-screen { position: absolute; top: 1.15%; bottom: 1.15%; left: 2.4%; right: 2.4%; width: auto; height: auto; }
.ohm-fan .f1 { left: 0; top: 13%; width: 26%; z-index: 1; }
.ohm-fan .f2 { left: 21%; top: 0; width: 31%; z-index: 3; }
.ohm-fan .f3 { left: 48%; top: 6%; width: 28%; z-index: 2; }
.ohm-fan .f4 { left: 73%; top: 13%; width: 26%; z-index: 1; }
.pf-cta { display: inline-flex; align-items: center; gap: 0.8rem; margin-top: 1.8rem; padding: 0.85rem 1.6rem; border: 1px solid rgba(123, 99, 66, 0.55); border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.pf-cta em { font-style: normal; font-size: 1rem; transition: translate 0.3s ease; }
.pf-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.pf-cta:hover em { translate: 4px 0; }
.ohm-keys { margin-top: 7vh; }
.ohm-keys-k { margin: 0 0 2rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.ohm-keys ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.ohm-keys li { display: flex; flex-direction: column; gap: 1rem; padding: 0 1.8rem; }
.ohm-keys li:first-child { padding-left: 0; }
.ohm-keys li + li { border-left: 1px solid rgba(187, 158, 107, 0.25); }
.ohm-keys i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(214, 170, 214, 0.22); }
.ohm-keys svg { width: 24px; height: 24px; fill: none; stroke: #8a4f86; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ohm-keys h4 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.449rem; line-height: 1.15; color: var(--ink); }
.ohm-keys p { margin: 0.5rem 0 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }

/* ── a case study sub-page ── */
.cs { padding: calc(var(--nav-h) + 5vh) calc(6.4vw + 170px) 12vh; }   /* the same side margins as the portfolio's projects */
.cs-back { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.3s ease; }
.cs-back:hover { color: var(--gold-deep); }
.cs-back em { font-style: normal; }
.cs .ohm-keys { margin-top: 10vh; }
.cs-screens { margin-top: 12vh; }
.cs-soon { margin-top: 10vh; padding: 3rem; border-radius: 16px; background: rgba(187, 158, 107, 0.08); text-align: center; }
.cs-soon p:last-child { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }
.cs-soon .ohm-keys-k { margin-bottom: 0.8rem; }
.cs-back-end { margin-top: 8vh; }

/* case study chapters: short, each with its own treatment */
.cs-ch { margin-top: 15vh; }
.cs-n { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #8a4f86; }
.cs-ch h2 { margin: 0.7rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.2vw, 3.2rem); line-height: 1.08; color: var(--ink); }
.cs-ch-words > p:not(.cs-n), .cs-ch > p:not(.cs-n):not(.cs-todo) { max-width: 36rem; margin: 1rem 0 0; font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); }
.cs-todo { display: inline-block; margin: 2rem 0 0; padding: 0.6rem 1rem; border: 1px dashed rgba(138, 79, 134, 0.45); border-radius: 10px; font-size: 0.849rem; color: #8a4f86; }
/* the header: logo, name, role, and where to get it */
.cs-head { display: flex; align-items: center; gap: 1.6rem; margin-top: 3.5vh; padding-bottom: 4vh; border-bottom: 1px solid rgba(187, 158, 107, 0.3); }
.cs-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px -14px rgba(50, 35, 15, 0.5); }
.cs-head-words { flex: 1; }
.cs-head h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 3.4vw, 3.6rem); line-height: 1.05; color: var(--ink); }
.cs-head h1 span { color: var(--gold-deep); font-style: italic; }
.cs-head .pf-meta { margin-top: 0.6rem; }
.cs-store { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.15rem 0.6rem 0.9rem; border-radius: 12px; background: var(--ink); color: #fff; transition: transform 0.3s ease; }
.cs-store:hover { transform: translateY(-2px); }
.cs-store svg { width: 24px; height: 24px; fill: #fff; }
.cs-store span { display: grid; font-size: 1.051rem; font-weight: 700; line-height: 1.1; }
.cs-store small { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.04em; }
/* 01: the story and its sources on top (with handwritten notes), the first screens in a row beneath */
.cs-c1 { margin-top: 7vh; }
.c1-top { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 4vw; align-items: center; }
.c1-story h2 { margin: 0.9rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 3.8vw, 4rem); line-height: 1.02; color: var(--ink); }
.c1-text { max-width: 30rem; margin: 1.3rem 0 0; font-size: 1.08rem; line-height: 1.65; color: var(--ink-soft); }
/* her materials stacked like prints on a desk, tilted and overlapping, with handwritten notes */
.c1-collage { position: relative; aspect-ratio: 1.12; margin: 1rem 0; }
.c1-collage img { position: absolute; height: auto; border-radius: 6px; box-shadow: 0 22px 38px -22px rgba(50, 35, 15, 0.55); }
.cl-mantra { left: 26%; top: 3%; width: 54%; rotate: 3deg; z-index: 1; }
.cl-sanskrit { left: 3%; top: 20%; width: 34%; rotate: -5deg; z-index: 3; }
.cl-mala { left: 31%; top: 49%; width: 21%; rotate: 4deg; z-index: 2; }
.cl-original { left: 60%; top: 37%; width: 23%; rotate: -3deg; z-index: 2; }
.cl-chat { position: absolute; left: 52%; top: 76%; z-index: 4; display: grid; justify-items: start; gap: 0.4rem; width: 44%; rotate: 1.5deg; }
.c1-date { margin: 0 0 0 0.4rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: #fff; font-size: 0.7rem; color: var(--ink-soft); box-shadow: 0 4px 10px -8px rgba(50, 35, 15, 0.4); }
.c1-bubble { margin: 0; padding: 0.75rem 1rem; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 0.92rem; line-height: 1.4; color: var(--ink); box-shadow: 0 14px 26px -16px rgba(50, 35, 15, 0.45); }
.cl-note { position: absolute; margin: 0; font-family: "Caveat", cursive; font-size: 1.3rem; line-height: 1.05; color: var(--gold-deep); }
.cl-note em { font-style: normal; font-family: var(--sans); font-size: 1rem; }
.cl-note-a { left: 0; top: 0; rotate: -6deg; }
.cl-note-b { left: 85%; top: 47%; rotate: 5deg; }
/* the two parts below the vision share one shape: label, serif headline, a short line, then the visuals */
.c1-part { margin-top: 7vh; padding-top: 6vh; border-top: 1px solid rgba(187, 158, 107, 0.3); }
.c1-brand + .c1-part { margin-top: 0; padding-top: 5vh; border-top: 0; }
.c1-part-words h3 { margin: 0.7rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 2.8vw, 2.9rem); line-height: 1.08; color: var(--ink); }
.c1-part-words > p:not(.cs-n) { max-width: 30rem; margin: 0.9rem 0 0; font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }
.c1-part .cs-n { color: var(--gold-deep); }
/* visual direction: words, palette, type */
.c1-brand { display: flex; justify-content: center; align-items: center; gap: 4vw; margin-top: 5vh; padding: 3.5vh 0; border-bottom: 1px solid rgba(187, 158, 107, 0.3); }
.c1-palette { margin: 0; text-align: center; }
.c1-circles { display: flex; justify-content: center; }
.c1-circles i { width: 58px; height: 58px; margin-right: -16px; border-radius: 50%; background: var(--c); opacity: 0.88; box-shadow: 0 10px 20px -14px rgba(50, 35, 15, 0.5); }
.c1-circles i:last-child { margin-right: 0; opacity: 1; box-shadow: 0 10px 20px -14px rgba(50, 35, 15, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.c1-palette figcaption { margin-top: 0.8rem; font-size: 0.849rem; color: var(--ink-soft); }
.c1-types { display: flex; gap: 3vw; padding-left: 4vw; border-left: 1px solid rgba(187, 158, 107, 0.35); }
.c1-type { display: flex; align-items: center; gap: 1rem; }
.c1-type b { width: 4.2rem; font-size: 3.2rem; line-height: 1; }
.c1-type h4 { margin: 0; font-size: 1.3rem; font-weight: 500; line-height: 1.1; white-space: nowrap; color: var(--ink); }
.c1-type p { margin: 0.25rem 0 0; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.c1-type.f-sans b, .c1-type.f-sans h4 { font-family: "Montserrat", var(--sans); }
.c1-type.f-sans b { font-weight: 700; color: #592CA3; }
.c1-type.f-serif b, .c1-type.f-serif h4 { font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif; }
.c1-type.f-serif b { font-weight: 600; color: #a79c6c; }
.c1-close { margin: 5vh auto 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft); }
.c1-close span { display: block; margin-bottom: 0.2rem; font-family: var(--sans); font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.c1-phones { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.8vw; margin: 2.6rem 0 0; padding: 0; list-style: none; }
.c1-phones::before { content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: -8%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(195, 174, 234, 0.42), rgba(195, 174, 234, 0)); }   /* a soft lavender glow behind the screens */
.c1-phones li { transition: translate 0.4s cubic-bezier(.2,.7,.2,1); }
.c1-phones li:hover { translate: 0 -8px; }
/* each screen in a real device: a dark bezel, a soft deep shadow */
.c1-device { position: relative; padding: 3.2%; border-radius: 15% / 7%; background: linear-gradient(145deg, #2c2a29, #111010); box-shadow: 0 30px 46px -26px rgba(40, 28, 12, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.07); }
.c1-device img { display: block; width: 100%; height: auto; aspect-ratio: 786 / 1704; object-fit: cover; border-radius: 12.5% / 5.8%; background: linear-gradient(170deg, #e7dcf5, #f6f1e6); }   /* shaped (and softly coloured) before it loads */
.c1-phones h4 { display: flex; justify-content: center; gap: 0.6rem; align-items: baseline; text-align: center; line-height: 1.3; margin: 1.3rem 0 0; font-family: var(--sans); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.03em; color: var(--ink); }
.c1-phones h4 span { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.12em; color: var(--gold-deep); }
.c1-phones p { margin: 0.2rem 0 0; text-align: center; font-size: 0.92rem; font-weight: 300; line-height: 1.45; color: var(--ink-soft); }
/* 02: everything on the left (headline, tester's words, the three changes); one phone on the right */
.cs-iterate { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 5vw; align-items: center; margin-top: 9vh; padding-top: 7vh; border-top: 1px solid rgba(187, 158, 107, 0.3); }
.rx-left .cs-n { color: var(--gold-deep); }
.cs-iterate .rx-left h2 { margin: 0.7rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 3.3vw, 3.5rem); line-height: 1.04; color: var(--ink); }
.rx-sub { max-width: 34rem; margin: 0.9rem 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); }
/* the tester's words as a pull quote: no box, a soft quotation mark hanging outside the text */
.ba-quote { position: relative; margin: 2.2rem 0 0; }
.ba-quote::before { content: "“"; position: absolute; left: -2.1rem; top: -0.7rem; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--gold); opacity: 0.7; }
.ba-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.9vw, 1.9rem); line-height: 1.3; color: var(--ink); }
.ba-quote figcaption { margin-top: 0.7rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.ba-quote figcaption::before { content: "— "; color: var(--muted); }
/* the three changes as a vertical list: number, title, and why; the chosen one softly highlighted */
.rx-tabs { margin: 2rem 0 0; padding: 0; list-style: none; }
.rx-tabs li + li { border-top: 1px solid rgba(187, 158, 107, 0.25); }
.rx-tabs button { display: grid; grid-template-columns: 2.4rem 1fr; width: 100%; padding: 0.9rem 0.9rem; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; cursor: pointer; transition: background 0.3s ease; }
.rx-tabs span { font-size: 0.76rem; letter-spacing: 0.14em; line-height: 2.1; color: var(--muted); }
.rx-tabs b { font-family: var(--serif); font-weight: 500; font-size: 1.351rem; color: var(--ink-soft); }
.rx-tabs em { grid-column: 2; margin-top: 0.2rem; font-style: normal; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.rx-tabs button:hover { background: rgba(187, 158, 107, 0.07); }
.rx-tabs button.on { background: rgba(195, 174, 234, 0.22); }
.rx-tabs button.on span { color: var(--gold-deep); }
.rx-tabs button.on b { color: var(--ink); }
.rx-tabs button.on em { color: var(--ink-soft); }
.rx-more { min-height: 4.8em; max-width: 32rem; margin: 1.2rem 0 0; padding-left: 3.3rem; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--ink); }
.rx-more.swap { animation: it-in 0.45s ease both; }
.rx-right { justify-self: center; width: min(100%, 330px); }
.kd-labels { display: flex; justify-content: space-between; margin: 0 0 0.8rem; }
.kd-labels b { padding: 0.3rem 0.85rem; border-radius: 999px; background: rgba(187, 158, 107, 0.13); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.kd-labels b:last-child { background: rgba(187, 158, 107, 0.22); color: var(--gold-deep); }
/* one phone holding both versions; the handle starts at the middle */
.kd-compare { --pos: 50%; width: 100%; margin: 0; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.kd-compare * { -webkit-user-drag: none; }
.kd-compare::selection, .kd-compare *::selection { background: transparent; }
.kd-compare:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.kd-screen { position: relative; overflow: hidden; border-radius: 12.5% / 5.8%; }
.kd-screen img { display: block; width: 100%; aspect-ratio: 786 / 1704; object-fit: cover; object-position: top; pointer-events: none; }
.kd-screen .kd-old { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.kd-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(89, 44, 163, 0.12); }
.kd-handle i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; font-style: normal; font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; color: var(--gold-deep); box-shadow: 0 8px 20px -8px rgba(50, 35, 15, 0.45); transition: transform 0.25s ease; }
.kd-compare:hover .kd-handle i, .kd-compare.dragging .kd-handle i { transform: scale(1.08); }
/* 03: the road to launch */
.cs-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.cs-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(138, 79, 134, 0.3); }
.cs-steps li { position: relative; padding-top: 2.2rem; }
.cs-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #b98ab6; background: var(--ivory); }
.cs-steps li.on::before { background: #8a4f86; border-color: #8a4f86; box-shadow: 0 0 0 5px rgba(138, 79, 134, 0.15); }
.cs-steps b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); }
.cs-steps span { display: block; margin-top: 0.4rem; font-size: 0.949rem; line-height: 1.5; color: var(--ink-soft); }
/* 03: building & testing: headline and rating; then the stack, the feedback, and testers' words */
.cs-build { margin-top: 12vh; padding-top: 7vh; border-top: 1px solid rgba(187, 158, 107, 0.3); }
.cs-build .cs-n { color: var(--gold-deep); }
.bt-head { max-width: 46rem; }
.cs-build .bt-head h2 { margin: 0.7rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 3.2vw, 3.4rem); line-height: 1.05; color: var(--ink); }
.bt-head > div > p:last-child { max-width: 34rem; margin: 0.9rem 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); }
.bt-rating { text-align: center; }
.bt-rating > b { display: block; font-family: var(--serif); font-weight: 500; font-size: 4.6rem; line-height: 1; color: #592CA3; }
.bt-stars { display: inline-flex; gap: 0.25rem; margin-top: 0.5rem; }
.bt-stars i { width: 18px; height: 18px; background: linear-gradient(90deg, #c9a24a calc(var(--f) * 100%), rgba(187, 158, 107, 0.25) 0); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.bt-rating p { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.bt-rating small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
/* the numbers lead: big and centred, one per column */
.bt-numbers { margin-top: 3.2rem; text-align: center; }
.bt-numbers ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.bt-numbers li { display: grid; justify-items: center; align-content: start; gap: 0.6rem; padding: 0 1.2rem; }
.bt-numbers li + li { border-left: 1px solid rgba(187, 158, 107, 0.3); }
.bt-numbers b { font-family: var(--serif); font-weight: 500; font-size: clamp(3.2rem, 4.6vw, 4.8rem); line-height: 1; color: #592CA3; }
.bt-numbers span:not(.bt-stars) { max-width: 13rem; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
.bt-numbers .bt-note { margin: 1.4rem auto 0; padding: 0; border: 0; }
.bt-k { margin: 0 0 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.bt-note { margin: 1.2rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(187, 158, 107, 0.25); font-size: 0.849rem; color: var(--muted); }

/* their words (pull quotes, like the tester's words in 02) beside what it's built with */
.bt-bottom { display: grid; grid-template-columns: 1fr auto; gap: 5vw; align-items: center; margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid rgba(187, 158, 107, 0.25); }
.bt-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5vw; padding-left: 2.2rem; }
.bt-quotes figure { position: relative; margin: 0; }
.bt-quotes figure::before { content: "“"; position: absolute; left: -2rem; top: -0.6rem; font-family: var(--serif); font-size: 3.8rem; line-height: 1; color: var(--gold); opacity: 0.7; }
.bt-quotes blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.3; color: var(--ink); }
.bt-quotes figcaption { margin-top: 0.7rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.bt-quotes figcaption::before { content: "— "; color: var(--muted); }
.bt-shipped { display: inline-flex; gap: 0.45rem; margin: 0.8rem 0 0; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(187, 158, 107, 0.14); font-size: 0.8rem; color: var(--gold-deep); }   /* actionable feedback: what it became */
.bt-built { display: grid; gap: 1rem; padding-left: 3vw; border-left: 1px solid rgba(187, 158, 107, 0.3); }
.bt-built span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.bt-built b { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.bt-built img { width: 26px; height: 26px; object-fit: contain; }

/* 04 · after launch: an edge-to-edge warm band (the content keeps the page's column); numbers down the left, the new screens on the right */
.cs-after { position: relative; isolation: isolate; margin-top: 12vh; padding: 9vh 0 10vh; }
.cs-after::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: linear-gradient(180deg, #eee8de, #ebe4e1); }
.al-sub { max-width: 34rem; margin: 0.9rem 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); }
.al-body { display: grid; grid-template-columns: 15rem 1fr; gap: 5vw; align-items: start; margin-top: 3.4rem; }
.al-stats { display: grid; gap: 1.5rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.al-stats li { padding-bottom: 1.4rem; border-bottom: 1px solid rgba(123, 99, 66, 0.2); }
.al-stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.al-stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 4.2vw, 4.4rem); line-height: 0.95; color: #5f4a72; }
.al-stats span { display: block; margin-top: 0.4rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.al-k { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.al-features { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5vw; margin-top: 1.4rem; }
.al-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.al-pair .c1-device img { aspect-ratio: 924 / 2000; }
.al-features h3 { margin: 1.3rem 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.449rem; color: var(--ink); }
.al-features p { margin: 0.3rem 0 0; font-size: 0.94rem; line-height: 1.5; color: var(--ink-soft); }

/* 04: the numbers, big */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.cs-stats li { padding: 2rem 1.6rem; border-radius: 16px; background: #fbf8f2; box-shadow: 0 18px 36px -30px rgba(60, 40, 20, 0.35); }
.cs-stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: 3.2rem; line-height: 1; color: #7b3f74; }
.cs-stats span { display: block; margin-top: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); }
/* 05: a lavender band of features */
.cs-evolve { margin-left: -3vw; margin-right: -3vw; padding: 8vh 3vw; border-radius: 24px; background: linear-gradient(160deg, rgba(214, 170, 214, 0.22), rgba(232, 201, 131, 0.12)); }
.cs-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 3vw; margin: 3rem 0 0; padding: 0; list-style: none; }
.cs-feats i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.cs-feats svg { width: 22px; height: 22px; fill: none; stroke: #8a4f86; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cs-feats h4 { margin: 1rem 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.449rem; color: var(--ink); }
.cs-feats p { margin: 0.4rem 0 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }
/* 06: their words */
/* 05 · voices: real App Store reviews drifting slowly sideways; the five stars said once, above */
.vc-rated { display: flex; align-items: center; gap: 0.8rem; margin: 1rem 0 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.vc-stars { font-size: 1rem; letter-spacing: 0.16em; color: var(--gold); }
.vc-marquee { margin-top: 2.4rem; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.vc-marquee::-webkit-scrollbar { display: none; }
.vc-marquee.grabbing { cursor: grabbing; }
.vc-track { display: flex; width: max-content; }   /* js/case.js drifts it slowly; drag, swipe or scroll to move it by hand */
.vc { flex: none; width: 24rem; margin: 0 3rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(185, 160, 110, 0.45); }
.vc h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.vc blockquote { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.vc figcaption { margin-top: 0.9rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
@media (prefers-reduced-motion: reduce) { .vc[aria-hidden] { display: none; } }
/* the App Store screens: an edge-to-edge strip that sits flush under 04's band; drag, swipe or scroll to move it */
.oc-strip { --edge: calc(6.4vw + 170px); margin: 5vh calc(50% - 50vw) 0; }   /* the page colour, apart from 04's band */
.oc-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--edge); }
.oc-head p { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.oc-head span { font-size: 0.8rem; color: var(--muted); }
.oc-scroll { margin-top: 0.6rem; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.oc-scroll::-webkit-scrollbar { display: none; }
.oc-scroll.grabbing { cursor: grabbing; }
/* the first screen lines up with the page's text; the row runs off the right edge */
.oc-track { display: flex; width: max-content; margin: 0; padding: 10px calc(var(--edge) - 10px) 24px; list-style: none; }
.oc-track li { flex: none; width: 17vw; padding: 10px; }
.oc-track img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 30px -20px rgba(60, 40, 20, 0.45); pointer-events: none; transition: translate 0.3s; }
.oc-track li:hover img { translate: 0 -4px; }
.cs-voices { margin-top: 12vh; }
.cs-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.cs-quotes li { padding: 2rem; border-radius: 16px; border: 1px dashed rgba(138, 79, 134, 0.35); }
.cs-quotes p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--muted); }
.cs-quotes p::before { content: "“"; display: block; font-size: 3rem; line-height: 0.6; color: #b98ab6; }
.cs-quotes span { display: block; margin-top: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ───────────────── Mobile ───────────────── */
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .pf-project.ohm .pf-row,   .ohm-keys ul { grid-template-columns: 1fr; gap: 1.6rem; }
  .cs { padding-left: 22px; padding-right: 22px; }
  .cs-head { flex-wrap: wrap; }
  .c1-top { grid-template-columns: 1fr; }
  .cl-note-b { left: 70%; top: 30%; }
  .c1-brand { grid-template-columns: 1fr; }
  .c1-types { padding-left: 0; border-left: 0; }
  .c1-phones { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .cs-iterate { grid-template-columns: 1fr; }
  .bt-head,   .cs-steps, .cs-stats, .cs-feats, .cs-quotes { grid-template-columns: 1fr; }
  .vc { width: 78vw; margin-right: 1.6rem; }
  .oc-strip { --edge: 22px; }
  .rg-work { grid-template-columns: 1fr; gap: 2.4rem; }
  .sv { padding-left: 22px; padding-right: 22px; }
  .sv-hero, .sv-faq, .sv-steps { grid-template-columns: 1fr; }
  .hm { padding-left: 16px; padding-right: 16px; }
  .me-two, .me-values ul, .mv-top { grid-template-columns: 1fr; }
  .hero-logos { flex-wrap: wrap; gap: 1rem; }
  .tb-feature, .tb-two { grid-template-columns: 1fr; }
  .tb-facts { gap: 1.4rem; }
  .hm > section.bw { grid-template-columns: 1fr; min-height: 0; }
  .bw-photo { order: 0; height: 60vh; }
  .bw-copy { justify-self: start; margin: 0; padding: 3rem 22px; }
  .st.st-values.vq { grid-template-columns: 1fr; }
  .vq-pic { max-width: 260px; margin: 0 auto; }
  .st-words { flex-wrap: wrap; }
  .st-words li + li::before { margin: 0 0.3em; }
  .mv-values { grid-template-columns: 1fr 1fr; }
  .lg ul { justify-content: center; }
  .ft { flex-direction: column; text-align: center; }
  .ft nav { flex-wrap: wrap; justify-content: center; gap: 1rem 1.4rem; }
  .sides-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .sd-1, .sd-2, .sd-3, .sd-4 { grid-column: auto; grid-row: auto; margin-top: 0; }
  .sd figcaption, .sd-2 figcaption { font-size: 1.3rem; }
  .hm { padding-left: 22px; padding-right: 22px; }
  .hm-actions { flex-direction: column; }
  .sv-sechead-row { display: block; }
  .ct-grid, .ct-svcs, .ct-two, .ct-steps { grid-template-columns: 1fr; }
  .sv-work { grid-template-columns: 1fr 1fr; }
  .sv-row { padding: 1.1rem; gap: 1rem; }
  .ct-aside { position: static; }
  .pr-phones .pr-p1, .pr-phones .pr-p3 { width: 30vw; }
  .pr-phones .pr-p2 { width: 36vw; }
  .pr-phones .c1-device { padding: 4px; }
  .pr-phones .pr-p1 { margin-right: -16px; }
  .pr-phones .pr-p3 { margin-left: -16px; }
  .pr-journeys, .pr-detail, .pr-status { grid-template-columns: 1fr; }
  .pr-zoom { width: 80%; }
  #non-profit-registry .pf-row { grid-template-columns: 1fr; }
  .oc-track li { width: 40vw; }
  .ohm-keys li { padding: 0; border: 0 !important; }
  .pf-body { grid-template-columns: 1fr; padding: 0 22px; }
  .pf-nav { display: none; }
  .pf-row { grid-template-columns: 1fr; gap: 2.4rem; }
  .pf-project.flip .pf-media { order: 0; }
  .pf-media { height: 52vh; }
  .pf-points { grid-template-columns: 1fr; gap: 2rem; }
  .pf-point.lead { grid-template-columns: 1fr; row-gap: 1.4rem; padding: 1.6rem; }
  .pf-learned { grid-template-columns: 1fr; }
  .reach-links { grid-template-columns: 1fr; }
  .reach-link + .reach-link { border-left: 0; border-top: 1px solid rgba(187, 158, 107, 0.4); }
  .chapter-today { padding: 22vh 22px 0; }
    .facets { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.4rem; }
  .facet { padding: 0; border: 0 !important; }
  .facet p, .facet-shot, .facet-projects { display: none; }
  .facet h3 { margin: 0; font-size: 1.6rem; }
  .nav-links { display: none; }

  .hero { display: block; height: auto; min-height: 0; }
  .hero-photo { width: 100%; aspect-ratio: 4 / 5; }
  .hero-copy { margin: 0; padding: 2.2rem 16px 6rem; width: auto; max-width: none; }
  .pipeline { justify-content: flex-start; }
  .hero .eyebrow { font-size: 0.85rem; }
  .hero h1 { font-size: 2.35rem; margin-top: 1rem; }
  .hero h1 br { display: none; }
  .pipeline { font-size: 0.78rem; gap: 0.7rem; margin-top: 1.8rem; letter-spacing: 0.12em; }
  .pipeline svg { width: 6px; height: 11px; }
  .pipeline-for { font-size: 1.7rem; }
  .hero-ctas { margin: 2rem 0 0; gap: 0.8rem; }
  .hero-ctas .btn { flex: 1; width: auto; height: 3.4rem; font-size: 1.05rem; }
  .hero-scroll { bottom: 20px; }

  .journey { --guide-h: 0px; --frame-gap: 0px; }
  .jline-hit, .jline-tag, .jscrub { display: none; }
  .overview b { font-size: 1.1rem; }
  .overview span { display: none; }
  .chapter-intro .body { transform: none; }
  .intro-photo, .intro-sprig { display: none; }
  .chapter-intro .title, .page-head .title { font-size: 2.3rem; }
  .chapter-intro .text, .page-head .text { font-size: 1rem; }
  .chapter { padding: calc(10vh + 3.2rem) 3.2rem 0 1.4rem; align-items: flex-start; }
  .chapter[data-line="left"] { padding-left: 3.2rem; padding-right: 1.4rem; }
  .chapter-noscript { padding-left: 1.4rem; padding-right: 1.4rem; }
  .chapter .body { text-align: left; }
  .chapter-noscript .body { text-align: center; }
  .tl-label .y { font-size: 1.3rem; }
  .piece .sun { display: none; }
  .orbit-svg, .satellites, .chapter-berkeley .deco { display: none; }
  .soft, .halo-circle, .shockwave { display: none; }
  .chapter-amazon { padding-left: 1.4rem; }
  .chapter-amazon .body { max-width: none; }
  .amz-grid, .amz-right, .amz-scan, .amz-left, .glimpses { display: none; }
  .uni-seal { width: 80vw; }
  .memories .ribbons { display: none; }
  .chapter-dubai .text, .chapter-story .text { font-size: 1.1rem; }
  .chapter-story .title { font-size: 2.3rem; }
  .tl-label .p { font-size: 0.75rem; }
  .title { font-size: 2rem; }
  .text { margin-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.5rem; }
  .chapter-turn { padding: 0 22px; }
  .chapter-cornell .c-gallery, .chapter-cornell .cornell-app, .cornell-seal { display: none; }
  .chapter-cornell .body { left: 22px; right: 22px; width: auto; top: 14%; }
  .turn-bg, .turn-bowl, .turn-card, .turn-phone, .turn-logo, .turn-wave, .tagline, .turn-mid::before, .turn-mid::after { display: none !important; }
  .turn-head { left: 22px; right: 22px; width: auto; top: 6%; }
  .turn-head .title { font-size: 1.9rem; }
  .turn-head .sub { font-size: 1.3rem; }
  .turn-item { left: 22px !important; width: calc(100% - 44px) !important; text-align: left; }
  .i1 { top: 40%; } .turn-mid { top: 62%; } .i2 { top: 78%; }
  .turn-item h3 { font-size: 1.3rem; }
  .steps li span { font-size: 1.35rem; }
  .collage { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span, .tl .travel, .piece.in .bob, .tl .braid-light, .tl .halo.breath, .chapter-intro *, .overview *, .overview-hint, .chapter-turn * { animation: none !important; }
  .piece, .piece::after, .memories .ribbons path { transition-duration: 0.01s; }
  .memories .ribbons path.glint { animation: none; display: none; }
}

/* ───────────────── About on phones: one scroll, each chapter keeping its signature (js/flat.js) ───────────────── */
.j-flat .journey { height: auto !important; }
.j-flat .journey-stage { position: relative; height: auto; overflow: hidden; overflow: clip; padding: calc(var(--nav-h) + 1.2rem) 0 2rem; }
.j-flat .journey-stage::after, .j-flat .tl-clip, .j-flat .jline-hit, .j-flat .jline-tag, .j-flat .jscrub { display: none !important; }
.j-flat .chapter {
  position: relative; inset: auto; display: block; opacity: 1; visibility: visible; pointer-events: auto;
  transition: none; will-change: auto; transform: none !important; z-index: 1;
  padding: 3.6rem 20px 3rem 52px !important;
}
.j-flat .chapter > :not(.tl-label):not(.body):not(.m-part):not(.turn-head):not(.turn-item):not(.today-head):not(.facets):not(.dawn):not(.m-seal):not(.m-grid):not(.m-sparks):not(.m-wash):not(.cornell-app) { display: none !important; }
.j-flat .chapter .divider, .j-flat .today-label { display: none !important; }
.j-flat .chapter-intro { padding: 1.4rem 20px 2rem !important; }

/* the line (an svg drawn by flat.js) */
.m-line { position: absolute; left: 0; top: 0; width: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.m-line path { fill: none; stroke-linecap: round; }
.m-line .ink { stroke: #a39886; stroke-width: 1.4; }
.m-line .thread { stroke: #c2a26b; stroke-width: 1.6; }
.m-line .braid { stroke: #d9b878; stroke-width: 1.4; }
.m-line .gold { stroke-width: 1.6; }
.m-line .glint { stroke: #f0d394; stroke-width: 2.6; stroke-dasharray: 60 900; animation: m-glint 6s linear infinite; filter: drop-shadow(0 0 4px rgba(240, 200, 130, 0.9)); }
@keyframes m-glint { from { stroke-dashoffset: 60; } to { stroke-dashoffset: -900; } }
.m-line .dot { fill: var(--ivory); stroke: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(214, 180, 118, 0.7)); }
.m-line .seed { fill: var(--gold); }

/* years, beside the line */
.j-flat .tl-label { position: relative; left: auto; top: auto; display: block; margin: 0 0 1.1rem; text-align: left !important; transform: none !important; white-space: normal; animation: none !important; }
.j-flat .tl-label .y { font-size: 1.9rem; }
.j-flat .tl-label .p { font-size: 0.68rem; margin-top: 0.3rem; }
.j-flat .tl-label .p br { display: none; }

/* words */
.j-flat .chapter .body, .j-flat .turn-head, .j-flat .turn-item, .j-flat .today-head {
  position: relative !important; inset: auto !important; transform: none !important; z-index: 2;
  width: auto !important; max-width: none !important; margin: 0 !important; text-align: left !important;
}
.j-flat .chapter .kicker { margin-bottom: 0.7rem; font-size: 0.72rem; letter-spacing: 0.24em; }
.j-flat .chapter .title, .j-flat .turn-head .title, .j-flat .today-head .title { font-size: 2.15rem; line-height: 1.08; }
.j-flat .chapter .text { margin: 1rem 0 0; max-width: none; font-size: 1.05rem; line-height: 1.6; }
.j-flat .chapter-intro .title { font-size: 2.4rem; }

/* every part rises in as it arrives */
.j-flat .chapter > :is(.tl-label, .body, .turn-head, .turn-item, .today-head, .facets, .cornell-app), .j-flat .m-part {
  opacity: 0; translate: 0 22px; transition: opacity 0.8s ease, translate 0.9s cubic-bezier(.2, .7, .2, 1);
}
.j-flat .chapter > .in, .j-flat .m-part.in { opacity: 1; translate: 0 0; }

/* intro: three taped photographs */
.j-flat .m-photos { position: relative; height: 66vw; max-height: 330px; margin: 2rem 0 0; }
.j-flat .m-ph { position: absolute; margin: 0; }
.j-flat .m-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 18px 30px -18px rgba(50, 35, 15, 0.55); }
.j-flat .m-photos .p1 { left: 0; top: 8%; width: 44%; height: 62%; rotate: -5deg; z-index: 1; }
.j-flat .m-photos .p2 { left: 30%; top: 0; width: 40%; height: 80%; rotate: 2.5deg; z-index: 2; }
.j-flat .m-photos .p3 { right: 0; top: 30%; width: 40%; height: 64%; rotate: 6deg; z-index: 1; }
.j-flat .m-photos .m-ph { opacity: 0; translate: 0 16px; transition: opacity 0.7s ease, translate 0.9s cubic-bezier(.2, .8, .25, 1); }
.j-flat .m-photos.in .m-ph { opacity: 1; translate: 0 0; }
.j-flat .m-photos.in .p2 { transition-delay: 0.15s; } .j-flat .m-photos.in .p3 { transition-delay: 0.3s; }
.j-flat .tape { position: absolute; left: 50%; top: -10px; z-index: 3; width: 60px; height: 19px; translate: -50% 0; rotate: -4deg; background: rgba(236, 226, 205, 0.85); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

/* Berkeley: the seal behind; taped photos; the orbit, each stop with what she did there */
.j-flat .m-seal { position: absolute; z-index: 0; right: -18%; top: 1rem; width: 78%; opacity: 0.07; pointer-events: none; mix-blend-mode: multiply; }
.j-flat .m-bphotos { position: relative; height: 62vw; max-height: 300px; margin: 2rem 0 0; }
.j-flat .m-bphotos .m-ph { opacity: 0; translate: 0 16px; transition: opacity 0.7s ease, translate 0.9s cubic-bezier(.2, .8, .25, 1); }
.j-flat .m-bphotos.in .m-ph { opacity: 1; translate: 0 0; }
.j-flat .m-bphotos .b1 { left: 0; top: 18%; width: 46%; height: 50%; rotate: -6deg; z-index: 1; }
.j-flat .m-bphotos .b2 { left: 32%; top: 0; width: 38%; height: 86%; rotate: 2deg; z-index: 2; transition-delay: 0.15s; }
.j-flat .m-bphotos .b3 { right: 0; top: 34%; width: 30%; height: 40%; rotate: 7deg; z-index: 3; transition-delay: 0.3s; }
.m-note { position: absolute; right: 2px; bottom: -32%; white-space: nowrap; font-family: "Caveat", cursive; font-size: 1.35rem; line-height: 1; color: var(--gold-deep); rotate: -4deg; }
.j-flat .m-orbit { position: relative; height: 430px; margin: 2.6rem 0 0 -30px; }
.m-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-arc path { fill: none; stroke: rgba(187, 158, 107, 0.6); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.m-arc { clip-path: inset(0 0 100% 0); transition: clip-path 1.8s cubic-bezier(.45, 0, .2, 1); }
.m-orbit.in .m-arc { clip-path: inset(0 0 0 0); }
.m-orbit ol { margin: 0; padding: 0; list-style: none; }
.m-orbit li { position: absolute; left: var(--x); top: var(--y); right: 0; translate: 0 -50%; padding-left: 26px; opacity: 0; transition: opacity 0.7s ease, translate 0.9s cubic-bezier(.2, .8, .25, 1); transition-delay: calc(0.5s + var(--i) * 0.28s); }
.m-orbit:not(.in) li { translate: 10px -50%; }
.m-orbit.in li { opacity: 1; }
.m-orbit li i { position: absolute; left: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(187, 158, 107, 0.18); }
.m-orbit li i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.m-orbit.in li i::after { animation: sat-pulse 3.2s ease-out calc(2s + var(--i) * 0.6s) infinite; }
.m-orbit li .m-sat-y { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); }
.m-orbit li b { display: block; margin-top: 0.15rem; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.1; color: var(--ink); }
.m-orbit li span:last-child { display: block; margin-top: 0.2rem; font-size: 0.86rem; line-height: 1.35; color: var(--ink-soft); }

/* 2020: feathered photos, out from the centre */
.j-flat .m-soft { position: relative; height: 92vw; max-height: 440px; margin: 1.6rem -10px 0 -24px; }
.m-soft figure { position: absolute; margin: 0; opacity: 0; scale: 0.5; translate: var(--fx) var(--fy); transition: opacity 1.2s ease, scale 1.5s cubic-bezier(.2, .8, .2, 1), translate 1.5s cubic-bezier(.2, .8, .2, 1); }
.m-soft img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.m-soft .s1 { left: 18%; top: 4%; width: 60%; height: 66%; --fx: 2%; --fy: 16%; }
.m-soft .s2 { right: 0; top: 0; width: 36%; aspect-ratio: 1; --fx: -40%; --fy: 50%; }
.m-soft .s2 img, .m-soft .s3 img { border-radius: 50%; -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent 100%); mask-image: radial-gradient(closest-side, #000 75%, transparent 100%); }
.m-soft .s3 { left: 0; top: 52%; width: 38%; aspect-ratio: 1; --fx: 40%; --fy: -30%; }
.m-soft .s4 { right: 4%; top: 58%; width: 46%; height: 38%; --fx: -30%; --fy: -40%; }
.m-soft.in figure { opacity: 1; scale: 1; translate: 0 0; }
.m-soft.in .s2 { transition-delay: 0.25s; } .m-soft.in .s3 { transition-delay: 0.4s; } .m-soft.in .s4 { transition-delay: 0.55s; }

/* Amazon: a grid, built by a scan line; photos strung on the thread; the app */
.j-flat .m-grid { position: absolute; inset: 0 0 0 40px; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(rgba(42, 40, 38, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 40, 38, 0.06) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  clip-path: inset(0 0 100% 0); transition: clip-path 2.4s cubic-bezier(.45, 0, .3, 1); }
.j-flat .chapter-amazon.is-active .m-grid { clip-path: inset(0 0 0 0); }
.m-scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 10px rgba(187, 158, 107, 0.8); opacity: 0; }
.j-flat .chapter-amazon.is-active .m-scan { animation: m-scan 2.4s cubic-bezier(.45, 0, .3, 1) both; }
@keyframes m-scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.j-flat .chapter-amazon .kicker { font-size: 0.72rem; }
.j-flat .m-string { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 3rem 0 0 -18px; padding-top: 18px; }
.m-string-k { position: absolute; left: 18px; top: -1.9rem; margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.m-string figcaption { margin-top: 0.4rem; text-align: center; font-family: "Caveat", cursive; font-size: 1.05rem; line-height: 1; color: var(--gold-deep); }
.m-cord { position: absolute; left: 0; right: -20px; top: 6px; height: 1.5px; background: #c2a26b; transform-origin: left; scale: 0 1; transition: scale 1.2s cubic-bezier(.45, 0, .2, 1); }
.m-string.in .m-cord { scale: 1 1; }
.m-string figure { position: relative; margin: 0; opacity: 0; translate: 0 -14px; transform-origin: 50% -12px; transition: opacity 0.6s ease, translate 0.8s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(0.8s + var(--i) * 0.18s); }
.m-string.in figure { opacity: 1; translate: 0 0; animation: m-sway 6s ease-in-out calc(2s + var(--i) * 0.7s) infinite; }
@keyframes m-sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
.m-string img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; box-shadow: 0 12px 20px -12px rgba(50, 35, 15, 0.55); }
.m-peg { position: absolute; left: 50%; top: -16px; z-index: 2; width: 5px; height: 16px; translate: -50% 0; border-radius: 2px; background: #c2a26b; }
.j-flat .m-apps { display: flex; justify-content: center; gap: 12px; margin-top: 2.2rem; padding-bottom: 18px; }
.m-apps .phone-frame { height: auto; width: 29%; translate: 0 calc(var(--i) % 2 * 18px); }
.m-apps .phone-screen { height: auto; aspect-ratio: 0.48; }

/* 2023: centred, in warm light */
.j-flat .chapter-awake { text-align: center; padding: 6.5rem 24px 3.4rem !important; }
.j-flat .chapter-awake .tl-label { display: none; }
.j-flat .chapter-awake .body { text-align: center !important; }
.j-flat .chapter-awake .title { font-size: 2.3rem; }
.j-flat .chapter-awake .turn { margin-top: 1.4rem; font-size: 1.5rem; }
.j-flat .dawn { display: block; position: absolute; left: 50%; bottom: -10%; width: 170%; height: 70%; }
.m-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.m-sparks i { position: absolute; bottom: 6%; width: var(--s); height: var(--s); border-radius: 50%; background: #f0cf8e; box-shadow: 0 0 6px 1px rgba(240, 200, 130, 0.75); opacity: 0; --h: 55vh; }
.j-flat .chapter-awake.is-active .m-sparks i { animation: spark-rise var(--d) ease-in-out var(--w) infinite; }
.j-flat .chapter-awake.is-active :is(.kicker, .title, .text, .turn) { transition: opacity 0.8s ease-out var(--d), filter 0.9s ease-out var(--d); }
.j-flat .chapter-awake .kicker { --d: 0s; } .j-flat .chapter-awake .title { --d: 0.1s; } .j-flat .chapter-awake .text { --d: 0.25s; } .j-flat .chapter-awake .turn { --d: 0.5s; }
.j-flat .m-wake { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 0; margin: 2.6rem -6px 0; }
.m-wake figure { position: relative; margin: 0; opacity: 0; filter: blur(4px); translate: 0 10px; transition: opacity 0.9s ease-out, filter 1s ease-out, translate 1s cubic-bezier(.2, .8, .25, 1); transition-delay: calc(0.15s + var(--i) * 0.15s); }
.m-wake.in figure { opacity: 1; filter: none; translate: 0 0; }
.m-wake img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 0 20px 36px -20px rgba(120, 84, 40, 0.55); }
.m-wake figure:nth-child(1) { rotate: -4deg; margin-right: -10px; }
.m-wake figure:nth-child(2) { z-index: 2; }
.m-wake figure:nth-child(2) img { aspect-ratio: 3 / 4; box-shadow: 0 0 0 4px var(--ivory), 0 26px 44px -22px rgba(120, 84, 40, 0.6); }
.m-wake figure:nth-child(3) { rotate: 4deg; margin-left: -10px; }

/* 2024: the editorial spread */
.j-flat .m-wash { position: absolute; left: 0; right: 0; top: 0; z-index: 0; width: 100%; height: 340px; object-fit: cover; opacity: 0.45; pointer-events: none; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.j-flat .turn-head .kicker { color: var(--gold); letter-spacing: 0.34em; }
.j-flat .turn-head .sub { margin-top: 0.9rem; font-size: 1.2rem; line-height: 1.45; }
.j-flat .turn-item { display: block; margin-top: 2.6rem !important; }
.j-flat .turn-item::after { content: ""; display: block; clear: both; }
.j-flat .turn-item .num { font-size: 0.68rem; }
.j-flat .turn-item h3 { font-size: 1.5rem; }
.j-flat .turn-item p:not(.num):not(.tagline):not(.quiet), .j-flat .turn-item .quiet { font-size: 1.05rem; }
.j-flat .turn-item .tagline { display: none; }
.m-tphone { width: 34%; margin-bottom: 0.6rem; }
.m-tphone.right { float: right; margin-left: 1rem; rotate: 3deg; }
.m-tphone.left { float: left; margin-right: 1rem; rotate: -3deg; }
.m-tphone .phone-frame { height: auto; width: 100%; }
.m-tphone .phone-screen { height: auto; aspect-ratio: 0.48; }
.j-flat .turn-item .m-tphone { opacity: 0; translate: 30px 0; transition: opacity 0.9s ease 0.3s, translate 1.1s cubic-bezier(.2, .8, .25, 1) 0.3s; }
.j-flat .turn-item .m-tphone.left { translate: -30px 0; }
.j-flat .turn-item.in .m-tphone { opacity: 1; translate: 0 0; }
.j-flat .turn-mid { text-align: center !important; padding: 0.4rem 0; }
.m-wave { display: block; width: 120px; height: 20px; margin: 0 auto 1rem; overflow: visible; }
.m-wave path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.6s ease 0.3s; }
.turn-mid.in .m-wave path { stroke-dashoffset: 0; }

/* Cornell: the seal; a gallery of prints with museum labels; Meanwhile, the app */
.j-flat .chapter-cornell .m-seal { right: -22%; top: 2rem; width: 70%; opacity: 0.06; }
.j-flat .m-prints { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 2.2rem; }
.m-prints figure { margin: 0; opacity: 0; translate: 0 14px; transition: opacity 0.8s ease, translate 1s cubic-bezier(.2, .8, .25, 1); transition-delay: calc(0.2s + var(--i) * 0.25s); }
.m-prints.in figure { opacity: 1; translate: 0 0; }
.m-print { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: #f4eee3; box-shadow: 0 16px 28px -20px rgba(60, 40, 20, 0.6); }
.m-print img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease; }
.m-prints figure.swap img, .m-prints figure.swap figcaption { opacity: 0; }
.m-prints figcaption { margin-top: 0.6rem; line-height: 1.2; transition: opacity 0.6s ease; }
.m-prints figcaption b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1rem; color: var(--gold-deep); }
.m-prints figcaption span { display: block; margin-top: 0.2rem; font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.j-flat .cornell-app { position: relative !important; inset: auto !important; display: grid !important; grid-template-columns: 34% 1fr; align-items: center; gap: 1.2rem; width: auto !important; margin: 2.6rem 0 0 !important; transform: none !important; }
.j-flat .cornell-app .side-note { grid-column: 1 / -1; position: static; margin: 0; font-size: 1.7rem; transform: none; rotate: -3deg; }
.j-flat .cornell-app .phone-frame { height: auto; width: 100%; }
.j-flat .cornell-app .phone-screen { height: auto; aspect-ratio: 0.48; }
.j-flat .cornell-app figcaption { position: static; text-align: left; }
.j-flat .cornell-app .app-name { font-size: 1.1rem; letter-spacing: 0.22em; white-space: nowrap; }
.j-flat .cornell-app .steps-mini { font-size: 0.85rem; }

/* Today: the line arrives in the centre and fades; the words, centred */
.j-flat .chapter-today { padding: 5.4rem 20px 1rem !important; }
.j-flat .today-head { text-align: center !important; }
.j-flat .today-head .kicker { color: var(--gold); letter-spacing: 0.34em; }
.j-flat .today-sub { margin-top: 0.9rem; font-size: 1.1rem; line-height: 1.5; }
.j-flat .facets { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 14px; margin-top: 2.4rem !important; }
.j-flat .facet { align-items: center; text-align: center; padding: 0; border: 0 !important; opacity: 1; animation: none !important; }
.j-flat .facet .facet-shot { display: block; height: auto; width: 100%; aspect-ratio: 4 / 5; }
.j-flat .facet p { display: block; max-width: none; font-size: 0.98rem; }
.j-flat .facet h3 { margin: 0.9rem 0 0; font-size: 1.45rem; }
.j-flat .facet-build { grid-column: 1 / -1; }
.j-flat .facet-build .fan { height: 60vw; max-height: 290px; }
.j-flat .facet-projects { display: none; }
.j-flat .chapter-today :is(.today-head > *) { animation: none !important; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .j-flat .chapter > *, .j-flat .m-part, .j-flat .m-part * { opacity: 1 !important; translate: none !important; scale: 1 !important; filter: none !important; transition: none !important; animation: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
}

/* ───────────────── Phones: the menu (js/nav.js) ─────────────────
   A quiet bar: the logo and a slim two-line icon. Connect lives in the menu, at the bottom. */
.nav-menu, .nav-connect { display: none; }
@media (max-width: 760px) {
  .nav { padding: 0 10px 0 20px; }
  .nav-logo { font-size: 1.6rem; }
  .nav > .btn-sm { display: none; }
  .nav-menu {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  }
  .nav-menu span { display: block; width: 24px; height: 1px; background: var(--ink); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), width 0.35s ease; }
  .nav-menu span:last-child { width: 16px; justify-self: end; }
  .nav.open .nav-menu span { width: 22px; }
  .nav.open .nav-menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links, .nav.open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; transform: none;
    flex-direction: column; gap: 0; padding: 0.6rem 20px 1.6rem;
    background: var(--ivory); border-bottom: 1px solid rgba(187, 158, 107, 0.3);
    box-shadow: 0 30px 40px -30px rgba(40, 28, 12, 0.35);
    opacity: 0; visibility: hidden; translate: 0 -6px;
    transition: opacity 0.25s ease, translate 0.3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0.3s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.25s ease, translate 0.3s cubic-bezier(.2, .7, .2, 1); }
  .nav-links a { padding: 0.9rem 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; border-bottom: 1px solid rgba(187, 158, 107, 0.18); }
  .nav-links a::after { display: none; }
  .nav-links a.on { color: var(--gold-deep); }
  .nav-links .nav-connect {
    display: flex; justify-content: center; align-items: center; height: 3.2rem; margin-top: 1.4rem; padding: 0; border: 0; border-radius: 999px;
    background: var(--gold); color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 700;
  }
}

/* ───────────────── Phones: the homepage ───────────────── */
@media (max-width: 760px) {
  /* hero: a magazine cover filling the first screen. The photo takes all the room above the words and
     fades into ivory; the words and buttons sit at the bottom, starting where it is already ivory */
  .hero { position: relative; display: flex; flex-direction: column; min-height: 100svh; height: auto; }
  .hero-photo { position: relative; flex: 1 1 auto; width: auto; height: auto; min-height: 42svh; margin: 0 0 -9svh; border-radius: 0; aspect-ratio: auto; overflow: hidden; }
  .hero-photo img { position: absolute; inset: 0; object-position: 50% 18%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0 0 -2px; background: linear-gradient(to bottom, rgba(246, 242, 234, 0) calc(100% - 26svh), rgba(246, 242, 234, 0.6) calc(100% - 17svh), rgba(246, 242, 234, 0.94) calc(100% - 11svh), var(--ivory) calc(100% - 8svh)); }
  .hero-copy { position: relative; z-index: 1; padding: 0 20px 2.8rem; }
  .hero .eyebrow { font-size: 0.78rem; }
  .hero h1 { font-size: 1.85rem; margin-top: 0.6rem; line-height: 1.1; }
  .hero .pipeline, .hero .pipeline-for { display: none; }   /* phones: the headline and the two buttons are enough */
  .hero-ctas { margin-top: 1.6rem; }
  .hero-ctas .btn { height: 3.1rem; font-size: 1rem; }
  .hero-scroll { display: none; }
  .pipeline { flex-wrap: wrap; row-gap: 0.4rem; gap: 0.42rem; font-size: 0.7rem; letter-spacing: 0.07em; }

  .hm > section.hm-work { padding: 0 20px !important; margin-top: 4.5rem !important; }
  .wk-head { gap: 1rem !important; }
  .wk-label { font-size: 0.72rem; }
  .wk-all { font-size: 0.82rem; }
  .tb-feature { grid-template-columns: 1fr; gap: 1.6rem; }
  .tb-ohm { aspect-ratio: 5 / 4; }
  .tb-ohm .s1, .tb-ohm .s3 { width: 29%; top: 17%; }
  .tb-ohm .s1 { left: 6%; } .tb-ohm .s3 { right: 6%; }
  .tb-ohm .s2 { width: 34%; left: 33%; top: 8%; }
  .tb-k { font-size: 0.68rem; }
  .tb-copy h3 { font-size: 2.4rem; }
  .tb-copy > p:not(.tb-k) { font-size: 1rem; }
  .tb-facts { gap: 1.6rem; margin-top: 1.6rem; padding-top: 1.2rem; }
  .tb-facts li { font-size: 0.8rem; line-height: 1.3; }
  .tb-facts b { font-size: 1.9rem; }
  .tb-actions { flex-wrap: wrap; gap: 1.2rem 1.8rem; margin-top: 1.6rem; }
  .tb-go { font-size: 0.95rem; }
  .tb-store span { font-size: 0.95rem; } .tb-store small { font-size: 0.6rem; }
  .tb-two { grid-template-columns: 1fr; gap: 2.8rem; margin-top: 3.4rem; }
  .tb-info h3 { font-size: 1.65rem; }
  .tb-info p { font-size: 0.95rem; }
  .tb-info small { font-size: 0.62rem; }

  .hm > section.ots { margin-top: 5rem; padding: 0 20px; }
  .ots-intro { font-size: 1rem; }
  .ots-strip { padding-top: 1.6rem; }
  .ots-strip ul { flex-wrap: wrap; justify-content: space-between; row-gap: 2.6vw; gap: 2.6vw; }
  .ots .m1, .ots .m2, .ots .m3, .ots .m4, .ots .m5, .ots .m6 { width: calc((100% - 5.2vw) / 3); }
  .ots .m1 { height: 40vw; margin-top: 3vw; } .ots .m2 { height: 34vw; margin-top: 0; } .ots .m3 { height: 42vw; margin-top: 5vw; }
  .ots .m4 { height: 34vw; margin-top: 0; } .ots .m5 { height: 40vw; margin-top: -6vw; } .ots .m6 { height: 34vw; margin-top: 1vw; }
  .ots-vk { font-size: 0.72rem; }
  .ots-pills li { font-size: 0.85rem; }

  .hm-close { width: auto; padding: 5rem 20px 4rem; }
  .hm-close h2 { font-size: 2.3rem; }
  .hm-close p:not(.sv-k) { font-size: 1rem; }
  .hm .sv-k, .hm-end .sv-k { font-size: 0.7rem; }
  .hm-actions { flex-direction: column; gap: 1.4rem; }
  .ft { flex-direction: column; gap: 1.2rem; width: auto; margin: 0 20px; text-align: center; font-size: 0.85rem; }
  .ft nav { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.6rem; }
}

/* ───────────────── Phones: portfolio ───────────────── */
@media (max-width: 760px) {
  .pf-body { grid-template-columns: minmax(0, 1fr); padding: 0 20px; }
  .pf-nav { min-width: 0; }
  .pf-list, .pf-row > *, .pf-points > *, .pf-point.lead > * { min-width: 0; }   /* a grid column never grows past the screen */
  .pf-head { padding: 2.4rem 20px 3rem; }
  /* the project list becomes a row of tabs that stays under the nav */
  .pf-nav { display: block; position: sticky; top: var(--nav-h); z-index: 20; margin: 0 -20px; padding: 0; background: var(--ivory); border-bottom: 1px solid rgba(187, 158, 107, 0.3); }
  .pf-nav p { display: none; }
  .pf-nav ol { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.7rem 20px; scrollbar-width: none; }
  .pf-nav ol::-webkit-scrollbar { display: none; }
  .pf-nav ol::before { display: none; }
  .pf-nav li { flex: none; }
  .pf-nav a { padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.85rem; white-space: nowrap; border: 1px solid rgba(187, 158, 107, 0.35); }
  .pf-nav a i { display: none; }
  .pf-nav a.on { background: var(--ink); border-color: var(--ink); color: var(--ivory); font-weight: 400; }
  .pf-project { padding: 3.4rem 0; scroll-margin-top: calc(var(--nav-h) + 4rem); }
  .pf-media { height: auto; min-height: 0; }
  .pf-media.pf-cards { height: 80vw; }
  .pf-n { font-size: 0.72rem; }
  .pf-status { font-size: 0.58rem; }
  .pf-words h2 { font-size: 2.2rem; }
  .pf-line { font-size: 1.15rem; }
  .pf-text { font-size: 1rem; }
  .pf-meta { font-size: 0.7rem; line-height: 1.5; }
  .pf-tags li { font-size: 0.78rem; }
  .pf-stats { gap: 1.6rem; flex-wrap: wrap; }
  .pf-stats b { font-size: 1.7rem; }
  .pf-stats span { font-size: 0.66rem; }
  .pf-toggle, .pf-cta { font-size: 0.82rem; }
  .pf-close { font-size: 0.7rem; }
  .pf-gallery img { height: 52vh; }
  .pf-work-title { font-size: 1.7rem; }
  .pf-point > span, .pf-point > div > span { font-size: 0.68rem; }
  .pf-point h4, .pf-point.lead h4 { font-size: 1.4rem; }
  .pf-point p { font-size: 0.98rem; }
  .pf-showcase { padding: 1.2rem; }
  .pf-showcase-k { font-size: 0.66rem !important; }
  .pf-chips li { font-size: 0.85rem; padding: 0.45rem 0.9rem; }
  .pf-chips.quiet li { font-size: 0.78rem; }
  .pf-learned { margin-top: 3.4rem; }
  .pf-learned-k { font-size: 0.68rem; }
  .pf-learned-big { font-size: 1.7rem; }
  .pf-learned-small { font-size: 0.98rem; }
}

/* ───────────────── Phones: Ohm Chants case study ───────────────── */
@media (max-width: 760px) {
  .c1-brand { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .c1-types { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .al-body { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .al-body > * { min-width: 0; }
  .bt-numbers ul { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .bt-numbers li { padding: 0 0.8rem; }
  .bt-numbers li:nth-child(odd) { border-left: 0; }
  .bt-numbers b { font-size: 2.6rem; }
  .bt-numbers span:not(.bt-stars) { font-size: 0.9rem; }
  .bt-bottom { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .bt-quotes { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-left: 2rem; }
  .bt-quotes blockquote { font-size: 1.3rem; }
  .bt-quotes figcaption, .bt-built span, .bt-k { font-size: 0.68rem; }
  .bt-shipped { font-size: 0.78rem; }
  .bt-built { padding: 1.6rem 0 0; border-left: 0; border-top: 1px solid rgba(187, 158, 107, 0.3); grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 1.6rem; }
  .bt-built span { grid-column: 1 / -1; }
  .bt-built b { font-size: 0.9rem; }
}


/* ───────────────── Desktop text at 75% of the design size (two Cmd-minus steps); phones keep full size ───────────────── */
@media (min-width: 761px) {
  body { font-size: 0.75rem; }
  .eyebrow { font-size: max(9.75px, calc(var(--u) * 1.087)); }
  .btn-sm { font-size: max(10.5px, calc(var(--u) * 0.788)); }
  .nav-logo { font-size: max(18px, calc(var(--u) * 1.65)); }
  .nav-links { font-size: max(11.25px, calc(var(--u) * 0.825)); }
  .hero h1 { font-size: max(1.65rem, calc(var(--u) * 3)); }
  .pipeline { font-size: calc(var(--u) * 0.975); }
  .pipeline-for { font-size: calc(var(--u) * 1.95); }
  .hero-ctas .btn { font-size: clamp(0.75rem, calc(var(--u) * 0.975), 1.013rem); }
  .hero-scroll { font-size: max(11.25px, calc(var(--u) * 0.938)); }
  .tl-label .y { font-size: 2.025rem; }
  .tl-label .p { font-size: 0.6rem; }
  .jscrub-stop b { font-size: 1.2rem; }
  .jscrub-stop span { font-size: 0.51rem; }
  .jscrub-stop.picked b { font-size: 1.575rem; }
  .overview b { font-size: 1.425rem; }
  .overview span { font-size: 0.525rem; }
  .overview i { font-size: 0.862rem; }
  .overview-hint { font-size: 0.525rem; }
  .chapter-intro .title, .page-head .title { font-size: clamp(2.25rem, 3.3vw, 3.75rem); }
  .chapter-intro .text, .page-head .text { font-size: 0.975rem; }
  .kicker { font-size: 0.6rem; }
  .title { font-size: clamp(1.65rem, 2.325vw, 2.475rem); }
  .text { font-size: 0.862rem; }
  .aside { font-size: 0.75rem; }
  .code { font-size: clamp(0.75rem, 0.938vw, 0.938rem); }
  .chapter-dubai .hello { font-size: clamp(2.325rem, 3.9vw, 4.05rem); }
  .chapter-dubai .text { font-size: 0.975rem; }
  .chapter-dubai .code { font-size: clamp(0.788rem, 1.013vw, 1.013rem); }
  .sat-year { font-size: 0.525rem; }
  .sat-name { font-size: 0.975rem; }
  .sat-role { font-size: 0.6rem; }
  .piece .hand-note { font-size: 1.163rem; }
  .chapter-story.chapter-berkeley .title { font-size: clamp(2.25rem, 3.45vw, 3.9rem); }
  .chapter-story.chapter-berkeley .text { font-size: 0.9rem; }
  .chapter-story.chapter-inward .title { font-size: clamp(2.1rem, 3.15vw, 3.45rem); }
  .chapter-story.chapter-amazon .title { font-size: clamp(1.95rem, 2.925vw, 3.15rem); }
  .mono-label { font-size: 0.54rem; }
  .thread-label { font-size: 0.51rem; }
  .wtile figcaption { font-size: 1.087rem; }
  .phone figcaption { font-size: 0.51rem; }
  .chapter-story .title { font-size: clamp(2.1rem, 3.45vw, 3.675rem); }
  .chapter-story .text { font-size: 0.975rem; }
  .chapter-awake .title { font-size: clamp(1.95rem, 3vw, 3.225rem); }
  .chapter-awake .text { font-size: 0.9rem; }
  .chapter-awake .turn { font-size: clamp(1.2rem, 1.575vw, 1.575rem); }
  .turn-head .title { font-size: clamp(2.1rem, 3.075vw, 3.45rem); }
  .turn-head .sub { font-size: clamp(1.013rem, 1.312vw, 1.462rem); }
  .turn-item .num { font-size: 0.555rem; }
  .turn-item h3 { font-size: clamp(1.275rem, 1.537vw, 1.725rem); }
  .turn-item p:not(.num):not(.tagline):not(.quiet) { font-size: clamp(0.862rem, 0.975vw, 1.087rem); }
  .turn-item .tagline { font-size: 0.6rem; }
  .turn-mid h3 { font-size: clamp(1.725rem, 2.25vw, 2.55rem); }
  .turn-mid .quiet { font-size: clamp(0.975rem, 1.237vw, 1.35rem); }
  .chapter-cornell .title { font-size: clamp(2.1rem, 3.075vw, 3.45rem); }
  .chapter-cornell .text { font-size: 0.862rem; }
  .c-shot figcaption b { font-size: 0.938rem; }
  .c-shot figcaption span { font-size: 0.45rem; }
  .cornell-app .side-note { font-size: 0.48rem; }
  .cornell-app .app-name { font-size: 0.51rem; }
  .steps-mini li { font-size: 0.54rem; }
  .steps-mini em { font-size: 0.495rem; }
  .cornell-app .side-note { font-size: 0.712rem; }
  .steps li { font-size: 0.712rem; }
  .steps li span { font-size: 1.312rem; }
  .today-head .title { font-size: clamp(1.8rem, 2.55vw, 2.85rem); }
  .today-sub { font-size: clamp(0.825rem, 0.975vw, 0.975rem); }
  .facet h3 { font-size: clamp(1.575rem, 1.95vw, 2.175rem); }
  .facet p { font-size: clamp(0.825rem, 0.975vw, 0.99rem); }
  .facet-projects { font-size: 0.465rem; }
  .reach-link b { font-size: clamp(1.2rem, 1.5vw, 1.575rem); }
  .reach-link span { font-size: 0.712rem; }
  .reach-link i { font-size: 0.975rem; }
  .section-title { font-size: clamp(1.65rem, 3vw, 2.7rem); }
  .pf-nav p { font-size: 0.48rem; }
  .pf-nav a { font-size: 0.69rem; }
  .phone-soon span { font-size: 0.712rem; }
  .pf-soon { font-size: 0.862rem; }
  .pf-n { font-size: 0.54rem; }
  .pf-status { font-size: 0.45rem; }
  .pf-words h2 { font-size: clamp(1.8rem, 2.475vw, 2.625rem); }
  .pf-line { font-size: clamp(0.9rem, 1.125vw, 1.125rem); }
  .pf-text { font-size: 0.84rem; }
  .tb-k { font-size: 0.525rem; }
  .tb-copy h3 { font-size: clamp(1.95rem, 3vw, 3.15rem); }
  .tb-copy > p:not(.tb-k) { font-size: 0.788rem; }
  .tb-facts li { font-size: 0.712rem; }
  .tb-facts b { font-size: 1.65rem; }
  .tb-store span { font-size: 0.712rem; }
  .tb-store small { font-size: 0.42rem; }
  .tb-go { font-size: 0.712rem; }
  .tb-info h3 { font-size: 1.425rem; }
  .tb-info p { font-size: 0.712rem; }
  .tb-info small { font-size: 0.48rem; }
  .ots-vk { font-size: 0.525rem; }
  .ots-pills li { font-size: 0.637rem; }
  .ots-intro { font-size: 0.81rem; }
  .bw h2 { font-size: max(1.5rem, calc(var(--u) * 2.4)); }
  .bw-values { font-size: max(9px, calc(var(--u) * 0.75)) !important; }
  .bw-btn { font-size: clamp(0.75rem, calc(var(--u) * 0.9), 0.938rem); }
  .hero-logos .amz-word { font-size: 0.788rem; }
  .vq-list b { font-size: clamp(1.275rem, 1.8vw, 1.725rem); }
  .vq-list span { font-size: 0.735rem; }
  .st-big { font-size: clamp(2.1rem, 3.75vw, 3.9rem); }
  .st-small { font-size: 0.81rem; }
  .st-words li + li::before { font-size: clamp(1.5rem, 2.55vw, 2.625rem); }
  .st-words button { font-size: clamp(1.5rem, 2.55vw, 2.625rem); }
  .st-line { font-size: 0.81rem; }
  .st-mid { font-size: clamp(1.65rem, 2.55vw, 2.55rem); }
  .wk-label { font-size: 0.585rem; }
  .wk-all { font-size: 0.66rem; }
  .wk-title { font-size: clamp(1.95rem, 3vw, 3.15rem); }
  .amz-word { font-size: 1.425rem; }
  .mv-h { font-size: clamp(2.1rem, 3.3vw, 3.45rem); }
  .mv-why { font-size: 0.81rem; }
  .mv-btn { font-size: 0.712rem; }
  .mv-values i { font-size: 1.95rem; }
  .mv-values b { font-size: 1.35rem; }
  .mv-values span { font-size: 0.712rem; }
  .hm-trust p { font-size: 0.712rem; }
  .hm-trust b { font-size: 0.975rem; }
  .hz-nav button { font-size: 0.75rem; }
  .hz-brand { font-size: 0.615rem; }
  .hz-amz .hz-brand { font-size: 0.75rem; }
  .hz-soon { font-size: 0.6rem; }
  .hz-card b { font-size: 1.275rem; }
  .hz-card span:not(.hz-soon):not(.hz-glow) { font-size: 0.705rem; }
  .hz-card small { font-size: 0.48rem; }
  .me-line { font-size: clamp(1.65rem, 2.7vw, 2.85rem); }
  .me-half figcaption { font-size: 0.765rem; }
  .me-half small { font-size: 0.525rem; }
  .me-values b { font-size: 1.2rem; }
  .me-values span { font-size: 0.712rem; }
  .sd figcaption { font-size: clamp(1.2rem, 1.65vw, 1.725rem); }
  .sd-2 figcaption { font-size: clamp(1.65rem, 2.55vw, 2.7rem); }
  .sides-end p { font-size: clamp(1.5rem, 2.4vw, 2.4rem); }
  .ft { font-size: 0.66rem; }
  .ft-logo { font-size: 1.2rem; }
  .hm-close h2 { font-size: clamp(1.65rem, 2.4vw, 2.4rem); }
  .hm-close p:not(.sv-k) { font-size: 0.765rem; }
  .hm .sv-h { font-size: clamp(1.95rem, 3.15vw, 3.3rem); }
  .me-line { font-size: clamp(2.1rem, 3.75vw, 3.9rem); }
  .hm-close h2 { font-size: clamp(1.95rem, 3.3vw, 3.45rem); }
  .hm .sv-k { font-size: 0.525rem; }
  .hz-card b { font-size: 0.788rem; }
  .hz-card span:not(.hz-soon):not(.hz-glow):not(.hz-brand) { font-size: 0.675rem; }
  .hm-trust b { font-size: 0.712rem; }
  .me-values b { font-size: 0.788rem; }
  .sv-k { font-size: 0.555rem; }
  .sv-hero h1 { font-size: clamp(2.1rem, 3.15vw, 3.45rem); }
  .sv-intro { font-size: 0.81rem; }
  .sv-cta { font-size: 0.712rem; }
  .sv-link { font-size: 0.712rem; }
  .sv-h { font-size: clamp(1.5rem, 2.1vw, 2.1rem); }
  .sv-row span { font-size: 0.735rem; }
  .sv-row b { font-size: 1.125rem; }
  .sv-row em { font-size: 0.9rem; }
  .sv-row-flag b { font-size: 1.388rem; }
  .sv-tag { font-size: 0.495rem; }
  .sv-steps b { font-size: 1.163rem; }
  .sv-steps span { font-size: 0.712rem; }
  .sv-work b { font-size: 1.013rem; }
  .sv-work small { font-size: 0.66rem; }
  .sv-q summary { font-size: 1.05rem; }
  .sv-q p { font-size: 0.75rem; }
  .sv-close h2 { font-size: clamp(1.8rem, 2.55vw, 2.55rem); }
  .sv-close p { font-size: 0.788rem; }
  .ct-form h2, .ct-aside h2 { font-size: clamp(1.425rem, 1.8vw, 1.8rem); }
  .ct-sub, .ct-aside p:not(.cs-n) { font-size: 0.735rem; }
  .ct-field > span, .ct-field legend { font-size: 0.615rem; }
  .ct-field input, .ct-field textarea, .ct-field select { font-size: 0.735rem; }
  .ct-svc { font-size: 0.69rem; }
  .ct-k { font-size: 1.125rem; }
  .ct-error { font-size: 0.675rem; }
  .ct-send { font-size: 0.735rem; }
  .ct-done h3 { font-size: 1.8rem; }
  .ct-note { font-size: 0.615rem; }
  .ct-mail { font-size: 0.69rem; }
  .ct-steps li { font-size: 0.712rem; }
  .ct-steps span { font-size: 1.65rem; }
  .ct-steps b { font-size: 1.087rem; }
  .pr-k { font-size: 0.54rem; }
  .pr-line { font-size: clamp(0.9rem, 1.125vw, 1.125rem); }
  .pr-soon span { font-size: 0.975rem; }
  .pr-soon small { font-size: 0.525rem; }
  .pr-text { font-size: 0.788rem; }
  .pr-journeys h3 { font-size: 1.2rem; }
  .pr-journeys p { font-size: 0.712rem; }
  .pr-status b { font-size: 1.125rem; }
  .pr-status span { font-size: 0.712rem; }
  .sg-soon { font-size: clamp(0.75rem, 1.125vw, 1.013rem); }
  .rg-shot figcaption { font-size: 0.705rem; }
  .rg-shot figcaption span { font-size: 0.525rem; }
  .rg-shot figcaption b { font-size: 1.05rem; }
  .pf-stats b { font-size: clamp(1.5rem, 1.95vw, 1.95rem); }
  .pf-stats span { font-size: 0.555rem; }
  .pf-meta { font-size: 0.57rem; }
  .pf-tags li { font-size: 0.585rem; }
  .pf-toggle { font-size: 0.585rem; }
  .pf-close { font-size: 0.54rem; }
  .pf-work-title { font-size: clamp(1.5rem, 2.025vw, 2.1rem); }
  .pf-point > span, .pf-point > div > span { font-size: 0.54rem; }
  .pf-point h4 { font-size: clamp(1.087rem, 1.312vw, 1.35rem); }
  .pf-point p { font-size: 0.81rem; }
  .pf-point.lead h4 { font-size: clamp(1.425rem, 1.8vw, 1.875rem); }
  .pf-showcase-k { font-size: 0.51rem !important; }
  .pf-chips li { font-size: 0.735rem; }
  .pf-chips.quiet li { font-size: 0.637rem; }
  .pf-stat { font-size: 0.788rem !important; }
  .pf-learned-k { font-size: 0.54rem; }
  .pf-learned-big { font-size: clamp(1.5rem, 2.1vw, 2.25rem); }
  .pf-learned-small { font-size: 0.825rem; }
  .pf-gallery figcaption { font-size: 0.75rem; }
  .ohm-k { font-size: 0.555rem; }
  .pf-project.ohm h2 { font-size: clamp(2.25rem, 3.45vw, 3.6rem); }
  .pf-cta { font-size: 0.6rem; }
  .pf-cta em { font-size: 0.75rem; }
  .ohm-keys-k { font-size: 0.555rem; }
  .ohm-keys h4 { font-size: 1.087rem; }
  .ohm-keys p { font-size: 0.735rem; }
  .cs-back { font-size: 0.555rem; }
  .cs-soon p:last-child { font-size: 0.975rem; }
  .cs-n { font-size: 0.555rem; }
  .cs-ch h2 { font-size: clamp(1.65rem, 2.4vw, 2.4rem); }
  .cs-ch-words > p:not(.cs-n), .cs-ch > p:not(.cs-n):not(.cs-todo) { font-size: 0.825rem; }
  .cs-todo { font-size: 0.637rem; }
  .cs-head h1 { font-size: clamp(1.8rem, 2.55vw, 2.7rem); }
  .cs-store span { font-size: 0.788rem; }
  .cs-store small { font-size: 0.465rem; }
  .c1-story h2 { font-size: clamp(1.95rem, 2.85vw, 3rem); }
  .c1-text { font-size: 0.81rem; }
  .c1-date { font-size: 0.525rem; }
  .c1-bubble { font-size: 0.69rem; }
  .cl-note { font-size: 0.975rem; }
  .cl-note em { font-size: 0.75rem; }
  .c1-part-words h3 { font-size: clamp(1.5rem, 2.1vw, 2.175rem); }
  .c1-part-words > p:not(.cs-n) { font-size: 0.765rem; }
  .c1-palette figcaption { font-size: 0.637rem; }
  .c1-type b { font-size: 2.4rem; }
  .c1-type h4 { font-size: 0.975rem; }
  .c1-type p { font-size: 0.6rem; }
  .c1-close { font-size: 0.9rem; }
  .c1-close span { font-size: 0.54rem; }
  .c1-phones h4 { font-size: 0.735rem; }
  .c1-phones h4 span { font-size: 0.585rem; }
  .c1-phones p { font-size: 0.69rem; }
  .cs-iterate .rx-left h2 { font-size: clamp(1.8rem, 2.475vw, 2.625rem); }
  .rx-sub { font-size: 0.765rem; }
  .ba-quote::before { font-size: 3.15rem; }
  .ba-quote blockquote { font-size: clamp(1.125rem, 1.425vw, 1.425rem); }
  .ba-quote figcaption { font-size: 0.54rem; }
  .rx-tabs span { font-size: 0.57rem; }
  .rx-tabs b { font-size: 1.013rem; }
  .rx-tabs em { font-size: 0.69rem; }
  .rx-more { font-size: 0.75rem; }
  .kd-labels b { font-size: 0.495rem; }
  .kd-handle i { font-size: 0.75rem; }
  .cs-steps b { font-size: 1.125rem; }
  .cs-steps span { font-size: 0.712rem; }
  .cs-build .bt-head h2 { font-size: clamp(1.725rem, 2.4vw, 2.55rem); }
  .bt-head > div > p:last-child { font-size: 0.765rem; }
  .bt-rating > b { font-size: 3.45rem; }
  .bt-rating p { font-size: 0.675rem; }
  .bt-rating small { font-size: 0.54rem; }
  .bt-numbers b { font-size: clamp(2.4rem, 3.45vw, 3.6rem); }
  .bt-numbers span:not(.bt-stars) { font-size: 0.75rem; }
  .bt-k { font-size: 0.54rem; }
  .bt-note { font-size: 0.637rem; }
  .bt-quotes figure::before { font-size: 2.85rem; }
  .bt-quotes blockquote { font-size: clamp(0.975rem, 1.2vw, 1.2rem); }
  .bt-quotes figcaption { font-size: 0.525rem; }
  .bt-shipped { font-size: 0.6rem; }
  .bt-built span { font-size: 0.54rem; }
  .bt-built b { font-size: 0.735rem; }
  .al-sub { font-size: 0.765rem; }
  .al-stats b { font-size: clamp(2.25rem, 3.15vw, 3.3rem); }
  .al-stats span { font-size: 0.555rem; }
  .al-k { font-size: 0.54rem; }
  .al-features h3 { font-size: 1.087rem; }
  .al-features p { font-size: 0.705rem; }
  .cs-stats b { font-size: 2.4rem; }
  .cs-stats span { font-size: 0.675rem; }
  .cs-feats h4 { font-size: 1.087rem; }
  .cs-feats p { font-size: 0.735rem; }
  .vc-rated { font-size: 0.54rem; }
  .vc-stars { font-size: 0.75rem; }
  .vc h3 { font-size: 0.975rem; }
  .vc blockquote { font-size: 0.69rem; }
  .vc figcaption { font-size: 0.525rem; }
  .oc-head p { font-size: 0.54rem; }
  .oc-head span { font-size: 0.6rem; }
  .cs-quotes p { font-size: 0.975rem; }
  .cs-quotes p::before { font-size: 2.25rem; }
  .cs-quotes span { font-size: 0.585rem; }
}

/* ───────────────── Phones: Ohm Chants 02, the options beside the phone on one screen ───────────────── */
@media (max-width: 760px) {
  .cs-iterate { grid-template-columns: minmax(0, 1fr) 40%; column-gap: 14px; row-gap: 0; align-items: start; }
  .cs-iterate .rx-left { display: contents; }
  .cs-iterate .rx-left > * { grid-column: 1 / -1; }
  .cs-iterate .rx-left h2 { font-size: 2.2rem; }
  .rx-sub { font-size: 1rem; }
  .ba-quote { margin: 1.6rem 0 0 1.8rem; }
  .ba-quote::before { left: -1.9rem; font-size: 3.4rem; }
  .ba-quote blockquote { font-size: 1.3rem; }
  .ba-quote figcaption { font-size: 0.66rem; }
  .cs-iterate .rx-left > .rx-tabs { grid-column: 1; grid-row: 5; align-self: center; margin: 1.8rem 0 0; }
  .rx-tabs button { grid-template-columns: 1.7rem 1fr; padding: 0.75rem 0.55rem; }
  .rx-tabs span { font-size: 0.7rem; line-height: 1.9; }
  .rx-tabs b { font-size: 1.12rem; line-height: 1.2; }
  .rx-tabs em { display: none; }
  .cs-iterate .rx-right { grid-column: 2; grid-row: 5; width: auto; margin-top: 1.8rem; justify-self: stretch; }
  .kd-labels { margin-bottom: 0.5rem; }
  .kd-labels b { padding: 0.2rem 0.5rem; font-size: 0.56rem; letter-spacing: 0.12em; }
  .kd-handle i { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .cs-iterate .rx-left > .rx-more { grid-row: 6; min-height: 0; margin-top: 1.2rem; padding-left: 0; font-size: 0.98rem; }
}

/* ───────────────── Phones: form fields at 16px, so iOS doesn't zoom in when one is tapped ───────────────── */
@media (max-width: 760px) {
  .ct-field input, .ct-field textarea, .ct-field select { font-size: 16px; }
}

/* ───────────────── Phones: service cards, icon above the words so the text has the full width ───────────────── */
@media (max-width: 760px) {
  .sv-row { position: relative; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 1.3rem 1.3rem 1.4rem; }
  .sv-row b { line-height: 1.15; margin-bottom: 0.3rem; }
  .sv-row-flag b { font-size: 1.7rem; }
  .sv-row em { position: absolute; top: 1.3rem; right: 1.3rem; }
  .sv-ic { width: 40px; height: 40px; }
  .sv-row-flag .sv-ic { width: 46px; height: 46px; }
}
