:root {
  --ink: #f4f7fb;
  --muted: #9aa7b8;
  --panel: #0b111a;
  --panel-2: #101927;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2388ff;
  --blue-soft: rgba(35, 136, 255, 0.16);
  --green: #46eaa0;
}

* { box-sizing: border-box; }
html { background: #05090f; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 65% 10%, #10223c 0, #070c13 33%, #05090f 70%); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.access { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: linear-gradient(90deg, rgba(3,7,12,.92), rgba(3,7,12,.58)), url('./assets/xma-bowl.jpg?v=cinematic-real3d-2') center/cover; transition: opacity .5s ease, visibility .5s ease; }
.access.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.access-card { width: min(620px, 100%); padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(255,255,255,.14); background: rgba(7,12,20,.88); backdrop-filter: blur(18px); box-shadow: 0 32px 100px rgba(0,0,0,.5); }
.access-logos, .brand-lockup { display: flex; align-items: center; gap: 16px; }
.access-logos img, .brand-lockup img { width: 86px; height: auto; object-fit: contain; }
.access-logos .xma-mark { width: 160px; }
.access h1 { margin: 14px 0 18px; font-size: clamp(42px, 7vw, 76px); line-height: .95; letter-spacing: -.055em; }
.access p:not(.eyebrow):not(.gate-error) { max-width: 520px; color: #bdc7d4; font-size: 17px; line-height: 1.6; }
.access label { display: block; margin: 26px 0 9px; color: #aab5c3; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.gate-row { display: flex; gap: 9px; }
.gate-row input { flex: 1; min-width: 0; padding: 15px 16px; color: white; border: 1px solid var(--line); border-radius: 3px; outline: none; background: rgba(255,255,255,.06); text-transform: uppercase; letter-spacing: .08em; }
.gate-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.gate-row button, .toolbar-actions button, .toolbar-actions a, .closing-actions button, .closing-actions a { padding: 13px 16px; color: white; border: 1px solid rgba(255,255,255,.14); border-radius: 3px; background: rgba(255,255,255,.06); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.gate-row button { border-color: var(--blue); background: var(--blue); font-weight: 700; }
.gate-row button:hover, .toolbar-actions button:hover, .toolbar-actions a:hover, .closing-actions button:hover, .closing-actions a:hover { transform: translateY(-1px); border-color: var(--blue); }
.gate-error { min-height: 18px; margin: 8px 0; color: #ff8a8a; font-size: 13px; }
.access small { color: #728094; }

#app { min-height: 100vh; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(5,9,15,.82); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 30; }
.brand-lockup img { width: 72px; }
.brand-lockup .xma-mark { width: 122px; max-height: 34px; }
.brand-divider { width: 1px; height: 26px; background: rgba(255,255,255,.18); }
.top-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 100%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.internal-pill { margin-left: 10px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.14); color: white; }

.hero { min-height: 390px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 60px; padding: 80px 4vw 56px; }
.eyebrow, .toolbar-kicker { margin: 0 0 12px; color: #73b8ff; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(54px, 8vw, 116px); line-height: .85; letter-spacing: -.065em; }
.hero h1 em { color: #7dbdff; font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 520px; margin: 0 0 7px; color: #aab7c7; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.55; }

.workspace { width: calc(100% - 40px); min-height: 760px; margin: 0 auto; display: grid; grid-template-columns: 290px minmax(480px, 1fr) 340px; overflow: hidden; border: 1px solid var(--line); background: #080d14; box-shadow: 0 40px 120px rgba(0,0,0,.38); }
.control-panel, .detail-panel { background: var(--panel); }
.control-panel { padding: 20px 16px; border-right: 1px solid var(--line); }
.panel-heading, .map-toolbar { display: flex; align-items: center; justify-content: space-between; }
.panel-heading > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.icon-button { width: 30px; height: 30px; color: white; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.scenario-block { margin: 28px 0 22px; }
.scenario-block label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.scenario-block select { width: 100%; padding: 12px; color: white; border: 1px solid var(--line); border-radius: 3px; outline: none; background: #111c2a; }
.zone-list { display: grid; gap: 8px; }
.zone-button { width: 100%; display: grid; grid-template-columns: 32px 1fr 12px; align-items: center; gap: 10px; padding: 13px 10px; color: #c8d2df; border: 1px solid transparent; border-radius: 4px; background: transparent; text-align: left; cursor: pointer; }
.zone-button:hover { background: rgba(255,255,255,.04); }
.zone-button.is-active { color: white; border-color: rgba(35,136,255,.4); background: var(--blue-soft); }
.zone-num { color: #6d7b8f; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.zone-label { font-size: 13px; font-weight: 650; }
.zone-arrow { color: #5f7086; }
.source-note { margin-top: 30px; padding: 16px; border-left: 2px solid var(--blue); background: rgba(35,136,255,.07); }
.source-note span { color: #80bdff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.source-note p { margin: 8px 0 0; color: #8f9cad; font-size: 12px; line-height: 1.5; }
.level-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.level-block > div:first-child { display: flex; align-items: center; justify-content: space-between; color: #8fa0b4; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.level-block button { color: #7bbcff; border: 0; background: transparent; font-size: 10px; cursor: pointer; }
.level-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 10px; }
.level-grid button { padding: 8px 3px; color: #90a0b5; border: 1px solid var(--line); background: #0c1520; font: 10px ui-monospace, monospace; cursor: pointer; }
.level-grid button.is-active { color: white; border-color: var(--blue); background: var(--blue-soft); }

.map-stage { min-width: 0; display: flex; flex-direction: column; background: #111822; }
.map-toolbar { min-height: 72px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); background: #0b121c; }
.map-toolbar strong { display: block; font-size: 15px; }
.toolbar-kicker { margin: 0 0 3px; font-size: 9px; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; }
.toolbar-actions button, .toolbar-actions a { padding: 9px 11px; font-size: 11px; }
.map-shell { position: relative; flex: 1; min-height: 610px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #172638, #060a10 72%); }
.map-shell canvas { width: 100%; height: 100%; min-height: 610px; display: block; cursor: grab; }
.map-shell canvas:active { cursor: grabbing; }
.model-overlay { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.model-overlay span { padding: 8px 10px; color: #aebdce; border: 1px solid var(--line); background: rgba(5,10,17,.76); backdrop-filter: blur(10px); font-size: 9px; letter-spacing: .04em; }
.marker-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.venue-marker { position: absolute; transform: translate(-50%,-50%); padding: 5px 7px; color: white; border: 1px solid currentColor; background: rgba(5,13,23,.86); box-shadow: 0 5px 16px rgba(0,0,0,.25); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; pointer-events: auto; cursor: pointer; }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #5d6c7f; background: #e8edf2; transition: opacity .45s, visibility .45s; pointer-events: none; }
.map-loading.is-hidden { opacity: 0; visibility: hidden; }
.loader-ring { width: 34px; height: 34px; border: 2px solid #c4cfda; border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-caption { margin: 0; padding: 11px 18px; color: #8795a6; background: #0b121c; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.45; }

.detail-panel { border-left: 1px solid var(--line); }
.detail-image-wrap { position: relative; height: 240px; overflow: hidden; background: #111; }
.detail-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.verified-badge { position: absolute; left: 12px; bottom: 12px; padding: 6px 8px; color: #dcefff; background: rgba(4,10,18,.84); border: 1px solid rgba(255,255,255,.16); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; backdrop-filter: blur(8px); }
.detail-body { padding: 26px 24px; }
.detail-body h2 { margin: 5px 0 14px; font-size: 30px; letter-spacing: -.035em; }
.detail-body > p:not(.eyebrow):not(.meeting-line) { color: #a3afbe; font-size: 14px; line-height: 1.65; }
.detail-body dl { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-body dl div { padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.detail-body dt { color: #7e8b9b; font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.detail-body dd { margin: 6px 0 0; color: white; font-size: 13px; font-weight: 650; }
.meeting-line { margin: 22px 0; padding: 16px; color: #d7e2ef; background: var(--blue-soft); border-left: 2px solid var(--blue); font-size: 13px; line-height: 1.5; }
.meeting-line span:first-child { color: #76baff; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.detail-body a { color: #79baff; font-size: 12px; text-decoration: none; }

.proof-strip { width: calc(100% - 40px); margin: 22px auto 0; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.proof-strip > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.proof-strip > div:nth-child(4) { border-right: 0; }
.proof-strip span { display: block; margin-bottom: 8px; color: #758396; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.proof-strip strong { font-size: 16px; }
.proof-strip > p { grid-column: 1/-1; margin: 0; padding: 10px 24px; color: #657386; border-top: 1px solid var(--line); font-size: 10px; }
.closing { min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px 25px; text-align: center; }
.closing h2 { max-width: 1000px; margin: 15px auto 34px; font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -.055em; }
.closing-actions { display: flex; gap: 10px; }
.closing-actions button:first-child { background: var(--blue); border-color: var(--blue); }
footer { display: flex; justify-content: space-between; padding: 24px 30px; color: #657386; border-top: 1px solid var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.expand-panel, .exit-present { display: none; position: fixed; z-index: 45; color: white; border: 1px solid rgba(255,255,255,.2); background: rgba(7,12,20,.9); backdrop-filter: blur(10px); cursor: pointer; }
.expand-panel { left: 12px; top: 92px; padding: 10px 13px; }
.exit-present { right: 18px; top: 18px; padding: 12px 15px; }
body.panel-collapsed .workspace { grid-template-columns: minmax(560px, 1fr) 340px; }
body.panel-collapsed .control-panel { display: none; }
body.panel-collapsed .expand-panel { display: block; }
body.presenting { overflow: hidden; }
body.presenting .topbar, body.presenting .hero, body.presenting .control-panel, body.presenting .detail-panel, body.presenting .proof-strip, body.presenting .closing, body.presenting footer, body.presenting .map-toolbar, body.presenting .map-caption { display: none; }
body.presenting .workspace { position: fixed; inset: 0; z-index: 40; width: 100%; height: 100vh; min-height: 0; margin: 0; display: block; border: 0; }
body.presenting .map-stage, body.presenting .map-shell, body.presenting .map-shell canvas { height: 100%; min-height: 100%; }
body.presenting .exit-present { display: block; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 245px minmax(480px, 1fr); }
  .detail-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 380px 1fr; border-top: 1px solid var(--line); border-left: 0; }
  .detail-image-wrap { height: 100%; min-height: 340px; }
  .detail-body dl { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 16px; }
  .brand-lockup img { width: 54px; }
  .brand-lockup .xma-mark { width: 92px; }
  .top-meta > span:nth-child(2) { display: none; }
  .hero { min-height: 330px; display: block; padding: 56px 18px 38px; }
  .hero h1 { font-size: 58px; }
  .hero-copy { margin-top: 30px; font-size: 16px; }
  .workspace { width: calc(100% - 18px); display: flex; flex-direction: column; }
  .control-panel { order: 2; border-top: 1px solid var(--line); border-right: 0; }
  .map-stage { order: 1; }
  .detail-panel { order: 3; display: block; }
  .map-toolbar { align-items: flex-start; gap: 12px; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar-actions a { grid-column: 1/-1; text-align: center; }
  .map-shell, .map-shell canvas { min-height: 620px; }
  .map-caption { font-size: 9px; }
  .detail-image-wrap { height: 260px; min-height: 0; }
  .detail-body dl { grid-template-columns: 1fr 1fr; }
  .proof-strip { width: calc(100% - 18px); grid-template-columns: 1fr 1fr; }
  .proof-strip > div { padding: 20px 16px; border-bottom: 1px solid var(--line); }
  .proof-strip > div:nth-child(2) { border-right: 0; }
  .proof-strip > div:nth-child(3), .proof-strip > div:nth-child(4) { border-bottom: 0; }
  .closing { min-height: 440px; }
  .closing-actions { flex-direction: column; width: 100%; max-width: 320px; }
  footer { display: grid; gap: 9px; padding: 20px 16px; }
  .gate-row { display: grid; }
  .access-card { padding: 28px 22px; }
  .access h1 { font-size: 47px; }
  body.panel-collapsed .workspace { display: flex; }
  body.panel-collapsed .control-panel { display: none; }
}

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