/* 합본 G — 불 꺼진 관제실. 토큰은 AUTOLAB.DESIGN.md 그대로, 서체는 R6 세트 1 「관제」. 모서리 전부 0. */
:root {
  /* 색 (DESIGN §2) */
  --void: #030405;
  --deck: #0A0D11;
  --paper: #F3F5F6;
  --ink-1: #EDF1F5;
  --ink-2: #A7B0BB;
  --ink-3: #78828F;
  --paper-ink-1: #05070A;
  --paper-ink-2: #48515B;
  --signal: #00ABF9;
  --act: #2196D4;
  --act-on-paper: #1B6E96;
  --caution: #FFB020;
  --field-blue: #00ABF9;
  --field-blue-ink: #030405;
  --hair-dark: rgba(237, 241, 245, .14);
  --scrim: rgba(3, 4, 5, .88);
  --n-idle: #151A21;   /* 보드 노드 '대기' — deck 한 톤 위 */
  --n-done: #0D3B52;   /* 보드 노드 '완료' — 가라앉은 블루 */

  /* 서체 (R6 세트 1) */
  --f-lat: "Archivo", "Pretendard Variable", sans-serif;
  --f-ko: "Gothic A1", "Pretendard Variable", Pretendard, sans-serif;
  --f-body: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", "Pretendard Variable", monospace;

  /* 크기 (DESIGN §3-3) — 멀리 떨어진 다섯 단 + 디스플레이 */
  --t-mono: clamp(.75rem, .72rem + .15vw, .8125rem);
  --t-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --t-head: clamp(2.375rem, .6rem + 4.6vw, 5.25rem);   /* 한글 헤드라인 (Gothic A1 900) */
  --t-xl: clamp(2.75rem, .6rem + 9.4vw, 9rem);         /* 점이 모여 되는 한글 문장 */

  /* 공간 */
  --gut: clamp(16px, 3.2vw, 56px);
  --gutter: clamp(12px, 1.4vw, 24px);
  --col: calc((100vw - 2 * var(--gut) - 11 * var(--gutter)) / 12);

  /* 모션 (DESIGN §5) */
  --ease-settle: cubic-bezier(.16, 1, .3, 1);
  --ease-servo: cubic-bezier(.76, 0, .24, 1);
  --ease-ui: cubic-bezier(.22, 1, .36, 1);
  --d-press: 120ms;
  --d-hover: 180ms;
  --d-ui: 240ms;
  --d-reveal: 800ms;

  /* 흰 반전 진행률 0..1 — JS 가 스크롤로 넣는다. 헤더 잉크·괄호·진행 막대가 같이 따라간다 */
  --inv: 0;
  --hd-ink: color-mix(in srgb, var(--paper-ink-1) calc(var(--inv) * 100%), var(--ink-1));
  --sig: color-mix(in srgb, var(--act-on-paper) calc(var(--inv) * 100%), var(--signal));
}
html[data-ink="blue"] { --hd-ink: var(--field-blue-ink); --sig: var(--field-blue-ink); }

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink-1);
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 430;
  line-height: 1.62;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; }
::selection { background: var(--act); color: var(--void); }
:focus-visible { outline: 2px solid var(--act); outline-offset: 3px; }
br.d { display: none; }
@media (min-width: 721px) { br.d { display: inline; } }

/* 그레인 — 정지 화면, 루프 없음 (DESIGN §4-1). 캔버스·바탕 위, 글자 아래 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-ink="light"] body::after { opacity: .035; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--act); color: var(--void); padding: 10px 14px; text-decoration: none; }
.skip:focus { left: 8px; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--gut); }

/* ── 고정 레이어 ───────────────────────────────── */
#field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; background: var(--void) url("assets/dither-3.webp") left top / cover no-repeat; }
html.field-ok #field { background: var(--void); }

.leaders { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.ld {
  position: absolute; left: 0; top: 0; opacity: 0;
  font: 400 var(--t-mono)/1.5 var(--f-mono); font-stretch: 87.5%; letter-spacing: 0;
  color: var(--ink-2); white-space: pre; font-variant-numeric: tabular-nums;
}
.ld b { font-weight: 400; color: var(--signal); }
.ld.on { opacity: 1; }

.frame { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.br { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border: 0 solid var(--sig); will-change: transform; }
.br-tl { border-top-width: 1px; border-left-width: 1px; }
.br-br { border-bottom-width: 1px; border-right-width: 1px; }
html:not(.js) .br-tl, html.rm .br-tl { transform: translate(var(--gut), 72px); }
html:not(.js) .br-br, html.rm .br-br { left: auto; top: auto; right: var(--gut); bottom: var(--gut); }

.prog { position: fixed; top: 0; right: 0; bottom: 0; width: 2px; z-index: 16; pointer-events: none; }
.prog b { display: block; height: 100%; background: var(--sig); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }

/* 헤더: 장면 잉크를 300ms 따라감 (하드컷 장면에서 헤더만 따라온다) */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--gut); color: var(--hd-ink);
  transition: color 300ms ease;
}
.mark {
  font: 700 15px/1 var(--f-lat); font-stretch: 112.5%; letter-spacing: .02em;
  text-decoration: none; display: inline-flex; gap: .45em; align-items: center; min-height: 44px;
}
.mark i { font-style: normal; color: var(--sig); font-weight: 400; }
.menu-btn { min-height: 44px; min-width: 64px; font: 600 15px/1 var(--f-body); text-align: right; transition: color var(--d-hover) var(--ease-ui); }
.menu-btn .mb-close { display: none; }
html.menu-on .menu-btn .mb-open { display: none; }
html.menu-on .menu-btn .mb-close { display: inline; }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover { color: var(--act); } }

/* 메뉴: 오버레이가 덮는 대신 장면이 물러난다(점묘장 셀 18px, 밝기 30%) */
.menu {
  position: fixed; inset: 0; z-index: 19; background: var(--void);
  display: grid; align-content: center; padding: 96px var(--gut) var(--gut);
}
.menu[hidden] { display: none; }
.menu-list a {
  display: inline-block; font: 900 clamp(2.5rem, 1rem + 6.4vw, 6.5rem)/1.12 var(--f-ko); letter-spacing: -.035em;
  color: var(--ink-1); text-decoration: none; transition: color var(--d-hover) var(--ease-ui);
}
.menu-list a[aria-current="true"] { text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: .06em; }
@media (hover: hover) and (pointer: fine) { .menu-list a:hover { color: var(--act); } }
.menu-tel { margin-top: 40px; }
.menu-tel a { font: 700 var(--t-lead)/1 var(--f-lat); font-stretch: 100%; color: var(--ink-2); text-decoration: none; }
html.motion .menu:not([hidden]) .menu-list li { animation: rise var(--d-reveal) var(--ease-settle) backwards; }
html.motion .menu:not([hidden]) .menu-list li:nth-child(2) { animation-delay: 60ms; }
html.motion .menu:not([hidden]) .menu-list li:nth-child(3) { animation-delay: 120ms; }
html.motion .menu:not([hidden]) .menu-list li:nth-child(4) { animation-delay: 180ms; }

/* ── 공통 ──────────────────────────────────────── */
.s { position: relative; }
.s .grid { position: relative; z-index: 3; }
.sys-copy, .plate { z-index: 3; }
.stage { position: relative; min-height: 100vh; min-height: 100svh; }
html.js .pin .stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: clip; }
.gather { height: 170vh; }
.global { height: 150vh; }
.one { height: 260vh; }
html.js .since { margin-top: -100vh; z-index: 5; } /* 시트가 아래에서 올라와 흰 장면을 덮는다 (R3 #6), 경계는 하드컷 */
html:not(.js) .gather, html:not(.js) .one, html:not(.js) .global { height: auto; }

.h-ko {
  font-family: var(--f-ko); font-weight: 900; font-size: var(--t-head);
  line-height: 1.1; letter-spacing: -.035em; text-wrap: balance;
}
.sq { display: inline-block; width: .2em; height: .2em; margin-left: .07em; background: var(--signal); vertical-align: baseline; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 14px 22px;
  background: var(--act); color: var(--void); font-weight: 600; text-decoration: none; letter-spacing: -.01em;
  transition: background-color var(--d-hover) var(--ease-ui), transform var(--d-press) var(--ease-ui);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--ink-1); } }

/* ── 1 히어로 ──────────────────────────────────── */
.hero { min-height: 100vh; min-height: 100svh; }
.hero .hero-in { position: absolute; left: 0; right: 0; bottom: clamp(72px, 14vh, 160px); align-items: end; }
.hero h1 { grid-column: 1 / span 7; }
.hero .ln { display: block; overflow: clip; padding-bottom: .06em; }
.hero .ln > span { display: inline-block; }
.hero-side { grid-column: 8 / span 4; padding-bottom: .4em; }
.sub { color: var(--ink-2); max-width: 30ch; margin-bottom: 24px; text-wrap: pretty; }
html.motion .hero .ln > span { animation: reveal var(--d-reveal) var(--ease-settle) backwards; }
html.motion .hero .ln:nth-child(2) > span { animation-delay: 90ms; }
html.motion .hero-side { animation: show 600ms var(--ease-ui) 420ms backwards; }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } } /* 헤드라인 클립 리빌 (R3 #10): 글자가 그려지듯 */
@keyframes show { from { opacity: 0; } }

/* ── 2 전환: 점이 모여 글자가 된다 ─────────────── */
.gather-in { height: 100%; align-content: center; row-gap: 32px; }
.h-xl {
  grid-column: 1 / -1; font-family: var(--f-ko); font-weight: 900; font-size: var(--t-xl);
  line-height: 1.08; letter-spacing: -.035em;
}
.h-xl .gl { display: block; width: max-content; }
.two { grid-column: 7 / span 5; font-size: var(--t-lead); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; color: var(--ink-2); text-wrap: pretty; }
.two strong { color: var(--ink-1); font-weight: 600; }
html.motion .h-xl { opacity: var(--gt, 0); }
html.motion .gather .two { opacity: var(--gp, 0); transform: translateY(calc((1 - var(--gp, 0)) * 16px)); }

/* ── 3 fig. 01 보드 ────────────────────────────── */
.sys { background: var(--void); --pl: calc(var(--gut) + 4 * (var(--col) + var(--gutter))); }
html.js .sys { height: 380vh; } /* 4화면: 만드는 것 4단 + 만든 것(경로 3개 차례로 점등) */
html.js .sys-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }

.sys-copy { position: absolute; left: var(--gut); top: 96px; bottom: clamp(32px, 8vh, 80px); width: calc(4 * var(--col) + 3 * var(--gutter)); display: flex; flex-direction: column; }
.idx h2 { font-size: var(--t-small); font-weight: 600; color: var(--ink-1); letter-spacing: 0; margin-bottom: 14px; }
.idx li { position: relative; font-size: var(--t-body); font-weight: 500; line-height: 1.6; color: var(--ink-3); transition: color var(--d-ui) var(--ease-ui); padding-left: 18px; }
.idx li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--signal); opacity: 0; transition: opacity var(--d-ui) var(--ease-ui); }
.idx li.on { color: var(--ink-1); }
.idx li.on::before { opacity: 1; }
.idx-cases { display: none; }
.idx-cases li { font-size: var(--t-small); line-height: 1.85; } /* 6줄: 한 단 작게, 간격은 넓게 */
.sys[data-mode="cases"] .idx-build { display: none; }
.sys[data-mode="cases"] .idx-cases { display: block; }
.cards { margin-top: auto; position: relative; }
.card { font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.015em; text-wrap: pretty; }
.card h3, .card p { display: inline; font-size: inherit; }
.card h3 { font-weight: 600; color: var(--ink-1); }
.card p { font-weight: 500; color: var(--ink-2); }
html.js .card { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms; }
html.js .card.on { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
html.motion .card.on h3, html.motion .card.on p { animation: show 520ms var(--ease-ui) backwards; }
html.motion .card.on p { animation-delay: 70ms; }
html:not(.js) .card + .card { margin-top: 1.2em; }

/* 도판: 틀 대신 한 톤 위 판 + 위 제목 막대 + 아래 범례·합계. 화면보다 크게, 오른쪽이 잘린다 */
.plate {
  position: absolute; left: var(--pl); top: clamp(80px, 12vh, 120px); width: calc(100vw - var(--pl) + 18vw); height: calc(100% - clamp(80px, 12vh, 120px) - clamp(32px, 8vh, 80px));
  background: var(--deck); display: grid; grid-template-rows: 44px 1fr 48px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100vw - var(--pl) - 22vw), transparent calc(100vw - var(--pl) + 4vw));
  mask-image: linear-gradient(to right, #000 calc(100vw - var(--pl) - 22vw), transparent calc(100vw - var(--pl) + 4vw));
}
html:not(.js) .plate { position: relative; left: auto; margin: 32px var(--gut); width: auto; height: 70vh; }
.plate-hd, .plate-ft { display: flex; align-items: center; gap: 20px; padding: 0 16px; font-size: var(--t-small); white-space: nowrap; }
.plate-hd { border-bottom: 1px solid var(--hair-dark); }
.plate-ft { border-top: 1px solid var(--hair-dark); gap: 28px; }
.fig-n { font: 400 var(--t-mono)/1 var(--f-mono); font-stretch: 87.5%; color: var(--ink-2); }
.fig-t { font-weight: 600; color: var(--ink-1); }
.fig-s { color: var(--ink-3); }
.legend { display: flex; gap: 18px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; }
.st-idle { background: var(--n-idle); box-shadow: inset 0 0 0 1px var(--hair-dark); }
.st-run { background: var(--signal); }
.st-hum { background: var(--caution); }
.st-done { background: var(--n-done); }
.totals { display: flex; gap: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.totals b { font-weight: 500; color: var(--signal); }
.plate-body { position: relative; overflow: clip; }
.bp { position: absolute; left: -9%; top: -12%; width: 118%; height: 124%; object-fit: cover; opacity: .2; pointer-events: none; user-select: none; }
#board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* + 레지스트레이션 마크: 도판(data-ui) 안에서만 */
.plate::before, .plate::after {
  content: ""; position: absolute; width: 11px; height: 11px; left: -6px; pointer-events: none;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 100% no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1px no-repeat;
}
.plate::before { top: -6px; }
.plate::after { bottom: -6px; }

.nodes { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.nd {
  position: absolute; left: 0; top: 0; width: 168px; height: 48px; padding: 0 14px;
  display: flex; align-items: center; text-align: left; white-space: nowrap;
  font: 500 16px/1 var(--f-body); letter-spacing: -.01em;
  background: var(--n-idle); color: var(--ink-2);
  transition: background-color 300ms ease, color 300ms ease, opacity var(--d-ui) var(--ease-ui);
}
.nd.st-run { background: var(--signal); color: var(--void); }
.nd.st-hum { background: var(--caution); color: var(--void); }
.nd.st-done { background: var(--n-done); color: var(--ink-1); }
.nd.dim { opacity: .2; }
.nd.hot { outline: 1px solid var(--signal); outline-offset: -1px; }
.nd:focus-visible { outline: 2px solid var(--act); outline-offset: 3px; }

.tip { position: absolute; z-index: 5; max-width: 280px; padding: 12px 14px; background: var(--void); border: 1px solid var(--hair-dark); pointer-events: none; }
.tip b { display: block; font-size: var(--t-small); font-weight: 600; color: var(--ink-1); margin-bottom: 4px; }
.tip span { display: block; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.log { position: absolute; z-index: 6; left: 16px; bottom: 64px; width: min(460px, calc(100vw - var(--pl) - 40px)); max-height: 56%; overflow: auto; background: var(--void); border: 1px solid var(--hair-dark); padding: 14px 16px; }
.log-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.log-hd b { font-weight: 600; }
.log-hd button { font-size: var(--t-small); color: var(--act); min-height: 40px; padding: 0 4px; text-decoration: underline; text-underline-offset: .18em; }
.log-d { font-size: var(--t-small); color: var(--ink-2); margin: 2px 0 10px; }
.log ol { font: 400 var(--t-mono)/1.7 var(--f-mono); font-stretch: 87.5%; color: var(--ink-2); }
.log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li:last-child { color: var(--signal); }
html.motion .log li:last-child { animation: show 180ms var(--ease-ui); }

/* ── 해외·다국어: 같은 문장이 점으로 여러 언어가 된다 ── */
.global-in { height: 100%; align-content: center; row-gap: 36px; }
.say {
  grid-column: 1 / -1; font-family: var(--f-ko); font-weight: 900; font-size: clamp(2.25rem, .8rem + 5.2vw, 6.5rem);
  line-height: 1.12; letter-spacing: -.035em; min-height: 2.3em;
}
.say .gl { display: block; width: max-content; max-width: 100%; }
.say[data-f="zh"] { font-family: "Noto Sans SC", var(--f-ko); letter-spacing: -.02em; }
.say[data-f="ja"] { font-family: "Noto Sans JP", var(--f-ko); letter-spacing: -.02em; }
.say[data-f="lat"] { font-family: var(--f-lat); font-weight: 800; font-stretch: 100%; letter-spacing: -.025em; font-size: clamp(2rem, .7rem + 4.1vw, 5.5rem); }
html.motion .say { opacity: var(--sa, 0); }
.glob-txt { grid-column: 7 / span 5; position: relative; background: var(--void); padding: 14px 18px; margin: -14px -18px; font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.015em; text-wrap: pretty; }
.glob-txt h2, .glob-txt p { display: inline; font-size: inherit; }
.glob-txt h2 { font-weight: 600; color: var(--ink-1); }
.glob-txt p { font-weight: 500; color: var(--ink-2); }

/* ── 4 흰 반전 + 1 SYSTEM ─────────────────────── */
.one { color: var(--paper-ink-1); }
html:not(.js) .one, html.rm .one { background: var(--paper); }
.one-in { height: 100%; align-content: center; row-gap: 28px; }
.one-fig {
  grid-column: 1 / -1; font-family: var(--f-lat); font-weight: 800; font-size: 13.2vw; line-height: .86; letter-spacing: -.01em;
  font-variation-settings: "wdth" var(--ow, 125), "wght" var(--og, 800); white-space: nowrap;
}
.o-1 { color: var(--act-on-paper); }
.one-cap { grid-column: 7 / span 5; font-size: var(--t-lead); font-weight: 500; line-height: 1.4; color: var(--paper-ink-2); }
html.motion .one-in { opacity: var(--oa, 0); }

/* ── 5 블루 단색 · 2018 ───────────────────────── */
.since { background: var(--field-blue); color: var(--field-blue-ink); min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(48px, 10vh, 120px); }
.since-in { width: 100%; align-items: end; }
.since-fig { grid-column: 1 / span 8; font: 700 clamp(7.5rem, 30vw, 32rem)/1 var(--f-lat); font-stretch: 62.5%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.roll { display: inline-flex; }
.col { display: inline-block; height: 1em; overflow: clip; }
.col > span { display: block; height: 1em; transform: translateY(calc(var(--d) * -1em)); }
html.motion .since.go .col > span { transition: transform 1100ms var(--ease-settle); }
html.motion .since.go .col:nth-child(2) > span { transition-delay: 70ms; }
html.motion .since.go .col:nth-child(3) > span { transition-delay: 140ms; }
html.motion .since.go .col:nth-child(4) > span { transition-delay: 210ms; }
.col i { display: block; height: 1em; font-style: normal; }
.since-cap { grid-column: 9 / span 4; font-size: var(--t-lead); font-weight: 500; line-height: 1.4; padding-bottom: .6em; }

/* ── 6 연락 ──────────────────────────────────── */
.contact { min-height: 100vh; min-height: 100svh; display: flex; }
.contact-in { width: 100%; align-content: space-between; padding-top: clamp(120px, 24vh, 240px); padding-bottom: clamp(40px, 8vh, 96px); row-gap: 40px; }
.ask { grid-column: 2 / span 10; text-align: center; justify-self: center; }
.ask-sub { grid-column: 4 / span 6; text-align: center; color: var(--ink-2); text-wrap: balance; margin-top: -12px; }
.reach { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px 48px; align-items: end; margin-top: 6vh; }
.reach-main { display: grid; justify-items: start; gap: 28px; }
.btn-xl { min-height: 72px; padding: 22px 40px; font-size: var(--t-lead); font-weight: 700; }
.reach-alt { display: flex; flex-wrap: wrap; gap: 10px 36px; background: var(--void); padding: 6px 10px; margin-left: -10px; font: 400 var(--t-mono)/1.4 var(--f-mono); font-stretch: 87.5%; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reach-alt a { color: inherit; text-decoration: none; transition: color var(--d-hover) var(--ease-ui); }
.reach-alt span { color: var(--ink-3); margin-right: 10px; }
@media (hover: hover) and (pointer: fine) { .reach-alt a:hover { color: var(--act); } }

/* ── 푸터: 같은 톤의 거대 워드마크, 아래가 잘린다 ── */
.ft { position: relative; z-index: 3; background: var(--void); overflow: clip; padding-top: 48px; }
.ft-meta { padding: 0 var(--gut); color: var(--ink-3); font-size: var(--t-small); }
.ft-mark {
  display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gut);
  font: 800 13.6vw/.86 var(--f-lat); font-stretch: 125%; letter-spacing: .01em; color: #12161A;
  margin-bottom: -.2em; user-select: none;
}
.ft-mark i { font-style: normal; font-weight: 300; color: #0E3B52; }

/* ── 모바일 ≤900 ─────────────────────────────── */
@media (max-width: 900px) {
  .hero h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / -1; padding-top: 20px; }
  .sub { margin-bottom: 20px; }
  .two, .glob-txt { grid-column: 1 / -1; }
  .one-fig { font-size: 19vw; line-height: .9; white-space: normal; }
  .one-fig .o-w { display: block; }
  .one-cap, .since-cap { grid-column: 1 / -1; }
  .since-fig { grid-column: 1 / -1; font-size: 44vw; }
  .ask, .ask-sub { grid-column: 1 / -1; }
  .reach { gap: 16px; }
  .ft-mark { font-size: 12.4vw; font-stretch: 112.5%; }

  .sys { --pl: 0px; }
  .sys-copy { top: auto; bottom: 0; left: 0; width: 100%; height: 35%; padding: 18px var(--gut) 22px; background: var(--void); }
  .idx h2 { margin-bottom: 0; }
  .idx ul { display: none; }
  .plate { left: 0; top: 60px; width: 100vw; height: calc(65% - 64px); -webkit-mask-image: none; mask-image: none; grid-template-rows: 40px 1fr 40px; }
  .plate::before, .plate::after { display: none; }
  .fig-s { display: none; }
  .plate-ft { gap: 14px; padding: 0 12px; }
  .legend { gap: 10px; font-size: 12px; }
  .totals span:nth-child(n+3) { display: none; }
  .nd { font-size: 17px; }
  .log { left: 8px; right: 8px; width: auto; bottom: 48px; }
}
@media (max-width: 380px) { .legend li:nth-child(4) { display: none; } }

/* ── 연락: 한 줄 문의 폼 (autolabkorea.com/api/contact 로 보냄) ── */
.ask-form { display: grid; gap: 14px; padding: 24px 28px 20px; background: var(--void); border: 1px solid var(--hair-dark); } /* 점 위에 단색 패널: 폼은 폼으로 읽혀야 한다 */
.ask-form-h { font: 400 var(--t-mono)/1 var(--f-mono); font-stretch: 87.5%; color: var(--ink-2); padding-bottom: 6px; }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ask-form input[type=text], .ask-form input[type=tel], .ask-form textarea {
  width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0;
  color: var(--ink-1); font: inherit; transition: border-color var(--d-ui) var(--ease-ui);
}
.ask-form textarea { resize: vertical; min-height: 56px; }
.ask-form ::placeholder { color: var(--ink-3); }
.ask-form input:not([type=checkbox]):focus, .ask-form textarea:focus { outline: 0; border-bottom-color: var(--act); box-shadow: 0 1px 0 var(--act); }
.ask-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 6px; }
.ask-agree { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: var(--t-small); }
.ask-agree input { width: 18px; height: 18px; accent-color: var(--act); }
.ask-agree a { color: var(--act); }
.ask-msg { min-height: 1.5em; color: var(--ink-2); font-size: var(--t-small); }
.ask-msg.bad { color: var(--caution); }
.btn[disabled] { opacity: .6; cursor: default; }
@media (max-width: 900px) { .reach { grid-template-columns: 1fr; } .ask-row { grid-template-columns: 1fr; } .ask-form { padding: 20px 18px 16px; } }

@media (max-width: 1100px) { .totals span:nth-child(n+3) { display: none; } } /* 좁은 데스크톱: 합계가 잘리지 않게 */
.nb { white-space: nowrap; }
@media (max-width: 900px) { .cards { margin-top: 12px; } html.js .card { top: 0; bottom: auto; } } /* 사례 글을 제목 바로 아래로 */
.global .grid { z-index: 5; } /* 지시선 라벨이 문단 위로 오지 않게 */
