/* =============================================================================
   ARTVERSE · site.css · the design system for every page
   -----------------------------------------------------------------------------
   Brand: B&W fashion lookbook. Gallery White / Runway Black grounds, Studio Mist
   haze, Bodoni Moda display, Jost for air and labels, Courier Prime "# tags",
   Noto Serif SC for Chinese, 1px hairlines and ONE warm accent: Ember.

   HOW A PAGE IS BUILT
   -------------------
   <head> (copy exactly, change title / description / og:title / og:description):

     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>Page name · ARTVERSE</title>
     <meta name="description" content="One sentence, unique per page.">
     <meta name="theme-color" content="#F4F4F3">
     <meta property="og:type" content="website">
     <meta property="og:site_name" content="ARTVERSE">
     <meta property="og:title" content="Page name · ARTVERSE">
     <meta property="og:description" content="Same sentence as the description.">
     <meta property="og:url" content="/page">   (main.py makes og:url and og:image absolute)
     <meta property="og:image" content="/img/brand/og-founders.jpg?v=4">
     <meta property="og:image:width" content="1200">
     <meta property="og:image:height" content="630">
     <meta property="og:image:alt" content="Goey and Nico in front of the ARTVERSE wordmark">
     <meta name="twitter:card" content="summary_large_image">
     <link rel="icon" href="/favicon.png" type="image/png">
     <link rel="apple-touch-icon" href="/img/brand/apple-touch-icon.png?v=4">
     <link rel="manifest" href="/site.webmanifest">
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..800;1,6..96,400..800&family=Courier+Prime:wght@400;700&family=Jost:wght@300..700&display=swap">
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;500&display=swap&text=…">
                                                          (copy the subset URL from any page; see README)
     <link rel="stylesheet" href="/css/site.css">
     <link rel="stylesheet" href="/css/PAGE.css">        (optional, page-only styles)
     <script src="/js/site.js" defer></script>
     <script src="/js/PAGE.js" defer></script>           (optional; NO inline JS, CSP is script-src 'self')

   Always use root-relative URLs (/academy, /img/...): 404.html is served at any depth.

   <body class="page-NAME">   (page-home, page-academy, page-founders, page-work, page-enquire, page-404)

   HEADER (identical on every page; put aria-current="page" on the current link):

     <a class="skip-link" href="#main">Skip to content</a>
     <header class="site-header">
       <div class="site-header__bar">
         <a class="wordmark site-header__brand" href="/" aria-label="ARTVERSE, home">ART<span>VERSE</span></a>
         <button class="nav-toggle" type="button" aria-expanded="false" aria-controls="site-nav">
           <span class="nav-toggle__label">Menu</span> <span class="nav-toggle__icon" aria-hidden="true"></span>
         </button>
         <nav class="site-nav" id="site-nav" aria-label="Main">
           <ul class="site-nav__list">
             <li><a class="site-nav__link" href="/academy">Academy</a></li>
             <li><a class="site-nav__link" href="/founders">Founders</a></li>
             <li><a class="site-nav__link" href="/work">Work</a></li>
             <li class="site-nav__cta"><a class="btn btn--sm" href="/enquire">Enquire</a></li>
           </ul>
           <div class="site-nav__meta" aria-hidden="true">
             <span lang="zh-Hans">外形蜕变 · 魅力升级</span><span>Kuala Lumpur · Malaysia</span>
           </div>
         </nav>
       </div>
     </header>
     <main id="main"> ...sections... </main>

     The header is sticky. On a page whose first section is a full-bleed hero that
     should run UNDER the header (like the home page), add class "has-overlay-header"
     to <body>; the header is then transparent until the page scrolls.

   FOOTER (identical on every page):

     <footer class="site-footer theme-dark">
       <div class="wrap">
         <div class="site-footer__top">
           <div class="site-footer__brand">
             <a class="wordmark site-footer__mark" href="/" aria-label="ARTVERSE, home">ART<span>VERSE</span></a>
             <p class="quote">Presence, by design.</p>
             <p class="site-footer__cn" lang="zh-Hans">外形蜕变 · 魅力升级</p>
           </div>
           <nav class="site-footer__nav" aria-label="Footer">
             <ul>
               <li><a href="/academy">Academy</a></li>
               <li><a href="/founders">Founders</a></li>
               <li><a href="/work">Work</a></li>
               <li><a href="/enquire">Enquire</a></li>
             </ul>
           </nav>
         </div>
         <ul class="site-footer__divisions" aria-label="The four divisions">
           <li><span class="lockup"><span class="wordmark">ART<span>VERSE</span></span> <span class="lockup__div">Academy</span></span></li>
           <li><span class="lockup"><span class="wordmark">ART<span>VERSE</span></span> <span class="lockup__div">Studio</span></span></li>
           <li><span class="lockup"><span class="wordmark">ART<span>VERSE</span></span> <span class="lockup__div">Talent</span></span></li>
           <li><span class="lockup"><span class="wordmark">ART<span>VERSE</span></span> <span class="lockup__div">Consulting</span></span></li>
         </ul>
         <div class="site-footer__base">
           <p>Kuala Lumpur · Malaysia</p>
           <p>© 2026 ARTVERSE</p>
         </div>
       </div>
     </footer>

   CLASS VOCABULARY
   ----------------
   Grounds      .theme-light (default) .theme-white .theme-mist .theme-dark  + .grain (film grain overlay;
                content inside a .grain block sits above it with position:relative; z-index:2)
                Each theme sets --bg --fg --fg-muted --rule --rule-strong --focus --accent-text.
   Layout       .wrap (max 1360 + gutters)  .wrap--narrow (880)  .section (vertical padding)  .section--tight
                .grid (12 cols) + .span-2 … .span-12 (collapse to 6 under 900px, 12 under 560px;
                keep with .span-sm-6)  .stack (vertical rhythm, --stack-gap)  .cluster (wrapping row)
   Type         .display-xl .display-l .heading .quote .hero-thin (giant thin Jost)  .caps
                .eyebrow .lede .body-s .tag .caption .cn .cn-heading .num (Bodoni numeral, ink)
                .hero-title (the one hero h1 treatment: Bodoni caps block, used on every page)
                <em> inside display/heading = Bodoni italic in the ground's ink. One italic tail per page.
                .accent = Ember on dark grounds, ink on light grounds (contrast).  .muted
   Brand        .wordmark  →  ART<span>VERSE</span>   (one word; VERSE Ember; ART follows --fg)
                .lockup    →  <span class="lockup"><span class="wordmark">ART<span>VERSE</span></span>
                              <span class="lockup__div">Academy</span></span>   (primary horizontal)
                .lockup--stacked (division word centred below a short rule)
   Devices      .hairline-heading (Chinese .cn-heading + .eyebrow over a 1px rule)
                .tag-pair > .tag-pair__cn + .tag-pair__en  (one <b> keyword: ink + Ember tick on light,
                Ember word on dark)
                .ring (thin circle round a year/number)  .rule (1px line)  .vertical-word
                .corner-mark (inline SVG expand mark)  .index (step number + hairline dash; only where
                the order is real: the Method, the ten modules, the form steps)
                Use two or three devices per layout, never all.
   Sections     .section-head > .section-head__index (.eyebrow) + .section-head__main (h2 + .lede)
                .section-head--center: a centred statement (vary at least one head per page)
   Actions      .btn (outlined pill)  .btn--fill  .btn--sm   .link-arrow (tracked text link + arrow)
   Media        .frame (+ .ratio-1x1 .ratio-2x3 .ratio-3x4 .ratio-4x5 .ratio-9x16 .ratio-16x9 .ratio-3x2)
                .frame--settle (image eases in scale as it scrolls into view)
                .frame-offset (wrapper that draws an offset hairline frame)  .figure + figcaption.caption
                Silent loops: <video muted playsinline loop preload="none" poster="…" data-autoplay>
                (site.js plays them in view and pauses them off screen; reduced motion → poster + controls)
   Patterns     .page-hero (inner-page hero: giant thin word on mist + h1 + lede + media)
                .steps / .step (the Method, 01–05)   .credentials (bilingual credential list)
                .cta-band (closing enquiry band)     .field / .field__label / .field__input / .field__error
                .form-status  .visually-hidden / .sr-only  .hp (honeypot, off-screen)
   Motion       .reveal  (gentle settle as it scrolls in; content is ALWAYS visible at rest)
                Never put .reveal on an element that already uses transform for layout.

   MARKUP NOTES
   Put a real space between adjacent inline spans that read as separate words
   (".index" + ".eyebrow", lockup mark + division, name + Chinese name) so screen
   readers do not run them together; flex/grid layouts ignore that whitespace.
   Chinese text always carries lang="zh-Hans" (it switches to Noto Serif SC automatically).
   Images: width/height attributes always; loading="lazy" decoding="async" below the fold.
   Alt text describes the picture; only Nico and Goey are ever named.

   COLOUR RULES (contrast-checked)
   EMBER BUDGET: VERSE (wordmark and lockups), the active-nav underline, small ticks and
   state marks (focus, checked, error), and ONE feature element per page: the Method
   numerals on / and /academy (plus the PAGEANT spine), the RUNWAY spine on /work, the
   2026 hairline on /founders. Never a second colour: no Ember headings, rings or numerals
   elsewhere. Ember text only on Runway Black (5.99:1). Concrete text only on dark grounds
   and only at 15px or larger; smaller text on dark uses Studio Mist. Body text on light
   grounds is Runway Black or Graphite.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --gallery: #F4F4F3;      /* Gallery White */
  --white: #FFFFFF;
  --black: #111112;        /* Runway Black */
  --graphite: #2A2A2C;
  --mist: #D6D8DA;         /* Studio Mist */
  --concrete: #8B8E92;     /* Concrete: dark grounds / ≥15px only */
  --ember: #D9773F;        /* Ember: the single accent */
  --rule-on-light: rgba(17, 17, 18, .16);
  --rule-on-dark: rgba(244, 244, 243, .25);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --f-cn: "Noto Serif SC", "Songti SC", "STSong", serif;

  --fs-hero-thin: clamp(4rem, 16.2vw, 19rem);
  --fs-display-xl: clamp(3.25rem, 8.4vw, 7.5rem);
  --fs-display-l: clamp(2.375rem, 5vw, 4.5rem);
  --fs-heading: clamp(1.625rem, 2.6vw, 2.5rem);
  --fs-quote: clamp(1.375rem, 2vw, 1.75rem);
  --fs-lede: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  --fs-body: clamp(1rem, .97rem + .12vw, 1.0625rem);
  --fs-eyebrow: .8125rem;
  --fs-tag: .875rem;
  --fs-caption: .8125rem;
  --fs-cn-heading: clamp(1.375rem, 1.9vw, 1.75rem);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pill: 999px;
  color-scheme: light;
}
@media (max-width: 899.98px) {
  :root { --header-h: 64px; }
}

/* 2. Grounds (themes) ------------------------------------------------------ */
:root,
.theme-light {
  --bg: var(--gallery);
  --fg: var(--black);
  --fg-muted: var(--graphite);
  --rule: var(--rule-on-light);
  --rule-strong: var(--black);
  --focus: var(--black);
  --accent-text: var(--black);
}
.theme-white { --bg: var(--white); }
.theme-mist  { --bg: var(--mist); }
.theme-dark {
  --bg: var(--black);
  --fg: var(--white);
  --fg-muted: var(--mist);
  --rule: var(--rule-on-dark);
  --rule-strong: rgba(244, 244, 243, .55);
  --focus: var(--ember);
  --accent-text: var(--ember);
  color-scheme: dark;
}
.theme-light, .theme-white, .theme-mist, .theme-dark {
  background-color: var(--bg);
  color: var(--fg);
}

/* Film grain: a tiny tiled noise PNG blended over the ground. */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("/img/brand/grain.png?v=4") 0 0 / 180px 180px repeat;
  mix-blend-mode: overlay;
  opacity: .16;
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--gallery);
  color: var(--black);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; text-wrap: balance; }
p, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:lang(zh) { font-family: var(--f-cn); font-weight: 400; letter-spacing: .02em; }
::selection { background: var(--black); color: var(--white); }
.theme-dark ::selection { background: var(--white); color: var(--black); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--black);
  color: var(--white);
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--pill);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--ember); }

.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 4. Typography ------------------------------------------------------------- */
.display-xl, .display-l, .heading, .quote { font-family: var(--f-display); font-weight: 500; }
.display-xl { font-size: var(--fs-display-xl); line-height: .9; letter-spacing: -.005em; }
.display-l  { font-size: var(--fs-display-l); line-height: .98; letter-spacing: -.005em; }
.heading    { font-size: var(--fs-heading); line-height: 1.1; }
.quote      { font-size: var(--fs-quote); line-height: 1.2; font-style: italic; }
.display-xl em, .display-l em, .heading em, .quote em { font-style: italic; color: inherit; }
.quote em { font-style: normal; }
.caps { text-transform: uppercase; letter-spacing: .04em; }
/* The hero h1 on every page: a small Bodoni caps block (LUOMU "FUTURE IS HERE"). */
.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 2.9vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.hero-title em { font-style: normal; color: inherit; }
.hero-thin {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: var(--fs-hero-thin);
  line-height: .9;
  letter-spacing: .06em;
  white-space: nowrap;
}
.eyebrow {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.lede { font-size: var(--fs-lede); line-height: 1.65; color: var(--fg-muted); max-width: 60ch; }
.body-s { font-size: .875rem; line-height: 1.55; }
.tag {
  font-family: var(--f-mono);
  font-size: var(--fs-tag);
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--fg-muted);
}
.caption {
  font-family: var(--f-mono);
  font-size: var(--fs-caption);
  line-height: 1.45;
  letter-spacing: .03em;
  color: var(--fg-muted);
}
.theme-dark .caption { color: var(--mist); } /* Concrete only at 15px+ */
.cn { font-family: var(--f-cn); font-weight: 400; }
.cn-heading { font-family: var(--f-cn); font-weight: 600; font-size: var(--fs-cn-heading); line-height: 1.3; letter-spacing: .06em; }
.num {
  font-family: var(--f-display);
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--fg);
}
.accent { color: var(--accent-text); }
.muted { color: var(--fg-muted); }

/* 5. Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(880px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 1.25rem); }
.stack > * { margin: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, 1rem 1.75rem); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap, clamp(12px, 1.6vw, 24px));
}
.grid > * { min-width: 0; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-12 { grid-column: 1 / -1; }
@media (max-width: 899.98px) {
  .grid > [class*="span-"] { grid-column: span 6; }
  .grid > .span-7, .grid > .span-8, .grid > .span-9, .grid > .span-12 { grid-column: 1 / -1; }
}
@media (max-width: 559.98px) {
  .grid > [class*="span-"] { grid-column: 1 / -1; }
  .grid > .span-sm-6 { grid-column: span 6; }
}

/* Bilingual copy: every English line is paired with Simplified Chinese.
   .zh-sub  block line under a heading (scales with the heading)
   .zh-p    a Chinese paragraph following its English paragraph
   .zh-i    inline Chinese after a short English label, button, link or caption */
.zh-sub {
  display: block;
  margin-top: .45em;
  font-family: var(--f-cn);
  font-style: normal;
  font-weight: 400;
  font-size: max(.95rem, .4em);
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: none;
  opacity: .8;
}
.zh-p { font-family: var(--f-cn); font-weight: 400; font-size: .94em; line-height: 1.85; letter-spacing: .03em; color: var(--fg-muted, currentColor); }
* + .zh-p { margin-top: .35em; }
.zh-i { font-family: var(--f-cn); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: .06em; margin-left: .55em; }
.eyebrow .zh-i, .btn .zh-i, .link-arrow .zh-i, .field__label .zh-i { font-size: 1.2em; letter-spacing: .1em; }

/* 6. Wordmark & lockups ------------------------------------------------------ */
.wordmark {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: normal; /* the logo keeps its original drawing: weight 400, natural optical size */
  line-height: 1;
  letter-spacing: .02em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark > span { color: var(--ember); }

.lockup {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--fg);
  font-size: var(--lockup-size, 1.75rem);
  white-space: nowrap;
}
.lockup > .wordmark { font-size: 1em; }
.lockup__div {
  display: inline-flex;
  align-items: center;
  gap: 1.35em;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: max(11px, .42em);
  line-height: 1;
  letter-spacing: .45em;
  margin-right: -.45em;
  text-transform: uppercase;
}
.lockup__div::before {
  content: "";
  flex: none;
  width: 1px;
  height: 2.6em;
  background: currentColor;
  opacity: .45;
}
.lockup__words { display: inline-grid; justify-items: start; row-gap: .7em; }
.lockup__cn {
  font-family: var(--f-cn);
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: .62em;
  margin-right: -.62em;
  text-transform: none;
  opacity: .82;
}
.lockup--stacked { flex-direction: column; gap: .35em; }
.lockup--stacked .lockup__words { justify-items: center; }
.lockup--stacked .lockup__div { flex-direction: column; gap: .9em; margin-right: -.45em; }
.lockup--stacked .lockup__div::before { width: 2.4em; height: 1px; margin-right: .45em; }

/* 7. Graphic devices -------------------------------------------------------- */
.hairline-heading {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem) .7rem 0;
  border-bottom: 1px solid var(--rule-strong);
}
.hairline-heading .eyebrow { font-size: .75rem; }

.tag-pair { display: grid; gap: .3rem; }
.tag-pair__cn { font-family: var(--f-cn); font-weight: 400; font-size: 1.0625rem; line-height: 1.5; letter-spacing: .04em; }
.tag-pair__en { font-family: var(--f-mono); font-size: var(--fs-tag); line-height: 1.45; letter-spacing: .02em; color: var(--fg-muted); }
/* The keyword: ink, and the English line is led by a small Ember tick on light grounds
   (never an underline, which reads as a link); the Ember word itself on dark grounds. */
.tag-pair__en b, .tag b { font-weight: 500; color: var(--fg); }
.tag-pair__en:has(b)::before, .tag:has(b)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1px;
  margin-right: .6em;
  vertical-align: .32em;
  background: var(--ember);
}
.theme-dark .tag-pair__en b, .theme-dark .tag b { color: var(--ember); }
.theme-dark .tag-pair__en::before, .theme-dark .tag::before { content: none; }

.ring {
  display: inline-grid;
  place-items: center;
  width: var(--ring-size, 6.5rem);
  aspect-ratio: 1;
  border: 1px solid var(--ring-color, currentColor);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  line-height: 1;
  text-align: center;
}
.rule { display: block; height: 1px; border: 0; margin: 0; background: var(--rule); }
.rule--strong { background: var(--rule-strong); }
.vertical-word {
  writing-mode: vertical-rl;
  font-family: var(--f-display);
  letter-spacing: .08em;
  line-height: 1;
  color: var(--ember);
  white-space: nowrap;
}
.corner-mark { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1; fill: none; }
.index {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--f-mono);
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--fg);
}
.index::after { content: ""; width: 2.25rem; height: 1px; background: var(--rule-strong); }

/* 8. Buttons & links -------------------------------------------------------- */
.btn {
  --btn-fg: var(--fg);
  --btn-bg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-height: 46px;
  padding: .9em calc(2.1em - .24em) .9em 2.1em;
  border: 1px solid var(--btn-fg);
  border-radius: var(--pill);
  background: transparent;
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--btn-fg); color: var(--btn-bg); }
.btn--fill { background: var(--btn-fg); color: var(--btn-bg); }
.btn--fill:hover { background: transparent; color: var(--btn-fg); }
.btn--sm { min-height: 38px; padding: .6em calc(1.5em - .24em) .6em 1.5em; font-size: .75rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  padding-block: .55em;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.3;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.link-arrow::after {
  content: "";
  flex: none;
  width: 1.9em;
  height: .7em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M0 5h27M22.5 .5 27 5l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M0 5h27M22.5 .5 27 5l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(5px); }

/* 9. Header & navigation ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--black);
  --fg: var(--black);
  --bg: var(--gallery);
  --focus: var(--black);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 244, 243, .96);
  border-bottom: 1px solid var(--rule-on-light);
  transition: opacity .4s var(--ease);
}
/* Over a misty hero the bar is clear, but a Gallery White fade keeps the wordmark's
   VERSE on a light ground (never on mid-grey). */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -2;
  background: linear-gradient(180deg, rgba(244, 244, 243, .92) 0%, rgba(244, 244, 243, .6) 62%, rgba(244, 244, 243, 0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open)::before { opacity: 0; }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open)::after { opacity: 1; }
.has-overlay-header main > :first-child { margin-top: calc(-1 * var(--header-h)); }

.site-header__bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__brand {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  font-size: 1.625rem;
  padding: .35rem .25rem;
}
.site-nav { grid-column: 1 / -1; grid-row: 1; }
.site-nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: .5rem;
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: .26em; bottom: .15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.site-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--ember); height: 1px; }
.site-nav__cta { margin-left: auto; }
.site-nav__cta .btn[aria-current="page"] { background: var(--black); color: var(--gallery); }
.site-nav__meta { display: none; }
/* Narrower desktops: the Chinese sits under each nav word so the bar clears the centred logo. */
@media (min-width: 900px) and (max-width: 1239.98px) {
  .site-nav__list { gap: clamp(1.1rem, 2.2vw, 2rem); }
  .site-nav__link .zh-i { display: block; margin: .3em 0 0; font-size: 1.15em; letter-spacing: .3em; line-height: 1.2; }
  .site-nav__link::after { bottom: -.05rem; }
}

.nav-toggle {
  display: none;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  position: relative;
  z-index: 2;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  margin-right: -.5rem;
  padding: .5rem;
  border: 0;
  background: none;
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.nav-toggle__icon { position: relative; width: 22px; height: 7px; }
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: 6px; left: 6px; }
.is-open .nav-toggle__icon::before { top: 3px; left: 3px; right: 3px; transform: rotate(45deg); }
.is-open .nav-toggle__icon::after { top: 3px; left: 3px; right: 3px; transform: rotate(-45deg); }

@media (max-width: 899.98px) {
  .site-header__bar { grid-template-columns: 1fr auto; }
  .site-header__brand { grid-column: 1; justify-self: start; font-size: 1.5rem; margin-left: -.25rem; }
  .nav-toggle { display: inline-flex; grid-column: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: calc(var(--header-h) + clamp(2rem, 8vh, 4rem)) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--black);
    color: var(--white);
    --fg: var(--white);
    --bg: var(--black);
    --focus: var(--ember);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .is-open .site-nav { visibility: visible; opacity: 1; transition: opacity .35s var(--ease), visibility 0s; }
  .is-open .site-header__brand, .is-open .nav-toggle { color: var(--white); --fg: var(--white); --focus: var(--ember); }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .site-nav__link {
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    padding-block: .2rem;
  }
  .site-nav__link::after { right: 0; bottom: .35rem; }
  .site-nav__link .zh-i { font-size: .5em; letter-spacing: .14em; margin-left: .7em; vertical-align: .32em; }
  .site-nav__cta { margin: 1.75rem 0 0; }
  .site-nav__cta .btn { min-height: 50px; padding-inline: 2.4em calc(2.4em - .24em); font-size: .75rem; }
  .site-nav__cta .btn[aria-current="page"] { background: var(--white); color: var(--black); }
  .site-nav__meta {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule-on-dark);
    font-size: .75rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--mist);
  }
  .site-nav__meta [lang] { font-size: 1rem; letter-spacing: .12em; }
  .nav-open, .nav-open body { overflow: hidden; }
}

/* 10. Footer ---------------------------------------------------------------- */
.site-footer { padding-block: clamp(4rem, 8vw, 7rem) 2rem; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 3rem clamp(3rem, 6vw, 6rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.site-footer__brand { display: grid; gap: 1rem; justify-items: start; }
.site-footer__mark { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .9; }
.site-footer__brand .quote { color: var(--white); }
.site-footer__cn { color: var(--mist); font-size: 1.0625rem; letter-spacing: .14em; }
.site-footer__contact { display: grid; gap: .5rem; justify-items: start; font-style: normal; }
.site-footer__contact-title { color: var(--mist); margin-bottom: .35rem; }
.site-footer__contact a { color: var(--white); text-decoration: none; font-size: 1.0625rem; line-height: 1.4; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-footer__contact a:hover { border-bottom-color: var(--ember); }
.site-footer__nav ul { display: grid; gap: .35rem; justify-items: end; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a {
  display: inline-block;
  padding-block: .35rem;
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
  transition: color .3s var(--ease);
}
.site-footer__nav a:hover, .site-footer__nav a[aria-current="page"] { color: var(--white); }
.site-footer__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: .5em; }
.site-footer__divisions {
  --lockup-size: clamp(1.25rem, 1.9vw, 1.625rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.site-footer__divisions li { display: flex; align-items: center; justify-content: center; padding: 1.6rem 1rem; min-width: 0; }
.site-footer__divisions li + li { border-left: 1px solid var(--rule-on-dark); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1.5rem;
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist); /* 12px: Studio Mist, not Concrete */
}
/* /founders already shows the four lockups in its brand-architecture section. */
.page-founders .site-footer__divisions { display: none; }
.page-founders .site-footer__base { border-top: 1px solid var(--rule-on-dark); }
@media (max-width: 1099.98px) {
  .site-footer__divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__divisions li:nth-child(3) { border-left: 0; }
  .site-footer__divisions li:nth-child(n+3) { border-top: 1px solid var(--rule-on-dark); }
}
@media (max-width: 639.98px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__nav ul { justify-items: start; grid-template-columns: repeat(2, max-content); column-gap: 2.5rem; }
  /* Phones: a 2 x 2 grid of stacked lockups instead of four identical full-width rows. */
  .site-footer__divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); --lockup-size: 1.3rem; }
  .site-footer__divisions li { padding: 1.35rem .5rem; }
  .site-footer__divisions li:nth-child(odd) { border-left: 0; }
  .site-footer__divisions li:nth-child(even) { border-left: 1px solid var(--rule-on-dark); }
  .site-footer__divisions .lockup { flex-direction: column; gap: .35em; }
  .site-footer__divisions .lockup__div { flex-direction: column; gap: .9em; margin-right: -.45em; }
  .site-footer__divisions .lockup__div::before { width: 2.4em; height: 1px; margin-right: .45em; }
}

/* 11. Section head ------------------------------------------------------------ */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5.5vw, 5rem);
}
.section-head__index { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; align-self: start; padding-top: .6rem; }
.section-head__main { display: grid; gap: 1.25rem; justify-items: start; }
.section-head__main .lede .cn, .section-head__main .lede [lang] { display: block; margin-top: .5rem; }
.section-head--center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.section-head--center .section-head__index { justify-content: center; padding-top: 0; }
.section-head--center .section-head__main { justify-items: center; max-width: 52rem; }
.section-head--center .lede { margin-inline: auto; max-width: 54ch; }
@media (max-width: 899.98px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head__index { padding-top: 0; }
}

/* 12. Media ------------------------------------------------------------------- */
.frame { position: relative; overflow: hidden; margin: 0; background: var(--black); }
.frame > img, .frame > video, .frame > picture > img { width: 100%; height: 100%; object-fit: cover; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-2x3 { aspect-ratio: 2 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.frame-offset { position: relative; isolation: isolate; }
.frame-offset::before {
  content: "";
  position: absolute;
  inset: var(--offset, 14px) calc(-1 * var(--offset, 14px)) calc(-1 * var(--offset, 14px)) var(--offset, 14px);
  border: 1px solid var(--rule-strong);
  z-index: -1;
  pointer-events: none;
}
.figure { display: grid; gap: .8rem; align-content: start; margin: 0; min-width: 0; }
.figure figcaption { font-family: var(--f-mono); font-size: var(--fs-caption); line-height: 1.45; letter-spacing: .03em; color: var(--fg-muted); }
.theme-dark .figure figcaption { color: var(--mist); }
.figure figcaption b { font-weight: 500; color: var(--fg); }

/* 13. Shared patterns ----------------------------------------------------------- */

/* 13a. Inner-page hero: giant thin word on Studio Mist, h1 + lede, optional media. */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}
.page-hero__giant {
  position: relative;
  z-index: 0;
  margin: 0 0 calc(-.18 * var(--fs-hero-thin));
  text-align: center;
  color: var(--white);
  text-shadow: 0 0 .05em rgba(255, 255, 255, .9), 0 0 .2em rgba(255, 255, 255, .55);
  user-select: none;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.page-hero__copy { display: grid; gap: 1.5rem; justify-items: start; }
.page-hero__copy .lede { color: var(--graphite); }
.page-hero__media { position: relative; }
@media (max-width: 899.98px) {
  .page-hero__inner { grid-template-columns: 1fr; }
}

/* 13b. The Method (01–05). <ol class="steps"><li class="step">… */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}
.step {
  position: relative;
  display: grid;
  gap: .6rem;
  align-content: start;
  padding: 1.75rem 1.25rem 2rem 0;
}
.step + .step { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.step__num { font-size: clamp(2.75rem, 4.4vw, 4rem); margin-bottom: .6rem; }
.step__title { font-family: var(--f-sans); font-weight: 500; font-size: clamp(.9375rem, 1.15vw, 1.0625rem); letter-spacing: .26em; text-transform: uppercase; }
.step__cn { font-family: var(--f-cn); font-weight: 400; font-size: 1rem; line-height: 1.55; color: var(--fg-muted); }
.step__en { font-family: var(--f-mono); font-size: .8125rem; line-height: 1.45; color: var(--fg-muted); }
.theme-dark .step__en { color: var(--mist); }
.step__num { color: var(--ember); } /* the Method: the one sequence that keeps Ember numerals */
@media (max-width: 1099.98px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:nth-child(4) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 639.98px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.35rem 0;
    border-left: 0;
  }
  .step + .step { border-top: 1px solid var(--rule); }
  .step > * { grid-column: 2; }
  .step__num { grid-column: 1; grid-row: 1 / span 3; margin: 0; font-size: 2.75rem; }
}

/* 13c. Bilingual credentials list. <ul class="credentials"><li><span>English</span><span lang="zh-Hans">中文</span></li> */
.credentials { display: grid; gap: .85rem; }
.credentials li { position: relative; display: grid; gap: .1rem; padding-left: 1.25rem; font-size: .9375rem; line-height: 1.45; }
.credentials li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: 1px; background: var(--ember); }
.credentials [lang] { font-size: .875rem; color: var(--fg-muted); }

/* 13d. Closing enquiry band. */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem;
  align-items: end;
  min-height: clamp(30rem, 48vw, 42rem);
}
.cta-band__copy { display: grid; gap: 1.5rem; justify-items: start; align-self: center; padding-block: var(--section-y); }
.cta-band__copy .lede { color: var(--graphite); max-width: 46ch; }
.cta-band__figure { position: relative; align-self: end; justify-self: center; display: flex; align-items: flex-end; }
.cta-band__figure img { width: auto; max-width: none; height: var(--cta-fig-h, clamp(24rem, 40vw, 38rem)); }
@media (max-width: 899.98px) {
  .cta-band__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .cta-band__copy { padding-block: var(--section-y) 1rem; }
  .cta-band__figure img { height: var(--cta-fig-h-sm, clamp(20rem, 80vw, 28rem)); }
}
/* .cta-band--framed: a framed photograph instead of a cut-out (each page closes differently). */
.cta-band--framed .cta-band__inner {
  align-items: center;
  min-height: 0;
  gap: 3rem clamp(2.5rem, 6vw, 6rem);
  padding-block: var(--section-y);
}
.cta-band--framed .cta-band__copy { padding-block: 0; }
.cta-band__frame { --offset: 14px; justify-self: end; width: calc(100% - var(--offset)); max-width: 28rem; margin: 0 var(--offset) var(--offset) 0; }
@media (max-width: 899.98px) {
  .cta-band--framed .cta-band__inner { gap: 2.75rem; }
  .cta-band__frame { justify-self: start; width: min(100% - var(--offset), 30rem); }
}

/* 13d+. Silent loops: a real Pause / Play button (site.js adds it to every autoplaying loop). */
.loop-toggle {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 34px;
  padding: .4em .95em .4em .8em;
  border: 1px solid rgba(244, 244, 243, .55);
  border-radius: var(--pill);
  background: rgba(17, 17, 18, .62);
  color: var(--white);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: .6875rem;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.loop-toggle::before {
  content: "";
  width: 8px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.loop-toggle[data-state="paused"]::before {
  border: 0;
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.loop-toggle:hover { background: var(--white); color: var(--black); }
.loop-toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* 13e. Forms. */
.field { display: grid; gap: .5rem; }
.field__label { font-weight: 500; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; }
.field__hint { font-family: var(--f-mono); font-size: .8125rem; color: var(--fg-muted); }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--fg);
  transition: border-color .3s var(--ease);
}
textarea.field__input { min-height: 9rem; resize: vertical; }
select.field__input {
  appearance: none;
  padding-right: 2rem;
  background: linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 9px) 55% / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, currentColor 50%) calc(100% - 3px) 55% / 6px 6px no-repeat;
}
.field__input:focus { outline: none; border-bottom-color: var(--ember); box-shadow: 0 1px 0 0 var(--ember); }
.field__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.field__error { font-family: var(--f-mono); font-size: .875rem; line-height: 1.45; color: var(--fg); }
.field__error::before { content: "— "; color: var(--ember); }
.field.is-invalid .field__input { border-bottom: 2px solid var(--ember); }
.form-status { font-family: var(--f-mono); font-size: .9375rem; line-height: 1.5; padding: 1rem 1.25rem; border-left: 2px solid var(--ember); background: var(--white); }

/* 14. Motion: scroll-linked settle (enhancement only) --------------------------- */
@keyframes av-settle { from { transform: translateY(2.25rem); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes av-rise { from { transform: translateY(1.25rem); } to { transform: none; } }
@keyframes av-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes av-fade-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: av-settle linear forwards;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .frame--settle > img, .frame--settle > video {
      animation: av-zoom linear forwards;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
  }
  /* IntersectionObserver fallback (site.js adds .reveal-io): transform only, never hides. */
  .reveal-io .reveal.is-inview { animation: av-rise 1s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .nav-toggle, .skip-link, video { display: none !important; }
  .grain::after { display: none; }
  body { background: #fff; }
}

/* 15. 404 ----------------------------------------------------------------------- */
.has-overlay-header .page-hero { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem)); }
.page-404 .page-hero__giant { font-size: clamp(9rem, 34vw, 26rem); line-height: .8; margin-bottom: calc(-.1 * clamp(9rem, 34vw, 26rem)); }
@media (max-width: 899.98px) { .page-404 .page-hero__giant { margin-bottom: 1.5rem; } }
.notfound { min-height: min(100svh, 1000px); }
.notfound__links { border-top: 1px solid var(--black); }
.notfound__links a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule-on-light);
  text-decoration: none;
  transition: padding .4s var(--ease);
}
.notfound__links a:hover { padding-left: .75rem; }
.notfound__name { font-family: var(--f-display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; }
.notfound__note { font-family: var(--f-mono); font-size: .875rem; color: var(--graphite); }
@media (max-width: 479.98px) {
  .notfound__links a { flex-direction: column; align-items: flex-start; gap: .2rem; }
}


/* Heavier type (site-wide): Bodoni Moda is set at a fixed, sturdier optical size so its hairlines
   stay visible at display sizes. Only fonts with an opsz axis (Bodoni Moda) are affected. */
html { font-variation-settings: "opsz" 24; }

/* WhatsApp chat button: fixed to the bottom-right corner of every page. */
.wa-float {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(17, 17, 18, .28), 0 0 0 1px rgba(244, 244, 243, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.wa-float__icon { width: 28px; height: 28px; fill: currentColor; }
/* Larger screens: a slightly smaller button tucked into the corner, clear of right-aligned text. */
@media (min-width: 900px) {
  .wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .wa-float__icon { width: 24px; height: 24px; }
}
.wa-float:hover { transform: translateY(-2px); background: #000; box-shadow: 0 10px 28px rgba(17, 17, 18, .34), 0 0 0 2px var(--ember); }
.wa-float:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.nav-open .wa-float { visibility: hidden; }
@media (max-width: 639.98px) {
  .wa-float { width: 52px; height: 52px; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
  .wa-float__icon { width: 25px; height: 25px; }
  /* keep the last footer line clear of the button */
  .site-footer__base { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float:hover { transition: none; transform: none; } }
@media print { .wa-float { display: none; } }
