:root {
  --lime: #c8ff00;
  --black: #030303;
  --line: rgba(3, 3, 3, 0.18);
  --line-strong: rgba(3, 3, 3, 0.6);
  --font-main: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--lime);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--lime);
  font-family: var(--font-main);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FIXED FIELD — lime grid + pinned 3D artifact
   ============================================================ */
.field-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to right, rgba(3, 3, 3, 0.04) 1px, transparent 1px) 0 0 / 25vw 100%,
    linear-gradient(to bottom, rgba(3, 3, 3, 0.04) 1px, transparent 1px) 0 0 / 100% 25vh,
    var(--lime);
  pointer-events: none;
}

.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 920px);
  height: min(78vw, 920px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(200, 255, 0, 0.95) 0%,
    rgba(200, 255, 0, 0.55) 32%,
    rgba(200, 255, 0, 0) 70%
  );
  will-change: transform, opacity;
}

.model-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#shield-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   HUD — persistent technical overlay
   ============================================================ */
.hud {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  font-size: clamp(0.62rem, 0.8vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.18;
}

.mark {
  position: absolute;
  color: rgba(3, 3, 3, 0.34);
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  font-weight: 300;
  line-height: 1;
}
.mark-tl { top: 86px; left: var(--gutter); }
.mark-tr { top: 86px; right: var(--gutter); }
.mark-bl { bottom: 26px; left: var(--gutter); }
.mark-br { bottom: 26px; right: var(--gutter); }

.scan-copy {
  position: absolute;
  top: 19%;
  left: var(--gutter);
  display: grid;
  gap: clamp(12px, 1.6vw, 24px);
  max-width: 26vw;
  transition: opacity 0.3s ease;
}
.scan-copy-right {
  left: auto;
  right: var(--gutter);
  text-align: right;
  justify-items: end;
}
.scan-copy i {
  width: 34px;
  height: 3px;
  background: var(--black);
}

.scroll-rail {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: clamp(120px, 22vh, 240px);
  background: rgba(3, 3, 3, 0.16);
}
.scroll-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--black);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 2px solid rgba(3, 3, 3, 0.2);
  background: rgba(200, 255, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-transform: uppercase;
}
.brand {
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
}
.nav-copy {
  font-size: clamp(0.8rem, 1.1vw, 1.2rem);
  font-weight: 700;
}
.nav-copy-end {
  justify-self: end;
}

/* ============================================================
   SCROLL LAYOUT
   ============================================================ */
.scroll {
  position: relative;
  z-index: 4;
}

.panel {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 14vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* shared type */
.eyebrow {
  margin: 0 0 clamp(20px, 3vh, 40px);
  font-size: clamp(0.8rem, 1vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.section-no {
  margin: 0 0 clamp(18px, 2.4vh, 30px);
  font-size: clamp(0.78rem, 0.95vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.big {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

/* 1 · HERO */
.panel-hero {
  align-items: center;
  text-align: center;
  min-height: 100svh;
}
.hero-title {
  margin: 0;
  font-size: clamp(5rem, 22vw, 20rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: 0.04em;
  mix-blend-mode: multiply;
}
.hero-sub {
  margin: clamp(20px, 3vh, 38px) 0 0;
  font-size: clamp(1rem, 1.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(24px, 3.4vh, 44px);
  font-size: clamp(0.82rem, 1.1vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-meta i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--black);
  transform: rotate(45deg);
}
.scroll-cue {
  position: absolute;
  bottom: clamp(40px, 7vh, 84px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  pointer-events: auto;
}
.scroll-cue-arrow {
  font-size: 1.1rem;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(7px); opacity: 1; }
}

/* 2 / 4 · TEXT PANELS */
.panel-text .big {
  max-width: 18ch;
}
.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin-top: clamp(32px, 5vh, 64px);
  max-width: 1040px;
}
.lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
}
.lead strong { font-weight: 800; }
.lead-center {
  max-width: 640px;
  margin: clamp(26px, 4vh, 48px) auto 0;
  text-align: center;
}

/* 2 · CIRCUIT (animated route map) */
.panel-circuit {
  align-items: center;
  text-align: center;
}
.map-wrap {
  width: min(95vw, 70vh, 900px);
  margin: clamp(14px, 2vh, 28px) auto 0;
}
.route-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* --- base map --- */
.park {
  fill: rgba(54, 120, 46, 0.14);
}
.water {
  fill: #a4d8ea;
}
.island {
  fill: var(--lime);
  stroke: rgba(3, 3, 3, 0.12);
  stroke-width: 2;
}
.road {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 5;
  stroke-linecap: round;
}
.road-major {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 11;
}
.road-label {
  fill: rgba(3, 3, 3, 0.42);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.road-vert {
  writing-mode: vertical-rl;
}

/* POI markers */
.poi-shop { fill: #2f6fd0; }
.poi-book { fill: #16a0ad; }
.poi-museum { fill: #8b5cf6; }
.poi-metro { fill: #1c1c1c; }
.poi-hosp { fill: #e0382a; }
.poi-dot { fill: #fff; }
.poi-h {
  fill: #fff;
  font-size: 22px;
  font-weight: 800;
}
.poi-m {
  fill: #fff;
  font-size: 18px;
  font-weight: 800;
}

/* landmark labels */
.lm {
  fill: var(--black);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.lm-area {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.map-water {
  fill: rgba(3, 3, 3, 0.34);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.26em;
}
.map-island {
  fill: rgba(3, 3, 3, 0.34);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* --- route --- */
.route-ghost {
  fill: none;
  stroke: rgba(47, 59, 208, 0.3);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0.1 20;
}
.route-line {
  fill: none;
  stroke: var(--black);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wp {
  fill: #fff;
  stroke: var(--black);
  stroke-width: 4;
}
.runner {
  fill: var(--black);
  stroke: var(--lime);
  stroke-width: 4;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(3, 3, 3, 0.5));
}
.start-ring {
  fill: var(--lime);
  stroke: var(--black);
  stroke-width: 4;
}
.start-dot {
  fill: var(--black);
}
.start-label {
  fill: var(--black);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.start-sub {
  fill: var(--black);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.72;
}
.map-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(20px, 2.8vh, 34px);
  font-size: clamp(0.74rem, 0.95vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.map-meta i {
  width: 7px;
  height: 7px;
  border: 2px solid var(--black);
  transform: rotate(45deg);
}

/* fade the pinned 3D artifact while the route map is on screen */
.model-stage {
  transition: opacity 0.6s ease;
}
body.circuit-active .model-stage {
  opacity: 0.08;
}
body.details-active .model-stage {
  opacity: 0.035;
}

/* 4 · DATA GRID */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: clamp(32px, 5vh, 64px);
  max-width: 1100px;
  border-top: 2px solid var(--black);
  border-left: 2px solid var(--black);
  background: transparent;
}
.data-cell {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 2.6vh, 34px) clamp(18px, 1.6vw, 28px);
  border-bottom: 2px solid var(--black);
  border-right: 2px solid var(--black);
  background: transparent;
}
.data-k {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.data-v {
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  font-weight: 300;
  line-height: 1;
}
.data-note {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.8;
}

/* 5 · REGISTER */
.panel-register {
  align-items: center;
  text-align: center;
}
.email-form {
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
  margin: clamp(32px, 5vh, 56px) auto 0;
}
.email-form input,
.email-form button {
  width: 100%;
  min-height: clamp(56px, 5vw, 78px);
  border-radius: 0;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  font-weight: 700;
}
.email-form input {
  border: 2px solid var(--black);
  background: rgba(255, 255, 255, 0.28);
  color: var(--black);
  padding: 0 clamp(20px, 1.6vw, 30px);
  outline: none;
  text-align: center;
}
.email-form input::placeholder {
  color: var(--black);
  opacity: 0.6;
}
.email-form input:focus {
  box-shadow: 0 0 0 4px rgba(3, 3, 3, 0.16);
}
.email-form button {
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--lime);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}
.email-form button:hover {
  background: transparent;
  color: var(--black);
}
.email-form button:disabled,
.admin-form button:disabled {
  cursor: wait;
  opacity: 0.56;
}
.email-form button:focus-visible {
  outline: 4px solid var(--black);
  outline-offset: 4px;
}
.form-status {
  min-height: 1.3em;
  margin: 2px 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* PARTNERS */
.partners-section {
  position: relative;
  z-index: 4;
  padding: clamp(54px, 8vh, 96px) var(--gutter);
  border-top: 2px solid var(--black);
  background: transparent;
  text-align: center;
}
.partners-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 64px);
  width: min(100%, 1120px);
  margin: clamp(28px, 4vh, 52px) auto 0;
}
.partner-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.partner-logo-nioomaters {
  max-height: clamp(56px, 9vw, 128px);
  background: var(--black);
}
.partner-logo-vanish {
  max-height: clamp(42px, 6.6vw, 92px);
  mix-blend-mode: multiply;
}
.partner-plus {
  font-size: clamp(2rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
}

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: clamp(28px, 4vh, 48px) var(--gutter);
  border-top: 2px solid var(--black);
  background: var(--lime);
  font-size: clamp(0.78rem, 1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-brand {
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
}

/* ADMIN */
.admin-page {
  min-height: 100vh;
  background: #f4f4f1;
}
.admin-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
}
.admin-header,
.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 24px;
}
.admin-header h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.92;
}
.admin-link,
.admin-actions button,
.admin-form button {
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--lime);
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-login,
.admin-dashboard {
  margin-top: clamp(32px, 5vw, 64px);
}
.admin-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}
.admin-form label {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.admin-form input {
  min-height: 56px;
  border: 2px solid var(--black);
  background: #fff;
  padding: 0 18px;
  outline: none;
}
.admin-toolbar {
  align-items: center;
  border: 2px solid var(--black);
  background: var(--lime);
  padding: 22px;
}
.admin-toolbar strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 2px solid var(--black);
  background: #fff;
}
.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th,
.admin-table td {
  padding: 16px 18px;
  border-bottom: 2px solid rgba(3, 3, 3, 0.16);
  font-size: 0.98rem;
}
.admin-table th {
  background: var(--black);
  color: var(--lime);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .site-header { height: 60px; }
  .brand {
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }
  .nav-copy { font-size: 0.74rem; }
  .mark-tl, .mark-tr { top: 70px; }
  .scan-copy { display: none; }
  .scroll-rail { display: none; }
  .glow {
    width: 130vw;
    height: 130vw;
  }
  .spec-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spec-list b { text-align: left; }
  .hero-meta { flex-wrap: wrap; justify-content: center; }
  .site-footer { justify-content: center; text-align: center; }
  .partners-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .partner-logo {
    max-width: min(100%, 520px);
  }
  .admin-header,
  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue-arrow { animation: none; }
}
