/* ==========================================================================
   Autumn Leaf 秋叶
   Palette and type from the Autumn Leaf Brand Identity Playbook.
   Montserrat (primary) · Courier New (secondary) · Liu Jian Mao Cao (brush)
   ========================================================================== */

:root {
  /* Playbook palette */
  --c-slate: #546a7b;
  --c-mist: #e8ebee;
  --c-white: #ffffff;
  --c-fog: #dde1e5;
  --c-gold: #cca24a;
  /* Derived from slate for readable body text */
  --c-ink: #24303a;
  --c-ink-soft: #495057;
  --c-slate-deep: #3b4b57;
  --c-line: rgba(36, 48, 58, 0.14);
  --c-line-light: rgba(255, 255, 255, 0.22);
  /* Panels that sit on the page (white in light mode) */
  --c-surface: #ffffff;

  --f-sans: "Montserrat", system-ui, sans-serif;
  --f-mono: "Courier New", Courier, monospace;
  --f-brush: "Liu Jian Mao Cao", "Ma Shan Zheng", cursive;

  --gutter: clamp(16px, 2.6vw, 40px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark mode: ink-blue page, mist text, same gold. White stays white for text on slate. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-mist: #121920;
  --c-surface: #19222a;
  --c-fog: #222c35;
  --c-ink: #e4e8ec;
  --c-ink-soft: #a9b4be;
  --c-slate: #5d7385;
  --c-line: rgba(228, 232, 236, 0.14);
}
:root[data-theme="dark"] .header__mark .mark-dark { opacity: 0; }
:root[data-theme="dark"] .header__mark .mark-light { opacity: 1; }
:root[data-theme="dark"] .about__film { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-mist);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--c-slate); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Type primitives ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.label--muted { color: var(--c-slate); }
.brush { font-family: var(--f-brush); font-weight: 400; line-height: 1; }
.display {
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.h2 {
  font-size: clamp(2.4rem, 6.4vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  overflow-wrap: anywhere;
  min-width: 0;
}
.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.mono { font-family: var(--f-mono); }

/* Brush-written characters: a soft ink edge sweeps down each glyph (driven by --ink from JS) */
.ink {
  display: inline-block;
  /* Brush glyphs overflow their em box, so pad the masked area and pull it back with negative margin */
  padding: 0.35em 0.3em;
  margin: -0.35em -0.3em;
  --ink: 0%;
  -webkit-mask-image: linear-gradient(172deg, #000 42%, transparent 58%);
          mask-image: linear-gradient(172deg, #000 42%, transparent 58%);
  -webkit-mask-size: 100% 300%;
          mask-size: 100% 300%;
  -webkit-mask-position: 0 var(--ink);
          mask-position: 0 var(--ink);
}
.ink.is-inked { -webkit-mask-image: none; mask-image: none; }

/* Ink-bleed image reveals: an ink pool mask blooms open from a point (driven by --blot from JS) */
.is-inking {
  -webkit-mask-image: url(../assets/brand/ink-blot.png);
          mask-image: url(../assets/brand/ink-blot.png);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: var(--ox, 50%) var(--oy, 50%);
          mask-position: var(--ox, 50%) var(--oy, 50%);
  -webkit-mask-size: var(--blot, 0%) var(--blot, 0%);
          mask-size: var(--blot, 0%) var(--blot, 0%);
}

/* Split helpers (populated by JS) */
.line-mask { display: block; overflow: hidden; padding: 0.2em 0.12em 0.16em; margin: -0.2em -0.12em -0.16em; }
.line-inner { display: block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gutter); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.section { position: relative; padding-block: clamp(96px, 14vw, 200px); }
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: clamp(40px, 6vw, 88px);
}
.section-head .label { grid-column: 1 / span 3; align-self: start; padding-top: 0.6em; }
.section-head .h2 { grid-column: 4 / -1; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .section-head .label, .section-head .h2 { grid-column: 1 / -1; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  padding-inline: var(--gutter);
  color: var(--c-ink);
  transition: transform 0.6s var(--ease-out), color 0.4s ease;
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-light { color: var(--c-white); }
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-mist);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.header.is-solid::before { opacity: 0.92; }
.header.is-solid.is-light::before { opacity: 0; }
.header__brand { grid-column: 1 / span 3; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.header__mark { width: 30px; height: 30px; display: grid; place-items: center; }
.header__mark img { width: 30px; height: auto; transition: opacity 0.3s; }
.header__mark .mark-light { position: absolute; opacity: 0; }
.header.is-light .header__mark .mark-dark { opacity: 0; }
.header.is-light .header__mark .mark-light { opacity: 1; }
.header__name { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.header__name .brush { font-size: 18px; margin-left: 4px; color: var(--c-gold); }
.header__meta { grid-column: 5 / span 4; display: flex; gap: 28px; }
.header__nav { grid-column: 9 / -1; display: flex; justify-content: flex-end; gap: 28px; }
.header__time { font-variant-numeric: tabular-nums; }
.header__meta > span { white-space: nowrap; }
.header__rel { color: var(--c-slate); }
@media (max-width: 1279px) { .header__rel { display: none; } }

.link-roll { position: relative; display: inline-flex; overflow: hidden; white-space: nowrap; }
.link-roll span { display: block; transition: transform 0.5s var(--ease-out); }
.link-roll span + span { position: absolute; inset: 0; transform: translateY(105%); }
.link-roll:hover span:first-child, .link-roll:focus-visible span:first-child { transform: translateY(-105%); }
.link-roll:hover span + span, .link-roll:focus-visible span + span { transform: translateY(0); }
.link-roll[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
}

.theme-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.theme-btn__icon { width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform 0.6s var(--ease-out); }
:root[data-theme="dark"] .theme-btn__icon { transform: rotate(180deg); }
.menu-btn { display: none; grid-column: -3 / -1; justify-self: end; align-items: center; gap: 10px; }
.menu-btn__lines { width: 22px; height: 8px; position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: 6.5px; }
.menu-open .menu-btn__lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn__lines::after { top: 3.25px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .header__meta { display: none; }
  .header__nav { display: none; }
  .header__brand { grid-column: 1 / span 8; }
  .menu-btn { display: inline-flex; }
}

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--c-slate);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out);
  pointer-events: none;
}
.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu-open .header { color: var(--c-white); }
.menu-open .header::before { opacity: 0 !important; }
.menu-open .header__mark .mark-dark { opacity: 0; }
.menu-open .header__mark .mark-light { opacity: 1; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-size: clamp(3rem, 15vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.menu__links a sup { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0; vertical-align: top; margin-left: 6px; color: var(--c-gold); }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--c-line-light); flex-wrap: wrap; }
.menu__cn { position: absolute; top: calc(var(--header-h) + 8px); right: var(--gutter); font-size: clamp(5rem, 30vw, 10rem); color: var(--c-gold); writing-mode: vertical-rl; opacity: 0.9; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-mist);
  display: grid;
  place-items: center;
  color: var(--c-slate);
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader__cn { font-size: clamp(5rem, 14vw, 9rem); display: flex; gap: 0.08em; }
.loader__cn span { display: inline-block; clip-path: inset(0 0 100% 0); }
.loader__bar { width: min(240px, 50vw); height: 1px; background: var(--c-line); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--c-gold); transform-origin: left; transform: scaleX(0); }
.loader__count { font-variant-numeric: tabular-nums; }
.no-loader .loader { display: none; }

/* Page transition: two ink layers (pale wash, then slate) with brushy edges */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.curtain__layer { position: absolute; inset: 0; transform: translateY(118%); will-change: transform; }
.curtain__wash { background: #8d9cab; color: #8d9cab; }
.curtain__ink { background: var(--c-slate); color: var(--c-slate); }
.curtain__edge { position: absolute; left: -2%; width: 104%; height: 14vh; fill: currentColor; filter: url(#ink-edge); }
.curtain__edge--top { bottom: calc(100% - 1px); }
.curtain__edge--bottom { top: calc(100% - 1px); transform: scaleY(-1); }
.js .curtain__layer { transform: none; }
.curtain__cn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--c-gold); font-size: clamp(4rem, 10vw, 7rem); display: flex; gap: 0.08em; opacity: 0; }
.curtain__cn > span { display: block; }
.js .curtain .curtain__cn { opacity: 1; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 80;
  pointer-events: none;
  width: 92px; height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--c-slate);
  color: var(--c-white);
  display: grid;
  place-items: center;
  transform: scale(0);
  will-change: transform;
}
.cursor span { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
/* Follower dot: ink on light sections, white on dark ones, grows into a ring over links */
.dot {
  position: fixed;
  left: 0; top: 0;
  z-index: 79;
  pointer-events: none;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  color: var(--c-ink);
  opacity: 0;
  will-change: transform;
}
.dot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: currentColor;
  border: 1px solid currentColor;
  transform: scale(0.2);
  transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.dot.is-link::before { transform: scale(1); background: transparent; }
.dot.is-down::before { transform: scale(0.14); }
.dot.is-link.is-down::before { transform: scale(0.8); }
.dot.is-hidden::before { transform: scale(0); }
.dot.on-dark { color: var(--c-white); }
.dot { transition: color 0.3s; }
@media (hover: none), (pointer: coarse) { .cursor, .dot { display: none; } }

/* ---------- Hero ---------- */
/* Hero: a porcelain koi swims through giant ink letters (head in front, body behind).
   Moving the cursor paints the blue-and-white porcelain into the letters; the ink dries back. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--c-mist); }
.hero__cloud {
  position: absolute; left: 50%; top: 50%; width: min(1500px, 120vw); transform: translate(-50%, -50%);
  opacity: 0.85; mix-blend-mode: multiply; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 38%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 38%, transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.koi { position: absolute; left: 0; top: 0; width: 44vw; pointer-events: none; will-change: transform; }
.koi img { display: block; width: 100%; height: auto; will-change: transform; }
.koi--back { z-index: 1; }
/* only the back copy casts the shadow: the front copy is trimmed to the head, and a shadow on it would be cut into a box */
.koi--back img { filter: drop-shadow(0 26px 30px rgba(36, 48, 58, 0.16)); }
.koi--front { z-index: 3; }
/* the mask sits on the img so it floats with the fish */
.koi--front img { -webkit-mask-image: linear-gradient(200deg, #000 0 30%, transparent 46%); mask-image: linear-gradient(200deg, #000 0 30%, transparent 46%); }
.hero__cn { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: clamp(5rem, 13vw, 13rem); line-height: 1; color: var(--c-gold); pointer-events: none; z-index: 4; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; z-index: 4;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; color: var(--c-ink);
}
.hero__foot > :nth-child(1) { grid-column: 1 / span 4; }
.hero__foot > :nth-child(2) { grid-column: 5 / span 4; text-align: center; }
.hero__foot > :nth-child(3) { grid-column: 9 / -1; text-align: right; justify-self: end; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 36px; background: var(--c-line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--c-ink); transform: translateY(-100%); animation: scrollcue 2.2s var(--ease-in-out) infinite; }
.hero__line { position: absolute; left: var(--gutter); bottom: 96px; z-index: 4; margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .koi { width: 92vw; }
  .koi--back img { filter: drop-shadow(0 14px 14px rgba(36, 48, 58, 0.14)); } /* a lighter shadow: cheaper for phone GPUs to move */
  .hero__cloud { width: 190vw; }
  .hero__cn { top: auto; bottom: 150px; transform: none; font-size: 26vw; }
  .hero__foot > :nth-child(1), .hero__foot > :nth-child(2) { display: none; }
  .hero__foot > :nth-child(3) { grid-column: 7 / -1; }
  .hero__line { bottom: 28px; font-size: 1.1rem; }
}

/* ---------- Intro statement ---------- */
.intro { background: var(--c-mist); }
.intro__grid { row-gap: 48px; }
.intro__label { grid-column: 1 / span 3; }
.intro__text {
  grid-column: 4 / -1;
  font-size: clamp(1.7rem, 3.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.intro__text .word { color: var(--c-ink); }
.intro__text em { font-style: normal; color: var(--c-slate); }
.intro__text .brush { color: var(--c-gold); font-size: 1.15em; vertical-align: -0.06em; }
.intro__aside { grid-column: 4 / span 4; display: flex; flex-direction: column; gap: 16px; color: var(--c-ink-soft); }
.intro__aside p { max-width: 36ch; }
.intro__koi { grid-column: 8 / -1; grid-row: 2; width: 100%; aspect-ratio: 1; margin-top: clamp(-140px, -9vw, 0px); pointer-events: none; }
/* dark ink would vanish on the dark page, so flip it to pale porcelain-blue ink */
:root[data-theme="dark"] .intro__koi { filter: invert(1) hue-rotate(180deg); }
.intro__cta { grid-column: 9 / -1; grid-row: 3; align-self: end; justify-self: end; }
@media (max-width: 760px) {
  .intro__label, .intro__text, .intro__aside, .intro__cta { grid-column: 1 / -1; justify-self: start; }
  .intro__koi { grid-column: 1 / -1; grid-row: auto; width: min(100%, 420px); justify-self: center; margin-top: 0; }
  .intro__cta { grid-row: auto; }
}

/* Pill button */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s;
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-slate);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.pill:hover, .pill:focus-visible { color: var(--c-white); border-color: var(--c-slate); }
.pill:hover::before, .pill:focus-visible::before { transform: translateY(0); }
.pill:active { transform: translateY(1px); }
.pill--light:hover, .pill--light:focus-visible { color: var(--c-slate); border-color: var(--c-white); }
.pill--light::before { background: var(--c-white); }
.pill .arrow { display: inline-block; transition: transform 0.5s var(--ease-out); }
.pill:hover .arrow { transform: translateX(4px); }

/* ---------- Featured work ---------- */
.featured { background: var(--c-mist); padding-top: 0; }
.featured__list { row-gap: clamp(72px, 10vw, 160px); }
.featured__more { display: flex; justify-content: center; margin-top: clamp(64px, 8vw, 120px); }
.card { display: block; position: relative; }
.card:nth-child(4n + 1) { grid-column: 1 / span 7; }
.card:nth-child(4n + 2) { grid-column: 9 / span 4; margin-top: clamp(80px, 18vw, 280px); }
.card:nth-child(4n + 3) { grid-column: 2 / span 4; }
.card:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: clamp(60px, 10vw, 160px); }
.card__frame {
  position: relative;
  overflow: hidden;
  background: var(--c-fog);
  aspect-ratio: 4 / 5;
  border-radius: 2px;
}
.card:nth-child(4n + 1) .card__frame { aspect-ratio: 5 / 4; }
.card:nth-child(4n + 4) .card__frame { aspect-ratio: 1 / 1; }
.card__frame img, .card__frame video {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.card__frame::after {
  content: ""; position: absolute; inset: 0;
  background: var(--c-slate);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.card:hover .card__frame::after { opacity: 0.12; }
.card__media-scale { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.card:hover .card__media-scale { transform: scale(1.04); }
.card__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding-top: 18px;
}
.card__title { font-size: clamp(1.4rem, 2.2vw, 2.1rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.card__tags { color: var(--c-slate); }
.card__index { color: var(--c-gold); }
@media (max-width: 760px) {
  .card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .card:nth-child(2n) { grid-column: 3 / -1; }
  .card__meta { grid-template-columns: auto minmax(0, 1fr); }
  .card__meta .card__year { display: none; }
}

/* ---------- Principles (horizontal) ---------- */
.principles { background: var(--c-slate); color: var(--c-white); overflow: hidden; }
.principles__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.principles__top {
  position: absolute; inset: calc(var(--header-h) + 8px) var(--gutter) auto var(--gutter);
  display: flex; justify-content: space-between; gap: 16px;
}
.principles__progress { width: min(240px, 30vw); height: 1px; background: var(--c-line-light); position: relative; align-self: center; }
.principles__progress i { position: absolute; inset: 0; background: var(--c-gold); transform-origin: left; transform: scaleX(0); }
/* three pale koi swimming left to right under the (02) Principles label (js/main.js: initKoiSchool) */
.principles__koi { position: absolute; left: 0; top: calc(var(--header-h) + 36px); height: clamp(110px, 22vh, 220px); aspect-ratio: 2250 / 1150; pointer-events: none; will-change: transform; transform: translate3d(-100%, 0, 0); }
/* the lone koi swimming through the page: above the content (it keeps out of its way), under the header and overlays */
.koi-wanderer { position: fixed; left: 0; top: 0; z-index: 39; pointer-events: none; will-change: transform; }
.principles__track { display: flex; width: max-content; padding-inline: var(--gutter); gap: clamp(40px, 6vw, 120px); will-change: transform; }
.principle {
  width: clamp(280px, 62vw, 900px);
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.principle__cn { font-size: clamp(7rem, 22vw, 22rem); color: var(--c-gold); line-height: 0.85; }
.principle__word { font-size: clamp(2.6rem, 7vw, 7rem); font-weight: 300; letter-spacing: -0.045em; line-height: 0.95; }
.principle__line { margin-top: 20px; max-width: 30ch; color: var(--c-fog); }
.principle__no { color: var(--c-gold); display: block; margin-bottom: 16px; }
.principle--intro { grid-template-columns: minmax(0, 1fr); width: clamp(280px, 48vw, 720px); }
.principle--intro .h2 { color: var(--c-white); }
.principle--intro .brush { color: var(--c-gold); }
@media (max-width: 760px) {
  .principle { grid-template-columns: minmax(0, 1fr); width: 78vw; row-gap: 12px; }
  .principle__cn { font-size: 34vw; }
}

/* ---------- Work index ---------- */
.index { background: var(--c-surface); }
.index__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  padding: 9px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter:hover { border-color: var(--c-slate); }
.filter[aria-pressed="true"] { background: var(--c-slate); border-color: var(--c-slate); color: var(--c-white); }
.filter sup { margin-left: 4px; font-size: 10px; }
.index__head, .row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
}
.index__head { padding: 12px 0; color: var(--c-slate); border-bottom: 1px solid var(--c-line); }
.row {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--c-line);
  transition: color 0.4s, opacity 0.4s;
}
.row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--c-mist);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}
.row > * { position: relative; z-index: 1; }
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row__no { grid-column: 1 / span 1; color: var(--c-gold); }
.row__title {
  grid-column: 2 / span 5;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  transition: transform 0.6s var(--ease-out);
}
.row:hover .row__title { transform: translateX(14px); }
.row__disc { grid-column: 7 / span 3; color: var(--c-ink-soft); }
.row__collab { grid-column: 10 / span 2; color: var(--c-slate); }
.row__year { grid-column: 12 / span 1; text-align: right; }
.row__thumb { display: none; }
.index__list.is-hovering .row:not(:hover) { opacity: 0.35; }
.row.is-filtered { display: none; }
.index__head .row__title { font-size: inherit; letter-spacing: 0.02em; font-weight: 400; line-height: 1.4; }
@media (max-width: 760px) {
  .index__head { display: none; }
  .row { grid-template-columns: 64px minmax(0, 1fr); row-gap: 6px; align-items: start; }
  .row__thumb { display: block; grid-column: 1; grid-row: 1 / span 3; width: 64px; aspect-ratio: 4/5; overflow: hidden; background: var(--c-fog); }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row__no { display: none; }
  .row__title, .row__disc, .row__year { grid-column: 2; text-align: left; padding-left: 4px; }
  .row__collab { display: none; }
}

/* Floating preview */
.preview {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 0.6s var(--ease-out);
}
.preview.is-on { clip-path: inset(0 0 0 0); }
.preview__track { position: absolute; inset: 0; transition: transform 0.7s var(--ease-out); }
.preview__track img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .preview { display: none; } }

/* ---------- About ---------- */
.about { background: var(--c-mist); }
.about__grid { row-gap: 56px; align-items: start; }
.about__visual { grid-column: 1 / span 5; position: relative; }
.about__frame { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--c-white); }
.about__frame { background: var(--c-fog); }
.about__frame video { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.about__caption { display: block; margin-top: 14px; }
.about__frame--portrait { aspect-ratio: 1600 / 1454; background: var(--c-mist); }
.about__frame--portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.about__film {
  position: absolute;
  right: -10%;
  bottom: 18%;
  width: 46%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-ink);
  box-shadow: 0 30px 60px -30px rgba(36, 48, 58, 0.45);
}
.about__film video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .about__film { right: -4%; width: 42%; } }
@media (max-width: 760px) { .about__frame--portrait { aspect-ratio: 900 / 1350; } }
@media (max-width: 560px) { .about__film { width: 36%; bottom: 8%; right: -2%; } }
.about__logo {
  position: absolute;
  right: -12%;
  bottom: -10%;
  width: 46%;
  background: var(--c-surface);
  padding: 6%;
  box-shadow: 0 30px 60px -30px rgba(36, 48, 58, 0.35);
}
.about__body { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 36px; }
.about__body .h2 .brush { color: var(--c-gold); }
.about__copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--col-gap); color: var(--c-ink-soft); }
.about__copy p:first-child { grid-column: 1 / -1; color: var(--c-ink); }
.services { border-top: 1px solid var(--c-line); }
.services li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
}
.services li .label { color: var(--c-gold); }
.services li .mono { color: var(--c-slate); font-size: 13px; }
.quote {
  padding: 28px 0 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.quote cite { display: block; margin-top: 12px; font-style: normal; }
@media (max-width: 960px) {
  .about__visual { grid-column: 1 / span 10; }
  .about__body { grid-column: 1 / -1; }
  .about__logo { right: -6%; }
}
@media (max-width: 560px) {
  .about__copy { grid-template-columns: minmax(0, 1fr); }
  .services li { grid-template-columns: 36px minmax(0, 1fr); }
  .services li .mono { display: none; }
}

/* ---------- Paid advertising ---------- */
.ads { background: var(--c-surface); padding-block: clamp(72px, 9vw, 140px); }
.services__link { color: inherit; text-decoration: none; }
.services__link .arrow { display: inline-block; color: var(--c-gold); transition: transform 0.5s var(--ease-out); }
.services__link:hover .arrow, .services__link:focus-visible .arrow { transform: translateX(4px); }
.ads__grid { row-gap: 56px; align-items: start; }
.ads__intro { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 40px; }
.ads__offer { grid-column: 7 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ads__offer .services { align-self: stretch; margin-bottom: 16px; }
.ads__offer .services li { grid-template-columns: 48px minmax(0, 1fr); }
.ads__skills { display: flex; flex-direction: column; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-slate-deep); background: var(--c-mist); }
.ads__how { margin-top: clamp(72px, 9vw, 140px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--c-line); }
.ads__how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--col-gap); margin-top: 32px; }
.ads__step .label { color: var(--c-gold); }
.ads__step h3 { margin: 14px 0 10px; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.ads__step p { color: var(--c-ink-soft); }
@media (max-width: 960px) {
  .ads__intro, .ads__offer { grid-column: 1 / -1; }
  .ads__how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ads__how-grid { grid-template-columns: minmax(0, 1fr); }
  .ads__offer .services li { grid-template-columns: 36px minmax(0, 1fr); }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--c-mist); padding-block: clamp(40px, 6vw, 80px); overflow: hidden; border-top: 1px solid var(--c-line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 0.4em; padding-right: 0.4em; font-size: clamp(3rem, 9vw, 9rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.marquee__group .brush { color: var(--c-gold); font-size: 0.9em; }
.marquee__group .dot { width: 0.18em; height: 0.18em; border-radius: 50%; background: var(--c-slate); display: inline-block; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--c-slate); color: var(--c-white); overflow: hidden; }
.footer__inner { position: relative; padding: clamp(96px, 12vw, 180px) var(--gutter) 24px; will-change: transform; }
.footer__cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: end; }
.footer__cta .label { grid-column: 1 / span 3; align-self: start; color: var(--c-fog); }
.footer__big { grid-column: 4 / -1; font-size: clamp(2.8rem, 8vw, 8.5rem); font-weight: 300; letter-spacing: -0.05em; line-height: 0.92; }
.footer__big .brush { color: var(--c-gold); }
.footer__mail {
  grid-column: 4 / -1;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
  font-size: clamp(1.1rem, 2.6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--c-line-light);
  padding-bottom: 8px;
  overflow-wrap: anywhere;
  min-width: 0;
  transition: border-color 0.4s, color 0.4s;
}
.footer__mail:hover { border-color: var(--c-gold); color: var(--c-gold); }
.footer__btn { grid-column: 4 / -1; justify-self: start; padding: 20px 32px; }
.footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; margin-top: clamp(80px, 10vw, 140px); padding-top: 24px; border-top: 1px solid var(--c-line-light); }
.footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; }
.footer__col .label { color: var(--c-fog); opacity: 0.7; margin-bottom: 8px; }
.footer__col a { align-self: flex-start; }
.footer__wordmark {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(64px, 8vw, 120px);
  font-size: clamp(2.6rem, 12.2vw, 15rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.78;
  white-space: nowrap;
}
.footer__wordmark .brush { color: var(--c-gold); font-size: 0.85em; letter-spacing: 0; }
.footer__waves {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 12vw, 180px);
  background-repeat: repeat-x; background-position: left bottom; background-size: auto 100%;
  opacity: 0.1; pointer-events: none;
}
/* Seigaiha band from the Autumn Leaf identity, waves rising into the footer */
.wave-band {
  position: relative;
  height: clamp(64px, 8vw, 120px);
  margin-bottom: -1px;
  background-repeat: repeat-x; background-position: left bottom; background-size: auto 100%;
  pointer-events: none;
}
.wave-band, .footer__waves { overflow: hidden; }
.drift-layer { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 400px); background-repeat: inherit; background-position: inherit; background-size: inherit; will-change: transform; }
.footer__base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 28px; color: var(--c-fog); }
@media (max-width: 760px) {
  /* Phones (and larger system font sizes): smaller, with a gap, and 秋叶 wraps instead of being cut off */
  .footer__wordmark { font-size: 11vw; flex-wrap: wrap; justify-content: flex-start; gap: 0.12em 0.22em; white-space: normal; }
  .footer__wordmark .brush { white-space: nowrap; }
  .footer__cta .label, .footer__big, .footer__mail, .footer__btn { grid-column: 1 / -1; }
  .footer__col { grid-column: span 6; }
}

/* ---------- Project page ---------- */
.p-hero { padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) var(--gutter) clamp(48px, 6vw, 88px); background: var(--c-mist); }
.p-hero__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.p-hero__back { display: inline-flex; gap: 10px; align-items: center; }
.p-hero__title {
  font-size: clamp(3.2rem, 12vw, 13rem);
  overflow-wrap: anywhere;
  min-width: 0;
}
.p-hero__title .brush { color: var(--c-gold); font-size: 0.8em; }
.p-hero__info { margin-top: clamp(40px, 6vw, 88px); row-gap: 40px; }
.p-hero__desc { grid-column: 1 / span 6; }
.p-meta { grid-column: 8 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--col-gap); }
.p-meta dt { color: var(--c-slate); margin-bottom: 6px; }
.p-meta dd { font-size: 15px; }
.p-meta dd a { border-bottom: 1px solid var(--c-line); transition: border-color 0.3s; }
.p-meta dd a:hover { border-color: var(--c-gold); }
@media (max-width: 860px) {
  .p-hero__desc, .p-meta { grid-column: 1 / -1; }
}
.p-cover { position: relative; height: 92vh; height: 92svh; overflow: hidden; background: var(--c-fog); }
.p-cover img, .p-cover video { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
/* Phones: show the whole cover at its own shape instead of a tall crop */
@media (max-width: 760px) {
  .p-cover { height: auto; aspect-ratio: var(--ar, 16 / 9); max-height: 80svh; }
  .p-cover img, .p-cover video { inset: 0 !important; height: 100% !important; transform: none !important; }
}
.p-gallery { background: var(--c-mist); padding: clamp(64px, 8vw, 120px) var(--gutter); display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.p-gallery figure { width: 100%; max-width: 1400px; overflow: hidden; background: var(--c-fog); }
.p-gallery figure img, .p-gallery figure video { width: 100%; }
.p-gallery figure.is-portrait { max-width: min(860px, 100%); }
.p-gallery figure.is-embed { aspect-ratio: 16 / 9; background: var(--c-ink); }
.p-gallery figure.is-embed iframe { width: 100%; height: 100%; border: 0; }
.p-gallery__note { width: 100%; max-width: 1400px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--c-line); color: var(--c-slate); }
.p-next { display: block; position: relative; background: var(--c-surface); padding: clamp(80px, 10vw, 160px) var(--gutter); overflow: hidden; }
.p-next__label { display: flex; justify-content: space-between; margin-bottom: 32px; color: var(--c-slate); }
.p-next__title { font-size: clamp(3rem, 11vw, 12rem); position: relative; z-index: 2; transition: color 0.6s; overflow-wrap: anywhere; min-width: 0; }
.p-next__media {
  position: relative;
  margin-top: -0.35em;
  margin-left: auto;
  width: min(560px, 60vw);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  clip-path: inset(10% 10% 10% 10%);
  transition: clip-path 1s var(--ease-out);
}
.p-next__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease-out); }
.p-next:hover .p-next__media { clip-path: inset(0 0 0 0); }
.p-next:hover .p-next__media img { transform: scale(1); }
.p-next:hover .p-next__title { color: var(--c-slate); }

/* ---------- Contact page ---------- */
.c-page { min-height: 100vh; padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) var(--gutter) clamp(80px, 10vw, 140px); background: var(--c-mist); }
.c-page__title { font-size: clamp(3rem, 9vw, 10rem); margin-bottom: clamp(48px, 7vw, 100px); }
.c-page__title .brush { color: var(--c-gold); font-size: 0.8em; }
.c-grid { row-gap: 56px; }
.c-form { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 36px; }
.c-aside { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 32px; }
.c-aside dt { color: var(--c-slate); margin-bottom: 6px; }
.c-aside dd { font-size: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { color: var(--c-slate); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  padding: 8px 0 14px;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-slate); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a4473d; }
.phone { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 16px; align-items: end; }
.phone select {
  max-width: 13rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  text-overflow: ellipsis;
}
.phone input { min-width: 0; }
@media (max-width: 420px) { .phone { grid-template-columns: minmax(0, 1fr); } .phone select { max-width: none; } }
.field__error { color: #a4473d; font-family: var(--f-mono); font-size: 12px; min-height: 1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  padding: 10px 18px; border: 1px solid var(--c-line); border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--c-ink); cursor: pointer; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chips label:hover { border-color: var(--c-slate); }
.chips input:checked + label { background: var(--c-slate); color: var(--c-white); border-color: var(--c-slate); }
.chips input:focus-visible + label { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.c-form .pill { align-self: flex-start; }
.c-form .pill[disabled] { opacity: 0.5; pointer-events: none; }
.form-status { font-family: var(--f-mono); font-size: 13px; color: var(--c-slate); min-height: 1.4em; }
.form-status a { color: var(--c-ink); border-bottom: 1px solid var(--c-gold); }
.form-status--error { color: #a4473d; }
.c-thanks {
  grid-column: 1 / span 8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--c-surface);
  overflow: hidden;
}
.c-thanks[hidden], .p-gallery[hidden] { display: none; }
.c-thanks:focus { outline: none; }
.c-thanks__cn { position: absolute; right: clamp(16px, 3vw, 44px); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; white-space: nowrap; font-size: clamp(5rem, 9vw, 8.5rem); color: var(--c-gold); pointer-events: none; z-index: 0; }
.c-thanks > :not(.c-thanks__cn) { position: relative; z-index: 1; }
.c-thanks__title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; max-width: 12ch; }
.c-thanks .lede, .c-thanks__note { max-width: 34ch; }
.c-thanks__note { color: var(--c-ink-soft); }
.c-thanks__note a { color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.c-thanks__note a:hover { border-color: var(--c-gold); }
@media (max-width: 860px) {
  .c-form, .c-aside, .c-thanks { grid-column: 1 / -1; }
  .c-thanks__cn { top: 20px; transform: none; font-size: 4rem; opacity: 0.35; }
}

/* ---------- Privacy ---------- */
.legal__grid { row-gap: 32px; }
.legal__intro { grid-column: 1 / span 7; }
.legal__updated { grid-column: 9 / -1; align-self: end; }
.legal__body { grid-column: 1 / -1; border-top: 1px solid var(--c-line); margin-top: 24px; }
.legal__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}
.legal__item > .label { grid-column: 1 / span 1; color: var(--c-gold); padding-top: 6px; }
.legal__item > div { grid-column: 4 / span 7; }
.legal__item h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 10px; }
.legal__item p { color: var(--c-ink-soft); max-width: 62ch; }
.legal__item a { color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.legal__item a:hover { border-color: var(--c-gold); }
@media (max-width: 760px) {
  .legal__intro, .legal__updated { grid-column: 1 / -1; }
  .legal__item > .label { grid-column: 1 / span 2; }
  .legal__item > div { grid-column: 3 / -1; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter); background: var(--c-mist); }
.nf__cn { font-size: clamp(8rem, 30vw, 22rem); color: var(--c-gold); line-height: 0.9; }
.nf h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.04em; margin: 16px 0 12px; }
.nf p { color: var(--c-ink-soft); margin-bottom: 32px; }

/* ---------- Reveal defaults (JS adds .is-ready to animate) ---------- */
.js [data-fade] { opacity: 0; transform: translateY(24px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .koi--front { display: none; }
  .js [data-fade] { opacity: 1; transform: none; }
}

@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
