:root {
  --ink: #18212d;
  --muted: #647181;
  --paper: #f4f6f8;
  --white: #fff;
  --line: #d7dee6;
  --blue: #245fd3;
  --blue-soft: #edf3ff;
  --green: #29845a;
  --green-soft: #eaf6ef;
  --yellow: #9a6b0b;
  --yellow-soft: #fff8d8;
  --navy: #162131;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "IBM Plex Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(36, 95, 211, .27); outline-offset: 3px; }

.site-header { position: sticky; z-index: 20; top: 0; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px clamp(18px, 3vw, 44px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand > span { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #263242; border-radius: 5px; font-family: var(--mono); font-size: .66rem; }
.brand strong { font-size: .84rem; }
.site-header nav { display: flex; gap: 19px; align-items: center; }
.site-header nav a { color: #5e6b79; font-size: .73rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }

.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-inner { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: 55px 0 34px; }
.back-link { color: var(--blue); font-size: .72rem; font-weight: 700; text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); gap: 80px; align-items: end; margin-top: 25px; }
.eyebrow { margin: 0 0 11px; color: var(--blue); font-family: var(--mono); font-size: .64rem; font-weight: 600; }
.hero h1 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.55rem); line-height: 1.17; letter-spacing: 0; }
.hero-copy { max-width: 780px; margin: 20px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; border-top: 1px solid #9eaab6; border-left: 1px solid var(--line); }
.hero-facts > div { padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-facts dt, .hero-facts dd { margin: 0; }
.hero-facts dt { color: var(--blue); font-family: var(--mono); font-size: .58rem; font-weight: 600; }
.hero-facts dd { margin-top: 7px; font-size: .7rem; font-weight: 600; }
.record-note { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); }
.record-note span { color: var(--blue); font-family: var(--mono); font-size: .6rem; font-weight: 600; }
.record-note p { margin: 0; color: #7a8591; font-size: .7rem; }

.phase-rail { position: sticky; z-index: 15; top: 62px; min-height: 58px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(22,33,49,.96); backdrop-filter: blur(10px); }
.phase-rail a { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 8px; align-items: center; padding: 10px clamp(12px, 3vw, 38px); color: #9eabb9; border-right: 1px solid #354152; text-decoration: none; }
.phase-rail a b { font-family: var(--mono); font-size: .6rem; }
.phase-rail a span { font-size: .7rem; font-weight: 600; }
.phase-rail a.active { color: #fff; box-shadow: inset 0 -3px 0 #6e9cff; }
.phase-rail a.active b { color: #7ca7ff; }

.timeline { width: min(1240px, calc(100% - 40px)); position: relative; margin: 0 auto; padding: 64px 0 90px 54px; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 64px; bottom: 120px; width: 1px; background: #b8c3ce; }
.phase { position: relative; }
.phase::before { content: ""; position: absolute; left: -44px; top: 7px; width: 14px; height: 14px; background: #fff; border: 4px solid var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px var(--paper); }
.phase + .phase { margin-top: 92px; }
.phase-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,.7fr); gap: 15px 50px; align-items: end; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #aeb9c4; }
.phase-heading > span { grid-column: 1 / -1; color: var(--blue); font-family: var(--mono); font-size: .62rem; font-weight: 600; }
.phase-heading h2 { margin: 0; font-size: clamp(1.5rem,2.2vw,2.15rem); line-height: 1.28; }
.phase-heading p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.75; }

.card-grid { display: grid; gap: 18px; }
.card-grid.two-up { grid-template-columns: repeat(2,minmax(0,1fr)); }
.review-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tour-card { min-width: 0; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 12px 28px rgba(27,39,54,.06); }
.tour-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); }
.review-grid .tour-card.feature { border-color: #9eb9e8; box-shadow: 0 12px 28px rgba(48,99,190,.1); }
.screen-open { width: 100%; position: relative; display: block; padding: 0; overflow: hidden; background: #e9edf2; border: 0; cursor: zoom-in; }
.screen-open img { width: 100%; aspect-ratio: 1200 / 960; display: block; object-fit: contain; background: #edf0f3; transition: transform .35s ease; }
.screen-open:hover img { transform: scale(1.018); }
.screen-open > span { position: absolute; right: 13px; bottom: 13px; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: rgba(22,33,49,.84); border: 1px solid rgba(255,255,255,.28); border-radius: 4px; font-size: 1.12rem; }
.tour-card figcaption { padding: 19px 21px 22px; }
.tour-card figcaption > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tour-card figcaption b { color: var(--blue); font-family: var(--mono); font-size: .6rem; }
.tour-card figcaption em { color: #8a95a1; font-family: var(--mono); font-size: .56rem; font-style: normal; }
.tour-card h3 { margin: 10px 0 8px; font-size: 1.02rem; }
.tour-card p { margin: 0; color: #5e6a77; font-size: .74rem; line-height: 1.75; }
.tour-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tour-card li { padding: 4px 7px; color: #385e9c; background: var(--blue-soft); border: 1px solid #ccdaf5; border-radius: 4px; font-size: .58rem; font-weight: 600; }
.tour-card.wide .screen-open { height: 100%; }
.tour-card.wide .screen-open img { height: 100%; aspect-ratio: auto; }
.tour-card.wide figcaption { display: flex; flex-direction: column; justify-content: center; padding: 27px; border-left: 1px solid var(--line); }
.tour-card.compact figcaption { min-height: 190px; }

.tour-footer { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 90px; padding: 26px 0; border-top: 1px solid #aeb8c1; border-bottom: 1px solid #aeb8c1; }
.tour-footer span { color: var(--blue); font-family: var(--mono); font-size: .6rem; font-weight: 600; }
.tour-footer h2 { margin: 6px 0 0; font-size: 1.15rem; }
.tour-footer a { min-height: 42px; display: inline-flex; align-items: center; padding: 9px 14px; color: #fff; background: var(--navy); border-radius: 5px; font-size: .72rem; font-weight: 700; text-decoration: none; }

.lightbox { width: min(96vw,1450px); max-width: none; height: min(94vh,1040px); max-height: none; padding: 0; overflow: hidden; color: #fff; background: #111923; border: 1px solid #394756; border-radius: 7px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lightbox::backdrop { background: rgba(5,10,16,.86); backdrop-filter: blur(5px); }
.lightbox-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px; border-bottom: 1px solid #34414f; }
.lightbox-bar > div { display: flex; align-items: center; gap: 14px; }
.lightbox-bar span { color: #7ca7ff; font-family: var(--mono); font-size: .62rem; }
.lightbox-bar strong { font-size: .78rem; }
.lightbox-close,.lightbox-nav { display: grid; place-items: center; color: #fff; background: #202c39; border: 1px solid #465363; border-radius: 4px; cursor: pointer; }
.lightbox-close { width: 36px; height: 36px; font-size: 1.3rem; }
.lightbox-stage { height: calc(100% - 116px); display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 12px; align-items: center; padding: 13px; }
.lightbox-stage img { width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.lightbox-nav { width: 42px; height: 42px; }
.lightbox > p { margin: 0; padding: 0 72px 14px; color: #aeb9c4; font-size: .7rem; text-align: center; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-facts { max-width: 700px; }
  .timeline { padding-left: 42px; }
  .timeline::before { left: 11px; }
  .phase::before { left: -38px; }
  .phase-heading { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tour-card.wide { display: block; }
  .tour-card.wide .screen-open img { width: 100%; height: auto; aspect-ratio: 1200 / 960; }
  .tour-card.wide figcaption { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 112px; }
  .site-header { min-height: 58px; padding: 8px 13px; }
  .site-header nav a:not(:first-child) { display: none; }
  .hero-inner,.timeline { width: min(100% - 24px,1380px); }
  .hero-inner { padding-top: 34px; }
  .hero h1 { font-size: 2rem; }
  .hero-copy { font-size: .8rem; }
  .record-note { grid-template-columns: 1fr; gap: 7px; }
  .phase-rail { top: 58px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .phase-rail::-webkit-scrollbar { display: none; }
  .phase-rail a { min-width: 120px; padding-inline: 10px; }
  .timeline { padding: 45px 0 70px 27px; }
  .timeline::before { left: 5px; top: 45px; }
  .phase::before { left: -28px; width: 12px; height: 12px; }
  .phase + .phase { margin-top: 68px; }
  .card-grid.two-up,.review-grid { grid-template-columns: 1fr; }
  .tour-card.compact figcaption { min-height: auto; }
  .tour-footer { display: block; }
  .tour-footer a { width: 100%; justify-content: center; margin-top: 17px; }
  .lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
  .lightbox-stage { height: calc(100% - 130px); grid-template-columns: 34px minmax(0,1fr) 34px; gap: 4px; padding: 7px; }
  .lightbox-nav { width: 32px; height: 40px; }
  .lightbox > p { padding-inline: 18px; }
}

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