/* The investor briefing. Dark, editorial, and mostly transparent: the 3D
 * scene is a fixed canvas behind everything, and the chapters scroll over it
 * on glass panels. Brand colours are AMDana's own (see logo-lockup.svg). */
:root {
  --bg: #040918;
  --navy: #02215D;
  --blue: #0554FB;
  --violet: #8B5CF6;
  --amber: #FFB020;
  --teal: #14B8A6;
  --ink: #F4F6FF;
  --ink-2: #C3CBE6;
  --ink-3: #8A94B8;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --glass: rgba(7, 12, 32, .66);
  --glass-2: rgba(12, 18, 44, .78);
  --display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
/* Several panels set their own display; the hidden attribute must still win. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0 0 .5em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.9rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-weight: 600; max-width: 24ch; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }
.grad {
  background: linear-gradient(92deg, #FFD37A 0%, var(--amber) 35%, #C4B5FD 75%, #7DD3FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--amber); margin: 0 0 .9em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.eyebrow em { font-style: italic; }
.eyebrow.small { font-size: 1rem; margin-bottom: .4em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 62ch; color: var(--ink-2); }
.sub { max-width: 60ch; }
.tiny { font-size: .82rem; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: .9em; }
.mt { margin-top: 3rem; }
.mt0 { margin-top: 0; }
.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #111; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* The stage and its veil. */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(4, 9, 24, .92) 0%, rgba(4, 9, 24, .35) 45%, transparent 70%),
    linear-gradient(180deg, rgba(4, 9, 24, .55) 0%, transparent 18%, transparent 82%, rgba(4, 9, 24, .7) 100%),
    linear-gradient(90deg, rgba(4, 9, 24, .5) 0%, rgba(4, 9, 24, .2) 40%, transparent 60%);
}
body.no-webgl #stage { display: none; }
body.no-webgl { background: radial-gradient(90% 70% at 70% 20%, #1c1147 0%, #071a4a 45%, var(--bg) 100%) fixed; }
.fallback { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3; background: var(--glass-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-size: .9rem; }
.fallback p { margin: 0; }

/* Chrome. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; padding: 12px 22px;
  background: linear-gradient(180deg, rgba(4, 9, 24, .85), rgba(4, 9, 24, .35));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup { height: 30px; width: auto; display: block; }
.brand-tag { font-family: var(--serif); font-style: italic; color: var(--amber); font-size: 1.05rem; }
.toplinks { margin-left: auto; display: flex; gap: 22px; }
.toplinks a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.toplinks a:hover { color: var(--ink); }
.topbar .btn.small { margin-left: 6px; }

.dots {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 15;
  display: flex; flex-direction: column; gap: 12px;
}
.dots a { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .25); display: block; position: relative; transition: transform .2s, background .2s; }
.dots a:hover, .dots a:focus { background: rgba(255, 255, 255, .6); }
.dots a.on { background: var(--amber); border-color: var(--amber); transform: scale(1.25); }
.dots a span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .78rem; color: var(--ink-2); opacity: 0; pointer-events: none; transition: opacity .15s; background: var(--glass-2); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); }
.dots a:hover span, .dots a:focus span, .dots a.on span { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: 600 .98rem var(--display);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  color: var(--ink); background: transparent;
}
.btn.primary { background: var(--amber); color: #15120A; border-color: var(--amber); box-shadow: 0 10px 30px rgba(255, 176, 32, .25); }
.btn.primary:hover { background: #FFC24D; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.btn.small { padding: 9px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* Chapters. */
/* The chapters float over the scene, so they must not swallow the pointer:
 * only their actual content takes events, and the gaps reach the canvas. */
main { position: relative; z-index: 2; pointer-events: none; }
.wrap > * { pointer-events: auto; }
.chapter { min-height: 100vh; display: grid; align-items: center; padding: 16vh 0 10vh; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px 0 64px; }
.wrap.narrow { max-width: 900px; }
.glass { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card { padding: 22px 24px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
/* Prose columns get a soft backing so a paragraph never has to compete with
 * whatever the camera is looking at behind it. */
.split > div:first-child { padding: 26px 28px; border-radius: 20px; background: rgba(7, 12, 32, .52); border: 1px solid rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Hero. */
.hero .wrap { max-width: 1240px; }
.hero h1 { text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 40px; }
.cta-row.center { justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 980px; }
.stat { padding: 16px 18px; background: rgba(7, 12, 32, .55); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); }
.stat b { display: block; font: 700 2rem/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.stat b small { font-size: .55em; color: var(--amber); margin-left: 2px; }
.stat span { display: block; font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
.stat em { display: block; font-style: normal; font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.hint { margin-top: 30px; font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 500 .74rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: rgba(20, 184, 166, .12); border: 1px solid rgba(20, 184, 166, .4); padding: 4px 10px; border-radius: 999px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); }

/* Market figures. */
.market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.market .fig { padding: 20px 22px; }
.market .fig b { display: block; font: 700 1.9rem/1.05 var(--display); color: var(--amber); letter-spacing: -.02em; }
.market .fig span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.market .fig a { display: block; margin-top: 10px; font-size: .78rem; color: var(--ink-3); }

/* Explorer. */
.explorer .wrap { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; }
.panel { padding: 26px 26px 20px; transition: opacity .35s, transform .35s; }
.explorer.focused .panel { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.panel h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.districts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 14px; }
.district { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink); font: 500 .9rem var(--body); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.district:hover, .district:focus-visible { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); outline: none; }
.district.on { border-color: var(--amber); background: rgba(255, 176, 32, .12); }
.district i { width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: 0 0 12px currentColor; }

/* The district panel. */
.hud { position: fixed; right: 22px; top: 88px; width: min(420px, calc(100vw - 44px)); max-height: calc(100vh - 120px); overflow: auto; z-index: 18; padding: 22px 24px 18px; }
.hud .x, .concierge .x { position: absolute; right: 10px; top: 8px; background: transparent; border: 0; color: var(--ink-2); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 6px 8px; }
.hud h3 { font-size: 1.35rem; margin: 0 0 .2em; }
.hud-tag { font-family: var(--serif); font-style: italic; color: var(--amber); font-size: 1.1rem; margin-bottom: .8em; }
.hud ul { margin: 0 0 16px; padding: 0; list-style: none; }
.hud li { position: relative; padding-left: 18px; margin: 0 0 10px; font-size: .92rem; color: var(--ink-2); }
.hud li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--hud-color, var(--amber)); box-shadow: 0 0 10px var(--hud-color, var(--amber)); }
.hud-actions { display: flex; gap: 8px; justify-content: space-between; }

/* Story. */
.sim .wrap { display: grid; align-items: end; min-height: 70vh; }
.story { max-width: 600px; padding: 24px 26px 22px; }
.story h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.story-progress { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 16px; }
.story-progress button { height: 6px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, .18); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.story-progress button.done { background: rgba(255, 176, 32, .55); }
.story-progress button.on { background: rgba(255, 255, 255, .25); }
.story-progress button.on::after { content: ''; position: absolute; inset: 0; width: var(--p, 0%); background: var(--amber); transition: width .2s linear; }
.story-time { font: 600 .8rem var(--mono); color: var(--teal); letter-spacing: .08em; }
.story-caption h3 { font-size: 1.25rem; margin: .2em 0 .35em; }
.story-caption p { margin: 0; min-height: 4.8em; }
.story-controls { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.story-controls .primary { flex: 1; }

/* AI record card. */
.record { padding: 20px 22px; font-size: .92rem; }
.rec-head { display: flex; gap: 8px; margin-bottom: 14px; }
.pill { font: 600 .74rem var(--mono); padding: 4px 9px; border-radius: 999px; background: rgba(139, 92, 246, .18); border: 1px solid rgba(139, 92, 246, .45); color: #DDD6FE; }
.pill.amber { background: rgba(255, 176, 32, .14); border-color: rgba(255, 176, 32, .5); color: #FFE0A3; }
.record dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.record dt { color: var(--ink-3); }
.record dd { margin: 0; color: var(--ink); }

/* Trust / why. */
.tile { padding: 20px 22px; }
.tile h3 { font-size: 1.02rem; margin: 0 0 .4em; }
.tile p { margin: 0; font-size: .92rem; }
.tile .n { font: 700 .8rem var(--mono); color: var(--amber); display: block; margin-bottom: 10px; letter-spacing: .08em; }

/* Plans. */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.plan { padding: 20px 20px 18px; position: relative; }
.plan.hot { border-color: rgba(255, 176, 32, .55); box-shadow: 0 0 0 1px rgba(255, 176, 32, .25), var(--shadow); }
.plan .name { font: 600 1rem var(--display); color: var(--ink-2); }
.plan .price { font: 700 2rem/1.1 var(--display); margin: 6px 0 2px; letter-spacing: -.02em; }
.plan .term { font-size: .82rem; color: var(--ink-3); margin-bottom: 12px; }
.plan .limits { font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; }
.plan .feat { font-size: .86rem; color: var(--ink-3); margin: 0; }
.stream { padding: 18px 20px; }
.stream h3 { font-size: 1rem; margin: 0 0 .4em; }
.stream p { margin: 0; font-size: .9rem; }

/* Allocation & targets. */
.allocation { margin-top: 18px; display: grid; gap: 10px; }
.alloc { display: grid; grid-template-columns: 1fr; gap: 6px; }
.alloc .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.alloc .row b { font-family: var(--display); }
.alloc .row span { font: 600 .85rem var(--mono); color: var(--amber); }
.alloc .bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.alloc .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--blue), var(--violet)); border-radius: 5px; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.alloc.reveal .bar i { width: 0; }
.alloc p { font-size: .86rem; margin: 0; color: var(--ink-3); }
.targets { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.targets li { position: relative; padding: 14px 18px 14px 58px; margin-bottom: 10px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; }
.targets li::before { counter-increment: t; content: counter(t); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 176, 32, .15); border: 1px solid rgba(255, 176, 32, .5); color: var(--amber); font: 700 .85rem var(--display); }
.targets small { display: block; color: var(--amber); font: 600 .74rem var(--mono); letter-spacing: .08em; margin-bottom: 4px; }
.targets span { color: var(--ink-2); font-size: .92rem; }

.foot { padding: 20px 0 60px; }
.foot a { color: var(--ink-2); }
.foot .tiny { max-width: 90ch; }

/* Concierge. */
.concierge-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 176, 32, .6); background: linear-gradient(135deg, #1B1147, #0A2C7A); color: var(--ink); font: 600 .95rem var(--display); cursor: pointer; box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.concierge-toggle .spark { color: var(--amber); }
.concierge-toggle:hover { transform: translateY(-1px); }
.concierge { position: fixed; right: 22px; bottom: 84px; z-index: 26; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; }
.c-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); position: relative; }
.c-head b { display: block; font-family: var(--display); }
.c-head small { display: block; color: var(--ink-3); font-size: .78rem; }
.c-log { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.msg.you { align-self: flex-end; background: rgba(255, 176, 32, .16); border: 1px solid rgba(255, 176, 32, .35); color: var(--ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.msg.bot .src { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: .78rem; color: var(--ink-3); }
.msg.bot .src button { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .78rem; cursor: pointer; }
.msg.bot .src button:hover { border-color: var(--amber); color: var(--amber); }
.msg.bot.model { border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .1); }
.msg.bot.thinking { color: var(--ink-3); font-style: italic; }
.c-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.c-chips button { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 5px 10px; font-size: .78rem; cursor: pointer; }
.c-chips button:hover { border-color: var(--amber); color: var(--ink); }
.c-form { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.c-form input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 10px 14px; font: .92rem var(--body); }
.c-form input:focus { outline: none; border-color: var(--amber); }

.announce { position: absolute; left: -9999px; }

/* Responsive. */
@media (max-width: 1080px) {
  .cols, .grid3 { grid-template-columns: 1fr 1fr; }
  .grid4, .plans { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .explorer .wrap { grid-template-columns: 1fr; }
  .toplinks { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px 0 40px; }
  .dots { left: 10px; }
  .dots a span { display: none; }
  .cols, .grid3, .grid4, .plans, .market { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 1.6rem; }
  .districts { grid-template-columns: 1fr; }
  .hud { right: 0; left: 0; top: auto; bottom: 0; width: auto; max-height: 70vh; border-radius: var(--r) var(--r) 0 0; }
  .concierge { right: 8px; left: 8px; width: auto; bottom: 78px; height: min(560px, calc(100vh - 100px)); }
  .concierge-toggle { padding: 12px 15px; right: 14px; bottom: 14px; }
  .concierge-toggle .lbl { display: none; }
  .concierge-toggle[aria-expanded="true"] .lbl { display: inline; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand-tag { display: none; }
  .chapter { padding: 14vh 0 8vh; }
  .story-progress { grid-template-columns: repeat(7, 1fr); }
  .story-controls .small { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
