/* StellarTech Explorers Club — shared design system.
   Palette and rules follow the master brief: quiet contrast, no glow spam,
   one-shot motion, accessibility-first. */

:root {
  --void: #04060D;
  --deep: #080D1C;
  --navy: #0D1530;
  --plat: #E8EEF6;
  --blue: #4DA8FF;
  --violet: #8A6BFF;
  --cyan: #35E2F5;
  --ink: #EDF3FC;
  --ink-soft: #A7B8D0;
  --ink-mute: #65779A;
  --line: #1B2647;
  --danger: #FF7A8A;
  --ok: #5BE49B;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
small { color: var(--ink-mute); }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(77, 168, 255, .35); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: .7em;
}

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- chips, badges, buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  padding: .28em .75em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: rgba(13, 21, 48, .6);
  text-transform: uppercase;
}
.chip.planned { color: var(--ink-mute); border-style: dashed; }
.chip.active { color: var(--ok); border-color: rgba(91, 228, 155, .4); }
.chip.testing { color: var(--cyan); border-color: rgba(53, 226, 245, .4); }
.chip.prototype { color: var(--violet); border-color: rgba(138, 107, 255, .4); }
.chip.warn { color: var(--danger); border-color: rgba(255, 122, 138, .4); }
.chip.blue { color: var(--blue); border-color: rgba(77, 168, 255, .45); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 650; font-size: .92rem;
  padding: .68em 1.35em; border-radius: 10px; border: 1px solid transparent;
  background: var(--blue); color: #04121f; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #6cb8ff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blue); background: rgba(77, 168, 255, .08); }
.btn.subtle { background: var(--navy); color: var(--ink); border-color: var(--line); }
.btn.subtle:hover { background: #142046; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255, 122, 138, .4); }
.btn.small { font-size: .8rem; padding: .45em .95em; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- panels & layout helpers ---------- */
.panel {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.panel.raised { background: var(--navy); }
.panel header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stack > * + * { margin-top: .9rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mono { font-family: var(--font-mono); font-size: .8rem; }

/* honest empty states */
.empty {
  text-align: center; padding: 2.6rem 1.4rem; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--ink-mute);
}
.empty .glyph { font-size: 1.8rem; display: block; margin-bottom: .5rem; color: var(--ink-mute); }
.empty h3 { color: var(--ink-soft); }
.empty p { margin: 0; }

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 1rem; }
label.field > span { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .45em; }
input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; background: var(--void); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .7em .9em; font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .6em; align-items: center; color: var(--ink-soft); font-size: .92rem; }

/* flash messages */
.flash { border-radius: 10px; padding: .8em 1.1em; margin-bottom: 1.2rem; font-size: .92rem; border: 1px solid; }
.flash.ok { border-color: rgba(91, 228, 155, .4); color: var(--ok); background: rgba(91, 228, 155, .07); }
.flash.err { border-color: rgba(255, 122, 138, .4); color: var(--danger); background: rgba(255, 122, 138, .07); }

/* ---------- public nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4, 6, 13, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; gap: 1.4rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--plat); font-family: var(--font-display); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #16224a, var(--deep));
  color: var(--cyan); font-size: .95rem;
}
.brand strong { font-size: .95rem; letter-spacing: .06em; }
.brand small { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .3em; color: var(--ink-mute); }
.site-nav nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav nav a { color: var(--ink-soft); font-size: .9rem; }
.site-nav nav a.on { color: var(--ink); }
.site-nav nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 7rem 0 5rem; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 2; max-width: 780px; }
#starfield { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(1200px 500px at 70% -10%, rgba(77, 168, 255, .12), transparent 60%),
  radial-gradient(900px 420px at 10% 110%, rgba(138, 107, 255, .1), transparent 60%); }
.hero h1 .hl { color: var(--blue); }
.hero .readout { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-mute); margin-top: 2.2rem; }

.stat-band { display: flex; gap: 2.5rem; flex-wrap: wrap; padding: 1.6rem 0; }
.stat-band div strong { font-family: var(--font-display); font-size: 1.7rem; display: block; color: var(--plat); }
.stat-band div small { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-size: .62rem; }

section.block { padding: 4rem 0; }
section.block + section.block { border-top: 1px solid var(--line); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; margin-top: 4rem; }
.site-footer .wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; color: var(--ink-mute); font-size: .85rem; }
.site-footer a { color: var(--ink-soft); }

/* news cards */
.news-card { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--deep); color: inherit; }
.news-card:hover { border-color: var(--blue); text-decoration: none; }
.news-card h3 { margin-bottom: .35em; font-size: 1rem; color: var(--ink); }
.news-card p { font-size: .86rem; margin: 0 0 .5em; }
.news-card .mono { color: var(--ink-mute); }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--line); }
table.data td { padding: .65em .7em; border-bottom: 1px solid rgba(27, 38, 71, .55); color: var(--ink-soft); vertical-align: top; }
table.data tr:hover td { background: rgba(13, 21, 48, .5); }
.table-scroll { overflow-x: auto; }

/* pagination (Laravel default markup, restyled lightly) */
nav[role="navigation"] { margin-top: 1.2rem; font-size: .85rem; }

@media (max-width: 640px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .site-nav .wrap { gap: .8rem; }
}

/* Reduced motion: kill every transition and animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ================= cinematic upgrade ================= */

/* -- buttons: gradient primaries with shine sweep -- */
.btn { position: relative; overflow: hidden; }
.btn:not(.ghost):not(.subtle):not(.danger) {
  background: linear-gradient(120deg, #4DA8FF, #35E2F5);
  box-shadow: 0 6px 22px rgba(77, 168, 255, .28);
}
.btn:not(.ghost):not(.subtle):not(.danger):hover {
  background: linear-gradient(120deg, #61b5ff, #52e8f8);
  box-shadow: 0 10px 30px rgba(77, 168, 255, .42);
  transform: translateY(-2px);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.45) 50%, transparent 58%);
  transform: translateX(-130%); transition: transform .01s;
}
.btn:hover::before { transform: translateX(130%); transition: transform .65s ease; }
.btn.ghost:hover { box-shadow: 0 6px 18px rgba(77, 168, 255, .15); }
.btn.big { font-size: 1.02rem; padding: .85em 1.7em; border-radius: 12px; }

/* -- club logo (flat DOM image — never rotates, never distorts) -- */
.logo-img { height: 40px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(77,168,255,.35)); }
.os-side .logo-img { height: 34px; }
.logo-hero { height: 74px; margin-bottom: 1.2rem; }

/* -- Duolingo-style streak flame: ALWAYS alive (flicker + sway + sparks) -- */
.flame-wrap { display: inline-flex; align-items: center; gap: .32em; line-height: 0; }
.flame-svg { width: 21px; height: auto; display: block; transform-origin: 50% 90%; overflow: visible; }
.flame-count { font-family: var(--font-mono); font-weight: 700; font-size: .88rem; color: #FF9600; }
.fl-body { transform-origin: 50% 92%; }
.flame-wrap.lit .fl-body { animation: flameDance 1.15s ease-in-out infinite; }
.flame-wrap.lit .fl-inner { transform-origin: 50% 88%; animation: coreFlick .62s ease-in-out infinite alternate; }
.flame-wrap.lit .flame-svg { filter: drop-shadow(0 0 6px rgba(255, 150, 0, .55)); }
.fl-spark { opacity: 0; }
.flame-wrap.lit .fl-spark { animation: sparkRise 1.9s ease-in infinite; }
.flame-wrap.lit .fl-spark.s2 { animation-delay: .65s; animation-duration: 2.2s; }
.flame-wrap.lit .fl-spark.s3 { animation-delay: 1.2s; animation-duration: 1.6s; }
.flame-wrap.cold .flame-svg { filter: grayscale(1) brightness(.75); opacity: .5; }
.flame-wrap.cold .flame-count { color: var(--ink-mute); }
.flame-wrap.risk .flame-svg { animation: flameRisk 2.2s ease-in-out infinite; }
.flame-wrap.risk .fl-body { animation: flameDance 0.55s ease-in-out infinite; }
.flame-wrap.pop .flame-svg { animation: flamePopBig .95s cubic-bezier(.25, 1.6, .4, 1) 1; }
.flame-wrap.big .flame-svg { width: 52px; }
.flame-wrap.big .flame-count { font-size: 2rem; }
@keyframes flameDance {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  25% { transform: scale(1.04, .96) rotate(-2.2deg); }
  50% { transform: scale(.97, 1.05) rotate(1.6deg); }
  75% { transform: scale(1.03, .97) rotate(-1.2deg); }
}
@keyframes coreFlick { from { transform: scale(1, 1); opacity: .96; } to { transform: scale(.9, 1.12); opacity: 1; } }
@keyframes sparkRise {
  0% { opacity: 0; transform: translateY(2px) scale(.7); }
  25% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-13px) scale(.35); }
}
@keyframes flameRisk { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) {
  .flame-wrap .fl-body, .flame-wrap .fl-inner, .flame-wrap .fl-spark, .flame-wrap.risk .flame-svg { animation: none !important; }
}
@keyframes flamePopBig {
  0% { transform: scale(1); } 30% { transform: scale(1.55) rotate(-7deg); }
  55% { transform: scale(1.2) rotate(5deg); } 75% { transform: scale(1.35) rotate(-2deg); } 100% { transform: scale(1); }
}

/* -- Astro the mascot -- */
.mascot { display: inline-block; width: var(--msize, 96px); line-height: 0; }
.mascot svg { width: 100%; height: auto; display: block; overflow: visible; }
.mascot .ms-jet { opacity: 0; transform-origin: 60px 128px; }
.mascot.fly { animation: mascotBob 3.4s ease-in-out infinite; }
.mascot.fly .ms-jet { opacity: 1; animation: jetFlick .45s ease-in-out infinite alternate; }
.mascot.fly .ms-star { animation: starSpin 6s linear infinite; transform-origin: 60px 7.5px; }
@keyframes mascotBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes jetFlick { from { transform: scaleY(.75); } to { transform: scaleY(1.2); } }
@keyframes starSpin { to { transform: rotate(360deg); } }

/* -- cinematic hero -- */
.hero.cine { min-height: 92vh; display: flex; align-items: center; padding: 5rem 0 4rem; }
.hero.cine .wrap { max-width: 1120px; width: min(1120px, 92vw); }
.hero-copy { max-width: 620px; position: relative; z-index: 2; }
#solar { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.hero h1 .ch {
  display: inline-block; opacity: 0;
  transform: translateY(.7em) rotate(5deg) scale(.9); filter: blur(5px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .3, 1.05), filter .45s ease;
  transition-delay: var(--d, 0s);
}
.hero h1 .ch.in { opacity: 1; transform: none; filter: none; }
.rise { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .9, .3, 1); }
.rise.in { opacity: 1; transform: none; }

/* scroll-triggered word cascade: text flies in, then stops */
[data-words] .wd {
  display: inline-block; opacity: 0;
  transform: translateY(26px) skewY(2deg); filter: blur(3px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.2, .9, .3, 1), filter .4s ease;
  transition-delay: var(--d, 0s);
}
[data-words].in .wd { opacity: 1; transform: none; filter: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 2; color: var(--ink-mute); font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .3em; text-align: center; transition: opacity .4s;
}
.scroll-cue i {
  display: block; width: 10px; height: 10px; margin: .5em auto 0;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg); animation: cueBob 1.6s ease-in-out infinite;
}
@keyframes cueBob { 0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; } 50% { transform: rotate(45deg) translate(5px, 5px); opacity: .3; } }
.scroll-cue.gone { opacity: 0; pointer-events: none; }

/* -- feature cards that lift -- */
.card-lift { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.card-lift:hover { transform: translateY(-7px); border-color: var(--blue); box-shadow: 0 16px 40px rgba(4, 10, 26, .6); }
.card-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; color: var(--cyan); margin-bottom: .8rem;
  background: linear-gradient(135deg, rgba(77,168,255,.16), rgba(53,226,245,.08));
  border: 1px solid rgba(77, 168, 255, .25);
}

/* -- mascot band -- */
.mascot-band { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; }
.mascot-stage {
  flex: 0 0 auto; width: 240px; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 45%, rgba(53,226,245,.12), transparent 65%);
  border-radius: 50%;
}
@media (max-width: 760px) { .hero.cine { min-height: 84vh; } .mascot-stage { margin: 0 auto; } }

/* ================= cinematic v2 — realistic scene, alive mascot ================= */

/* nav pills like a real product */
.site-nav nav .btn.small { margin-left: .3rem; }

/* HUD telemetry strip (real values only: clock + live counts) */
.hud-tele {
  position: absolute; top: 5.4rem; right: 4vw; z-index: 2;
  display: flex; flex-direction: column; gap: .35rem; align-items: flex-end;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em;
  color: var(--ink-mute); text-transform: uppercase;
}
.hud-tele b { color: var(--cyan); font-weight: 600; }
.hud-tele span { border: 1px solid rgba(53,226,245,.18); border-radius: 6px; padding: .35em .7em; background: rgba(8,13,28,.55); backdrop-filter: blur(4px); }
@media (max-width: 979px) { .hud-tele { display: none; } }

/* corner brackets framing the hero copy — quiet HUD feel */
.hero-copy.hud { padding: 2rem 2.2rem; position: relative; }
.hero-copy.hud::before, .hero-copy.hud::after {
  content: ""; position: absolute; width: 26px; height: 26px; opacity: .7;
}
.hero-copy.hud::before { top: 0; left: 0; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hero-copy.hud::after { bottom: 0; right: 0; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

/* the typed word + caret */
.typed-line { color: var(--blue); white-space: nowrap; }
.typed-line .caret {
  display: inline-block; width: .09em; height: .95em; margin-left: .08em;
  background: var(--cyan); vertical-align: -0.08em;
  animation: caretBlink 1.05s steps(1) infinite;
}
@keyframes caretBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* mascot fully alive: bob + wave + blink + jet (all off under reduced motion) */
.mascot svg * { transform-box: fill-box; }
.mascot .ms-armgrp { transform-origin: 0% 100%; }
.mascot.fly .ms-armgrp { animation: astroWave 4.6s ease-in-out infinite; }
@keyframes astroWave {
  0%, 74%, 100% { transform: rotate(0deg); }
  80% { transform: rotate(-26deg); }
  86% { transform: rotate(10deg); }
  92% { transform: rotate(-18deg); }
}
.mascot.fly .ms-eye { animation: astroBlink 3.8s infinite; transform-origin: center; }
@keyframes astroBlink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }

/* discipline strip with honest stage chips */
.disc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.disc-grid .panel h3 { margin-top: .2em; }
.disc-grid .chip { margin-top: .6rem; }

/* closing CTA */
.cta-panel {
  text-align: center; padding: 3.2rem 1.6rem; border-radius: 20px;
  border: 1px solid rgba(77,168,255,.3);
  background:
    radial-gradient(600px 220px at 50% -40%, rgba(77,168,255,.18), transparent 70%),
    var(--deep);
}
.cta-panel h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }

/* footer columns */
.site-footer .cols4 { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: start; }
.site-footer h4 { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .24em; color: var(--ink-mute); margin: 0 0 .9em; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .45em 0; }
.site-footer .foot-brand p { font-size: .85rem; margin-top: .8rem; }
.site-footer .legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-mute); }
@media (max-width: 820px) { .site-footer .cols4 { grid-template-columns: 1fr 1fr; } }

/* headline words never break mid-word; slightly tighter hero type */
[data-split] .wrd { display: inline-block; white-space: nowrap; }
.hero.cine h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.hero-copy { max-width: 660px; }

/* nav pill buttons keep button ink (nav link color must not bleach them) */
.site-nav nav a.btn { color: #04121f; }
.site-nav nav a.btn.ghost { color: var(--ink); }
.site-nav nav a.btn:hover { color: #04121f; }
.site-nav nav a.btn.ghost:hover { color: var(--ink); }

/* ================= cinematic v3 — more alive ================= */

/* mission ticker — real database items scrolling under the hero */
.ticker {
  border-block: 1px solid var(--line); background: rgba(8,13,28,.7);
  overflow: hidden; white-space: nowrap; position: relative;
}
.ticker-track {
  display: inline-flex; gap: 3.2rem; padding: .62em 0;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em;
  color: var(--ink-soft); animation: tickerScroll 36s linear infinite;
  will-change: transform;
}
.ticker-track span { flex-shrink: 0; }
.ticker-track span::first-letter { color: var(--cyan); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Astro occasionally flies right through the hero */
#astro-flyby {
  position: absolute; left: 0; top: 0; z-index: 3;
  pointer-events: none; opacity: 0; will-change: transform;
}
#astro-flyby .mascot { filter: drop-shadow(0 6px 18px rgba(53,226,245,.25)); }

/* holographic tilt cards */
.card-lift { will-change: transform; }

/* count-up numbers get tabular digits so they don't jitter */
.stat-band strong { font-variant-numeric: tabular-nums; }

/* ---- sign-in: stacked provider buttons + divider (NYT-style layout) ---- */
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .78em 1em; margin-bottom: .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(13, 22, 38, .72); color: var(--ink);
  font-weight: 650; font-size: .95rem; text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.sso-btn:hover { border-color: var(--blue); background: rgba(97, 175, 255, .1); transform: translateY(-1px); text-decoration: none; }
.or-div {
  display: flex; align-items: center; gap: .8rem; margin: 1rem 0;
  color: var(--ink-mute); font-size: .8rem;
}
.or-div::before, .or-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- animated role badges ---- */
.role-chip {
  display: inline-flex; align-items: center; gap: .38em;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 600; letter-spacing: .14em;
  padding: .3em .7em; border-radius: 999px; border: 1px solid;
  position: relative; overflow: hidden; vertical-align: middle; line-height: 1.4;
}
.role-chip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: chipSheen 4.2s ease-in-out infinite;
}
.role-chip .r-ico { font-size: .85em; line-height: 1; }
.role-chip.r-founder { color: #ffd77a; border-color: rgba(255, 200, 90, .55); background: linear-gradient(135deg, rgba(120, 84, 10, .5), rgba(60, 40, 6, .55)); text-shadow: 0 0 8px rgba(255, 200, 90, .4); }
.role-chip.r-founder .r-ico { animation: crownTwinkle 2.6s ease-in-out infinite; }
.role-chip.r-oc { color: #7be8ff; border-color: rgba(80, 210, 255, .5); background: linear-gradient(135deg, rgba(10, 84, 110, .5), rgba(6, 40, 60, .55)); }
.role-chip.r-oc .r-ico { animation: boltPulse 1.8s ease-in-out infinite; }
.role-chip.r-mentor { color: #cdb4ff; border-color: rgba(170, 130, 255, .5); background: linear-gradient(135deg, rgba(74, 40, 130, .5), rgba(34, 18, 60, .55)); }
.role-chip.r-member { color: #8fc6ff; border-color: rgba(97, 175, 255, .45); background: linear-gradient(135deg, rgba(18, 60, 110, .5), rgba(10, 28, 52, .55)); }
.role-chip.r-explorer { color: var(--ink-soft); border-color: var(--line); background: rgba(20, 30, 48, .6); }
@keyframes chipSheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes crownTwinkle { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.18) rotate(-6deg); filter: brightness(1.5); } }
@keyframes boltPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); filter: brightness(1.6); } }

/* ---- logo orb: the club mark, given the stage it deserves ---- */
.logo-orb {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, rgba(90, 160, 245, .45), rgba(16, 30, 55, .92) 72%);
  border: 1px solid rgba(120, 180, 255, .35);
  box-shadow: 0 0 18px rgba(70, 150, 255, .25), inset 0 0 14px rgba(70, 150, 255, .18);
}
.logo-orb::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(140, 200, 255, .7); border-right-color: rgba(140, 200, 255, .18);
  animation: orbSpin 6s linear infinite;
}
.logo-orb .logo-img { height: 36px; filter: brightness(1.75) contrast(1.2) drop-shadow(0 0 7px rgba(190, 225, 255, .85)); }
.brand:hover .logo-orb { box-shadow: 0 0 26px rgba(90, 170, 255, .45), inset 0 0 16px rgba(90, 170, 255, .3); }
@keyframes orbSpin { to { transform: rotate(360deg); } }
.site-footer .logo-img { height: 52px; filter: drop-shadow(0 0 10px rgba(150, 200, 255, .35)); }

/* ---- news cards with images ---- */
.feed-grid > * { opacity: 0; transform: translateY(14px); animation: feedIn .55s cubic-bezier(.2, .9, .3, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes feedIn { to { opacity: 1; transform: none; } }
.news-card.pic { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card.pic .thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(140deg, #0c1a30, #10233f 60%, #0a1526);
}
.news-card.pic .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.news-card.pic:hover .thumb img { transform: scale(1.06); }
.news-card.pic .thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: rgba(140, 190, 255, .4); }
.news-card.pic .site-tag {
  position: absolute; left: .7rem; bottom: .6rem;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(4, 10, 20, .78); color: #9fd0ff; border: 1px solid rgba(120, 180, 255, .3);
  padding: .3em .7em; border-radius: 999px; backdrop-filter: blur(4px);
}
.news-card.pic h3 { margin: .85rem 1rem .3rem; font-size: 1rem; }
.news-card.pic p { margin: 0 1rem .6rem; font-size: .85rem; }
.news-card.pic .read-more { margin: auto 1rem .9rem; font-size: .6rem; letter-spacing: .16em; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.news-card.pic:hover .read-more { opacity: 1; transform: none; }

/* ---- robotics rows ---- */
.tech-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(11, 20, 36, .6); color: var(--ink); text-decoration: none;
  border-left: 3px solid rgba(80, 210, 255, .55);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.tech-row:hover { transform: translateX(6px); border-color: var(--blue); background: rgba(16, 30, 54, .8); text-decoration: none; }
.tech-row .rank { font-size: 1.05rem; font-weight: 700; color: rgba(120, 190, 255, .55); }
.tech-row .t-meta { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tech-row .t-meta strong { font-size: .95rem; }
.tech-row .t-meta small { font-size: .56rem; letter-spacing: .14em; color: var(--ink-mute); }
.tech-row .pts { margin-left: auto; flex: none; color: #ffb45c; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) {
  .feed-grid > * { opacity: 1; transform: none; animation: none; }
  .role-chip::after, .role-chip .r-ico, .logo-orb::before { animation: none !important; }
}
.sso-btn.soon { cursor: default; opacity: .55; filter: grayscale(.4); }
.sso-btn.soon:hover { transform: none; border-color: var(--line); background: rgba(13, 22, 38, .72); }
.sso-btn .chip.planned { margin-left: .3rem; font-size: .5rem; }

/* hero logo orb on auth pages */
.logo-orb.orb-lg { width: 76px; height: 76px; }
.logo-orb.orb-lg .logo-img { height: 56px; }
.logo-orb.orb-lg::before { animation-duration: 9s; }
