:root {
  --black: #000;
  --soft-black: #090a0b;
  --panel: #0d0f11;
  --white: #fff;
  --cool: #f0f0f2;
  --muted: #8d9297;
  --line: #303438;
  --line-light: #54595e;
  --error: #ff6b5e;
  --display: "Inter", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", "Noto Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

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

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

.site-nav {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 0 clamp(24px, 4vw, 68px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.wordmark-mark {
  position: relative;
  width: 26px;
  height: 26px;
  display: inline-block;
  flex: 0 0 26px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
}
.wordmark-mark::before,
.wordmark-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.wordmark-mark::before {
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
}
.wordmark-mark::after {
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 0 3px #000;
}
.wordmark span { font-size: 24px; }
.wordmark small {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #d4d6d8;
  white-space: nowrap;
}

.site-nav nav { display: flex; gap: clamp(22px, 3vw, 52px); }

.site-nav nav a,
.nav-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.site-nav nav a { position: relative; padding: 8px 0; }
.site-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: #fff;
  transition: right 180ms ease;
}

.site-nav nav a:hover::after { right: 0; }

.nav-status {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.nav-status i,
.live-indicator i,
.privacy-note > span {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.11);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: clamp(185px, 23vh, 260px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.eyebrow > span {
  min-width: 27px;
  padding-right: 10px;
  border-right: 1px solid currentColor;
  color: var(--muted);
}

.hero h1,
.section-intro h2,
.methodology h2,
.closing-band > p {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 1.02;
}

.hero h1 strong { display: block; margin-top: 8px; color: transparent; -webkit-text-stroke: 1.5px #fff; font-weight: 800; line-height: .98; }

.hero-copy {
  margin: 30px 0 34px;
  color: #d4d6d8;
  font-size: 16px;
  line-height: 1.8;
}

.ghost-button {
  min-width: 210px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 22px;
  border: 1px solid #fff;
  border-radius: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.ghost-button:hover { color: #000; background: #fff; }

.hero-readout {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 68px);
  bottom: 47px;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  border-top: 1px solid rgba(255,255,255,.35);
}

.hero-readout > div { padding: 14px 18px 0 0; }
.hero-readout span,
.hero-readout strong { display: block; }
.hero-readout span { color: #aeb1b5; font-size: 9px; letter-spacing: .13em; }
.hero-readout strong { margin-top: 7px; font-size: 13px; letter-spacing: .08em; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 47px;
  left: clamp(24px, 4vw, 68px);
  margin: 0;
  font-size: 9px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.calculator-section {
  padding: 128px clamp(24px, 4vw, 68px) 142px;
  background: var(--soft-black);
}

.section-intro {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  margin: 0 auto 66px;
}

.section-intro .eyebrow { grid-column: 1 / -1; }

.section-intro h2 {
  font-size: clamp(50px, 6vw, 84px);
  line-height: .9;
}

.section-intro > p:last-child {
  max-width: 420px;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.calculator-shell {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #050606;
}

.calculator-panel,
.result-panel { min-width: 0; padding: clamp(28px, 4vw, 54px); }
.calculator-panel { border-right: 1px solid var(--line); }
.result-panel { position: relative; min-height: 640px; background: var(--panel); }

.panel-heading,
.result-topline,
.comparison-heading,
.bar-label,
.formula-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span,
.result-kicker,
.comparison-heading > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
}

.panel-heading h3 {
  margin: 8px 0 0;
  font-size: 15px;
  letter-spacing: .11em;
}

.reset-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.reset-button:hover { color: #fff; border-color: #fff; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 34px;
}

.field-wide { grid-column: 1 / -1; }
.field-group { min-width: 0; margin-bottom: 24px; }
.field-row { display: contents; }

label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

label small { color: #70767b; font-size: 9px; font-weight: 500; letter-spacing: .13em; }
.select-wrap,
.input-with-unit { position: relative; }

.select-wrap::after {
  content: "↓";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 11px;
}

select,
input {
  width: 100%;
  height: 57px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  color: var(--white);
  background: #08090a;
  transition: border-color 160ms ease;
}

select { padding: 0 44px 0 16px; appearance: none; cursor: pointer; }
input { padding: 0 86px 0 16px; font-size: 17px; }
select:focus,
input:focus { border-color: #fff; }
.has-error select,
.has-error input { border-color: var(--error); }

.input-with-unit > span {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.field-hint,
.field-error { min-height: 16px; margin: 7px 1px 0; font-size: 11px; }
.field-hint { color: #666c71; }
.field-error { display: none; color: var(--error); }
.field-error:not(:empty) { display: block; }

.calculate-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 32px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  transition: color 180ms ease, background 180ms ease;
}

.calculate-button:hover { color: #000; background: #fff; }
.calculate-button b { font-size: 18px; font-weight: 400; }

.privacy-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 15px 0 0;
  color: #666c71;
  font-size: 10px;
}

.result-panel-heading { position: relative; z-index: 1; }
.live-indicator { display: flex; align-items: center; gap: 9px; color: #fff !important; }

.result-empty {
  position: absolute;
  inset: 100px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.radar {
  position: relative;
  width: 154px;
  height: 154px;
  margin-bottom: 29px;
  border: 1px solid #34383b;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 27px, rgba(255,255,255,.08) 28px 29px);
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: #34383b;
}

.radar::before { top: 50%; left: -20px; right: -20px; height: 1px; }
.radar::after { left: 50%; top: -20px; bottom: -20px; width: 1px; }
.radar span { position: absolute; inset: 50% auto auto 50%; width: 5px; height: 5px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
.radar i { position: absolute; left: 50%; bottom: 50%; width: 1px; height: 46%; background: #fff; transform: rotate(38deg); transform-origin: bottom; }


.why-matters {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 9vw, 150px);
  padding: 112px max(24px, 4vw);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #080909;
}
.why-matters h2 { max-width: 560px; margin: 0; font-family: var(--display); font-size: clamp(42px, 5.2vw, 74px); line-height: .98; letter-spacing: .02em; }
.why-matters-copy { max-width: 610px; color: #b6babd; font-size: 14px; line-height: 1.9; }
.why-matters-copy p { margin: 0 0 22px; }
.why-matters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.why-matters-grid article { min-height: 128px; padding: 16px; border: 1px solid var(--line); }
.why-matters-grid strong { display: block; margin-bottom: 12px; color: #fff; font-size: 22px; letter-spacing: -.03em; }
.why-matters-grid span { color: var(--muted); font-size: 11px; line-height: 1.55; }

.route-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.route-fields .field-group { min-width: 0; }
.route-button { min-height: 46px; padding: 0 13px; border: 1px solid var(--line-light); color: #fff; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.route-button:hover, .route-button:focus-visible { background: #fff; color: #000; }
.route-status { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.route-status.is-error { color: #ffb4b4; }
.route-map-wrap { grid-column: 1 / -1; position: relative; margin-top: 4px; border: 1px solid var(--line); background: #111; }
.route-map { width: 100%; height: 250px; filter: grayscale(1) contrast(1.08) brightness(.72); }
.map-attribution { position: absolute; right: 7px; bottom: 5px; z-index: 500; margin: 0; padding: 3px 5px; color: #d2d5d7; background: rgba(0,0,0,.72); font-size: 8px; letter-spacing: .02em; }
.distance-after-route { margin-top: 6px; }

.leaflet-control-zoom a { color: #111 !important; }
.leaflet-control-attribution { display: none; }
.map-label { border: 0; border-radius: 0; color: #fff; background: #111; box-shadow: none; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.map-label::before { display: none; }

.result-empty p { margin: 0 0 9px; font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.result-empty > span { color: var(--muted); font-size: 11px; }

.result-content { padding-top: 32px; animation: reveal 360ms ease both; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-kicker { margin: 0; }
.result-badge { padding: 6px 10px; border: 1px solid var(--line-light); border-radius: 20px; font-size: 9px; letter-spacing: .1em; }
.result-number-wrap { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; }
.result-number-wrap strong { font-size: clamp(59px, 6vw, 86px); line-height: .9; letter-spacing: -.06em; }
.result-number-wrap span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.result-summary { min-height: 42px; margin: 19px 0 26px; color: #afb3b6; font-size: 13px; line-height: 1.7; }

.impact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  min-height: 75px;
  border: 1px solid var(--line);
}

.impact-index { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.impact-card > div { padding: 14px 18px; }
.impact-card > div span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.impact-card strong { font-size: 14px; }

.comparison-block { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.comparison-heading { margin-bottom: 18px; }
.comparison-heading small { font-size: 10px; font-weight: 600; }
.bar-row + .bar-row { margin-top: 14px; }
.bar-label { margin-bottom: 7px; font-size: 9px; letter-spacing: .1em; }
.bar-label strong { font-size: 10px; }
.bar-track { height: 3px; overflow: hidden; background: #292d30; }
.bar { display: block; width: 0; height: 100%; transition: width 700ms cubic-bezier(.2,.8,.2,1); }
.car-bar { background: #fff; }
.transit-bar { background: #767b80; }

.formula-card { margin-top: 24px; border-top: 1px solid var(--line); }
.formula-toggle { width: 100%; padding: 17px 0 0; border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.toggle-icon { font-size: 17px; font-weight: 400; }
.formula-details { padding: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.formula-details p { margin: 0 0 12px; }
.formula-details dl { margin: 0; }
.formula-details dl > div { display: flex; justify-content: space-between; padding: 5px 0; }
.formula-details dt,
.formula-details dd { margin: 0; }
.formula-details dd { color: #fff; font-weight: 600; }

.methodology {
  width: min(1220px, calc(100% - 48px));
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 9vw, 150px);
  margin: 0 auto;
  padding: 148px 0 118px;
}

.methodology h2 { font-size: clamp(45px, 5.5vw, 76px); line-height: .96; }
.method-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.method-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.method-steps li > span { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.method-steps h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .13em; }
.method-steps p { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.source-note { grid-column: 2; margin: 0; color: #676c71; font-size: 9px; letter-spacing: .1em; }
.source-note a { color: #fff; border-bottom: 1px solid #fff; }

.closing-band {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 80px clamp(24px, 4vw, 68px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(255,255,255,.08) 50%, transparent 50.05%),
    linear-gradient(transparent 49.95%, rgba(255,255,255,.08) 50%, transparent 50.05%),
    #050606;
  background-size: 160px 160px;
}

.closing-band > p { max-width: 950px; font-size: clamp(44px, 6vw, 88px); line-height: .94; }
.closing-band .ghost-button { flex: 0 0 auto; }

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 48px clamp(24px, 4vw, 68px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
}

.footer-wordmark { color: #fff; }
footer > p { margin: 4px 0 0; line-height: 1.8; }
footer > div { display: flex; justify-content: flex-end; gap: 28px; }
footer > div a { color: #fff; }
.legal { grid-column: 1 / -1; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .site-nav nav { display: none; }
  .hero-image { object-position: 58% center; }
  .hero-readout { grid-template-columns: repeat(3, 1fr); right: 24px; }
  .scroll-cue { left: 24px; }
  .calculator-shell { grid-template-columns: 1fr; max-width: 700px; }
  .calculator-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-panel { min-height: 650px; }
  .methodology { grid-template-columns: 1fr; }
  .source-note { grid-column: 1; }
  .closing-band { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 640px) {
  .site-nav { height: 72px; padding-inline: 18px; }
  .wordmark small { display: none; }
  .wordmark-mark { width: 22px; height: 22px; flex-basis: 22px; }
  .wordmark-mark::before { width: 10px; height: 10px; }
  .nav-status { font-size: 9px; }
  .hero { min-height: 760px; }
  .hero-image { height: 58%; top: auto; bottom: 0; object-position: 62% center; opacity: .78; }
  .hero-content { width: calc(100% - 36px); padding-top: 138px; }
  .hero h1 { font-size: 54px; line-height: 1.04; }
  .hero h1 strong { margin-top: 10px; }
  .hero-copy br { display: none; }
  .hero-readout { left: 18px; right: 18px; bottom: 26px; }
  .hero-readout > div { padding-right: 8px; }
  .hero-readout strong { font-size: 11px; }
  .scroll-cue { display: none; }

  .calculator-section { padding: 88px 18px 96px; }
  .section-intro { grid-template-columns: 1fr; margin-bottom: 40px; }
  .section-intro h2 { font-size: 50px; }
  .section-intro > p:last-child { justify-self: start; margin-top: 25px; }
  .calculator-panel,
  .result-panel { padding: 27px 20px; }
  .result-panel { min-height: 610px; }
  form { grid-template-columns: 1fr; }
  .field-wide,
  .calculate-button,
  .privacy-note { grid-column: 1; }
  .field-row { display: block; }
  .result-number-wrap strong { font-size: 60px; }

  .methodology { width: calc(100% - 36px); padding: 92px 0 76px; gap: 42px; }
  .methodology h2 { font-size: 43px; }
  .closing-band { min-height: 65vh; padding: 58px 18px; }
  .closing-band > p { font-size: 45px; }
  .why-matters { grid-template-columns: 1fr; gap: 38px; padding: 82px 18px; }
  .why-matters-grid { grid-template-columns: 1fr; }
  .route-fields { grid-template-columns: 1fr; }
  .route-button { width: 100%; }
  .route-map { height: 220px; }
  footer { grid-template-columns: 1fr; padding-inline: 18px; }
  footer > div { justify-content: flex-start; }
  .legal { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
