/* OROBOTO Organization — orientation-reel landing page
   Duochrome law: aqua dominant, crimson alert-only, void black background.
   Tokens sourced from css/tokens.css (locked design canon) — never overridden here. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Analog texture: film grain + CRT scanlines, both quiet, both fixed ── */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .12;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, #000 3px, transparent 4px);
}

/* ── Leader countdown: the signature moment. Plays once on load, then removes itself. ── */
.leader {
  position: fixed; inset: 0; z-index: 10; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-5);
  animation: leaderOut .6s var(--ease) 3.4s forwards;
}
.leader-frame {
  position: relative; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid var(--aqua); display: flex; align-items: center; justify-content: center;
}
.leader-ring {
  position: absolute; inset: -1px; border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) content-box,
    conic-gradient(var(--aqua) 0turn, transparent 0turn);
  animation: sweep 3.4s linear forwards;
  padding: 2px;
}
.leader-count {
  font-size: var(--fs-3xl); font-weight: 700; color: var(--aqua); text-shadow: var(--glow-aqua);
  animation: countPulse 3.4s steps(5) forwards;
}
.leader-caption { color: var(--line); font-size: var(--fs-xs); letter-spacing: .18em; }

@keyframes sweep { to { background: linear-gradient(var(--bg), var(--bg)) content-box, conic-gradient(var(--aqua) 1turn, transparent 1turn); } }
@keyframes countPulse {
  0%   { content: "5"; }
  20%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes leaderOut { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .leader { animation: none; display: none; }
}

/* ── Masthead ── */
main { max-width: 720px; margin: 0 auto; padding: var(--sp-8) var(--sp-5) var(--sp-8); position: relative; z-index: 1; }

.masthead { text-align: center; padding-bottom: var(--sp-8); border-bottom: 1px solid var(--line); }
.seal { width: 88px; height: 88px; opacity: .9; filter: drop-shadow(0 0 10px rgba(63,224,208,.35)); }
.eyebrow { color: var(--aqua); font-size: var(--fs-xs); letter-spacing: .22em; margin-top: var(--sp-4); }
h1 {
  font-size: clamp(var(--fs-2xl), 6vw, 52px); letter-spacing: .04em; line-height: 1.05; margin: var(--sp-3) 0;
  text-transform: uppercase;
}
.tagline { color: var(--tx); opacity: .8; max-width: 46ch; margin: var(--sp-4) auto 0; font-style: italic; }

/* ── Reels ── */
.reel { padding: var(--sp-8) 0; border-bottom: 1px solid var(--line); }
.reel:last-of-type { border-bottom: none; }
.reel-slate {
  display: inline-block; color: var(--bg); background: var(--aqua);
  font-size: var(--fs-xs); letter-spacing: .1em; padding: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-4);
}
.reel h2 { font-size: var(--fs-xl); margin: 0 0 var(--sp-4); }
.reel p { color: var(--tx); opacity: .85; max-width: 62ch; }
.film-note {
  color: var(--crimson); border: 1px dashed var(--crimson); padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm); display: inline-block; margin-top: var(--sp-4); opacity: .9;
}

.transmission-box { border: 1px solid var(--line); background: var(--panel); padding: var(--sp-5); margin-top: var(--sp-4); }
.tx-status { font-size: var(--fs-sm); letter-spacing: .08em; margin: 0 0 var(--sp-2); }
.tx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: var(--glow-aqua); animation: blink 2.2s ease-in-out infinite; }
.tx-sub { color: var(--tx); opacity: .6; font-size: var(--fs-sm); margin: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

footer { text-align: center; padding-top: var(--sp-8); }
.seal-small { width: 40px; height: 40px; opacity: .5; }
footer p { color: var(--line); font-size: var(--fs-xs); letter-spacing: .14em; margin-top: var(--sp-3); }

a { color: var(--aqua); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
