/* ==========================================================================
   Phosynd — shared design system
   Graphite base · ivory evidence surfaces · restrained red signal accent
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --g0: #0E0E10;            /* page */
  --g1: #16161A;            /* raised */
  --g2: #1F1F25;            /* raised 2 */
  --g3: #2A2A31;
  --ink: #F3F1EC;           /* warm white */
  --ink-2: #B9B6AE;         /* 9.6:1 on g0 */
  --ink-3: #8F8C85;         /* 5.6:1 on g0 */
  --line: rgba(243, 241, 236, 0.10);
  --line-2: rgba(243, 241, 236, 0.18);

  --ivory: #ECEAE4;
  --ivory-2: #E2DFD7;
  --ivory-3: #D6D2C8;
  --iv-ink: #16161A;
  --iv-ink-2: #45433E;      /* 8.9:1 on ivory */
  --iv-ink-3: #66635C;      /* 5.2:1 on ivory */
  --iv-line: rgba(22, 22, 26, 0.12);
  --iv-line-2: rgba(22, 22, 26, 0.22);

  --signal: #E66B59;        /* restrained red signal · 6.0:1 on g0 */
  --signal-soft: rgba(243, 241, 236, 0.05);   /* neutral fill — no tinted glows */
  --signal-iv: #A83B2D;     /* 5.2:1 on ivory */

  --font-kr: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-accent: "Newsreader", "Pretendard Variable", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 64px;
  --radius: 4px;
  --radius-lg: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--g0);
  color: var(--ink);
  font-family: var(--font-kr);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--ink); color: var(--g0); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.surface-ivory :focus-visible { outline-color: var(--signal-iv); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: var(--g0); font-weight: 700; font-size: 0.95rem;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 12vw, 168px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.surface-ivory { background: var(--ivory); color: var(--iv-ink); }
.surface-raised { background: var(--g1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(14, 14, 16, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.28em;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
}
.brand__mark { width: 10px; height: 10px; border-radius: 0; background: var(--signal); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 0.95rem; color: var(--ink-2); border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(243, 241, 236, 0.06); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after, .site-nav a[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); margin-left: 8px;
}
@media (max-width: 560px) {
  .brand { letter-spacing: 0.18em; font-size: 0.72rem; }
  .brand__text { display: none; }
  .site-nav a { padding: 0 10px; font-size: 0.9rem; }
  .site-nav a.is-active::after, .site-nav a[aria-current="page"]::after { display: none; }
}
@media (max-width: 360px) { .site-nav a { padding: 0 8px; font-size: 0.86rem; } }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--plain::before { display: none; }
.surface-ivory .eyebrow { color: var(--iv-ink-3); }
.display {
  font-weight: 800; font-size: clamp(3rem, 8.2vw, 8rem);
  line-height: 1.04; letter-spacing: -0.05em;
}
.h2 {
  font-weight: 780; font-size: clamp(2.1rem, 5.2vw, 4.6rem);
  line-height: 1.1; letter-spacing: -0.04em;
}
.h3 {
  font-weight: 720; font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.3; letter-spacing: -0.025em;
}
.h4 { font-weight: 700; font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.75; color: var(--ink-2); max-width: 40em; }
.surface-ivory .lead { color: var(--iv-ink-2); }
.muted { color: var(--ink-2); }
.surface-ivory .muted { color: var(--iv-ink-2); }
.accent-i { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.signal { color: var(--signal); }
.surface-ivory .signal { color: var(--signal-iv); }

/* Source label — every number carries one */
.src {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.02em;
  color: var(--ink-3);
}
.src::before { content: "근거"; font-family: var(--font-kr); font-weight: 600; letter-spacing: 0; }
.surface-ivory .src { color: var(--iv-ink-3); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 3px;
  font-size: 0.78rem; color: var(--ink-2); line-height: 1;
}
.surface-ivory .tag { border-color: var(--iv-line-2); color: var(--iv-ink-2); }
.tag--signal { border-color: var(--signal); background: none; color: var(--signal); }
.surface-ivory .tag--signal { border-color: var(--signal-iv); background: none; color: var(--signal-iv); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 2px;
  font-weight: 650; font-size: 1rem; line-height: 1;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--g0); }
.btn--primary:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); background: rgba(243, 241, 236, 0.04); }
.surface-ivory .btn--primary { background: var(--iv-ink); color: var(--ivory); }
.surface-ivory .btn--ghost { border-color: var(--iv-line-2); color: var(--iv-ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 650; color: var(--ink);
  border-bottom: 1px solid transparent;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.surface-ivory .link-arrow { color: var(--iv-ink); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title { margin-top: 28px; }
.hero__title .line { display: block; }
.hero__sub { margin-top: 28px; max-width: 34em; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; z-index: 1; min-height: 420px; }

.proofs {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.proof { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.proof + .proof { padding-left: 20px; border-left: 1px solid var(--line); }
.proof__num {
  font-weight: 760; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof__num small { font-size: 0.42em; font-weight: 650; letter-spacing: -0.01em; margin-left: 4px; color: var(--ink-2); }
.proof__label { font-weight: 650; font-size: 0.98rem; line-height: 1.4; }
.proof__scope { font-size: 0.84rem; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 1080px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  .proofs { grid-template-columns: 1fr; }
  .proof, .proof + .proof { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .proof:last-child { border-bottom: 0; }
}

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .h2 { margin-top: 20px; }
.section-head__aside { color: var(--ink-2); max-width: 30em; }
.surface-ivory .section-head__aside { color: var(--iv-ink-2); }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Work (selected cases) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.case {
  position: relative; display: flex; flex-direction: column;
  background: #F6F4EF; border: 1px solid var(--iv-line); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--iv-ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.case:hover { transform: translateY(-2px); border-color: var(--iv-ink); }
.case__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case__link:focus-visible { outline: none; }
.case:has(.case__link:focus-visible) { outline: 2px solid var(--signal-iv); outline-offset: 4px; }
.case__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--iv-ink-3); text-transform: uppercase; }
.case__num { color: var(--signal-iv); font-weight: 600; }
.case__title { font-weight: 780; letter-spacing: -0.035em; line-height: 1.15; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.case__desc { color: var(--iv-ink-2); font-size: 1rem; line-height: 1.7; }
.case__facts { display: grid; gap: 10px; margin-top: 6px; }
.case__fact { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 0.95rem; line-height: 1.6; }
.case__fact dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--iv-ink-3); padding-top: 3px; text-transform: uppercase; }
.case__fact dd { color: var(--iv-ink); }
.case__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--iv-line); }
.case__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.case__cta svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.case:hover .case__cta svg { transform: translateX(4px); }
.case__visual { position: relative; background: var(--g0); color: var(--ink); overflow: hidden; }
.case__visual--ivory { background: var(--ivory-2); color: var(--iv-ink); }

.case--flagship { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.case--flagship .case__title { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.case--flagship .case__visual { min-height: 460px; }
.case--half { grid-column: span 6; }
.case--half .case__visual { aspect-ratio: 16 / 10; }
@media (max-width: 960px) {
  .case--flagship { grid-template-columns: 1fr; }
  .case--flagship .case__visual { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .case--half { grid-column: span 12; }
}

/* Pipeline mini diagram (flagship visual) */
.pipe { position: absolute; inset: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pipe__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 6px; }
.pipe__row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(243, 241, 236, 0.02); }
.pipe__row .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); }
.pipe__row .t { font-weight: 650; font-size: 0.98rem; }
.pipe__row .d { font-size: 0.8rem; color: var(--ink-3); font-family: var(--font-mono); }
.pipe__row--ai { border-color: var(--line-2); box-shadow: inset 2px 0 0 var(--signal); }
.pipe__row--ai .n, .pipe__row--ai .d { color: var(--signal); }
.pipe__row--gate { border-style: dashed; border-color: var(--line-2); }
.pipe__row--human { background: rgba(243, 241, 236, 0.06); }
@media (max-width: 560px) { .pipe__row .d { display: none; } .pipe__row { padding: 9px 12px; } }

/* Screenshot frame */
.shot { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; }
.shot__frame { width: 100%; border-radius: 4px 4px 0 0; overflow: hidden; border: 1px solid var(--iv-line-2); border-bottom: 0; background: #fff; }
.shot__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F1F0EC; border-bottom: 1px solid var(--iv-line); }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ivory-3); }
.shot__bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--iv-ink-3); }
.shot__frame img { width: 100%; }

/* Reconcile visual (creator data) */
.recon { position: absolute; inset: 0; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.recon__cols { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 8px; }
.recon__col { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.recon__col b { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.recon__col span { font-weight: 760; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.recon__col em { font-style: normal; font-size: 0.8rem; color: var(--ink-3); }
.recon__arrow { color: var(--signal); display: grid; place-items: center; }
.recon__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recon__cell { padding: 12px 14px; border-radius: 10px; background: rgba(243, 241, 236, 0.04); display: grid; gap: 2px; }
.recon__cell span { font-weight: 720; font-size: 1.15rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.recon__cell em { font-style: normal; font-size: 0.74rem; color: var(--ink-3); line-height: 1.4; }
.recon__cell--signal { background: var(--signal-soft); }
.recon__cell--signal span { color: var(--signal); }
.recon__head { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- How it runs ---------- */
.runs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.runs__system { position: sticky; top: calc(var(--header-h) + 24px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--g1); padding: clamp(16px, 2vw, 24px); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.role { background: var(--g0); padding: 18px 20px; display: grid; gap: 4px; }
.role__name { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
.role__name::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }
.role__sum { font-size: 0.86rem; color: var(--ink-2); line-height: 1.55; }
.role--op { grid-column: span 2; background: var(--g1); }
.role--op .role__name::before { background: var(--ink); border-radius: 0; }
@media (max-width: 960px) { .runs { grid-template-columns: 1fr; } .runs__system { position: relative; top: 0; } }
@media (max-width: 480px) { .roles { grid-template-columns: 1fr; } .role--op { grid-column: auto; } }

.principles { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line-2); }
.principle { display: grid; grid-template-columns: 88px minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 40px; padding-block: clamp(28px, 3.4vw, 44px); border-bottom: 1px solid var(--line); align-items: baseline; }
.principle__n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); }
.principle__t { font-weight: 780; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -0.035em; }
.principle__d { color: var(--ink-2); font-size: 0.98rem; line-height: 1.7; }
@media (max-width: 900px) { .principle { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Before (career) ---------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.tl { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 40px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.tl__when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); padding-top: 6px; }
.tl__what .h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.tl__role { margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); }
.tl__detail { color: var(--ink-2); font-size: 0.96rem; }
.tl__detail ul { display: grid; gap: 10px; }
.tl__detail li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; line-height: 1.6; }
.tl__detail li::before { content: ""; width: 6px; height: 1px; background: var(--ink-3); margin-top: 0.85em; }
.tl__detail strong { color: var(--ink); font-weight: 650; }
.tl--now .tl__when { color: var(--signal); }
@media (max-width: 900px) { .tl { grid-template-columns: 1fr; gap: 8px; } }

.side-projects { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--g1); }
.sp__kind { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.sp__title { font-weight: 720; font-size: 1.2rem; letter-spacing: -0.02em; }
.sp__desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.65; }
.sp__foot { margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .side-projects { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.04); mix-blend-mode: multiply; }
.about__photo figcaption { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--iv-ink-2); text-transform: uppercase; }
.about__quote { font-weight: 780; font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1.2; letter-spacing: -0.04em; margin-top: 20px; }
.about__text { margin-top: 28px; display: grid; gap: 14px; color: var(--iv-ink-2); max-width: 36em; }
.facts-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.teaser {
  margin-top: 40px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  padding: 24px 28px; border-radius: var(--radius); background: var(--iv-ink); color: var(--ink);
  position: relative; transition: transform 0.3s var(--ease);
}
.teaser:hover { transform: translateY(-2px); }
.teaser__k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.teaser__t { margin-top: 6px; font-weight: 720; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.4; }
.teaser svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 420px; } }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact__big {
  display: inline-block; margin-top: 28px;
  font-weight: 800; font-size: clamp(2rem, 7vw, 6.4rem); letter-spacing: -0.05em; line-height: 1.02;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.5s var(--ease);
  overflow-wrap: anywhere;
}
.contact__big:hover { background-size: 100% 2px; }
.contact__rows { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line-2); padding-top: 24px; }
.contact__rows dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.contact__rows dd { margin-top: 6px; font-size: 1.02rem; }
.contact__rows a { display: inline-flex; min-height: 44px; align-items: center; }
.contact__rows a:hover { color: var(--signal); }
@media (max-width: 720px) { .contact__rows { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; color: var(--ink-3); font-size: 0.84rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }

/* ==========================================================================
   Case detail pages
   ========================================================================== */
.case-hero { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--ink-3); }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.case-hero__title { margin-top: 24px; font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: 1.06; letter-spacing: -0.05em; max-width: 14em; }
.case-hero__lead { margin-top: 28px; }
.case-meta { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.case-meta > div { padding: 18px 20px 0 0; }
.case-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.case-meta dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.case-meta dd { margin-top: 6px; font-size: 0.98rem; line-height: 1.55; }
@media (max-width: 860px) {
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .case-meta > div { padding-bottom: 16px; }
}

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.doc__toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 2px; }
.doc__toc a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-left: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-3); transition: color 0.2s, border-color 0.2s; }
.doc__toc a:hover, .doc__toc a.is-active { color: var(--ink); border-color: var(--signal); }
.doc__body { max-width: 820px; }
.doc__body > section + section { margin-top: clamp(64px, 8vw, 104px); }
.doc__body h2 { font-weight: 780; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.035em; }
.doc__body h2 + p, .doc__body h2 + .eyebrow { margin-top: 16px; }
.doc__body h3 { font-weight: 700; font-size: 1.2rem; margin-top: 36px; letter-spacing: -0.015em; }
.doc__body p { color: var(--ink-2); margin-top: 16px; }
.doc__body p strong, .doc__body li strong { color: var(--ink); font-weight: 650; }
.doc__body ul.list { margin-top: 16px; display: grid; gap: 10px; color: var(--ink-2); }
.doc__body ul.list li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.doc__body ul.list li::before { content: ""; width: 7px; height: 1px; background: var(--ink-3); margin-top: 0.9em; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; } .doc__toc { display: none; } }

.callout { margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--g1); color: var(--ink-2); font-size: 0.96rem; }
.callout b { color: var(--ink); }
.callout--signal { border-color: var(--line-2); box-shadow: inset 2px 0 0 var(--signal); background: var(--g1); }

.stat-row { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--g0); padding: 22px; display: grid; gap: 6px; align-content: start; }
.stat__num { font-weight: 760; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 0.45em; margin-left: 3px; color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.stat__label { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }

/* Tables (attempt logs / registry) */
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.tbl { min-width: 640px; font-size: 0.92rem; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.tbl th { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; background: var(--g1); position: sticky; top: 0; }
.tbl td { color: var(--ink-2); }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 0.82rem; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.st--adopt::before { background: var(--signal); }
.st--adopt { color: var(--ink); }
.st--drop { color: var(--ink-3); }
.st--fail::before { background: transparent; border: 1px solid var(--ink-3); }

/* Stepper (pipeline walkthrough) */
.stepper { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--g1); }
.stepper__tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.stepper__tab {
  flex: 1 0 auto; min-height: 56px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: var(--ink-3); border-right: 1px solid var(--line); white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.stepper__tab:last-child { border-right: 0; }
.stepper__tab .n { font-family: var(--font-mono); font-size: 0.72rem; }
.stepper__tab:hover { color: var(--ink); }
.stepper__tab[aria-selected="true"] { color: var(--ink); background: var(--g0); box-shadow: inset 0 -2px 0 var(--signal); }
.stepper__tab--ai .n { color: var(--signal); }
.stepper__panel { padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.stepper__panel[hidden] { display: none; }
.stepper__panel h3 { grid-column: 1 / -1; margin-top: 0 !important; font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important; }
.io { display: grid; gap: 6px; }
.io dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.io dd { color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; }
.io--fix { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line-2); }
.io--fix dt { color: var(--signal); }
@media (max-width: 720px) { .stepper__panel { grid-template-columns: 1fr; } }
/* no-JS: show all panels stacked */
html:not(.js) .stepper__tabs { display: none; }
html:not(.js) .stepper__panel[hidden] { display: grid; border-top: 1px solid var(--line); }

/* Figure (system diagram) */
.fig { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--g1); padding: clamp(16px, 3vw, 32px); overflow-x: auto; }
.fig svg { width: 100%; height: auto; min-width: 560px; }
.fig figcaption { margin-top: 14px; font-size: 0.84rem; color: var(--ink-3); }

/* Details (registry groups) */
.reg { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--g1); overflow: hidden; }
.reg + .reg { margin-top: 10px; }
.reg summary { list-style: none; cursor: pointer; min-height: 60px; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; }
.reg summary::-webkit-details-marker { display: none; }
.reg summary .h4 { display: flex; align-items: center; gap: 10px; }
.reg summary .h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.reg summary .count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }
.reg summary .chev { width: 18px; height: 18px; transition: transform 0.25s var(--ease); color: var(--ink-3); }
.reg[open] summary .chev { transform: rotate(180deg); }
.reg summary:hover { background: rgba(243, 241, 236, 0.03); }
.reg .table-wrap { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }

/* Next case nav */
.next-case { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-case a { position: relative; display: grid; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.2s, background 0.2s; }
.next-case a:hover { border-color: var(--line-2); background: var(--g1); }
.next-case .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.next-case .t { font-weight: 720; font-size: 1.3rem; letter-spacing: -0.02em; }
@media (max-width: 720px) { .next-case { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion — content is visible without JS; JS opts elements into reveal
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal.d1 { transition-delay: 0.08s; }
  html.js .reveal.d2 { transition-delay: 0.16s; }
  html.js .reveal.d3 { transition-delay: 0.24s; }
  html.js .reveal.d4 { transition-delay: 0.32s; }

  html.js .hero__title .line { opacity: 0; transform: translateY(0.35em); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  html.js .hero__title.in .line { opacity: 1; transform: none; }
  html.js .hero__title.in .line:nth-child(2) { transition-delay: 0.1s; }
  html.js .hero__title.in .line:nth-child(3) { transition-delay: 0.2s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .skip, .hero__visual, .runs__system { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Header right: nav + language ---------- */
.header-right { display: flex; align-items: center; gap: 6px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 3px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.lang:hover { color: var(--ink); border-color: var(--ink-2); }
@media (max-width: 560px) {
  .site-header .wrap { gap: 4px; padding-inline: clamp(12px, 3vw, 20px); }
  .site-header .brand { flex: 0 0 44px; justify-content: center; }
  .header-right { gap: 2px; }
  .site-nav { gap: 0; }
  .site-nav a { min-width: 44px; justify-content: center; padding-inline: 8px; white-space: nowrap; }
  .lang { min-width: 44px; flex-shrink: 0; padding: 0 8px; }
}
@media (max-width: 360px) {
  .site-header .site-nav a { padding-inline: 4px; font-size: .78rem; }
}

/* ---------- Footnotes: sources & dates stay small ---------- */
.fn { font-size: 0.5em; font-weight: 600; vertical-align: super; line-height: 0; margin-left: 2px; letter-spacing: 0; }
.fn a { display: inline-block; min-width: 1.4em; padding: 0.2em 0.1em; color: var(--signal); font-family: var(--font-mono); text-align: center; }
.surface-ivory .fn a { color: var(--signal-iv); }
.fn a:hover { text-decoration: underline; }
.notes { margin-top: 28px; display: grid; gap: 4px; counter-reset: note; font-size: 0.78rem; line-height: 1.6; color: var(--ink-3); }
.notes li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; counter-increment: note; scroll-margin-top: calc(var(--header-h) + 24px); }
.notes li::before { content: counter(note); font-family: var(--font-mono); color: var(--signal); }
.notes li:target { color: var(--ink); }
.surface-ivory .notes { color: var(--iv-ink-3); }
.surface-ivory .notes li::before { color: var(--signal-iv); }
.surface-ivory .notes li:target { color: var(--iv-ink); }

/* ==========================================================================
   Home — opener · workbench · mind · lab · path
   ========================================================================== */
.opener { position: relative; overflow: clip; padding-block: clamp(36px, 6vw, 96px) clamp(48px, 6vw, 88px); }
.opener::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: none;
}
.opener__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.opener__title { margin-top: 26px; font-weight: 820; font-size: clamp(2.8rem, 7.4vw, 7.8rem); line-height: 1.02; letter-spacing: -0.055em; }
.opener__title .line { display: block; }
.opener__title .line--indent { padding-left: 0.9em; }
.opener__title .dim { color: var(--ink-3); }
.opener__lead { margin-top: 32px; max-width: 33em; font-size: clamp(1.06rem, 1.45vw, 1.26rem); color: var(--ink-2); }
.opener__lead strong { color: var(--ink); font-weight: 650; }
.opener__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.opener__visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; min-width: 0; }
.opener__visual .hero-visual { max-width: 520px; margin-left: auto; }
.opener .proofs { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 1080px) {
  .opener__grid { grid-template-columns: 1fr; }
  .opener__visual .hero-visual { margin-inline: auto; max-width: 460px; }
  .opener__title .line--indent { padding-left: 0.5em; }
}

/* Section heading, editorial & asymmetric */
.shead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.shead__title { margin-top: 18px; font-weight: 800; font-size: clamp(2.3rem, 5.8vw, 5.4rem); line-height: 1.06; letter-spacing: -0.05em; }
.shead__aside { color: var(--ink-2); font-size: 1rem; line-height: 1.7; max-width: 26em; padding-bottom: 8px; }
.surface-ivory .shead__aside { color: var(--iv-ink-2); }
@media (max-width: 900px) { .shead { grid-template-columns: 1fr; } }

/* ---------- Workbench ---------- */
.bench { display: grid; grid-template-columns: minmax(250px, 0.78fr) minmax(0, 2.22fr); border-top: 1px solid var(--line-2); }
.bench__list { display: flex; flex-direction: column; padding-top: 8px; }
.bench__tab {
  position: relative; text-align: left; width: 100%;
  display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: start;
  padding: 20px 20px 20px 0; min-height: 44px;
  border-bottom: 1px solid var(--line); color: var(--ink-3);
  transition: color 0.25s var(--ease);
}
.bench__tab .n { font-family: var(--font-mono); font-size: 0.74rem; padding-top: 5px; }
.bench__tab .q { font-weight: 700; font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.45; letter-spacing: -0.015em; }
.bench__tab .k { grid-column: 2; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.bench__tab:hover { color: var(--ink-2); }
.bench__tab[aria-selected="true"] { color: var(--ink); }
.bench__tab[aria-selected="true"] .n { color: var(--signal); }
.bench__tab[aria-selected="true"]::before { content: ""; position: absolute; left: -16px; top: 20px; bottom: 20px; width: 2px; background: var(--signal); border-radius: 2px; }
.bench__panels { border-left: 1px solid var(--line); padding: 36px 0 12px clamp(24px, 4vw, 56px); min-width: 0; }
.bench__panel[hidden] { display: none; }
html:not(.js) .bench { grid-template-columns: 1fr; }
html:not(.js) .bench__list { display: none; }
html:not(.js) .bench__panels { border-left: 0; padding-left: 0; }
html:not(.js) .bench__panel[hidden] { display: block; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 40px; }
.bench__k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bench__q { margin-top: 14px; font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 3.5rem); line-height: 1.12; letter-spacing: -0.045em; max-width: 15em; }
.bench__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
@media (max-width: 960px) {
  .bench { grid-template-columns: 1fr; }
  .bench__list { flex-direction: row; overflow-x: auto; gap: 8px; padding: 0 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .bench__list::-webkit-scrollbar { display: none; }
  .bench__tab { flex: 0 0 auto; width: auto; max-width: 250px; grid-template-columns: auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; }
  .bench__tab .q { font-size: 0.95rem; white-space: normal; }
  .bench__tab .n, .bench__tab .k { display: none; }
  .bench__tab[aria-selected="true"] { border-color: var(--ink); background: none; box-shadow: inset 0 -2px 0 var(--signal); }
  .bench__tab[aria-selected="true"]::before { display: none; }
  .bench__panels { border-left: 0; padding: 28px 0 0; }
}

/* 판단 · 위임 · 검증 path — shared visual language */
.path { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; position: relative; }
.path__col { position: relative; padding: 0 28px 0 0; }
.path__col + .path__col { padding-left: 28px; border-left: 1px solid var(--line); }
.path__col + .path__col::before {
  content: ""; position: absolute; left: -7px; top: 5px; width: 13px; height: 13px;
  border-top: 1px solid var(--signal); border-right: 1px solid var(--signal); transform: rotate(45deg);
  background: var(--g0);
}
.path__h { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); display: flex; gap: 10px; align-items: baseline; }
.path__h b { font-family: var(--font-kr); font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); font-weight: 750; text-transform: none; }
.path__txt { margin-top: 14px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.7; }
.path__txt strong { color: var(--ink); font-weight: 650; }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; gap: 28px; }
  .path__col, .path__col + .path__col { padding: 0 0 0 20px; border-left: 1px solid var(--line); }
  .path__col + .path__col::before { left: -7px; top: -20px; transform: rotate(135deg); }
}

.lanes { margin-top: 14px; display: grid; gap: 8px; }
.lane { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
.lane b { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 500; padding-top: 2px; }
.lane--ai { background: rgba(243, 241, 236, 0.04); box-shadow: inset 2px 0 0 var(--signal); }
.lane--ai b { color: var(--signal); }
.lane--rule { border: 1px dashed var(--line-2); }
.lane--rule b { color: var(--ink-2); }
.lane--human { background: rgba(243, 241, 236, 0.07); }
.lane--human b { color: var(--ink); }
.surface-ivory .lane { color: var(--iv-ink-2); }
.surface-ivory .lane--ai { background: rgba(22, 22, 26, 0.03); box-shadow: inset 2px 0 0 var(--signal-iv); }
.surface-ivory .lane--ai b { color: var(--signal-iv); }
.surface-ivory .lane--rule { border-color: var(--iv-line-2); }
.surface-ivory .lane--human { background: rgba(22, 22, 26, 0.05); }

.vlist { margin-top: 14px; display: grid; gap: 16px; }
.vlist li { display: grid; gap: 2px; }
.vlist .v { font-weight: 780; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vlist .v small { font-size: 0.5em; font-weight: 650; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.vlist .l { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Mind ---------- */
.mind-lede { font-weight: 800; font-size: clamp(2rem, 4.6vw, 4.3rem); line-height: 1.12; letter-spacing: -0.045em; max-width: 16em; }
.mind-lede .dim { color: var(--iv-ink-3); }
.traits { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--iv-line-2); }
.trait { grid-column: span 4; padding: 28px 28px 36px 0; border-bottom: 1px solid var(--iv-line); display: flex; flex-direction: column; gap: 10px; }
.trait:nth-child(3n+2), .trait:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--iv-line); }
.trait__n { font-family: var(--font-mono); font-size: 0.74rem; color: var(--signal-iv); letter-spacing: 0.06em; }
.trait__k { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.15; }
.trait__k span { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; font-weight: 500; color: var(--iv-ink-3); text-transform: uppercase; margin-bottom: 6px; }
.trait__d { color: var(--iv-ink-2); font-size: 0.96rem; line-height: 1.72; }
.trait__a { margin-top: auto; padding-top: 6px; }
.trait__a a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; font-size: 0.9rem; color: var(--iv-ink); }
.trait__a a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.trait__a svg { width: 14px; height: 14px; }
@media (max-width: 960px) {
  .trait { grid-column: span 6; }
  .trait:nth-child(3n+2), .trait:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .trait:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--iv-line); }
}
@media (max-width: 600px) {
  .trait, .trait:nth-child(2n) { grid-column: span 12; padding-left: 0; border-left: 0; padding-right: 0; }
}

/* Stage gate strip */
.gates { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2.25fr); gap: 24px 56px; align-items: start; }
.gates__quote { font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.035em; }
.gates__quote small { display: block; margin-top: 14px; font-weight: 500; font-size: 0.86rem; letter-spacing: 0; color: var(--iv-ink-3); line-height: 1.6; }
.gates__row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; counter-reset: gate; }
.gate { position: relative; padding: 16px 12px 16px 0; border-top: 2px solid var(--iv-ink); display: grid; gap: 6px; align-content: start; }
.gate::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--iv-ink); }
.gate--key { border-top-color: var(--signal-iv); }
.gate--key::after { background: var(--signal-iv); border-color: var(--signal-iv); }
.gate b { font-family: var(--font-mono); font-size: 0.72rem; color: var(--iv-ink-3); font-weight: 500; }
.gate span { font-weight: 750; font-size: 0.98rem; letter-spacing: -0.01em; }
.gate em { font-style: normal; font-size: 0.8rem; color: var(--iv-ink-3); line-height: 1.5; }
@media (max-width: 1080px) { .gates { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .gates__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .gate { padding-right: 16px; }
}

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.lab__item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--g1); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.lab__item--wide { grid-column: span 7; }
.lab__item--side { grid-column: span 5; display: grid; gap: clamp(16px, 2vw, 24px); background: none; border: 0; padding: 0; }
.lab__item--side > .lab__item { height: 100%; }
.lab__k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.lab__t { font-weight: 780; font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.2; }
.lab__d { color: var(--ink-2); font-size: 0.95rem; line-height: 1.7; }
.lab__d strong { color: var(--ink); font-weight: 650; }
@media (max-width: 960px) { .lab__item--wide, .lab__item--side { grid-column: span 12; } }

/* Before / after compare */
.compare { position: relative; margin-top: 6px; border-radius: 12px; overflow: hidden; aspect-ratio: 900 / 700; background: #fff; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--signal); pointer-events: none; }
.compare__line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 44px; margin: -22px 0 0 -7px; border-radius: 2px; background: var(--signal); }
.compare__tag { position: absolute; top: 10px; padding: 4px 9px; border-radius: 2px; font-family: var(--font-mono); font-size: 0.68rem; background: rgba(14, 14, 16, 0.78); color: var(--ink); }
.compare__tag--l { left: 10px; }
.compare__tag--r { right: 10px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__range:focus-visible + .compare__line::after { outline: 2px solid var(--ink); outline-offset: 2px; }
html:not(.js) .compare { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
html:not(.js) .compare img { position: static; aspect-ratio: 900 / 700; }
html:not(.js) .compare__after { clip-path: none; }
html:not(.js) .compare__line, html:not(.js) .compare__range { display: none; }

/* ---------- Path (career) ---------- */
.career { border-top: 1px solid var(--line-2); }
.career__row { display: grid; grid-template-columns: 150px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 12px 40px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.career__when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); padding-top: 6px; }
.career__row--now .career__when { color: var(--signal); }
.career__what b { display: block; font-weight: 750; font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.3; }
.career__what span { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--ink-2); }
.career__detail { display: grid; gap: 12px; }
.career__detail li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }
.career__detail li:last-child { border-bottom: 0; padding-bottom: 0; }
.career__detail li strong { color: var(--ink); font-weight: 650; }
.career__detail .num { font-weight: 760; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .career__row { grid-template-columns: 1fr; gap: 10px; }
  .career__detail li { grid-template-columns: 1fr; gap: 4px; }
}

/* Mind top + engine */
.mind-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 24px 56px; align-items: end; margin-top: 22px; }
.mind-sub { color: var(--iv-ink-2); font-size: 1rem; line-height: 1.75; max-width: 26em; padding-bottom: 10px; }
.mind-engine { margin-top: clamp(40px, 5vw, 72px); border-radius: var(--radius-lg); overflow: hidden; background: var(--g0); color: var(--ink); padding: clamp(20px, 4vw, 56px); }
.mind-engine thinking-engine { display: block; }
.mind-engine thinking-engine > p { padding: 24px 0; font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.mind-view { display: grid; grid-template-columns: minmax(120px, .32fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 80px); row-gap: 20px; margin-top: clamp(48px, 7vw, 104px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--iv-line); border-bottom: 1px solid var(--iv-line); }
.mind-view__label { color: var(--signal-iv); font-family: var(--font-mono); font-size: .75rem; line-height: 1.6; letter-spacing: .08em; padding-top: 7px; }
.mind-view blockquote { margin: 0; color: var(--iv-ink); font-size: clamp(1.6rem, 3.1vw, 2.6rem); font-weight: 650; line-height: 1.5; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.mind-view__body { grid-column: 2; max-width: 46em; color: var(--iv-ink-2); font-size: 1rem; line-height: 1.85; word-break: keep-all; overflow-wrap: break-word; }
@media (max-width: 900px) { .mind-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mind-view { grid-template-columns: 1fr; row-gap: 16px; } .mind-view__body { grid-column: 1; } .mind-view__label { padding-top: 0; } }

/* About band */
.about-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7.2; background: var(--ivory-2); }
.about-band img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.about-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(14, 14, 16, 0.55)); color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.about2 { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.about2 .about__quote { margin-top: 0; }
.about2 .about__text { margin-top: 0; }
.about__identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; color: var(--iv-ink); font-size: .94rem; font-weight: 600; }
.about__identity span { color: var(--iv-ink-3); font-family: var(--font-mono); font-size: .75rem; font-weight: 400; }
.notes .note-back { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-size: .75rem; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .about-band { aspect-ratio: 4 / 3; } .about2 { grid-template-columns: 1fr; } }

/* Short desktop (e.g. 1280×720): keep CTA above the fold */
@media (min-width: 1081px) and (max-height: 820px) {
  .opener { padding-block: 28px 48px; }
  .opener__title { margin-top: 16px; font-size: clamp(2.8rem, 6.2vw, 6.4rem); }
  .opener__lead { margin-top: 20px; font-size: 1.04rem; line-height: 1.7; }
  .opener__cta { margin-top: 22px; }
  .opener__visual .hero-visual { max-width: 440px; }
}

/* Workbench media (real visual inside a problem panel) */
.bench__media { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px 24px; align-items: end; }
.bench__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); border: 1px solid var(--line); }
.bench__media figcaption { display: grid; gap: 6px; font-size: 0.84rem; line-height: 1.6; color: var(--ink-3); }
.bench__media figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bench__media figcaption a:hover { color: var(--signal); }
.bench__media figcaption em { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-3); }
@media (max-width: 720px) { .bench__media { grid-template-columns: 1fr; } }
.bench__media--preview { grid-template-columns: 180px minmax(0, 1fr); align-items: center; margin-top: 24px; }
.bench__media--preview img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
@media (max-width: 720px) { .bench__media--preview { grid-template-columns: 120px minmax(0, 1fr); } }

/* Hero: one primary action, contact as quiet text link */
.opener__cta { align-items: center; gap: 12px 28px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.98rem; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line-2); transition: color 0.2s, text-decoration-color 0.2s; }
.text-link:hover { color: var(--ink); text-decoration-color: var(--signal); }
.opener__lead { max-width: 26em; font-size: clamp(1.12rem, 1.6vw, 1.38rem); line-height: 1.6; color: var(--ink-2); }
.opener .proofs { border-top-color: var(--line-2); }
.opener .notes { margin-top: 18px; opacity: 0.9; }

/* The first screen is readable from the first paint. Arrival motion never
   gates the headline, portrait or primary action behind an observer. */
html.js .opener .reveal,
html.js .opener .hero__title .line { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .opener .hero__title .line { animation: opener-arrive .65s var(--ease) both; }
  html.js .opener .hero__title .line:nth-child(2) { animation-delay: .06s; }
  html.js .opener .hero__title .line:nth-child(3) { animation-delay: .12s; }
  @keyframes opener-arrive { from { transform: translateY(.12em); } to { transform: none; } }
}
@media (max-width: 560px) {
  .opener .eyebrow { font-size: .625rem; letter-spacing: .12em; }
  .opener__visual .hero-visual { max-width: 300px; }
  .opener .proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
  .opener .proof, .opener .proof + .proof { padding: 18px 10px 0 0; border-bottom: 0; gap: 8px; }
  .opener .proof + .proof { padding-left: 10px; border-left: 1px solid var(--line); }
  .opener .proof:last-child { padding-right: 0; }
  .opener .proof__num { font-size: clamp(1.35rem, 5.8vw, 1.8rem); white-space: nowrap; }
  .opener .proof__label { font-size: .78rem; line-height: 1.5; }
  .opener .proof__scope { font-size: .68rem; line-height: 1.5; }
  .opener .notes { font-size: .68rem; line-height: 1.55; }
}
@media (max-width: 360px) {
  .opener .proof__num { font-size: 1.15rem; }
  .opener .proof__num small { margin-left: 2px; }
}

/* Home as a visual index; full reasoning lives in each case study. */
.pg-home #work { padding-top: clamp(64px, 7vw, 96px); }
.pg-home .shead { margin-bottom: clamp(36px, 4vw, 56px); }
.pg-home .shead__title { font-size: clamp(2.3rem, 4.8vw, 4.6rem); font-weight: 750; }
.pg-home .bench__q { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 720; line-height: 1.2; text-wrap: balance; }
.pg-home work-scene { margin-top: 28px; }
.pg-home .bench__k { font-size: .67rem; letter-spacing: .04em; }
.pg-home .case-summary { max-width: 44em; margin-top: 24px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.pg-home .case-summary strong { color: var(--ink); font-weight: 650; }
.pg-home .case-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; border-block: 1px solid var(--line); }
.pg-home .case-results li { display: grid; align-content: start; gap: 9px; padding: 22px 20px 24px 0; }
.pg-home .case-results li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.pg-home .case-results .v { color: var(--ink); font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pg-home .case-results .v small { margin-left: 5px; color: var(--ink-2); font-size: .38em; font-weight: 500; letter-spacing: 0; }
.pg-home .case-results .l { color: var(--ink-2); font-size: .79rem; line-height: 1.6; }
.pg-home .case-screen { margin-top: 28px; }
.pg-home .case-screen > a { display: block; overflow: hidden; border: 1px solid var(--line-2); background: var(--ivory); }
.pg-home .case-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; transition: transform .5s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .pg-home .case-screen a:hover img { transform: scale(1.025); } }
.pg-home .case-screen figcaption { margin-top: 10px; color: var(--ink-3); font-family: var(--font-mono); font-size: .65rem; }
.pg-home .source-notes { margin-top: 20px; color: var(--ink-3); font-size: .75rem; }
.pg-home .source-notes summary { display: flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; cursor: pointer; list-style: none; }
.pg-home .source-notes summary::-webkit-details-marker { display: none; }
.pg-home .source-notes summary::before { content: '+'; font-family: var(--font-mono); font-size: 1rem; color: var(--signal); }
.pg-home .source-notes[open] summary::before { content: '−'; }
.pg-home .source-notes .notes { margin-top: 8px; }
.pg-home .source-notes summary:hover { color: var(--ink); }
.pg-home .trait__k { font-weight: 680; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.25; }
.pg-home .trait__d { font-size: .9rem; line-height: 1.75; max-width: 30em; }
.pg-home .trait__d strong { font-weight: 650; color: var(--iv-ink); }
.pg-home .gates__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-home .gate b { font-family: var(--font-kr); font-size: 1.05rem; font-weight: 650; color: var(--iv-ink); }
.pg-home .gate span { font-size: .82rem; font-weight: 400; color: var(--iv-ink-2); line-height: 1.6; }
.pg-home .lab__d { max-width: 46em; font-size: .94rem; line-height: 1.75; }
.pg-home .lab__item--side { display: contents; }
.pg-home .lab .lab__item { grid-column: span 4; padding: clamp(20px, 2vw, 28px); }
.pg-home .lab__t { min-height: 2.5em; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.25; font-weight: 700; }
.pg-home .lab .compare { aspect-ratio: 4 / 3; border-radius: 3px; margin-top: 8px; }
.pg-home .lab-scene > svg { aspect-ratio: 16 / 10; }
.pg-home .lab__context { margin-top: auto; padding-top: 8px; color: var(--ink-3); font-size: .7rem; line-height: 1.6; }
@media (max-width: 960px) {
  .pg-home .lab .lab__item { grid-column: span 12; }
  .pg-home .lab__t { min-height: 0; }
  .pg-home .lab-scene > svg { aspect-ratio: 2 / 1; }
}
.pg-home .shead__aside { font-size: .94rem; }
.pg-home .bench__media--preview { grid-template-columns: 100px minmax(0, 1fr); }
.pg-home .bench__media--preview figcaption { font-size: .72rem; gap: 2px; }
.pg-home .bench__media--preview figcaption a { min-height: 44px; }
@media (max-width: 560px) {
  .pg-home .case-results li { padding: 20px 14px 20px 0; }
  .pg-home .case-results li + li { padding-left: 14px; }
  .pg-home .case-results .v { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .pg-home .case-summary { font-size: .94rem; }
  .pg-home .source-notes { margin-top: 14px; }
  .pg-home .gates__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-home .career__row, .pg-home .career__detail li { grid-template-columns: minmax(0, 1fr); }
  .pg-home .career__detail .num { white-space: normal; }
}
.persona-preview {margin:28px 0;background:var(--g1);border:1px solid var(--line);padding:clamp(20px,4vw,42px);overflow:hidden}
.persona-preview__profiles {display:grid;grid-template-columns:repeat(3,minmax(0,150px));justify-content:center;gap:clamp(12px,3vw,32px)}
.persona-preview__profiles>div {display:flex;flex-direction:column;align-items:center;aspect-ratio:4/5;justify-content:center;background:var(--ink);color:var(--g0);border-top:2px solid var(--signal)}
.persona-preview__profiles>div:nth-child(2) {background:#d6d1c7}
.persona-preview__profiles>div:nth-child(3) {background:#b8b2a8}
.persona-preview__profiles svg {width:66%;height:auto;opacity:.65}
.persona-preview__profiles span {font-family:var(--font-mono);font-size:clamp(.58rem,1.2vw,.72rem);letter-spacing:.04em;margin-top:8px}
.persona-preview__flow {display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,22px);margin-top:26px;font-size:clamp(.68rem,1.3vw,.85rem);color:var(--ink-2)}
.persona-preview__flow i {font-style:normal;color:var(--signal)}
.persona-preview figcaption {text-align:center;margin-top:18px;color:var(--ink-3);font-size:.7rem}
#p-persona .case-results>li:nth-child(2) .v {font-size:clamp(1.35rem,2.8vw,2.5rem);letter-spacing:-.035em}

/* Keep the opening promise in coherent, left-aligned phrases. */
html[lang="ko"] .opener__title {font-size:clamp(2.35rem,5vw,4.6rem);line-height:1.16;letter-spacing:-.055em}
html[lang="ko"] .opener__title .line--outcome {margin-top:.12em}
.opener__keep {white-space:nowrap}
@media(max-width:600px){html[lang="ko"] .opener__title{font-size:clamp(2.35rem,8.4vw,3.7rem);line-height:1.15}html[lang="ko"] .opener__title .line--outcome{max-width:10em;margin-top:.18em}}

.contact__big {font-size:clamp(1.5rem,3.3vw,3rem);font-weight:650;letter-spacing:-.035em;line-height:1.3}
.contact__profiles dd {display:flex;flex-wrap:wrap;gap:4px 24px}
.contact__profiles a {gap:10px}
