/* Zhuyue AI — "Editorial Calm, lit."  Paper, ink, one serif voice, bamboo green, one night moment. */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #F5F2EB;
  --paper-2: #ECE8DF;
  --ink: #141412;
  --ink-2: #605C55;
  --hair: #D6D1C6;
  --leaf: #1F6B4A;
  --leaf-wash: rgba(31, 107, 74, .14);
  --night: #0B0F0D;
  --night-2: #121A16;
  --white: #F4F7F5;
  --mist: #A4B1AA;
  --glow: #7FD1A8;
  --hair-n: rgba(244, 247, 245, .14);
  --glow-rad: rgba(52, 124, 90, .42), rgba(31, 80, 58, .18) 45%, transparent 75%;

  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --gap: 24px;
  --sec: clamp(72px, 9vh, 120px);
  --nav-h: 72px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.45, 0, .55, 1);
}
html[lang="zh-CN"] {
  --font-display: "Instrument Serif", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--paper); }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="zh-CN"] body { line-height: 1.75; letter-spacing: .01em; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
h1, h2, .statement, h3 { text-wrap: balance; }
.subline, .desc, .closing-sub { text-wrap: pretty; }
.nb { white-space: nowrap; }
em { font-style: italic; }
html[lang="zh-CN"] em { font-style: normal; font-weight: 600; }

:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; }
.closing :focus-visible,
.site-footer :focus-visible,
html[data-on="dark"] .site-header :focus-visible { outline-color: var(--glow); }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; top: 12px; left: var(--gutter); z-index: 100;
  padding: 10px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; transform: translateY(-200%);
}
.skip:focus { transform: none; }

main { transition: opacity .16s linear; }
main.is-switching { opacity: 0; }

/* ---------- 3. Shared primitives ---------- */
.mark { fill: currentColor; }

/* 1 px underline that draws from the left and retracts to the right */
.u { position: relative; }
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-soft);
}
.u:hover::after, .u:focus-visible::after,
.tlink:hover .u::after, .tlink:focus-visible .u::after { transform: scaleX(1); transform-origin: left; }

.tlink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.arrow { display: inline-block; transition: transform .35s var(--ease-soft); }
.tlink:hover .arrow-r, .tlink:focus-visible .arrow-r { transform: translateX(3px); }
.tlink:hover .arrow-u, .tlink:focus-visible .arrow-u { transform: translateY(-3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease-soft), background-color .35s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn .arrow { width: 14px; height: 14px; }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateY(3px); }
.btn-paper { background: var(--white); color: var(--night); }

.link { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .35s; }
.link:hover, .link:focus-visible { color: var(--ink); }

.chop {
  display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: 500; line-height: 1;
  letter-spacing: .12em; text-transform: uppercase; color: var(--leaf);
  border: 1px solid var(--leaf); border-radius: 2px; padding: 3px 7px 3px 8px;
  transform: rotate(-4deg); white-space: nowrap;
}
html[lang="zh-CN"] .chop { letter-spacing: .1em; text-transform: none; padding: 3px 5px 3px 7px; }

/* folio: "01 — Mission" + hairline running to the container edge */
.folio {
  display: flex; align-items: center; gap: 24px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.folio::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.folio-n { color: var(--leaf); }
html[lang="zh-CN"] .folio,
html[lang="zh-CN"] .hero-foot,
html[lang="zh-CN"] .idx-n,
html[lang="zh-CN"] .row-n { letter-spacing: .15em; text-transform: none; }

/* language toggle: segmented pill with a sliding chip */
.lang {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  height: 32px; border: 1px solid var(--hair); border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1;
  transition: border-color .45s;
}
.lang::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: calc(50% - 2px); height: calc(100% - 4px);
  border-radius: 999px; background: var(--ink);
  transition: transform .4s var(--ease-soft), background-color .45s;
}
.lang[data-active="zh"]::before { transform: translateX(100%); }
.lang button {
  position: relative; z-index: 1; padding: 0 12px; border-radius: 999px; color: var(--ink-2);
  transition: color .35s var(--ease-soft);
}
.lang button[lang="zh-CN"] { font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--paper); }
.lang button:focus-visible { outline-offset: 2px; }

/* night variants of the toggle (footer, and the header while over the night band) */
.site-footer .lang, html[data-on="dark"] .site-header .lang { border-color: var(--hair-n); }
.site-footer .lang::before, html[data-on="dark"] .site-header .lang::before { background: var(--white); }
.site-footer .lang button, html[data-on="dark"] .site-header .lang button { color: var(--mist); }
.site-footer .lang button:hover, html[data-on="dark"] .site-header .lang button:hover { color: var(--white); }
.site-footer .lang button[aria-pressed="true"], html[data-on="dark"] .site-header .lang button[aria-pressed="true"] { color: var(--night); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h);
  background: linear-gradient(var(--paper) 55%, rgba(245, 242, 235, 0));
  color: var(--ink);
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-soft);
}
/* fades away while scrolling down, returns on scroll up; keyboard focus always brings it back */
.site-header.is-hidden { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.site-header.is-hidden:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--night) 55%, rgba(11, 15, 13, 0));
  opacity: 0; transition: opacity .45s;
}
html[data-on="dark"] .site-header::before { opacity: 1; }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--hair); opacity: 0; transition: opacity .4s, background-color .45s;
}
.site-header.is-scrolled::after { opacity: 1; }
html[data-on="dark"] .site-header::after { background: var(--hair-n); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .45s; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.header-right { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; align-items: center; gap: 32px; }
.nav a { display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .35s var(--ease-soft); }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
html[data-on="dark"] .brand { color: var(--white); }
html[data-on="dark"] .nav a { color: var(--mist); }
html[data-on="dark"] .nav a:hover, html[data-on="dark"] .nav a:focus-visible { color: var(--white); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; display: grid; min-height: 100svh;
  padding-top: var(--nav-h); padding-bottom: 32px;
  overflow-x: clip;
}
.hero-inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto;
  column-gap: var(--gap);
}
.hero-copy { grid-column: 1 / span 7; grid-row: 1; align-self: center; padding-top: 20px; position: relative; z-index: 1; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 1rem + 5.6vw, 6.4rem); line-height: .98; letter-spacing: -.015em;
  max-width: 11ch;
}
html[lang="zh-CN"] h1 { font-size: clamp(2.5rem, 1rem + 5.2vw, 5.8rem); line-height: 1.12; letter-spacing: .01em; max-width: none; }
h1 em { font-style: italic; }
html[lang="zh-CN"] h1 em { font-style: normal; font-weight: 600; }

/* word slots (motion #3) */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; margin-bottom: -.16em; padding-inline: .06em; margin-inline: -.06em; }
.wi { display: inline-block; padding-bottom: .16em; transform: translateY(110%); will-change: transform; }
.is-ready .wi { animation: rise .9s var(--ease-out) calc(.32s + var(--i) * .06s) both; }
.is-settled .wi { animation: none; transform: none; will-change: auto; }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }

.subline { margin-top: 24px; font-size: clamp(17px, 10px + 1.15vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
html[lang="zh-CN"] .subline { line-height: 1.7; letter-spacing: .01em; max-width: 28em; }

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }

.index { margin-top: 40px; max-width: 420px; border-top: 1px solid var(--hair); }
.index li { border-bottom: 1px solid var(--hair); }
.index a {
  position: relative; z-index: 0; display: grid; grid-template-columns: 32px 1fr auto; align-items: center;
  height: 40px; margin-inline: -12px; padding-inline: 12px;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.index a::after { content: ""; position: absolute; inset: 0; background: var(--paper-2); opacity: 0; transition: opacity .35s; z-index: -1; }
.index a:hover::after, .index a:focus-visible::after { opacity: 1; }
.idx-n { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.idx-name { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.idx-name .chop { font-size: 10px; padding: 2px 5px 2px 6px; }
.idx-tag { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

.hero-mark {
  grid-column: 7 / -1; grid-row: 1; align-self: center; justify-self: end;
  width: min(100%, 50vh + 160px); max-width: 600px; aspect-ratio: 1;
  position: relative; color: var(--ink); will-change: transform, opacity;
}
.hero-glow {
  position: absolute; left: -7.5%; top: 4.5%; width: 115%; height: 115%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--leaf-wash), transparent 70%);
  filter: blur(28px); pointer-events: none; will-change: transform;
}
.mark-wash, .mark-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark-wash { opacity: 0; filter: blur(16px); pointer-events: none; }
.js .mark-ink { animation: draw .68s var(--ease-out) .04s backwards; }
.is-ready .mark-wash { animation: wash 1.3s var(--ease-out) both; }
@keyframes draw { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wash { 0% { opacity: 0; transform: scale(1.04); } 35% { opacity: .28; } 100% { opacity: 0; transform: scale(1); } }

.hero-foot {
  grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cue { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; } /* reserves the cue line's height so reduced motion keeps the same layout */
.cue-line { display: block; width: 1px; height: 40px; background: var(--ink-2); transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
.hero.is-off .cue-line { animation-play-state: paused; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* load fade-ups (motion #4) */
.js .fade { opacity: 0; transform: translateY(14px); }
.is-ready .fade { animation: fade .9s var(--ease-out) var(--d, .75s) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 6. Sections on paper ---------- */
/* Sections carry most of their rhythm on top; a short bottom pad evens out the folio-to-folio gaps. */
.section { padding: var(--sec) 0 calc(var(--sec) * .4); }
#team { padding-bottom: calc(var(--sec) + 24px); }

.statement {
  margin-top: 48px; font-family: var(--font-display);
  font-size: clamp(1.9rem, 1rem + 3.1vw, 4.1rem); line-height: 1.16; max-width: 24ch;
}
html[lang="zh-CN"] .statement { font-size: clamp(1.7rem, 1rem + 2.7vw, 3.5rem); line-height: 1.4; letter-spacing: .01em; max-width: 20em; }
.line { display: block; }
.js .line > span { display: inline-block; clip-path: inset(0 100% 0 0); }
.is-in .line > span { animation: wipe 1s var(--ease-out) calc(var(--i) * .14s) both; }
.statement.settled .line > span { animation: none; clip-path: none; }
html[lang="zh-CN"] .line > span { white-space: nowrap; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.h2 {
  margin-top: 40px; font-family: var(--font-display);
  font-size: clamp(2.2rem, 1rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; max-width: 16ch;
}
html[lang="zh-CN"] .h2 { font-size: clamp(1.9rem, 1rem + 3vw, 3.9rem); line-height: 1.25; letter-spacing: .01em; max-width: 14em; }

.edu-mission {
  margin-top: 24px; max-width: 64ch; color: var(--ink-2);
  font-size: clamp(18px, 15px + .4vw, 21px); line-height: 1.65; text-wrap: pretty;
}
html[lang="zh-CN"] .edu-mission { max-width: 42em; line-height: 1.85; }

.rows { position: relative; margin-top: 56px; }
.row {
  position: relative; z-index: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start; padding: 40px 16px; margin-inline: -16px;
}
.row::before, .rows::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px;
  background: var(--ink); opacity: .4; transform: scaleX(0); transform-origin: left;
}
.rows::after { left: 0; right: 0; top: auto; bottom: 0; }
.row::after { content: ""; position: absolute; inset: 0; background: var(--paper-2); opacity: 0; transition: opacity .35s; z-index: -1; }
.row:hover::after { opacity: 1; }
.is-in .row::before { animation: rule 1.1s var(--ease-out) calc(var(--i) * .16s) both; }
.is-in .rows::after { animation: rule 1.1s var(--ease-out) calc(var(--n) * .16s) both; }
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .row > * { opacity: 0; transform: translateY(12px); }
.is-in .row > * { animation: rowin .9s var(--ease-out) calc(var(--i) * .16s + .25s) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.row-n { grid-column: 1; padding-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row-head { grid-column: 2 / span 4; }
.row-name {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-display); font-size: clamp(1.9rem, 1rem + 2.2vw, 3rem); line-height: 1.05; letter-spacing: -.01em;
}
html[lang="zh-CN"] .row-name { line-height: 1.3; letter-spacing: 0; }
.tagline { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.desc { grid-column: 6 / span 5; padding-top: 6px; font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 42ch; }
html[lang="zh-CN"] .desc { line-height: 1.75; letter-spacing: .01em; }
.row-cta { grid-column: 11 / span 2; justify-self: end; text-align: right; padding-top: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.row-cta .tlink { color: var(--leaf); }
.row-cta-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.status { color: var(--ink-2); }
.platforms {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ink-2);
}
.plat-dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-wash);
}

/* ---------- 6a. Ecosystem: three products on one orbit ---------- */
.eco {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: center; margin-top: clamp(56px, 7vw, 112px);
  padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--hair);
}
.eco-copy { grid-column: 1 / span 5; padding-right: 24px; }
.eco-kicker { color: var(--leaf); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
html[lang="zh-CN"] .eco-kicker { letter-spacing: .15em; text-transform: none; }
.eco-title {
  margin-top: 22px; font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.5rem + 2vw, 3.7rem); line-height: 1.08;
}
html[lang="zh-CN"] .eco-title { line-height: 1.3; }
.eco-body { margin-top: 22px; max-width: 40ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
html[lang="zh-CN"] .eco-body { line-height: 1.85; max-width: 26em; }

/* The figure keeps one aspect ratio; nodes and flow labels are placed with --x / --y in its coordinate space. */
.eco-figure { grid-column: 6 / -1; position: relative; width: 100%; max-width: 680px; aspect-ratio: 680 / 560; margin: 0 0 0 auto; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--leaf); }
.eco-ring { fill: none; stroke: var(--hair); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; }
.eco-arc { fill: none; stroke: var(--leaf); stroke-width: 1.4; stroke-linecap: round; }
.eco-hub {
  position: absolute; left: 50%; top: 53.57%; translate: -50% -50%;
  display: grid; justify-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
html[lang="zh-CN"] .eco-hub { letter-spacing: .15em; }
.eco-hub .mark { width: 56px; height: 56px; color: var(--leaf); }
.eco-map > li { position: absolute; left: var(--x); top: var(--y); }
.eco-node { translate: -50% -50%; }
.eco-node a {
  display: grid; justify-items: center; gap: 4px; min-width: 168px; padding: 14px 24px 16px;
  border: 1px solid var(--hair); border-radius: 999px; background: var(--paper);
  text-align: center; white-space: nowrap;
  transition: border-color .35s, background-color .35s;
}
.eco-node a:hover, .eco-node a:focus-visible { border-color: var(--leaf); background: var(--paper-2); }
.eco-role { font-size: 12px; font-weight: 500; color: var(--leaf); }
.eco-name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--ink); }
.eco-flow { max-width: 136px; font-size: 13px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.eco-flow-r { translate: 0 -50%; }
.eco-flow-l { translate: -100% -50%; text-align: right; }
.eco-flow-b { translate: -50% -50%; max-width: 240px; text-align: center; }

/* ---------- 6b. Featured film ---------- */
.film-feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: center; margin-top: clamp(56px, 7vw, 112px);
  padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--hair);
}
.film-copy { grid-column: 1 / span 4; padding-right: 24px; }
.film-kicker {
  display: flex; align-items: center; gap: 14px; color: var(--leaf);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.film-duration { padding-left: 14px; border-left: 1px solid var(--hair); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.film-title {
  margin-top: 22px; font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.5rem + 2vw, 3.7rem); line-height: 1.08;
}
.film-body { margin-top: 22px; max-width: 30ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
html[lang="zh-CN"] .film-body { line-height: 1.8; }
.film-channel { margin-top: 28px; color: var(--leaf); }
.film-media { grid-column: 5 / -1; min-width: 0; }
.film-feature-paper .film-copy, .film-feature-heyue .film-copy { grid-column: 9 / -1; grid-row: 1; padding-right: 0; padding-left: 24px; }
.film-feature-paper .film-media, .film-feature-heyue .film-media { grid-column: 1 / span 8; grid-row: 1; }
.film-frame {
  position: relative; overflow: hidden; background: var(--night);
  border: 1px solid var(--hair); border-radius: 2px;
  box-shadow: 0 18px 40px rgba(20, 20, 18, .1);
}
.film-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film-play { display: none; }
.js .film-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--white);
}
.film-play[hidden] { display: none !important; }
.film-play-icon {
  position: absolute; left: 80%; top: 76%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px;
  border-radius: 50%; background: var(--paper); color: var(--ink);
  font-size: 21px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
  transition: transform .35s var(--ease-soft), background-color .35s;
}
.film-play:hover .film-play-icon, .film-play:focus-visible .film-play-icon { transform: translate(-50%, -50%) scale(1.1); background: var(--white); }
.film-play-label {
  position: absolute; left: 20px; bottom: 20px; padding: 6px 10px;
  background: rgba(11, 15, 13, .72); border-radius: 2px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}

/* Podcast entry between the hero and mission. */
.podcast-section { padding: clamp(48px, 6vw, 88px) 0 0; }
.podcast-section .podcast-feature { margin-top: 0; }
.podcast-feature {
  display: grid; grid-template-columns: 184px minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 112px); padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--hair);
}
.podcast-cover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--hair); border-radius: 14px; }
.podcast-kicker { color: var(--leaf); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
html[lang="zh-CN"] .podcast-kicker { letter-spacing: .1em; }
.podcast-title { margin-top: 16px; font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.3vw, 3rem); line-height: 1.14; }
.podcast-body { margin-top: 14px; max-width: 52ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.podcast-links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 24px; color: var(--leaf); }

/* ---------- 6c. Team ---------- */
.team-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; margin-top: 40px;
}
.team-head .h2 { grid-column: 1 / span 6; margin-top: 0; }
.team-body {
  grid-column: 8 / span 5; padding-bottom: .4em;
  font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; text-wrap: pretty;
}
html[lang="zh-CN"] .team-body { line-height: 1.85; letter-spacing: .01em; max-width: 26em; }
.team-orgs { margin-top: 64px; }
.team-label {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
html[lang="zh-CN"] .team-label { letter-spacing: .15em; text-transform: none; }
.orgs {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px;
}
.orgs::before, .orgs::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); opacity: .4;
  transform: scaleX(0); transform-origin: left;
}
.orgs::before { top: 0; }
.orgs::after { bottom: 0; }
.is-in .orgs::before { animation: rule 1.1s var(--ease-out) .2s both; }
.is-in .orgs::after { animation: rule 1.1s var(--ease-out) .45s both; }
.orgs li {
  position: relative; padding: 36px 0 32px 24px;
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.75rem, 1rem + 1.7vw, 2.75rem); line-height: 1; letter-spacing: -.01em; color: var(--ink);
}
.orgs li + li { border-left: 1px solid var(--hair); }
.orgs li:first-child { padding-left: 0; }
.js .orgs li { opacity: 0; transform: translateY(12px); }
.is-in .orgs li { animation: rowin .9s var(--ease-out) calc(var(--i) * .08s + .35s) both; }
.team-facts {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin: 32px 0 0;
}
.team-facts div { grid-column: span 4; }
.team-facts dt {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
html[lang="zh-CN"] .team-facts dt { letter-spacing: .15em; text-transform: none; }
.team-facts dd { margin: 8px 0 0; font-size: 17px; color: var(--ink); }

/* reveals (motion #12) */
.js .reveal { opacity: 0; transform: translateY(18px); }
.is-in .reveal { animation: reveal 1s var(--ease-out) var(--d, 0s) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 7. Dusk, closing, footer ---------- */
.dusk {
  height: clamp(140px, 18vh, 220px);
  background: linear-gradient(180deg, #F5F2EB 0%, #E9E6DD 18%, #C9CBC2 36%, #8F9A92 54%, #4A5A50 70%, #1F2A24 86%, #0B0F0D 100%);
}
.closing {
  position: relative; background: var(--night); color: var(--white); text-align: center;
  padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 10vh, 120px);
}
.night-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 100%, var(--glow-rad)),
    radial-gradient(90% 60% at 50% 100%, var(--night-2), transparent 100%);
}
.closing .container { position: relative; }
@media (min-width: 900px) {
  .closing { display: grid; align-content: center; min-height: min(calc(100svh - var(--nav-h)), 820px); }
}
.folio-night { color: var(--mist); gap: 24px; }
.folio-night::before, .folio-night::after { content: ""; flex: 1; height: 1px; background: var(--hair-n); }
.folio-night .folio-n { color: var(--glow); }
.closing-stack { max-width: 720px; margin-inline: auto; }
.mark-closing {
  width: clamp(88px, 10vh, 112px); height: auto; aspect-ratio: 1; margin: 64px auto 40px; color: var(--white);
  filter: drop-shadow(0 0 18px rgba(127, 209, 168, .55)) drop-shadow(0 0 48px rgba(127, 209, 168, .25));
}
/* the closing draw uses negative insets so the drop-shadow glow is never boxed, and releases the clip once drawn */
.js .mark-closing { clip-path: inset(100% -120px -120px -120px); }
.is-in .mark-closing { animation: draw-glow 1.05s var(--ease-out) backwards; clip-path: none; }
@keyframes draw-glow { from { clip-path: inset(100% -120px -120px -120px); } to { clip-path: inset(-120px -120px -120px -120px); } }
.closing .h2 { margin-top: 0; max-width: none; margin-inline: auto; color: var(--white); }
.closing-sub { margin: 24px auto 0; font-size: clamp(17px, 10px + .7vw, 19px); line-height: 1.55; color: var(--mist); max-width: 40ch; }
html[lang="zh-CN"] .closing-sub { line-height: 1.75; max-width: 26em; }
.closing .btn { margin-top: 40px; }

.site-footer { background: var(--night); color: var(--mist); border-top: 1px solid var(--hair-n); padding: 40px 0 48px; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-right { display: flex; align-items: center; gap: 24px; }
.site-footer .tlink { color: var(--mist); transition: color .35s; }
.site-footer .tlink:hover, .site-footer .tlink:focus-visible { color: var(--white); }
.site-footer .arrow { color: var(--glow); }

/* ---------- 8. Breakpoints ---------- */
@media (max-width: 1100px) {
  .hero-mark { width: min(100%, 50vh + 120px); }
}

@media (max-width: 1023.98px) {
  .team-head .h2 { grid-column: 1 / span 7; }
  .team-body { grid-column: 8 / -1; }
}

@media (max-width: 1099.98px) {
  .eco { grid-template-columns: 1fr; row-gap: 40px; }
  .eco-copy, .eco-figure { grid-column: 1; }
  .eco-copy { max-width: 640px; padding-right: 0; }
  .eco-figure { margin-inline: auto; }
}

@media (max-width: 899.98px) {
  .film-feature { grid-template-columns: 1fr; row-gap: 32px; }
  .film-copy, .film-media { grid-column: 1; }
  .film-copy { max-width: 600px; padding-right: 0; }
  .film-feature-paper .film-copy, .film-feature-paper .film-media,
  .film-feature-heyue .film-copy, .film-feature-heyue .film-media { grid-column: 1; grid-row: auto; }
  .film-feature-paper .film-copy, .film-feature-heyue .film-copy { padding-left: 0; }
  .team-head { grid-template-columns: 1fr; row-gap: 24px; }
  .team-head .h2, .team-body { grid-column: 1; }
  .team-body { padding-bottom: 0; }
  .orgs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orgs li:nth-child(4) { border-left: 0; padding-left: 0; }
  .orgs li:nth-child(n+4) { border-top: 1px solid var(--hair); }

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero-mark { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; width: min(42vw, 320px); margin: 24px 0 16px; }
  .hero-copy { grid-column: 1; grid-row: 2; align-self: start; padding-block: 0; }
  .hero-foot { grid-row: 3; padding-top: 56px; }
}

@media (max-width: 719.98px) {
  /* Phones read the cycle top to bottom: product, how it leads on, next product, and back to the start. */
  .eco { margin-top: 64px; padding-top: 36px; row-gap: 28px; }
  .eco-title { font-size: clamp(2.2rem, 1.7rem + 2vw, 2.9rem); }
  .eco-figure { aspect-ratio: auto; max-width: none; }
  .eco-lines, .eco-hub { display: none; }
  .eco-map > li { position: static; translate: none; }
  .eco-node a { justify-items: start; min-width: 0; padding: 14px 20px 16px; border-radius: 2px; text-align: left; }
  .eco-flow, .eco-flow-l, .eco-flow-b { display: flex; align-items: center; gap: 12px; max-width: none; padding: 10px 0 10px 20px; text-align: left; }
  .eco-flow::before { content: "↓"; color: var(--leaf); }
  .eco-flow-l::before { content: "↑"; }
  .film-feature { margin-top: 64px; padding-top: 36px; row-gap: 28px; }
  .film-title { font-size: clamp(2.2rem, 1.7rem + 2vw, 2.9rem); }
  .film-play-icon { width: 58px; height: 58px; font-size: 18px; }
  .film-play-label { left: 12px; bottom: 12px; }
  .podcast-feature { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 64px; padding-top: 36px; }
  .podcast-title { margin-top: 10px; font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.2rem); }
  .podcast-links { gap: 12px 24px; }
  :root { --nav-h: 64px; --gap: 16px; }
  .nav li:not(.nav-contact) { display: none; }
  .header-right { gap: 16px; }
  .hero-mark { width: min(56vw, 240px); margin: 24px 0 16px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .cta-row .btn { width: 100%; }
  .cta-row .link { align-self: flex-start; }
  .index { max-width: none; }
  .hero-foot { padding-top: 48px; }
  .row { grid-template-columns: 1fr; row-gap: 12px; padding: 32px 16px; }
  .row-n, .row-head, .desc, .row-cta { grid-column: 1; padding-top: 0; }
  .desc { font-size: 17px; }
  .row-cta { justify-self: start; text-align: left; }
  .row-cta-stack { align-items: flex-start; }
  .closing .btn { width: 100%; }
  .team-orgs { margin-top: 48px; }
  .orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orgs li { padding: 24px 0 22px 20px; }
  .orgs li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .orgs li:nth-child(4) { border-left: 1px solid var(--hair); padding-left: 20px; }
  .orgs li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .orgs li:last-child { grid-column: 1 / -1; }
  .team-facts { grid-template-columns: 1fr; row-gap: 20px; margin-top: 28px; }
  .team-facts div { grid-column: 1; }
  .footer-inner, .footer-right { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* zh clauses wrap naturally on phones; the wipe moves from the clause to the line block */
  /* the clause animation stays declared (no restart when the breakpoint flips); !important clip-path beats it visually */
  html[lang="zh-CN"] .line > span { display: inline; white-space: normal; clip-path: none !important; }
  html[lang="zh-CN"] .statement em { white-space: nowrap; }
  html[lang="zh-CN"].js .line { clip-path: inset(0 100% 0 0); }
  html[lang="zh-CN"] .is-in .line { animation: wipe 1s var(--ease-out) calc(var(--l) * .14s) both; }
  html[lang="zh-CN"] .statement.settled .line { animation: none; clip-path: none; }
}

/* ---------- 9. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .reveal, .fade, .w, .wi, .line, .line > span, .row > *, .row::before, .rows::after, .orgs li, .orgs::before, .orgs::after, .mark-ink, .mark-closing, .hero-mark, .hero-glow {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .w { overflow: visible; }
  .mark-wash, .cue-line { display: none; }
}
