/* VenturesLab 创业工场, design d08. One stylesheet for the eight pages. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Chinese pages take Latin letters from Bricolage but leave quotes, dashes and ellipses to the CJK face,
   so “” — … keep their full width inside Chinese text. */
@font-face {
  font-family: "Bricolage Grotesque Han";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+20AC, U+2122;
}

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --field: #cdc3b6;
  --ink: #2f2e2d;
  --muted: #67635f;
  --accent: #43a22c;        /* the seal green of the logo */
  --accent-ink: #0b1607;
  --night: #2f2e2d;
  --night-ink: #eeecea;
  --night-muted: #b5b0a9;
  --focus: var(--ink);

  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font: "Bricolage Grotesque", var(--cjk);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-poster: clamp(2.5rem, 1rem + 4.6vw, 5.25rem);

  --m: clamp(20px, 2.2vw, 32px);
  --g: clamp(12px, 1.4vw, 24px);
  --sec: clamp(88px, 11vw, 176px);
  --top-h: 92px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}
:root:lang(zh) { --font: "Bricolage Grotesque Han", var(--cjk); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(zh) body { line-height: 1.8; letter-spacing: 0.02em; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
p:empty { display: none; }

.night { --focus: var(--night-ink); background: var(--night); color: var(--night-ink); }
.field-seal { --focus: var(--accent-ink); background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: var(--m); top: 8px; z-index: 30; padding: 10px 16px; background: var(--ink); color: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }

/* ---------- buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--bg); }
  .night .button:hover { background: var(--night-ink); color: var(--night); }
}

/* ---------- the top row */
.top {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: center;
  height: var(--top-h); padding: 0 var(--m); background: var(--bg);
}
.mark { grid-column: 1 / 4; justify-self: start; display: block; }
.mark-crop { position: relative; display: block; width: clamp(132px, 12vw, 176px); aspect-ratio: 665 / 210; overflow: hidden; }
.mark-crop img { position: absolute; max-width: none; width: calc(800 / 665 * 100%); left: calc(-95 / 665 * 100%); top: calc(-170 / 210 * 100%); mix-blend-mode: multiply; }
.night .mark-crop img, .page-contact .mark-crop img { mix-blend-mode: normal; }
.nav { grid-column: 6 / 11; display: flex; gap: clamp(16px, 2vw, 32px); align-items: center; }
.nav a, .foot-nav a { text-decoration: none; padding: 10px 0; text-decoration-line: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.nav a[aria-current="page"], .foot-nav a[aria-current="page"] { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .foot-nav a:hover { text-decoration-color: currentColor; } }
.top-action { grid-column: 11 / 13; justify-self: end; }
.menu { display: none; }
.menu:not([open]) .menu-sheet { display: none; }
.page-contact .top { background: var(--night); color: var(--night-ink); --focus: var(--night-ink); }

/* ---------- masked lines and the load sequence */
.lines { display: block; }
.lines .line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 400ms); }
  /* the waiting state keeps a third of its ink, so a part that has not risen yet is never a blank */
  .js [data-reveal] { opacity: 0.32; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in, .js [data-reveal]:target { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* the shelf fills: each spine is set down in turn, on load in the catalogue, on arrival on the home page */
  .js .spines[data-reveal] { opacity: 1; transform: none; }
  .js .spines li { transition: transform 800ms var(--ease-expo), opacity 500ms var(--ease-out); transition-delay: calc(var(--n) * 22ms); }
  .js .spines[data-reveal]:not(.is-in) li { transform: translateY(36px); opacity: 0.32; }
  .js .shelf-index .spines li { animation: shelve 900ms var(--ease-expo) both; animation-delay: calc(320ms + var(--n) * 22ms); }
}
@keyframes shelve { from { transform: translateY(40px); opacity: 0.32; } }
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

/* ---------- type roles */
.h2 { font-size: var(--step-head); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
:lang(zh) .h2 { line-height: 1.18; letter-spacing: 0; }
.h2 a { text-decoration: none; }
.prose p { max-width: 62ch; text-wrap: pretty; }
:lang(zh) .prose p { max-width: 36em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 0.9em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration-line: underline; }

/* ---------- home: the first screen */
.hero {
  padding-top: clamp(56px, 13vh, 150px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-content: end;
  padding-inline: var(--m); padding-bottom: clamp(48px, 8vh, 80px);
}
.hero-title { grid-column: 1 / 13; font-weight: 600; margin-left: -0.04em; }
.hero-title .line:last-child { text-align: right; }
:lang(zh) .hero-title { font-size: clamp(4rem, 15.4vw, 15.5rem); line-height: 1.06; letter-spacing: -0.02em; }
:lang(en) .hero-title { font-size: clamp(3.25rem, 14vw, 14rem); line-height: 0.92; letter-spacing: -0.045em; }
.hero-lines { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); margin-top: clamp(28px, 4vh, 48px); font-size: var(--step-lead); font-weight: 500; line-height: 1.4; }
.hero-lines p { max-width: 22em; text-wrap: balance; }

/* ---------- home: the founder's letter */
.letter {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start;
  padding: var(--sec) var(--m) 0;
}
.letter-portrait { grid-column: 1 / 5; position: sticky; top: 6vh; }
.letter-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--surface); }
figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.night figcaption { color: var(--night-muted); }
.letter-body { grid-column: 5 / 12; padding-left: clamp(0px, 2vw, 32px); }
.letter-body .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
:lang(en) .letter-body .h2 { max-width: 9em; }
.letter-text { font-size: var(--step-lead); line-height: 1.5; }
:lang(zh) .letter-text { line-height: 1.85; }
.letter-text ul { margin: 0.6em 0; font-weight: 500; }
.signature { margin-top: 2.2em; font-size: var(--step-body); line-height: 1.6; }
.signature::first-line { font-size: var(--step-lead); font-weight: 600; }

/* ---------- home: the sayings and the survival field */
.sayings {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start;
  margin-top: var(--sec); padding: var(--sec) var(--m);
}
.sayings-h { grid-column: 7 / 13; grid-row: 1; margin-bottom: clamp(32px, 4vw, 56px); }
.survive { grid-column: 1 / 6; grid-row: 1 / 3; position: sticky; top: 7vh; }
.survive-ctl { border: 0; margin: 0; padding: 0; min-width: 0; }
.survive-ctl legend { padding: 0; font-size: var(--step-lead); font-weight: 600; line-height: 1.3; margin-bottom: 16px; }
.survive-opts { display: flex; gap: 6px; }
.survive-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survive-opts label {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px;
  background: rgba(15, 29, 10, 0.12); cursor: pointer; font-weight: 600;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.survive-opts label:active { transform: scale(0.97); }
.survive-opts input:checked + label { background: var(--accent-ink); color: var(--accent); }
.survive-opts input:focus-visible + label { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .survive-opts input:not(:checked) + label:hover { background: rgba(15, 29, 10, 0.24); } }
.survive-field { display: block; width: min(100%, 50vh); height: auto; margin-top: 22px; overflow: visible; }
.survive-field rect { fill: #fff; transform-box: fill-box; transform-origin: center; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), fill 420ms ease; }
.survive:has(#y5:checked) .d5, .survive:has(#y10:checked) .d5, .survive:has(#y10:checked) .d10 { opacity: 0.16; transform: scale(0.62); }
.survive:has(#y5:checked) .d5 { transition-delay: calc(var(--k) * 5ms); }
.survive:has(#y10:checked) .d10 { transition-delay: calc(var(--k) * 40ms); }
.survive:has(#y10:checked) .live { fill: var(--accent-ink); }
.survive-count { display: flex; align-items: baseline; gap: 0.4em; margin-top: 18px; font-size: var(--step-lead); font-weight: 600; line-height: 1; }
.survive-count .n { font-size: var(--step-poster); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.survive-count .n5, .survive-count .n10 { display: none; }
.survive:has(#y5:checked) .n0, .survive:has(#y10:checked) .n0 { display: none; }
.survive:has(#y5:checked) .n5, .survive:has(#y10:checked) .n10 { display: inline; }
.sayings-list { grid-column: 7 / 13; grid-row: 2; }
.saying { margin: 0; font-size: var(--step-lead); line-height: 1.55; }
:lang(zh) .saying { line-height: 1.85; }
.saying p { max-width: 36em; text-wrap: pretty; }
.saying + .saying { margin-top: clamp(36px, 4vw, 56px); }

/* ---------- home: strategy, the band and the poster list */
.band { position: relative; height: min(calc(100vw / 2.1), 86vh); overflow: clip; background: #59624a; color: #fff; }
.band-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; transform: scale(1.06); transform-origin: 50% 100%; }
.band-text {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--g);
  padding: 22vh var(--m) clamp(24px, 4vw, 48px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0)); /* taste-skill-ignore: the neutral scrim under the statement on the footage */
}
.band-statement { font-weight: 600; text-wrap: balance; }
:lang(zh) .band-statement { word-break: keep-all; }
:lang(zh) .band-statement { font-size: var(--step-head); line-height: 1.2; max-width: 15.5em; }
@media (max-width: 1099px) { :lang(zh) .band-statement { font-size: 2rem; max-width: 18em; } }
:lang(en) .band-statement { font-size: clamp(1.5rem, 0.8rem + 1.9vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 24em; }
.band-caption { font-size: var(--step-small); white-space: nowrap; }
.poster { padding: var(--sec) var(--m) 0; }
.poster-head, .poster-list h3 { font-size: var(--step-poster); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em; }
:lang(zh) .poster-head, :lang(zh) .poster-list h3 { line-height: 1.16; letter-spacing: -0.01em; }
.poster-head { color: var(--muted); margin-bottom: 0.45em; }
.poster-list li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline;
}
.poster-list li + li { margin-top: 0.5em; }
.poster-list h3 { grid-column: 1 / 9; transition: color var(--t-hover) ease; }
.poster-list p { grid-column: 9 / 13; font-size: var(--step-body); max-width: 30em; }
@media (hover: hover) and (pointer: fine) {
  .poster-list:hover li:not(:hover) h3 { color: var(--muted); }
}

/* ---------- the shelf of 出品 */
.shelf { margin-top: var(--sec); padding: clamp(56px, 7vw, 112px) var(--m) clamp(56px, 7vw, 112px); background: var(--field); }
.shelf-head { display: flex; align-items: baseline; gap: var(--g) clamp(24px, 4vw, 64px); flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.shelf-head h2, .bp-top h2 { flex: none; }
.shelf-head p { font-size: var(--step-body); max-width: 40em; }
.spines { display: grid; grid-template-columns: repeat(29, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.spine {
  width: 100%; height: clamp(320px, 30vw, 440px); padding: 18px 0;
  background: var(--bg); color: var(--ink); text-decoration: none;
  writing-mode: vertical-rl; font-size: var(--step-body); font-weight: 500; line-height: 1;
  display: flex; align-items: center;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 240ms var(--ease-out);
}
:lang(zh) .spine { letter-spacing: 0.08em; }
.spine { justify-content: space-between; }
.spine-name { display: block; }
/* the workshop's seal, cropped from the logo, at the foot of every spine like a publisher's imprint */
.spine-seal { position: relative; flex: none; width: 24px; height: 24px; overflow: hidden; }
.spine-seal img { position: absolute; max-width: none; width: calc(800 / 177 * 100%); left: calc(-106 / 177 * 100%); top: calc(-186 / 177 * 100%); }
.spine:focus-visible { outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .spine:hover { background: var(--ink); color: var(--bg); transform: translateY(-10px); }
}
.spine:focus-visible, .spine:active { background: var(--ink); color: var(--bg); }
.spine:target { background: var(--ink); color: var(--bg); }

/* ---------- the BP band and the footer */
.bp { padding: var(--sec) var(--m) clamp(56px, 6vw, 88px); }
.bp-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--g); flex-wrap: wrap; }
.bp-h { font-size: var(--step-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
:lang(zh) .bp-h { letter-spacing: 0; line-height: 1.2; }
.bp-line { font-size: var(--step-lead); line-height: 1.4; max-width: 24em; }
.bp-mail {
  display: block; margin-top: clamp(40px, 6vw, 96px);
  font-family: "Bricolage Grotesque", var(--cjk); font-size: 9.6vw; font-weight: 400; line-height: 0.95; letter-spacing: -0.045em;
  text-decoration: none; white-space: nowrap; transition: color var(--t-hover) ease;
}
.bp-mail span, .foot-word span { display: inline-block; width: max-content; }
@media (hover: hover) and (pointer: fine) { .bp-mail:hover { color: var(--accent); } }
.bp-act { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 3vw, 44px); flex-wrap: wrap; font-size: var(--step-body); }
.bp-offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(72px, 8vw, 128px); padding: 0; list-style: none; }
.bp-offices h3 { margin-bottom: 14px; font-size: var(--step-lead); font-weight: 600; line-height: 1.3; }
.bp-offices h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bp-offices h3 a:hover { text-decoration: underline; } }
.bp-offices li > p { margin-top: 10px; max-width: 26em; }
.office-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #4b4a48; }

.foot { padding: clamp(40px, 4vw, 64px) var(--m) clamp(24px, 3vw, 40px); }
.page-contact .foot { margin-top: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 28px; }
.foot-nav { grid-column: 1 / 5; display: flex; flex-direction: column; align-items: flex-start; }
.foot-nav a { padding: 4px 0; }
.foot-contact { grid-column: 5 / 9; }
.foot-contact a { text-decoration: none; }
.foot-cities { grid-column: 9 / 13; padding: 0; list-style: none; }
.foot-cities a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-contact a:hover, .foot-cities a:hover { text-decoration: underline; } }
.foot-word { margin-top: clamp(48px, 5vw, 80px); font-family: "Bricolage Grotesque", var(--cjk); font-weight: 600; font-size: 11vw; line-height: 0.9; letter-spacing: -0.04em; white-space: nowrap; }
.foot-legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 16px; margin-top: 32px; line-height: 1.55; color: var(--night-muted); }
.foot-legal p:first-child { grid-column: 1 / 5; }
.credits { grid-column: 5 / 13; max-width: 62ch; }
.credits { color: var(--night-ink); }

/* ---------- portfolio */
.page-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end;
  padding: clamp(40px, 9vh, 120px) var(--m) clamp(40px, 5vw, 72px);
}
.page-title { grid-column: 1 / 6; font-weight: 600; margin-left: -0.04em; }
:lang(zh) .page-title { font-size: clamp(3.5rem, 1rem + 7vw, 8.5rem); line-height: 1.1; letter-spacing: -0.01em; }
:lang(en) .page-title { font-size: clamp(3.25rem, 1rem + 5.4vw, 6.75rem); line-height: 0.95; letter-spacing: -0.045em; }
.page-intro { grid-column: 6 / 13; font-size: var(--step-lead); line-height: 1.55; max-width: 34em; padding-bottom: 0.3em; }
:lang(zh) .page-intro { line-height: 1.85; }
.shelf-index { margin-top: 0; padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(28px, 3vw, 48px); }
.catalogue { padding: var(--sec) var(--m) var(--sec); }
.entry {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start;
  scroll-margin-top: 24px;
}
.entry + .entry { margin-top: clamp(64px, 7vw, 112px); }
.entry-logo { grid-column: 1 / 4; grid-row: 1 / 3; aspect-ratio: 3 / 2; background: var(--surface); display: grid; place-items: center; padding: 12%; }
.entry-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.entry-logo-light img { mix-blend-mode: multiply; }
.entry-logo-dark { background: var(--night); }
.entry-nologo .entry-name { grid-column: 1 / 5; grid-row: 1 / 3; }
.entry-nologo .entry-text { grid-column: 5 / 12; grid-row: 1 / 3; margin-top: 0; }
.entry-name { grid-column: 5 / 12; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
:lang(zh) .entry-name { letter-spacing: 0; line-height: 1.3; }
.entry-text { grid-column: 5 / 12; margin-top: 16px; }
.entry:target .entry-name { color: var(--accent-ink); background: var(--accent); box-decoration-break: clone; -webkit-box-decoration-break: clone; justify-self: start; padding: 0 0.15em; }

/* ---------- team */
.page-head-team .page-title { grid-column: 1 / 13; }
.member {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start;
  padding: 0 var(--m);
}
.member + .member { margin-top: var(--sec); }
.member-photo { grid-column: 1 / 6; position: sticky; top: 6vh; }
.member-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; background: var(--surface); }
.member-text { grid-column: 7 / 13; }
.member-name { font-size: var(--step-head); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: clamp(24px, 3vw, 40px); }
:lang(zh) .member-name { letter-spacing: 0; line-height: 1.2; }
.member-bio { font-size: var(--step-body); }
.page-team .bp { margin-top: var(--sec); }
.page-portfolio .bp { margin-top: 0; }
.page-home .bp { margin-top: 0; }

/* ---------- contact */
.contact-head {
  min-height: calc(100svh - var(--top-h));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-content: space-between; row-gap: 32px;
  padding: clamp(32px, 8vh, 96px) var(--m) clamp(48px, 8vh, 88px);
}
.contact-title { grid-column: 1 / 6; font-size: var(--step-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
:lang(zh) .contact-title { letter-spacing: 0; line-height: 1.2; }
.contact-mail { grid-column: 6 / 13; }
.contact-label { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.contact-head .bp-mail { grid-column: 1 / 13; margin-top: 0; align-self: end; }
.contact-head .bp-act { grid-column: 1 / 13; margin-top: 0; }
.wechat {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end;
  padding: var(--sec) var(--m) 0;
}
.wechat-text { grid-column: 1 / 8; }
.wechat-account { margin-top: 12px; font-size: var(--step-poster); font-weight: 600; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.wechat-qr { grid-column: 9 / 13; justify-self: end; width: min(100%, 280px); mix-blend-mode: multiply; }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); padding: var(--sec) var(--m); }
.office { scroll-margin-top: 24px; }
.office-photo-large img { aspect-ratio: 4 / 5; }
.office-lines { margin-top: 14px; }
.office-city { margin-bottom: 18px; font-size: var(--step-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
:lang(zh) .office-city { letter-spacing: 0; line-height: 1.2; }
.office p { max-width: 28em; }
.office p a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .office p a:hover { text-decoration: underline; } }
.office:target .office-city { color: var(--accent-ink); background: var(--accent); justify-self: start; display: inline-block; padding: 0 0.12em; }

/* ---------- tablet */
@media (max-width: 1099px) {
  .nav { grid-column: 5 / 11; gap: 16px; }
  .hero-lines { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .letter-portrait { grid-column: 1 / 5; }
  .letter-body { grid-column: 5 / 13; }
  .survive { grid-column: 1 / 7; }
  .sayings-list, .sayings-h { grid-column: 7 / 13; padding-left: 12px; }
  .poster-list h3 { grid-column: 1 / 8; }
  .poster-list p { grid-column: 8 / 13; }
  .spines { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .spine { height: 280px; }
  .page-title, .page-intro { grid-column: 1 / 13; }
  .page-intro { margin-top: 24px; }
  .entry-logo { grid-column: 1 / 5; }
  .entry-name, .entry-text { grid-column: 6 / 13; }
  .member-photo { grid-column: 1 / 6; }
  .member-text { grid-column: 7 / 13; }
  .office-city { font-size: 2rem; }
  .foot-legal p:first-child { grid-column: 1 / 13; }
  .credits { grid-column: 1 / 13; }
  .poster-list li { row-gap: 10px; }
  .poster-list h3, .poster-list p { grid-column: 1 / 13; }
  .poster-list li + li { margin-top: 36px; }
}

/* ---------- phone */
@media (max-width: 700px) {
  :root { --top-h: 68px; --sec: clamp(72px, 20vw, 104px); }
  .top { grid-template-columns: auto 1fr auto; column-gap: 12px; }
  .mark { grid-column: 1; }
  .mark-crop { width: 128px; }
  .nav { display: none; }
  .menu { display: block; grid-column: 2; justify-self: end; }
  .menu summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 10px; font-weight: 600; position: relative; z-index: 2; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { color: var(--bg); }
  .menu-sheet {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    padding: 96px var(--m) 48px; background: var(--ink); color: var(--bg); --focus: var(--bg);
  }
  .menu-sheet a { font-size: 2.25rem; font-weight: 600; line-height: 1.2; text-decoration: none; padding: 6px 0; letter-spacing: -0.02em; }
  .menu-sheet a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
  .top-action { grid-column: 3; padding: 0 16px; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 16vh; padding-bottom: 28px; }
  .hero-title { grid-column: 1; }
  :lang(zh) .hero-title { font-size: 17vw; }
  :lang(en) .hero-title { font-size: 13vw; }
  .hero-lines { grid-column: 1; grid-template-columns: 1fr; row-gap: 8px; margin-top: 24px; font-size: 1.0625rem; }

  .letter, .sayings, .poster-list li, .page-head, .entry, .member, .contact-head, .wechat, .foot-cols, .foot-legal { grid-template-columns: minmax(0, 1fr); }
  .foot-legal p:first-child, .credits { grid-column: 1; }
  .letter-portrait { grid-column: 1; position: static; width: 72%; }
  .letter-body { grid-column: 1; padding: 0; margin-top: 40px; }
  .letter-text { font-size: 1.125rem; }
  .survive { grid-column: 1; grid-row: auto; position: static; margin-bottom: 56px; }
  .sayings-h { grid-column: 1; grid-row: auto; }
  .survive-field { width: 100%; }
  .sayings-list { grid-column: 1; grid-row: auto; padding: 0; }
  .poster-head, .poster-list h3, .survive-count .n { font-size: var(--step-head); }
  .poster-list h3, .poster-list p { grid-column: 1; }
  .poster-list p { margin: 10px 0 0 var(--m); }
  .poster-list li + li { margin-top: 30px; }
  .band { height: 64svh; }
  :lang(zh) .band-statement, :lang(en) .band-statement { font-size: var(--step-lead); line-height: 1.4; }
  .band-video { transform: scale(1.18); }
  .band-text { flex-direction: column; align-items: flex-start; padding-top: 28vh; }
  .band-caption { white-space: normal; }

  .spines { display: flex; flex-wrap: wrap; gap: 8px; }
  .spines li { flex: none; }
  .spine { writing-mode: horizontal-tb; height: auto; min-height: 44px; padding: 10px 12px; font-size: 1.0625rem; line-height: 1.3; }
  .spine-seal { display: none; }
  :lang(zh) .spine { letter-spacing: 0.02em; }

  .bp-mail span, .foot-word span { display: block; }
  .bp-offices { grid-template-columns: 1fr; gap: 48px; }
  .foot-nav, .foot-contact, .foot-cities { grid-column: 1; }


  .page-title, .page-intro { grid-column: 1; }
  :lang(zh) .page-title { font-size: 18vw; }
  :lang(en) .page-title { font-size: 14vw; }
  .entry-logo, .entry-name, .entry-text, .entry-nologo .entry-name, .entry-nologo .entry-text { grid-column: 1; grid-row: auto; }
  .entry-nologo .entry-text { margin-top: 16px; }
  .entry-logo { width: 64%; margin-bottom: 20px; }
  .member-photo { grid-column: 1; position: static; }
  .member-text { grid-column: 1; margin-top: 32px; }
  .contact-head { min-height: 0; row-gap: 40px; padding-bottom: 64px; }
  .contact-title, .contact-mail, .contact-head .bp-mail, .contact-head .bp-act { grid-column: 1; }
  .wechat-text, .wechat-qr { grid-column: 1; }
  .wechat-qr { justify-self: start; margin-top: 28px; width: 220px; }
  .offices { grid-template-columns: 1fr; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
}
