/* ==========================================================================
   Jasmin Normatova — Culture, translated.
   Concept: "Lapis & Light". Dark-first, ornament as light.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --lapis-night: #070B1F;
  --lapis-deep: #0E1636;
  --cobalt: #1E3FAE;
  --samarkand: #2EC4D6;
  --violet: #6B4BE0;
  --amethyst: #A88BFF;
  --silver: #C9D1E0;
  --moonlight: #EEF1F7;
  --porcelain: #F4F1EA;
  --gold-thread: #C9A45C;

  --bg: var(--lapis-night);
  --surface: var(--lapis-deep);
  --text: var(--silver);
  --heading: var(--moonlight);
  --muted: rgba(201, 209, 224, .62);
  --hairline: rgba(201, 209, 224, .12);

  --metal: linear-gradient(120deg, #8E98B5, #EEF1F7 50%, #6E7899);
  --iridescent: conic-gradient(from 0deg, var(--samarkand), var(--violet), var(--cobalt), var(--samarkand));

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-cjk: "Noto Serif SC", "Songti SC", serif;

  --fs-mega: clamp(64px, 14vw, 240px);
  --fs-display: clamp(44px, 8vw, 128px);
  --fs-h2: clamp(36px, 5vw, 72px);
  --fs-h3: clamp(24px, 2.5vw, 36px);
  --fs-body-lg: clamp(18px, 1.4vw, 22px);
  --fs-body: clamp(16px, 1.1vw, 18px);
  --fs-label: 12px;

  --gutter: 24px;
  --max: 1440px;
  --section-y: clamp(96px, 14vh, 192px);
  --radius: 2px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 60px; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--violet); color: var(--moonlight); }

:focus-visible { outline: 2px solid var(--samarkand); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 10001;
  background: var(--moonlight); color: var(--lapis-night);
  padding: 10px 16px; border-radius: 999px; font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--heading);
}
.section-title em, .hero__title em, .cta__title em, .case-hero__title em {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.lead { font-size: var(--fs-body-lg); max-width: 62ch; color: var(--text); line-height: 1.5; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.word-wrap { display: inline-block; white-space: nowrap; }
em:has(.char) { background: none !important; padding-right: 0; }
em .char { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; margin-right: -.04em; }

/* Placeholder content Jasmin still needs to confirm. Easy to spot, easy to remove. */
.ph { color: var(--amethyst); border-bottom: 1px dashed currentColor; }
.ph-media {
  position: relative;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(201,209,224,.05) 14px 15px),
    radial-gradient(ellipse at 50% 40%, rgba(107,75,224,.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph-media span {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 8px 14px; border: 1px dashed var(--hairline); border-radius: 999px;
  text-align: center; max-width: 85%;
}

/* Thread underline links */
.link {
  background-image: linear-gradient(90deg, var(--samarkand), var(--violet), var(--silver));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--ease-out), color .3s;
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; color: var(--heading); }

/* ---------- Buttons ---------- */
.pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.pill::after {
  content: "";
  position: absolute; inset: -40% -60%;
  background: linear-gradient(100deg, transparent 35%, rgba(46,196,214,.35) 45%, rgba(168,139,255,.4) 52%, transparent 62%);
  transform: translateX(-80%);
  transition: transform .9s var(--ease-out);
  z-index: -1;
  pointer-events: none;
}
.pill:hover::after { transform: translateX(80%); }
.pill:active { transform: scale(.97); }
.pill--primary { background: var(--moonlight); color: var(--lapis-night); }
.pill--ghost { border: 1px solid rgba(201,209,224,.35); color: var(--heading); background: rgba(7,11,31,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill--ghost:hover { border-color: var(--silver); }
.pill--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.magnetic { will-change: transform; }

/* ---------- Global chrome ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 calc(var(--gutter) + env(safe-area-inset-left)) 0 calc(var(--gutter) + env(safe-area-inset-right));
  transition: transform .6s var(--ease-out), background-color .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(7,11,31,.75), rgba(7,11,31,0));
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .pill { justify-self: end; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 26px; color: var(--heading); letter-spacing: -.01em; line-height: 1; }
.logo__mark { width: 10px; height: 17px; fill: url(#metal); transition: transform 1.2s var(--ease-out); }
.logo:hover .logo__mark { transform: rotateY(180deg); }
.site-nav { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); }
.site-nav a { color: var(--text); }

.progress {
  position: fixed; right: 12px; top: 18vh; height: 64vh; width: 1px;
  background: rgba(201,209,224,.14);
  z-index: 90; pointer-events: none;
}
.progress span { position: absolute; inset: 0; background: linear-gradient(var(--violet), var(--amethyst)); transform-origin: top; transform: scaleY(0); }

/* Cursor */
.cursor, .trail { display: none; }
.has-cursor .cursor, .has-cursor .trail { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .drum { cursor: none; }
.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; }
.cursor { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999; }
.cursor__ring, .cursor__dot, .cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; }
.cursor__ring {
  width: 22px; height: 22px; border: 1px solid rgba(201,209,224,.7);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__dot { width: 4px; height: 4px; background: var(--moonlight); }
.cursor__label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lapis-night); opacity: 0; transition: opacity .25s; border-radius: 0; white-space: nowrap;
}
.cursor.has-label .cursor__ring { width: 72px; height: 72px; background: var(--moonlight); border-color: var(--moonlight); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-gold .cursor__ring { border-color: var(--gold-thread); box-shadow: 0 0 24px rgba(201,164,92,.5); }

/* Preloader */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  animation: preloader-failsafe .6s 5s forwards;
}
.preloader__warp { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--lapis-night); }
.preloader__warp.is-built { background: transparent; }
.preloader__warp i { position: absolute; top: 0; height: 100%; background: var(--lapis-night); transform-origin: top; box-shadow: inset -1px 0 rgba(201,209,224,.04); }
.preloader__loom { position: relative; width: 20px; height: 120px; }
.preloader__thread { width: 100%; height: 100%; overflow: visible; }
.preloader__thread path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.preloader__raw { stroke: var(--silver); stroke-width: 1.2; }
.preloader__dye { stroke: url(#dye); stroke-width: 2.4; }
.preloader__mark { position: absolute; left: 50%; top: 50%; width: 40px; height: 66px; margin: -33px 0 0 -20px; fill: url(#metal); opacity: 0; filter: drop-shadow(0 0 18px rgba(46,196,214,.35)); }
.preloader__name { font-family: var(--f-display); font-size: 28px; color: var(--heading); opacity: 0; letter-spacing: .01em; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }

/* Shared section rhythm */
section { position: relative; }
.stats, .awards { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ==========================================================================
   01 HERO
   ========================================================================== */
.hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: var(--lapis-night); }
.hero__loom { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.hero__loom.is-ready { opacity: 1; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,11,31,.9) 0%, rgba(7,11,31,.6) 38%, rgba(7,11,31,.08) 72%),
    linear-gradient(to top, var(--lapis-night) 0%, transparent 24%),
    linear-gradient(to bottom, rgba(7,11,31,.7) 0%, transparent 18%);
}
.hero__content {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter);
  top: 50%; translate: 0 -46%;
  max-width: var(--max);
  padding-left: clamp(0px, 4vw, 64px);
  transform-origin: left center;
}
.hero__eyebrow { color: var(--silver); letter-spacing: .18em; margin-bottom: clamp(28px, 5vh, 48px); }
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-mega); line-height: .92; letter-spacing: -.02em;
  color: var(--heading);
  margin: 0 0 clamp(20px, 3vh, 36px) -.04em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .08em .08em 0; margin-bottom: -.08em; }
.hero__title em { padding-right: .1em; }
.char, .word { display: inline-block; will-change: transform; }
.hero__route { color: var(--silver); letter-spacing: .2em; margin-bottom: clamp(24px, 4.5vh, 44px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
  padding-left: clamp(0px, 4vw, 64px);
}
.hero__scroll { display: inline-flex; gap: 8px; align-items: center; color: var(--silver); }
.spark { color: var(--samarkand); display: inline-block; animation: spark 2.4s ease-in-out infinite; }
@keyframes spark { 50% { transform: translateY(4px) rotate(90deg); opacity: .5; } }

.hero__phase { display: inline-flex; align-items: center; gap: 10px; color: var(--samarkand); }
.hero__phase::before { content: ""; width: 6px; height: 10px; background: currentColor; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ==========================================================================
   02 STATS
   ========================================================================== */
.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding-top: 48px; padding-bottom: 48px; background: var(--lapis-night); z-index: 2; }
.stats__list { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; gap: 16px; }
.stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; flex: 1; }
.stat::before {
  content: ""; position: absolute; top: 4px; left: 50%; width: 92px; height: 92px; z-index: -1;
  transform: translateX(-50%) rotate(45deg) scaleY(.7);
  background: radial-gradient(closest-side, rgba(107,75,224,.32), rgba(46,196,214,.08) 60%, transparent);
  filter: blur(10px);
}
.stat__num { font-family: var(--f-display); font-size: clamp(48px, 5vw, 76px); line-height: 1; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat__num.ph { border-bottom-width: 0; }
.stat__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); max-width: 22ch; line-height: 1.5; }
.stat__label small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; letter-spacing: .08em; }
.stat__sep svg { width: 7px; height: 12px; fill: rgba(201,209,224,.35); }

/* ==========================================================================
   03 STORY · the fabric of my life, made like ikat
   ========================================================================== */

.story { padding-top: var(--section-y); }
.story__intro {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); align-items: start;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + clamp(0px, 4vw, 64px));
}
.story__visual { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; }
.arch { position: relative; width: 100%; max-width: 440px; aspect-ratio: 933 / 1400; max-height: 78vh; }
.arch__mask {
  position: absolute; inset: 0; overflow: hidden;
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140 V50 C0 22 25 3 50 0 C75 3 100 22 100 50 V140Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--arch) center bottom / var(--mw, 100%) var(--mh, 100%) no-repeat;
  mask: var(--arch) center bottom / var(--mw, 100%) var(--mh, 100%) no-repeat;
}
.arch__mask img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 70%; }
.arch__frame { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }
.arch__frame path { fill: none; stroke: var(--gold-thread); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }
.story__lead { max-width: 640px; padding: 18vh 0 14vh; }
.story__lead .eyebrow { margin-bottom: 20px; }
.story__lead .section-title { margin-bottom: 28px; }
.story__lead .lead { color: var(--text); }
.story__hinge {
  font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 3vw, 43px); line-height: 1.1;
  color: var(--heading); margin: clamp(24px, 4.5vh, 48px) 0; transform-origin: left center;
}
.story__dyed { margin-top: 16px; }
/* "ikat" carries the craft's signature: indigo → turquoise → violet, with a soft "cloud" bleed at the edges */
.ikat-word {
  font-family: var(--f-display); font-style: italic; font-size: 1.15em; padding: 0 .06em;
  background: linear-gradient(90deg, #3A5BD8, #2EC4D6, #8A6CF0); /* a step lighter than cobalt/violet so it reads on the dark page */
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(46, 196, 214, .35));
}

.craft-note { margin-top: 40px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.craft-note summary {
  list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--samarkand);
}
.craft-note summary::-webkit-details-marker { display: none; }
.craft-note summary span { display: inline-block; transition: transform .4s var(--ease-out); }
.craft-note[open] summary span { transform: rotate(180deg); }
.craft-note__body { padding: 8px 0 28px; }
.craft-note__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.craft-note__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.story__handoff {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-top: 48px;
  font-family: var(--f-display); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; color: var(--heading);
}
/* Points straight down and bobs (the hero's spark spins, this one shouldn't) */
.story__arrow { display: inline-block; color: var(--samarkand); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 50% { transform: translateY(5px); opacity: .6; } }
.story__skip { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.story__skip { margin-left: auto; color: var(--muted); }

/* Base: vertical timeline, thread down the left edge (mobile, reduced motion, no JS).
   .is-h = pinned horizontal loom with stage dots (desktop). */
.journey { position: relative; overflow: hidden; padding: 24px 0 var(--section-y); }
.journey__bar { display: none; }
.journey__thread { position: absolute; top: 0; left: calc(var(--gutter) - 14px); width: 40px; height: 100%; pointer-events: none; }
.journey__track {
  position: relative; display: flex; flex-direction: column; gap: 32px;
  max-width: 760px; padding: 0 var(--gutter) 0 calc(var(--gutter) + 40px);
}
.journey.is-h { padding: 0; }
.journey.is-h .journey__bar {
  display: flex; align-items: center; gap: 24px;
  position: absolute; z-index: 3; top: calc(var(--header-h) + 8px);
  left: calc(var(--gutter) + clamp(0px, 4vw, 64px)); right: var(--gutter);
}
.journey.is-h .journey__thread { top: calc(var(--header-h) + 52px); left: 0; width: 100%; height: 64px; }
.journey.is-h .journey__track {
  flex-direction: row; align-items: flex-start; gap: 48px;
  max-width: none; width: max-content; min-height: 100vh;
  padding: calc(var(--header-h) + 128px) 58vw 32px calc(var(--gutter) + clamp(0px, 4vw, 64px));
}
.journey.is-h .journey__track { align-items: stretch; }
.journey.is-h .chapter { width: clamp(320px, 30vw, 440px); flex-shrink: 0; padding: 24px 24px 22px; display: flex; flex-direction: column; }
.journey.is-h .chapter > :not(.chapter__media) { flex-shrink: 0; }
.journey.is-h .chapter__body { margin-bottom: 18px; }
.journey.is-h .chapter__body p { font-size: 14.5px; line-height: 1.55; }

.journey__dots { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.journey__dots li { display: flex; align-items: center; }
.journey__dots li + li::before { content: ""; width: clamp(14px, 2.6vw, 40px); height: 1px; background: var(--hairline); }
.journey__dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline); font-family: var(--f-mono); font-size: 10px; color: var(--muted);
  transition: background-color .4s, color .4s, border-color .4s;
}
.journey__dot:hover { border-color: var(--silver); color: var(--heading); }
.journey__dot.is-done { border-color: rgba(46,196,214,.45); color: var(--silver); }
.journey__dot.is-on { background: var(--moonlight); border-color: var(--moonlight); color: var(--lapis-night); }
.journey__skip { margin-left: auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }

/* Chapters gain colour as the thread is dyed: 01–02 undyed silk → 06 woven */
.chapter {
  --c-bg: rgba(14,22,54,.78); --c-solid: #0E1636;
  --c-text: var(--text); --c-head: var(--heading); --c-muted: var(--muted);
  --c-border: var(--hairline); --c-accent: var(--samarkand);
  position: relative; padding: 28px 26px;
  background: var(--c-bg); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--radius);
}
.chapter__label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted);
}
.chapter__num { color: var(--c-accent); }
.chapter__term { color: var(--c-head); }
.chapter__gloss { width: 100%; }
.chapter__invite { color: var(--c-head); }
.chapter__invite a { color: var(--c-accent); background-size: 100% 1px; } /* underlined at rest: it's a link inside running text */
.chapter__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.02; letter-spacing: -.01em; color: var(--c-head); margin-bottom: 16px; }
.chapter__title em { font-style: italic; }
.chapter__title::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 14px; background: var(--c-accent); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease-out) .2s; }
.chapter.is-focus .chapter__title::after { transform: scaleX(1); }
.chapter__body p { font-size: 15px; line-height: 1.6; color: var(--c-text); }
.chapter__body p + p { margin-top: .7em; }
.journey.is-h .chapter__body { opacity: .55; transition: opacity .6s; }
.journey.is-h .chapter.is-focus .chapter__body { opacity: 1; }
.chapter__chip { font-weight: 500; color: var(--c-head); background: rgba(46,196,214,.16); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.chapter__more { display: none; }
.chapter__media {
  position: relative; margin-top: 20px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
}
.chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.journey.is-h .chapter__media { flex: 1 1 auto; height: 0; min-height: 160px; aspect-ratio: auto; margin-top: 4px; }
@media (min-width: 768px) and (max-height: 760px) {
  .journey.is-h .journey__track { padding-top: calc(var(--header-h) + 112px); }
  .journey.is-h .chapter__title { font-size: 26px; }
  .journey.is-h .chapter__body p { font-size: 13.5px; }
}

.chapter[data-stage="1"], .chapter[data-stage="2"] {
  --c-bg: #ECE6DA; --c-solid: #ECE6DA; --c-text: #3a3a44; --c-head: #1d1f2b; --c-muted: rgba(40,40,52,.6);
  --c-border: transparent; --c-accent: #8b7a5c;
}
.chapter[data-stage="1"] .chapter__media img { object-position: 50% 30%; }
.chapter[data-stage="2"] .chapter__media img { object-position: 50% 0%; }
.chapter[data-stage="3"] .chapter__media img { object-position: 52% 50%; }
.chapter[data-stage="4"] .chapter__media img { object-position: 50% 46%; }
.chapter[data-stage="2"]::before, .chapter[data-stage="2"]::after {
  content: ""; position: absolute; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #6b5a44 0 12px, transparent 12px 48px);
}
.chapter[data-stage="2"]::before { top: 0; }
.chapter[data-stage="2"]::after { bottom: 0; }
.chapter[data-stage="3"] { --c-border: rgba(58,91,216,.6); --c-accent: #6F8BF0; }
.chapter[data-stage="4"] {
  --c-border: rgba(138,108,240,.6); --c-accent: #A88BFF; --c-solid: #161a45;
  background: linear-gradient(160deg, rgba(58,91,216,.2), rgba(138,108,240,.16) 60%, transparent), var(--c-bg);
}
.chapter[data-stage="5"] { --c-border: rgba(46,196,214,.5); }
.chapter[data-stage="5"] .chapter__media img { object-position: 50% 62%; }
.chapter[data-stage="6"] {
  --c-border: rgba(168,139,255,.55); --c-accent: var(--amethyst); --c-solid: #1d1b55;
  background: linear-gradient(160deg, rgba(58,91,216,.38), rgba(107,75,224,.32) 55%, rgba(46,196,214,.14)), var(--c-bg);
}
.chapter[data-stage="6"] .chapter__media img { object-position: 60% 40%; }

/* ==========================================================================
   06 RECOGNITION
   ========================================================================== */
.awards { padding-top: var(--section-y); padding-bottom: 0; max-width: var(--max); margin: 0 auto; }
.awards__head { padding-left: clamp(0px, 4vw, 64px); margin-bottom: clamp(40px, 7vh, 72px); }
.awards__head .eyebrow { margin-bottom: 16px; }
.awards__hint { margin-top: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Gallery wall: each document hangs in a frame; its placard fades in on hover */
.gallery-wall { --ph: clamp(190px, 17vw, 250px); display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(40px, 4.5vw, 64px) clamp(24px, 3vw, 48px); padding: 0 clamp(0px, 2vw, 32px) clamp(40px, 5vw, 80px); } /* hover placards may overlap what follows */
.piece { position: relative; display: flex; flex-direction: column; align-items: center; width: min-content; margin: 0; }
.piece::before { content: ""; position: absolute; left: 50%; top: -30px; width: 140%; height: 70%; translate: -50% 0; z-index: -1; background: radial-gradient(ellipse at 50% 0%, rgba(238,232,220,.16), transparent 70%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.piece:hover::before, .piece:focus-within::before { opacity: 1; }
/* Frame: lacquered lapis moulding with a gold fillet, a cream mat, and a bevel */
.frame {
  display: block; padding: 12px; border-radius: 2px; cursor: zoom-in;
  background: linear-gradient(145deg, #2c3462 0%, #10173a 38%, #1d2550 62%, #0b1030 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232,206,150,.75),
    inset 0 0 0 4px #0b1030,
    inset 0 0 0 5px rgba(201,164,92,.45),
    inset 1px 1px 0 6px rgba(255,255,255,.05),
    0 2px 0 rgba(255,255,255,.04),
    0 22px 46px rgba(0,0,0,.55);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.frame__mat { display: block; padding: clamp(10px, 1.1vw, 16px); background: #F4F1EA; box-shadow: inset 0 1px 4px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06); }
.frame__mat img { display: block; height: var(--ph); width: auto; max-width: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.piece:hover .frame, .frame:focus-visible { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(232,206,150,.95), inset 0 0 0 4px #0b1030, inset 0 0 0 5px rgba(201,164,92,.6), inset 1px 1px 0 6px rgba(255,255,255,.05), 0 30px 60px rgba(0,0,0,.6); }
.has-cursor .frame { cursor: none; }
/* Open dialogs sit in the top layer, above the custom cursor, so they get the native one */
.has-cursor dialog, .has-cursor dialog * { cursor: auto; }
.has-cursor dialog a, .has-cursor dialog button { cursor: pointer; }
/* Placard */
.piece__cap { position: absolute; z-index: 6; top: calc(100% + 14px); left: 50%; width: max(100%, 300px); padding: 16px 18px 18px; text-align: center; background: rgba(14,22,54,.97); border-top: 1px solid var(--gold-thread); box-shadow: 0 18px 40px rgba(0,0,0,.5); opacity: 0; translate: -50% -8px; pointer-events: none; transition: opacity .4s, translate .5s var(--ease-out); }
.piece:hover, .piece:focus-within { z-index: 6; }
.piece:hover .piece__cap, .piece:focus-within .piece__cap { opacity: 1; translate: -50% 0; pointer-events: auto; }
.piece__date { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-thread); margin-bottom: 6px; }
.piece__title { display: block; font-family: var(--f-display); font-size: clamp(20px, 1.6vw, 26px); line-height: 1.12; color: var(--heading); margin-bottom: 6px; }
.piece__title em { font-style: italic; }
.piece__org { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; line-height: 1.6; }
.piece__desc { display: block; font-size: 14px; line-height: 1.55; color: var(--text); }
.piece__link { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--samarkand); }
@media (hover: none) {
  .piece__cap { position: static; width: 100%; opacity: 1; translate: none; pointer-events: auto; margin-top: 16px; }
  /* a tap counts as hover on phones: keep the caption in place */
  .piece:hover .piece__cap, .piece:focus-within .piece__cap { translate: none; }
}

.doc-viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7,11,31,.94); color: var(--text); }
.doc-viewer[open] { display: flex; align-items: center; justify-content: center; }
.doc-viewer::backdrop { background: rgba(7,11,31,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.doc-viewer__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 160px); }
.doc-viewer__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; background: #F4F1EA; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.doc-viewer__cap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); text-align: center; }
.doc-viewer__full { color: var(--samarkand); }
.doc-viewer__close, .doc-viewer__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(201,209,224,.3); color: var(--moonlight); font-size: 16px; display: grid; place-items: center; background: rgba(7,11,31,.5); transition: background-color .3s; }
.doc-viewer__close:hover, .doc-viewer__nav:hover { background: rgba(238,241,247,.12); }
.doc-viewer__close { top: 20px; right: 20px; }
.doc-viewer__prev { left: 24px; top: 50%; translate: 0 -50%; }
.doc-viewer__next { right: 24px; top: 50%; translate: 0 -50%; }
.doc-viewer__nav[hidden] { display: none; }

/* ==========================================================================
   07 WORK · 3D cylinder
   ========================================================================== */
.work { background: radial-gradient(ellipse at 50% 50%, rgba(30,63,174,.18), transparent 65%), var(--lapis-night); }
/* Base: curved vertical list (mobile, reduced motion, no JS). .is-drum = 3D cylinder (desktop). */
.work__pin { position: relative; padding: var(--section-y) 0 48px; }
.work__head { position: relative; z-index: 3; padding: 0 var(--gutter) 0 calc(var(--gutter) + clamp(0px, 4vw, 64px)); margin-bottom: 40px; display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; pointer-events: none; }
.work__head .eyebrow:first-child { width: 100%; margin-bottom: -12px; }
.work__hint { display: none; margin-left: auto; }
.drum {
  --pw: min(calc(100vw - 32px), 860px);
  --ph: calc(var(--pw) * .56);
  position: relative;
  perspective: 1600px; perspective-origin: 50% 50%;
  outline-offset: -12px;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.drum__rotor { position: relative; margin: 0 auto; width: var(--pw); display: flex; flex-direction: column; gap: 16px; }
.panel {
  position: relative; height: var(--ph);
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.panel--lab:not(.is-center) { filter: grayscale(.8) brightness(.7); }
.work__caption { display: none; }

.work.is-drum .work__pin { height: 100vh; overflow: hidden; padding: 0; }
.work.is-drum .work__head { position: absolute; top: calc(var(--header-h) + 8px); left: calc(var(--gutter) + clamp(0px, 4vw, 64px)); right: var(--gutter); padding: 0; margin: 0; }
.work.is-drum .work__hint { display: block; }
.work.is-drum .drum {
  --pw: min(54vw, 780px); --ph: calc(var(--pw) * .5);
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(transparent 4%, #000 22%, #000 64%, transparent 82%);
  mask-image: linear-gradient(transparent 4%, #000 22%, #000 64%, transparent 82%);
}
.work.is-drum .drum__rotor { display: block; position: absolute; left: 50%; top: 45%; height: var(--ph); margin: calc(var(--ph) / -2) 0 0 calc(var(--pw) / -2); transform-style: preserve-3d; }
.work.is-drum .panel { position: absolute; inset: 0; height: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.work.is-drum .panel--lab:not(.is-center) { filter: grayscale(1) brightness(.6); }
.work.is-drum .panel:not(.is-center) .panel__info { opacity: .6; }
.work.is-drum .work__caption { display: block; }
.panel__info { opacity: .6; }
.panel__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(to top, rgba(7,11,31,.92), rgba(7,11,31,.55) 60%, transparent);
  transition: opacity .5s;
}
.panel__type { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: #7fe3ef; text-shadow: 0 1px 10px rgba(7,11,31,.9); }
.panel--lab .panel__type { color: var(--muted); font-size: 10px; }
.panel__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.05; text-shadow: 0 2px 14px rgba(7,11,31,.7); color: var(--heading); }
.panel--lab .panel__title { font-size: clamp(22px, 2vw, 32px); }
.panel__inner { position: absolute; inset: 0; transition: transform .4s var(--ease-out); }

/* Covers — designed placeholders until real media arrives */
.cover { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.cover::after {
  content: "Placeholder media";
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(238,241,247,.55); border: 1px dashed rgba(238,241,247,.3); border-radius: 999px; padding: 4px 9px;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__big { position: absolute; font-family: var(--f-display); color: var(--moonlight); line-height: .9; letter-spacing: -.02em; }
.cover--guochao { background: #120c0a; }
.cover--guochao img { object-position: 50% 42%; }
.cover--guochao::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10,6,5,.1) 30%, rgba(10,6,5,.7) 75%); }
.cover--guochao::after { content: none; }
.cover--guochao .cover__glyph { color: #D2694F; }
.cover__glyph { position: absolute; z-index: 2; right: 6%; top: 50%; transform: translateY(-58%); font-family: var(--f-cjk); font-weight: 600; font-size: 42cqh; color: var(--cobalt); line-height: 1; letter-spacing: .02em; }
.cover--nyuad { background: #2b1a5c; }
.cover--nyuad img { object-position: 50% 62%; }
.cover--nyuad::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(7,11,31,0) 40%, rgba(7,11,31,.3)); }
.cover--nyuad::after { content: none; }
.cover--commencement { background: #c9cdd8; }
.cover--commencement img { object-position: 40% 50%; }
.cover--commencement::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(7,11,31,0) 40%, rgba(7,11,31,.35)); }
.cover--commencement::after { content: none; }
.cover--hayot { background: #3a1d08; }
.cover--hayot img { object-position: 50% 35%; }
.cover--hayot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(40,18,4,.05) 35%, rgba(40,18,4,.55)); }
.cover--hayot::after { content: none; }

.work__caption { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(16px, 4vh, 44px); text-align: center; padding: 0 var(--gutter); }
.work__caption-title { font-family: var(--f-display); font-size: var(--fs-h3); color: var(--heading); line-height: 1.1; }
.work__caption-meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; }
.work__open { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--samarkand); }

/* Expand-to-case-study transition layer */
.expand-layer { position: fixed; z-index: 500; left: 0; top: 0; width: 0; height: 0; pointer-events: none; visibility: hidden; overflow: hidden; background: var(--lapis-night); }


/* ==========================================================================
   06 MISSION + 07 CONTACT · loose threads of attention, lined up into a pattern
   ========================================================================== */
/* Mission: a centered statement whose words start scattered and line up (pinned on wide screens),
   then a thin ikat ribbon weaves itself underneath. Sans and centered, so it reads apart from the contact. */
.mission {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(48px, 8vh, 96px) var(--gutter); text-align: center;
}
.mission__inner { max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.mission .eyebrow { margin-bottom: 28px; }
.mission__line { font-family: var(--f-sans); font-weight: 500; font-size: clamp(34px, 4.8vw, 78px); line-height: 1.08; letter-spacing: -.03em; color: var(--heading); }
.mission__row { display: block; text-wrap: balance; }
.mission__line em { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 1.12em; letter-spacing: -.01em; color: var(--gold-thread); }
.mission__line .word { display: inline-block; }
.mission__thread { width: min(320px, 50vw); height: 20px; margin: 22px auto 26px; overflow: visible; }
.mission__thread path { fill: none; stroke: var(--gold-thread); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.mission__support { font-size: clamp(18px, 1.5vw, 23px); max-width: 44ch; color: var(--text); line-height: 1.5; text-wrap: balance; }
.mission__ribbon { align-self: stretch; height: clamp(44px, 5vw, 60px); margin: clamp(40px, 7vh, 72px) calc(-1 * var(--gutter)) 0; }
.mission__loom { width: 100%; height: 100%; }

/* Contact: full-screen, glowing threads drifting toward the light on the right */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: var(--section-y) var(--gutter); }
.cta .threads { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 60%, rgba(107,75,224,.25), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; padding-left: clamp(0px, 4vw, 64px); }
.cta__kicker { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.3vw, 38px); line-height: 1.15; color: var(--text); max-width: 32ch; margin-bottom: 28px; text-wrap: balance; }
.cta__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 10vw, 184px); line-height: .92; letter-spacing: -.02em; color: var(--heading); margin-bottom: 36px; }
.cta__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.cta__status { font-size: var(--fs-body-lg); line-height: 1.5; color: var(--text); max-width: 52ch; margin-bottom: 28px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px; }
.email-btn {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(201,164,92,.55);
  border-radius: 999px; background: rgba(7,11,31,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .4s, border-color .4s;
}
.email-btn:hover { box-shadow: 0 0 40px rgba(201,164,92,.25); border-color: var(--gold-thread); }
.email-btn__link { padding: 16px 8px 16px 28px; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 34px); color: var(--heading); line-height: 1; }
.email-btn__copy { width: 52px; height: 52px; margin: 4px 4px 4px 8px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,164,92,.12); transition: background-color .3s; }
.email-btn__copy:hover { background: rgba(201,164,92,.28); }
.email-btn__copy svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-thread); stroke-width: 1.5; }
.cta__links { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 600;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px;
  background: var(--moonlight); color: var(--lapis-night);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: opacity .35s, transform .5s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   09 FOOTER
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; padding: 56px var(--gutter) 0; }
.footer__thread {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background:
    linear-gradient(90deg, transparent, var(--samarkand) 20%, var(--violet) 50%, var(--silver) 80%, transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 10%, rgba(201,164,92,.6) 50%, transparent 90%) 0 2px / 100% 1px no-repeat;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 32px; max-width: var(--max); margin: 0 auto; padding-left: clamp(0px, 4vw, 64px); }
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 22px; color: var(--heading); margin-bottom: 4px; }
.footer__nav { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer__now p { margin-bottom: 4px; }
.footer__legal { max-width: var(--max); margin: 48px auto 0; padding-left: clamp(0px, 4vw, 64px); font-size: 13px; }
.footer__giant {
  font-family: var(--f-display); font-size: 21vw; line-height: .8; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(201,209,224,.16);
  white-space: nowrap; text-align: center;
  margin: 24px -2vw -5.5vw;
  pointer-events: none; user-select: none;
}

/* The loose thread: rises from the bottom-right corner like seaweed */
/* Overlays the bottom of the footer, so it rises beside the cropped NORMATOVA with no extra space below */
.loose { position: relative; z-index: 3; height: 150px; margin-top: -150px; pointer-events: none; }
.loose__pull { pointer-events: auto; }
.loose__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.loose__pull {
  position: absolute; bottom: 0; right: clamp(8px, 1.4vw, 32px); width: 44px; height: 128px;
  padding: 0; border: 0; background: none; cursor: grab; touch-action: none; border-radius: 22px;
}
.loose__pull:active { cursor: grabbing; }
.loose__hint {
  position: absolute; bottom: 64px; right: calc(clamp(8px, 1.4vw, 32px) + 64px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted);
  opacity: 0; transform: translateX(6px); transition: opacity .5s, transform .6s var(--ease-out); pointer-events: none;
}
.loose__pull:hover ~ .loose__hint, .loose__pull:focus-visible ~ .loose__hint { opacity: .7; transform: none; }
/* The page pulling apart into threads on the way to the hidden page */
.unravel { position: fixed; inset: 0; z-index: 10000; width: 100%; height: 100%; }

/* ---------- The hidden page ---------- */
.secret { min-height: 100vh; min-height: 100svh; animation: secret-in .9s var(--ease-out) both; }
@keyframes secret-in { from { opacity: 0; } to { opacity: 1; } }
.secret__main { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--gutter) 96px; }
.secret__thread { position: absolute; top: 0; left: 50%; width: 24px; height: calc(50% - 150px); margin-left: -12px; overflow: visible; transform-origin: 50% 0; animation: hang 4.5s ease-in-out infinite; }
.secret__thread path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
@keyframes hang { 0%, 100% { transform: rotate(1.6deg); } 50% { transform: rotate(-1.6deg); } }
.secret__msg { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.15; letter-spacing: -.01em; color: var(--heading); max-width: 24ch; text-wrap: balance; }
.secret__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin-top: 44px; }
.secret__back { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }

.mobile-bar { display: none; }

/* ==========================================================================
   CASE STUDY PAGES
   ========================================================================== */
.case-close {
  position: fixed; z-index: 120; top: 14px; right: var(--gutter);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(7,11,31,.55); border: 1px solid var(--hairline);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--moonlight);
}
.case .site-header { grid-template-columns: 1fr auto; }
.case .site-header .pill { margin-right: 120px; }

.case-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) var(--gutter) clamp(48px, 9vh, 96px); overflow: hidden; }
.case-hero__media { position: absolute; inset: 0; }
.case-hero__media .cover::after { top: auto; bottom: 20px; right: var(--gutter); }
.case-hero__media .cover__big, .case-hero__media .cover__glyph { opacity: .28; }
.case-hero__media::after { content: ""; position: absolute; inset: 0; z-index: 4; background: linear-gradient(to top, var(--bg) 0%, rgba(7,11,31,.55) 45%, rgba(7,11,31,.15) 100%); }
.case-hero__inner { position: relative; z-index: 5; max-width: var(--max); width: 100%; margin: 0 auto; padding-left: clamp(0px, 4vw, 64px); }
.case-hero__type { margin-bottom: 18px; color: var(--samarkand); }
.case-hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 9vw, 160px); line-height: .92; letter-spacing: -.02em; color: var(--heading); margin-bottom: 24px; }
.case-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.case-hero__result { font-family: var(--f-display); font-style: italic; font-size: var(--fs-h3); max-width: 30ch; line-height: 1.2; color: var(--silver); }

.meta-row { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter); display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.meta-row div { padding-left: 0; }
.meta-row--3 { grid-template-columns: repeat(3, 1fr); }
.meta-row dt { margin-bottom: 8px; }
.meta-row dd { color: var(--heading); font-size: 15px; line-height: 1.45; }

.case-section { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter) 0; display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 96px); }
.case-section__label { padding-left: clamp(0px, 4vw, 64px); }
.case-section__label .num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--samarkand); display: block; margin-bottom: 10px; }
.case-section__label h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); color: var(--heading); line-height: 1.05; }
.case-section__body { min-width: 0; font-size: var(--fs-body-lg); line-height: 1.55; max-width: 62ch; }
.case-section__body p + p { margin-top: 1em; }
.case-section__body ul { margin-top: 4px; }
.case-section__body li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--hairline); font-size: var(--fs-body); }
.case-section__body li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--samarkand); }
.case-section--wide { grid-template-columns: 1fr; }
.case-section--wide .case-section__label { margin-bottom: 8px; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery .ph-media { min-height: 260px; }
.gallery .g-a { grid-column: span 7; aspect-ratio: 4 / 3; }
.gallery .g-b { grid-column: span 5; aspect-ratio: 3 / 4; margin-top: 15%; }
.gallery .g-c { grid-column: 2 / span 5; aspect-ratio: 1; }
.gallery .g-d { grid-column: span 6; aspect-ratio: 16 / 10; margin-top: -10%; }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.result { padding: 28px 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.result__num { display: block; font-family: var(--f-display); font-size: clamp(48px, 5vw, 80px); line-height: 1; color: var(--heading); margin-bottom: 10px; }
.result__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.results + p { margin-top: 24px; }


.pull { margin: 1.2em 0; padding-left: 20px; border-left: 2px solid currentColor; font-family: var(--f-display); font-style: italic; font-size: var(--fs-h3); line-height: 1.15; color: var(--heading); }
.source { font-size: 13px !important; margin-top: 1.2em; }

.case-section--wide .case-section__body { max-width: none; padding-left: clamp(0px, 4vw, 64px); }
.case-section--wide .case-section__body > p { max-width: 62ch; }
.mag-reader { position: relative; max-width: 920px; background: #14110f; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 60px rgba(20,16,12,.25); color: #EEE8DC; }
.mag-reader__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(238,232,220,.12); }
.mag-reader__title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(238,232,220,.75); }
.mag-reader__title em { font-family: var(--f-display); font-size: 17px; letter-spacing: 0; text-transform: none; color: #EEE8DC; }
.mag-reader__controls { display: flex; align-items: center; gap: 6px; }
.mag-reader__count { min-width: 64px; text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: #EEE8DC; font-variant-numeric: tabular-nums; }
.mag-reader__btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(238,232,220,.25); color: #EEE8DC; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .3s, border-color .3s; }
.mag-reader__btn:hover { background: rgba(238,232,220,.1); border-color: rgba(238,232,220,.5); }
.mag-reader__scroll {
  position: relative; height: min(78vh, 880px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px;
  background: #2a2622; scroll-snap-type: y proximity; outline-offset: -3px;
}
.mag-reader__page { width: 100%; max-width: 640px; height: auto; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); scroll-snap-align: start; background: #3a352f; }
.mag-reader.is-full, .mag-reader:fullscreen { position: fixed; inset: 0; z-index: 1000; max-width: none; border-radius: 0; display: flex; flex-direction: column; }
.case main > section:has(.mag-reader.is-full) { z-index: 1000; }
.reader-open .site-header, .reader-open .case-close, .reader-open .mobile-bar, .reader-open .progress { visibility: hidden; }
.mag-reader.is-full .mag-reader__scroll, .mag-reader:fullscreen .mag-reader__scroll { flex: 1; height: auto; }
.mag-reader.is-full .mag-reader__page, .mag-reader:fullscreen .mag-reader__page { max-width: min(1000px, 100%); }
.fellow-grid figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mag-note { margin-top: 28px; font-size: var(--fs-body); }

.fellow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.fellow-grid figure { grid-column: span 2; }
.fellow-grid .fg-wide { grid-column: span 2; }
.fellow-grid .fg-tall { grid-column: span 1; }
.fellow-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.fellow-grid .fg-tall img { aspect-ratio: 3 / 4; height: 100%; }
.fellow-grid .fg-tall { display: flex; flex-direction: column; }


/* NYUAD: phone-frame Reel player */
.phone { position: relative; width: min(300px, 70vw); aspect-ratio: 9 / 19; border: 1px solid rgba(238,241,247,.35); border-radius: 36px; padding: 10px; background: #050816; flex-shrink: 0; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #000; }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; }

/* NYUAD: campaigns, press, content */
.press-card { display: block; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); transition: border-color .4s; }
.press-card:hover { border-color: rgba(168,139,255,.5); }
.press-card .eyebrow { display: block; margin-bottom: 10px; }
.press-card__title { display: block; font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.15; color: var(--heading); margin-bottom: 12px; }
.press-card__cta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--samarkand); }

.campaigns { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter) 0; }
.campaigns > .case-section__label { padding-left: clamp(0px, 4vw, 64px); margin-bottom: 8px; }
/* Each campaign is a spread: title + description on top, its media in one centred row below */
.campaign { position: relative; padding: clamp(56px, 9vh, 104px) 0 clamp(56px, 9vh, 104px) clamp(0px, 4vw, 64px); isolation: isolate; }
.campaign:nth-of-type(even)::after { content: ""; position: absolute; inset: 10% 0 10% 10%; z-index: -1; background: radial-gradient(ellipse at 70% 50%, rgba(107,75,224,.12), transparent 65%); pointer-events: none; }
.campaign__bignum { position: absolute; top: clamp(24px, 5vh, 56px); right: 0; z-index: -1; font-family: var(--f-display); font-size: clamp(140px, 20vw, 320px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(168,139,255,.16); pointer-events: none; user-select: none; }
.campaign__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(32px, 5vh, 56px); }
.campaign__meta { color: var(--samarkand); margin-bottom: 12px; }
.campaign__meta span { color: var(--heading); margin-right: 8px; }
.campaign__head h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.02; color: var(--heading); }
.campaign__desc { font-size: var(--fs-body-lg); line-height: 1.55; max-width: 60ch; }
.campaign__media { --mh: clamp(380px, 36vw, 540px); display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.5vw, 40px); }
.campaign__media figure { width: min-content; flex-shrink: 0; }
.m-photo img, .m-poster img { height: var(--mh); width: auto; max-width: none; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.m-poster img { box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.m-phone .phone { height: var(--mh); width: auto; aspect-ratio: 9 / 19; padding: 7px; border-radius: 30px; }
.m-phone .phone__screen { border-radius: 23px; }
.m-phone .phone__screen img, .m-phone .phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.campaign__media figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.m-ig { width: clamp(300px, 25vw, 380px); flex-shrink: 0; margin-top: 0; max-width: none; }
.sadu { height: 18px; margin: 0 0 0 clamp(0px, 4vw, 64px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18'%3E%3Cpath d='M0 1.5h56M0 16.5h56' stroke='%236B4BE0' stroke-width='1'/%3E%3Cpath d='M14 4l6 5-6 5-6-5z' fill='%236B4BE0'/%3E%3Cpath d='M42 5l4 4-4 4-4-4z' fill='none' stroke='%23A88BFF'/%3E%3Cpath d='M26 9l3-3v6zM30 9l-3-3v6z' fill='%232EC4D6' opacity='.7'/%3E%3Cpath d='M54 9l3-3v6zM2 9l-3-3v6z' fill='%232EC4D6' opacity='.7'/%3E%3C/svg%3E") repeat-x center / 56px 18px; opacity: .5; }

.vol-photos { display: flex; gap: 24px; margin-top: 28px; }
.vol-photos figure { margin: 0; }
.vol-photos .frame { display: inline-block; padding: 9px; cursor: default; }
.vol-photos .frame__mat { padding: 8px; }
.vol-photos img { display: block; height: 240px; width: auto; }
.vol-photos figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* Commencement: steps reuse the campaign spread, with framed media and pixel dividers */
.steps .campaign__media { flex-wrap: wrap; row-gap: 28px; }
.m-frame .frame { display: inline-block; padding: 10px; cursor: default; }
.m-frame .frame__mat { padding: 10px; }
.m-frame img { display: block; height: calc(var(--mh) - 64px); width: auto; max-width: none; }
.m-frame.m-wide img { height: calc(var(--mh) - 120px); }
.step__kit { max-width: 980px; margin: 36px auto 0; }
.m-bare img { display: block; height: var(--mh); width: auto; max-width: none; border-radius: var(--radius); }
.m-bare figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.m-logo img { height: auto; width: clamp(260px, 30vw, 440px); border-radius: 0; filter: drop-shadow(0 10px 30px rgba(8,106,239,.35)); }
.m-cutout img { filter: drop-shadow(0 18px 36px rgba(0,0,0,.5)); border-radius: 0; }
.step__finale { margin: 48px 0 0; }
.step__finale img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.step__finale figcaption { margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pixel-divider { height: 12px; margin: 0 0 0 clamp(0px, 4vw, 64px); background:
  radial-gradient(circle, #F33DC0 2px, transparent 2.5px) 0 0 / 24px 12px repeat-x,
  radial-gradient(circle, #086AEF 2px, transparent 2.5px) 12px 0 / 24px 12px repeat-x; opacity: .55; }
.meta-row--4 { grid-template-columns: repeat(4, 1fr); }
.cover--film { background:
  repeating-linear-gradient(90deg, rgba(238,241,247,.14) 0 14px, transparent 14px 34px) 0 14px / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, rgba(238,241,247,.14) 0 14px, transparent 14px 34px) 0 calc(100% - 14px) / 100% 10px no-repeat,
  radial-gradient(ellipse at 70% 45%, rgba(107,75,224,.35), transparent 60%),
  radial-gradient(ellipse at 20% 80%, rgba(46,196,214,.18), transparent 55%), #05070f; }
.cover--film::after { content: none; }
.cover--banner img { object-position: 50% 40%; }
.cover--banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(5,7,15,.15) 40%, rgba(5,7,15,.45)); }
.meta-row--1 { grid-template-columns: 1fr; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.skill-chips li { padding: 7px 14px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--heading); }
.cover__reel { position: absolute; z-index: 2; top: 13%; right: 6%; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: #ff5a5a; animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.cover--film .cover__big { left: 7%; bottom: 20%; font-size: 26cqh; font-style: italic; }

/* Filmmaking: each film is a screening — details on one side, the screen on the other */
.screenings { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter) 0; }
.screening { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(48px, 8vh, 96px) 0 clamp(48px, 8vh, 96px) clamp(0px, 4vw, 64px); }
.screening--flip { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.screening--flip .screening__info { order: 2; }
.screening__meta { color: var(--samarkand); margin-bottom: 12px; }
.screening__meta span { color: var(--heading); margin-right: 8px; }
.screening__info h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4vw, 64px); line-height: 1; color: var(--heading); margin-bottom: 18px; }
.screening__logline { font-family: var(--f-display); font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; color: var(--text); margin-bottom: 22px; max-width: 40ch; }
.screening__credits dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.screening__credits dd { font-size: var(--fs-body); color: var(--heading); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(238,241,247,.12), 0 0 0 8px #0b0f22, 0 0 0 9px rgba(201,164,92,.35), 0 30px 70px rgba(0,0,0,.6); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen--browser { display: flex; flex-direction: column; background: #10152f; }
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1a2045; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(238,241,247,.25); }
.screen__bar span { margin-left: 10px; }
.screen--browser { aspect-ratio: 16 / 10.5; }
.screen__bar span.screen__url { margin-left: 10px; flex: 1; padding: 4px 10px; border-radius: 999px; background: rgba(7,11,31,.5); text-transform: none; }
.screen__open { margin-left: 10px; color: var(--samarkand); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.screen__stage { position: relative; flex: 1; background: #1b1b1b; }
.screen__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.screen__play { position: absolute; left: 50%; bottom: 8%; translate: -50% 0; }
.screen__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #111; }
.film-divider { height: 16px; margin-left: clamp(0px, 4vw, 64px); background: repeating-linear-gradient(90deg, rgba(238,241,247,.14) 0 14px, transparent 14px 34px) 0 3px / 100% 10px no-repeat; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); opacity: .6; }
/* Linden Centre */
.cover--linden { background:
  radial-gradient(ellipse at 78% 30%, rgba(46,64,140,.55), transparent 60%),
  repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 9px),
  linear-gradient(160deg, #a5774f 0%, #7a4f31 45%, #3c2618 100%); }
.cover--linden::after { content: none; }
.cover--photo img { object-position: 50% 55%; }
.cover--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(7,11,31,.05) 40%, rgba(7,11,31,.35)); }
.cover--linden .cover__big { right: 7%; top: 50%; transform: translateY(-55%); font-size: 20cqh; font-style: italic; color: #f4ecdf; max-width: 60%; text-align: right; }
.lead-in { font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; color: var(--heading); }
.big-idea { font-family: var(--f-display); font-size: clamp(40px, 5vw, 76px); line-height: 1; color: var(--heading); margin-bottom: 20px !important; }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.audience { padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-top: 2px solid #b8865a; border-radius: var(--radius); }
.audience .eyebrow { display: block; color: #d9a77c; margin-bottom: 12px; }
.audience p { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; color: var(--heading); }
.media-plan { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-top: 24px; }
.bars { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.bars figcaption { margin-bottom: 18px; }
.bars__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; align-items: center; gap: 14px; }
.case-section__body .bars__row { padding: 0; border-top: 0; }
.case-section__body .bars__row::before { content: none; }
.bars__label { font-size: 14px; color: var(--text); }
.bars__track { height: 14px; background: rgba(201,209,224,.06); border-radius: 0 4px 4px 0; }
.bars__fill { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--samarkand); border-radius: 0 4px 4px 0; transition: background-color .3s; }
.bars__row:hover .bars__fill { background: #6fdbe7; }
.bars__value { font-family: var(--f-mono); font-size: 13px; color: var(--heading); text-align: right; }
.bars__value small { display: block; font-size: 11px; color: var(--muted); }
.stat-tile { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.stat-tile__num { font-family: var(--f-display); font-size: clamp(56px, 6vw, 96px); line-height: 1; color: var(--heading); }
.stat-tile__note { font-size: 14px; color: var(--muted); }
.screen--prezi { margin-top: 24px; }
.kit-summary { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 32px; max-width: 920px; }
.kit-logo { background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: 0 0 0 1px rgba(201,164,92,.5), 0 18px 40px rgba(0,0,0,.4); }
.kit-logo img { width: 100%; height: auto; display: block; }
.kit-specs .eyebrow { margin: 18px 0 10px; }
.kit-specs .eyebrow:first-child { margin-top: 0; }
.kit-specs p:not(.eyebrow) { font-size: var(--fs-body); line-height: 1.55; max-width: 52ch; }
.kit-fonts { font-family: var(--f-mono); letter-spacing: .08em; color: var(--heading); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-row span { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.swatch-row i { display: block; width: 72px; height: 72px; border-radius: var(--radius); background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.print-wall, .ig-wall { display: flex; flex-wrap: wrap; gap: 32px 28px; align-items: flex-start; justify-content: center; }
.print-wall figure, .ig-wall figure { margin: 0; }
.print-wall .frame, .ig-wall .frame { display: inline-block; padding: 10px; cursor: default; }
.print-wall .frame__mat, .ig-wall .frame__mat { padding: 10px; }
.print-wall img, .ig-wall figure img { display: block; height: 340px; width: auto; max-width: 100%; }
.print-wall .pw-wide img { height: 300px; }
.print-wall figcaption, .ig-wall figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ig-wall .ig-embed { margin-top: 0; width: 340px; max-width: 100%; }
.ig-wall .ig-wall__intro img { height: 440px; }
.strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.strategy-card { padding: 22px; background: var(--surface); border: 1px solid var(--hairline); border-top: 2px solid #E8742C; border-radius: var(--radius); }
.strategy-card .eyebrow { display: block; color: #F0985A; margin-bottom: 10px; }
.strategy-card p { font-size: 15px; line-height: 1.55; }
.mag-reader__scroll--slides .mag-reader__page { max-width: 820px; }
.ig-pair { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.ig-pair .ig-embed { margin-top: 0; width: 380px; max-width: 100%; }
.ig-embed { margin-top: 24px; max-width: 420px; }
.ig-embed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: none !important; }
.ig-embed blockquote.instagram-media { padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); min-height: 120px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ig-embed iframe { min-height: 520px; }
.started-media { display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: 24px; align-items: start; margin: 28px 0; }
.started-media .press-card { margin-top: 0; }
.started-media .ig-embed { margin-top: 0; }
.case-hero__title--long { font-size: clamp(42px, 6.2vw, 108px); }

/* Commencement: brand kit breakdown */
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kit__card { padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); min-height: 220px; }
.kit__card h3 { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.swatches span { aspect-ratio: 1; border-radius: var(--radius); border: 1px dashed rgba(201,209,224,.3); }

/* Next project */
.next-case { display: block; position: relative; margin-top: var(--section-y); padding: clamp(64px, 12vh, 140px) var(--gutter); border-top: 1px solid var(--hairline); overflow: hidden; }
.next-case__inner { max-width: var(--max); margin: 0 auto; padding-left: clamp(0px, 4vw, 64px); position: relative; z-index: 2; }
.next-case__title { max-width: 18ch; font-family: var(--f-display); font-size: clamp(36px, 5.5vw, 96px); line-height: .95; color: var(--heading); letter-spacing: -.02em; transition: transform .8s var(--ease-out); }
.next-case:hover .next-case__title { transform: translateX(24px); }
.next-case__bg { position: absolute; inset: 0; opacity: .35; transition: opacity .6s; }
.next-case:hover .next-case__bg { opacity: .6; }

/* Layering: hero < porcelain mask < content */
.case main > :not(.case-hero), .case .site-footer { position: relative; z-index: 2; }
.site-footer--case { padding-bottom: 56px; }
.site-footer--case .footer__grid { align-items: start; }

/* Porcelain theme (Guochao) — qinghua blue-and-white */
.js body.theme-porcelain { background: var(--lapis-night); }
.theme-porcelain .logo { color: var(--moonlight); mix-blend-mode: difference; }
.theme-porcelain .site-header .pill--primary { background: var(--cobalt); color: var(--porcelain); }
.theme-porcelain {
  --bg: var(--porcelain);
  --surface: #EAE5DA;
  --text: #26304f;
  --heading: var(--cobalt);
  --muted: rgba(38,48,79,.65);
  --hairline: rgba(30,63,174,.16);
}
.theme-porcelain .section-title em { background: none; color: var(--cobalt); }
.theme-porcelain .case-hero__title em { background: none; color: #B9C8FF; }
.theme-porcelain .case-hero__title { color: var(--moonlight); }
.theme-porcelain .case-hero__result { color: var(--porcelain); }
.theme-porcelain .case-hero__media::after { background: linear-gradient(to top, rgba(14,22,54,.92) 0%, rgba(14,22,54,.45) 50%, rgba(14,22,54,.15) 100%); }
.theme-porcelain .case-hero + .meta-row { border-top: 0; }
.theme-porcelain .site-header::before { background: none; }
.theme-porcelain .grain { mix-blend-mode: multiply; opacity: .06; }
.theme-porcelain .ph-media { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(30,63,174,.06) 14px 15px), #EAE5DA; }
.theme-porcelain .case-section__body li::before, .theme-porcelain .case-section__label .num { background-color: var(--cobalt); color: var(--cobalt); }
.theme-porcelain .case-section__label .num { background: none; }
.theme-porcelain .theme-porcelain .pill--ghost { color: var(--cobalt); border-color: rgba(30,63,174,.4); background: transparent; }
.theme-porcelain .cursor__ring { border-color: var(--cobalt); }
.theme-porcelain .cursor__dot { background: var(--cobalt); }
.porcelain-mask { position: fixed; inset: 0; z-index: 1; background: var(--porcelain); pointer-events: none; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); visibility: hidden; }
.cjk { font-family: var(--f-cjk); font-weight: 600; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.notfound__mark { width: 72px; height: 120px; margin: 0 auto 32px; fill: url(#metal); }
.notfound h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-display); line-height: .95; color: var(--heading); margin-bottom: 18px; }
.notfound p { margin-bottom: 32px; color: var(--muted); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .meta-row { grid-template-columns: repeat(2, 1fr); }
  .case-section { grid-template-columns: 1fr; }
  .fellow-grid { grid-template-columns: repeat(2, 1fr); }
  .kit { grid-template-columns: 1fr; }
  /* Mission, then the cloth as a full-width band, then contact */
  .mission { min-height: 0; padding-top: 88px; padding-bottom: 88px; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-nav, .site-header .pill { display: none; }
  .site-header { grid-template-columns: 1fr; }
  .case .site-header .pill { display: none; }
  .progress { display: none; }
  .br-desk { display: none; }

  .hero__vignette { background: linear-gradient(to top, var(--lapis-night) 6%, rgba(7,11,31,.78) 42%, rgba(7,11,31,.1) 78%), linear-gradient(to bottom, rgba(7,11,31,.6), transparent 16%); }
  .hero__content { top: auto; bottom: 150px; translate: none; padding-left: 0; }
  .hero__title { font-size: 17vw; }
  .hero__ctas { display: none; }
  .hero__foot { bottom: 104px; padding-left: 0; }
  .hero__foot .hero__scroll { display: none; }

  .stats__list { display: grid; grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stat__sep { display: none; }



  .story__intro { grid-template-columns: 1fr; gap: 0; padding-left: var(--gutter); }
  /* the portrait sits above the text in normal flow, sized by its own width */
  .story__visual { position: relative; height: auto; padding: 24px 0 32px; }
  .story__visual .arch { width: min(72vw, 320px); max-height: none; }
  .story__lead { padding: 8px 0 24px; }
  .story__skip { margin-left: 0; }
  .chapter__body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .chapter.is-open .chapter__body p { display: block; -webkit-line-clamp: unset; }
  .chapter:not(.is-open) .chapter__body p + p { display: none; }
  .chapter__media { aspect-ratio: 1 / 1; }
  .chapter__more { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }

  .gallery-wall { --ph: auto; flex-direction: column; align-items: center; gap: 44px; padding: 0; }
  .piece { width: 100%; max-width: 340px; }
  .frame { width: 100%; }
  .frame__mat img { width: 100%; height: auto; max-height: 380px; object-fit: contain; }
  .piece__cap { position: static; width: 100%; opacity: 1; translate: none; pointer-events: auto; margin-top: 16px; }
  .piece:hover .piece__cap, .piece:focus-within .piece__cap { translate: none; }
  .doc-viewer__fig { max-width: calc(100vw - 24px); }
  .doc-viewer__img { max-height: calc(100vh - 170px); }
  .doc-viewer__prev, .doc-viewer__next { top: auto; bottom: 22px; translate: none; }
  .started-media { grid-template-columns: 1fr; }
  .strategy-grid { grid-template-columns: 1fr; }
  .vol-photos { gap: 14px; }
  .vol-photos img { height: 200px; }
  .ig-embed { max-width: none; }
  .kit-summary { grid-template-columns: 1fr; }
  .audience-grid, .media-plan { grid-template-columns: 1fr; }
  .bars__row { grid-template-columns: 1fr 72px; }
  .bars__label { grid-column: 1 / -1; }
  .cover--linden .cover__big { max-width: 80%; }
  .screening, .screening--flip { grid-template-columns: 1fr; padding-left: 0; }
  .screening--flip .screening__info { order: 0; }
  .film-divider { margin-left: 0; }
  .m-frame img, .m-frame.m-wide img { height: auto; width: 100%; max-width: 100%; }
  .m-frame { width: 300px !important; flex-shrink: 0; }
  .m-frame.m-wide { width: 330px !important; }
  .m-frame .frame { display: block; }
  .m-bare { flex-shrink: 0; }
  .m-bare img { height: 360px; }
  .m-logo img { width: 220px; height: auto; }
  .steps .campaign__media { flex-wrap: nowrap; }
  .pixel-divider { margin-left: 0; }
  .kit-logo { max-width: 240px; }
  .print-wall img, .print-wall .pw-wide img, .ig-wall .ig-wall__intro img { height: auto; width: 100%; }
  .print-wall figure, .ig-wall figure { width: 100%; }
  .print-wall .frame, .ig-wall .frame { display: block; }
  .ig-wall .ig-embed { width: 100%; }
  .campaign { padding-left: 0; }
  .campaign__head { grid-template-columns: 1fr; gap: 14px; }
  .campaign__bignum { font-size: 38vw; top: 24px; }
  .campaign__media { --mh: 380px; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .campaign__media > * { scroll-snap-align: start; }
  .m-ig { width: 300px; }
  .sadu { margin-left: 0; }

  .work__hint { display: none; }

  .awards { padding-bottom: 32px; }
  .cta__inner { padding-left: 0; }
  .cta__title { font-size: 14vw; }
  .email-btn { width: 100%; justify-content: space-between; }
  .email-btn__link { font-size: 21px; padding-left: 20px; }
  .cta__actions .pill { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; padding-left: 0; }
  .footer__legal { padding-left: 0; }

  .mobile-bar {
    display: flex; gap: 8px;
    /* --vv-bottom: how far the visible area ends above the layout viewport (browser toolbars), set in script.js */
    position: fixed; z-index: 110; left: 0; right: 0; bottom: var(--vv-bottom, 0px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(7,11,31,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--hairline);
  }
  .mobile-bar .pill { flex: 1; min-height: 48px; }
  .mobile-bar .pill--ghost { flex: 0 0 auto; }
  .toast { bottom: 96px; }

  .case-close { top: 8px; }
  .meta-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery > * { grid-column: auto !important; margin-top: 0 !important; aspect-ratio: 4 / 3 !important; }
      .mag-reader__title { display: none; }
  .mag-reader__bar { justify-content: center; padding: 8px; }
  .mag-reader__full span { display: none; }
  .mag-reader__scroll { height: 72vh; padding: 12px; gap: 12px; }
  .fellow-grid { grid-template-columns: 1fr 1fr; }
  .fellow-grid figure, .fellow-grid .fg-wide { grid-column: 1 / -1; }
  .fellow-grid .fg-tall { grid-column: span 1; }

}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .preloader { display: none !important; }
  .js body.theme-porcelain { background: var(--porcelain); }
}
