/* archive · v0.1 · 어두운 발표 화면 */
:root {
  --bg: #07060f;
  --bg2: #0e0c1c;
  --ink: #f3f0fb;
  --ink2: #c9c4de;
  --muted: #9d97bb;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(16, 13, 36, 0.72);
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Instrument Serif", "Noto Serif KR", Georgia, serif;
  /* Paul Tol bright/muted 혼합 — 어두운 배경·색맹 구분용 11색 */
  --theme-0: #ee6677; /* 화재·재난 안전 */
  --theme-1: #66ccee; /* 디지털트윈·복합재난 */
  --theme-2: #aa3377; /* 뇌파·BCI·로보틱스 */
  --theme-3: #ee8866; /* 생체신호 안전장비 */
  --theme-4: #ccbb44; /* 실증·생성형 안전문서 */
  --theme-5: #4477aa; /* BIM 정책·기획 */
  --theme-6: #228833; /* BIM 센터·스마트건설 */
  --theme-7: #ffb000; /* BIM 교육 */
  --theme-8: #bb5566; /* 논문·연구 원고 */
  --theme-9: #9944cc; /* AI 도구 실험 */
  --theme-10: #bbbbbb; /* 기획·업무 참고 */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stage canvas { /* auto-rotate는 JS에서 끔 */ }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--theme-1); text-underline-offset: 0.16em; }
:focus-visible { outline: 2px solid var(--theme-7); outline-offset: 2px; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(68, 119, 170, 0.18), transparent 70%),
    radial-gradient(45% 40% at 20% 80%, rgba(170, 51, 119, 0.12), transparent 65%),
    var(--bg);
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.hero-stage canvas:active { cursor: grabbing; }
.theme-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.theme-tag {
  position: absolute;
  left: 0;
  top: 0;
  margin: -0.7em 0 0 10px;
  padding: 2px 8px 2px 14px;
  border-radius: 999px;
  background: rgba(7, 6, 15, 0.55);
  color: var(--ink);
  font: 500 0.74rem / 1.3 var(--sans);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
.theme-tag::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.theme-tag.is-on { opacity: 0.92; }
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 6, 15, 0.88) 0%, rgba(7, 6, 15, 0.55) 38%, rgba(7, 6, 15, 0.15) 62%, transparent 78%),
    linear-gradient(180deg, rgba(7, 6, 15, 0.45) 0%, transparent 22%),
    linear-gradient(0deg, rgba(7, 6, 15, 0.92) 0%, rgba(7, 6, 15, 0.35) 28%, transparent 55%);
}

.hero-ui {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(560px, 100%);
  padding: max(72px, env(safe-area-inset-top)) max(20px, calc((100% - 1120px) / 2 + 20px)) 28px;
  pointer-events: none;
}
.hero-ui .legend,
.hero-ui .legend button { pointer-events: auto; }

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-7);
  text-shadow: 0 1px 12px #000;
}
.hero h1 {
  margin: 0;
  font: 400 clamp(2.4rem, 7vw, 4.4rem) / 1.02 var(--display);
  letter-spacing: -0.015em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65);
}
.lede {
  margin: 0.7rem 0 0;
  max-width: 32em;
  color: var(--ink2);
  font-size: 1rem;
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 1.25rem 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.stats div { min-width: 0; }
.stats dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stats dd {
  margin: 0.15rem 0 0;
  font: 400 1.35rem / 1.1 var(--display);
  letter-spacing: -0.02em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1rem 0 0;
  max-width: 36rem;
}
.legend button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 24, 0.55);
  color: var(--ink2);
  font: 500 0.72rem / 1.2 var(--sans);
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.legend button:hover { border-color: rgba(255, 255, 255, 0.35); color: var(--ink); }
.legend button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}
.legend button.is-dim { opacity: 0.38; }
.legend .swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, #fff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.tip {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 6, 20, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(12px, 12px);
  max-width: min(90vw, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

main { min-height: 0; }

/* —— 발표 본문 섹션 —— */
.slide-section {
  padding: 72px max(16px, calc((100% - 1120px) / 2 + 16px));
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 40% at 10% 0%, rgba(68, 119, 170, 0.08), transparent 70%),
    var(--bg);
}
.slide-section:nth-of-type(even) {
  background:
    radial-gradient(45% 35% at 90% 10%, rgba(170, 51, 119, 0.08), transparent 65%),
    var(--bg2);
}
.section-inner { max-width: 1120px; margin: 0 auto; }
.sec-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-7);
}
.slide-section h2 {
  margin: 0;
  font: 400 clamp(1.9rem, 4vw, 2.8rem) / 1.15 var(--display);
  letter-spacing: -0.02em;
}
.sec-lede {
  margin: 0.6rem 0 1.5rem;
  max-width: 40em;
  color: var(--ink2);
  font-size: 1.02rem;
}
.chart-block { margin: 0 0 1.5rem; }
.twin-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 1.5rem;
}
.chart-panel {
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  min-width: 0;
}
.chart-panel-wide { margin: 0 0 1.5rem; }
.chart-panel h3 {
  margin: 0 0 0.35rem;
  font: 600 0.92rem / 1.3 var(--sans);
  color: var(--ink);
}
.chart-caption {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.chart-host { width: 100%; overflow: hidden; }
.chart-svg { display: block; max-width: 100%; }
.chart-label, .chart-value, .chart-axis {
  fill: var(--ink2);
  font-family: var(--sans);
  font-size: 11px;
}
.chart-value { fill: var(--ink); font-size: 11px; font-weight: 600; }
.chart-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.chart-bar { opacity: 0.92; }

.problem-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.problem-card {
  margin: 0;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
}
.problem-num {
  margin: 0;
  font: 400 clamp(1.4rem, 2.5vw, 1.85rem) / 1.15 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.problem-label {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink2);
}
.problem-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* —— 파이프라인 —— */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: none;
}
.pipe-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 10, 28, 0.55);
  opacity: 0.38;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s;
}
/* 발표 모드: 그 장이 열리면 1→10 차례로 켜고, 한 화면에 들어가게 조금 촘촘히 */
body.is-presenting .is-present-slide .pipeline { gap: 8px; }
body.is-presenting .is-present-slide .pipe-step {
  padding: 10px 12px 8px;
  opacity: 1;
  transform: none;
  border-color: rgba(255, 176, 0, 0.35);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.pipe-step.is-on {
  opacity: 1;
  transform: none;
  border-color: rgba(255, 176, 0, 0.35);
}
.pipe-n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 176, 0, 0.12);
  color: var(--theme-7);
  font: 600 0.85rem / 1 var(--sans);
}
.pipe-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.pipe-num {
  margin: 0.2rem 0 0;
  font: 400 1.25rem / 1.2 var(--display);
  color: var(--ink);
}
.pipe-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .pipe-step { opacity: 1; transform: none; transition: none; }
}

/* —— AI 체험 —— */
.demo-block {
  margin: 0 0 1.75rem;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.demo-block h3 {
  margin: 0 0 0.75rem;
  font: 600 1.05rem / 1.3 var(--sans);
}
.demo-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.demo-hint code {
  font-size: 0.85em;
  color: var(--theme-1);
}
.demo-badge {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: var(--theme-7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.sent-list, .query-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sent-btn, .query-btn, .demo-action {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 8, 24, 0.55);
  color: var(--ink2);
  font: 500 0.82rem / 1.35 var(--sans);
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sent-btn:hover, .query-btn:hover, .demo-action:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ink);
}
.sent-btn[aria-pressed="true"], .query-btn[aria-pressed="true"] {
  background: rgba(102, 204, 238, 0.12);
  border-color: rgba(102, 204, 238, 0.55);
  color: var(--ink);
}
.demo-action {
  margin-top: 0.75rem;
  background: rgba(255, 176, 0, 0.1);
  border-color: rgba(255, 176, 0, 0.35);
  color: var(--ink);
}
.sim-bar-wrap { margin-top: 0.85rem; }
.sim-bar-wrap > .sim-bar { display: none; } /* 아래 순위 막대와 겹치므로 글 한 줄만 */
.sim-rank {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.sim-rank li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 38%) 3.2em;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--ink2);
}
.sim-rank li.is-pair { background: rgba(102, 204, 238, 0.12); color: var(--ink); }
.sim-rank .sim-bar { height: 8px; }
.sim-rank em { font-style: normal; text-align: right; color: var(--theme-7); font-variant-numeric: tabular-nums; }
.sim-anchor { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted); }
.sim-anchor strong { color: var(--ink); font-weight: 600; }
.sim-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sim-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--theme-1), var(--theme-7));
  transition: width 0.35s ease;
}
.sim-score {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink2);
}
.mini-map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0914;
}
.rrf-grid {
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.6rem;
}
.rrf-grid h4 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.rrf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rrf-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--ink2);
}
.rrf-list li em { font-style: normal; color: var(--theme-7); }
.rrf-merged li.is-top {
  background: rgba(102, 204, 238, 0.12);
  color: var(--ink);
}
.fake-doc, .fake-json {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink2);
  font: 400 0.8rem / 1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.fake-json { margin-top: 0.75rem; color: var(--theme-1); }
.file-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}
.file-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
}
.file-list li.is-group { background: rgba(34, 136, 51, 0.15); }
.fn-raw { color: var(--ink2); }
.fn-norm { color: var(--theme-6); font-size: 0.78rem; }
.minhash-fig { margin-top: 0.75rem; max-width: 420px; }
.minhash-fig svg { width: 100%; height: auto; }
.mh-label { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.mh-box { fill: rgba(102, 204, 238, 0.15); stroke: rgba(102, 204, 238, 0.45); }
.mh-box.mh-b { fill: rgba(34, 136, 51, 0.2); stroke: rgba(34, 136, 51, 0.5); }
.mh-txt { fill: var(--ink); font-size: 12px; font-family: var(--sans); }
.mh-sub { fill: var(--muted); font-size: 10px; font-family: var(--sans); }
.mh-link { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; fill: none; }
.mh-circle { fill: rgba(255, 176, 0, 0.12); stroke: rgba(255, 176, 0, 0.45); }

/* —— 검증·원칙·사용·역할 —— */
.accuracy-grid {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.acc-card {
  margin: 0;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.acc-card.acc-weak {
  border-color: rgba(238, 102, 119, 0.45);
  background: rgba(238, 102, 119, 0.08);
}
.acc-num {
  margin: 0;
  font: 400 clamp(1.35rem, 2.2vw, 1.75rem) / 1.15 var(--display);
}
.acc-label {
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.acc-note {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}
.search-accuracy {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.search-accuracy li {
  display: grid;
  grid-template-columns: minmax(8em, 14em) 1fr 3em;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  color: var(--ink2);
}
.search-accuracy strong {
  font: 400 1.1rem / 1 var(--display);
  color: var(--theme-7);
  text-align: right;
}
.search-accuracy i {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-7) calc(var(--v) * 10%), rgba(255, 255, 255, 0.08) 0);
}
/* 4~5처럼 범위면 5칸째를 옅게 */
.search-accuracy i.is-range {
  background: linear-gradient(90deg, var(--theme-7) 40%, rgba(255, 176, 0, 0.4) 40% 50%, rgba(255, 255, 255, 0.08) 0);
}

.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.principle-list li {
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
}
.principle-list h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.principle-list p {
  margin: 0.4rem 0 0;
  color: var(--ink2);
  font-size: 0.92rem;
}

.usage-mock {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "badge badge" "mock points";
  gap: 0 28px;
  align-items: start;
}
.usage-mock .demo-badge { grid-area: badge; justify-self: start; }
.usage-mock .mock-search { grid-area: mock; }
.usage-mock .usage-points { grid-area: points; margin-top: 0; }
.nw { white-space: nowrap; }
.mock-search {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  display: grid;
  gap: 12px;
}
.mock-q {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.mock-hits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mock-hits li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 4px;
}
.mock-tag {
  font-size: 0.72rem;
  color: var(--muted);
}
.mock-title { font-size: 0.9rem; color: var(--ink2); }
.mock-side {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.mock-side strong {
  font: 400 1.2rem / 1.2 var(--display);
  color: var(--ink);
}
.usage-points {
  margin: 1rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink2);
  font-size: 0.92rem;
}
.usage-points li { margin: 0 0 0.75rem; }
.usage-points strong { color: var(--ink); }

.roles-wrap { overflow-x: auto; }
.roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.roles-table th, .roles-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.roles-table thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.roles-table tbody th {
  width: 7.5rem;
  color: var(--theme-7);
  font-weight: 600;
  white-space: nowrap;
}
.roles-table td { color: var(--ink2); }
.roles-foot {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .twin-charts { grid-template-columns: 1fr; }
  .problem-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: 1fr; }
  .usage-mock { grid-template-columns: 1fr; grid-template-areas: "badge" "mock" "points"; }
  .usage-mock .usage-points { margin-top: 1rem; }
  .accuracy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .slide-section { padding: 52px 16px; }
  .problem-cards { grid-template-columns: 1fr; }
  .accuracy-grid { grid-template-columns: 1fr; }
  .rrf-grid { gap: 6px; }
  .rrf-list li { padding: 5px 6px; font-size: 0.78rem; }
  .search-accuracy li { grid-template-columns: 1fr 2.6em; }
  .sim-rank li { grid-template-columns: 1fr 3.2em; gap: 4px 10px; }
  .sim-rank .sim-bar { grid-column: 1 / -1; grid-row: 2; }
  .search-accuracy i { grid-column: 1 / -1; grid-row: 2; }
}

/* —— 발표 모드 —— */
.present-btn {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 40;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(12, 10, 28, 0.88);
  color: var(--ink);
  font: 600 0.85rem / 1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.present-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.present-btn[aria-pressed="true"] {
  background: rgba(255, 176, 0, 0.18);
  border-color: rgba(255, 176, 0, 0.5);
}
.present-chrome {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 6, 15, 0.85), transparent);
}
.present-chrome[hidden] {
  display: none !important;
}
.present-chrome .present-nav { pointer-events: auto; display: flex; gap: 8px; }
.present-chrome button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(12, 10, 28, 0.9);
  color: var(--ink);
  font: 600 0.85rem / 1 var(--sans);
  cursor: pointer;
}
.present-count {
  margin: 0;
  pointer-events: none;
  font: 500 0.85rem / 1 var(--sans);
  color: var(--ink2);
  letter-spacing: 0.06em;
}
body.is-presenting {
  overflow: hidden;
}
body.is-presenting .brand {
  display: none;
}
@media (max-width: 720px) {
  /* 휴대폰: 첫 화면을 벗어나면 '발표' 단추가 본문 숫자를 가리지 않게 숨김 */
  body.hero-away:not(.is-presenting) .present-btn { opacity: 0; pointer-events: none; }
}
.present-btn { transition: opacity 0.25s; }
body.is-presenting .present-btn {
  bottom: calc(56px + env(safe-area-inset-bottom));
}
body.is-presenting .is-present-hidden {
  display: none !important;
}
body.is-presenting .is-present-slide {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: auto;
  padding-bottom: 72px;
  background: var(--bg);
  border-top: none;
}
body.is-presenting #hero.is-present-slide {
  display: grid;
  padding: 0;
}
body.is-presenting .slide-section.is-present-slide .section-inner {
  min-height: calc(100dvh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 28px max(16px, calc((100% - 1120px) / 2 + 16px));
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.brand a { color: inherit; text-decoration: none; }
.brand a:hover { color: var(--ink); }
.brand img { display: block; height: 20px; width: auto; opacity: 0.9; }
.brand .ver { margin-left: auto; opacity: 0.7; }

@media (max-width: 720px) {
  .hero-ui {
    width: 100%;
    /* 아래 68px: 오른쪽 아래 '발표' 단추가 범례를 가리지 않게 */
    padding: max(56px, env(safe-area-inset-top)) 16px 68px;
  }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 12px;
  }
  .stats dt { font-size: 0.62rem; }
  .stats dd { font-size: 1.12rem; white-space: nowrap; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 6, 15, 0.35) 0%, transparent 18%),
      linear-gradient(0deg, rgba(7, 6, 15, 0.97) 0%, rgba(7, 6, 15, 0.86) 48%, rgba(7, 6, 15, 0.4) 62%, transparent 74%);
  }
  .brand .ver { margin-left: 0; width: 100%; }
}
