:root {
  --night: #07111f;
  --navy: #12243c;
  --navy-2: #1b3253;
  --ground: #08121f;
  --gold: #e0b84c;
  --gold-soft: #b8953a;
  --green: #4f9a45;
  --solar: #2e7cd6;
  --cyan: #45c8ec;
  --ivory: #f4efe2;
  --muted: #9aa9bd;
  --red: #e0533f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(46, 124, 214, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #0c1b30 100%);
  background-color: var(--night);
  color: var(--ivory);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ------------------------------------------------------------------ top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.mark-emblem {
  display: block;
  width: auto;
  height: clamp(56px, 10vh, 96px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
.mark-name {
  padding-left: 12px;
  border-left: 2px solid var(--gold-soft);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.chip {
  margin: 20px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(224, 184, 76, 0.28);
  border-radius: 999px;
  background: rgba(18, 36, 60, 0.6);
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.6s, border-color 0.6s;
}
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(224, 184, 76, 0.6);
  animation: beacon 2s ease-out infinite;
}
.is-live .chip { color: var(--ivory); border-color: rgba(69, 200, 236, 0.4); }
.is-live .chip-dot { background: var(--cyan); animation-name: beacon-live; }

@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(224, 184, 76, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(224, 184, 76, 0); }
}
@keyframes beacon-live {
  0% { box-shadow: 0 0 0 0 rgba(69, 200, 236, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(69, 200, 236, 0); }
}

/* --------------------------------------------------------------------- hero */

.hero {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(16px, 3vh, 40px) 24px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
}

h1 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, min(7vw, 9vh), 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* "Coming soon": the letters power up one by one, then a surge of current keeps
   running through the word while a battery charges underneath. */
.soon {
  margin-top: clamp(28px, 5vh, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.soon-text { margin: 0; }
.soon-word {
  display: inline-flex;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* keeps the tracked word optically centred */
  text-transform: uppercase;
}
.soon-word span { color: rgba(244, 239, 226, 0.12); }
.soon-word .gap { width: 0.5em; }
.is-live .soon-word span {
  animation:
    ignite 1s calc(var(--i) * 0.09s) both,
    surge 4s calc(1.6s + var(--i) * 0.07s) infinite;
}
@keyframes ignite {
  0% { color: rgba(244, 239, 226, 0.12); text-shadow: none; }
  25% { color: var(--ivory); text-shadow: 0 0 14px rgba(69, 200, 236, 0.9); }
  35% { color: rgba(244, 239, 226, 0.2); text-shadow: none; }
  55% { color: var(--ivory); text-shadow: 0 0 14px rgba(69, 200, 236, 0.9); }
  62% { color: rgba(244, 239, 226, 0.35); text-shadow: none; }
  100% { color: var(--ivory); text-shadow: 0 0 10px rgba(69, 200, 236, 0.3); }
}
@keyframes surge {
  0%, 12%, 100% { color: var(--ivory); text-shadow: 0 0 10px rgba(69, 200, 236, 0.3); }
  6% { color: #c9f3ff; text-shadow: 0 0 12px rgba(69, 200, 236, 1), 0 0 30px rgba(69, 200, 236, 0.6); }
}

/* Battery: 12 cells fill in steps, hold, fade, repeat. */
.charge {
  position: relative;
  padding: 3px;
  border: 1.5px solid rgba(224, 184, 76, 0.55);
  border-radius: 4px;
}
.charge::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 4px;
  height: 8px;
  margin-top: -4px;
  border-radius: 0 2px 2px 0;
  background: rgba(224, 184, 76, 0.55);
}
.charge-fill {
  display: block;
  width: 0;
  height: 9px;
  max-width: 144px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 9px, transparent 9px 12px);
  filter: drop-shadow(0 0 4px rgba(69, 200, 236, 0.8));
}
.charge { width: calc(144px + 6px + 3px); }
.is-live .charge-fill { animation: charge 4.8s 0.6s infinite; }
@keyframes charge {
  0% { width: 0; opacity: 1; animation-timing-function: steps(12, end); }
  70% { width: 144px; opacity: 1; animation-timing-function: ease-in-out; }
  78% { width: 144px; opacity: 1; filter: drop-shadow(0 0 9px rgba(69, 200, 236, 1)); }
  92% { width: 144px; opacity: 1; }
  100% { width: 144px; opacity: 0; }
}

/* -------------------------------------------------------------------- scene */

/* The scene's upper third is open sky, so it slides up behind the hero. */
.scene {
  position: relative;
  z-index: 0;
  height: clamp(220px, 34vh, 360px);
  margin-top: calc(clamp(220px, 34vh, 360px) * -0.42);
  pointer-events: none;
}
.scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ------------------------------------------------------------------- footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 24px calc(20px + env(safe-area-inset-bottom));
  background: var(--ground);
  border-top: 1px solid rgba(154, 169, 189, 0.08);
}
.footer p { margin: 0; }
.legal {
  color: #6f7f94;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .scene { margin-top: calc(clamp(220px, 34vh, 360px) * -0.12); }
}

@media (max-width: 520px) {
  .topbar { padding: 14px 16px 0; }
  .mark { gap: 10px; }
  .mark-emblem { height: 56px; }
  .chip { padding: 8px 16px; font-size: 0.9rem; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .eyebrow { gap: 10px; font-size: 0.72rem; letter-spacing: 0.12em; }
  .eyebrow::before, .eyebrow::after { width: 18px; }
  .scene { height: clamp(240px, 40vh, 380px); margin-top: 0; }
  .footer { justify-content: center; text-align: center; padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 420px) {
  .mark-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .is-live .charge-fill { animation: none; width: 108px; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
