:root {
  --ink: var(--sand-12);
  --muted: var(--sand-11);
  --paper: var(--sand-1);
  --line: var(--sand-7);
  --brand: var(--teal-12);
  --small: 12px;
  --body: 15px;
  --title: 24px;
  --display: clamp(36px, 4.7vw, 58px);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--body)/1.7 "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--brand); text-underline-offset: .23em; }
a:focus-visible, summary:focus-visible, video:focus-visible { outline: 2px solid var(--teal-11); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--brand); font-family: var(--serif); }
h1 { font-size: var(--display); font-weight: 600; line-height: 1.18; }
h2, h3, blockquote { font-size: var(--title); line-height: 1.48; }
h2, h3 { font-weight: 600; }
.shell { width: min(1136px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 4px; z-index: 2; transform: translateY(-160%); background: var(--paper); padding: 4px 12px; }
.skip:focus { transform: none; }
.mast { border-bottom: .5px solid var(--line); }
.mast-inner, .foot, .foot > div, .brand, .mast nav, .section-row, .case-meta, .pager, .film-links { display: flex; align-items: center; }
.mast-inner, .foot, .section-row, .case-meta, .pager { justify-content: space-between; }
.mast-inner { min-height: 84px; gap: 24px; }
.brand { flex-shrink: 0; white-space: nowrap; gap: 15px; text-decoration: none; }
.logo { display: flex; justify-content: center; align-items: center; width: 159px; height: 49px; background: var(--brand); }
.logo img { width: 137px; height: auto; }
.brand-caption, .eyebrow, .hero-visual span, .case-meta, .fine, small, figcaption, .stage-nav a span { font-size: var(--small); }
.brand-caption, .hero-visual span, .fine, figcaption, .case-meta { color: var(--muted); }
.mast nav { gap: 24px; }
.mast nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.mast nav a[aria-current] { color: var(--brand); font-weight: 650; text-decoration: underline; text-decoration-thickness: .5px; }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 7%; padding: 48px 0 40px; border-bottom: .5px solid var(--line); }
.hero-copy { padding-bottom: 10px; }
.eyebrow { display: block; margin-bottom: 10px; letter-spacing: .12em; color: var(--teal-11); font-weight: 650; }
.hero-copy p, .page-head p { margin-top: 18px; max-width: 42em; color: var(--muted); }
.hero-copy p { max-width: 24em; }
.actions, .versions, .case-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions { margin-top: 24px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 12px; padding: 8px 20px; text-decoration: none; border: .5px solid var(--line); }
.button.solid { color: var(--paper); background: var(--brand); border-color: var(--brand); }
.button.outline:hover, .versions a:hover, .case-picker a:hover { background: var(--sand-3); }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand-3); }
.hero-visual span { display: block; margin-top: 6px; text-align: right; }
.case-section { padding: 42px 0 64px; }
.section-row { gap: 20px; margin-bottom: 22px; }
.section-row .eyebrow { margin-bottom: 3px; }
.versions a, .case-picker a { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 13px; border: .5px solid var(--line); text-decoration: none; }
.versions a[aria-current], .case-picker a[aria-current] { background: var(--teal-3); border-color: var(--teal-7); color: var(--brand); font-weight: 650; }
.studio { display: grid; grid-template-columns: 195px minmax(0, 1fr); border: .5px solid var(--line); }
.stage-nav { background: var(--sand-2); padding: 17px 0; border-right: .5px solid var(--line); }
.stage-nav a { display: flex; gap: 13px; align-items: center; padding: 8px 20px; min-height: 40px; text-decoration: none; color: var(--muted); }
.stage-nav a span { font-variant-numeric: tabular-nums; }
.stage-nav a[aria-current] { color: var(--brand); background: var(--teal-3); font-weight: 650; }
.stage-nav a:hover { background: var(--sand-3); }
.case-content { display: flex; flex-direction: column; padding: 24px clamp(20px, 4.2vw, 52px); min-width: 0; }
.case-meta { gap: 12px; flex-wrap: wrap; padding-bottom: 13px; margin-bottom: 21px; border-bottom: .5px solid var(--line); font-variant-numeric: tabular-nums; }
.case-content h3 + p, .editorial > p, .case-tiles article > p { margin-top: 8px; }
.case-content blockquote { font-family: var(--serif); margin: 17px 0 6px; }
.pairs, .fields, .case-content .versions { margin-top: 17px; }
.pairs > div { display: grid; grid-template-columns: minmax(86px, 17%) 1fr; gap: 12px; border-bottom: .5px solid var(--sand-5); padding: 9px 0; }
dt, .fields small { color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.fields > div { border-top: .5px solid var(--line); padding-top: 8px; }
.fields dt { font-size: var(--small); }
.fields dd { font-weight: 600; }
.fields dd.source { color: var(--muted); font-size: var(--small); font-weight: 400; }
.fine { margin-top: 15px; }
.pager { gap: 12px; padding-top: 26px; margin-top: auto; }
.pager a, .foot a, .film-links a { padding: 6px 0; }
.drawing { display: block; margin-top: 18px; }
.drawing img { width: 100%; height: auto; max-height: 470px; object-fit: contain; background: var(--sand-2); }
.prompt-list { margin-top: 20px; }
.prompt-list details { border-top: .5px solid var(--line); padding: 8px 0; }
.prompt-list summary { color: var(--brand); cursor: pointer; padding: 3px 0; }
.prompt-list small { color: var(--muted); margin-left: 10px; }
.prompt-list p { padding: 8px 0; overflow-wrap: anywhere; }
.page-head { padding: 55px 0 37px; border-bottom: .5px solid var(--line); }
.editorial { padding: 32px 0; border-bottom: .5px solid var(--line); }
.editorial:last-child, .film { padding-bottom: 60px; border-bottom: 0; }
.case-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; margin-top: 15px; }
.case-tiles figure img { width: 100%; height: auto; aspect-ratio: 3 / 1.55; object-fit: cover; }
figcaption { margin: 3px 0 12px; }
.case-tiles article > a { display: inline-block; margin-top: 10px; }
.route-table { margin-top: 20px; }
.route-row { display: grid; grid-template-columns: 1.15fr 1.6fr 1.75fr; gap: 14px; padding: 9px 12px; border-bottom: .5px solid var(--line); }
.route-row .wide-cell { grid-column: 2 / -1; }
.table-head { color: var(--brand); background: var(--sand-3); }
.film { padding-top: 24px; }
.film video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; background: var(--sand-12); }
.film-links, .foot > div { gap: 22px; flex-wrap: wrap; }
.film-links { margin-top: 14px; }
footer { border-top: .5px solid var(--line); background: var(--sand-2); }
.foot { min-height: 77px; gap: 12px; color: var(--muted); }
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .brand-caption { display: none; }
  .hero { gap: 24px; }
  .studio { grid-template-columns: 161px minmax(0,1fr); }
  .stage-nav a { padding-inline: 12px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .mast-inner { min-height: 65px; gap: 8px; }
  .mast nav { gap: 10px; }
  .mast nav a, .case-meta, .foot { font-size: var(--small); }
  .logo { width: 104px; height: 37px; }
  .logo img { width: 92px; }
  .hero { grid-template-columns: 1fr; padding: 25px 0 19px; gap: 18px; }
  .hero-copy { padding: 0; }
  .hero-copy .actions { margin-top: 16px; }
  .hero-copy p { margin-top: 10px; }
  .section-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .case-section, .page-head { padding: 25px 0 36px; }
  .studio { display: block; }
  .stage-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; padding: 6px; border-right: 0; border-bottom: .5px solid var(--line); }
  .stage-nav a { gap: 4px; padding: 4px; justify-content: center; font-size: var(--small); min-height: 36px; }
  .case-content { min-height: 375px; padding: 16px; }
  .fields { grid-template-columns: 1fr; gap: 8px; }
  .pairs > div { grid-template-columns: 75px minmax(0,1fr); gap: 6px; }
  .pager, .film-links { flex-wrap: wrap; }
  .case-tiles { grid-template-columns: 1fr; gap: 22px; }
  .route-row { grid-template-columns: .9fr 1.08fr 1.12fr; gap: 5px; padding-inline: 4px; font-size: var(--small); overflow-wrap: anywhere; }
}

/* Project overview */
.overview { padding-bottom: 54px; }
.ov-intro, .ov-chapter, .ov-reference, .ov-boundary { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr); column-gap: clamp(24px, 5vw, 76px); }
.ov-intro { align-items: center; padding: 44px 0 42px; }
.ov-intro-copy > p:not(.eyebrow), .ov-copy > p:not(.eyebrow), .ov-boundary p, .ov-detail p { color: var(--muted); }
.ov-intro-copy .ov-lead { color: var(--ink); font-family: var(--serif); font-size: var(--title); line-height: 1.55; margin: 18px 0 10px; }
.ov-intro-copy h1 { line-height: 1.15; }
.ov-contact { min-width: 0; }
.ov-contact-photos { height: 374px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1.16fr) minmax(0, 0.84fr); gap: 6px; overflow: hidden; }
.ov-contact-photos img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.ov-contact-photos .ov-person { grid-row: 1 / 3; object-position: center 44%; }
.ov-contact-photos .ov-garment { object-position: center 51%; }
.ov-contact-photos .ov-pocket { object-position: center 48%; }
.ov-contact figcaption { margin: 7px 0 0; }
.ov-chapter, .ov-reference, .ov-boundary { padding: 40px 0; align-items: start; border-top: .5px solid var(--line); }
.ov-copy h2 + p, .ov-boundary h2 + p { margin-top: 9px; }
.ov-copy blockquote { color: var(--brand); font-size: var(--body); font-family: var(--serif); font-weight: 600; line-height: 1.8; margin: 13px 0 8px; }
.ov-link { display: inline-block; font-weight: 600; margin-top: 13px; padding: 3px 0; }
.ov-plates, .ov-private-art, .ov-book { min-width: 0; padding: 16px 20px; background: var(--sand-2); }
.ov-plate-head, .ov-book-links, .ov-swatch { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ov-plate-head { padding-bottom: 9px; border-bottom: .5px solid var(--line); }
.ov-plate-head h3 { font-size: var(--body); font-weight: 650; font-family: inherit; }
.ov-plate-head > span, .ov-book-links > span, .ov-note, .ov-swatch p { color: var(--muted); font-size: var(--small); }
.ov-placket-pair, .ov-collar-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; }
.ov-placket-pair figure, .ov-collar-pair figure { min-width: 0; }
.ov-placket-pair a, .ov-collar-pair a { display: block; }
.ov-placket-pair img { width: 100%; height: 142px; object-fit: contain; }
.ov-collar-pair img { width: 100%; aspect-ratio: 506 / 288; object-fit: contain; height: auto; }
.ov-placket-pair figcaption, .ov-collar-pair figcaption { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; font-size: var(--body); color: var(--ink); }
.ov-placket-pair strong, .ov-collar-pair strong { color: var(--brand); font-variant-numeric: tabular-nums; }
.ov-note { border-top: .5px solid var(--line); margin: 12px 0 0; padding-top: 8px; }
.ov-swatch { justify-content: flex-start; margin-top: 12px; border-top: .5px solid var(--line); padding-top: 9px; }
.ov-swatch img { width: 64px; height: 36px; object-fit: cover; }
.ov-book { padding-bottom: 10px; }
.ov-book table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: var(--small); }
.ov-book th, .ov-book td { text-align: left; vertical-align: top; padding: 8px 7px; border-bottom: .5px solid var(--sand-6); }
.ov-book thead th { color: var(--brand); background: var(--teal-3); }
.ov-book th:first-child, .ov-book td:nth-child(2), .ov-book td:nth-child(3), .ov-book thead th { white-space: nowrap; }
.ov-book .ov-plate-head { border: 0; }
.ov-book-links { padding-top: 8px; font-size: var(--small); }
.ov-assist { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ov-reference-body { border-top: .5px solid var(--line); }
.ov-flow { margin: 12px 0; }
.ov-flow figcaption { margin: 0 0 8px; }
.ov-flow ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.ov-flow li { position: relative; min-width: 0; color: var(--brand); }
.ov-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 0; color: var(--teal-11); font-size: var(--small); }
.ov-flow strong, .ov-flow small { display: block; }
.ov-flow small { color: var(--muted); font-size: var(--small); overflow-wrap: anywhere; }
.ov-disclosure { border-bottom: .5px solid var(--line); }
.ov-disclosure summary { cursor: pointer; min-height: 45px; padding: 10px 0; color: var(--brand); font-weight: 600; }
.ov-disclosure[open] { padding-bottom: 14px; }
.ov-detail > p + p { margin-top: 10px; }
.ov-detail .route-table { margin-top: 10px; }
.ov-boundary { padding-bottom: 0; }
.ov-roles > div { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 9px 0; border-bottom: .5px solid var(--line); }
.ov-roles > div:first-child { padding-top: 0; }
.ov-roles dt { color: var(--brand); font-weight: 600; }
@media (max-width: 800px) {
  .ov-intro, .ov-chapter, .ov-reference, .ov-boundary { grid-template-columns: minmax(0,.83fr) minmax(0,1.08fr); gap: 22px; }
  .ov-plates, .ov-private-art, .ov-book { padding-inline: 12px; }
  .ov-contact-photos { height: 300px; }
}
@media (max-width: 700px) {
  .overview { padding-bottom: 32px; }
  .ov-intro, .ov-chapter, .ov-reference, .ov-boundary { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 25px 0; }
  .ov-intro-copy .ov-lead { margin: 10px 0 6px; }
  .ov-intro .actions { margin-top: 15px; }
  .ov-contact-photos { gap: 4px; height: 300px; }
  .ov-placket-pair img { height: 112px; }
  .ov-book th, .ov-book td { padding: 7px 4px; }
  .ov-boundary { padding-bottom: 0; }
}

@media (max-width: 440px) { .ov-contact-photos { height: 216px; } }

.ov-drawing-compare { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 8px; align-items: center; }
.ov-cad-context img { width: 100%; height: auto; }
.ov-cad-context figcaption { margin: 6px 0 0; text-align: center; }
.ov-drawing-compare .ov-placket-pair { column-gap: 8px; }
.ov-technology .route-row { grid-template-columns: .8fr 1.12fr 1.12fr 1.3fr; }
@media (max-width: 920px) {
  .ov-drawing-compare { grid-template-columns: minmax(0,1fr); }
  .ov-cad-context { margin-top: 8px; }
  .ov-cad-context img { max-height: 175px; object-fit: contain; }
}
@media (max-width: 460px) {
  .ov-technology .route-row { padding-inline: 0; gap: 6px; }
}
