/* ==================================================================
   YIFAN — design system
   Proportions follow a thirds grid with 12px margins; type pairs a
   Caslon text face with an expanded grotesk for labels and wordmark.
   ================================================================== */
:root {
  --bg: #f6f4ef;
  --paper: #fbfaf7;
  --ink: #0f0f0f;
  --text: #2b2b2b;
  --muted: #7a756e;
  --line: rgba(15, 15, 15, 0.14);
  --light: #fffdfa;

  --caslon: "Libre Caslon Text", "Big Caslon", "Palatino Linotype", Georgia, "Noto Serif SC", "Songti SC", serif;
  --wide: "Archivo", "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", sans-serif;

  --m: 12px;
  --header-h: 56px;

  --t-label: clamp(13px, 1.1vw, 21px);
  --t-lead: clamp(18px, 1.65vw, 31px);
  --t-body: clamp(15px, 1.1vw, 20px);
  --t-nav: clamp(14px, 1.06vw, 19px);
  --t-tiny: clamp(10px, 0.72vw, 13px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--caslon);
  font-size: var(--t-body);
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
figure, h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: var(--m); top: -100px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--light); }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------
   Type
   ------------------------------------------------------------------ */
.wide {
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.label { font-size: var(--t-label); }
.tiny { font-size: var(--t-tiny); font-weight: 700; letter-spacing: 0.01em; }
.lead {
  font-size: var(--t-lead);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text);
}
.lead + .lead { margin-top: 1.1em; }
.body p + p { margin-top: 1em; }
.muted { color: var(--muted); }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@media (hover: hover) {
  a.u:hover, .hover-u:hover { text-decoration-color: transparent; }
  a.plain:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
}

/* ------------------------------------------------------------------
   Header (with Projects panel)
   ------------------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--m);
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 44px); font-size: var(--t-nav); }
.nav--right { justify-self: end; }
.nav a { display: inline-block; padding: 14px 0; color: var(--muted); transition: color 0.3s var(--ease); }
.nav a[aria-current="page"], .nav a:hover, .nav a:focus-visible { color: var(--ink); }
.wordmark {
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(19px, 1.65vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  padding: 12px 0;
  color: inherit;
}

/* Overlay header on pages that open with a full-bleed image */
.has-hero .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  color: var(--light);
  border-bottom-color: rgba(255, 253, 250, 0.3);
}
.has-hero .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  z-index: -1;
  background: linear-gradient(rgba(10, 10, 10, 0.34), rgba(10, 10, 10, 0));
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.has-hero .nav a { color: rgba(255, 253, 250, 0.82); }
.has-hero .nav a[aria-current="page"], .has-hero .nav a:hover { color: var(--light); }

.nav-item { display: flex; }
.mega { display: none; }

@media (hover: hover) and (min-width: 900px) {
  .mega {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: block;
    visibility: hidden;
    opacity: 0;
    padding: 14px var(--m) 30px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-item:hover .mega,
  .nav-item:focus-within .mega {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s var(--ease), visibility 0s;
  }
  .site-header.mega-off .mega { visibility: hidden; opacity: 0; }
  /* Header turns solid while the panel is open */
  .has-hero .site-header:has(.nav-item:hover:not(.x)),
  .has-hero .site-header:has(.nav-item:focus-within) {
    background: var(--bg);
    color: var(--ink);
    border-bottom-color: var(--line);
  }
  .has-hero .site-header:has(.nav-item:hover)::before,
  .has-hero .site-header:has(.nav-item:focus-within)::before { opacity: 0; }
  .has-hero .site-header:has(.nav-item:hover) .nav a,
  .has-hero .site-header:has(.nav-item:focus-within) .nav a { color: var(--muted); }
  .has-hero .site-header:has(.nav-item:hover) .nav a[aria-current="page"],
  .has-hero .site-header:has(.nav-item:focus-within) .nav a[aria-current="page"] { color: var(--ink); }
}

/* ------------------------------------------------------------------
   Category columns (Projects panel + Projects page)
   ------------------------------------------------------------------ */
.cats {
  display: grid;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  gap: 15px;
  width: min(100%, calc(var(--n, 2) * 20vw + (var(--n, 2) - 1) * 15px));
  margin: 0 auto;
  color: var(--ink);
}
.cats--page { width: min(100%, calc(var(--n, 2) * 31vw + (var(--n, 2) - 1) * 15px)); }
.cat { display: grid; justify-items: center; text-align: center; align-content: start; }
.cat .media { width: 100%; aspect-ratio: 1.1; }
.cats--page .cat .media { aspect-ratio: 4 / 5; }
.cat h3 { margin: 26px 0 16px; font-size: var(--t-tiny); }
.cats--page .cat h3 { font-size: var(--t-label); margin: 30px 0 20px; }
.cat li a { display: inline-block; padding: 4px 0; font-size: var(--t-nav); }
.cats--page .cat li a { font-size: var(--t-lead); padding: 5px 0; }
.cat .count { margin-top: 12px; font-size: var(--t-nav); color: var(--muted); }

/* ------------------------------------------------------------------
   Media
   ------------------------------------------------------------------ */
.media { display: block; position: relative; overflow: hidden; background: #e7e2d9; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom .media { height: 100%; }
.project-link .media img { transition: transform 1.4s var(--ease); }
@media (hover: hover) { .project-link:hover .media img { transform: scale(1.02); } }

.is-pending { opacity: 0; transform: translateY(16px); }
.is-revealed { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }

/* ------------------------------------------------------------------
   Thirds grid
   ------------------------------------------------------------------ */
.thirds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--m);
  padding: 0 var(--m);
}
.col-1 { grid-column: 1 / 2; }
.col-2 { grid-column: 2 / 3; }
.col-3 { grid-column: 3 / 4; }
.col-23 { grid-column: 2 / 4; }
.col-all { grid-column: 1 / -1; }

.space-xl { margin-top: clamp(96px, 12vw, 220px); }
.space-l { margin-top: clamp(72px, 9vw, 170px); }
.space-m { margin-top: clamp(48px, 6vw, 110px); }

/* ------------------------------------------------------------------
   Home
   ------------------------------------------------------------------ */
.home-cols {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 15px;
  padding: 12px var(--m) 0;
}
.home-cols a { display: grid; justify-items: center; text-align: center; align-content: start; }
.home-cols .media { width: 100%; aspect-ratio: 4 / 5; }
.home-cols h2 { margin: 22px 0 10px; font-size: var(--t-tiny); }
.home-cols .name { font-size: var(--t-nav); color: var(--ink); }

.statement {
  padding: 0 var(--m);
  text-align: center;
  font-size: clamp(27px, 3.3vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.statement span { display: block; }

.stanza { display: grid; gap: 0.1em; margin: 1.3em 0; }

.feature-pair { display: grid; grid-template-columns: 1fr 1fr; }
.feature-pair .media { height: min(100svh, 66vw); }
.feature-caption { padding-top: 14px; }

.contact-band { text-align: center; padding: 0 var(--m); display: grid; gap: 22px; justify-items: center; }
.contact-band .big { font-size: clamp(26px, 3.3vw, 62px); letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }

/* ------------------------------------------------------------------
   Project page
   ------------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: 1fr 1fr; height: 100svh; min-height: 520px; }
.hero .zoom, .hero .media { height: 100%; }

.project-head { padding-top: clamp(40px, 5.8vw, 84px); row-gap: 28px; }
.project-head h1 { font-size: clamp(22px, 2.2vw, 42px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--m); row-gap: 14px; align-content: start; }
.facts div { display: grid; gap: 5px; }
.facts dt { font-family: var(--wide); font-stretch: 125%; font-weight: 700; font-size: var(--t-tiny); text-transform: uppercase; letter-spacing: 0.01em; color: var(--muted); }
.facts dd { font-size: var(--t-body); color: var(--ink); }

.overview { margin-top: clamp(56px, 6.7vw, 120px); row-gap: clamp(40px, 6.7vw, 97px); }

/* Story blocks */
.b-center { padding: 0 var(--m); margin-top: clamp(100px, 12vw, 220px); }
.b-center .zoom { width: 64.6vw; margin: 0 auto; }
.b-center .media { aspect-ratio: 3 / 4; }

.b-note { margin: clamp(100px, 13vw, 240px) 0 clamp(90px, 9.6vw, 180px); }
.b-note p { grid-column: 2 / 3; }

.b-pair, .b-half, .b-split, .b-triple { display: grid; }
.b-pair { grid-template-columns: 1fr 1fr; }
.b-pair .media { height: min(100svh, 66vw); }

.b-half { grid-template-columns: 1fr 1fr; }
.b-half .big .media { aspect-ratio: 713 / 900; }
.b-half .small { width: 50.6%; margin: clamp(60px, 10.9vw, 200px) auto 0; }
.b-half .small .media { aspect-ratio: 365 / 587; }
.b-half--right .big { order: 2; }
.b-half--right .small { order: 1; }

.b-halfnote { display: grid; grid-template-columns: 1fr 1fr; }
.b-halfnote .big .media { aspect-ratio: 713 / 849; }
.b-halfnote .note { align-self: end; padding: 0 var(--m) clamp(40px, 5.6vw, 100px) 4.4vw; max-width: calc(33.33vw + 4.4vw); }
.b-halfnote--right .big { order: 2; }
.b-halfnote--right .note { order: 1; padding-left: var(--m); justify-self: end; padding-right: 4.4vw; }

.b-split { grid-template-columns: 38fr 62fr; align-items: start; }
.b-split .small { margin-top: 32vw; }
.b-split .small .media { aspect-ratio: 542 / 972; }
.b-split .large .media { aspect-ratio: 884 / 1428; }

.b-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.b-triple .media { aspect-ratio: 3 / 4; }
.b-triple-note { margin-top: 18px; }

.b-strategies { margin-top: clamp(100px, 12vw, 220px); row-gap: clamp(32px, 4vw, 64px); }
.b-strategies ol { display: grid; gap: 1.1em; counter-reset: s; }
.b-strategies li { display: grid; grid-template-columns: 2.2em 1fr; }
.b-strategies li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 0.62em; padding-top: 0.45em; color: var(--ink); }

.project-end { margin-top: clamp(110px, 14vw, 260px); padding-top: 18px; border-top: 1px solid var(--line); row-gap: 28px; }
.project-end a.lead { color: var(--ink); }

/* ------------------------------------------------------------------
   Projects page index
   ------------------------------------------------------------------ */
.page-title { padding: clamp(40px, 5vw, 80px) var(--m) 0; text-align: center; }
.page-title h1 { font-size: var(--t-label); }
.page-intro { text-align: center; max-width: 30em; margin: 22px auto 0; padding: 0 var(--m); }

.index-row { margin-top: clamp(90px, 11vw, 200px); }
.index-row .feature-pair .media { height: min(88svh, 62vw); }
.index-row .thirds { padding-top: 16px; row-gap: 12px; }
.index-row h2 { font-size: var(--t-label); }

/* ------------------------------------------------------------------
   About
   ------------------------------------------------------------------ */
.about-head { padding-top: clamp(40px, 5.8vw, 84px); row-gap: 28px; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--m); row-gap: 14px; }
.work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--m); row-gap: 34px; }
.work-list h3 { font-weight: 400; font-size: var(--t-lead); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 8px; }

/* ------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------ */
.channels { display: grid; border-top: 1px solid var(--line); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a, .channels .row { display: grid; grid-template-columns: minmax(8em, 1fr) 2fr; gap: var(--m); padding: 14px 0; align-items: baseline; font-size: var(--t-lead); letter-spacing: -0.03em; color: var(--ink); }
.channels .tiny { color: var(--muted); }
@media (hover: hover) { .channels a:hover span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; } }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--wide); font-stretch: 125%; font-weight: 700; font-size: var(--t-tiny); text-transform: uppercase; letter-spacing: 0.01em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.28);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: max(16px, var(--t-body));
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: #9b2c1f; }
.field .error { font-size: 14px; color: #9b2c1f; }
.field .error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  justify-self: start;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--light);
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 700;
  font-size: var(--t-tiny);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
@media (hover: hover) { .btn:hover { background: transparent; color: var(--ink); } }
.form-status { font-size: var(--t-body); color: var(--ink); }
.form-status:empty { display: none; }
.form-status a { text-decoration: underline; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
  margin-top: clamp(110px, 14vw, 260px);
  padding: 18px var(--m) 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--m);
  row-gap: 36px;
  font-size: var(--t-nav);
  color: var(--ink);
}
.site-footer .wordmark { padding: 0; font-size: clamp(19px, 1.65vw, 30px); }
.site-footer ul { display: grid; gap: 4px; }
.site-footer .copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------
   404
   ------------------------------------------------------------------ */
.not-found { padding-top: clamp(80px, 12vw, 200px); text-align: center; display: grid; gap: 28px; justify-items: center; padding-inline: var(--m); }

/* ------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------ */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.lightbox::backdrop { background: var(--bg); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px var(--m); font-size: var(--t-nav); }
.lb-bottom { min-height: 64px; }
.lb-stage { display: grid; place-items: center; padding: 0 var(--m); min-height: 0; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 128px); width: auto; height: auto; object-fit: contain; }
.lb-caption { color: var(--text); max-width: 40em; }
.lb-count { color: var(--muted); }
.lb-btn { min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; white-space: nowrap; font-size: var(--t-nav); }
.lb-nav { display: flex; gap: 18px; }

/* ------------------------------------------------------------------
   Tablet
   ------------------------------------------------------------------ */
@media (max-width: 1023px) {
  .facts { grid-column: 2 / 4; }
  .work-list { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   Phone
   ------------------------------------------------------------------ */
@media (max-width: 719px) {
  :root {
    --header-h: 52px;
    --t-label: 15px;
    --t-lead: 18px;
    --t-body: 16px;
    --t-nav: 15px;
    --t-tiny: 11px;
  }
  .thirds > * { grid-column: 1 / -1 !important; }
  .nav { gap: 16px; }

  .home-cols { grid-template-columns: 1fr 1fr; row-gap: 36px; gap: 10px; }
  .home-cols h2 { margin-top: 16px; }

  .statement { font-size: clamp(26px, 7.4vw, 34px); }

  .feature-pair, .b-pair, .b-half, .b-halfnote, .b-split { grid-template-columns: 1fr; }
  .feature-pair .media, .b-pair .media, .index-row .feature-pair .media { height: auto; aspect-ratio: 3 / 4; }
  .feature-pair > :last-child, .index-row .feature-pair > :last-child { display: none; }

  .hero { grid-template-columns: 1fr; height: 100svh; }
  .hero:not(.hero--single) > :last-child { display: none; }

  .b-center .zoom { width: 62%; }
  .b-note { margin: 72px 0; }

  .b-pair > :last-child { width: 62%; margin: 60px auto 0; }
  .b-half .big, .b-half--right .big { order: 0; }
  .b-half .small, .b-half--right .small { order: 1; width: 62%; margin-top: 60px; }
  .b-half .big .media { aspect-ratio: 3 / 4; }

  .b-halfnote .big, .b-halfnote--right .big { order: 0; }
  .b-halfnote .note, .b-halfnote--right .note { order: 1; padding: 22px var(--m) 0; max-width: none; justify-self: stretch; }

  .b-split .large { order: 0; }
  .b-split .small { order: 1; margin: 60px auto 0; width: 62%; }
  .b-split .large .media { aspect-ratio: 3 / 4; }

  .b-triple { gap: 3px; }
  .b-triple .media { aspect-ratio: auto; height: 62svh; max-height: 540px; }
  .b-triple .media img { object-position: 42% 62%; }

  .facts { grid-template-columns: 1fr 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .work-list { grid-template-columns: 1fr; }
  .cats, .cats--page { width: 100%; }
  .cats--page { grid-template-columns: 1fr; row-gap: 64px; }
  .cats--page .cat .media { width: 78%; }

  .channels a, .channels .row { grid-template-columns: 1fr; gap: 4px; }

  .site-footer { grid-template-columns: 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .is-pending { opacity: 1; transform: none; }
}

.overview--tight { row-gap: 32px; }

/* ------------------------------------------------------------------
   Language switch, mobile menu
   ------------------------------------------------------------------ */
.nav .lang { font-family: var(--caslon); }
.site-footer .lang { color: var(--muted); }
.menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 899px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav--left, .nav--right { display: none; }
  .wordmark { justify-self: start; font-size: clamp(16px, 4.4vw, 22px); }
  .menu-btn {
    display: inline-block;
    min-height: 44px;
    padding: 0 0 0 16px;
    border: 0;
    background: none;
    font-family: var(--caslon);
    font-size: var(--t-nav);
    color: inherit;
    cursor: pointer;
  }
  .mobile-menu:not([hidden]) {
    display: grid;
    align-content: space-between;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 40;
    padding: 28px var(--m) 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .mobile-menu nav { display: grid; gap: 4px; }
  .mobile-menu nav a { font-size: clamp(30px, 9vw, 44px); letter-spacing: -0.03em; color: var(--ink); padding: 4px 0; }
  .mobile-menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
  .mobile-menu__foot { font-size: var(--t-nav); }
  .menu-open .site-header { background: var(--bg); color: var(--ink); border-bottom-color: var(--line); }
  .menu-open .site-header::before { opacity: 0; }
  .menu-open { overflow: hidden; }
}

/* ------------------------------------------------------------------
   Full-bleed landscape, single hero, video
   ------------------------------------------------------------------ */
.hero--single { grid-template-columns: 1fr; }
.b-wide { display: block; }
figure.b-wide .media, span.b-wide .media { aspect-ratio: 16 / 9; max-height: 100svh; }
.b-video { margin-left: 0; margin-right: 0; }
.b-video video { display: block; width: 100%; height: auto; background: #111; }
.b-video figcaption { padding-top: 14px; }

@media (max-width: 719px) {
  figure.b-wide .media, span.b-wide .media { aspect-ratio: 4 / 3; }
  .hero--single { height: auto; min-height: 0; }
  .hero--single .media { height: auto; aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------------------
   Services
   ------------------------------------------------------------------ */
.svc-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--m); row-gap: 18px; font-size: var(--t-lead); letter-spacing: -0.03em; color: var(--ink); }
.svc-mini li { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.svc-mini .tiny { color: var(--muted); }
.more { margin-top: 1.4em; }
.svc-list { display: grid; }
.svc-row { padding-top: 18px; padding-bottom: clamp(48px, 5vw, 90px); border-top: 1px solid var(--line); margin: 0 var(--m); padding-left: 0; padding-right: 0; row-gap: 18px; }
.svc-num { display: block; margin-bottom: 10px; color: var(--muted); }
@media (max-width: 719px) {
  .svc-mini { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------
   Chinese typography
   ------------------------------------------------------------------ */
html:lang(zh) body { letter-spacing: 0.02em; line-height: 1.7; }
html:lang(zh) .lead, html:lang(zh) .channels a, html:lang(zh) .channels .row,
html:lang(zh) .svc-mini, html:lang(zh) .work-list h3 { letter-spacing: 0.02em; line-height: 1.75; }
html:lang(zh) .statement, html:lang(zh) .contact-band .big { letter-spacing: 0.04em; line-height: 1.45; }
html:lang(zh) .wide { letter-spacing: 0.08em; font-weight: 700; }
html:lang(zh) .wordmark { letter-spacing: -0.01em; }
html:lang(zh) .mobile-menu nav a { letter-spacing: 0.04em; }
