/* ═══════════════════════════════════════════════════════════════════
   AE01.IO — DESIGN SYSTEM & PAGE STYLES
   Light Theme · Teaser Landing · Video-Hero Layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design Tokens ────────────────────────────────────────────────── */
:root {
  --color-orbital-white:       #F2F2F2;
  --color-gantry-grey:         #2B2D31;
  --color-capsule-black:       #0D0E10;
  --color-hazard-yellow:       #D4FF00;
  --color-synthetic-magenta:   #FF0055;
  --color-registration-slate:  #8A8E95;
  --color-deep-black:          #060608;
  --color-stripe-light:        #EAEAEA;
}

/* ── Page ─────────────────────────────────────────────────────────── */
html {
  height: 100%;
}

body {
  background: var(--color-orbital-white);
  color: var(--color-capsule-black);
  font-family: 'Inter', 'Univers', system-ui, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   FLOATING BACKGROUND ELEMENTS
   ═══════════════════════════════════════════════════════════════════ */

.bg-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-el {
  position: absolute;
  color: var(--color-registration-slate);
  font-family: 'Space Mono', 'IBM Plex Mono', monospace;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}

/* ── Crosshair SVG elements ───────────────────────────────────────── */
.bg-el--crosshair svg {
  display: block;
}
.bg-el--crosshair circle {
  stroke: var(--color-registration-slate);
  stroke-width: 1.5;
  fill: none;
}
.bg-el--crosshair line {
  stroke: var(--color-registration-slate);
  stroke-width: 1;
}

/* ── Drift animations ─────────────────────────────────────────────── */
@keyframes drift-a {
  0%   { transform: translate(0, 0)      rotate(0deg); }
  25%  { transform: translate(12px, -8px)  rotate(0.5deg); }
  50%  { transform: translate(-6px, 14px)  rotate(-0.3deg); }
  75%  { transform: translate(8px, 6px)    rotate(0.2deg); }
  100% { transform: translate(0, 0)      rotate(0deg); }
}

@keyframes drift-b {
  0%   { transform: translate(0, 0)       rotate(0deg); }
  20%  { transform: translate(-10px, 12px) rotate(-0.4deg); }
  40%  { transform: translate(6px, -4px)   rotate(0.6deg); }
  60%  { transform: translate(-14px, -6px) rotate(-0.2deg); }
  80%  { transform: translate(4px, 10px)   rotate(0.3deg); }
  100% { transform: translate(0, 0)       rotate(0deg); }
}

@keyframes drift-c {
  0%   { transform: translate(0, 0)        rotate(0deg); }
  33%  { transform: translate(16px, 10px)   rotate(0.8deg); }
  66%  { transform: translate(-8px, -12px)  rotate(-0.5deg); }
  100% { transform: translate(0, 0)        rotate(0deg); }
}

/* ── Breathing / pulse animations ─────────────────────────────────── */
@keyframes breathe-a {
  0%   { opacity: 0.03; }
  40%  { opacity: 0.18; }
  60%  { opacity: 0.14; }
  100% { opacity: 0.03; }
}

@keyframes breathe-b {
  0%   { opacity: 0.05; }
  30%  { opacity: 0.22; }
  70%  { opacity: 0.10; }
  100% { opacity: 0.05; }
}

@keyframes breathe-c {
  0%   { opacity: 0.02; }
  50%  { opacity: 0.16; }
  100% { opacity: 0.02; }
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN LAYOUT — Video-Hero
   ═══════════════════════════════════════════════════════════════════ */

.main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO SECTION (HERO)
   ═══════════════════════════════════════════════════════════════════ */

.video-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.video-frame {
  position: relative;
  padding: 20px;
  border: 1px solid var(--color-gantry-grey);
  border-radius: 14px;
  background: var(--color-orbital-white);
}

.video-label {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--color-orbital-white);
  padding: 0 8px;
  font-family: 'Space Mono', 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-registration-slate);
}

/* ── Corner Crop Marks ────────────────────────────────────────────── */
.crop-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-registration-slate);
  border-style: solid;
  border-width: 0;
}
.crop-mark--tl { top: 6px;    left: 6px;    border-top-width: 1.5px; border-left-width: 1.5px; }
.crop-mark--tr { top: 6px;    right: 6px;   border-top-width: 1.5px; border-right-width: 1.5px; }
.crop-mark--bl { bottom: 6px; left: 6px;    border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop-mark--br { bottom: 6px; right: 6px;   border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ── 9:16 Video Container — height-driven for max visibility ──── */
.video-container {
  position: relative;
  height: 72vh;
  max-height: 720px;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-capsule-black);
  border: 1px solid var(--color-gantry-grey);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Logo + Telemetry (compact bottom anchor)
   ═══════════════════════════════════════════════════════════════════ */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 20px;
  flex-shrink: 0;
}

/* ── Structural baseline stripe ───────────────────────────────────── */
.footer-stripe {
  width: 100%;
  max-width: 500px;
  height: 3px;
  margin-bottom: 16px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-hazard-yellow) 0px,
    var(--color-hazard-yellow) 5px,
    var(--color-orbital-white) 5px,
    var(--color-orbital-white) 10px
  );
  opacity: 0.55;
}

/* ── Compact Logo ─────────────────────────────────────────────────── */
.logo-container {
  position: relative;
  width: 280px;
  height: 80px;
  background: var(--color-orbital-white);
  border: 1px solid var(--color-gantry-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.crosshair {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
}
.crosshair--left  { left: 5.5%; }
.crosshair--right { right: 5.5%; }

.crosshair circle {
  stroke: var(--color-registration-slate);
  stroke-width: 1.5;
  fill: none;
}
.crosshair line {
  stroke: var(--color-registration-slate);
  stroke-width: 1.2;
}

.identity-track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  font-family: 'Space Grotesk', 'Eurostile', monospace;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.06em;
  color: var(--color-capsule-black);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  font-feature-settings: "zero" 1;
}

/* Light theme caution stripe — softened for light backgrounds */
.caution-lane {
  margin-top: 3px;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-hazard-yellow) 0px,
    var(--color-hazard-yellow) 5px,
    var(--color-orbital-white) 5px,
    var(--color-orbital-white) 10px
  );
  opacity: 0.55;
}

/* ── Footer telemetry ─────────────────────────────────────────────── */
.footer-telemetry {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-bottom: 4px;
}

.footer-item {
  font-family: 'Space Mono', 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-registration-slate);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Large desktop — video can be taller ──────────────────────────── */
@media (min-height: 900px) {
  .video-container {
    height: 74vh;
    max-height: 800px;
  }
}

/* ── Tablet ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main {
    padding: 16px;
  }

  .video-frame {
    padding: 14px;
  }

  .video-container {
    height: 65vh;
    max-height: 600px;
  }

  .logo-container {
    width: 240px;
    height: 70px;
  }

  .wordmark {
    font-size: 30px;
  }

  .crosshair {
    width: 12px;
    height: 12px;
  }

  .caution-lane {
    height: 4px;
  }

  .footer-telemetry {
    gap: 12px;
  }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .main {
    padding: 12px;
  }

  .video-frame {
    padding: 10px;
    border-radius: 10px;
  }

  .video-label {
    font-size: 8px;
    letter-spacing: 0.2em;
    top: -8px;
    left: 14px;
  }

  .video-container {
    height: 62vh;
    max-height: 520px;
    border-radius: 6px;
  }

  .crop-mark {
    width: 10px;
    height: 10px;
  }

  .footer {
    padding-top: 14px;
  }

  .footer-stripe {
    margin-bottom: 10px;
  }

  .logo-container {
    width: 200px;
    height: 58px;
  }

  .wordmark {
    font-size: 24px;
  }

  .crosshair {
    width: 10px;
    height: 10px;
  }

  .caution-lane {
    height: 3px;
    margin-top: 2px;
  }

  .footer-telemetry {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
  }

  .footer-item {
    font-size: 8px;
  }
}

/* ── Short viewports (landscape mobile) ───────────────────────────── */
@media (max-height: 600px) {
  .video-container {
    height: 55vh;
    max-height: 360px;
  }

  .footer {
    padding-top: 10px;
  }

  .footer-stripe {
    margin-bottom: 8px;
  }

  .logo-container {
    width: 200px;
    height: 56px;
  }

  .wordmark {
    font-size: 24px;
  }
}
