/* Wholestack v3 · Pretendard only, neutral light grey, no index numbers. Grammar from Tessel (large display, one muted accent phrase, sticky product storytelling, framed objects) and Solace (one night chapter, staggered type) */

:root {
  --paper: #F5F6F7;
  --paper-2: #EBEDF0;
  --white: #FFFFFF;
  --ink: #12161D;
  --ink-2: #464B54;
  --muted: #6A707A;
  --rule: rgba(18, 22, 29, 0.12);
  --rule-strong: rgba(18, 22, 29, 0.85);
  --grid: rgba(18, 22, 29, 0.05);
  --accent: #14B8A6;
  --accent-deep: #0B7468;
  --navy: #0E1B33;
  --night: #07090D;
  --night-2: #0E1219;
  --night-ink: #F5F6F7;
  --night-muted: rgba(245, 246, 247, 0.56);
  --night-rule: rgba(245, 246, 247, 0.14);
  --error: #B42318;
  --shadow-frame: 0 1px 0 rgba(18, 22, 29, 0.04), 0 40px 80px -48px rgba(18, 22, 29, 0.38);

  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  --serif: var(--sans);
  --serif-ko: var(--sans);
  --mono: var(--sans);

  --display: clamp(3rem, 6.4vw + 0.5rem, 7rem);
  --h2: clamp(2.5rem, 4.6vw + 0.5rem, 6rem);
  --h3: clamp(1.75rem, 2vw + 0.75rem, 3.25rem);
  --big: clamp(2.25rem, 4vw + 0.75rem, 5.75rem);

  --wrap: 1360px;
  --gut: clamp(20px, 3.4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
html[lang="en"] .ko { display: none !important; }
html:not([lang="en"]) .en { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--ink); font-weight: 600; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
:lang(ko) .serif, html:not([lang="en"]) .serif { font-family: var(--serif-ko); font-style: normal; font-weight: 300; letter-spacing: -0.04em; }
.muted { color: var(--muted); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(245, 246, 247, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav .brand img { height: 26px; width: auto; }
.nav nav { display: flex; gap: 32px; font-size: 17px; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav .right { justify-self: end; display: flex; align-items: center; gap: 20px; font-size: 16px; }
.lang { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; }
.lang button { background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--muted); letter-spacing: inherit; font-weight: inherit; }
.lang button[aria-pressed="true"] { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.btn:hover { background: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 16px; }
.btn .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.line:hover { background: var(--ink); color: var(--paper); }

/* hero */
.hero { position: relative; min-height: 100svh; padding: 160px 0 48px; display: flex; flex-direction: column; justify-content: space-between; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; background-position: center top; }
.hero canvas { position: absolute; top: 0; right: 0; width: 50%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { margin-top: 28px; font-size: clamp(3rem, 5.6vw + 0.5rem, 6.25rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; max-width: 8.4em; }
.hero .lead { margin-top: 36px; max-width: 30em; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.hero .cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); gap: 40px; margin-top: 72px; }
.hero .facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero .facts dd { margin: 8px 0 0; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.scrollcue { display: none; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scrollcue i { width: 1px; height: 40px; background: linear-gradient(var(--ink), transparent); }

/* section scaffolding */
.sec { padding: 180px 0; position: relative; }
.sec-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; margin-bottom: 96px; }
.sec-top h2 { margin-top: 24px; font-size: var(--h2); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.sec-top p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 26em; }

/* service: sticky storytelling */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
.chapters > article { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.chapters h3 { margin-top: 18px; font-size: var(--h3); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; }
.chapters p { margin-top: 20px; color: var(--ink-2); max-width: 24em; }
.chapters .kit { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.stage { position: sticky; top: 112px; height: calc(100vh - 160px); min-height: 520px; display: flex; flex-direction: column; justify-content: center; }
.frame { position: relative; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-frame); padding: 14px; }
.frame .shots { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.frame .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.8s var(--ease), transform 1.2s var(--ease); }
.frame .shots img.on { opacity: 1; transform: none; }
.frame .meta { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px 2px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.frame .meta b { color: var(--ink); font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.steps span { display: block; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.4s, border-color 0.4s; }
.steps span.on { color: var(--ink); border-top: 2px solid var(--accent); padding-top: 11px; }

/* statement */
.state { padding: 220px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.state .big { margin-top: 32px; font-size: var(--big); font-weight: 500; line-height: 1.08; letter-spacing: -0.045em; max-width: 14em; }
.state .big .w { color: rgba(18, 22, 29, 0.16); transition: color 0.5s var(--ease); }
.state .big .w.lit { color: var(--ink); }
.state .sub { margin: 72px 0 0 auto; max-width: 30em; font-size: 18px; color: var(--ink-2); }

/* work */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 48px; }
.filters button { height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); transition: all 0.25s var(--ease); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .count { margin-left: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.card { margin: 0; }
.card[hidden] { display: none; }
.card .fr { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-frame); padding: 12px; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .ph img { transform: scale(1.035); }
.card.tall .ph { aspect-ratio: 4 / 3; }
.card.tall .ph img { object-position: top center; }
.card figcaption { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 4px 0; }
.card figcaption b { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.card figcaption .label { align-self: center; text-align: right; }
.card figcaption span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: 17px; }

/* night chapter */
.night { background: var(--night); color: var(--night-ink); }
.night .label { color: var(--night-muted); }
.night .label b { color: var(--night-ink); }
.odm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: end; margin-bottom: 120px; }
.stagger { margin-top: 28px; font-size: var(--h2); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; }
.stagger > span > span { display: block; }
.stagger .i1 { padding-left: 1.2em; }
.stagger .i2 { padding-left: 0.4em; }
.stagger .serif { color: var(--accent); }
.odm-top p { color: var(--night-muted); font-size: 18px; }
.rows { border-top: 1px solid var(--night-rule); }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--night-rule); }
.row .n { font-family: var(--mono); font-size: 14px; color: var(--night-muted); padding-top: 8px; }
.row .bad b, .row .good b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
.row .bad b { color: var(--night-muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(245, 246, 247, 0.35); }
.row p { margin-top: 10px; color: var(--night-muted); font-size: 17px; }
.row .good p { color: rgba(245, 246, 247, 0.78); }
.row .tag { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-muted); }
.row .good .tag { color: var(--accent); }
.chain { margin-top: 120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--night-rule); }
.chain li { position: relative; padding: 28px 28px 0 0; }
.chain li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--night); border: 1px solid var(--night-ink); }
.chain li.home::before { background: var(--accent); border-color: var(--accent); }
.chain b { display: block; font-size: 19px; font-weight: 500; }
.chain span { display: block; margin-top: 8px; color: var(--night-muted); font-size: 16px; line-height: 1.6; }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.team .fr { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-frame); padding: 12px; }
.team .ph { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.team .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.05); transition: filter 0.8s var(--ease); }
.team article:hover .ph img { filter: none; }
.team .who { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 4px 0; }
.team h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.team .yrs { font-size: 17px; color: var(--muted); }
.team .yrs b { font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.team .role { padding: 4px 4px 0; color: var(--muted); font-size: 17px; }
.team ul { margin: 18px 4px 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 17px; }
.team li + li { margin-top: 4px; }

/* process */
.band { background: var(--paper-2); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.timeline li { position: relative; padding: 36px 32px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--ink); }
.timeline .k { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.timeline h3 { margin-top: 20px; font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.timeline .fee { margin-top: 6px; font-size: 17px; color: var(--accent-deep); font-weight: 600; }
.timeline p { margin-top: 18px; color: var(--ink-2); font-size: 17px; }
.guard { margin-top: 140px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.guard h3 { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.guard dl { margin: 0; }
.guard dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 22px 0; border-top: 1px solid var(--rule); }
.guard dl div:last-child { border-bottom: 1px solid var(--rule); }
.guard dt { color: var(--muted); }
.guard dd { margin: 0; font-weight: 500; }

/* partner */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.terms > div { padding: 36px 32px 40px; border-radius: 14px; }
.terms > div:not(.hl) { border: 1px solid var(--rule); }
.terms > .hl { background: var(--night); color: var(--night-ink); }
.terms h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.terms .label { display: block; margin-bottom: 28px; }
.terms .hl .label { color: var(--accent); }
.terms li { padding: 16px 0; border-top: 1px solid var(--rule); }
.terms .hl li { border-top-color: var(--night-rule); }
.terms li b { display: block; font-weight: 500; }
.terms li span { color: var(--muted); font-size: 17px; }
.terms .hl li span { color: var(--night-muted); }
.terms ol { margin-top: 24px; }

/* logos */
.logos { padding: 96px 0; border-top: 1px solid var(--rule); }
.logos .row-l { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
.logos ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 32px 40px; align-items: center; }
.logos img { max-height: 34px; width: auto; filter: grayscale(1) contrast(1.1); opacity: 0.7; mix-blend-mode: multiply; }

/* contact */
.contact .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 96px; }
.contact h2 { margin-top: 24px; font-size: var(--h2); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.contact .lead { margin-top: 36px; font-size: 18px; color: var(--ink-2); max-width: 26em; }
.contact .asks { margin-top: 56px; }
.contact .asks li { display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-top: 1px solid var(--rule); }
.contact .asks li:last-child { border-bottom: 1px solid var(--rule); }
.contact .asks i { font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 4px; }
.contact .asks b { font-weight: 500; }
.contact .asks span { display: block; color: var(--muted); font-size: 17px; }
.contact .mail { display: inline-block; margin-top: 48px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--ink); }
.contact .addr { margin-top: 14px; color: var(--muted); font-size: 17px; }
.formcard { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-frame); padding: 40px; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; font-size: 17px; border-radius: 0; transition: border-color 0.25s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 1px solid var(--ink); box-shadow: 0 1px 0 var(--ink); }
.drop { display: block; position: relative; margin-top: 8px; padding: 20px; border: 1px dashed rgba(18, 22, 29, 0.25); border-radius: 10px; font-size: 16px; color: var(--muted); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400 !important; }
.drop:hover, .drop.over { border-color: var(--ink); color: var(--ink); }
.drop:focus-within { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filelist li { display: flex; gap: 12px; align-items: center; font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.filelist li span { margin-left: auto; color: var(--muted); }
.filelist button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px 6px; }
.agree { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 8px 0 28px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.agree b { color: var(--ink); font-weight: 600; }
.agree a { color: var(--accent-deep); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.status { font-size: 16px; }
.status.err { color: var(--error); }
.status.ok { color: var(--accent-deep); }

/* footer */
.foot { background: var(--night); color: var(--night-ink); padding: 140px 0 40px; }
.foot .huge { font-size: clamp(2.5rem, 5.6vw + 0.5rem, 6.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; max-width: 12em; }
.foot .huge .serif { color: var(--accent); }
.foot .cols { margin-top: 120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 48px; padding-top: 32px; border-top: 1px solid var(--night-rule); font-size: 16px; color: var(--night-muted); }
.foot .cols .label { display: block; margin-bottom: 14px; color: var(--night-muted); }
.foot .cols img { height: 24px; width: auto; }
.foot .cols li + li { margin-top: 6px; }
.foot a { text-decoration: none; color: var(--night-ink); }
.foot a:hover { text-decoration: underline; }
.foot .base { margin-top: 64px; display: flex; justify-content: space-between; font-size: 15px; color: var(--night-muted); }

/* privacy page (shares the system) */
.doc { padding: 160px 0 120px; }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.doc h1 { font-size: clamp(2.5rem, 3vw + 1rem, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.doc .meta { margin-top: 16px; color: var(--muted); font-size: 16px; }
.doc .toc { position: sticky; top: 112px; align-self: start; }
.doc .toc ol { margin-top: 40px; font-size: 16px; border-top: 1px solid var(--rule); }
.doc .toc li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.doc .toc a { text-decoration: none; color: var(--ink-2); }
.doc article > p { color: var(--ink-2); max-width: 40em; }
.doc article h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 64px 0 16px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 44em; }
.doc article h2[data-n]::before { content: attr(data-n); font-family: var(--mono); font-size: 15px; color: var(--muted); margin-right: 14px; font-weight: 400; }
.doc article ul { margin: 12px 0; color: var(--ink-2); max-width: 40em; }
.doc article li { padding-left: 20px; position: relative; margin-top: 4px; }
.doc article li::before { content: ""; position: absolute; left: 2px; top: 0.8em; width: 8px; height: 1px; background: var(--ink); }
.doc table { width: 100%; max-width: 44em; border-collapse: collapse; font-size: 17px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.doc thead th { color: var(--muted); font-weight: 500; font-size: 15px; border-bottom-color: var(--rule-strong); }
.doc .textlink, .doc .back { color: var(--accent-deep); font-weight: 600; }
.doc .back { display: inline-block; margin-top: 48px; }
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(245, 246, 247, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top .brand img { height: 26px; width: auto; }
.top .ask { font-size: 16px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); }
.foot .wrap > .base:only-child { margin-top: 0; }

@media (max-width: 1024px) {
  .nav nav { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; }
  .hero canvas { width: 100%; opacity: 0.5; }
  .sec { padding: 120px 0; }
  .sec-top, .odm-top, .contact .grid, .guard, .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { position: relative; top: 0; height: auto; min-height: 0; order: -1; margin-bottom: 24px; }
  .chapters > article { min-height: 0; padding-block: 48px; border-top: 1px solid var(--rule); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .logos .row-l { grid-template-columns: minmax(0, 1fr); }
  .logos ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doc .toc { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { padding-top: 120px; }
  .hero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
  .scrollcue { display: none; }
  .sec { padding: 96px 0; }
  .sec-top { margin-bottom: 56px; }
  .state { padding: 120px 0; }
  .gallery, .team, .chain, .timeline { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; }
  .stagger .i1, .stagger .i2 { padding-left: 0; }
  .form .two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .formcard { padding: 24px; }
  .logos ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .foot .base { flex-direction: column; gap: 8px; }
  .filters .count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* Korean is never tracked: the caps-and-spacing label voice is for Latin only */
html:not([lang="en"]) .label .ko, html:not([lang="en"]) .field label .ko, html:not([lang="en"]) .hero .facts dt .ko, html:not([lang="en"]) .steps span, html:not([lang="en"]) .filters button .ko, html:not([lang="en"]) .row .tag .ko { letter-spacing: 0; font-size: 15px; font-weight: 600; }
@media (max-width: 640px) {
  .hero canvas { opacity: 0.16; }
  .timeline, .chain { border-top: 0; }
  .timeline li, .chain li { border-top: 1px solid var(--rule-strong); }
  .chain li { border-top-color: var(--night-rule); }
}

/* team, after inspora 1-25: one portrait that dissolves into dots, a rolling index, a list where one row opens */
.crew { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.crew-word { font-size: clamp(5.5rem, 12vw, 12rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.82; margin: 28px 0 32px -0.04em; color: var(--ink); }
.portrait { position: relative; aspect-ratio: 4 / 5; }
.portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crew-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.crew.live .crew-still { display: none; }
.crew-meta { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); font-size: 15px; color: var(--ink-2); padding-top: 4px; }
.crew-meta .btn { margin-left: auto; }
.btn.xs { height: 30px; padding: 0 12px; font-size: 14px; }
.plus { display: flex; justify-content: space-between; margin: 36px 0 44px; }
.plus i { position: relative; width: 11px; height: 11px; }
.plus i::before, .plus i::after { content: ""; position: absolute; background: var(--ink); }
.plus i::before { left: 5px; top: 0; width: 1px; height: 11px; }
.plus i::after { top: 5px; left: 0; height: 1px; width: 11px; }
.crew-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.crew-head h2 { font-size: clamp(2rem, 3vw + 0.5rem, 3.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
.crew-idx { display: flex; align-items: flex-start; font-size: clamp(3rem, 5vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.crew-idx small { font-size: 16px; letter-spacing: 0; color: var(--muted); margin: 0.4em 0 0 6px; }
.roll { display: inline-block; overflow: hidden; height: 1em; }
.roll.tick span { display: inline-block; animation: roll 0.7s var(--ease); }
@keyframes roll { from { transform: translateY(100%); } to { transform: none; } }
.crew-intro { max-width: 34em; margin: 24px 0 40px; color: var(--ink-2); font-size: 18px; }
.crew-list { background: var(--white); border-radius: 4px; box-shadow: var(--shadow-frame); padding: 4px 24px; }
.crew-list > li + li { border-top: 1px solid var(--rule); }
.crew-list button { display: grid; grid-template-columns: 64px 1fr 24px; align-items: center; width: 100%; padding: 20px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.crew-list button i { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.r-role { text-align: center; font-size: 17px; color: var(--ink-2); transition: opacity 0.4s var(--ease); }
.crew-list li.on .r-role { opacity: 0.45; }
.arr { position: relative; width: 12px; height: 12px; justify-self: end; transition: transform 0.5s var(--ease); }
.arr::before { content: ""; position: absolute; inset: 0; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.crew-list li.on .arr { transform: rotate(90deg); }
.detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.detail > div { overflow: hidden; }
.crew-list li.on .detail { grid-template-rows: 1fr; }
.detail .who { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 10px; }
.detail h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.detail .yrs { font-size: 16px; color: var(--muted); }
.detail .yrs b { font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.detail p { color: var(--ink-2); font-size: 17px; max-width: 34em; }
.skills { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 16px 0 26px; font-size: 15px; color: var(--muted); }
.skills li { position: relative; padding-left: 12px; }
.skills li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--accent); }
@media (max-width: 900px) {
  .crew { grid-template-columns: minmax(0, 1fr); }
  .crew-word { margin-bottom: 20px; }
  .portrait { max-width: 420px; }
  .crew-meta { flex-wrap: wrap; }
  .plus { margin: 28px 0 32px; }
  .crew-list { padding: 4px 16px; }
  .crew-list button { grid-template-columns: 52px 1fr 20px; }
  .r-role { text-align: left; }
}
/* square corners, after inspora 1-33 */
.btn, .filters button { border-radius: 2px; }

/* feedback round: Pretendard everywhere, the accent phrase is set by tone instead of a serif */
.serif, :lang(ko) .serif, html:not([lang="en"]) .serif { font-family: var(--sans); font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--muted); }
.night .serif, .stagger .serif, .foot .huge .serif { color: var(--accent); }
.crew-list button { grid-template-columns: 1fr 24px; }
.r-role { text-align: left; }
.form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.lead { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem); }
.hero .facts dd { font-size: clamp(2rem, 2.4vw + 0.5rem, 3rem); font-weight: 500; letter-spacing: -0.03em; }
.hero .lead { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.5rem); line-height: 1.55; }
/* line breaks: never split a Korean word, balance headings, avoid orphans in body text */
body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, .big, .huge, .crew-word { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }

/* hero rebuilt after motionsites (Vocari, Weblex, CoderCrest): one dark full-screen scene, centered copy, two-tone headline */
:root { --void: #05080D; }
.hero { min-height: 100svh; padding: 0; display: grid; place-items: start center; background: radial-gradient(60% 55% at 50% 100%, rgba(20, 184, 166, 0.28), transparent 70%), radial-gradient(90% 60% at 50% 110%, rgba(70, 100, 145, 0.35), transparent 75%), var(--void); background-size: auto; color: var(--night-ink); overflow: hidden; }
.hero canvas { inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--void)); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; text-align: center; padding-top: clamp(140px, 20vh, 210px); display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 0; max-width: none; font-size: clamp(3rem, 6.4vw + 0.5rem, 7.5rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.05em; }
.hero h1 .l1, .hero h1 .l2 { display: block; }
.hero h1 .l1 { background: linear-gradient(180deg, #6F7886 0%, #A9B1BD 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .l2 { color: #FFFFFF; }
.hero .lead { margin-top: 28px; max-width: none; color: rgba(245, 246, 247, 0.72); }
.hero .cta { margin-top: 36px; justify-content: center; }
.btn.light { background: #FFFFFF; color: var(--void); border-color: #FFFFFF; }
.btn.light:hover { background: var(--accent); border-color: var(--accent); color: var(--void); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.16); }
.factband { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.factband .facts { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.factband .facts dt { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.factband .facts dd { margin: 8px 0 0; font-size: clamp(2.25rem, 2.8vw + 0.5rem, 3.5rem); font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
/* nav over the dark hero */
.brand .on-dark { display: none; }
.nav:not(.solid) .brand .on-light { display: none; }
.nav:not(.solid) .brand .on-dark { display: block; }
.nav:not(.solid) nav a, .nav:not(.solid) .lang, .nav:not(.solid) .lang button { color: rgba(245, 246, 247, 0.72); }
.nav:not(.solid) nav a:hover { color: #FFFFFF; }
.nav:not(.solid) .btn.sm { background: #FFFFFF; color: var(--void); border-color: #FFFFFF; }
@media (max-width: 640px) {
  .hero canvas { opacity: 0.55; }
  .hero-copy { padding-top: 132px; }
  .factband .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
.nav:not(.solid) .lang button[aria-pressed="true"] { color: #FFFFFF; }
.hero { display: block; } .hero .hero-copy { width: 100%; max-width: var(--wrap); margin: 0 auto; }

/* work drum, after inspora portfolio: windows stacked on a cylinder, scroll turns it */
.drum { position: relative; height: calc(var(--n) * 22vh + 100vh); margin-top: 24px; }
.drum-stage { position: sticky; top: 0; height: 100vh; height: 100svh; perspective: 1600px; perspective-origin: 50% 50%; overflow: hidden; }
.drum-cards { position: absolute; inset: 0; transform-style: preserve-3d; }
.dc { position: absolute; left: 58%; top: 52%; width: min(620px, 46vw); margin: 0; transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform, opacity; }
.dc .win { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(18, 22, 29, 0.04); transition: box-shadow 0.6s var(--ease); }
.dc.on .win { box-shadow: 0 50px 90px -40px rgba(18, 22, 29, 0.45); }
.dc .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--rule); background: #F2F3F5; }
.dc .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D8DD; }
.dc .bar span { margin-left: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .ph { aspect-ratio: 16 / 10; background: var(--paper-2); }
.dc .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dc figcaption { display: none; }
.drum-meta { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(300px, 26vw); z-index: 200; }
.dm-l { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.drum-meta h3 { margin-top: 14px; font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.dm-d { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.drum-hint { position: absolute; left: 0; bottom: 40px; font-size: 14px; color: var(--muted); }
.drum.flat { height: auto; }
.drum.flat .drum-stage { position: static; height: auto; perspective: none; }
.drum.flat .drum-cards { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.drum.flat .dc { position: static; width: auto; transform: none !important; opacity: 1 !important; visibility: visible !important; }
.drum.flat .drum-meta, .drum.flat .drum-hint { display: none; }
@media (max-width: 900px) {
  .dc { left: 50%; top: 58%; width: 86vw; }
  .drum-meta { top: 96px; transform: none; width: auto; right: 0; }
  .drum-hint { left: 50%; transform: translateX(-50%); bottom: 24px; }
}
.dc { width: min(540px, 38vw); }
@media (max-width: 900px) {
  .dc { top: 42%; width: 82vw; }
  .drum-meta { top: auto; bottom: 64px; }
  .drum-hint { display: none; }
}

/* round 3: compact facts inside the hero, readable intro text, left-aligned section intros */
.hero-facts { position: absolute; z-index: 2; left: 50%; bottom: clamp(28px, 5vh, 56px); transform: translateX(-50%); display: flex; margin: 0; padding: 14px 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(5, 8, 13, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; }
.hero-facts > div { display: flex; align-items: baseline; gap: 10px; padding: 0 24px; }
.hero-facts > div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.hero-facts dt { font-size: 14px; color: rgba(245, 246, 247, 0.6); }
.hero-facts dd { margin: 0; font-size: 22px; font-weight: 600; color: #FFFFFF; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sec-top { display: block; margin-bottom: 72px; }
.sec-top p, .crew-intro, .odm-top > p { margin-top: 28px; max-width: 36em; font-size: clamp(1.1875rem, 0.5vw + 1rem, 1.375rem); line-height: 1.6; color: var(--ink-2); }
.state .sub { margin: 48px 0 0; max-width: 36em; font-size: clamp(1.1875rem, 0.5vw + 1rem, 1.375rem); line-height: 1.6; color: var(--ink-2); }
.night .odm-top > p { color: var(--night-muted); color: rgba(245, 246, 247, 0.72); }
@media (max-width: 760px) {
  .hero-facts { left: 16px; right: 16px; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; padding: 12px 0; white-space: normal; }
  .hero-facts > div { flex-direction: column; gap: 2px; padding: 0 16px; }
  .hero-facts > div:nth-child(3) { border-left: 0; }
  .hero-facts dt { font-size: 13px; }
  .hero-facts dd { font-size: 20px; }
}
.odm-top { display: block; } .odm-top > p { max-width: 36em; }
/* round 3 audit fixes */
.nw { white-space: nowrap; }
.row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stagger .i1, .stagger .i2 { padding-left: 0; }
.stagger .serif { color: var(--accent); }
.label, html:not([lang="en"]) .label .ko, html:not([lang="en"]) .field label .ko, html:not([lang="en"]) .steps span, html:not([lang="en"]) .row .tag .ko { font-size: 16px; }
.chapters .kit { font-size: 16px; }
.dm-l { font-size: 15px; }
.dc .bar span { font-size: 13px; }
.row .tag { font-size: 15px; }
.hero-facts dt { font-size: 15px; }
.drum-hint { font-size: 16px; }
.crew-meta { font-size: 16px; }
.guard dt { color: var(--ink-2); font-size: 18px; }
.guard dd { font-size: 18px; }

/* round 4: ODM table header, logo marquee, more-work wheel, menu, and real layouts per breakpoint */
.rows-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--night-muted); }
.rows-head span:last-child { color: var(--accent); }
.row .bad b, .row .good b { font-size: clamp(1.375rem, 0.8vw + 1rem, 1.75rem); }
.row p { font-size: 18px; max-width: 30em; }

.logos .row-l { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos ul.mq { display: flex; flex: none; align-items: center; gap: 72px; padding-right: 72px; animation: mq 46s linear infinite; }
.logos ul.mq li { flex: none; }
.logos ul.mq img { max-height: 36px; }
.marquee:hover .mq { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-100%); } }

.more { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.more-btn { height: 52px; padding: 0 28px; border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.more-btn:hover, .more-btn.open { background: var(--ink); color: var(--paper); }
.wheel { width: 100vw; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 24px 0 40px; }
.wheel::-webkit-scrollbar { display: none; }
.wheel-track { display: flex; gap: 28px; width: max-content; padding: 0 calc(50vw - min(210px, 40vw)); }
.mc { flex: none; width: min(420px, 80vw); margin: 0; scroll-snap-align: center; transition: transform 0.25s linear, opacity 0.25s linear; }
.mc .win { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-frame); }
.mc .bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--rule); background: #F2F3F5; }
.mc .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D8DD; }
.mc .bar span { margin-left: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .ph { aspect-ratio: 16 / 10; background: var(--paper-2); }
.mc .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mc figcaption { display: grid; gap: 4px; padding: 18px 4px 0; }
.mc figcaption b { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.mc .dl { order: -1; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mc .dd { font-size: 16px; color: var(--ink-2); }

.inline-shot { display: none; }
.menu-btn { display: none; }

/* tablet: one column, every chapter carries its own picture, steps read as a rail */
@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
  .nav:not(.solid):not(.menu-open) .menu-btn { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.4); }
  .nav.menu-open { background: var(--paper); border-bottom-color: var(--rule); }
  .nav.menu-open .brand .on-light { display: block; } .nav.menu-open .brand .on-dark { display: none; }
  .nav.menu-open .lang, .nav.menu-open .lang button { color: var(--muted); }
  .nav.menu-open nav { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px max(16px, var(--gut)) 24px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.menu-open nav a { padding: 16px 0; font-size: 22px; color: var(--ink); border-top: 1px solid var(--rule); }
  .nav .right .btn.sm { display: none; }
  .stage { display: none; }
  .inline-shot { display: block; margin-bottom: 28px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-frame); padding: 10px; }
  .inline-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
  .chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .chapters > article { padding-block: 0; border-top: 0; }
  .crew { grid-template-columns: minmax(0, 1fr); }
  .crew-l { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: end; gap: 24px; }
  .crew-l .label { grid-column: 1 / -1; }
  .terms { grid-template-columns: repeat(3, minmax(260px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .terms > div { scroll-snap-align: start; }
  .row { gap: 32px; }
}

/* phone: stacked, rails instead of grids, carousels instead of tall stacks */
@media (max-width: 640px) {
  .chapters { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .rows-head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0; }
  .row .bad::before, .row .good::before { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
  html:not([lang="en"]) .row .bad::before { content: "일반적인 중국 ODM"; color: var(--night-muted); }
  html:not([lang="en"]) .row .good::before { content: "Wholestack"; color: var(--accent); }
  html[lang="en"] .row .bad::before { content: "Typical China ODM"; color: var(--night-muted); }
  html[lang="en"] .row .good::before { content: "Wholestack"; color: var(--accent); }
  .chain, .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 0; border-left: 1px solid var(--rule-strong); margin-left: 4px; }
  .chain { border-left-color: var(--night-rule); }
  .chain li, .timeline li { padding: 0 0 36px 28px; border-top: 0 !important; }
  .chain li::before, .timeline li::before { top: 6px; left: -4px; }
  .crew-l { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 320px; }
  .terms { grid-template-columns: repeat(3, 84vw); margin-right: calc(-1 * max(16px, var(--gut))); padding-right: max(16px, var(--gut)); }
  .logos ul.mq { gap: 48px; padding-right: 48px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
}

/* round 4b: tablet steps as 2x2 blocks with their own rule, drum caption on a solid panel */
@media (max-width: 1024px) and (min-width: 641px) {
  .chain, .timeline { border-top: 0; row-gap: 56px; column-gap: 40px; }
  .timeline li { border-top: 1px solid var(--rule-strong); }
  .chain li { border-top: 1px solid var(--night-rule); }
}
@media (max-width: 900px) {
  .dc { top: 38%; width: min(78vw, 560px); }
  .drum-meta { left: 0; right: 0; bottom: 0; padding: 28px 0 40px; background: linear-gradient(to bottom, rgba(245, 246, 247, 0), var(--paper) 28px); }
}
.more-btn .m-c, .more-btn.open .m-o { display: none; }
.more-btn.open .m-c { display: inline; }
.nav.menu-open .lang button[aria-pressed="true"] { color: var(--ink); }

/* round 5 */
.hero-facts { padding: 20px 8px; }
.hero-facts > div { gap: 12px; padding: 0 32px; }
.hero-facts dt { font-size: 16px; color: rgba(245, 246, 247, 0.72); }
.hero-facts dd { font-size: clamp(1.75rem, 1vw + 1.25rem, 2.25rem); font-weight: 700; }
/* photo sits bare, one progress line under it */
.frame { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.frame .shots { border-radius: 10px; }
.frame .meta { display: none; }
.steps { position: relative; gap: 0; margin-top: 24px; border-top: 1px solid var(--rule); --i: 0; }
.steps::before { content: ""; position: absolute; top: -1px; left: 0; width: 25%; height: 2px; background: var(--accent); transform: translateX(calc(var(--i) * 100%)); transition: transform 0.6s var(--ease); }
.steps > span, .steps > span.on { border-top: 0; padding-top: 14px; }
.steps > span.on { color: var(--ink); }
.inline-shot { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.inline-shot img { border-radius: 10px; }
/* work: cards come in right under the heading */
.drum { margin-top: -140px; }
@media (max-width: 900px) { .drum { margin-top: -150px; } }
@media (max-width: 640px) { .odm-top { margin-bottom: 56px; } }
.wheel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.wheel-nav[hidden] { display: none; }
.wheel-nav button { width: 52px; height: 52px; border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent; font: inherit; font-size: 20px; color: var(--ink); cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.wheel-nav button:hover { background: var(--ink); color: var(--paper); }
/* odm: air between header, rule and rows; no stacked rules */
.rows { border-top: 0; }
.rows-head { padding: 0 0 24px; border-bottom: 1px solid var(--night-rule); }
.row:last-child { border-bottom: 0; }
.row { padding: 40px 0; }
.chain b { font-size: 20px; color: #FFFFFF; }
.chain span { font-size: 17px; color: rgba(245, 246, 247, 0.74); }
@media (max-width: 640px) {
  .hero-facts { padding: 16px 0; gap: 16px 0; }
  .hero-facts > div { padding: 0 18px; gap: 4px; }
  .hero-facts dt { font-size: 14px; }
  .hero-facts dd { font-size: 26px; }

  .rows-head { display: none; }
  .rows-head + .row { padding-top: 0; }
}

/* round 6: one drum per field, switched by plain text tabs that stay under the bar */
.fields { position: sticky; top: 73px; z-index: 300; display: flex; gap: clamp(24px, 3vw, 40px); margin-top: 48px; padding: 16px 0 14px; background: linear-gradient(to bottom, var(--paper) 78%, rgba(245, 246, 247, 0)); }
.fields button { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; background: none; border: 0; font: inherit; font-size: clamp(1.25rem, 0.6vw + 1rem, 1.5rem); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); cursor: pointer; transition: color 0.3s var(--ease); }
.fields button small { font-size: 15px; font-weight: 500; color: var(--muted); }
.fields button:hover, .fields button[aria-selected="true"] { color: var(--ink); }
.fields button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.drum { margin-top: -200px; }
@media (max-width: 900px) { .drum { margin-top: -190px; } }
