@font-face {
  font-family: Journey;
  src: url('../assets/Pretendard-Regular.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Journey;
  src: url('../assets/Pretendard-Bold.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: JourneySerif;
  src: url('../assets/NanumMyeongjo-Bold.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}
:root {
  color-scheme: light;
  --ink: #244438;
  --muted: #71776b;
  --gold: #9b6046;
  --forest: #244438;
  --paper: #f2efe7;
  --ease: cubic-bezier(.2,.72,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; font-family: Journey, sans-serif; }
body { position: relative; background: var(--paper); color: var(--ink); }
body.focus-mode { overflow: hidden; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 83% 3%, #fffdf8 0, #fffdf866 30%, transparent 62%),
    radial-gradient(ellipse at 8% 96%, #c9c8ae38, transparent 53%);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 7px; }
button:disabled { opacity: .3; cursor: default; }
[hidden] { display: none !important; }
.masthead {
  height: 76px; padding: 0 4.5vw; display: flex; align-items: center; gap: 28px;
  position: relative; z-index: 5; border-bottom: 1px solid #344d3e16;
}
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; font-size: 17px; letter-spacing: -.5px; white-space: nowrap; }
.brand img { width: 31px; height: 31px; object-fit: contain; filter: brightness(0) saturate(100%); opacity: .66; }
.sample { margin-left: auto; max-width: 45%; font-size: 12px; color: var(--muted); text-align: right; }
.other-spaces { display: flex; align-items: center; gap: 18px; font-size: 13px; min-height: 44px; }
.other-spaces span { font-size: 21px; color: var(--gold); }
.experience {
  position: relative; height: calc(100svh - 76px); min-height: 560px;
  overflow: hidden; isolation: isolate;
}
.experience::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .21;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23898063' opacity='.12' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.introduction {
  position: absolute; top: 35px; left: 6vw; z-index: 2; max-width: min(600px, 55vw);
  pointer-events: none; transition: opacity .25s .4s, transform .7s var(--ease);
}
.eyebrow { margin: 0 0 17px; color: var(--gold); font-size: 10px; line-height: 1.5; letter-spacing: .19em; }
.introduction h1 {
  margin: 0; font-family: JourneySerif, Georgia, serif; font-weight: 700;
  font-size: clamp(39px, 4.1vw, 63px); letter-spacing: -.075em; line-height: 1.23; word-break: keep-all;
}
.introduction > p:last-child { margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; letter-spacing: -.02em; max-width: 34em; }
.viewport { position: absolute; inset: 0; overflow: hidden; }
.camera { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1050ms var(--ease); will-change: transform; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .5s; }
.route path { fill: none; stroke-linecap: round; }
.route-shadow { stroke: #7c715a; stroke-width: 4; opacity: .045; filter: blur(4px); transform: translateY(3px); }
.route-line { stroke: #8d9279; stroke-width: 1.1; opacity: .38; }
.route-trace { stroke: #fdfaf0; stroke-width: .6; opacity: .6; transform: translateY(-1px); }
.milestones { position: absolute; inset: 0; }
.milestone {
  position: absolute; width: var(--portal-size, 180px); transform: translate(-50%, -50%);
  z-index: 1; transition: opacity .25s .12s;
}
.milestone:has(.portal:hover), .milestone:focus-within { z-index: 3; }
.portal {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 8px;
  border: 1px solid #fffef8; border-radius: 1px; background: #fffdf5; isolation: isolate;
  transform: rotate(var(--tilt, -3deg)); transform-origin: 50% 50%;
  box-shadow: 0 2px 3px #332d2515, 0 12px 18px -12px #332d254a, 0 23px 39px -17px #332d252e;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.portal::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, #fff9, transparent 26%, transparent 72%, #4c443d0a);
  mix-blend-mode: soft-light;
}
.portal::after {
  content: ''; position: absolute; inset: 7px; border: 1px solid #2e392a12; pointer-events: none; z-index: 2;
}
.portal-image {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  background: #d5d6c6; transition: filter .45s; filter: saturate(.86);
}
.portal:hover { transform: translateY(-7px) rotate(calc(var(--tilt, -3deg) + .7deg)); box-shadow: 0 3px 5px #332d2517, 0 24px 32px -19px #332d2545, 0 34px 58px -24px #332d2538; }
.portal:hover .portal-image { filter: saturate(1); }
.milestone-number {
  position: absolute; top: -27px; left: 1px; color: var(--gold); font-family: Georgia, serif;
  font-size: 17px; line-height: 1; letter-spacing: .02em; transition: opacity .2s;
}
.milestone-label {
  position: absolute; top: calc(100% + 20px); left: 50%; width: max-content; max-width: 250px;
  transform: translateX(-50%); text-align: center; pointer-events: none; transition: opacity .2s;
}
.milestone-label strong { display: block; font-size: 17px; line-height: 1.4; letter-spacing: -.045em; font-weight: 400; word-break: keep-all; overflow-wrap: anywhere; }
.milestone-label span { display: block; margin-top: 6px; color: #858677; font-size: 10px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.image-fallback { position: absolute; inset: 8px; display: grid; place-items: center; padding: 16px; background: #dddcc9; color: var(--ink); font-size: 16px; text-align: center; overflow: hidden; }
.portal-image.failed { opacity: 0; }
.overview-hint {
  position: absolute; bottom: 18px; left: 6vw; display: flex; align-items: center; gap: 10px;
  margin: 0; color: var(--muted); font-size: 12px; line-height: 2; transition: opacity .25s;
}
.hint-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.journey-meta { position: absolute; bottom: 19px; right: 5vw; display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.journey-meta strong { color: var(--ink); font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.scene-detail {
  position: absolute; top: calc(var(--focus-stage-height, 100%) * .5); left: 62%; right: 6vw; z-index: 3; transform: translateY(-42%);
  animation: detail-arrive .55s .28s var(--ease) both;
}
.scene-chapter { margin: 0 0 24px; color: var(--gold); font-size: 11px; letter-spacing: .08em; }
.scene-detail h2 { margin: 0 0 25px; font-family: JourneySerif, Georgia, serif; font-size: clamp(36px, 3.25vw, 52px); line-height: 1.35; letter-spacing: -.065em; font-weight: 700; word-break: keep-all; }
.scene-description { margin: 0 0 34px; color: #6c7669; max-width: 24em; font-size: 17px; line-height: 1.8; letter-spacing: -.025em; word-break: keep-all; }
.open-story { border: 0; border-bottom: 1px solid #53665160; padding: 0 0 11px; min-height: 42px; background: transparent; display: inline-flex; gap: 66px; align-items: center; justify-content: space-between; font-size: 16px; transition: gap .3s; }
.open-story span { color: var(--gold); font-size: 24px; transition: translate .3s; }
.open-story:hover { gap: 78px; }
.open-story:hover span { translate: 2px -2px; }
.scene-navigation { display: flex; align-items: center; gap: 18px; margin-top: 42px; }
.scene-navigation button { width: 40px; height: 40px; border: 1px solid #43573f28; border-radius: 50%; background: transparent; font-size: 19px; transition: background .2s; }
.scene-navigation button:not(:disabled):hover { background: #fffdf6; }
.scene-navigation span { min-width: 46px; text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.return-all { position: absolute; top: 26px; left: 5.4vw; z-index: 4; display: flex; align-items: center; gap: 12px; min-height: 44px; border: 0; padding: 7px; background: transparent; font-size: 13px; }
.return-all span { font-size: 22px; color: var(--gold); }
.is-focused .introduction, .is-focused .overview-hint, .is-focused .journey-meta { opacity: 0; visibility: hidden; }
.is-focused .introduction { transition-delay: 0s; }
.is-focused .route { opacity: .12; }
.is-focused .milestone:not(.selected) { opacity: 0; pointer-events: none; transition: opacity .16s; }
.is-focused .milestone-label, .is-focused .milestone-number { opacity: 0; }
.is-focused .portal { cursor: default; }
.is-focused .selected .portal { transform: rotate(var(--tilt, -3deg)); }
.viewer-active .experience { pointer-events: none; }
.status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.no-script { position: fixed; inset: 40% 10% auto; z-index: 10; background: var(--paper); padding: 24px; font-size: 22px; }
.entry-navigation { position: absolute; bottom: 9px; right: 4.5vw; z-index: 6; display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; }
.entry-navigation a, .entry-navigation span { display: flex; align-items: center; min-height: 44px; }
.entry-navigation [aria-current] { color: var(--ink); }
.focus-mode .entry-navigation { display: none; }
@keyframes detail-arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 1600px) { .introduction { top: 48px; } .scene-detail { right: 9vw; } }
@media (min-width: 741px) and (max-height: 760px) {
  .introduction { top: 25px; }
  .introduction h1 { font-size: 43px; }
  .eyebrow { margin-bottom: 12px; }
  .introduction > p:last-child { margin-top: 12px; font-size: 15px; }
  .scene-detail h2 { font-size: 36px; margin-bottom: 18px; }
  .scene-chapter { margin-bottom: 18px; }
  .scene-description { margin-bottom: 25px; }
  .scene-navigation { margin-top: 27px; }
}
/* Existing narrow-screen support is retained; desktop is this revision's review scope. */
@media (max-width: 740px) {
  .masthead { height: 74px; padding: 0 20px; gap: 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .sample { position: absolute; top: 76px; right: 20px; font-size: 11px; z-index: 3; }
  .other-spaces { margin-left: auto; font-size: 0; gap: 0; min-width: 44px; justify-content: end; }
  .other-spaces span { font-size: 25px; }
  .experience { height: calc(100svh - 74px); min-height: 666px; }
  .introduction { top: 39px; left: 24px; right: 20px; max-width: none; }
  .eyebrow { font-size: 10px; letter-spacing: .15em; margin-bottom: 12px; }
  .introduction h1 { font-size: 31px; }
  .introduction > p:last-child { font-size: 18px; line-height: 1.45; margin-top: 10px; }
  .milestone-label { top: calc(100% + 12px); width: 145px; max-width: 42vw; }
  .milestone-label strong { font-size: 18px; }
  .milestone-label span { font-size: 10px; margin-top: 5px; }
  .milestone-number { font-size: 11px; top: -21px; }
  .overview-hint { left: 24px; right: 20px; bottom: 10px; font-size: 12px; gap: 8px; }
  .scene-detail { left: 24px; right: 24px; top: 48%; transform: none; animation-duration: .45s; }
  .scene-chapter { font-size: 12px; margin: 0 0 12px; }
  .scene-detail h2 { font-size: 31px; line-height: 1.15; margin: 0 0 16px; }
  .scene-description { font-size: 18px; line-height: 1.5; margin: 0 0 22px; max-width: none; }
  .open-story { width: 100%; font-size: 20px; min-height: 56px; padding: 13px 22px; }
  .scene-navigation { margin-top: 17px; justify-content: center; gap: 25px; }
  .return-all { top: 15px; left: 18px; font-size: 16px; gap: 8px; }
  .journey-meta { display: none; }
  .entry-navigation { bottom: 5px; left: 24px; right: 24px; justify-content: center; gap: 25px; font-size: 14px; }
  [data-site-template=milestone] .sample { top: 76px; max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .camera { will-change: auto; }
}

/* Focused scenes can be taller than a short viewport. Keep the photographic
   camera clipped by .viewport, while allowing the live description and its
   story/previous/next controls to extend the document's scrollable area. */
@media (max-width: 960px), (max-height: 760px) {
  body.focus-mode { overflow-x: hidden; overflow-y: auto; }
  .focus-mode .experience { overflow: visible; }
}
