:root {
  --ink: #16241d;
  --forest: #1e3329;
  --cream: #f4f0e7;
  --paper: #fbfaf6;
  --gold: #c8a267;
  --muted: #6e756f;
  --line: rgba(22, 36, 29, .13);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body:has(#tour.active) { overflow: hidden; height: 100svh; }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045; 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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

#landing { display: block; }
#landing.hidden { display: none; }
.site-header {
  position: sticky; top: 0; z-index: 40; height: 74px; padding: 0 clamp(18px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(251,250,246,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .04em; }
.site-nav a:hover { color: #8f6d3b; }
.header-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.1; letter-spacing: .01em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 13px; letter-spacing: -.06em; }
.language-btn { border: 1px solid rgba(255,255,255,.28); border-radius: 100px; padding: 10px 14px; color: white; background: rgba(14,29,21,.22); cursor: pointer; font-size: 12px; }
.language-btn span { color: var(--gold); margin-left: 7px; }
.language-btn.dark { color: var(--ink); border-color: var(--line); background: transparent; }

.hero { position: relative; min-height: 100svh; display: grid; place-items: end start; overflow: hidden; color: white; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,11,.82) 0%, rgba(8,16,11,.45) 46%, rgba(8,16,11,.12) 100%), linear-gradient(0deg, rgba(8,16,11,.55), transparent 42%); }
.hero-copy { position: relative; z-index: 1; max-width: 760px; padding: 0 clamp(22px, 6vw, 80px) 120px; }
.hero-kicker { margin: 0 0 10px; color: #e6c58d; font: italic 500 clamp(22px, 3vw, 34px)/1 var(--serif); }
.hero h1 { margin: 0; max-width: 14ch; font: 500 clamp(42px, 7vw, 86px)/.92 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.hero-sub { max-width: 480px; margin: 22px 0 30px; color: rgba(255,255,255,.78); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; }
.hero-scroll { position: absolute; z-index: 1; left: clamp(22px, 6vw, 80px); bottom: 28px; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow span:first-child { width: 38px; height: 1px; display: inline-block; background: var(--gold); flex-shrink: 0; }
.eyebrow.dark { color: #8a7c65; }
.eyebrow.light { color: rgba(255,255,255,.78); }
.eyebrow.center, h2.center { justify-content: center; text-align: center; }
h2 { margin: 0 0 18px; font: 500 clamp(32px, 4.4vw, 52px)/1.05 var(--serif); }
.panel p { margin: 0 0 16px; color: #4f5852; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.75; }
.primary-btn { border: 0; border-radius: 2px; padding: 9px 10px 9px 22px; display: inline-flex; align-items: center; gap: 18px; color: var(--ink); background: #e7c78e; cursor: pointer; font-size: 12px; font-weight: 600; text-decoration: none; box-shadow: 0 12px 40px rgba(0,0,0,.18); transition: transform .2s, background .2s; }
.primary-btn:hover { transform: translateY(-2px); background: #f1d8ab; }
.button-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ink); font-size: 17px; }

.panel { padding: clamp(64px, 9vw, 110px) clamp(22px, 6vw, 80px); }
.welcome-panel, .architecture-panel { background: var(--paper); }
.story-panel, .explore-panel { background: var(--cream); }
.history-panel { background: #efe8d8; }
.panel-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; }
.panel-grid.reverse { grid-template-columns: .82fr 1.18fr; }
.photo-frame { margin: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 18px 50px rgba(22,36,29,.16); }
.photo-frame img, .explore-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-frame.tall { min-height: 460px; }
.photo-frame.tall img { height: 520px; }
.portrait-wrap { margin: 0 auto; max-width: 360px; padding: 18px; background: linear-gradient(145deg, #e8d39a, #b48a3d 45%, #f0deae); box-shadow: 0 20px 50px rgba(22,36,29,.18); }
.portrait-wrap img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; background: #1a1a1a; }
.portrait-wrap figcaption { margin-top: 12px; color: #3d2e12; text-align: center; font: italic 500 18px var(--serif); }

.timeline { list-style: none; margin: 48px auto 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 1180px; counter-reset: none; }
.timeline li { position: relative; padding-top: 22px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #d3c4a4; }
.timeline li::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.timeline strong { display: block; margin-bottom: 8px; color: var(--ink); font: 600 22px var(--serif); }
.timeline p { margin: 0; font-size: 14px; }

.style-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; padding: 0; list-style: none; }
.style-pills li { padding: 8px 14px; border: 1px solid #d8ccb3; border-radius: 100px; background: #f7f1e4; font-size: 12px; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-list li { padding-left: 18px; position: relative; color: #4f5852; font-size: 15px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.lead { max-width: 640px; margin: -8px auto 36px; color: #4f5852; }
.mystery-panel { background: #efe8d8; }
.mystery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.mystery-card { overflow: hidden; background: var(--paper); box-shadow: 0 12px 30px rgba(22,36,29,.1); }
.mystery-card img { display: block; width: 100%; height: 220px; object-fit: cover; }
.mystery-card div { padding: 20px 20px 24px; }
.mystery-card h3 { margin: 0 0 10px; font: 500 26px var(--serif); }
.mystery-card p { margin: 0; color: #4f5852; font-size: 14px; line-height: 1.65; }
.myth-panel { background: var(--paper); }
.myth-grid { align-items: start; }
.myth-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.myth-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); background: #f7f4ec; }
.myth-list span { color: #3d453f; font-size: 15px; line-height: 1.4; }
.verdict { flex-shrink: 0; padding: 6px 12px; border-radius: 100px; font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-style: normal; }
.verdict.myth { color: #7a3b32; background: #f3ddd6; }
.verdict.fact { color: #2f4a38; background: #dce8df; }
.verdict.maybe { color: #6b5420; background: #efe3c4; }
.verdict.legend { color: #4a3d2a; background: #e8dfd0; }
.know-panel { background: var(--cream); }
.know-strip { list-style: none; max-width: 1100px; margin: 36px auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.know-strip li { padding: 22px 16px; text-align: center; background: var(--paper); border: 1px solid var(--line); color: #3d453f; font: 500 16px/1.4 var(--serif); }
.quiz-panel { background: #efe8d8; }
.quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 36px auto 0; }
.quiz-card { padding: 24px 22px; background: var(--paper); box-shadow: 0 12px 30px rgba(22,36,29,.08); }
.quiz-card p { margin: 0 0 16px; color: var(--ink); font: 500 20px/1.3 var(--serif); }
.quiz-options { display: grid; gap: 8px; }
.quiz-options button { padding: 10px 14px; border: 1px solid var(--line); background: #f7f4ec; text-align: left; cursor: pointer; font-size: 14px; }
.quiz-options button:hover { border-color: var(--gold); }
.quiz-options button.right { border-color: #6d8a74; background: #dce8df; }
.quiz-options button.wrong { border-color: #c4a39a; background: #f3ddd6; }
.quiz-card.done .quiz-options button { pointer-events: none; }

.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1180px; margin: 36px auto 0; }
.explore-card { overflow: hidden; background: var(--paper); box-shadow: 0 12px 30px rgba(22,36,29,.1); }
.explore-card img { height: 210px; }
.explore-card { cursor: pointer; }
.explore-card div { padding: 18px 18px 22px; }
.explore-card h3 { margin: 0 0 8px; font: 500 26px var(--serif); }
.explore-card p { margin: 0; font-size: 14px; }
.explore-cta { margin-top: 42px; text-align: center; }
.explore-cta p { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.tour { height: 100svh; display: none; overflow: hidden; background: #f7f5ef; }
.tour.active { display: flex; flex-direction: column; animation: reveal .6s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } }
.tour-header { height: 80px; flex-shrink: 0; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
.progress-wrap { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.progress { width: 118px; height: 2px; background: #dedbd2; }
.progress i { display: block; width: 11%; height: 100%; background: var(--gold); transition: width .35s; }
.gem-hud { padding: 6px 10px; border: 1px solid var(--line); border-radius: 100px; color: #8f6d3b; background: #f3eee3; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn svg { width: 17px; fill: var(--ink); }
.icon-btn.playing { background: var(--forest); }
.icon-btn.playing svg { fill: white; }
.tour-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px 1fr; overflow: hidden; }
.sidebar { min-height: 0; padding: 28px 16px 20px 24px; display: flex; flex-direction: column; overflow: hidden; background: #f7f5ef; border-right: 1px solid var(--line); }
.sidebar h2 { margin: 0; font: 400 33px var(--serif); }
.stop-list { margin-top: 16px; display: grid; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.stop-list::-webkit-scrollbar { width: 6px; }
.stop-list::-webkit-scrollbar-thumb { background: #d4c9b0; border-radius: 100px; }
.stop { min-height: 60px; width: 100%; min-width: 0; padding: 11px 6px 11px 4px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 6px; align-items: start; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; cursor: pointer; color: #899089; }
.stop:first-child { border-top: 1px solid var(--line); }
.stop-number { padding-top: 2px; font: 12px var(--serif); color: #a79c88; }
.stop > span:nth-child(2) { min-width: 0; overflow: hidden; }
.stop strong { display: block; color: inherit; font: 400 15px/1.25 var(--serif); overflow-wrap: anywhere; }
.stop small { display: block; margin-top: 3px; font-size: 8px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.stop-arrow { padding-top: 2px; opacity: 0; }
.stop.active { color: var(--ink); background: rgba(200,162,103,.09); }
.stop.active .stop-number { color: var(--gold); }
.stop.active .stop-arrow { opacity: 1; color: var(--gold); }
.stop.visited::after { content: ""; }
.visit-tip { margin-top: 12px; flex-shrink: 0; padding: 15px; display: flex; gap: 11px; background: #ede8dc; font-size: 10px; }
.visit-tip > span { color: var(--gold); }
.visit-tip strong { font-size: 10px; }
.visit-tip p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.viewer-panel { min-width: 0; min-height: 0; height: 100%; position: relative; overflow: hidden; background: #17261f; }
#panorama { position: absolute; inset: 0; }
#panorama .pnlm-container { width: 100%; height: 100%; }
.pnlm-hotspot-base.pnlm-info { background: #c8a267; box-shadow: 0 0 0 7px rgba(200,162,103,.32); }
.tour-link { width: auto !important; height: auto !important; padding: 8px 12px; border-radius: 100px; background: rgba(13,25,19,.82) !important; border: 1px solid rgba(232,201,139,.7); box-shadow: 0 8px 22px rgba(0,0,0,.28); cursor: pointer; }
.tour-link span { display: block; color: #f4efe4; font: 600 10px/1.2 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.gem-hotspot { width: 34px !important; height: 34px !important; display: grid; place-items: center; border-radius: 50%; background: #c8a267 !important; box-shadow: 0 0 0 8px rgba(200,162,103,.28); animation: gemPulse 1.8s ease-in-out infinite; cursor: pointer; }
.gem-hotspot span { color: #2b2418; font-size: 16px; line-height: 1; }
.gem-hotspot.found { background: #efe6d4 !important; box-shadow: 0 0 0 6px rgba(255,255,255,.2); animation: none; opacity: .72; }
@keyframes gemPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(200,162,103,.22); } 50% { box-shadow: 0 0 0 12px rgba(200,162,103,.08); } }
.viewer-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,12,9,.33), transparent 26%, transparent 60%, rgba(5,12,9,.38)); }
.demo-ribbon { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 7px 14px; color: #342d21; background: #e7c78e; border-radius: 0 0 3px 3px; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.viewer-top { position: absolute; top: 25px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; }
.floor-pill, .map-btn { color: white; background: rgba(13,25,19,.72); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.22); border-radius: 100px; font-size: 10px; }
.floor-pill { padding: 9px 13px; letter-spacing: .06em; text-transform: uppercase; }
.map-btn { padding: 9px 13px; cursor: pointer; }
.map-btn span { color: var(--gold); margin-right: 5px; }
.story-card { position: absolute; left: 28px; bottom: 28px; width: min(365px, calc(100% - 56px)); padding: 25px 27px; color: var(--ink); background: rgba(250,248,242,.95); backdrop-filter: blur(14px); box-shadow: 0 18px 45px rgba(0,0,0,.24); transition: opacity .25s, transform .25s; }
.story-card.hidden { opacity: 0; transform: translateY(15px); pointer-events: none; }
.card-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; cursor: pointer; color: #8c8c84; font-size: 20px; }
.card-kicker { margin: 0 0 9px; color: #9e8151; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }
.story-card h2 { margin: 0 0 10px; font: 400 29px var(--serif); }
.story-card > p:not(.card-kicker) { margin: 0 0 14px; color: #626962; font-size: 11px; line-height: 1.65; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-btn { padding: 0; border: 0; color: #8f6d3b; background: transparent; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.text-btn span { margin-left: 7px; }
.next-stop { padding: 8px 12px; border: 1px solid #d7c7a6; border-radius: 100px; color: #3d3426; background: #f3ead6; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.next-stop:disabled { opacity: .45; cursor: default; }
.viewer-controls { position: absolute; right: 28px; bottom: 28px; display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 100px; background: rgba(13,25,19,.75); }
.viewer-controls button { width: 39px; height: 36px; border: 0; border-right: 1px solid rgba(255,255,255,.18); color: white; background: transparent; cursor: pointer; }
.viewer-controls button:last-child { border: 0; }
.drag-guide { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 11px 14px; display: flex; align-items: center; gap: 9px; border-radius: 100px; color: white; background: rgba(10,20,15,.68); backdrop-filter: blur(8px); font-size: 9px; pointer-events: none; transition: opacity .3s; }
.drag-guide.hide { opacity: 0; }
.drag-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.mobile-tabs { display: none; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(8,16,12,.72); backdrop-filter: blur(5px); }
.map-modal { width: min(820px, calc(100% - 30px)); }
.modal-head { padding: 26px 30px 18px; display: flex; align-items: start; justify-content: space-between; }
.modal-head .eyebrow { margin-bottom: 10px; }
.modal-head h2 { margin: 0; font: 38px var(--serif); }
.modal-head button, .fact-modal > button { border: 0; background: transparent; cursor: pointer; font-size: 25px; }
.floor-tabs { padding: 0 30px; display: flex; border-bottom: 1px solid var(--line); }
.floor-tabs button { padding: 12px 20px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.floor-tabs button.active { color: var(--ink); border-color: var(--gold); }
.map-content { padding: 24px 30px 26px; }
.map-list { display: grid; gap: 6px; max-height: 360px; overflow: auto; padding-right: 4px; }
.map-row { width: 100%; min-width: 0; padding: 12px 14px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--line); background: #f7f4ec; text-align: left; cursor: pointer; }
.map-row span:first-child { color: #9e8151; font: 15px var(--serif); }
.map-row span:last-child { min-width: 0; overflow: hidden; }
.map-row strong { display: block; font: 400 16px/1.25 var(--serif); overflow-wrap: anywhere; }
.map-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.map-row.active { border-color: var(--gold); background: rgba(200,162,103,.12); }
.floor-map { min-height: 300px; display: grid; place-items: center; background: #eeeadf; }
.floor-map svg { width: min(100%, 650px); max-height: 310px; }
.map-wall { fill: none; stroke: #34453b; stroke-width: 8; }
.map-room { fill: rgba(255,255,255,.35); stroke: #a8a897; stroke-width: 3; }
.map-path { fill: none; stroke: #b3ac9c; stroke-width: 3; stroke-dasharray: 8 6; }
.map-marker { cursor: pointer; }
.map-marker circle { fill: var(--paper); stroke: var(--forest); stroke-width: 2; }
.map-marker text { fill: var(--forest); text-anchor: middle; dominant-baseline: central; font: 11px var(--sans); }
.map-marker.active circle { fill: var(--gold); stroke: var(--gold); }
.map-marker.active text { fill: white; }
.map-legend { padding-top: 14px; display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 9px; }
.map-legend p { margin-right: auto; color: var(--ink); font: 18px var(--serif); }
.map-legend i { width: 8px; height: 8px; margin-right: 5px; display: inline-block; border-radius: 50%; }
.you-are-here { background: var(--gold); }
.other-stop { border: 1px solid var(--forest); }
.fact-modal { width: min(440px, calc(100% - 30px)); padding: 40px; text-align: center; }
.fact-modal > button { position: absolute; top: 12px; right: 14px; }
.fact-icon { width: 42px; height: 42px; margin: 0 auto 14px; display: grid; place-items: center; color: white; background: var(--gold); border-radius: 50%; }
.fact-modal > p:first-of-type { color: #9e8151; font-size: 9px; text-transform: uppercase; letter-spacing: .2em; }
.fact-modal h2 { margin: 10px 0; font: 31px var(--serif); }
.fact-modal #factText { color: var(--muted); font-size: 12px; line-height: 1.7; }
.primary-btn.compact { margin-top: 13px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 10px 15px; color: white; background: var(--ink); border-radius: 3px; opacity: 0; pointer-events: none; font-size: 10px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .panel-grid, .panel-grid.reverse { grid-template-columns: 1fr; }
  .photo-frame.tall img { height: 360px; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .explore-grid, .mystery-grid, .quiz-grid { grid-template-columns: 1fr 1fr; }
  .know-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 16px; }
  .menu-btn { display: grid; place-items: center; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 12px 16px 18px;
    flex-direction: column; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .hero { min-height: 100svh; }
  .hero-copy { padding: 0 20px 100px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero-sub { font-size: 15px; }
  .panel { padding: 56px 20px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .explore-grid, .mystery-grid, .quiz-grid, .know-strip { grid-template-columns: 1fr; }
  .explore-card img, .mystery-card img { height: 240px; }
  .myth-list li { flex-direction: column; align-items: flex-start; }
  .portrait-wrap { max-width: 280px; }
  .tour-header { height: 66px; padding: 0 16px; }
  .tour-header .brand small, .progress, #progressText { display: none; }
  .progress-wrap { display: flex; }
  .tour-header .brand-mark { width: 36px; height: 36px; }
  .tour-layout { flex: 1; min-height: 0; display: block; }
  .sidebar { position: fixed; z-index: 20; left: 0; right: 0; top: 66px; bottom: 64px; padding: 28px 20px; border: 0; transform: translateX(-105%); transition: transform .3s; }
  .sidebar.mobile-open { transform: none; }
  .visit-tip { margin-top: 16px; flex-shrink: 0; }
  .viewer-panel { height: 100%; min-height: 0; }
  .viewer-top { top: 18px; left: 16px; right: 16px; }
  .demo-ribbon { top: auto; bottom: 0; width: 100%; text-align: center; border-radius: 0; }
  .story-card { left: 16px; bottom: 59px; width: calc(100% - 32px); padding: 21px; }
  .story-card h2 { font-size: 25px; }
  .viewer-controls { right: 16px; bottom: 16px; }
  .story-card:not(.hidden) ~ .viewer-controls { opacity: 0; pointer-events: none; }
  .mobile-tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(3,1fr); background: var(--paper); border-top: 1px solid var(--line); }
  .mobile-tabs button { border: 0; color: #939790; background: transparent; font-size: 18px; }
  .mobile-tabs span { display: block; margin-top: 3px; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
  .mobile-tabs button.active { color: var(--gold); }
  .map-content { padding: 15px; }
  .map-legend { flex-wrap: wrap; gap: 8px 15px; }
  .map-legend p { width: 100%; margin: 0; }
}

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