/*
 * Korea FDI Desk — design tokens and layout (local draft, 2026-10-14)
 *
 * Identity, deliberately unlike Yoon Tax (Inter, royal blue #1B3A8C, white tiles)
 * and unlike the Korean "Primary" brand (warm clay / sand):
 *   - cool mist paper + deep pine ink
 *   - two stage colours used everywhere a stage is named:
 *       setup = teal (Joyce's stage) · run = burnt orange (Yoon's stage)
 *   - serif display (Fraunces) over a plain sans body (IBM Plex Sans)
 *   - text wordmark only; no drawn logo, no crest, no seal
 */
:root {
  --paper: #f3f6f4;
  --paper-2: #e7ede9;
  --card: #ffffff;
  --ink: #0e2a26;
  --body: #2f4741;
  --muted: #5d736d;
  --line: #cfdad5;
  --setup: #0f6b5c;
  --setup-soft: #d9ece7;
  --run: #b24a12;
  --run-soft: #f6e3d6;
  --hero: #0c2622;
  --hero-text: #eef4f1;
  --hero-muted: #a9c0b9;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--setup); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 76px 0; }
.alt { background: var(--paper-2); }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.lede { font-size: 1.15rem; color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Draft ribbon + placeholders — remove before any publication */
.draft { background: #2b2b2b; color: #f4d35e; font-size: 0.8rem; text-align: center; padding: 6px 12px; letter-spacing: 0.02em; }
.todo { border: 1.5px dashed var(--run); background: var(--run-soft); color: #6d2c08; padding: 1px 8px; border-radius: 4px; font-size: 0.92em; white-space: normal; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.wordmark { font-family: var(--display); font-size: 1.32rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 0.32em; }
.wordmark b { font-weight: 600; font-style: italic; color: var(--setup); }
.wordmark i { font-style: normal; display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--run); transform: translateY(-0.08em); }
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
nav.main a.top { padding: 6px 0; border-bottom: 2px solid transparent; display: inline-block; }
nav.main a.top:hover, nav.main a.top[aria-current="page"] { border-bottom-color: var(--run); }
.has-sub { position: relative; padding: 16px 0; }
.has-sub .sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 14px 30px rgba(14,42,38,0.12); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 400; }
.has-sub .sub a:hover { background: var(--paper-2); }
nav.main a.cta { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; border: 0; }
nav.main a.cta:hover { background: var(--setup); }
.nav-toggle, .nav-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.97rem; text-decoration: none; }
.btn.solid { background: var(--run); color: #fff; }
.btn.solid:hover { background: #8f3a0c; color: #fff; }
.btn.ghost { border: 1.5px solid currentColor; color: inherit; }
.btn.ghost:hover { background: rgba(255,255,255,0.1); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--setup); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: var(--hero); color: var(--hero-text); padding: 84px 0 0; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: italic; color: #f0a877; }
.hero .eyebrow { color: var(--hero-muted); }
.hero .lede { color: var(--hero-text); opacity: 0.92; margin-top: 22px; }
.page-head { background: var(--hero); color: var(--hero-text); padding: 64px 0 56px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; }
.page-head .eyebrow { color: var(--hero-muted); }
.page-head .lede { color: var(--hero-text); opacity: 0.9; margin: 18px 0 0; }

/* Stage track — the site's signature: setup hands over to running */
.track { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 64px; border-top: 1px solid rgba(255,255,255,0.16); }
.track .stage { padding: 28px 28px 34px 0; }
.track .stage + .join + .stage { padding-left: 28px; padding-right: 0; }
.track .join { width: 1px; background: rgba(255,255,255,0.16); position: relative; }
.track .join::after { content: "hand-over"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--hero); color: var(--hero-muted); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 10px; white-space: nowrap; }
.stage .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.stage .tag::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
.stage.setup .tag { color: #6fd1bd; }
.stage.run .tag { color: #f0a877; }
.stage q { display: block; font-family: var(--display); font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.25; color: #fff; margin: 14px 0 10px; quotes: "\201C" "\201D"; }
.stage cite { font-style: normal; font-size: 0.92rem; color: var(--hero-muted); }
.together { border-top: 1px solid rgba(255,255,255,0.16); padding: 22px 0 30px; font-family: var(--display); font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: #fff; }
.together span { color: var(--hero-muted); font-family: var(--sans); font-size: 0.9rem; display: block; margin-top: 4px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card.setup { border-top: 4px solid var(--setup); }
.card.run { border-top: 4px solid var(--run); }
.chip { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.chip.setup { background: var(--setup-soft); color: var(--setup); }
.chip.run { background: var(--run-soft); color: var(--run); }
.head-block { margin-bottom: 36px; }
.head-block p { margin-top: 14px; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; border-left: 2px solid var(--line); margin-left: 16px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: -17px; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--setup); color: #fff; font-weight: 600; font-size: 0.9rem; display: grid; place-items: center; }
.steps.run li::before { background: var(--run); }
.steps strong { color: var(--ink); display: block; }

/* Plain lists */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; }
ul.ticks li:last-child { border-bottom: 0; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--setup); }
ul.ticks.run li::before { background: var(--run); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 620px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 500; }
tr.em td { background: var(--run-soft); }
td .q { display: block; font-weight: 400; font-style: italic; color: var(--muted); font-size: 0.88em; }

/* People */
.person { display: grid; grid-template-columns: 96px 1fr; gap: 22px; }
.mono { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 2.3rem; color: #fff; }
.mono.setup { background: var(--setup); }
.mono.run { background: var(--run); }
.person .does { font-family: var(--display); font-size: 1.2rem; color: var(--ink); margin: 4px 0 12px; }
dl.facts { margin: 14px 0 0; font-size: 0.93rem; }
dl.facts div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; color: var(--ink); }

/* Insights */
.post-list a.card { display: block; text-decoration: none; color: inherit; }
.post-list a.card:hover { border-color: var(--ink); }
.meta { font-size: 0.85rem; color: var(--muted); }
article.post { max-width: 720px; margin: 0 auto; }
article.post h2 { font-size: 1.55rem; margin: 44px 0 14px; }
article.post h3 { margin: 26px 0 8px; font-size: 1.12rem; }
article.post ul { padding-left: 1.2em; }
article.post li { margin-bottom: 6px; }
.note { border-left: 4px solid var(--run); background: var(--run-soft); padding: 16px 20px; border-radius: 0 10px 10px 0; color: #4d2408; margin: 22px 0; }
.note.setup { border-left-color: var(--setup); background: var(--setup-soft); color: #093f36; }

/* Closing band */
.band { background: var(--ink); color: var(--hero-text); }
.band h2 { color: #fff; max-width: 22ch; }
.band p { color: var(--hero-text); opacity: 0.9; max-width: 58ch; margin-top: 14px; }

/* Footer */
footer.site { background: #091d1a; color: var(--hero-muted); padding: 52px 0 34px; font-size: 0.9rem; }
footer.site .wordmark { color: #fff; }
footer.site .wordmark b { color: #6fd1bd; }
footer.site a { color: var(--hero-text); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.2fr; gap: 32px; }
footer.site h4 { margin: 0 0 10px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-family: var(--sans); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 34px; padding-top: 20px; font-size: 0.84rem; line-height: 1.6; }
footer.site .legal p { margin-bottom: 8px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .g2, .g3, .split, footer.site .cols { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .hero { padding-top: 54px; }
  .track { grid-template-columns: 1fr; margin-top: 44px; }
  .track .stage, .track .stage + .join + .stage { padding: 24px 0; }
  .track .join { width: auto; height: 1px; }
  .track .join::after { top: -9px; }
  .nav-btn { display: inline-flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 0.9rem; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .has-sub { padding: 0; border-bottom: 1px solid var(--line); }
  nav.main a.top { display: block; padding: 13px 0 6px; border: 0; font-weight: 600; }
  .has-sub .sub { display: block; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 10px 12px; min-width: 0; }
  .has-sub .sub a { padding: 7px 0; color: var(--body); }
  nav.main a.cta { text-align: center; margin-top: 12px; }
  .nav-toggle:checked ~ nav.main { display: flex; }
  .person { grid-template-columns: 64px 1fr; gap: 16px; }
  .mono { width: 64px; height: 64px; font-size: 1.6rem; }
  dl.facts div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 860px) { .toc { columns: 1; } .cta-box { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Added for the benchmark-modelled structure (2026-10-14) ── */
.todo.block { display: block; padding: 14px 18px; margin: 14px 0; border-radius: 10px; }
a.card.link { display: block; text-decoration: none; color: inherit; }
a.card.link:hover { border-color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; font-weight: 400; color: var(--run); }
.faq details[open] summary::after { content: "2"; }
.faq details p { margin: 0 0 16px; max-width: 68ch; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 30px 0 8px; columns: 2; column-gap: 32px; font-size: 0.95rem; }
.toc strong { display: block; column-span: all; margin-bottom: 10px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: 4px 0; break-inside: avoid; }
article.post .table-scroll { margin: 16px 0; }
article.post table { min-width: 520px; }
article.post ol { padding-left: 1.3em; }
.cta-box { background: var(--ink); color: var(--hero-text); border-radius: 16px; padding: 34px; margin: 48px 0 8px; }
.cta-box h2 { color: #fff; }
.cta-box p { opacity: 0.9; }
.cat { margin-top: 48px; scroll-margin-top: 90px; }
.cat h2 { font-size: 1.6rem; margin-bottom: 18px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav a { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 16px; text-decoration: none; color: var(--ink); font-size: 0.92rem; background: var(--card); }
.cat-nav a:hover { border-color: var(--ink); }
[id] { scroll-margin-top: 90px; }

/* ── One-desk revision (2026-10-14): hero stages without quotes, growable team grid ── */
.stage .what { font-family: var(--display); font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.25; color: #fff; margin: 14px 0 8px; }
.stage .sub { font-size: 0.95rem; color: var(--hero-muted); margin: 0; max-width: 44ch; }
.grid.team { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* ══ Photos + decoration layer (2026-10-14) — tokens unchanged ══ */
/* photo behind hero / page head, with a pine gradient so white text keeps its contrast */
.hero, .page-head { position: relative; overflow: hidden; isolation: isolate; }
.hero > img.bg, .page-head > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-photo::before, .page-head.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,38,34,0.95) 0%, rgba(12,38,34,0.88) 42%, rgba(12,38,34,0.55) 72%, rgba(12,38,34,0.38) 100%),
    linear-gradient(180deg, rgba(12,38,34,0) 40%, rgba(12,38,34,0.92) 100%); }
.hero.has-photo { padding-top: 104px; }
.hero.has-photo .track, .hero.has-photo .together { backdrop-filter: blur(2px); }
.page-head.has-photo { padding: 92px 0 76px; }
.page-head.has-photo h1, .hero.has-photo h1, .page-head.has-photo .lede, .hero.has-photo .lede { text-shadow: 0 1px 18px rgba(6,22,19,0.55); }
/* heads without a photo: fine dot grid + a soft stage-colour glow */
.page-head.plain::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 260px at 88% 0%, rgba(15,107,92,0.55), transparent 70%),
    radial-gradient(420px 220px at 100% 100%, rgba(178,74,18,0.32), transparent 70%),
    radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.4px) 0 0 / 22px 22px; }
/* two-colour hairline under every dark head: setup teal running into run orange */
.hero::after, .page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--setup) 0%, #6fd1bd 35%, #f0a877 65%, var(--run) 100%); }
/* light sections: faint dot grid on the alternate band */
section.alt { background-image: radial-gradient(rgba(14,42,38,0.07) 1px, transparent 1.4px); background-size: 22px 22px; }
.band { position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 0 0 60px rgba(255,255,255,0.025), 0 0 0 130px rgba(255,255,255,0.02); }
.band::after { content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--setup), var(--run)); }
/* headings: short two-colour rule above the eyebrow */
.head-block .eyebrow::before, .split > div:first-child > .eyebrow::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--setup) 50%, var(--run) 50%); }
/* cards: depth + hover */
.card { box-shadow: 0 1px 0 rgba(14,42,38,0.04), 0 10px 26px -18px rgba(14,42,38,0.35); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(14,42,38,0.04), 0 22px 36px -20px rgba(14,42,38,0.45); }
.ico-wrap { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin: 0 0 14px; }
.ico-wrap + .chip { margin-left: 10px; vertical-align: top; margin-top: 11px; }
.ico-wrap.setup { background: var(--setup-soft); color: var(--setup); }
.ico-wrap.run { background: var(--run-soft); color: var(--run); }
.ico { width: 26px; height: 26px; }
a.card.link { position: relative; }
a.card.link .chip { display: block; width: max-content; }
a.card.link .ico-wrap { position: absolute; right: 22px; top: 22px; margin: 0; }
a.card.link::after { content: "\2192"; display: block; margin-top: 14px; color: var(--run); font-size: 1.2rem; transition: transform .18s ease; }
a.card.link:hover::after { transform: translateX(6px); }
/* numbered steps: the connector runs teal → orange */
.steps li { border-image: linear-gradient(180deg, var(--setup), var(--run)) 1; }
.steps li:last-child { border-image: none; }
/* wide photo band and guide tiles */
.wide-photo { margin: 44px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 8; box-shadow: 0 24px 44px -26px rgba(14,42,38,0.55); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 6px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; border-left: 4px solid var(--setup); }
.tile.run { border-left-color: var(--run); }
.tile b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.1; color: var(--ink); font-weight: 600; }
.tile span { font-size: 0.86rem; color: var(--muted); }
/* office cards */
.card.office { background-image: radial-gradient(rgba(14,42,38,0.06) 1px, transparent 1.4px); background-size: 18px 18px; background-position: right top; }
footer.site .legal a { color: var(--hero-muted); }
@media (max-width: 860px) {
  .hero.has-photo::before, .page-head.has-photo::before { background: linear-gradient(180deg, rgba(12,38,34,0.72) 0%, rgba(12,38,34,0.82) 55%, rgba(12,38,34,0.95) 100%); }
  .hero.has-photo { padding-top: 64px; }
  .page-head.has-photo { padding: 64px 0 54px; }
  .wide-photo { aspect-ratio: 16 / 10; margin-top: 30px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  .tile b { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .card, a.card.link::after { transition: none; } a.card:hover { transform: none; } }

/* ── Pexels swap (2026-10-14): category banner; darker veil where a shopfront sign is in frame ── */
.cat-photo { position: relative; margin: 0 0 22px; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 1; box-shadow: 0 20px 40px -26px rgba(14,42,38,0.55); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,38,34,0.62), rgba(12,38,34,0.38)); }
@media (max-width: 860px) { .cat-photo { aspect-ratio: 16 / 9; } }

/* ══ Head = text left + photo panel right (2026-10-14). The photo is never behind the text and is
   not cropped by the layout: the panel takes the image's own proportions. Overrides the earlier
   full-bleed 'cover' rules above. ══ */
.hero.has-photo::before, .page-head.has-photo::before { background:
    radial-gradient(620px 320px at 92% 0%, rgba(15,107,92,0.45), transparent 70%),
    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.page-head.has-photo, .hero.has-photo { padding: 64px 0 60px; }
.hero.has-photo { padding-bottom: 0; }
.head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.page-head.plain .head-grid { display: block; }
.head-text { min-width: 0; }
.page-head.has-photo h1, .hero.has-photo h1, .page-head.has-photo .lede, .hero.has-photo .lede { text-shadow: none; }
.head-panel { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: #0a1f1c;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.10); }
.head-panel img { display: block; width: 100%; height: auto; }
.head-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--setup) 0%, #6fd1bd 35%, #f0a877 65%, var(--run) 100%); }
.head-panel.wide { width: 520px; }
.head-panel.square { width: 440px; }
.head-panel.tall { width: 360px; }
.hero .head-panel.tall { width: 400px; }
.hero.has-photo .track { margin-top: 52px; backdrop-filter: none; }
.wide-photo { aspect-ratio: 16 / 9; max-width: 860px; margin-left: auto; margin-right: auto; }
.cat-photo { aspect-ratio: 4 / 3; max-width: 520px; }
.cat-photo::after { background: none; }
@media (max-width: 1040px) {
  .head-grid { gap: 36px; }
  .head-panel.wide { width: 400px; } .head-panel.square { width: 340px; }
  .head-panel.tall, .hero .head-panel.tall { width: 290px; }
}
@media (max-width: 860px) {
  .page-head.has-photo, .hero.has-photo { padding-top: 44px; }
  .page-head.has-photo { padding-bottom: 44px; }
  .hero.has-photo::before, .page-head.has-photo::before { background: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.4px) 0 0 / 22px 22px; }
  .head-grid { grid-template-columns: 1fr; gap: 28px; }
  .head-panel.wide, .head-panel.square { width: 100%; }
  .head-panel.tall, .hero .head-panel.tall { width: min(100%, 320px); }
  .wide-photo { aspect-ratio: 16 / 9; }
  .cat-photo { aspect-ratio: 4 / 3; }
}

/* team portrait in place of the initial circle */
.mono.photo { object-fit: cover; object-position: 50% 20%; background: var(--paper-2); display: block; }

/* clickable hero stages and focus rings for every link card (2026-10-14) */
a.stage.link { display: block; text-decoration: none; color: inherit; position: relative; border-radius: 14px; transition: background .18s ease, transform .18s ease; }
a.stage.link:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); }
.track a.stage.link { padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
.stage .go { display: inline-block; margin-top: 12px; font-size: 1.3rem; transition: transform .18s ease; }
.stage.setup .go { color: #6fd1bd; }
.stage.run .go { color: #f0a877; }
a.stage.link:hover .go { transform: translateX(6px); }
a.stage.link:focus-visible, a.card.link:focus-visible { outline: 3px solid #f0a877; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { a.stage.link, .stage .go { transition: none; } a.stage.link:hover { transform: none; } }
@media (max-width: 860px) { .track a.stage.link, .track .join + a.stage.link { padding: 22px 16px; margin: 0 -16px; } }

/* Cookie banner (only rendered when GA4_ID is set) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--card); color: var(--body); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(14,42,38,0.18); font-size: 0.93rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 280px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.cookie-actions .btn.ghost { background: transparent; color: var(--ink); }

/* ── Video (2026-10-20 draft: Episode 1 embed) ── */
.watch-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; }
.watch-text h2 { max-width: 20ch; }
.watch-points { margin: 18px 0 0; padding-left: 0; list-style: none; }
.watch-points li { position: relative; padding: 7px 0 7px 26px; color: var(--body); }
.watch-points li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--setup), var(--run)); }
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 18px 50px rgba(14, 42, 38, 0.22); cursor: pointer; }
.vid img, .vid video, .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vid video { cursor: auto; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); cursor: pointer; transition: transform .15s; }
.vid-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--run); }
.vid:hover .vid-play { transform: scale(1.06); }
.post-video { margin: 8px 0 34px; }
.post-video figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .watch-grid { grid-template-columns: 1fr; gap: 28px; } .watch-grid > .vid { order: -1; } }   /* 폰: 영상 먼저 */
