:root {
  --brown-950: #21140f;
  --brown-900: #302018;
  --brown-800: #4a2e23;
  --brown-700: #654234;
  --paper: #eee0c6;
  --paper-light: #fff8e9;
  --paper-deep: #dfcfb2;
  --ink: #2a211c;
  --muted: #7f6d5f;
  --burgundy: #772f2b;
  --indigo: #2d4654;
  --ochre: #c99a4b;
  --line: rgba(77, 51, 38, .22);
  --font-display: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-body: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--paper-light); background: var(--brown-950); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body::after { position: fixed; inset: 0; z-index: 1000; content: ""; pointer-events: none; opacity: .12; mix-blend-mode: soft-light; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 500; left: 16px; top: -80px; padding: 12px 16px; color: var(--ink); background: var(--paper-light); }
.skip-link:focus { top: 16px; }
.site-nav { position: fixed; z-index: 100; top: 18px; left: 50%; width: min(1180px, calc(100% - 36px)); height: 62px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%); border: 1px solid rgba(255, 240, 213, .24); background: rgba(44, 29, 22, .75); box-shadow: 0 16px 42px rgba(20, 10, 5, .22); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; color: var(--paper-light); text-decoration: none; }
.brand-logo { position: relative; width: 114px; height: 34px; display: block; overflow: hidden; }
.brand-logo img { position: absolute; left: 50%; top: 50%; width: 138px; height: 138px; max-width: none; display: block; transform: translate(-50%, -50%); }
.brand-footer .brand-logo { width: 160px; height: 46px; }
.brand-footer .brand-logo img { width: 194px; height: 194px; }
.nav-meta { display: flex; align-items: center; gap: 20px; }
.privacy-button { padding: 7px 0; border: 0; border-bottom: 1px solid rgba(255,248,233,.44); color: #e4d7c2; background: transparent; font-size: 11px; cursor: pointer; }
.nav-status { color: #d3c1a7; font-size: 11px; }
.nav-status i { display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--ochre); }

.page-shell { width: 100%; overflow-x: hidden; }
.hero { position: relative; isolation: isolate; width: 100%; min-height: 100svh; padding: 142px max(28px, calc((100vw - 1240px) / 2)) 105px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(410px, .72fr); align-items: center; gap: clamp(48px, 6vw, 92px); background-image: linear-gradient(90deg, rgba(31,18,12,.96) 0%, rgba(38,22,15,.83) 38%, rgba(38,22,15,.36) 67%, rgba(27,15,10,.52) 100%), linear-gradient(0deg, rgba(32,18,12,.88), transparent 42%), url('/gyeongseong/assets/hero-gwangbok-gathering.webp'); background-position: center; background-size: cover; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, rgba(22,12,8,.42), transparent 28%); }
.hero-copy { position: relative; z-index: 3; }
.anniversary-lockup { width: fit-content; margin: 0 0 25px; padding: 2px 0 2px 18px; display: grid; grid-template-columns: auto auto; grid-template-areas: "years years" "title note"; align-items: end; column-gap: 17px; border-left: 2px solid #d5a64d; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.anniversary-years { grid-area: years; margin-bottom: 5px; color: #d8b56f; font-size: 10px; font-weight: 780; letter-spacing: .19em; }
.anniversary-title { grid-area: title; color: #f0cf85; font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); font-weight: 700; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.anniversary-title b { color: #ffd77c; font-size: 1.28em; font-weight: 800; }
.anniversary-note { grid-area: note; padding-bottom: 2px; color: #dac9af; font-size: 11px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.hero h1 { max-width: 760px; margin: 0; font-family: var(--font-display); font-size: clamp(50px, 5.8vw, 82px); font-weight: 700; line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 3px 28px rgba(0,0,0,.35); }
.hero-description { max-width: 660px; margin: 29px 0 0; color: #e2d3bc; font-size: 17px; line-height: 1.85; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 56px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 4px; font-weight: 850; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff9ea; background: var(--burgundy); box-shadow: 0 12px 30px rgba(49,15,13,.34); }
.button-primary:hover { background: #8a3934; }
.button-ghost { color: var(--brown-900); border-color: #e0cda9; background: rgba(255,248,233,.92); }
.privacy-note { margin: 20px 0 0; color: #c7b7a0; font-size: 11px; }
.shared-result { max-width: 510px; margin-top: 22px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; border-left: 3px solid var(--ochre); background: rgba(44,27,20,.8); }
.shared-result span { color: #c4b299; font-size: 11px; }
.shared-result strong { grid-column: 1; font-size: 17px; }
.shared-result button { grid-column: 2; grid-row: 1 / span 2; padding: 0 14px; border: 0; color: var(--ink); background: var(--paper); font-weight: 800; cursor: pointer; }

.hero-visual { position: relative; z-index: 3; min-width: 0; align-self: end; }
.signal { display: none; }
.retro-window { position: relative; min-height: 620px; overflow: hidden; border: 1px solid rgba(75,49,35,.58); color: var(--ink); background: rgba(244, 231, 205, .97); box-shadow: 0 24px 70px rgba(24,11,6,.42), 0 0 0 8px rgba(71,43,30,.35); transform: rotate(.5deg); }
.window-bar { height: 50px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(80,52,37,.24); color: #4d3528; background: #ead7b4; }
.window-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.window-dot { width: 16px; height: 16px; border: 1px solid #6c332e; border-radius: 50%; background: radial-gradient(circle at 50% 28%, #a4443d 0 25%, #f5e6c9 27% 31%, #35586a 33% 62%, #f5e6c9 64%); }
.window-era { color: #8c6a4b; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.window-screen { min-height: 568px; display: none; }
.window-screen.active { display: block; }
.screen-intro { padding: 20px; }
.hero-art-frame { position: relative; height: 380px; overflow: hidden; background: #53392d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); }
.hero-art-frame img { width: 100%; height: 100%; display: block; object-fit: cover; filter: sepia(.08) saturate(.82) contrast(1.02); transition: transform .8s ease; }
.hero-art-frame:hover img { transform: scale(1.035); }
.art-scanline { display: none; }
.art-caption { position: absolute; left: 14px; bottom: 14px; padding: 8px 10px; color: #4b3427; background: rgba(255,248,233,.94); font-family: var(--font-display); font-size: 10px; font-weight: 700; }
.intro-terminal { margin-top: 18px; padding: 15px 4px 1px; border-top: 1px solid #cbb695; }
.terminal-prompt { color: #7b3a33; font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.intro-terminal p { margin: 8px 0 15px; color: #625346; font-size: 13px; line-height: 1.65; }
.retro-button { min-height: 47px; padding: 0 21px; border: 1px solid #6e352f; border-radius: 3px; color: #fff8e9; background: var(--burgundy); font-weight: 850; cursor: pointer; box-shadow: 0 7px 16px rgba(83,35,29,.18); }
.retro-button:active { transform: translateY(1px); box-shadow: none; }
.retro-button.secondary { border-color: #b8a486; color: #5d4b3d; background: transparent; }
.screen-form { min-width: 0; padding: 40px 38px 31px; overflow: hidden; }
.form-heading { margin-bottom: 28px; }
.form-heading > span { color: #9b4c43; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.form-heading h2 { max-width: 430px; margin: 9px 0 8px; font-family: var(--font-display); font-size: 28px; line-height: 1.35; }
.form-heading p { margin: 0; color: #766658; font-size: 13px; }
.field { --field-height: 52px; width: 100%; min-width: 0; margin-top: 17px; display: block; }
.field > span, .field > .field-label { margin-bottom: 7px; display: flex; align-items: center; gap: 7px; color: #43372e; font-size: 13px; font-weight: 800; }
.field b, .field em { padding: 2px 6px; color: #fff8ea; background: var(--burgundy); font-size: 9px; font-style: normal; }
.field em { color: #6f5d4d; background: #e2d3bb; }
.field input { width: 100%; min-width: 0; max-width: 100%; height: var(--field-height); padding: 0 14px; display: block; border: 1px solid #b6a184; border-radius: 3px; outline: 0; color: #2f251f; background: rgba(255,252,242,.9); -webkit-appearance: none; appearance: none; }
.field input:focus { border-color: #8c443d; box-shadow: 0 0 0 3px rgba(140,68,61,.12); }
.identity-input-shell { width: 100%; display: grid !important; grid-template-columns:minmax(0,1fr) 104px; gap:0 !important; margin:0 !important; }
.identity-input-shell > #nickname { border-radius:3px 0 0 3px; }
.field .identity-input-shell > input[type="hidden"] { display:none; }
.gender-segment { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; }
.gender-segment button { height:var(--field-height); padding:0; border:1px solid #b6a184; border-left:0; border-radius:0; color:#8d7764; background:#f7ecd8; font:inherit; font-size:13px; font-weight:800; cursor:pointer; transition:background .18s ease,color .18s ease,box-shadow .18s ease; }
.gender-segment button:last-child { border-radius:0 3px 3px 0; }
.gender-segment button[aria-pressed="true"] { color:#fffaf0; background:#824039; box-shadow:inset 0 0 0 1px #6d302c; }
.gender-segment button:focus-visible { position:relative; z-index:2; outline:3px solid rgba(140,68,61,.22); outline-offset:1px; }
.picker-input-shell { position: relative; width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 52px; }
.time-input-shell { grid-template-columns: minmax(0, 1fr) 96px 52px; }
.picker-input-shell > input:first-child { min-width: 0; border-radius: 3px 0 0 3px; }
.time-period { width: 96px; min-width: 0; height: var(--field-height); padding: 0 7px; border: 1px solid #b6a184; border-left: 0; border-radius: 0; outline: 0; color: #5e4437; background: #fffaf0; text-align: center; text-align-last: center; cursor: pointer; -webkit-appearance: none; appearance: none; }
.time-period:focus { position: relative; z-index: 3; border-color: #8c443d; box-shadow: 0 0 0 3px rgba(140,68,61,.12); }
.time-period:has(option:checked[value=""]) { color: #9a8e82; }
.picker-button { position: relative; z-index: 2; width: 52px; min-width: 0; height: var(--field-height); padding: 0; display: grid; place-items: center; border: 1px solid #b6a184; border-left: 0; border-radius: 0 3px 3px 0; color: #754038; background: #f4e9d5; cursor: pointer; }
.picker-button:focus-visible { z-index: 3; }
.picker-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field .native-date-picker, .field .native-time-picker { position: absolute; right: 0; bottom: 0; width: 1px; min-width: 0; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.field .native-date-picker { z-index: 4; width: 52px; height: var(--field-height); pointer-events: auto; cursor: pointer; }
.field .native-time-picker { z-index: 4; width: 52px; height: var(--field-height); pointer-events: auto; cursor: pointer; }
.field-help { margin: 7px 0 0; color: #897565; font-size: 10px; line-height: 1.5; }
.field-error { min-height: 20px; margin: 11px 0 0; color: #9b2923; font-size: 12px; font-weight: 750; }
.form-actions { margin-top: 20px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 11px; }
.screen-scan { padding: 64px 38px; text-align: center; }
.scan-glyph { position: relative; width: 112px; height: 112px; margin: 0 auto 34px; display: grid; place-items: center; border: 2px solid rgba(121,53,47,.62); border-radius: 50%; color: #8c3d37; background: rgba(255,248,233,.34); box-shadow: inset 0 0 0 8px rgba(121,53,47,.07); animation: seal-breathe 1.8s ease-in-out infinite; }
.scan-glyph::before { content: "八·一五"; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.05em; }
.scan-glyph span { display: none; }
.scan-kicker { margin: 0 0 10px; color: #985047; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.screen-scan h2 { margin: 0; font-family: var(--font-display); font-size: 25px; line-height: 1.4; }
.screen-scan > p:not(.scan-kicker) { color: #766658; font-size: 13px; line-height: 1.65; }
.progress-track { height: 9px; margin-top: 34px; overflow: hidden; border-radius: 9px; background: #d9c8ab; }
.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #8e433d, #c0944c); transition: width .4s ease; }
.scan-log { margin-top: 15px; color: #856c58; font-family: var(--font-display); font-size: 11px; text-align: center; }
@keyframes seal-breathe { 0%,100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.045); opacity: 1; } }

.role-marquee { padding: 20px 0; overflow: hidden; border-block: 1px solid rgba(255,239,210,.12); background: #4a2d23; }
.marquee-track { width: max-content; display: flex; align-items: center; animation: marquee 44s linear infinite; }
.marquee-track span { padding: 0 24px; color: #f0e0c3; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }
@keyframes marquee { to { transform: translateX(-50%); } }
.role-preview { width: min(1200px, calc(100% - 56px)); margin: 0 auto; padding: 196px 0 210px; color: var(--ink); background: linear-gradient(180deg, #f2e6d0, #e4d1b2); box-shadow: 0 0 0 100vmax #ead9bd; clip-path: inset(0 -100vmax); }
.section-heading { max-width: 1040px; margin: 0 0 78px; padding: 0 clamp(18px, 3.4vw, 48px); }
.section-heading > p { margin: 0 0 25px; color: #8e443c; font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.section-heading h2 { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 5.2vw, 70px); font-weight: 700; line-height: 1.12; letter-spacing: -.055em; }
.section-heading h2 span { display: block; white-space: nowrap; }
.bento-grid { min-height: 680px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(300px, 1fr)); grid-auto-flow: dense; gap: 0; border: 1px solid rgba(61,42,31,.18); box-shadow: 0 28px 70px rgba(76,48,31,.16); }
.preview-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(237,219,187,.2); background: #513529; }
.preview-card img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.05) saturate(.76) contrast(1.02); transition: transform .7s ease, filter .7s ease; }
.preview-card:hover img { transform: scale(1.045); filter: saturate(.94); }
.preview-card > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 28px 26px; color: #fff8e9; background: linear-gradient(transparent, rgba(35,20,13,.94)); }
.preview-card span { color: #e1cdb0; font-size: 12px; }
.preview-card h3 { margin: 5px 0 0; font-family: var(--font-display); font-size: clamp(25px, 2.7vw, 42px); }
.preview-card p { margin: 8px 0 0; color: #dfccb1; font-size: 13px; }
.preview-main { grid-column: span 2; grid-row: span 2; }
.preview-wide { grid-column: span 2; grid-row: span 1; }
.preview-small { grid-column: span 1; grid-row: span 1; }
.preview-small > div { padding-inline: 20px; }
.preview-small h3 { font-size: 24px; }
.role-carousel { min-height: 390px; margin-top: 58px; display: grid; grid-template-columns: 62px minmax(300px, .8fr) minmax(0, 1.2fr) 62px; align-items: stretch; border: 1px solid rgba(255,235,203,.12); color: #fff7e8; background: #493027; box-shadow: 0 24px 60px rgba(74,43,27,.18); }
.carousel-arrow { width: 62px; border: 0; border-right: 1px solid rgba(255,236,204,.14); color: #f3e1c1; background: #3b251d; font-size: 22px; cursor: pointer; transition: background .2s; }
.carousel-arrow:last-child { border-right: 0; border-left: 1px solid rgba(255,236,204,.14); }
.carousel-arrow:hover { background: #624035; }
.carousel-media { min-width: 0; overflow: hidden; }
.carousel-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.carousel-panel { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.carousel-panel > span { color: #d5b77d; font-size: 11px; }
.carousel-panel > strong { margin-top: 25px; color: #e0bd75; font-family: var(--font-display); font-size: 25px; font-weight: 600; }
.carousel-panel h3 { margin: 8px 0 10px; font-family: var(--font-display); font-size: clamp(38px, 4vw, 56px); line-height: 1.1; }
.carousel-panel p { max-width: 460px; margin: 0; color: #dfcdb2; font-size: 16px; line-height: 1.75; }

.result-section { width: min(1120px, calc(100% - 32px)); min-height: 100svh; margin: 0 auto; padding: 110px 0 90px; }
body.result-mode { background: radial-gradient(circle at 20% 0, #6b4936, transparent 40%), var(--brown-950); }
body.result-mode .skip-link, body.result-mode .hero, body.result-mode .role-marquee, body.result-mode .role-preview, body.result-mode .closing-cta { display: none; }
body.scan-mode .role-marquee, body.scan-mode .role-preview, body.scan-mode .closing-cta { display: none; }
.result-card { overflow: hidden; color: var(--ink); background: var(--paper-light); box-shadow: 0 38px 110px rgba(20,9,5,.52); }
.result-visual { position: relative; height: clamp(420px, 48vw, 590px); margin: 0; overflow: hidden; background: #3a271f; }
.result-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.result-visual::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, transparent 54%, rgba(38,21,13,.7)); }
.result-visual figcaption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,248,233,.55); color: #fff8ea; }
.result-visual figcaption span { color: #e3bb70; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.result-visual figcaption b { align-self: center; font-size: 11px; }
.result-content { padding: 48px 54px 54px; display: flex; flex-direction: column; }
.result-owner { margin: 0; color: #7a6b5e; font-size: 12px; font-weight: 800; }
.result-name { margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.result-name h2 { margin: 0; font-family: var(--font-display); font-size: clamp(48px, 5vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
.result-name strong { color: #966844; font-family: var(--font-display); font-size: 29px; font-weight: 600; white-space: nowrap; }
.result-basis { margin-top: 23px; padding: 13px 0; border-block: 1px solid #d8cbb9; }
.result-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.result-chips::-webkit-scrollbar { display: none; }
.result-chips span { padding: 0 12px; border-right: 1px solid #c9bba8; color: #58664d; font-size: 11px; font-weight: 850; line-height: 1.2; white-space: nowrap; }
.result-chips span:first-child { padding-left: 0; }
.result-chips span:last-child { padding-right: 0; border-right: 0; }
.result-reading { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; border: 1px solid #d3c3aa; background: #f6ecda; }
.reading-point { min-width: 0; padding: 28px 25px 30px; border-right: 1px solid #d3c3aa; }
.reading-point:last-child { border-right: 0; }
.reading-point span { display: block; color: #955046; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.reading-point h3 { margin: 14px 0 0; color: #332820; font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.42; letter-spacing: -.025em; }
.reading-point p { margin: 15px 0 0; color: #6d5c4e; font-size: 13px; line-height: 1.72; }
.reading-nature { box-shadow: inset 0 4px 0 #8f4740; }
.reading-work { box-shadow: inset 0 4px 0 #bd8b3d; }
.reading-future { box-shadow: inset 0 4px 0 #52705b; }
.result-ethical { margin: 14px 0 0; padding: 11px 13px; color: #72433d; background: #f2dfd5; font-size: 11px; line-height: 1.55; }
.result-actions { padding-top: 30px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 10px; }
.result-deep { color: #fff8e9; background: #4b3026; box-shadow: 0 8px 18px rgba(43,24,16,.18); }
.result-share { color: #fff8e9; background: var(--burgundy); box-shadow: 0 8px 18px rgba(78,25,21,.18); }
.result-secondary { margin-top: 17px; display: flex; justify-content: center; gap: 22px; }
.result-secondary button { min-height: 34px; padding: 0; border: 0; border-bottom: 1px solid #a09285; color: #786c61; background: transparent; font-size: 11px; cursor: pointer; }
.result-note { margin: 20px 0 0; color: #9a8e82; font-size: 10px; line-height: 1.55; text-align: center; }

.closing-cta { padding: 92px 24px 54px; color: #d7c7ae; text-align: center; border-top: 1px solid rgba(238,219,187,.13); background: #2a1a14; }
.closing-cta p { max-width: 660px; margin: 0 auto 35px; color: #b7a48b; font-family: var(--font-display); font-size: 13px; }
.brand-footer { justify-content: center; }
.privacy-dialog { width: min(480px, calc(100% - 28px)); padding: 0; border: 1px solid #a99070; border-radius: 3px; color: var(--ink); background: #f3e7d0; box-shadow: 0 24px 80px rgba(28,13,7,.5); }
.privacy-dialog::backdrop { background: rgba(28,15,10,.78); backdrop-filter: blur(4px); }
.privacy-dialog form { padding: 0 24px 24px; }
.dialog-bar { height: 48px; margin: 0 -24px 24px; padding: 0 9px 0 16px; display: flex; align-items: center; justify-content: space-between; color: #fff8e9; background: #533429; }
.dialog-bar button { width: 36px; height: 36px; border: 0; color: #fff8e9; background: transparent; font-size: 24px; cursor: pointer; }
.dialog-content h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 22px; }
.dialog-content p { color: #635449; font-size: 14px; line-height: 1.75; }
.privacy-dialog > form > .retro-button { width: 100%; margin-top: 8px; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 13px 17px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; border: 1px solid #d6bd95; color: #fff8e9; background: #41291f; box-shadow: 0 10px 28px rgba(0,0,0,.28); font-size: 13px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { padding-inline: max(18px, calc((100vw - 760px) / 2)); grid-template-columns: 1fr; gap: 62px; background-position: 63% center; }
  .hero::before { background: rgba(31,17,11,.44); }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(600px, 100%); margin: 0 auto; }
  .role-preview { width: min(760px, calc(100% - 36px)); padding-top: 158px; }
  .bento-grid { min-height: 900px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(280px, 1fr)); }
  .preview-main { grid-column: span 2; grid-row: span 1; }
  .preview-wide { grid-column: span 2; }
  .role-carousel { grid-template-columns: 54px minmax(250px,.85fr) minmax(0,1.15fr) 54px; }
  .carousel-panel { padding: 34px; }
  .result-visual { height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .site-nav { top: max(10px, env(safe-area-inset-top)); width: calc(100% - 20px); height: 54px; padding: 0 13px; }
  .brand-logo { width: 98px; height: 29px; }
  .brand-logo img { width: 119px; height: 119px; }
  .privacy-button { padding: 7px 6px; font-size: 10px; }
  .nav-status { display: none; }
  .hero { min-height: 100svh; padding: calc(106px + env(safe-area-inset-top)) 12px 86px; gap: 45px; background-image: linear-gradient(180deg, rgba(32,17,10,.76) 0%, rgba(35,19,12,.56) 35%, rgba(29,16,11,.88) 70%, #291912 100%), url('/gyeongseong/assets/hero-gwangbok-gathering.webp'); background-position: 67% center; }
  .hero-copy { text-align: left; }
  .anniversary-lockup { margin-bottom: 20px; padding-left: 13px; column-gap: 11px; }
  .anniversary-years { font-size: 9px; }
  .anniversary-title { font-size: 21px; }
  .anniversary-note { font-size: 9px; }
  .hero h1 { font-size: clamp(38px, 10.8vw, 48px); line-height: 1.16; }
  .hero-description { margin-top: 23px; font-size: 15px; line-height: 1.76; }
  .hero-actions { margin-top: 27px; display: grid; }
  .button { width: 100%; min-height: 54px; font-size: 14px; }
  .privacy-note { color: #d2c3ac; font-size: 10px; line-height: 1.6; }
  .shared-result { grid-template-columns: 1fr; text-align: left; }
  .shared-result button { grid-column: 1; grid-row: 3; min-height: 39px; margin-top: 8px; }
  .hero-visual { width: calc(100% - 12px); }
  .retro-window { min-height: 590px; box-shadow: 0 20px 50px rgba(23,10,6,.4), 0 0 0 5px rgba(71,43,30,.3); }
  .window-bar { height: 45px; padding-inline: 12px; }
  .window-title { font-size: 10px; }
  .window-screen { min-height: 542px; padding: 17px; }
  .hero-art-frame { height: 332px; }
  .intro-terminal { margin-top: 17px; }
  .intro-terminal p { font-size: 12px; }
  .retro-button { min-height: 46px; padding: 0 13px; font-size: 13px; }
  .screen-form { padding: 26px 21px 20px; }
  .form-heading { margin-bottom: 22px; }
  .form-heading h2 { font-size: 23px; }
  .form-heading p { font-size: 12px; }
  .field { --field-height: 49px; margin-top: 15px; }
  .field input { font-size: 16px; }
  .date-input-shell { grid-template-columns: minmax(0, 1fr) 49px; }
  .time-input-shell { grid-template-columns: minmax(0, 1fr) 92px 49px; }
  .time-period { width: 92px; padding-inline: 4px; font-size: 12px; }
  .picker-button, .field .native-date-picker, .field .native-time-picker { width: 49px; }
  .form-actions { margin-top: 18px; }
  .screen-scan { min-height: 542px; padding: 58px 20px; }
  .scan-glyph { width: 98px; height: 98px; margin-bottom: 30px; }
  .scan-glyph::before { font-size: 22px; }
  .screen-scan h2 { font-size: 21px; }
  .screen-scan > p:not(.scan-kicker) { font-size: 12px; }
  .role-marquee { padding: 17px 0; }
  .marquee-track span { padding: 0 17px; font-size: 13px; }
  .role-preview { width: calc(100% - 24px); padding: 132px 0 126px; }
  .section-heading { margin-bottom: 52px; padding: 0 8px; }
  .section-heading > p { margin-bottom: 20px; font-size: 10px; }
  .section-heading h2 { font-size: clamp(29px, 8.3vw, 36px); }
  .section-heading h2 span { white-space: normal; }
  .bento-grid { min-height: 0; grid-template-columns: 1fr; grid-template-rows: none; }
  .preview-card, .preview-main, .preview-wide, .preview-small { grid-column: span 1; grid-row: span 1; min-height: 285px; }
  .preview-main { min-height: 410px; }
  .preview-wide { min-height: 320px; }
  .preview-card h3 { font-size: 26px; }
  .role-carousel { min-height: 0; margin-top: 36px; grid-template-columns: 46px 1fr 46px; grid-template-rows: 250px auto; }
  .carousel-arrow { grid-row: 1 / span 2; width: 46px; }
  .carousel-media { grid-column: 2; grid-row: 1; }
  .carousel-panel { grid-column: 2; grid-row: 2; padding: 25px 20px 29px; }
  .carousel-panel > strong { margin-top: 16px; font-size: 19px; }
  .carousel-panel h3 { font-size: 35px; }
  .carousel-panel p { font-size: 14px; }
  .result-section { width: calc(100% - 16px); padding: calc(82px + env(safe-area-inset-top)) 0 calc(60px + env(safe-area-inset-bottom)); }
  .result-card { display: block; }
  .result-visual { aspect-ratio: 1; }
  .result-visual figcaption { left: 20px; right: 20px; bottom: 18px; }
  .result-visual figcaption span { font-size: 18px; }
  .result-content { padding: 31px 23px 28px; }
  .result-name { align-items: flex-start; }
  .result-name h2 { font-size: 45px; }
  .result-name strong { font-size: 24px; }
  .result-basis { margin-top: 21px; padding: 12px 0; }
  .result-chips span { padding-inline: 9px; font-size: 10px; }
  .result-reading { grid-template-columns: 1fr; }
  .reading-point { padding: 24px 20px 25px; border-right: 0; border-bottom: 1px solid #d3c3aa; box-shadow: inset 4px 0 0 #8f4740; }
  .reading-point:last-child { border-bottom: 0; }
  .reading-work { box-shadow: inset 4px 0 0 #bd8b3d; }
  .reading-future { box-shadow: inset 4px 0 0 #52705b; }
  .reading-point h3 { margin-top: 11px; font-size: 20px; }
  .reading-point p { margin-top: 11px; font-size: 13px; }
  .result-actions { grid-template-columns: 1fr; }
  .result-secondary { gap: 17px; }
  .closing-cta { padding: 72px 24px calc(52px + env(safe-area-inset-bottom)); }
  .dialog-bar button { width: 44px; height: 44px; }
}

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