@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --paper: #f5f4ef;
  --paper-deep: #ebe9e1;
  --white: #ffffff;
  --ink: #101216;
  --muted: #5d626c;
  --muted-strong: #454c58;
  --line: #cbc9c0;
  --night: #05070c;
  --night-soft: #0b1120;
  --night-line: #263149;
  --text-on-dark: #f5f7fa;
  --text-on-dark-muted: #8c93a1;
  --blue: #2f6bff;
  --blue-text: #245fe8;
  --signal-blue-hover: #1a4cc4;
  --signal-blue-active: #173a96;
  --cyan: #3ddcff;
  --focus: #0066ff;
  --state-disabled-ink: #6e7480;
  --state-disabled-line: #dedcd4;
  --semantic-success: #177245;
  --semantic-warning: #a85d00;
  --semantic-error: #b93838;
  --semantic-info: #245fe5;
  --shell: min(1280px, calc(100vw - 80px));
  /* MaruBuri 제거 — self-host 확보 후 복원 — C-05 / C-06 */
  --serif: "Iowan Old Style", "Noto Serif KR", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  /* IBM Plex Mono 제거 — self-host 확보 후 복원 — C-05 / C-06 */
  --mono: "SFMono-Regular", Consolas, monospace;
  /* Hero가 좌 7열로 좁아져 Display는 §6.2 범위(76~112px)의 아래쪽을 쓴다. 한국어 H1 3줄 유지 (§11 · C-23). */
  --type-display: clamp(4.75rem, 5.4vw, 5rem);
  --type-page-h1: clamp(4rem, 6vw, 5.5rem);
  --type-h2: clamp(2.75rem, 3.6vw, 3.5rem);
  --type-h3: clamp(1.75rem, 2.4vw, 2.25rem);
  --type-lead: clamp(1.25rem, 1.5vw, 1.375rem);
  --type-body: 1.125rem;
  --type-ui: 1rem;
  --type-label: 0.875rem;
  --type-caption: 0.8125rem;
  --type-brand: 0.9375rem;
  --leading-display: 0.94;
  --leading-page-h1: 1;
  --leading-h2: 1.08;
  --leading-h3: 1.25;
  --leading-lead: 1.65;
  --leading-body: 1.7;
  --leading-ui: 1.5;
  --leading-label: 1.4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: var(--type-body);
  font-synthesis: none;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

small {
  font-size: inherit;
}

/* 한국어 줄바꿈은 어절 중간에서 끊지 않는다 (§11). */
h1,
h2,
h3 {
  word-break: keep-all;
}

/* 마지막 줄에 어절 하나만 남는 고아를 막는다 (C-37 실측 처방). */
h1 {
  text-wrap: balance;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--blue-text);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.header-inner,
.footer-lead,
.footer-grid,
.proof-grid {
  width: var(--shell);
  margin-inline: auto;
}

.section-bright {
  background: var(--paper);
}

.section-paper {
  background: var(--white);
}

.section-dark {
  color: var(--text-on-dark);
  background:
    linear-gradient(90deg, rgba(61, 220, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(61, 220, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(47, 107, 255, 0.17), transparent 32%),
    var(--night);
  background-size: 80px 80px, 80px 80px, auto, auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: currentColor;
  font-family: var(--sans);
  font-size: var(--type-label);
  font-weight: 750;
  letter-spacing: 0.065em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.45;
}

.eyebrow-index {
  color: var(--blue-text);
  font-family: var(--mono);
  letter-spacing: 0;
}

.section-dark .eyebrow-index {
  color: var(--cyan);
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: 88px;
  border-bottom: 1px solid rgba(16, 18, 22, 0.14);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: var(--type-brand);
  font-weight: 780;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
}

.brand-mark i {
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-mark i:last-child {
  inset: 7px 0;
  border-color: var(--blue);
  transform: rotate(48deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.site-nav > a {
  position: relative;
  font-size: var(--type-ui);
  font-weight: 680;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  color: var(--white);
  background: var(--blue-text);
}

.nav-cta svg,
.text-link svg,
.button-link svg,
.submit-button svg,
.footer-mail svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* 좌 7열 카피 · 우 5열 Engine Window (§7.1) */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--shell);
  align-items: center;
  margin-inline: auto;
  padding-top: clamp(180px, 23vh, 250px);
  padding-bottom: 130px;
  gap: clamp(48px, 5vw, 80px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.hero h1,
.page-hero h1,
.capability-hero h1,
.simple-page h1,
.not-found-page h1 {
  max-width: 1050px;
  margin: 0;
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: var(--leading-page-h1);
}

.hero h1 {
  font-size: var(--type-display);
  line-height: var(--leading-display);
}

.page-hero h1,
.capability-hero h1,
.simple-page h1,
.not-found-page h1 {
  font-size: var(--type-page-h1);
}

h1 em {
  /* 강조어는 색만 바꾼다. 서체·굵기·기울임은 본문과 같다 (§6.2 H1 강조 규칙 4·5항 · C-40). */
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 42px 0 0;
  color: var(--muted-strong);
  font-size: var(--type-lead);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: var(--leading-lead);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 42px;
}

.text-link,
.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 20px;
  font-size: var(--type-ui);
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.text-link svg,
.button-link svg {
  transition: transform 180ms ease;
}

.text-link:hover svg,
.button-link:hover svg {
  transform: translateX(5px);
}

.button-link {
  min-height: 54px;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid currentColor;
}

/* CTA 면 기본값은 signal-blue-text다. 흰 라벨 5.42:1 (§6.1 · C-15). */
.button-primary {
  color: var(--white);
  border-color: var(--blue-text);
  background: var(--blue-text);
}

.button-light {
  color: var(--night);
  border-color: var(--white);
  background: var(--white);
}

/* §9.9 — hover는 면 색만 바꾸고 크기·위치를 옮기지 않는다. active는 1px 눌림까지 허용한다. */
.nav-cta:hover,
.button-primary:hover,
.submit-button:hover {
  border-color: var(--signal-blue-hover);
  background: var(--signal-blue-hover);
}

.nav-cta:active,
.button-primary:active,
.submit-button:active {
  border-color: var(--signal-blue-active);
  background: var(--signal-blue-active);
  transform: translateY(1px);
}

.button-light:hover {
  border-color: var(--paper-deep);
  background: var(--paper-deep);
}

.button-light:active {
  border-color: var(--line);
  background: var(--line);
  transform: translateY(1px);
}

.text-link:hover,
.back-link:hover,
.footer-mail:hover,
.footer-grid a:hover {
  text-decoration: underline;
}

.text-link:active,
.back-link:active,
.footer-mail:active,
.footer-grid a:active {
  transform: translateY(1px);
}

button:disabled,
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  color: var(--state-disabled-ink);
  border-color: var(--state-disabled-line);
  background: var(--white);
  cursor: not-allowed;
}

button:disabled:hover,
button:disabled:active {
  border-color: var(--state-disabled-line);
  background: var(--white);
  transform: none;
}

.hero-note {
  margin-top: 62px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Engine Window (§8.2) ---
   궤도선이 좌표계다. 노드 좌표는 src/site.mjs가 배율표대로 계산해 SVG로 내보낸다. */

.engine-window {
  margin: 0;
  border: 1px solid var(--night-line);
  background: var(--night-soft);
  color: var(--text-on-dark);
}

.engine-window-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--night-line);
}

.engine-window-demo {
  padding: 4px 8px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engine-window-label {
  color: var(--text-on-dark-muted);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.engine-window-title {
  flex-basis: 100%;
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
}

.engine-window-plot {
  position: relative;
}

.engine-orbit {
  display: block;
  width: 100%;
  height: 100%;
}

.engine-orbit-path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.engine-orbit-path--return {
  stroke-dasharray: 7 6;
}

/* 닫히지 않는 배율은 회귀선을 그리지 않고 궤도 양 끝을 흐려 이어짐만 표시한다 (C-21). */
.engine-orbit-path--fade {
  stroke: url("#engine-orbit-fade");
}

.engine-orbit-stop--edge {
  stop-color: var(--night-line);
}

.engine-orbit-stop--core {
  stop-color: var(--cyan);
}

.engine-orbit-arrow,
.engine-orbit-node {
  fill: var(--cyan);
}

.engine-orbit-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.engine-window-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.engine-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.engine-step-number {
  color: var(--cyan);
  font-size: var(--type-caption);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.engine-step-title {
  font-size: var(--type-ui);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.engine-step-detail {
  color: var(--text-on-dark-muted);
  font-size: var(--type-caption);
  line-height: var(--leading-label);
}

/* 03 Human Approval — 색을 제외한 독립 신호 3개: 경계선 + 배경 블록 + 부제 (§8.2) */
.engine-step.is-pivotal {
  padding: 12px 14px;
  border: 1px solid var(--night-line);
  background: var(--night);
}

.engine-step-note {
  margin-top: 2px;
  font-size: var(--type-caption);
  font-weight: 700;
}

.engine-window-foot {
  margin: 0;
  padding: 16px 22px;
  border-top: 1px solid var(--night-line);
  color: var(--text-on-dark-muted);
  font-size: var(--type-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Expanded 1200×786 — 라벨을 궤도 바깥 노드 주변에 둔다. */
.engine-window--expanded .engine-window-plot {
  aspect-ratio: 1200 / 786;
}

.engine-window--expanded .engine-orbit {
  position: absolute;
  inset: 0;
}

.engine-window--expanded .engine-window-steps {
  position: absolute;
  inset: 0;
}

.engine-window--expanded .engine-step {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 25%;
}

.engine-window--expanded .engine-step[data-anchor="center"] {
  align-items: center;
  text-align: center;
  transform: translateX(-50%);
}

.engine-window--expanded .engine-step[data-anchor="end"] {
  align-items: flex-end;
  text-align: right;
  transform: translateX(-100%);
}

.engine-window--expanded .engine-step-detail {
  font-size: var(--type-label);
}

/* Compact 500×560 — 궤도는 좌측 좁은 열에 두고 라벨은 우측 340px 열로 분리한다. */
.engine-window--compact .engine-window-plot {
  aspect-ratio: 500 / 560;
}

.engine-window--compact .engine-orbit {
  position: absolute;
  inset: 0;
}

.engine-window--compact .engine-window-steps {
  position: absolute;
  display: grid;
  inset: 0 0 0 32%;
  padding-right: 22px;
  grid-template-rows: repeat(5, 1fr);
}

.engine-window--compact .engine-step {
  justify-content: center;
  gap: 2px;
}

.proof-band {
  padding: clamp(90px, 10vw, 150px) 0 0;
  background: var(--white);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.proof-item {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border: 0;
}

.proof-item strong {
  font-family: var(--mono);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.proof-item span {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--type-ui);
}

.proof-item small {
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--type-caption);
}.engine {
  position: relative;
  padding: clamp(110px, 13vw, 190px) 0;
}.engine h2,
.section-heading h2,
.about-story h2,
.founder-block h2,
.insights-block h2,
.final-cta h2 {
  margin: 0;
  font-size: var(--type-h2);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: var(--leading-h2);
}

.section-intro {
  max-width: 560px;
  margin-top: 40px;
  color: var(--text-on-dark-muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}.capabilities,
.concepts,
.process,
.founder-insights,
.work-status,
.editorial-list,
.about-story {
  padding: clamp(100px, 12vw, 170px) 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 85px;
}

.section-heading > p {
  max-width: 620px;
  margin: 35px 0 0;
  color: var(--muted-strong);
  font-size: var(--type-lead);
  font-weight: 500;
  line-height: var(--leading-lead);
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 0.95fr 1fr;
  column-gap: 12vw;
}

.split-heading .eyebrow {
  grid-column: 1 / -1;
}

.split-heading > p {
  align-self: end;
  margin: 0;
}

.capability-list {
  border-top: 1px solid var(--line);
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: 8vw;
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

.capability-code {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-content: start;
  align-items: baseline;
}

.capability-code > span,
.concept-meta > span {
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.capability-code strong {
  font-family: var(--mono);
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -0.05em;
}

.capability-code small {
  grid-column: 2;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.05em;
}

.capability-copy h3,
.concept-copy h3,
.editorial-row h2 {
  max-width: 720px;
  margin: 0;
  font-size: var(--type-h3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: var(--leading-h3);
}

.capability-copy > p {
  max-width: 680px;
  margin: 25px 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.inline-list li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.concept-list {
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}

.concept-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 8vw;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.concept-meta {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: start;
  align-items: baseline;
}

.concept-meta strong {
  font-family: var(--mono);
  font-size: 1.15rem;
}

.concept-meta small {
  grid-column: 2;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--type-caption);
}

.concept-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 8px;
  color: var(--blue-text);
  border: 1px solid rgba(47, 107, 255, 0.42);
  font-family: var(--mono);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.concept-copy dl {
  margin: 38px 0 0;
}

.concept-copy dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.concept-copy dt {
  font-family: var(--mono);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.concept-copy dd {
  margin: 0;
  color: var(--muted);
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phase-grid article {
  min-height: 360px;
  padding: 36px;
  border-right: 1px solid var(--line);
}

.phase-grid article:last-child {
  border: 0;
}

.phase-grid article > span {
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.phase-grid h3 {
  margin: 72px 0 18px;
  font-family: var(--mono);
  font-size: 1.45rem;
}

.phase-grid p {
  color: var(--muted);
}

.phase-grid .phase-lead {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: var(--type-ui);
  font-weight: 700;
}

.phase-grid small {
  display: block;
  margin-top: 38px;
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.founder-insights-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 11vw;
}

.founder-block > p,
.insights-block > p {
  max-width: 560px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.insight-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.insight-row > div {
  display: flex;
  flex-direction: column;
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.insight-row small {
  margin-top: 8px;
  color: var(--muted);
}

.insight-row h3 {
  margin: 0;
  font-size: var(--type-body);
  letter-spacing: -0.03em;
}

.insight-row p {
  grid-column: 2;
  margin: -12px 0 0;
  color: var(--muted);
  font-size: var(--type-ui);
}

.final-cta {
  padding: clamp(110px, 14vw, 190px) 0;
  text-align: left;
}

.final-cta h2 {
  max-width: 980px;
}

.final-cta p {
  max-width: 590px;
  margin: 34px 0;
  color: var(--text-on-dark-muted);
}

.site-footer {
  padding: 90px 0 40px;
  color: var(--text-on-dark);
  background: var(--night);
  border-top: 1px solid var(--night-line);
}

.footer-lead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--night-line);
}

/* 브랜드 태그라인 한 줄 (§9 · §3.4 예외) */
.footer-statement {
  max-width: 620px;
  margin: 0;
  color: var(--white);
  font-size: var(--type-h3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: var(--leading-h3);
}

.footer-mail {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 15px;
  color: var(--cyan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 50px;
  padding-top: 45px;
  font-size: var(--type-caption);
}

.footer-grid > * {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid strong {
  margin-bottom: 5px;
  color: var(--white);
}

.footer-grid a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.footer-end {
  align-items: flex-end;
  justify-content: flex-end;
  color: var(--text-on-dark-muted);
}

.page-hero,
.capability-hero {
  padding: clamp(190px, 22vw, 280px) 0 clamp(100px, 12vw, 160px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1180px;
}

.page-hero p,
.capability-hero > .section-shell > p {
  max-width: 700px;
  margin: 42px 0 0 auto;
  color: var(--muted-strong);
  font-size: var(--type-lead);
  font-weight: 500;
  line-height: var(--leading-lead);
}.back-link {
  display: inline-block;
  margin-bottom: 60px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-label);
  text-transform: uppercase;
}

.capability-hero h2 {
  max-width: 900px;
  margin: 38px 0 0;
  font-size: var(--type-h2);
  font-weight: 630;
  letter-spacing: -0.055em;
  line-height: 1.15;
}.disclosure {
  max-width: 760px;
  margin: 30px 0;
  padding: 17px 20px;
  color: var(--muted-strong);
  border-left: 3px solid var(--semantic-info);
  background: rgba(47, 107, 255, 0.07);
  font-size: var(--type-ui);
}.editorial-list .disclosure {
  margin: 0 0 70px;
}

.editorial-row {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 8vw;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.editorial-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--mono);
}

.editorial-row > div:first-child span {
  color: var(--blue-text);
  font-size: var(--type-caption);
}

.editorial-row > div:first-child small {
  font-size: var(--type-caption);
}

.editorial-row p {
  max-width: 680px;
  color: var(--muted);
}.prose {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.prose p:first-child {
  margin-top: 0;
}

.prose p + p {
  margin-top: 35px;
}/* --- Contact (SITE_COPY §8 · §8.5 · DESIGN.md §9.3~§9.6) --- */
.contact-section {
  padding: clamp(100px, 12vw, 170px) 0;
}

/* DOM은 폼 → Fit guidance. 데스크톱에서만 Fit guidance를 좌측 열로 보낸다 (§8.5 · §11 thumb zone). */
.contact-grid {
  display: grid;
  align-items: start;
  gap: 10vw;
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-grid .form-panel {
  grid-column: 2;
  grid-row: 1;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 48px;
  grid-column: 1;
  grid-row: 1;
}

.contact-aside .eyebrow {
  margin-bottom: 0;
}

.contact-aside h2 {
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--type-h3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: var(--leading-h3);
}

.page-hero .direct-contact {
  max-width: 700px;
  margin-left: auto;
}

.direct-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 65px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.direct-contact > span,
.direct-contact small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.direct-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  text-decoration: none;
}

.direct-contact a:hover {
  text-decoration: underline;
}

.direct-contact svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.form-panel {
  padding: clamp(25px, 4vw, 55px);
  border: 1px solid var(--line);
  background: var(--white);
}

/* honeypot — 화면과 보조기기 모두에서 숨긴다. display:none 은 봇이 감지하므로 쓰지 않는다 (방어 절차 §3.1). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reference-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 35px 0 0;
  font-size: var(--type-lead);
}

.reference-line span {
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.reference-line strong {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.reply-note {
  color: var(--ink) !important;
  font-weight: 600;
}

.form-error-summary {
  margin-bottom: 38px;
  padding: 18px 20px;
  border-left: 3px solid var(--semantic-info);
  background: rgba(47, 107, 255, 0.07);
  font-size: var(--type-ui);
}

.form-error-summary strong {
  font-family: var(--mono);
  font-size: var(--type-label);
  text-transform: uppercase;
}

/* §9.4 — 오류는 색과 테두리로만 알린다. 배경은 채색하지 않는다. */
.form-error-summary {
  color: var(--semantic-error);
  border-color: var(--semantic-error);
  background: var(--white);
}

.form-error-summary ul {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: var(--type-ui);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.field input,
.field select {
  height: 52px;
  padding: 0 14px;
}

.field textarea {
  display: block;
  min-height: 170px;
  padding: 14px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}

/* §9.4 — 테두리 1px + 좌측 3px 강조. 배경은 채색하지 않는다 (C-28). */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--semantic-error);
  border-left: 3px solid var(--semantic-error);
}

.field-group {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.field-group legend {
  padding: 0;
  font-size: var(--type-ui);
  font-weight: 700;
  line-height: var(--leading-ui);
}

.choice-grid {
  display: grid;
  gap: 4px 16px;
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
}

.choice input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--blue-text);
}

.field-hint,
.field-error {
  display: block;
  margin-top: 7px;
  font-size: var(--type-caption);
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: var(--semantic-error);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--type-ui);
}

.consent input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  accent-color: var(--blue-text);
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding: 0 20px;
  border: 1px solid var(--blue-text);
  color: var(--white);
  background: var(--blue-text);
  cursor: pointer;
  font-weight: 700;
}

/* 전송 중(§9.3)을 disabled로 표현하므로 커서만 진행 중으로 둔다. 색은 disabled 토큰을 따른다. */
.submit-button:disabled {
  cursor: wait;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: var(--type-caption);
}

/* §9.3 로딩 — 정적 페이지에는 로딩 상태를 만들지 않는다. 문의 폼 전송 하나뿐이며 스켈레톤을 쓰지 않는다. */
.submit-button[aria-busy="true"] {
  color: var(--state-disabled-ink);
  border-color: var(--state-disabled-line);
  background: var(--white);
  cursor: progress;
}

/* §9.2 빈 상태 — 빈 목록을 숨기지도, 가짜 데이터로 채우지도 않는다. */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(48px, 7vw, 90px) 32px;
  border: 1px dashed var(--line);
  background: var(--paper-deep);
  text-align: center;
}

.empty-state > span {
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state strong {
  max-width: 620px;
  font-size: var(--type-lead);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: var(--leading-lead);
}

.empty-state p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.empty-state .text-link {
  margin-top: 10px;
}

.simple-page {
  min-height: 85vh;
  padding: 210px 0 130px;
}

.simple-page .narrow {
  text-align: left;
}

.success-mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 40px;
  place-items: center;
  color: var(--white);
  background: var(--semantic-success);
}

.success-mark svg {
  width: 30px;
  height: 30px;
}

.simple-page p {
  max-width: 620px;
  margin: 35px 0;
  color: var(--muted);
}

.narrow {
  max-width: 860px;
}

.legal-page {
  padding: 190px 0 130px;
}

.legal-page h1 {
  margin: 0 0 55px;
  font-size: var(--type-page-h1);
  letter-spacing: -0.065em;
  line-height: 1;
}

.legal-page h2 {
  margin: 55px 0 15px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: var(--type-body);
}

.legal-page p {
  color: var(--muted);
}

.legal-notice {
  padding: 20px;
  color: var(--ink) !important;
  border-left: 3px solid var(--semantic-info);
  background: var(--white);
}

.legal-notice strong {
  display: block;
  font-family: var(--mono);
  font-size: var(--type-label);
  text-transform: uppercase;
}

.not-found-page {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: 160px 0 120px;
}

.not-found-page .section-shell {
  position: relative;
}

.not-found-page h1 {
  position: relative;
  max-width: 900px;
}

.not-found-page p {
  position: relative;
  max-width: 600px;
  color: var(--text-on-dark-muted);
}

/* Dark 면의 H1 강조어는 signal-cyan — 두 파란색은 어두운 면에서 쓰지 않는다 (§6.1 Dark 대비표). */
.section-dark h1 em {
  color: var(--cyan);
}

/* 주요 경로 4개 (§9.7) — Dark 면의 링크는 signal-cyan 화살표와 흰 라벨 */
.path-list {
  position: relative;
  max-width: 900px;
  margin-top: 56px;
}

.path-list-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-on-dark-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.path-list > div {
  display: grid;
  column-gap: 48px;
  border-top: 1px solid var(--night-line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-list a {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
  color: var(--text-on-dark);
  text-decoration: none;
}

.path-list a > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--type-ui);
  font-weight: 700;
  line-height: var(--leading-ui);
}

.path-list small {
  color: var(--text-on-dark-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.path-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--cyan);
}

.path-list a:hover {
  text-decoration: underline;
}

.path-list a:active {
  transform: translateY(1px);
}

.error-code {
  position: absolute;
  top: -130px;
  right: 0;
  color: transparent;
  font-family: var(--mono);
  font-size: min(30vw, 380px);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(61, 220, 255, 0.18);
}

.not-found .site-header {
  color: var(--white);
  border-color: var(--night-line);
}

.not-found .brand,
.not-found .site-nav > a {
  color: var(--white);
}

/* `.not-found .site-nav > a`(0,2,1)보다 높아야 라벨이 보인다. 이전에는 흰 면 위 흰 글자였다. */
.not-found .site-nav > .nav-cta {
  border-color: var(--white);
  color: var(--night);
  background: var(--white);
}

.not-found .site-nav > .nav-cta:hover {
  border-color: var(--paper-deep);
  background: var(--paper-deep);
}

.not-found .site-nav > .nav-cta:active {
  border-color: var(--line);
  background: var(--line);
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 48px, 900px);
  }

  .site-header {
    height: 74px;
  }

  .menu-button {
    position: relative;
    z-index: 52;
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 51;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 90px 24px 40px;
    color: var(--white);
    background: var(--night);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav > a {
    padding: 17px 0;
    border-bottom: 1px solid var(--night-line);
    color: var(--white);
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav .nav-cta {
    min-height: 60px;
    margin-top: 25px;
    padding-inline: 20px;
    color: var(--night);
    border: 0;
    background: var(--white);
    font-size: var(--type-ui);
  }

  .menu-open .menu-button {
    color: var(--white);
  }  .hero-inner,
  .split-heading,
  .founder-insights-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }  .founder-insights-grid,
  .contact-grid {
    gap: 80px;
  }

  /* Mobile 배율 — 궤도가 R∞ 직선이 되고 라벨은 노드 아래로 온다. 루프는 닫지 않는다 (§8.2). */
  .engine-orbit {
    display: none;
  }

  .engine-window--compact .engine-window-plot,
  .engine-window--expanded .engine-window-plot {
    aspect-ratio: auto;
    padding: 30px 22px;
  }

  .engine-window--compact .engine-window-steps,
  .engine-window--expanded .engine-window-steps {
    position: relative;
    display: block;
    padding: 0;
    inset: auto;
  }

  .engine-window--expanded .engine-step,
  .engine-window--expanded .engine-step[data-anchor="center"],
  .engine-window--expanded .engine-step[data-anchor="end"] {
    top: auto;
    left: auto;
    width: auto;
    align-items: flex-start;
    text-align: left;
    transform: none;
  }

  .engine-step {
    position: relative;
    margin-left: 26px;
    padding-bottom: 26px;
  }

  .engine-step::before {
    position: absolute;
    top: 3px;
    left: -31px;
    width: 11px;
    height: 11px;
    content: "";
    border-radius: 50%;
    background: var(--cyan);
  }

  .engine-step.is-pivotal::before {
    top: 14px;
    left: -34px;
    width: 17px;
    height: 17px;
  }

  .engine-step:not(:last-child)::after {
    position: absolute;
    top: 16px;
    bottom: -3px;
    left: -26px;
    width: 1px;
    content: "";
    background: var(--cyan);
  }

  .engine-step:last-child {
    padding-bottom: 0;
  }

  .split-heading > p {
    margin-top: 30px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .phase-grid {
    grid-template-columns: 1fr;
  }

  .phase-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .phase-grid h3 {
    margin-top: 35px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-end {
    grid-column: 1 / -1;
    align-items: flex-start;
  }  .contact-grid .form-panel,
  .contact-aside {
    grid-column: auto;
    grid-row: auto;
  }

  .page-hero .direct-contact {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 36px);
    /* keep-all이 어절을 지키는 대가로 좁은 화면에서 줄이 늘어난다. 360~390px에서 3줄이 되도록 실측으로 정한 값이다 (DESIGN.md C-36·C-37). */
    --type-display: clamp(2.5rem, 12.5vw, 3.25rem);
    --type-page-h1: clamp(2.75rem, 12vw, 3.25rem);
    --type-h2: clamp(2.125rem, 9.5vw, 2.5rem);
    --type-h3: clamp(1.5rem, 7vw, 1.75rem);
    --type-lead: 1.1875rem;
    --type-body: 1.0625rem;
  }

  .hero-inner {
    padding-top: 155px;
    padding-bottom: 90px;
  }

  .hero-lead {
    margin-top: 32px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions .text-link,
  .hero-actions .button-link {
    width: 100%;
    justify-content: space-between;
  }

  .proof-grid {
    width: 100%;
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
  }

  .proof-item {
    min-height: 145px;
    padding-inline: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }  .engine,
  .capabilities,
  .concepts,
  .process,
  .founder-insights,
  .work-status,
  .editorial-list,
  .about-story {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 55px;
  }

  .capability-row,
  .concept-row,
  .editorial-row {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 50px 0;
  }

  .capability-code {
    grid-template-columns: 34px 1fr;
  }

  .capability-code strong {
    font-size: 2rem;
  }

  .concept-copy dl > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .phase-grid article {
    padding: 30px 0;
  }

  .insight-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .insight-row p {
    grid-column: 1;
    margin: 0;
  }

  .footer-lead {
    align-items: flex-start;
    flex-direction: column;
    gap: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child,
  .footer-end {
    grid-column: 1 / -1;
  }

  .page-hero,
  .capability-hero {
    padding: 155px 0 90px;
  }

  .page-hero p,
  .capability-hero > .section-shell > p {
    margin-left: 0;
  }

  .back-link {
    margin-bottom: 42px;
  }  .editorial-row > div:first-child {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }  .contact-section {
    padding: 155px 0 90px;
  }

  .contact-grid {
    gap: 65px;
  }

  .form-panel {
    margin-inline: -18px;
    border-right: 0;
    border-left: 0;
  }

  .field-row,
  .choice-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-section {
    padding: 90px 0;
  }

  .simple-page,
  .legal-page {
    padding: 160px 0 90px;
  }

  .path-list > div {
    grid-template-columns: 1fr;
  }
}

/* --- Capabilities 허브·상세 (SITE_COPY §4.6 · DESIGN.md §7.2 · §8.5 · C-13 · C-33) --- */

/* 페이지 목차 — 고정하지 않는 앵커 나열 (§8.5 모바일 규칙). 상세 페이지에서는 980px 이하에서만 보인다. */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.jump-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  font-size: var(--type-ui);
  font-weight: 680;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.jump-nav a:hover {
  text-decoration: underline;
}

.jump-nav a:active {
  transform: translateY(1px);
}

.jump-index {
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.06em;
}

.jump-nav--mobile {
  display: none;
}

.capability-section {
  padding: clamp(100px, 12vw, 170px) 0;
  border-top: 1px solid var(--line);
}

.capability-head {
  display: grid;
  align-items: start;
  gap: 8vw;
  grid-template-columns: 300px minmax(0, 1fr);
}

.capability-head h2,
.detail-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: var(--type-h2);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: var(--leading-h2);
}

.section-lead {
  max-width: 620px;
  margin: 35px 0 0;
  color: var(--muted-strong);
  font-size: var(--type-lead);
  font-weight: 500;
  line-height: var(--leading-lead);
}

.fit-grid {
  display: grid;
  gap: 64px;
  margin-top: 72px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-label {
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--type-ui);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: var(--leading-ui);
}

.row-list {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  list-style: none;
}

.row-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.row-list--ui {
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
}

.deliverable-grid {
  display: grid;
  column-gap: 48px;
  color: var(--muted);
  font-size: var(--type-ui);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  line-height: var(--leading-ui);
}

.deliverable-grid > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

/* Dark 블록 — 엔진 면 (§1). 패널 안에 Medium Engine Window와 CTA 열을 둔다. */
.capability-engine-block {
  display: grid;
  align-items: start;
  gap: 48px;
  margin-top: 72px;
  padding: 40px;
  border: 1px solid var(--night-line);
  color: var(--text-on-dark);
  background: var(--night);
  grid-template-columns: 720px minmax(0, 1fr);
}

.engine-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.engine-aside .inline-list {
  margin: 0;
}

.engine-aside .inline-list li {
  border-color: var(--night-line);
  color: var(--text-on-dark-muted);
}

.engine-aside p {
  margin: 0;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.engine-aside-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Dark 면의 링크는 signal-cyan (§6.1 Dark 대비표). */
.section-dark .text-link,
.capability-engine-block .text-link {
  color: var(--cyan);
}

/* Medium 720×598 — 라벨은 노드 옆, R400 호, 회귀선 없음 (§8.2 · C-33). 내용은 역량별 Flow 7단계 (SITE_COPY §4.6). */
.engine-window--medium {
  width: 720px;
  max-width: 100%;
}

.engine-window--medium .engine-window-plot {
  aspect-ratio: 720 / 598;
}

.engine-window--medium .engine-orbit,
.engine-window--medium .engine-window-steps {
  position: absolute;
  inset: 0;
}

.engine-window--medium .engine-step {
  position: absolute;
  top: var(--y);
  left: 27.78%;
  width: 69.2%;
  transform: translateY(-50%);
}

.engine-window--medium .engine-step.is-pivotal {
  padding: 10px 14px;
}

.engine-step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.engine-window--medium .engine-step-detail {
  font-size: var(--type-label);
}

.engine-window-guardrail {
  padding: 16px 22px;
  border-top: 1px solid var(--night-line);
}

.engine-window-guardrail span {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engine-window-guardrail p {
  margin: 0;
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
}

/* 상세 — Sticky Section TOC + 콘텐츠 열 (§8.5 · C-13) */
.toc-layout {
  display: grid;
  align-items: start;
  column-gap: 64px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.toc-column {
  position: relative;
  z-index: 2;
  align-self: stretch;
  padding-top: 120px;
  grid-column: 1;
  grid-row: 1 / span 4;
}

/* Bright surface에 놓는다. Dark 블록 구간을 지날 때도 paper 면이 대비를 지킨다. */
.section-toc {
  position: sticky;
  top: 112px;
  padding: 20px 0;
  background: var(--paper);
}

.section-toc-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-toc ol {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0 10px 16px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: var(--type-ui);
  font-weight: 600;
  line-height: var(--leading-ui);
  text-decoration: none;
}

.section-toc a span {
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.06em;
}

.section-toc a:hover {
  text-decoration: underline;
}

.section-toc a:active {
  transform: translateY(1px);
}

/* 활성 항목 — signal-blue-text + 좌측 2px 선. 색만으로 구분하지 않는다 (§8.5 · §12). */
.section-toc a.is-active {
  border-left-color: var(--blue-text);
  color: var(--blue-text);
  font-weight: 700;
}

.detail-section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  grid-column: 2;
}

.detail-fit {
  border-top: 0;
  grid-row: 1;
}

.detail-deliverables {
  grid-row: 3;
}

.detail-concept {
  grid-row: 4;
}

.detail-section .row-list {
  margin-top: 48px;
}

.detail-subsection {
  margin-top: 64px;
}

.section-index-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.section-index-head > span {
  flex: none;
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-label);
  letter-spacing: 0.06em;
}

.section-dark .section-index-head > span {
  color: var(--cyan);
}

/* 03 작동 구조 — 엔진 면을 목차 열 아래까지 펼친다. 내용은 콘텐츠 열에 남는다. */
.detail-engine {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  border-top: 0;
  grid-column: 1 / -1;
  grid-row: 2;
}

.detail-engine .section-shell {
  padding-left: 344px;
}

.detail-engine .engine-window {
  margin-top: 48px;
}

.phase-row {
  display: grid;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phase-row article {
  padding: 30px 28px 34px 0;
}

.phase-row article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.phase-row span {
  display: block;
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.phase-row h3 {
  margin: 40px 0 12px;
  font-family: var(--mono);
  font-size: var(--type-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.phase-row p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
}

.concept-sheet {
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
}

.concept-sheet > div {
  display: grid;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 180px minmax(0, 1fr);
}

.concept-sheet dt {
  font-family: var(--mono);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.concept-sheet dd {
  margin: 0;
  color: var(--muted);
}

/* 1200px 이하 — 목차 열(280+64)이 Medium 720px 창을 밀어내므로 목차를 접고(§8.5 모바일 규칙) 엔진 패널을 한 열로 세운다. 1024×768 실측. */
@media (max-width: 1200px) {
  .jump-nav--mobile {
    display: flex;
  }

  .capability-engine-block {
    gap: 32px;
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .engine-aside {
    max-width: 720px;
  }

  .toc-layout {
    display: block;
  }

  .toc-column {
    display: none;
  }

  .detail-engine .section-shell {
    padding-left: 0;
  }
}

@media (max-width: 980px) {
  .capability-head,
  .fit-grid,
  .deliverable-grid,
  .phase-row,
  .concept-sheet > div {
    grid-template-columns: 1fr;
  }

  .capability-head {
    gap: 32px;
  }

  /* Mobile 배율 — 궤도는 R∞ 직선, 라벨은 노드 아래 (§8.2). 공통 timeline 규칙을 그대로 받는다. */
  .engine-window--medium {
    width: 100%;
  }

  .engine-window--medium .engine-window-plot {
    aspect-ratio: auto;
    padding: 30px 22px;
  }

  .engine-window--medium .engine-window-steps {
    position: relative;
    inset: auto;
  }

  .engine-window--medium .engine-step {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    transform: none;
  }

  .detail-section {
    padding: 90px 0;
  }

  .phase-row article {
    padding: 24px 0;
  }

  .phase-row article + article {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .phase-row h3 {
    margin-top: 12px;
  }

  .concept-sheet > div {
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .jump-nav {
    gap: 12px 20px;
    margin-top: 40px;
  }

  .capability-section {
    padding: 90px 0;
  }

  .fit-grid {
    gap: 40px;
    margin-top: 48px;
  }

  .capability-engine-block {
    margin-top: 48px;
    padding: 18px;
  }

  .engine-aside-actions {
    align-items: stretch;
  }

  .engine-aside-actions .text-link,
  .engine-aside-actions .button-link {
    width: 100%;
    justify-content: space-between;
  }

  .section-lead {
    margin-top: 24px;
  }

  .detail-section .row-list {
    margin-top: 32px;
  }

  .detail-subsection {
    margin-top: 48px;
  }

  .detail-engine .engine-window {
    margin-top: 32px;
  }

  .phase-row {
    margin-top: 32px;
  }
}

/* --- Work (SITE_COPY §5 · DESIGN.md §8.3 Case Proof Card · §9.2 빈 상태) --- */
.empty-state h2 {
  max-width: 620px;
  margin: 0;
  font-size: var(--type-lead);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: var(--leading-lead);
}

.case-list {
  border-bottom: 1px solid var(--line);
}

.case-row {
  display: grid;
  gap: 8vw;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 300px minmax(0, 1fr);
}

.case-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.case-index {
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.case-project strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.case-project small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.05em;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tags .concept-label {
  margin-bottom: 0;
}

.case-tag {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.02em;
}

.case-copy h3 {
  max-width: 720px;
  margin: 0;
  font-size: var(--type-h3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: var(--leading-h3);
}

.case-copy dl {
  margin: 38px 0 0;
}

.case-copy dl > div {
  display: grid;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 150px minmax(0, 1fr);
}

.case-copy dt {
  font-family: var(--mono);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-copy dd {
  margin: 0;
  color: var(--muted);
}

.case-copy .text-link {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .case-row {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .case-copy dl > div {
    gap: 6px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .case-row {
    padding: 50px 0;
  }

  .case-copy dl {
    margin-top: 28px;
  }
}

/* --- Insights (SITE_COPY §7 · §7.4 · DESIGN.md §7.4 · §9.2) --- */
.collections,
.founder-section {
  padding: clamp(100px, 12vw, 170px) 0;
}

.collection-grid,
.principle-grid {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.collections .eyebrow {
  margin-bottom: 56px;
}

.collection-grid li,
.principle-grid li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 36px 0;
}

.collection-grid li + li,
.principle-grid li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.collection-grid strong {
  font-family: var(--mono);
  font-size: var(--type-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.collection-grid p,
.principle-grid p,
.career-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-ui);
  line-height: var(--leading-ui);
}

.editorial-rows {
  border-bottom: 1px solid var(--line);
}

.editorial-row h3 {
  max-width: 720px;
  margin: 0;
  font-size: var(--type-h3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: var(--leading-h3);
}

.editorial-row .concept-label {
  margin-bottom: 0;
}

.editorial-index {
  margin-right: 12px;
}

/* --- About (SITE_COPY §6 · §6.6 · DESIGN.md §7.5) --- */
/* 회사 이야기 — H2는 850px, 장문은 §6.3 본문 폭 720px. 2단으로 나누면 H2가 561px에서 4줄이 된다 (§11 · 실측 2026-09-08). */
.about-story h2 {
  max-width: 850px;
}

.story-prose {
  max-width: 720px;
  margin-top: 40px;
}

.principle-grid {
  margin-top: 85px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-grid li > span,
.career-timeline li > span {
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.06em;
}

.principle-grid h3 {
  margin: 28px 0 0;
  font-size: var(--type-h3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: var(--leading-h3);
}

.founder-section h2 {
  max-width: 850px;
  margin: 0 0 72px;
  font-size: var(--type-h2);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: var(--leading-h2);
}

.founder-grid {
  display: grid;
  align-items: start;
  gap: 8vw;
  grid-template-columns: 380px minmax(0, 1fr);
}

.founder-card h3 {
  margin: 0;
  font-size: var(--type-h3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: var(--leading-h3);
}

.founder-role {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.02em;
}

/* 관점 한 줄 — 대표 인용 자리. MaruBuri self-host 전까지 Pretendard로 (§6.2 · C-05). */
.founder-statement {
  margin: 24px 0 0;
  font-size: var(--type-lead);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: var(--leading-lead);
}

.founder-claims {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.founder-claims li {
  display: grid;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 45px minmax(0, 1fr);
}

.founder-claims li > span {
  padding-top: 6px;
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: var(--type-caption);
  letter-spacing: 0.06em;
}

.founder-claims h4 {
  margin: 0;
  font-size: var(--type-lead);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: var(--leading-lead);
}

.founder-claims p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.career-timeline {
  margin: 56px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.career-timeline li {
  display: grid;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 45px 220px minmax(0, 1fr);
}

.career-timeline strong {
  font-family: var(--mono);
  font-size: var(--type-ui);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  border-top: 1px solid var(--line);
}

.source-list a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  color: var(--ink);
  font-size: var(--type-ui);
  font-weight: 600;
  line-height: var(--leading-ui);
  text-decoration: none;
}

.source-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--blue-text);
}

.source-list a:hover {
  text-decoration: underline;
}

.source-list a:active {
  transform: translateY(1px);
}

@media (max-width: 980px) {
  .collection-grid,
  .principle-grid,
  .founder-grid,
  .founder-claims li,
  .career-timeline li {
    grid-template-columns: 1fr;
  }

  .collection-grid li,
  .principle-grid li {
    padding: 24px 0;
  }

  .collection-grid li + li,
  .principle-grid li + li {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle-grid h3 {
    margin-top: 0;
  }

  .founder-grid {
    gap: 40px;
  }

  .founder-claims li,
  .career-timeline li {
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .collections,
  .founder-section {
    padding: 90px 0;
  }

  .collections .eyebrow {
    margin-bottom: 40px;
  }

  .principle-grid {
    margin-top: 56px;
  }

  .founder-section h2 {
    margin-bottom: 48px;
  }

  .career-timeline {
    margin-top: 40px;
  }
}

/* --- 관리자 게시판 /admin/ (SITE_COPY §14 · DESIGN.md §1 정지점 · §9.10) — 사이드바 + 상단 바 + 툴바 + 데이터 테이블 + 고정 처리 패널.
   공개 사이트 토큰만 쓰고 밀도를 높인다. 링크는 전부 버튼 형태다. --- */
.admin {
  color: var(--text-on-dark);
  background: var(--night);
}

.admin .skip-link {
  color: var(--night);
  background: var(--white);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 80px;
}

.admin:not(.admin-signed-in) .admin-sidebar {
  display: none;
}

.admin:not(.admin-signed-in) main {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
}

.admin:not(.admin-signed-in) .admin-topbar {
  justify-content: center;
  margin: 0;
}

/* 사이드바 */
.admin-sidebar {
  display: flex;
  width: 240px;
  flex: none;
  flex-direction: column;
  padding: 24px 20px;
  border-right: 1px solid var(--night-line);
  background: var(--night-soft);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--night-line);
}

.brand--dark {
  color: var(--white);
}

.admin-label {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--night-line);
  color: var(--text-on-dark-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
}

.admin-nav a {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  color: var(--text-on-dark-muted);
  font-size: var(--type-label);
  font-weight: 700;
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
}

.admin-nav a[aria-current="page"] {
  border-left-color: var(--cyan);
  color: var(--text-on-dark);
  background: var(--night);
}

.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--night-line);
}

.admin-user {
  display: block;
  margin-bottom: 10px;
  color: var(--text-on-dark-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
  overflow-wrap: anywhere;
}

/* 상단 바 */
.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.admin-topbar-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.admin h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.admin-topbar-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin h2 {
  margin: 0 0 16px;
  color: var(--text-on-dark-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin [hidden] {
  display: none;
}

/* 카드·패널 */
.admin-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border: 1px solid var(--night-line);
  background: var(--night-soft);
}

.admin-sub {
  margin: 0 0 24px;
  color: var(--text-on-dark-muted);
  font-size: var(--type-label);
}

.admin-panel {
  padding: 20px;
  border: 1px solid var(--night-line);
  background: var(--night-soft);
}

/* 오류 안내 — 테두리 1px + 좌측 3px (§9.4) */
.admin-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--semantic-error);
  background: var(--night);
  font-size: var(--type-label);
  line-height: var(--leading-label);
}

/* 입력 */
.admin .field {
  margin-bottom: 16px;
}

.admin .field label,
.admin .admin-toggle-group legend {
  margin-bottom: 8px;
  color: var(--text-on-dark);
  font-size: var(--type-label);
}

.admin .field input,
.admin .field select,
.admin .field textarea {
  height: 44px;
  padding: 0 12px;
  color: var(--text-on-dark);
  border-color: var(--night-line);
  background: var(--night);
  font-size: 0.9375rem;
}

.admin .field textarea {
  height: auto;
  min-height: 140px;
  padding: 12px;
}

.admin .field input:hover,
.admin .field select:hover,
.admin .field textarea:hover {
  border-color: var(--text-on-dark-muted);
}

.admin .field input[aria-invalid="true"] {
  border-left: 3px solid var(--semantic-error);
}

/* 버튼 — Primary는 흰 면, Secondary는 선. 5개 상태 (§9.9) */
.admin-primary,
.admin-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--type-label);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.admin-primary {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--white);
  color: var(--night);
  background: var(--white);
}

.admin-primary--compact {
  width: auto;
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
}

.admin-primary svg,
.admin-secondary svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.admin-primary:hover {
  border-color: var(--paper-deep);
  background: var(--paper-deep);
}

.admin-primary:active {
  border-color: var(--line);
  background: var(--line);
  transform: translateY(1px);
}

.admin-secondary {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--night-line);
  color: var(--text-on-dark);
  background: transparent;
}

.admin-secondary--compact {
  min-height: 36px;
  padding: 0 12px;
}

.admin-secondary:hover {
  border-color: var(--text-on-dark);
}

.admin-secondary:active {
  transform: translateY(1px);
}

.admin .admin-primary:disabled,
.admin .admin-secondary:disabled {
  border-color: var(--night-line);
  color: var(--text-on-dark-muted);
  background: transparent;
  cursor: not-allowed;
  transform: none;
}

/* 툴바 — 상태는 토글 버튼 */
.admin-toolbar {
  padding: 16px;
  border: 1px solid var(--night-line);
  background: var(--night-soft);
}

.admin-toolbar-grid {
  display: grid;
  align-items: end;
  gap: 16px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
}

.admin-toolbar .field {
  margin-bottom: 0;
}

.admin-toggle-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-toggle-group legend {
  display: block;
  padding: 0;
  font-weight: 700;
}

.admin-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-toggle {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--night-line);
  color: var(--text-on-dark);
  cursor: pointer;
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.admin-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.admin-toggle-mark {
  display: none;
  width: 14px;
  height: 14px;
}

.admin-toggle-mark svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

/* 켜진 상태 — 테두리 색 + 체크 글리프. 색만으로 구분하지 않는다 (§9.1). */
.admin-toggle:has(input:checked) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.admin-toggle:has(input:checked) .admin-toggle-mark {
  display: inline-flex;
}

.admin-toggle:hover {
  border-color: var(--text-on-dark);
}

.admin-toggle:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.admin-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--night-line);
}

.admin-summary {
  color: var(--text-on-dark-muted);
  font-size: var(--type-label);
}

/* 데이터 테이블 */
.admin-table-card {
  margin-top: 16px;
  border: 1px solid var(--night-line);
  background: var(--night-soft);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-label);
  line-height: var(--leading-label);
}

.admin-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--night-line);
  color: var(--text-on-dark-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  height: 52px;
  padding: 8px 14px;
  vertical-align: middle;
}

.admin-table tbody tr + tr td {
  border-top: 1px solid var(--night-line);
}

.admin-table tbody tr:hover {
  background: var(--night);
}

.admin-actions-cell {
  text-align: right;
}

.admin-mono {
  font-family: var(--mono);
  white-space: nowrap;
}

.admin-strong {
  font-weight: 600;
}

.admin-muted {
  color: var(--text-on-dark-muted);
}

/* 상태 표시 — 점 색 + 텍스트 */
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: var(--text-on-dark);
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: var(--leading-label);
  white-space: nowrap;
}

.admin-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--night-line);
}

.admin-chip[data-status="new"] { border-color: var(--cyan); }
.admin-chip[data-status="new"] i { background: var(--cyan); }
.admin-chip[data-status="reviewing"] { border-color: var(--semantic-warning); }
.admin-chip[data-status="reviewing"] i { background: var(--semantic-warning); }
.admin-chip[data-status="replied"] { border-color: var(--semantic-success); }
.admin-chip[data-status="replied"] i { background: var(--semantic-success); }
.admin-chip[data-status="spam"] { border-color: var(--semantic-error); }
.admin-chip[data-status="spam"] i { background: var(--semantic-error); }

/* 모바일 카드 */
.admin-cards {
  display: none;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.admin-cards li {
  padding: 16px;
  border: 1px solid var(--night-line);
  background: var(--night-soft);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-name {
  margin: 10px 0 4px;
  font-size: var(--type-ui);
}

.admin-cards p {
  margin: 4px 0 0;
  font-size: var(--type-caption);
}

.admin-cards .admin-secondary {
  margin-top: 12px;
}

/* 빈 상태 — Dark 변형 (§9.2) */
.admin-empty {
  margin-top: 16px;
  border-color: var(--night-line);
  background: var(--night-soft);
}

.admin-empty strong {
  color: var(--text-on-dark);
}

.admin-empty p {
  color: var(--text-on-dark-muted);
}

.admin-status {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--text-on-dark-muted);
  font-size: var(--type-caption);
}

.admin-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* 상세 — 좌 정보, 우 고정 처리 패널 */
.admin-meta {
  color: var(--text-on-dark-muted);
  font-family: var(--mono);
  font-size: var(--type-caption);
}

.admin-detail-grid {
  display: grid;
  align-items: start;
  gap: 20px;
  grid-template-columns: minmax(0, 1.5fr) 380px;
}

.admin-detail-main {
  display: grid;
  gap: 20px;
}

.admin-detail-side {
  position: sticky;
  top: 24px;
}

.admin-dl {
  display: grid;
  margin: 0;
  gap: 12px 16px;
  font-size: var(--type-label);
  grid-template-columns: 140px minmax(0, 1fr);
  line-height: var(--leading-ui);
}

.admin-dl dt {
  color: var(--text-on-dark-muted);
}

.admin-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-dl a {
  color: var(--cyan);
}

.admin-message {
  margin: 0;
  font-size: var(--type-ui);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.admin-actions form + form {
  margin-top: 20px;
}

.admin-actions .admin-primary--compact {
  width: 100%;
  justify-content: space-between;
}

.admin-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-actions-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--night-line);
}

.admin-events {
  margin: 0;
  padding: 0;
  font-size: var(--type-caption);
  line-height: var(--leading-label);
  list-style: none;
}

.admin-events li {
  display: grid;
  gap: 12px;
  padding: 10px 0;
  grid-template-columns: 130px 72px minmax(0, 1fr);
}

.admin-events li + li {
  border-top: 1px solid var(--night-line);
}

.admin-event-kind {
  font-weight: 700;
}

/* 세션 만료 모달 (§9.10 b8) */
.admin-dialog {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 12, 0.72);
}

@media (max-width: 1200px) {
  .admin-toolbar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-toggle-group {
    grid-column: 1 / -1;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-side {
    position: static;
  }
}

@media (max-width: 980px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .admin-brand {
    padding: 0;
    border: 0;
  }

  .admin-nav {
    padding: 0;
  }

  .admin-sidebar-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding: 0;
    border: 0;
  }

  .admin-user {
    display: none;
  }

  .admin main {
    padding: 24px 18px 80px;
  }
}

@media (max-width: 680px) {
  .admin-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-card {
    display: none;
  }

  .admin-cards {
    display: grid;
  }

  .admin-dl,
  .admin-events li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-nav a {
    min-height: 36px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .final-cta {
    display: none;
  }

  * {
    color: var(--ink) !important;
    background: var(--white) !important;
  }
}
