:root {
  color-scheme: dark;
  --bg: #06091a;
  --cyan: #63ecff;
  --muted: #b6c3df;
  --line: #82a9ff44;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #f4f7ff; background: radial-gradient(ellipse at 90% 46%, #20134a, transparent 38%), var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1140px, 90%); margin-inline: auto; }
.top { position: fixed; z-index: 5; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .7rem 5%; background: #06091ad9; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 900; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
nav, .links { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.15rem; }
nav a:hover, .down:hover { color: var(--cyan); }
.top button, .links a { border: 1px solid var(--line); background: #101833ef; padding: .65rem .9rem; border-radius: .55rem; font-weight: 700; white-space: nowrap; }
.links a:first-child { color: #061121; background: var(--cyan); }
.links a:hover, .top button:hover { border-color: var(--cyan); box-shadow: 0 0 16px #55d7ff60; }
.hero { min-height: 100svh; display: grid; align-items: center; position: relative; background: #0d1942 url(images/hero.png) center 43% / cover; isolation: isolate; padding: 7rem 0 5rem; }
.hero video, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero video { object-fit: cover; z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(0deg, var(--bg), transparent 45%), linear-gradient(90deg,#06091af5 2%,#06091a7d 56%,#06091a12); }
h1, h2, h3 { margin: 0; line-height: .95; }
h1, h2 { text-transform: uppercase; font-weight: 950; letter-spacing: -.055em; }
h1 { font-size: clamp(5rem,13vw,11rem); }
h1 span { color: var(--cyan); text-shadow: 0 0 38px #45bcff88; }
h2 { font-size: clamp(2.5rem,7vw,6rem); margin-bottom: 1.2rem; }
h3 { line-height: 1.15; }
p { color: var(--muted); }
.hero p { font-size: 1.3rem; color: white; }
.down { display: inline-block; margin-top: 2rem; color: #dce6ff; }
section:not(.hero) { padding: clamp(3.5rem,9vw,8rem) 0; scroll-margin-top: 45px; }
.lore { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; overflow: hidden; }
.lore img { display: block; width: 94%; height: auto; }
.lore p { font-size: 1.15rem; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.steps article { border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; background: linear-gradient(130deg,#152753,#101124); }
.steps h3 { color: var(--cyan); }
#gallery { margin-top: 4rem; scroll-margin-top: 110px; }
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; }
.gallery a { overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.05); }
.chart { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #0c142c; box-shadow: 0 0 36px #499fff26; margin-bottom: 1.5rem; }
.chart p { padding: 0 1rem; }
.chart iframe { display: block; width: 100%; height: clamp(450px,65vh,720px); border: 0; }
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.2rem; }
#audio-status { position: fixed; z-index: 6; right: 1rem; bottom: 1rem; padding: .8rem; background: #11192e; border: 1px solid var(--line); }
@media (max-width: 680px) {
  .top { flex-wrap: wrap; }
  nav { order: 3; width: 100%; font-size: .88rem; }
  section:not(.hero), #gallery { scroll-margin-top: 102px; }
  .lore, .steps { grid-template-columns: 1fr; }
  .lore img { max-width: 410px; margin: auto; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .hero { background-position: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero video { display: none; }
  .gallery img { transition: none; }
}
