:root {
  --ink: #0a0a0b;
  --paper: #f3f0e9;
  --warm: #c6a978;
  --muted: rgba(243, 240, 233, 0.62);
  --line: rgba(243, 240, 233, 0.18);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --display: "SUIT Variable", "Pretendard Variable", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; font-synthesis: none; }
html { background: var(--ink); scroll-behavior: smooth; overflow-x: clip; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--ink); color: var(--paper); color-scheme: dark; font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; overscroll-behavior-x: none; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; background: none; cursor: pointer; font: inherit; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }

.skip-link { position: fixed; top: 1rem; left: 50%; z-index: 100; padding: 0.65rem 1rem; background: var(--paper); color: var(--ink); transform: translate(-50%, -180%); transition: transform 0.25s var(--ease); }
.skip-link:focus { transform: translate(-50%, 0); }

.site-shell { position: relative; min-height: 100svh; overflow: clip; background: var(--ink); }
.world-layer { position: fixed; z-index: 0; inset: 0; overflow: hidden; background: var(--ink); pointer-events: none; }
.world-layer canvas { display: block; width: 100%; height: 100%; }
.world-scrim { position: fixed; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 46%, rgba(10, 10, 11, 0.24) 100%), linear-gradient(180deg, rgba(10, 10, 11, 0.4), transparent 24%, transparent 76%, rgba(10, 10, 11, 0.36)); }

.site-header { position: fixed; z-index: 30; top: 0; right: 0; left: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 74px; padding: 0 5.6vw; background: linear-gradient(180deg, rgba(10, 10, 11, 0.88), transparent); }
.wordmark { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 750; letter-spacing: -0.09em; line-height: 1; }
.wordmark-mark { display: block; width: 28px; height: 28px; flex: 0 0 28px; padding: 3px; border-radius: 8px; background: rgba(247, 247, 244, 0.96); box-sizing: border-box; object-fit: contain; }
.wordmark-copy { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.wordmark-copy small { color: rgba(243, 240, 233, 0.46); font-family: var(--mono); font-size: 8px; font-weight: 400; letter-spacing: 0.08em; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { position: relative; display: inline-flex; min-height: 42px; align-items: center; color: rgba(243, 240, 233, 0.52); font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em; transition: color 300ms ease; }
.site-header nav a::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; background: var(--warm); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--paper); }
.site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-meta { color: rgba(243, 240, 233, 0.4); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.header-cta { display: inline-flex; min-height: 44px; align-items: center; padding: 0 0 7px; border-bottom: 1px solid var(--warm); color: var(--paper); font-family: var(--mono); font-size: 9px; letter-spacing: 0.07em; white-space: nowrap; transition: color 300ms ease, border-color 300ms ease; }
.header-cta:hover { border-color: var(--paper); color: var(--warm); }
.menu-toggle, .site-header .mobile-nav { display: none; }

.scene-ui { position: fixed; z-index: 10; inset: 0; pointer-events: none; }
html:not(.three-active) .scene-ui { display: none; }
.scene-intro, .scene-caption { position: absolute; left: 8vw; max-width: min(39rem, 58vw); transition: opacity 500ms ease, transform 700ms var(--ease); }
.scene-intro { top: 25vh; }
.scene-intro .scene-title { margin: 1rem 0 0; font-family: var(--display); font-size: clamp(5.4rem, 14vw, 12rem); font-weight: 730; letter-spacing: -0.13em; line-height: 0.78; }
.scene-intro > p:not(.scene-intro__note):not(.scene-title) { margin: 1.3rem 0 0; color: var(--paper); font-family: var(--mono); font-size: clamp(0.82rem, 1.2vw, 1rem); letter-spacing: 0.06em; }
.scene-intro__note { margin: 3.1rem 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.8; }
.scene-kicker { display: block; color: var(--warm); font-family: var(--mono); font-size: 9px; letter-spacing: 0.11em; }
.scene-caption { bottom: 15vh; max-width: 30rem; }
.scene-caption::before { position: absolute; z-index: 0; right: -8rem; bottom: -4rem; left: -1.5rem; height: 13rem; background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.94) 82%); content: ""; pointer-events: none; }
.scene-caption > * { position: relative; z-index: 1; }
.scene-caption h2 { max-width: 14ch; margin: 0.85rem 0 1rem; font-family: var(--display); font-size: clamp(2.5rem, 5.4vw, 5.2rem); font-weight: 650; letter-spacing: -0.1em; line-height: 0.93; }
.scene-caption p { max-width: 25rem; margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.75; }
.scene-footer { position: absolute; right: 5.6vw; bottom: 7.2vh; left: 8vw; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.scene-footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; pointer-events: auto; }
.scene-link { display: inline-flex; min-height: 44px; align-items: center; pointer-events: auto; color: var(--paper); font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; }
.scene-link--secondary { color: rgba(243, 240, 233, 0.62); }
.scene-link span { display: inline-block; margin-left: 0.55rem; color: var(--warm); font-size: 14px; transition: transform 300ms var(--ease); }
.scene-link:hover span { transform: translateY(0.25rem); }
.scene-link--secondary:hover { color: var(--warm); }
.scene-link--secondary:hover span { transform: translate(0.18rem, -0.18rem); }
.scene-index { color: rgba(243, 240, 233, 0.5); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.scene-scroll-note { position: absolute; right: 5.6vw; top: 50%; color: rgba(243, 240, 233, 0.34); font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; writing-mode: vertical-rl; transform: translateY(-50%); }
html[data-station="0"] .scene-caption { opacity: 0; transform: translateY(1.2rem); }
html:not([data-station="0"]) .scene-intro { opacity: 0; transform: translateY(-1.5rem); }
html[data-station="4"] .scene-caption h2, html[data-station="5"] .scene-caption h2 { max-width: 10ch; }

.error-page { display: flex; width: min(100% - 3rem, 960px); min-height: 100svh; margin: 0 auto; flex-direction: column; justify-content: center; padding: 6rem 0; }
.error-page h1 { max-width: 12ch; margin: 1.8rem 0 1.4rem; font-family: var(--display); font-size: clamp(3.5rem, 10vw, 7rem); font-weight: 680; line-height: 0.94; letter-spacing: -0.1em; }
.error-page h1 em { color: var(--warm); font-style: normal; }
.error-page > p:not(.fallback-kicker) { max-width: 30rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }

.scroll-runway { position: relative; z-index: 0; height: 500svh; pointer-events: none; }
.scroll-anchor { position: absolute; left: 0; width: 1px; height: 1px; scroll-margin-top: 0; }
html:not(.three-active) .scroll-runway { display: none; }

.accessibility-content { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: normal; border: 0; }
html:not(.three-active) .accessibility-content { position: relative; width: min(100%, 960px); height: auto; margin: 0 auto; padding: 7rem 1.5rem 4rem; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
.fallback-section { display: block; min-height: 86svh; padding: 8rem 0 7rem; border-bottom: 1px solid var(--line); }
.fallback-kicker { color: var(--warm); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.11em; }
.fallback-section h1, .fallback-section h2 { max-width: 12ch; margin: 2rem 0 1.6rem; font-family: var(--display); font-size: clamp(3.3rem, 9vw, 7rem); font-weight: 680; line-height: 0.94; letter-spacing: -0.1em; }
.fallback-section h1 em, .fallback-section h2 em { color: var(--warm); font-style: normal; }
.fallback-section > p { max-width: 34rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.fallback-art { position: relative; width: min(100%, 720px); aspect-ratio: 16 / 9; margin: 2.8rem 0 1.6rem; overflow: hidden; border: 1px solid var(--line); background: #151518; }
.fallback-art::before { position: absolute; inset: 1rem; border: 1px solid rgba(243, 240, 233, 0.12); content: ""; }
.fallback-art::after { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; height: 1px; background: rgba(243, 240, 233, 0.16); content: ""; }
.fallback-art__label { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2; color: rgba(243, 240, 233, 0.5); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; }
.fallback-art__axis { position: absolute; z-index: 1; background: var(--warm); opacity: 0.7; }
.fallback-art__shape { position: absolute; z-index: 1; display: block; }
.fallback-art--optics { background: radial-gradient(circle at 27% 52%, rgba(198, 169, 120, 0.1), transparent 26%), #151518; }
.fallback-art--optics .fallback-art__axis { top: 18%; bottom: 15%; left: 53%; width: 1px; }
.fallback-art--optics .fallback-art__shape:first-of-type { top: 26%; left: 18%; width: 25%; aspect-ratio: 1; border: 1px solid var(--warm); border-radius: 50%; box-shadow: 0 0 0 1rem rgba(198, 169, 120, 0.08), 0 0 0 2rem rgba(198, 169, 120, 0.04); }
.fallback-art--optics .fallback-art__shape:last-of-type { top: 49%; right: 16%; width: 30%; height: 1px; background: rgba(243, 240, 233, 0.72); transform: rotate(-28deg); transform-origin: right center; }
.fallback-art--sound { background: linear-gradient(135deg, rgba(130, 156, 173, 0.08), transparent 58%), #12171b; }
.fallback-art--sound .fallback-art__axis { top: 22%; bottom: 22%; left: 50%; width: 1px; opacity: 0.38; }
.fallback-art--sound .fallback-art__shape:first-of-type { top: 48%; left: 13%; width: 74%; height: 18%; border-top: 1px solid var(--paper); border-bottom: 1px solid rgba(243, 240, 233, 0.35); border-radius: 50%; transform: skewX(-18deg); opacity: 0.72; }
.fallback-art--sound .fallback-art__shape:last-of-type { top: 35%; left: 23%; width: 54%; height: 28%; border-top: 1px solid var(--warm); border-bottom: 1px solid rgba(198, 169, 120, 0.32); border-radius: 50%; transform: skewX(18deg); opacity: 0.65; }
.fallback-art--motion { background: linear-gradient(135deg, rgba(198, 169, 120, 0.12), transparent 48%), #181513; }
.fallback-art--motion .fallback-art__axis { top: 17%; right: 25%; bottom: 16%; width: 1px; transform: rotate(32deg); opacity: 0.4; }
.fallback-art--motion .fallback-art__shape:first-of-type { top: 28%; left: 17%; width: 38%; height: 38%; border: 1px solid var(--warm); transform: rotate(-18deg); }
.fallback-art--motion .fallback-art__shape:last-of-type { right: 15%; bottom: 26%; width: 43%; height: 1px; background: var(--paper); box-shadow: -1.1rem -0.65rem 0 rgba(243, 240, 233, 0.42), -2.2rem -1.3rem 0 rgba(243, 240, 233, 0.18); transform: rotate(-18deg); transform-origin: right center; }
.fallback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 1.4rem; }
.fallback-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 0.8rem; color: var(--warm); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; }
.fallback-link--secondary { color: var(--paper); border-bottom: 1px solid var(--line); }
.fallback-footnote { display: block; margin-top: 4rem; color: rgba(243, 240, 233, 0.38); font-family: var(--mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.08em; }
.fallback-list { max-width: 38rem; margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fallback-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; }
.fallback-list b { min-width: 1.6rem; color: var(--warm); font-weight: 400; }
.fallback-search-copy { max-width: 38rem; margin-top: 2.3rem!important; padding-top: 1.3rem; border-top: 1px solid var(--line); color: rgba(243, 240, 233, 0.54)!important; font-family: var(--mono); font-size: 0.72rem!important; line-height: 1.7!important; }
.fallback-services, .fallback-guides { min-height: 78svh; }
.fallback-service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; margin-top: 2.6rem; border-top: 1px solid var(--line); }
.fallback-service-list article { padding: 1.25rem 1.25rem 1.3rem 0; border-bottom: 1px solid var(--line); }
.fallback-service-list article:nth-child(odd) { margin-right: 1.5rem; border-right: 1px solid var(--line); }
.fallback-service-list h3 { margin: 0 0 0.55rem; color: var(--paper); font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: -0.04em; }
.fallback-service-list p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.7; }
.fallback-contact { min-height: 70svh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-intro, .scene-caption, .scene-link span, .site-header nav a::after, .mobile-nav { transition-duration: 0.001ms; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; height: 62px; padding: 0 20px; }
  .site-header > .desktop-nav, .header-meta { display: none; }
  .wordmark { font-size: 17px; }
  .wordmark-copy small { display: none; }
  .header-actions { gap: 15px; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; min-height: 44px; align-items: center; color: var(--paper); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
  .mobile-nav { position: fixed; top: 62px; right: 16px; left: 16px; display: grid!important; gap: 0!important; max-height: 0; overflow: hidden; padding: 0 1rem; background: rgba(19, 19, 21, 0.97); border: 1px solid transparent; opacity: 0; pointer-events: none; transform: translateY(-0.5rem); transition: max-height 350ms var(--ease), opacity 250ms ease, transform 350ms var(--ease), border-color 350ms ease; }
  .mobile-nav.is-open { max-height: 18rem; padding-top: 0.35rem; padding-bottom: 0.35rem; border-color: var(--line); opacity: 1; pointer-events: auto; transform: none; }
  .mobile-nav a { min-height: 48px!important; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav__cta { color: var(--warm)!important; }
  .scene-intro, .scene-caption { right: 22px; left: 22px; max-width: none; }
  .scene-intro { top: 23vh; }
  .scene-intro .scene-title { margin-top: 0.9rem; font-size: clamp(4.6rem, 20vw, 7.2rem); }
  .scene-intro > p:not(.scene-intro__note):not(.scene-title) { margin-top: 1rem; font-size: 0.78rem; }
  .scene-intro__note { margin-top: 2.3rem; font-size: 0.82rem; line-height: 1.72; }
  .scene-caption { bottom: 17vh; }
  .scene-caption h2 { max-width: 10ch; margin-top: 0.75rem; font-size: clamp(2.35rem, 11vw, 4.2rem); }
  .scene-caption p { max-width: 19rem; font-size: 0.82rem; line-height: 1.7; }
  .scene-footer { right: 22px; bottom: 6.2vh; left: 22px; align-items: flex-end; }
  .scene-footer__actions { gap: 0.8rem 1.1rem; }
  .scene-scroll-note { display: none; }
  html[data-station="4"] .scene-caption h2, html[data-station="5"] .scene-caption h2 { max-width: 8ch; }
  html:not(.three-active) .accessibility-content { padding-top: 6rem; }
  .fallback-section { min-height: 82svh; padding: 6.2rem 0 5rem; }
  .fallback-section h1, .fallback-section h2 { font-size: clamp(3rem, 15vw, 5.4rem); }
  .fallback-search-copy { margin-top: 1.8rem!important; font-size: 0.66rem!important; }
  .fallback-services, .fallback-guides { min-height: auto; }
  .fallback-service-list { grid-template-columns: 1fr; margin-top: 2rem; }
  .fallback-service-list article, .fallback-service-list article:nth-child(odd) { margin-right: 0; padding-right: 0; border-right: 0; }
  .error-page { width: min(100% - 2.75rem, 960px); padding: 5.5rem 0; }
}
