/* VenturesLab 创业工场 — d06. One motif: the firm's seal, a square of leaf green with a white inner
   frame, at every scale (the first screen's stage, the band, every portrait, the composer's seal),
   and its L A B squares as the button and the bullet. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900; 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: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 900; 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;
}
/* On Chinese pages the Latin face sets only letters and figures; quotation marks, dashes and
   ellipses inside Chinese text come from the CJK face, full width. */
@font-face {
  font-family: "Schibsted Latin";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00B6, U+00B8-00FF;
}

:root {
  --bg: #f3f4ef;
  --surface: #e7e9e2;
  --ink: #121612;
  --muted: #4f574f;
  --seal: #3a9c23;
  --seal-ink: #ffffff;
  --seal-deep: #2a8418;
  --field-celadon: #dce6d5;
  --field-stone: #e5e5df;
  --field-dark: #141a15;
  --field-dark-ink: #eef1ea;
  --field-dark-muted: #b9c2b6;
  --paper: #ffffff;

  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei", "微软雅黑", sans-serif;
  --text: "Schibsted Grotesk", var(--cjk);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --gap-section: clamp(4.5rem, 9vw, 9.5rem);

  --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.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 0.4rem + 5.8vw, 6.5rem);

  --lead-text: 1.5;
  --lead-display: 0.9;
  --lead-head: 0.95;
  --track-display: -0.05em;
  --track-head: -0.04em;
  --track-text: -0.01em;

  /* the seal's inner frame */
  --fi: clamp(7px, 1.1vw, 16px);
  --fw: clamp(3px, 0.32vw, 5px);

  --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);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms; --t-open: 1200ms;
}
html[lang="zh-CN"] {
  --text: "Schibsted Latin", var(--cjk);
  --lead-text: 1.85;
  --lead-display: 1.1;
  --lead-head: 1.15;
  --track-display: -0.01em;
  --track-head: 0em;
  --track-text: 0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: var(--lead-text);
  letter-spacing: var(--track-text); font-kerning: normal; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
p { text-wrap: pretty; }
p:empty { display: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
::selection { background: var(--seal); color: var(--seal-ink); }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; }
.seal :focus-visible, .cta :focus-visible { outline-color: var(--ink); }

.wrap { padding-inline: var(--margin); max-width: 1920px; margin-inline: auto; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 8px; }

.display { font-size: var(--step-display); line-height: var(--lead-display); letter-spacing: var(--track-display); font-weight: 800; }
.head { font-size: var(--step-head); line-height: var(--lead-head); letter-spacing: var(--track-head); font-weight: 800; }
.lead { font-size: var(--step-lead); line-height: 1.4; }
html[lang="zh-CN"] .lead { line-height: 1.75; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { word-break: keep-all; overflow-wrap: anywhere; }

/* ---- the seal (motif) */
.seal { position: relative; background: var(--seal); color: var(--seal-ink); }
.seal::after {
  content: ""; position: absolute; inset: var(--fi); border: var(--fw) solid var(--seal-ink);
  pointer-events: none;
}
/* the L A B squares: a solid green square at text size marks each item of a list */
.squares > li { position: relative; padding-left: 1.35em; }
.squares > li::before {
  content: ""; position: absolute; left: 0; top: calc(0.5lh - 0.32em);
  width: 0.64em; height: 0.64em; background: var(--seal);
}

/* ---- buttons: a solid green block, like the L, A and B of the mark */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.5em;
  background: var(--seal-deep); color: var(--seal-ink); font-weight: 700; font-size: var(--step-body); letter-spacing: 0;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.75rem; padding: 0 1em; }
.button--wide { width: 100%; min-height: 3.25rem; }
@media (hover: hover) and (pointer: fine) { .button:hover { background: #226d13; } }
.seal .button, .cta .button { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .seal .button:hover, .cta .button:hover { background: #000; } }
.cta [data-ui] .button { background: var(--seal-deep); }
@media (hover: hover) and (pointer: fine) { .cta [data-ui] .button:hover { background: #226d13; } }

.more { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .more:hover { text-decoration-color: currentColor; } }

/* ---- bar */
/* The bar carries the page ground (no z-index) so the logo's white JPEG ground has a backdrop to multiply into. */
.bar { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding-top: 24px; padding-bottom: 8px; position: relative; background: var(--bg); }
.brand { --lh: 46px; display: block; width: calc(var(--lh) * 3.921); height: var(--lh); overflow: hidden; flex: none; }
.brand img { width: calc(var(--lh) * 4.878); max-width: none; margin: calc(var(--lh) * -1.116) 0 0 calc(var(--lh) * -0.64); mix-blend-mode: multiply; }
.links { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); font-weight: 600; font-size: 1rem; }
.links ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.links a, .lang { text-decoration: none; padding-block: 10px; }
.links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; text-decoration-color: var(--seal); }
@media (hover: hover) and (pointer: fine) { .links a:hover, .lang:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; } }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; padding: 0 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu .when-open, .menu[open] .when-closed, .menu:not([open]) .sheet { display: none; }
.menu[open] .when-open { display: inline; }
.sheet { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: var(--field-dark); color: var(--field-dark-ink); padding: 24px var(--margin) 32px; }
.sheet ul { display: grid; gap: 4px; }
.sheet a { display: block; font-size: 1.75rem; font-weight: 800; padding-block: 8px; text-decoration: none; }
.sheet .lang { display: inline-block; margin-top: 12px; font-size: 1.1875rem; font-weight: 700; }

/* ---- home: first screen */
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  grid-template-rows: auto 1fr; min-height: calc(100svh - 78px); padding-top: clamp(32px, 7svh, 72px);
}
.hero-copy { display: contents; }
.hero-title { grid-column: 1 / 8; grid-row: 1; max-width: 15ch; padding-bottom: clamp(24px, 4svh, 40px); margin-left: -0.04em; }
html[lang="zh-CN"] .hero-title { max-width: none; }
.hero-lines { grid-column: 1 / 5; grid-row: 2; align-self: start; display: grid; gap: 0.6em; font-size: var(--step-body); padding-top: 8px; max-width: 30em; }
.hero .button { grid-column: 1 / 4; grid-row: 2; align-self: start; justify-self: start; margin-top: clamp(220px, 27svh, 270px); }
.stage { grid-column: 5 / -1; grid-row: 2; margin-right: calc(-1 * var(--margin)); padding: 56px 0 48px 56px; overflow: hidden; }
.stage::after { right: calc(-1 * var(--fw) - var(--fi)); }
.stage-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; padding-right: var(--margin); position: relative; z-index: 1; }
.stage-link { position: relative; z-index: 1; display: inline-block; margin-top: 28px; color: var(--seal-ink); font-weight: 700; font-size: var(--step-lead); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

.tile { display: grid; grid-template-rows: 1fr auto; aspect-ratio: 4 / 3; background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform var(--t-ui) var(--ease-out); }
.tile .mark { background: transparent; aspect-ratio: auto; }
.tile .mark--dark + .tile-name { color: var(--field-dark-ink); }
.tile:has(.mark--dark) { background: var(--field-dark); }
.tile-name { font-size: var(--step-small); font-weight: 600; line-height: 1.3; padding: 0 12px 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:has(.mark--dark) .tile-name { color: var(--field-dark-muted); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-4px); } }

/* a portfolio mark on its own tile: white, or dark for marks drawn in white */
.mark { position: relative; display: block; background: var(--paper); aspect-ratio: 4 / 3; }
/* centred at its own size, never wider than three quarters of the tile, and never enlarged past 1.6× */
.mark img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: min(76%, calc(var(--w, 4000px) * 1.6)); max-height: 54%; transform: scale(var(--z, 1)); }
.mark { overflow: hidden; }
.mark--dark { background: var(--field-dark); }
.mark--type { display: grid; place-items: center; padding: 12%; }
.mark--type span { font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--ink); text-align: center; line-height: 1.2; }

/* ---- home: the founder's letter */
.letter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: var(--gap-section); }
.letter-side { grid-column: 1 / 4; align-self: start; position: sticky; top: 32px; display: grid; gap: 32px; }
.portrait { width: min(100%, 240px); padding: calc(var(--fi) * 2 + var(--fw)); }
.portrait img { aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; width: 100%; }
.letter-body { grid-column: 5 / 11; max-width: 38em; }
html[lang="zh-CN"] .letter-body { max-width: 34em; }
.letter-body > p + p, .letter-body > p + ul, .letter-body > ul + p { margin-top: 1.1em; }
.letter-body > p:first-child { font-size: var(--step-lead); line-height: 1.5; font-weight: 500; }
html[lang="zh-CN"] .letter-body > p:first-child { line-height: 1.8; }
.letter-body ul { display: grid; gap: 0.5em; }
.letter-body ul li { position: relative; padding-left: 1.35em; }
.letter-body ul li::before { content: ""; position: absolute; left: 0; top: calc(0.5lh - 0.32em); width: 0.64em; height: 0.64em; background: var(--seal); }
.signature { margin-top: 48px !important; display: grid; gap: 2px; font-size: 1rem; line-height: 1.5; }
.signature .sig-0 { font-size: var(--step-lead); font-weight: 800; letter-spacing: 0.04em; margin-bottom: 6px; }

/* ---- home: the band between the two halves */
.band { padding: clamp(72px, 10vw, 136px) var(--margin); display: grid; place-items: center; text-align: center; }
.band-line { font-size: var(--step-statement); font-weight: 800; line-height: 1.3; max-width: 24em; position: relative; z-index: 1; }
html[lang="zh-CN"] .band-line { line-height: 1.5; max-width: 15em; }
html[lang="en"] .band-line { max-width: 30em; letter-spacing: -0.02em; }

/* ---- home: investment strategy, set as a list at poster scale */
.strategy { padding-block: var(--gap-section); background: var(--field-stone); max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 0.35em; }
.strategy-h { grid-column: 1 / -1; color: var(--muted); padding-bottom: 0.5em; font-size: min(max(var(--step-head), 5.2vw), 5.25rem); }
.strategy-list { grid-column: 1 / -1; display: grid; row-gap: clamp(28px, 3vw, 48px); }
.strategy-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: first baseline; }
.strategy-title { grid-column: 1 / 9; font-size: min(max(var(--step-head), 5.2vw), 5.25rem); line-height: var(--lead-head); letter-spacing: var(--track-head); position: relative; padding-left: 0.62em; }
.strategy-title::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 0.36em; height: 0.36em; background: var(--seal); }
html[lang="zh-CN"] .strategy-title::before { top: 0.42em; }
.strategy-list p { grid-column: 9 / 13; max-width: 26em; }

/* ---- home: the sayings, one speaker and his words */
.sayings { display: grid; grid-template-columns: 5fr 7fr; }
.sayings-name { background: var(--field-dark); color: var(--field-dark-ink); padding: clamp(40px, 4vw, 64px) var(--margin) 40px; }
.sayings-name-in { position: sticky; top: 32px; min-height: min(calc(100svh - 72px), 820px); display: grid; grid-template-rows: auto 1fr auto; gap: 40px; }
.saying-lead { align-self: center; max-width: 22em; position: relative; }
html[lang="zh-CN"] .saying-lead { max-width: 17em; }
.saying-lead p { font-size: var(--step-lead); line-height: 1.45; font-weight: 600; }
html[lang="zh-CN"] .saying-lead p { line-height: 1.8; }
.speaker { display: grid; gap: 2px; }
.speaker span:first-child { font-size: var(--step-lead); font-weight: 800; letter-spacing: 0.04em; }
.speaker span:last-child { color: var(--field-dark-muted); font-size: 1rem; }
.sayings-list { background: var(--field-celadon); padding: clamp(40px, 4vw, 64px) var(--margin) clamp(48px, 5vw, 80px) clamp(40px, 4vw, 64px); columns: 2 18em; column-gap: clamp(32px, 3.5vw, 56px); }
html[lang="zh-CN"] .sayings-list { columns: 2 14em; }
.sayings-list blockquote { break-inside: avoid; position: relative; padding-bottom: clamp(32px, 3vw, 48px); }
.sayings-list blockquote p { font-weight: 500; }
.sayings blockquote::before { content: "“"; position: absolute; left: -0.55em; top: -0.12em; font-size: 2.25rem; line-height: 1; font-weight: 800; color: var(--seal); font-family: "Schibsted Grotesk", sans-serif; }
.saying-lead::before { position: static; display: block; height: 0.7em; }

/* ---- home: five productions filed as folders */
.work { padding-block: var(--gap-section) 0; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.folders { margin-inline: calc(-1 * var(--margin)); }
.folder { --strip: 64px; background: var(--fold-bg); color: var(--fold-ink); display: flex; flex-direction: column; }
/* A folder sticks only where it fits whole below the strips of the folders filed before it. */
/* Each is one strip taller than the folder after it, so all their bottoms meet when the last one lands and
   the stack leaves the screen together, every tab still showing. */
@media (min-width: 1100px) and (min-height: 820px) { .folder { position: sticky; top: calc(var(--i) * var(--strip)); min-height: calc(100svh - (1 + var(--i)) * var(--strip)); } }
.folder--1 { --fold-bg: var(--field-stone); --fold-ink: var(--ink); --tab-bg: var(--ink); --tab-ink: var(--bg); }
.folder--2 { --fold-bg: var(--field-celadon); --fold-ink: var(--ink); --tab-bg: var(--ink); --tab-ink: var(--bg); }
.folder--3 { --fold-bg: var(--field-dark); --fold-ink: var(--field-dark-ink); --tab-bg: var(--seal); --tab-ink: var(--seal-ink); }
.folder--4 { --fold-bg: var(--field-celadon); --fold-ink: var(--ink); --tab-bg: var(--ink); --tab-ink: var(--bg); }
.folder--5 { --fold-bg: var(--field-stone); --fold-ink: var(--ink); --tab-bg: var(--seal); --tab-ink: var(--seal-ink); }
.folder-strip { height: var(--strip); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--margin); }
.folder-tab { background: var(--tab-bg); color: var(--tab-ink); font-size: var(--step-lead); line-height: 1; padding: 10px 16px 11px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.folder-kind { font-size: var(--step-small); font-weight: 600; }
.folder-body { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 16px var(--margin) 56px; }
.folder-pic { grid-column: 1 / 7; }
.folder-pic { display: flex; }
/* the picture takes the folder's whole height, which grows by a strip for each folder filed after it */
.folder-pic .mark { aspect-ratio: 16 / 9; flex: 1; }
.folder-pic .mark img { max-height: 46%; max-width: min(56%, calc(var(--w, 4000px) * 1.6)); }
.folder-text { grid-column: 8 / 13; align-self: start; display: grid; gap: 0.8em; max-width: 36em; }
.folder-text p:last-child { margin-top: 0.4em; }

/* ---- home and contact: the BP composer, the one live thing */
.cta { margin-top: 0; padding-block: clamp(80px, 10vw, 140px); }
.cta-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); min-height: calc(90svh - 2 * clamp(80px, 10vw, 140px)); position: relative; z-index: 1; }
.cta-copy { grid-column: 1 / 6; align-self: end; display: grid; gap: 28px; }
.cta-title { font-size: clamp(2.75rem, 0.4rem + 5.8vw, 6.5rem); max-width: 7ch; }
html[lang="zh-CN"] .cta-title { max-width: 4.2em; }
.cta-line { font-size: var(--step-lead); font-weight: 700; line-height: 1.45; max-width: 24em; }
html[lang="zh-CN"] .cta-line { line-height: 1.75; }
.cta-dialog { grid-column: 7 / 12; align-self: center; justify-self: end; width: min(100%, 460px); }

[data-ui].composer { background: var(--paper); color: var(--ink); padding: 28px; display: grid; gap: 18px; font-size: 1rem; line-height: 1.45; letter-spacing: 0; box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.45); }
.page-contact [data-ui].composer { box-shadow: none; background: var(--field-stone); }
[data-ui] .composer-seal { display: flex; align-items: center; gap: 18px; }
[data-ui] .seal-print {
  --size: 112px; flex: none; width: var(--size); height: var(--size); background: var(--seal-deep); color: var(--seal-ink);
  position: relative; display: grid; place-items: center; padding: 16px; overflow: hidden;
}
[data-ui] .seal-print::after { content: ""; position: absolute; inset: 6px; border: 3px solid var(--seal-ink); }
[data-ui] .seal-text { font-weight: 900; font-size: 1.25rem; line-height: 1.05; text-align: center; white-space: nowrap; }
[data-ui] .seal-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); width: 100%; height: 100%; place-items: center; font-weight: 900; line-height: 1; font-size: calc((var(--size) - 32px) / var(--n) * 0.92); }
[data-ui] .seal-grid span { display: block; }
[data-ui] .seal-caption { font-size: var(--step-small); color: var(--muted); }
[data-ui] .field { display: grid; gap: 6px; }
[data-ui] .field > span, [data-ui] .segmented legend { font-weight: 600; font-size: 1rem; }
[data-ui] input:not([type="radio"]) { font: inherit; font-size: 1rem; min-height: 46px; padding: 10px 12px; color: var(--ink); background: var(--bg); border: 1px solid #b9bfb6; border-radius: 0; width: 100%; }
[data-ui] input:not([type="radio"]):focus-visible { outline: 3px solid var(--seal); outline-offset: 0; border-color: var(--seal); }
[data-ui] input::placeholder { color: #6b726a; }
[data-ui] .segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
[data-ui] .segmented legend { padding: 0 0 6px; }
[data-ui] .segmented label { position: relative; }
[data-ui] .segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
[data-ui] .segmented span { display: grid; place-items: center; min-height: 44px; border: 1px solid #b9bfb6; margin-left: -1px; font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
[data-ui] .segmented label:first-of-type span { margin-left: 0; }
[data-ui] .segmented input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-ui] .segmented input:focus-visible + span { outline: 3px solid var(--seal); outline-offset: 2px; position: relative; z-index: 1; }
[data-ui] .composer-subject { font-size: var(--step-small); color: var(--muted); overflow-wrap: anywhere; }
[data-ui] .composer-subject output { color: var(--ink); font-weight: 600; }
[data-ui] .composer-or { font-size: var(--step-small); }
[data-ui] .composer-or a { font-weight: 600; }

/* ---- footer: the name built from blocks, then the offices */
.foot { padding-top: max(var(--gap-section), 120px); padding-bottom: 40px; display: grid; gap: 56px; }
/* Four green blocks of different heights, bottoms on one line; the name runs across them as one word,
   one character centred on each block (CJK glyphs are one em wide, so the tracking places them). */
.blocks { --gap: 4px; --bw: calc((100% - 3 * var(--gap)) / 4); margin: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); height: clamp(180px, 34svh, 360px); align-items: end; container-type: inline-size; overflow: hidden; }
.block { background: var(--seal); height: 100%; }
.block--2 { height: 78%; }
.block--3 { height: 90%; }
.block--4 { height: 66%; }
.blocks-name {
  --f: calc((100cqi - 12px) / 4 * 0.56); position: absolute; left: 0; bottom: 0; height: 66%; display: flex; align-items: center;
  font-family: var(--cjk); font-weight: 900; font-size: var(--f); line-height: 1; color: var(--seal-ink); white-space: nowrap;
  letter-spacing: calc((100cqi - 12px) / 4 + 4px - var(--f)); padding-left: calc(((100cqi - 12px) / 4 - var(--f)) / 2);
}
.foot-h { font-size: var(--step-lead); font-weight: 800; margin-bottom: 20px; }
.office-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.office { display: grid; gap: 10px; align-content: start; }
/* the slow drift scales the picture inside its own frame, never over the caption or the seal's mount */
.frame { display: block; overflow: hidden; background: var(--surface); }
.office-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.office-photo figcaption { font-size: var(--step-small); color: var(--muted); padding-top: 8px; background: var(--bg); }
.office-city { font-size: var(--step-lead); font-weight: 800; margin-top: 6px; }
.office .squares { display: grid; gap: 4px; }
.foot-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; row-gap: 16px; }
.foot-row nav { grid-column: 1 / 8; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 600; }
.foot-links a { text-decoration: none; display: inline-block; padding-block: 8px; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { text-decoration: underline; } }
.foot-note { grid-column: 8 / 11; font-size: 1rem; }
.foot-row .button { grid-column: 11 / 13; justify-self: end; }
.credits { font-size: 1rem; max-width: 44em; }
.credits a { color: var(--ink); }

/* ---- portfolio */
.ph { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; padding-top: clamp(32px, 7svh, 72px); padding-bottom: var(--gap-section); }
.ph-copy { grid-column: 1 / 8; display: grid; gap: 32px; align-content: start; }
.ph-copy .lead { max-width: 30em; }
.ph-seal { grid-column: 9 / -1; margin-right: calc(-1 * var(--margin)); aspect-ratio: 1 / 0.92; display: grid; align-items: end; padding: calc(var(--fi) * 2 + var(--fw) + 16px); align-self: start; }
.count { display: grid; gap: 8px; position: relative; z-index: 1; }
.count-n { font-size: clamp(6rem, 3rem + 10vw, 14rem); font-weight: 800; line-height: 0.82; letter-spacing: -0.05em; font-family: "Schibsted Grotesk", var(--cjk); }
.count-l { font-size: var(--step-lead); font-weight: 700; }
.ph-index { grid-column: 1 / -1; }
.ph-index ul { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: var(--step-lead); font-weight: 700; line-height: 1.35; }
.ph-index li:not(:last-child)::after { content: "，"; color: var(--muted); margin-right: 0.15em; }
html[lang="en"] .ph-index li:not(:last-child)::after { content: ","; margin-right: 0.45em; }
.ph-index a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ph-index a:hover { color: var(--seal); text-decoration: underline; text-decoration-thickness: 3px; } }
.album { columns: 3 320px; column-gap: var(--gutter); }
.entry { break-inside: avoid; display: grid; gap: 14px; padding-bottom: clamp(48px, 5vw, 80px); scroll-margin-top: 24px; }
.entry-mark .mark { aspect-ratio: 1; }
.entry-mark .mark img { max-width: min(68%, calc(var(--w, 4000px) * 1.6)); max-height: 46%; }
.entry-name { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; margin-top: 4px; }
.entry-text { display: grid; gap: 0.7em; }
.entry-text ol { list-style: none; counter-reset: none; display: grid; gap: 0.4em; }
.entry-text ol li, .entry-text ul li { position: relative; padding-left: 1.2em; }
.entry-text ol li::before, .entry-text ul li::before { content: ""; position: absolute; left: 0; top: calc(0.5lh - 0.28em); width: 0.56em; height: 0.56em; background: var(--seal); }
.entry:target .entry-mark .mark { outline: 4px solid var(--seal); outline-offset: 4px; }

/* ---- team and contact: the line under the title */
.page-intro { font-size: var(--step-lead); line-height: 1.4; max-width: 30em; margin-top: 24px; }
html[lang="zh-CN"] .page-intro { line-height: 1.75; }

/* ---- team */
.th { padding-top: clamp(32px, 7svh, 72px); padding-bottom: 40px; }
.member { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-bottom: var(--gap-section); align-items: start; }
.member-photo { padding: calc(var(--fi) * 2 + var(--fw)); position: sticky; top: 24px; }
.member-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; }
.member--left .member-photo { grid-column: 1 / 6; }
.member--left .member-text { grid-column: 7 / 13; }
.member--right .member-photo { grid-column: 8 / 13; grid-row: 1; }
.member--right .member-text { grid-column: 1 / 7; grid-row: 1; }
.member-text { display: grid; gap: 32px; }
.member-bio { max-width: 38em; display: grid; gap: 0.2em; }
html[lang="zh-CN"] .member-bio { max-width: 34em; }
.member-bio p + p { margin-top: 0.9em; }
.member-bio a { font-weight: 600; }

/* ---- contact */
.ch { padding-top: clamp(32px, 7svh, 72px); padding-bottom: var(--gap-section); display: grid; gap: 48px; }
.ch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; align-items: start; }
.ch-mail { grid-column: 1 / 7; display: grid; gap: 28px; }
.ch-mail .composer { max-width: 560px; }
.ch-wechat { grid-column: 8 / 13; display: grid; gap: 28px; justify-items: start; }
.qr { padding: calc(var(--fi) * 2 + var(--fw) + 12px); width: min(100%, 460px); }
.qr img { width: 100%; aspect-ratio: 1; position: relative; z-index: 1; }
.account { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-family: "Schibsted Grotesk", var(--cjk); overflow-wrap: anywhere; }
.offices { display: grid; gap: 32px; padding-bottom: 0; }
.office-row--large .office-photo img { aspect-ratio: 4 / 5; }

/* ---- motion: everything is in place without script or under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0.35; transform: translateY(28px); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-expo) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter { clip-path: inset(0 100% 0 0); transition: clip-path var(--t-open) var(--ease-in-out) 150ms; }
  .js .shutter > * { transition: transform 1600ms var(--ease-soft) 150ms; transform: scale(1.06); transform-origin: 0 0; }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in > * { transform: none; }
  .js .stage-tiles li { opacity: 0.35; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: calc(700ms + var(--i, 0) * 45ms); }
  .js .stage.is-in .stage-tiles li { opacity: 1; transform: none; }
  .js .blocks .block { transform: translateY(35%); transition: transform 1100ms var(--ease-expo); }
  .js .blocks .block--2 { transition-delay: 70ms; } .js .blocks .block--3 { transition-delay: 140ms; } .js .blocks .block--4 { transition-delay: 210ms; }
  .js .blocks.is-in .block { transform: none; }
  .js .drift img { transform: scale(1.08); transition: transform 2400ms var(--ease-soft); }
  .js .drift.is-in img { transform: none; }
}

/* ---- tablet and phone: each a composition of its own */
@media (max-width: 1099px) {
  .hero { display: block; min-height: 0; }
  .hero-lines { max-width: 34em; }
  .hero .button { margin-top: 28px; }
  .stage { margin: 40px calc(-1 * var(--margin)) 0; padding: 40px var(--margin) 40px; }
  .stage::after { inset: var(--fi); right: var(--fi); }
  .stage-tiles { padding-right: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .letter-side { grid-column: 1 / 5; }
  .letter-body { grid-column: 5 / 13; }
  .strategy-title { grid-column: 1 / -1; }
  .strategy-list p { grid-column: 1 / -1; padding-left: calc(var(--step-head) * 0.62); margin-top: 10px; }
  html[lang="en"] .strategy-title { font-size: min(var(--step-head), 1.75rem); }
  .sayings { grid-template-columns: 1fr; }
  .sayings-name-in { position: static; min-height: 0; gap: 24px; }
  .folder-pic { grid-column: 1 / 7; }
  .folder-text { grid-column: 7 / 13; }
  .cta-in { min-height: 0; row-gap: 48px; }
  .cta-copy { grid-column: 1 / -1; }
  .cta-dialog { grid-column: 1 / -1; justify-self: start; }
  .ph-copy { grid-column: 1 / -1; }
  .ph-seal { grid-column: 1 / 8; margin-right: 0; aspect-ratio: auto; min-height: 280px; }
  .member--left .member-photo, .member--right .member-photo { grid-column: 1 / 6; grid-row: 1; position: relative; top: auto; }
  .member--left .member-text, .member--right .member-text { grid-column: 7 / 13; grid-row: 1; }
  .ch-mail { grid-column: 1 / -1; }
  .ch-wechat { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: end; column-gap: 32px; }
  .ch-wechat h2 { grid-column: 1 / -1; }
  .qr { width: 300px; }
}
@media (max-width: 899px) {
  .links, .bar > .button--small { display: none; }
  .menu { display: block; margin-left: auto; }
  .bar { padding-top: 16px; }
  .brand { --lh: 34px; }
}
@media (max-width: 699px) {
  :root { --step-display: clamp(2.5rem, 11vw, 3.5rem); }
  html[lang="zh-CN"] { --step-display: clamp(2.75rem, 13vw, 4rem); }
  .hero { padding-top: 28px; }
  .stage-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-tiles li:nth-child(n + 9) { display: none; }
  .letter { display: block; }
  .letter-side { position: static; display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
  .portrait { width: 128px; flex: none; }
  .sayings-list { padding-left: calc(var(--margin) + 18px); columns: 1; }
  .sayings-name { padding-left: calc(var(--margin) + 18px); }
  .folder-strip { height: auto; min-height: 56px; padding-block: 8px; flex-wrap: wrap; }
  .folder-tab { max-width: 100%; white-space: normal; font-size: 1.25rem; }
  .folder-body { display: block; padding-bottom: 40px; }
  .folder-pic { display: block; }
  .folder-pic .mark { aspect-ratio: 4 / 3; }
  .folder-pic .mark img { max-width: min(72%, calc(var(--w, 4000px) * 1.6)); }
  .folder-text { margin-top: 20px; }
  .cta-title { font-size: var(--step-display); }
  [data-ui].composer { padding: 20px; }
  [data-ui] .seal-print { --size: 96px; }
  .blocks { height: clamp(120px, 22svh, 200px); }
  .office-row { grid-template-columns: 1fr; gap: 40px; }
  .office-row--large .office-photo img { aspect-ratio: 4 / 3; }
  .foot-row nav, .foot-note { grid-column: 1 / -1; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; }
  .foot-row .button { grid-column: 1 / -1; justify-self: start; }
  .ph-seal { grid-column: 1 / -1; margin-inline: calc(-1 * var(--margin)); min-height: 240px; }
  .album { columns: 1; }
  .entry-mark .mark { aspect-ratio: 4 / 3; }
  .member { display: block; }
  .member-photo { width: 78%; margin-bottom: 32px; }
  .member--right .member-photo { margin-left: auto; }
  .ch-wechat { display: grid; grid-template-columns: 1fr; }
  .qr { width: min(100%, 320px); }
}
