@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #07111f;
  --panel: #0c1b2d;
  --panel-strong: #11263b;
  --brand: #075b8c;
  --brand-deep: #174272;
  --sky: #58aedd;
  --sky-soft: #bfe4f5;
  --silver: #a6a4a7;
  --line: #2a4961;
  --paper: #edf4f7;
  --muted: #a8bfcc;
  --signal: #58aedd;
  --amber: #ffb44b;
  --danger: #ff6d61;
  --display: 'Manrope', 'Arial', sans-serif;
  --mono: 'DM Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); color-scheme: dark; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--display); overflow-x: hidden; }
::selection { background: var(--signal); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--brand-deep); border: 3px solid var(--ink); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky); }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 5px; }

.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 14px; background: var(--signal); color: var(--ink); transform: translateY(-160%); z-index: 30; font: 12px var(--mono); }
.skip-link:focus { transform: translateY(0); }

.topbar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 4vw; border-bottom: 1px solid rgba(40, 65, 88, .65); background: rgba(7, 17, 31, .85); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 1px solid rgba(88,174,221,.62); border-radius: 5px; background: #fff; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-divider { width: 1px; height: 24px; background: var(--line); }
.brand-name { color: var(--muted); font: 10px/1.35 var(--mono); letter-spacing: .04em; }
.topbar-status { color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px rgba(82, 214, 255, .75); vertical-align: 1px; }
.status-slash { color: var(--line); padding: 0 9px; }
.contact-link { padding: 12px 0; color: var(--signal); font: 11px var(--mono); letter-spacing: .08em; border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.contact-link:hover { border-color: var(--signal); }

.journey { position: relative; }
.hero-screen, .end-screen { position: relative; min-height: 100svh; padding: 18vh 8vw 10vh; display: flex; align-items: center; overflow: hidden; }
.hero-screen { background: radial-gradient(circle at 67% 39%, rgba(7, 91, 140, .28), transparent 35%), var(--ink); }
.hero-screen::before, .end-screen::before { content: ''; position: absolute; inset: 76px 0 0; opacity: .22; background-image: linear-gradient(rgba(82, 214, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 214, 255, .08) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(90deg, black, transparent 78%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 1300px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: var(--signal); font: 11px var(--mono); letter-spacing: .15em; }
.eyebrow-line { width: 42px; height: 1px; background: currentColor; }
.eyebrow-index { margin-left: auto; color: var(--muted); }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.06em; line-height: .96; text-transform: uppercase; }
h1 { max-width: 1300px; font-size: clamp(3rem, 5vw, 5.4rem); }
h1 em, h2 em { color: var(--signal); font-style: normal; }
.hero-lede { max-width: 42ch; margin: 34px 0 40px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; }
.primary-cta { display: inline-flex; gap: 20px; align-items: center; padding: 14px 16px; border: 1px solid var(--signal); background: var(--signal); color: var(--ink); font: 11px var(--mono); font-weight: 500; letter-spacing: .08em; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease; }
.primary-cta:hover { transform: translateY(-3px); background: transparent; color: var(--signal); }
.primary-cta span { font-size: 16px; line-height: 0; }
.hero-note { position: absolute; right: 8vw; bottom: 9vh; display: flex; gap: 18px; align-items: center; color: var(--muted); font: 10px var(--mono); letter-spacing: .16em; writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 88px; background: linear-gradient(var(--signal), transparent); }

.stage-shell { position: sticky; top: 0; z-index: 3; height: 100svh; min-height: 680px; margin-top: -1px; overflow: hidden; background: var(--ink); }
.stage-grid { position: absolute; z-index: 2; inset: 0; opacity: .35; background-image: linear-gradient(rgba(82,214,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(82,214,255,.08) 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 83%, transparent 100%); pointer-events: none; }
.stage-vignette { position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.46) 25%, transparent 44%, transparent 69%, rgba(7,17,31,.88) 100%), linear-gradient(0deg, rgba(7,17,31,.82), transparent 35%, rgba(7,17,31,.12)); pointer-events: none; }
.stage-images { position: absolute; inset: 76px 17vw 64px 4vw; overflow: hidden; background: #e7edf0; }
.stage-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: saturate(.86) contrast(1.02); transition: opacity .72s ease; }
.stage-image.is-visible { opacity: 1; }
.stage-hud { position: absolute; z-index: 5; display: flex; gap: 12px; align-items: center; color: var(--muted); font: 9px var(--mono); letter-spacing: .13em; }
.top-hud { top: 96px; left: 5vw; }
.bottom-hud { left: 5vw; bottom: 92px; }
.hud-label { color: var(--signal); }
.hud-value { color: var(--paper); }

.info-panel { position: absolute; z-index: 6; left: 5vw; bottom: 13%; width: min(350px, 29vw); padding: 18px 0 0; border-top: 1px solid var(--signal); }
.panel-topline, .panel-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.panel-status { color: var(--signal); }
.info-panel h2 { margin: 17px 0 20px; font-size: clamp(2.5rem, 4vw, 4.4rem); }
.panel-question { margin: 0 0 20px; color: var(--signal); font-size: 15px; font-weight: 600; line-height: 1.35; }
.panel-description { max-width: 34ch; margin: 0 0 25px; color: var(--paper); font-size: 13px; line-height: 1.62; }
.panel-meta { gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 8px; }
.panel-action { display: flex; justify-content: space-between; width: 100%; padding: 14px 0 0; border: 0; background: transparent; color: var(--signal); cursor: pointer; font: 10px var(--mono); letter-spacing: .08em; text-align: left; }
.panel-action:hover { color: var(--paper); }

.service-rail { position: absolute; z-index: 6; top: 16%; right: 4vw; width: min(265px, 21vw); }
.rail-heading, .rail-footer { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 9px var(--mono); letter-spacing: .14em; }
.rail-heading-line { flex: 1; height: 1px; background: var(--line); }
.service-list { display: grid; gap: 0; margin-top: 16px; }
.service-button { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: 100%; min-height: 60px; padding: 13px 10px; border: 0; border-bottom: 1px solid rgba(42,73,97,.7); background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: color .3s ease, background .3s ease; }
.service-button::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--signal); transform: scaleY(0); transform-origin: bottom; transition: transform .3s ease; }
.service-button:hover, .service-button.is-active { background: rgba(88,174,221,.12); color: var(--paper); }
.service-button.is-active::before { transform: scaleY(1); }
.service-number { color: var(--signal); font: 10px var(--mono); }
.service-name { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.service-detail { display: block; margin-top: 4px; color: var(--muted); font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.rail-footer { margin-top: 22px; color: var(--line); }
.rail-footer-line { width: 32px; height: 1px; background: var(--line); }

.step-row { position: absolute; z-index: 7; right: 5vw; bottom: 5%; left: 5vw; display: flex; align-items: center; gap: 26px; }
.step-row-title { min-width: 94px; color: var(--muted); font: 9px var(--mono); letter-spacing: .14em; }
.step-row-title span { display: block; margin-top: 6px; color: var(--signal); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); width: min(580px, 48vw); }
.step { position: relative; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 9px var(--mono); letter-spacing: .04em; text-align: left; }
.step::after { content: ''; height: 1px; flex: 1; margin-right: 8px; background: var(--line); }
.step-dot { position: relative; display: block; width: 10px; height: 10px; border: 1px solid var(--line); background: var(--ink); }
.step.is-active { color: var(--paper); }
.step.is-active .step-dot { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 16px rgba(88,174,221,.5); }
.step.is-visited .step-dot { border-color: var(--signal); }
.step:last-child::after { display: none; }

.hotspots { position: absolute; z-index: 5; inset: 76px 17vw 64px 4vw; pointer-events: none; }
.hotspot { position: absolute; display: grid; grid-template-columns: 12px auto; gap: 9px; align-items: center; padding: 5px; border: 0; background: rgba(7,17,31,.72); color: var(--signal); cursor: pointer; pointer-events: auto; font: 9px var(--mono); letter-spacing: .08em; opacity: .72; transition: opacity .25s ease, transform .25s ease; }
.hotspot:hover, .hotspot:focus-visible { opacity: 1; transform: scale(1.06); }
.hotspot-pulse { width: 9px; height: 9px; border: 1px solid var(--signal); background: var(--signal); box-shadow: 0 0 0 5px rgba(82,214,255,.15); }
.hotspot-access { left: 39%; bottom: 27%; }.hotspot-cctv { left: 34%; top: 23%; }.hotspot-perimeter { right: 9%; bottom: 31%; }.hotspot-network { left: 57%; top: 48%; }.hotspot-power { right: 31%; bottom: 25%; }.hotspot-solar { right: 25%; top: 14%; }

.journey-track { position: relative; height: 800vh; margin-top: -100svh; }
.journey-track section { height: 100vh; }
.end-screen { position: relative; z-index: 8; min-height: 100svh; padding-top: 20vh; background: radial-gradient(circle at 73% 55%, rgba(7, 91, 140, .24), transparent 35%), var(--ink); }
.end-copy { position: relative; z-index: 2; max-width: 650px; }
.end-copy h2 { font-size: clamp(4rem, 7vw, 6rem); }
.end-copy p:not(.eyebrow) { max-width: 49ch; margin: 33px 0 35px; color: var(--muted); line-height: 1.7; }
.end-mark { position: absolute; top: 42%; right: 14vw; display: grid; grid-template-columns: repeat(4, 42px); gap: 10px; transform: rotate(-18deg); opacity: .7; }
.end-mark span { display: block; height: 190px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(82,214,255,.16), transparent); }
.end-mark span:nth-child(2) { margin-top: 32px; }.end-mark span:nth-child(3) { margin-top: -16px; }.end-mark span:nth-child(4) { margin-top: 48px; border-color: rgba(255,180,75,.6); }
.end-footer { position: absolute; right: 8vw; bottom: 7vh; left: 8vw; display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }

@media (max-width: 900px) {
  .topbar { min-height: 66px; padding: 0 5vw; }
  .topbar-status { display: none; }
  .contact-link { font-size: 9px; }
  .stage-shell { min-height: 720px; }
  .stage-images { inset: 66px 0 220px; }
  .stage-vignette { background: linear-gradient(0deg, rgba(7,17,31,.98) 8%, rgba(7,17,31,.2) 47%, rgba(7,17,31,.35)), linear-gradient(90deg, rgba(7,17,31,.5), transparent 65%); }
  .info-panel { left: 5vw; bottom: 74px; width: min(390px, 62vw); }
  .info-panel h2 { font-size: clamp(2.25rem, 9vw, 4.3rem); }
  .panel-description { font-size: 12px; }
  .service-rail { top: 83px; right: 5vw; left: 5vw; width: auto; }
  .rail-heading, .rail-footer { display: none; }
  .service-list { display: flex; gap: 6px; overflow-x: auto; margin: 0; padding-bottom: 7px; scrollbar-width: thin; scrollbar-color: var(--signal) transparent; }
  .service-button { flex: 0 0 auto; display: block; width: auto; min-width: 120px; padding: 8px 10px; border: 1px solid var(--line); background: rgba(7,17,31,.75); }
  .service-button:hover, .service-button.is-active { background: rgba(82,214,255,.11); }
  .service-number { display: block; margin-bottom: 7px; }
  .service-name { display: block; font-size: 9px; white-space: normal; }
  .service-detail { font-size: 7px; }
  .step-row { right: 5vw; bottom: 30px; left: 5vw; gap: 13px; }
  .step-row-title { min-width: 72px; }
  .steps { width: 100%; }
  .step { display: block; text-align: center; }
  .step::after { display: none; }
  .step-dot { margin: 0 auto 6px; }
  .step-name { display: block; max-width: 50px; margin: auto; font-size: 7px; line-height: 1.2; }
  .hotspots { inset: 66px 0 220px; }
  .hotspot { font-size: 8px; }
  .top-hud { top: 174px; left: 5vw; }
  .bottom-hud { display: none; }
  .hero-screen, .end-screen { padding-right: 8vw; padding-left: 8vw; }
  .hero-note { right: 7vw; bottom: 8vh; }
  .end-mark { right: 4vw; opacity: .3; transform: scale(.65) rotate(-18deg); transform-origin: right center; }
  .end-footer { right: 8vw; bottom: 5vh; left: 8vw; gap: 10px; font-size: 7px; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .brand-divider { display: none; }
  .contact-link { max-width: 120px; line-height: 1.3; text-align: right; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.5rem); }
  .hero-lede { max-width: 31ch; font-size: .94rem; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .eyebrow-index { display: none; }
  .info-panel { width: 80vw; }
  .panel-question { font-size: 13px; }
  .panel-description { max-width: 30ch; margin-bottom: 14px; font-size: 11px; }
  .panel-meta { font-size: 7px; }
  .hotspot-label { display: none; }
  .hotspot { background: rgba(7,17,31,.42); }
  .stage-images { bottom: 220px; }
}

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