:root {
  --bg: #07130d;
  --bg-2: #0a1d13;
  --obsidian: #050c08;
  --forest: #153727;
  --surface: #0e2419;
  --gold: #e2be80;
  --gold-line: rgba(226, 190, 128, 0.25);
  --terracotta: #e56b4e;
  --ink: #eff4f0;
  --ink-2: #a6bbb0;
  --ink-muted: #728a7d;
  --line: rgba(239, 244, 240, 0.12);
  --kakao: #fee500;
  --kakao-ink: #191600;
  --day-ink: #0c2116;
  --day-sub: #3c4f44;
  --day-gold: #7d5d22;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 72px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.05em;
}

.gold {
  color: var(--gold);
}

.warn {
  color: #ff9e87;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn.btn-full {
  width: 100%;
}

.btn.pri {
  background: var(--terracotta);
  color: #ffffff;
}

.btn.pri:hover {
  background: #d55b3e;
}

.btn.ghost {
  background: rgba(7, 19, 13, 0.48);
  border-color: rgba(226, 190, 128, 0.36);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: rgba(226, 190, 128, 0.14);
  border-color: var(--gold);
}

.btn.kakao {
  background: var(--kakao);
  color: var(--kakao-ink);
}

.btn.kakao:hover {
  background: #f0d800;
}

/* Header */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.hd::before {
  content: "";
  position: absolute;
  inset: 0 0 -20px 0;
  background: linear-gradient(180deg, rgba(7, 19, 13, 0.8), rgba(7, 19, 13, 0));
  pointer-events: none;
  z-index: -1;
}

.hd.solid {
  background: rgba(7, 19, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--gold-line);
}

.hd-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-ci {
  width: 36px;
  height: 20px;
  flex: none;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-text strong {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 500;
}

.gnb {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.gnb a:hover {
  color: var(--gold);
}

.hd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mob-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--gold-line);
  background: rgba(7, 19, 13, 0.6);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mob-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Nav */
.mob-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.mob-nav-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 7, 0.72);
}

.mob-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(310px, 84vw);
  background: var(--bg-2);
  border-left: 1px solid var(--gold-line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mob-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--gold);
}

.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-close svg {
  width: 18px;
  height: 18px;
}

.mob-nav-links {
  display: grid;
  gap: 8px;
  margin: 20px 0 auto;
}

.mob-nav-links a {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14.5px;
  font-weight: 500;
}

.mob-nav-foot {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Chapter HUD */
.hud {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hud.show {
  opacity: 1;
  pointer-events: auto;
}

.hud a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.hud a span {
  opacity: 0;
  transform: translateX(6px);
  background: rgba(7, 19, 13, 0.9);
  border: 1px solid var(--gold-line);
  padding: 4px 10px;
  border-radius: 6px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.hud a em {
  font-style: normal;
  color: var(--gold);
  margin-left: 4px;
}

.hud a:hover span,
.hud a.on span {
  opacity: 1;
  transform: none;
}

.hud a i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-muted);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hud a.on {
  color: var(--ink);
}

.hud a.on i {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
}

/* -----------------------------------------------------------
   ACT 1 : FULL-BLEED JEJU SATELLITE -> FARMLAND ZOOM
----------------------------------------------------------- */
.stage-zoom {
  position: relative;
  background: var(--bg);
}

.zoom-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #030906;
}

/* 16:9 aspect-locked centered camera wrapper */
.aerial-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  overflow: hidden;
  pointer-events: none;
}

.sat-cam,
.farm-cam {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}

.sat-cam {
  transform-origin: 38.2% 71.5%;
}

.farm-layer {
  opacity: 0;
}

.farm-cam {
  transform-origin: 68% 42%;
}

.aerial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.farm-img {
  filter: brightness(0.84) contrast(1.06);
}

.sat-overlay,
.cad-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Blueprint Cadastral Strokes over Real Farmland */
.cad-ln {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cad-thick {
  stroke-width: 4;
}

.cad-thin {
  stroke-width: 2.2;
  stroke: rgba(226, 190, 128, 0.72);
}

.cad-dash {
  stroke-width: 2.2;
  stroke-dasharray: 10 10;
  stroke: rgba(226, 190, 128, 0.58);
}

.cad-road {
  stroke-width: 3;
  stroke: rgba(239, 244, 240, 0.45);
  stroke-dasharray: 8 8;
}

.cad-warn {
  stroke-width: 4.5;
  stroke: var(--terracotta);
  stroke-dasharray: 12 8;
}

.zoom-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 19, 13, 0.88) 0%, rgba(7, 19, 13, 0.45) 42%, rgba(7, 19, 13, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 19, 13, 0.48) 0%, rgba(7, 19, 13, 0) 24%, rgba(7, 19, 13, 0.72) 100%);
}

.telemetry {
  position: absolute;
  top: 88px;
  right: 28px;
  z-index: 5;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(7, 19, 13, 0.72);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telemetry .sep {
  color: var(--ink-muted);
}

.zoom-mob-tabs {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  z-index: 6;
  gap: 8px;
}

.zoom-mob-tabs button {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--gold-line);
  background: rgba(7, 19, 13, 0.8);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.zoom-mob-tabs button.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.zoom-ui {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.beat {
  position: absolute;
  left: 28px;
  max-width: 640px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.beat.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.beat-h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.beat-h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
}

.beat-sub {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
}

.beat-note {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.beat-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 10-year numeric strip inside Beat 2 */
.year-strip {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-width: 520px;
  margin-top: 12px;
}

.yr-cell {
  position: relative;
  height: 48px;
  border-radius: 6px;
  background: rgba(226, 190, 128, 0.22);
  border: 1px solid rgba(226, 190, 128, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

.yr-cell.is-excl {
  background: rgba(229, 107, 78, 0.22);
  border-color: var(--terracotta);
  color: #ff9e87;
}

.yr-cell.is-excl::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  background: var(--terracotta);
  transform: rotate(-28deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-align: center;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 26px;
  margin: 6px auto 0;
  background: linear-gradient(var(--gold), transparent);
}

/* -----------------------------------------------------------
   ACT 2 : FULL-BLEED INHERITANCE CLOCK
----------------------------------------------------------- */
.stage-inherit {
  position: relative;
  background: var(--obsidian);
  border-top: 1px solid var(--gold-line);
}

.inh-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 88px 0 64px;
}

.inh-shell {
  display: grid;
  gap: 28px;
}

.inh-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.clock-big {
  font-size: clamp(46px, 7.5vw, 108px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--gold);
  margin-top: 8px;
}

.inh-mob-tabs {
  display: none;
  gap: 8px;
}

.inh-mob-tabs button {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

.inh-mob-tabs button.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.inh-headlines {
  position: relative;
  min-height: 132px;
}

.inh-phase {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.inh-phase.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.inh-h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.inh-sub {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-2);
}

.inh-svg-wrap svg {
  width: 100%;
  height: auto;
}

/* -----------------------------------------------------------
   ACT 3 : BLUEPRINT-TO-REALITY SCAN VIEWER
----------------------------------------------------------- */
.stage-scan {
  position: relative;
  border-top: 1px solid var(--gold-line);
}

.scan-stage {
  position: relative;
  min-height: 680px;
  height: 100vh;
  max-height: 920px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  --im: url("/assets/jeju-farmland.webp");
  --r: 62%;
}

.scan-bp {
  position: absolute;
  inset: 0;
  background: #0a2417;
  isolation: isolate;
}

.scan-bp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--im);
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.75) brightness(1.05);
  mix-blend-mode: luminosity;
  opacity: 0.68;
}

.scan-bp::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 190, 128, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 190, 128, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(226, 190, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 190, 128, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

.scan-real {
  position: absolute;
  inset: 0;
  background-image: var(--im);
  background-position: center;
  background-size: cover;
  clip-path: inset(0 calc(100% - var(--r)) 0 0);
}

.scan-laser {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--r);
  width: 2px;
  margin-left: -1px;
  background: var(--gold);
  box-shadow: 0 0 28px 6px rgba(226, 190, 128, 0.55);
  z-index: 2;
  pointer-events: none;
}

.scan-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 19, 13, 0.88) 0%, rgba(7, 19, 13, 0.42) 55%, rgba(7, 19, 13, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 19, 13, 0.72) 0%, rgba(7, 19, 13, 0.12) 38%, rgba(7, 19, 13, 0.88) 100%);
}

.scan-ui {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 84px;
  padding-bottom: 48px;
}

.scan-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.scan-heading {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(7, 19, 13, 0.72);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.guide-btn:hover {
  background: rgba(226, 190, 128, 0.2);
}

.guide-btn svg {
  width: 15px;
  height: 15px;
}

.scan-body {
  max-width: 660px;
}

.scan-num {
  font-size: clamp(44px, 6.2vw, 86px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
  margin-bottom: 14px;
}

.scan-title {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.35;
}

.scan-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scan-chips span {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(7, 19, 13, 0.72);
  border: 1px solid var(--gold-line);
  font-size: 13px;
  color: var(--ink);
}

.scan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.scan-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scan-tabs button {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--gold-line);
  background: rgba(7, 19, 13, 0.72);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scan-tabs button span {
  font-family: Consolas, monospace;
  color: var(--gold);
  font-size: 12px;
}

.scan-tabs button.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.scan-tabs button.on span {
  color: var(--bg);
}

.scan-count {
  font-size: 13.5px;
  color: var(--ink-2);
}

/* -----------------------------------------------------------
   ACT 4 : DAYLIGHT STUDIO REVEAL — 선종문 대표세무사
----------------------------------------------------------- */
.advisor-daylight {
  background: linear-gradient(112deg, #f5f5f5 0%, #ededec 52%, #e4e4e3 100%);
  color: var(--day-ink);
  padding: 96px 0;
}

.advisor-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}

.portrait-seamless {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.portrait-seamless img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.advisor-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--day-gold);
  letter-spacing: 0.08em;
}

.advisor-name {
  margin: 12px 0 18px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--day-ink);
}

.advisor-say {
  margin: 0 0 28px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.72;
  color: var(--day-sub);
}

.cred-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  border-top: 1px solid rgba(12, 33, 22, 0.14);
  border-bottom: 1px solid rgba(12, 33, 22, 0.14);
  padding-top: 20px;
  padding-bottom: 20px;
}

.cred-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-list strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--day-ink);
}

.cred-list span {
  font-size: 13px;
  color: var(--day-sub);
}

.advisor-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.day-link,
.day-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--day-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.day-link:hover,
.day-link-btn:hover {
  color: var(--day-gold);
}

/* -----------------------------------------------------------
   ACT 5 : MINIMAL 3-PILL CHECK + DIRECT CONTACT
----------------------------------------------------------- */
.finale {
  background: radial-gradient(70% 80% at 50% 100%, rgba(21, 55, 39, 0.7), var(--bg) 72%);
  padding: 96px 0 72px;
  border-top: 1px solid var(--gold-line);
}

.finale-head {
  text-align: center;
  margin-bottom: 32px;
}

.finale-head .h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pill-check-box {
  max-width: 780px;
  margin: 0 auto 36px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 24px;
}

.pill-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pill-tabs button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.pill-tabs button.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.pill-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pill-points li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(7, 19, 13, 0.55);
  border: 1px solid var(--line);
  font-size: 14.5px;
}

.pill-points b {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: var(--gold);
  flex: none;
}

.finale-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.office-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.office-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.office-text strong {
  font-size: 15px;
  font-weight: 600;
}

.office-text span {
  font-size: 13.5px;
  color: var(--ink-2);
}

.office-maps {
  display: flex;
  gap: 10px;
}

.office-maps a {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--gold-line);
  font-size: 13px;
  color: var(--ink-2);
}

.office-maps a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ft {
  background: #040b07;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}

.ft-inner {
  display: grid;
  gap: 6px;
}

.ft p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Drawer */
.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 7, 0.72);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(460px, 100%);
  background: var(--bg-2);
  border-left: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
}

.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-eyebrow {
  display: block;
  font-size: 11px;
  color: var(--gold);
}

.drawer-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.fld {
  margin-bottom: 14px;
}

.fld label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.fld input,
.fld select,
.fld textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 14px;
}

.fld-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.brief-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.brief-box {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--gold-line);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.brief-actions {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 120;
}

/* Responsive */
@media (max-width: 960px) {
  .wrap {
    padding: 0 20px;
  }

  .gnb,
  .hud,
  .hd-actions .btn,
  .scroll-cue {
    display: none;
  }

  .mob-menu-btn {
    display: inline-flex;
  }

  .zoom-pin {
    height: 100svh;
    min-height: 580px;
  }

  #zoomSatFrame {
    top: 34%;
    transform: translate(-44%, -50%);
  }

  #zoomFarmFrame {
    transform: translate(-66%, -50%);
  }

  .zoom-vignette {
    background:
      linear-gradient(180deg, rgba(7, 19, 13, 0.32) 0%, rgba(7, 19, 13, 0.14) 38%, rgba(7, 19, 13, 0.88) 64%, rgba(7, 19, 13, 0.96) 100%);
  }

  .telemetry {
    top: 76px;
    right: 20px;
    font-size: 11px;
    padding: 5px 10px;
  }

  .zoom-mob-tabs {
    display: flex;
  }

  .beat {
    left: 20px;
    right: 20px;
    max-width: none;
    bottom: 88px;
  }

  .year-strip {
    grid-template-columns: repeat(5, 1fr);
  }

  .inh-pin {
    min-height: auto;
    padding: 72px 0;
  }

  .inh-mob-tabs {
    display: flex;
  }

  .inh-headlines {
    min-height: 150px;
  }

  .scan-stage {
    height: auto;
    min-height: 620px;
    max-height: none;
  }

  .scan-ui {
    gap: 44px;
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .advisor-daylight {
    padding: 72px 0;
  }

  .advisor-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .cred-list {
    text-align: left;
  }

  .advisor-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .cred-list,
  .fld-row {
    grid-template-columns: 1fr;
  }

  .pill-check-box {
    padding: 18px;
  }
}

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