:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #172d3e;
  --muted: #56646a;
  --accent: #2d697a;
  --header-height: 56px;
  --sans: 'Noto Sans KR', sans-serif;
  --serif: 'Noto Serif KR', serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 0; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .25em; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section:focus { outline: none; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 9px 16px; min-height: 44px; background: var(--paper); border: 1px solid var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; height: var(--header-height); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(var(--paper) 30%, rgb(245 242 235 / .9) 75%, rgb(245 242 235 / 0)); }
.js .site-header { position: fixed; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.brand strong { font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -.06em; }
.brand strong span { color: var(--accent); }
.brand-word { padding-top: 4px; font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: .18em; }
.consult-button { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 10px 17px; color: #191600; background: #fee500; border: 1px solid transparent; border-radius: 999px; font-size: 13px; line-height: 1.45; font-weight: 600; text-align: center; text-decoration: none; }
.consult-button:hover { border-color: currentColor; }
.consult-button--header { flex: 0 0 auto; padding: 9px 13px; }

main { position: relative; }
.stage { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); isolation: isolate; }
.js .stage { position: sticky; top: 0; }
.layer { position: absolute; inset: 0; pointer-events: none; opacity: 0; transform-origin: 50% 50%; }
.layer-hero { opacity: 1; }
.artboard, .map-board { position: absolute; width: 124vw; height: auto; aspect-ratio: 1; left: -12vw; top: 56px; transform-origin: 50% 50%; }
.artboard > img, .artboard > svg, .map-board > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.artboard > img, .map-board > img, #water-art { mix-blend-mode: multiply; }
#face-closed, .map-board > img:not(#map-0) { opacity: 0; }
.artboard > svg { overflow: visible; }
.hero-label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: 3px 9px; border: 1px solid #adc4c9; border-radius: 999px; background: rgb(245 242 235 / .95); font-size: 13px; line-height: 1.55; font-weight: 600; white-space: nowrap; }
#hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { display: none; position: absolute; left: var(--x); top: var(--y); width: max(44px, var(--hit-size)); height: max(44px, var(--hit-size)); padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; pointer-events: auto; }
.js .hotspot { display: block; }
.hotspot:hover, .hotspot[aria-expanded='true'] { background: rgb(45 105 122 / .09); }
.hotspot-popover { position: absolute; left: 25%; top: 28%; width: min(280px, 74vw); padding: 22px 19px 12px; background: rgb(245 242 235 / .98); border: 1px solid #adc4c9; border-radius: 4px; pointer-events: auto; }
.popover-title { margin: 0 42px 8px 0; font-family: var(--serif); font-size: 20px; line-height: 1.45; font-weight: 600; }
.popover-description { margin: 0; font-size: 15px; line-height: 1.7; }
.popover-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: transparent; font-size: 27px; line-height: 1; }
.popover-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; margin-top: 8px; }
.popover-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--accent); }

.ohaeng-board { position: absolute; top: 90px; left: 12px; width: calc(100% - 24px); transform-origin: 50% 50%; }
.ohaeng-board > svg { width: 100%; height: auto; overflow: visible; }
.feature-label { position: absolute; top: 22%; left: 24px; width: calc(100% - 48px); padding: 7px 11px; color: var(--accent); background: rgb(245 242 235 / .94); font-size: 13px; line-height: 1.55; opacity: 0; }
.feature-label:empty { display: none; }
.name-node { position: absolute; left: 0; top: 0; width: 90px; height: 90px; overflow: visible; transform-origin: center; font-family: var(--sans); }
#name-connection, #flight { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#name-connection { z-index: 1; }
#name-node, #water-node { z-index: 2; }
#water-window { position: absolute; width: 100%; height: 65%; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 87%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 87%, transparent); }
#water-strip { position: absolute; inset: 0 auto auto 0; width: 100%; transform-origin: top center; }
#water-art { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2400; }
#water-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
#water-caption { position: absolute; top: 45%; left: 50%; margin: 0; transform: translateX(-50%); color: var(--accent); font-size: 13px; line-height: 1.5; white-space: nowrap; }
#map-overlay { position: absolute; inset: 0; }
#map-label { position: absolute; left: 50%; top: 9%; margin: 0; transform: translate(-50%, -50%); padding: 4px 13px; color: var(--accent); background: rgb(245 242 235 / .92); font-size: 17px; font-weight: 600; line-height: 1.5; }
.map-indicator { position: absolute; left: var(--indicator-x); top: var(--indicator-y); width: min(178px, 36%); padding: 10px 11px; color: var(--ink); background: rgb(245 242 235 / .95); border: 1px solid #adc4c9; border-radius: 3px; font-size: 12px; line-height: 1.5; opacity: 0; }
.map-indicator[data-place='fields'] { --indicator-x: 12%; --indicator-y: 22%; }
.map-indicator[data-place='shops'] { --indicator-x: 53%; --indicator-y: 41%; }
.map-indicator[data-place='city'] { --indicator-x: 40%; --indicator-y: 68%; }
.map-indicator > strong { font-size: 13px; font-weight: 600; }
.map-indicator dl { margin: 7px 0 0; }
.map-indicator dl > div { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 5px; }
.map-indicator dt { color: var(--muted); }
.map-indicator dd { margin: 0; font-weight: 500; }
.direction { position: absolute; transform: translate(-50%, -50%); font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--accent); background: rgb(245 242 235 / .85); padding: 2px 6px; opacity: 0; }
.direction-north { left: 50%; top: 5%; }
.direction-east { left: 88%; top: 50%; }
.direction-south { left: 50%; top: 91%; }
.direction-west { left: 12%; top: 50%; }
#flight { z-index: 6; }

.story { position: relative; z-index: 2; pointer-events: none; }
.story a, .story button { pointer-events: auto; }
.step { position: relative; display: flex; align-items: center; min-height: 0; padding: 28px 0; scroll-margin-top: 0; }
.card { width: 100%; padding: 24px; }
.card h1, .card h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.card h1 { font-size: 28px; line-height: 1.42; }
.card h2 { font-size: 24px; line-height: 1.5; }
.card p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.card .eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 13px; line-height: 1.6; font-weight: 600; letter-spacing: .035em; }
.card .scroll-hint { margin-top: 16px; color: var(--accent); font-size: 13px; line-height: 1.7; }
.card .card-note { margin-top: 15px; }
.card--short p { color: var(--ink); }
.step--silent { display: none; }
.step--silent .card { min-height: 1px; padding: 0; background: none; }
.consult-button--closing { margin-top: 24px; min-height: 48px; padding-inline: 24px; font-size: 15px; }
.card .consult-summary { margin-top: 14px; color: var(--ink); }
.card .consult-note { margin-top: 12px; font-size: 13px; line-height: 1.65; }
.fallback-topics { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.fallback-topics a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--accent); }

.js .story { margin-top: -100vh; margin-top: -100svh; }
.js .step { height: 100vh; height: 100svh; min-height: 100vh; min-height: 100svh; padding: 0; align-items: flex-end; }
.js .card { padding: 64px 24px 30px; background: linear-gradient(to bottom, rgb(245 242 235 / 0), rgb(245 242 235 / .9) 38px, var(--paper) 90px); }
.js .step--feature { height: 60vh; height: 60svh; min-height: 60vh; min-height: 60svh; }
.js .step--silent { display: flex; height: 150vh; height: 150svh; min-height: 150vh; min-height: 150svh; }
.js .step--silent .card { padding: 0; background: none; }
.js .step--closing { height: 120vh; height: 120svh; min-height: 120vh; min-height: 120svh; }

.site-footer { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; padding: 24px; background: var(--paper); border-top: 1px solid rgb(23 45 62 / .12); font-size: 12px; line-height: 1.6; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-footer > span:first-child { font-weight: 600; letter-spacing: .035em; }
.footer-policy-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-width: 0; max-width: 100%; }
.site-footer .footer-policy-link { min-width: 0; max-width: 100%; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.footer-privacy strong { font-weight: 700; }
@media (max-width: 600px) { .footer-policy-links { flex-basis: 100%; } }

@media (min-width: 600px) and (max-width: 999px) {
  .artboard, .map-board { width: min(124vw, calc(100svh - 260px)); left: calc((100vw - min(124vw, 100svh - 260px)) / 2); }
  .ohaeng-board { width: min(680px, calc(100svh - 300px)); left: calc((100vw - min(680px, 100svh - 300px)) / 2); }
  .card { max-width: 680px; margin-inline: auto; }
  .js .card { padding-inline: 32px; }
}

@media (min-width: 1000px) {
  :root { --header-height: 72px; }
  html { scroll-padding-top: 0; }
  body { font-size: 17px; }
  .site-header { padding-inline: 56px; }
  .brand strong { font-size: 32px; }
  .brand-word { font-size: 12px; }
  .consult-button--header { min-height: 44px; padding: 11px 18px; }
  .artboard, .map-board { width: calc(100vh - 100px); width: calc(100svh - 100px); height: calc(100vh - 100px); height: calc(100svh - 100px); left: auto; right: 48px; top: 84px; }
  .ohaeng-board { top: 110px; width: min(680px, calc(100svh - 140px)); left: auto; right: calc(48px + (100svh - 100px - min(680px, 100svh - 140px)) / 2); }
  .feature-label { top: 25%; }
  .step { padding: 32px 72px; scroll-margin-top: 0; }
  .card { width: 420px; padding: 24px 0; margin: 0; }
  .card h1 { font-size: 44px; line-height: 1.45; }
  .card h2 { font-size: 36px; line-height: 1.5; }
  .card p { font-size: 17px; line-height: 1.9; }
  .card .eyebrow { margin-bottom: 20px; font-size: 13px; }
  .card .scroll-hint { margin-top: 20px; font-size: 13px; }
  .js .step { align-items: center; padding-left: 72px; }
  .js .card { position: relative; width: 420px; padding: 24px 0; background: linear-gradient(90deg, var(--paper) 82%, rgb(245 242 235 / 0)); }
  .js .card::before { content: ''; position: absolute; z-index: -1; inset: -32px -32px -32px -72px; background: linear-gradient(90deg, var(--paper) 73%, rgb(245 242 235 / 0)); }
  .js .step--silent .card::before { display: none; }
  .js .step--silent .card { background: none; }
  .map-indicator { width: 188px; padding: 12px 14px; }
  .map-indicator dl > div { grid-template-columns: 68px 1fr; gap: 7px; }
  .site-footer { padding: 24px 72px; }
}

@media (max-width: 359px) {
  .site-header { padding-inline: 16px; }
  .brand-word { display: none; }
  .card, .js .card { padding-left: 20px; padding-right: 20px; }
  .hero-label { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header { position: static !important; }
  .stage { position: relative !important; height: 150mm; }
  .story, .js .story { margin-top: 0; }
  .step, .js .step { display: block; height: auto; min-height: 0; padding: 12px 0; break-inside: avoid; }
  .step--silent, .js .step--silent { display: none; }
  .card, .js .card { width: auto; padding: 12px 0; background: none; }
  .card::before, #hotspots { display: none; }
}
