/* ==========================================================================
   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;
  /* Cobalt sampled from the hero porcelain pattern */
  --c-cobalt: #2a4ba8;
  --c-line: rgba(36, 48, 58, 0.14);
  --c-line-light: rgba(255, 255, 255, 0.22);

  --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);
}

/* ---------- 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); }

/* 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; }

.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;
}

.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 curtain */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--c-slate);
  pointer-events: none;
  transform: translateY(100%);
}
.js .curtain { transform: none; }
.js .curtain .curtain__cn { opacity: 1; }
.curtain__cn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--c-gold); font-size: clamp(4rem, 10vw, 7rem); opacity: 0; }

/* ---------- 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; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 260vh; background: var(--c-mist); }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__media {
  --t: 22%; --r: 37%; --b: 12%; --l: 37%; --rad: 40vw;
  position: absolute;
  inset: 0;
  clip-path: inset(var(--t) var(--r) var(--b) var(--l) round var(--rad) var(--rad) 0 0);
  will-change: clip-path;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36, 48, 58, 0.15) 0%, rgba(36, 48, 58, 0.45) 45%, rgba(36, 48, 58, 0.82) 100%);
  opacity: var(--shade, 0);
}
.hero__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  pointer-events: none;
  font-size: clamp(4rem, 13.6vw, 17rem);
  color: var(--c-ink);
}
.hero__word { display: block; will-change: transform; }
.hero__word .char { will-change: transform; }
.hero__cn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  font-size: clamp(5rem, 11vw, 12rem);
  color: var(--c-cobalt);
  pointer-events: none;
  will-change: transform;
  text-shadow: 0 0 24px var(--c-white), 0 0 8px var(--c-white);
}
.hero__foot {
  position: absolute;
  inset: auto var(--gutter) 28px var(--gutter);
  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; }
.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; left: 0; right: 0; top: -50%; height: 50%; background: var(--c-ink);
  animation: drip 2.2s var(--ease-in-out) infinite;
}
@keyframes drip { to { top: 100%; } }
.hero__statement {
  position: absolute;
  inset: auto var(--gutter) clamp(72px, 12vh, 140px) var(--gutter);
  color: var(--c-white);
  font-size: clamp(2rem, 5.4vw, 5.6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 14ch;
}
.hero__statement .label { display: block; margin-bottom: 20px; color: var(--c-white); opacity: 0.8; letter-spacing: 0.02em; }
@media (max-width: 760px) {
  .hero__media { --t: 24%; --r: 20%; --b: 20%; --l: 20%; }
  .hero__title { flex-direction: column; justify-content: center; gap: 30vh; font-size: 21vw; }
  .hero__foot > :nth-child(1) { grid-column: 1 / span 6; }
  .hero__foot > :nth-child(2) { display: none; }
  .hero__foot > :nth-child(3) { grid-column: 7 / -1; }
}

/* ---------- 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__cta { grid-column: 9 / -1; 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; }
}

/* 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); }
.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);
  mix-blend-mode: multiply;
  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); }
.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-white); }
.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-white);
  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; }
}

/* ---------- 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;
}
.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) {
  .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; }
.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-white); 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-white);
  overflow: hidden;
}
.c-thanks[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; }
  .hero { height: auto; }
  .hero__sticky { position: relative; }
  .hero__media { --t: 0%; --r: 0%; --b: 0%; --l: 0%; --rad: 0px; --shade: 1; }
  .hero__media img { transform: none; }
  .hero__title { color: var(--c-white); }
  .hero__foot { color: var(--c-white); }
  .hero__statement { display: none; }
  .js [data-fade] { opacity: 1; transform: none; }
}
