/* A-Labs — 케이스 스터디 사이트. 다크 단일 톤(히어로와 동일 #0d0e11). 발광·3D·시네마 없음. */
:root {
  --ground: #0d0e11;
  --panel:  #15161b;
  --ink:    #e7e3da;
  --ink-2:  #b6b2a8;
  --label:  #8f8b82;
  --dim:    #858178;
  --hair:   #26282e;
  --hair-2: #1e2025;
  --accent: #d6842f;            /* 앰버 — 히어로 파티클과 동일. 상태·활성 표시에만 */
  --accent-soft: rgba(214,132,47,.12);
  --live:   #6cbf8e;
  --pilot:  #d4a44c;
  --dev:    #8f8b82;
  --f-display: 'Space Grotesk', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; /* 한글 제목은 Plex KR로 */
  --f-body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-weight: 400; font-size: 16.5px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 20; padding: 8px 12px; border-radius: 6px;
  background: var(--ink); color: var(--ground); font-family: var(--f-display); font-size: 13px; }
.skip:focus { left: var(--gutter); }
.display { font-family: var(--f-display); letter-spacing: -.015em; font-weight: 500; }
.kicker, .label, .num, .step-no, .status, .ind, .count {
  font-family: var(--f-display); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--label);
}
/* 한글이 들어가는 라벨은 자간을 벌리지 않는다 */
.label, .status, .ind, .count { letter-spacing: .02em; font-size: 12px; text-transform: none; }
code { font-family: ui-monospace, 'IBM Plex Mono', Menlo, monospace; font-size: .9em; background: var(--hair-2); padding: 1px 5px; border-radius: 4px; }
strong { font-weight: 600; }

/* ---------- 상단·하단 ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter); max-width: 1240px; margin: 0 auto;
}
/* 브랜드 록업 — 공식 로고 키트 alabs-logo-kr (ΛLABS + 에이랩스, 729:222). 국문 병기 최소폭 120px */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-img { width: 128px; height: auto; display: block; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; }
.top nav a[aria-current] { color: var(--ink); }
.top nav { display: flex; gap: 26px; font-family: var(--f-display); font-size: 13px; letter-spacing: .04em; color: var(--label); }
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1240px; margin: 80px auto 0; padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--dim);
}


/* ---------- 메인 홈 ---------- */


.mh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.mh-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: #0d0e11; color: #e7e3da; overflow: hidden;
  padding-left: max(var(--gutter), calc(50vw - 620px)); padding-right: max(var(--gutter), calc(50vw - 620px)); }
.lam-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(231,227,218,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(231,227,218,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 60% 50%, #000 20%, transparent 78%); }
.mh-hero .mh-copy { position: relative; z-index: 2; max-width: 620px; padding: 110px 0; }
.mh-hero .kicker { color: rgba(231,227,218,.55); }
.mh-copy h1 { font-size: clamp(46px, 7vw, 88px); line-height: 1.0; letter-spacing: -.04em; margin: 18px 0 26px; color: #fff; }
.mh-copy .lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; margin: 0 0 14px; color: rgba(255,255,255,.92); }
.mh-copy .sub { font-size: 15.5px; color: rgba(231,227,218,.6); margin: 0; max-width: 54ch; }
.cta-row { display: flex; gap: 14px; margin-top: 34px; align-items: center; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 15px;
  background: #f3f1eb; color: #141417; padding: 13px 22px; border-radius: 10px; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta.ghost { background: transparent; color: #e7e3da; border: 1px solid rgba(231,227,218,.28); }
.cta.ghost:hover { border-color: #e7e3da; color: #fff; background: transparent; }
.cta-arr { font-family: var(--f-body); }
.telemetry { position: absolute; left: max(var(--gutter), calc(50vw - 620px)); right: max(var(--gutter), calc(50vw - 620px)); bottom: 24px; z-index: 2;
  display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(231,227,218,.58);
  border-top: 1px solid rgba(231,227,218,.12); padding-top: 14px; }
.tel-item { display: inline-flex; align-items: center; gap: 8px; }
.tel-item b { color: #e7e3da; font-weight: 600; }
.tel-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block;
  animation: telpulse 2.4s ease-in-out infinite; }
@keyframes telpulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
/* ---------- 은하수 인트로 (WebGL) ---------- */
.intro { position: relative; }
html.gal-on .intro { height: 1150vh; }
@media (max-width: 960px) { html.gal-on .intro { height: 950vh; } }
html.gal-on .intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.gal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
html:not(.gal-on) .gal, html.gal-on .lam-canvas { display: none; }
html.gal-on .mh-hero .mh-copy { opacity: 0; }
.intro-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.intro-label { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; white-space: nowrap; display: flex; flex-direction: column; gap: 3px; will-change: transform, opacity;
  background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; }
.intro-label .n { font-family: var(--f-display); font-size: 11px; letter-spacing: .18em; color: rgba(231,227,218,.5); }
.intro-label .name { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: .08em; color: #fff;
  filter: blur(6px); transition: filter .7s ease, letter-spacing .9s ease; }
.intro-label.on .name { filter: blur(0); letter-spacing: -.01em; }
.intro-label::after { content: ''; display: block; width: 0; height: 1px; background: var(--accent); margin-top: 8px; transition: width .8s ease .15s; }
.intro-label.on::after { width: 56px; }
.intro-label .meta { font-family: var(--f-body); font-size: 12px; letter-spacing: .02em; color: rgba(231,227,218,.6); }
.intro-label:hover .name, .intro-label:focus-visible .name { color: var(--accent); }
.intro-label:hover::after, .intro-label:focus-visible::after { width: 100%; }
/* 포트폴리오 동굴 — 라벨 클릭 → 왼쪽 슬라이드 패널, 배경 은하수 유지 */
.cave { position: absolute; inset: 0; z-index: 6; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
.cave.on { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.cave-veil { position: absolute; inset: 0; }
.cave-body { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(360px, 33.5vw, 560px);
  background: rgba(13,14,17,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(231,227,218,.14);
  transform: translateX(-102%); transition: transform .45s cubic-bezier(.22,.9,.3,1);
  padding: 84px clamp(24px, 3vw, 44px) 40px; overflow-y: auto; overscroll-behavior: contain; }
.cave.on .cave-body { transform: translateX(0); }
@media (max-width: 900px) { .cave-body { width: 100%; border-right: 0; } }
.cave-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(231,227,218,.22); color: rgba(231,227,218,.8);
  font-size: 15px; line-height: 1; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.cave-close:hover { border-color: #e7e3da; color: #fff; }
.cave-panel .kicker { color: rgba(231,227,218,.55); margin: 0 0 10px; }
.cave-title { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; color: #fff; margin: 0 0 10px; }
.cave-sub { display: block; font-size: 15px; font-weight: 400; letter-spacing: .02em; color: rgba(231,227,218,.6); margin-top: 4px; }
.cave-status { margin: 0 0 18px; }
.cave-line { font-size: 15px; line-height: 1.75; color: rgba(231,227,218,.85); margin: 0 0 22px; }
.cave-problems { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid rgba(231,227,218,.12); }
.cave-problems li { padding: 11px 0 11px 18px; position: relative; font-size: 14.5px; line-height: 1.6; color: rgba(231,227,218,.75);
  border-bottom: 1px solid rgba(231,227,218,.08); }
.cave-problems li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--accent); }
.cave-more { display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px; color: #fff;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.cave-more:hover { color: var(--accent); }
body.cave-lock { overflow: hidden; }
.intro-cue, .intro-skip, .intro-hud { display: none; }
html.gal-on .intro-cue { display: block; position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3; margin: 0;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(231,227,218,.55); }
html.gal-on .intro-cue::after { content: ''; position: absolute; left: 50%; top: calc(100% + 10px); width: 1px; height: 28px; background: linear-gradient(rgba(231,227,218,.6), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
html.gal-on .intro-skip { display: inline-flex; position: absolute; right: max(var(--gutter), calc(50vw - 620px)); top: 84px; z-index: 4;
  background: transparent; border: 1px solid rgba(231,227,218,.22); color: rgba(231,227,218,.8); border-radius: 999px; padding: 7px 13px;
  font-family: var(--f-display); font-size: 12px; letter-spacing: .04em; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
html.gal-on .intro-skip:hover { border-color: #e7e3da; color: #fff; }
html.gal-on .telemetry { opacity: 0; }
html.gal-on.hud .intro-hud { display: block; position: absolute; left: var(--gutter); top: 84px; z-index: 4; font-family: var(--f-display); font-size: 11px; color: var(--accent); }
/* 인트로 동안 상단바는 고정, 인트로를 지나면 배경 */
html.gal-on body.is-home .top { position: fixed; transition: background .25s ease, border-color .25s ease, opacity .25s ease; border-bottom: 1px solid transparent; }
body.cave-lock .top { opacity: 0; pointer-events: none; }
html.gal-on body.is-home.scrolled .top { background: rgba(13,14,17,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--hair); }

/* 다크 히어로 위 상단바 */
body.is-home .top { position: absolute; left: 0; right: 0; z-index: 3; }
body.is-home .top .brand, body.is-home .top nav a { color: rgba(231,227,218,.75); }
body.is-home .top .brand { color: #fff; }
body.is-home .top nav a:hover { color: var(--accent); }

.preview { padding-top: 56px; }
.preview .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.preview .more:hover { border-color: var(--accent); }

/* 포트폴리오 페이지 */
.pf-head { padding: 44px 0 26px; }
.pf-head h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.03em; margin: 12px 0 14px; }
.pf-head .sub { color: var(--label); font-size: 15.5px; max-width: 64ch; margin: 0; }
.pf-head .count { display: block; margin-top: 14px; }
.home > .grid { margin-top: 10px; }
.nf { min-height: 60vh; }
.nf-links { display: flex; gap: 22px; margin-top: 22px; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.nf-links a { border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.nf-links a:hover { border-color: var(--accent); }

@media (max-width: 960px) {
  .mh-hero { min-height: 100vh; min-height: max(100svh, 740px); align-items: flex-end; }
  .mh-hero .mh-copy { padding: 80px 0 100px; }
  .telemetry { gap: 14px; font-size: 10px; }
  .telemetry .tel-ind { display: none; }
}

/* ---------- 상태 배지 ---------- */
.status { display: inline-block; padding: 4px 9px 3px; border-radius: 999px; border: 1px solid currentColor; line-height: 1; white-space: nowrap; flex: none; }
.status.live { color: var(--live); }
.status.pilot { color: var(--pilot); }
.status.dev { color: var(--dev); }

/* ---------- 홈 ---------- */
.home { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 36px 0 18px; border-top: 1px solid var(--hair); padding-top: 22px; }
.sec-head h2 { font-size: 22px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--hair); border-radius: 12px; padding: 20px 22px 22px;
  transition: border-color .18s ease, transform .18s ease; min-height: 220px;
}
.card:hover, .card:focus-visible { border-color: var(--ink); color: inherit; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-2px); } }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-title { font-family: var(--f-display); font-size: 21px; font-weight: 600; margin: 4px 0 0; letter-spacing: -.01em; line-height: 1.2; }
.card-sub { display: block; font-family: var(--f-body); font-size: 13.5px; font-weight: 400; color: var(--label); margin-top: 3px; letter-spacing: 0; }
.card-line { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.card-quote { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--hair-2); font-size: 13px; color: var(--label); }
.about, .contact { max-width: var(--measure); padding: 56px 0 0; }
.about h2, .contact h2 { font-size: 22px; margin: 0 0 14px; }
.about p { margin: 0 0 14px; }
.contact p { color: var(--ink-2); }
.mail { display: inline-block; font-family: var(--f-display); font-size: 20px; font-weight: 500; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.mail:hover { border-color: var(--accent); }

/* ---------- 케이스 ---------- */
.case { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.case .back { display: inline-block; margin-top: 26px; font-family: var(--f-display); font-size: 13px; color: var(--label); }
.case .back:hover { color: var(--accent); }
.case-head { padding: 18px 0 28px; max-width: 860px; border-bottom: 1px solid var(--hair); }
.case-head h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 12px 0 18px; letter-spacing: -.03em; }
.case-head h1 .sub { display: block; font-family: var(--f-body); font-weight: 300; font-size: clamp(17px, 2vw, 22px); color: var(--label); letter-spacing: 0; margin-top: 8px; }
.case-head .one { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); margin: 0 0 16px; max-width: var(--measure); }
.status-line { margin: 0; }

.part { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 48px 0 8px; border-bottom: 1px solid var(--hair-2); }
.part:last-of-type { border-bottom: 0; }
.part-head { position: sticky; top: 24px; align-self: start; }
.part-head .num { display: block; color: var(--accent); margin-bottom: 8px; }
.part-head h2 { font-size: 26px; margin: 0 0 8px; }
.part-lead { margin: 0; font-size: 13.5px; color: var(--label); line-height: 1.6; }
.items { list-style: none; margin: 0; padding: 0; max-width: var(--measure); counter-reset: item; }
.items > li { padding: 22px 0 24px; border-top: 1px solid var(--hair-2); counter-increment: item; }
.items > li:first-child { border-top: 0; padding-top: 4px; }
.items h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; letter-spacing: -.01em; }
.items h3::before { content: counter(item, decimal-leading-zero); font-family: var(--f-display); font-weight: 500; font-size: 12px; color: var(--dim); letter-spacing: .1em; margin-right: 12px; vertical-align: 2px; }
.items p { margin: 0 0 10px; color: var(--ink-2); }
.items p:last-child { margin-bottom: 0; }
.items dl { margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.7; }
.kv dt { font-family: var(--f-display); font-size: 12px; letter-spacing: .02em; color: var(--label); padding-top: 4px; }
.kv dd { margin: 0; color: var(--ink-2); }
.kv:first-child dd { color: var(--dim); }
.kv.now { border-left: 2px solid var(--accent); padding-left: 12px; }
.kv.now dt { color: var(--accent); }
.kv.now dd { color: var(--ink); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose .notice { font-size: 12px; color: var(--dim); border-top: 1px solid var(--hair-2); padding-top: 12px; margin-top: 20px; }

/* ---------- 구조: 스크롤 조립 ---------- */
.structure .scrolly { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 40px; align-items: start; }
.structure .sticky { position: sticky; top: 72px; }
.dia-wrap { background: var(--panel); border: 1px solid var(--hair); border-radius: 12px; padding: 18px; overflow: auto; }
.dia { width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto; font-family: var(--f-body); }
.dia-hint { display: none; margin: 8px 0 0; font-size: 12px; color: var(--dim); }
.dia .n rect { fill: var(--panel); stroke: var(--dim); stroke-width: 1.2; transition: stroke .35s ease, fill .35s ease, opacity .35s ease; }
.dia .n text { font-size: 12.5px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-weight: 500; transition: fill .35s ease, opacity .35s ease; }
.dia .e { fill: none; stroke: var(--dim); stroke-width: 1.2; transition: stroke .35s ease, opacity .35s ease; }
.dia marker path { fill: var(--dim); }
/* 아직 안 켜진 요소 */
.dia .n.off rect { stroke: var(--hair); fill: transparent; }
.dia .n.off text { fill: var(--hair); }
.dia .e.off { stroke: var(--hair); opacity: .8; }
/* 방금 켜진 단계 강조 */
.dia .n.now rect { stroke: var(--accent); stroke-width: 1.6; fill: var(--accent-soft); }
.dia .n.now text { fill: var(--ink); font-weight: 600; }
.dia .e.now { stroke: var(--accent); stroke-width: 1.6; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 16px 0 18px; border-top: 1px solid var(--hair-2); opacity: .45; transition: opacity .3s ease; }
.step:first-child { border-top: 0; padding-top: 0; }
.step.active { opacity: 1; }
.step h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.45; }
.step-no { display: block; color: var(--accent); margin-bottom: 4px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
/* short 케이스: 정적 */
.case.short .structure .scrolly { grid-template-columns: minmax(0, 1fr); }
.case.short .structure .sticky { position: static; }
.case.short .step { opacity: 1; }
.case.short .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; margin-top: 18px; }
.case.short .step { border-top: 0; padding: 0; }

/* 스크롤 조립 전(JS 미동작·reduced motion): 전부 켜진 상태로 */
.structure:not(.js) .dia .n, .structure:not(.js) .dia .e { opacity: 1; }
.structure:not(.js) .step { opacity: 1; }

/* ---------- 이전/다음 ---------- */
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair); }
.case-nav a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 10px; background: var(--panel); font-size: 14.5px; }
.case-nav a:hover, .case-nav a:focus-visible { border-color: var(--ink); color: inherit; }
.case-nav .next { grid-column: 2; text-align: right; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .part { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 36px; }
  .part-head { position: static; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .part-head .num { margin: 0; }
  .part-head h2 { font-size: 22px; }
  .structure .scrolly { grid-template-columns: minmax(0, 1fr); }
  .structure .sticky { position: static; }
  .dia { max-width: none; }
  .dia-hint { display: block; }
  .step { opacity: 1; }
  .dia .n.off rect, .dia .e.off, .dia .n.off text { stroke: var(--dim); fill: var(--ink); opacity: 1; }
  .dia .n.off rect { fill: var(--panel); }
  .top nav { gap: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav .next { grid-column: auto; text-align: left; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
}
