/* Universal High Income — $UHI  |  orbital ident / world premiere */
:root {
  --void: #000;
  --ink: #e8edf4;
  --muted: #9aa3b2;
  --dim: #6b7380;
  --chrome1: #ffffff;
  --chrome2: #c5cdd8;
  --chrome3: #8b939f;
  --flare: #f4f7ff;
  --strike: #ff4d4d;
  --glow: rgba(210, 225, 255, 0.45);
  --safe: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  background: var(--void);
  color: var(--ink);
  max-width: 100%;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
  font-family: Syne, system-ui, sans-serif;
  min-height: 100dvh;
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; }

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.ident-flare {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: radial-gradient(circle at 50% 42%, #fff 0%, rgba(255,255,255,.55) 18%, transparent 55%);
  opacity: 0;
  mix-blend-mode: screen;
}

.ident-flare.boom {
  animation: flareBoom 0.7s ease-out;
}

@keyframes flareBoom {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

.stage { position: relative; z-index: 1; width: 100%; max-width: 100%; }

/* ========== IDENT ========== */
.ident {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px calc(18px + var(--safe));
  overflow: hidden;
}

.ident-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(40, 60, 110, 0.35), transparent 55%),
    url("../assets/starfield.jpg") center / cover no-repeat;
  opacity: 0.7;
  pointer-events: none;
  transform: scale(1.08);
  animation: skyDrift 80s linear infinite;
}

@keyframes skyDrift {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  50% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.08) translate3d(0, 0, 0); }
}

.ident-presents {
  position: relative;
  z-index: 2;
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: #c9d0da;
  text-align: center;
  padding: 6px 8px 0;
  opacity: 0;
  transform: translateY(-8px);
}

.ident-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: center;
  width: 100%;
}

.globe-rig {
  --g: min(72vw, 228px);
  width: var(--g);
  height: var(--g);
  position: relative;
  cursor: grab;
  touch-action: none;
  transform: scale(0.18) rotate(-18deg);
  filter: blur(18px) brightness(1.4);
  opacity: 0;
  perspective: 700px;
  transform-style: preserve-3d;
}

.globe-rig:active { cursor: grabbing; }

.globe-spin,
.earth,
.wire,
.wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  user-select: none;
}

.globe-spin { overflow: hidden; }

.earth {
  object-fit: cover;
  transform: scale(1.04);
  animation: none;
}

.wire {
  mix-blend-mode: screen;
  opacity: 0.82;
  pointer-events: none;
  animation: wireSpin 48s linear infinite;
}

@keyframes wireSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wordmark {
  border-radius: 0;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.35));
  z-index: 3;
  transform: scale(1.04);
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1.5px solid rgba(230, 236, 245, 0.0);
  border-top-color: rgba(255,255,255,0.9);
  border-left-color: rgba(255,255,255,0.15);
  border-right-color: rgba(255,255,255,0.15);
  border-bottom-color: rgba(180, 190, 210, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  transform-style: preserve-3d;
}
.ring-a {
  width: 132%;
  height: 44%;
  margin: -22% 0 0 -66%;
  box-shadow: 0 0 12px rgba(255,255,255,0.25), inset 0 0 8px rgba(255,255,255,0.15);
  animation: ringA 10s linear infinite;
}
.ring-b {
  width: 122%;
  height: 36%;
  margin: -18% 0 0 -61%;
  border-top-color: rgba(255,255,255,0.65);
  animation: ringB 16s linear infinite;
}
.ring-c {
  width: 148%;
  height: 30%;
  margin: -15% 0 0 -74%;
  border-top-color: rgba(255,255,255,0.4);
  opacity: 0.85;
  animation: ringC 22s linear infinite;
}
@keyframes ringA {
  from { transform: rotateX(68deg) rotateZ(-18deg) rotate(0deg); }
  to   { transform: rotateX(68deg) rotateZ(-18deg) rotate(360deg); }
}
@keyframes ringB {
  from { transform: rotateX(64deg) rotateZ(24deg) rotate(0deg); }
  to   { transform: rotateX(64deg) rotateZ(24deg) rotate(-360deg); }
}
@keyframes ringC {
  from { transform: rotateX(72deg) rotateZ(-8deg) rotate(0deg); }
  to   { transform: rotateX(72deg) rotateZ(-8deg) rotate(360deg); }
}

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 8px 3px #fff, 0 0 22px 6px rgba(255,255,255,0.7);
}
.spark::before,
.spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.spark::before { width: 26px; height: 1.5px; }
.spark::after { width: 1.5px; height: 26px; }
.s1 { top: 12%; right: 4%; animation: tw 2.2s ease-in-out infinite; }
.s2 { bottom: 16%; left: 0; animation: tw 2.8s ease-in-out 0.4s infinite; }
.s3 { top: 42%; right: -6%; animation: tw 1.8s ease-in-out 0.8s infinite; }
.s4 { top: 8%; left: 18%; width: 6px; height: 6px; animation: tw 3.1s ease-in-out 0.2s infinite; }
@keyframes tw {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

.ident-titles {
  text-align: center;
  max-width: 100%;
  padding: 0 6px;
  opacity: 0;
  transform: translateY(16px);
}

.ident-titles h1 {
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-weight: 900;
  font-size: clamp(22px, 8.2vw, 34px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #d7dee8 22%, #fff 40%, #8e97a5 58%, #f6f8fb 76%, #6d7582 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.28));
}

.ticker {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.18em;
  margin-top: 4px;
  background: linear-gradient(90deg, #9aa3b0, #fff 40%, #c9d1dc 60%, #fff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  color: #c5ccd6;
  margin-top: 2px;
}

/* Unique button shapes — never the same twice */
.orbit-btns {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  width: min(100%, 380px);
  padding: 8px 2px 4px;
  align-items: stretch;
}

.btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px 14px;
  color: #0a0a0c;
  text-align: center;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(.2,1.4,.3,1), filter 0.2s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #fff 0%, #d5dce6 35%, #9aa4b1 55%, #f3f5f8 80%, #7c8592 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 8px 22px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.8);
}

.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.96) !important; }

.btn-k {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
}
.btn-v {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* 1. perforated ticket stub, tilted */
.btn-buy { transform: rotate(-6deg); }
.btn-buy::before {
  clip-path: polygon(
    0% 0%, 100% 0%,
    100% 28%, 90% 34%, 90% 66%, 100% 72%,
    100% 100%, 0% 100%,
    0% 72%, 10% 66%, 10% 34%, 0% 28%
  );
  background: linear-gradient(135deg, #fff 0%, #ffe8a3 30%, #c9a227 55%, #fff3c4 78%, #8a7018 100%);
}
.btn-buy:hover { transform: rotate(-6deg) translateY(-3px) scale(1.04); }

/* 2. luggage-tag / dog-tag plaque */
.btn-ca { transform: rotate(3deg); }
.btn-ca::before {
  border-radius: 40px 10px 10px 40px;
  background: linear-gradient(180deg, #f4f6f8 0%, #b8c0ca 40%, #7e8792 52%, #e8edf2 100%);
}
.btn-ca .btn-v {
  font-size: 11px;
  letter-spacing: 0.08em;
  word-break: break-all;
  max-width: 100%;
}
.btn-ca:hover { transform: rotate(3deg) translateY(-3px) scale(1.04); }

/* 3. chrome diamond flare — square-ish so the X stays readable */
.btn-x {
  transform: rotate(0deg);
  color: #0a0a0c;
  justify-self: center;
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1.15 / 1;
  min-height: 72px;
}
.btn-x::before {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: linear-gradient(160deg, #fff 0%, #d7dee8 28%, #8e97a5 52%, #f7f9fc 78%, #6d7582 100%);
  box-shadow: 0 0 22px rgba(255,255,255,0.45);
}
.btn-x .btn-v { font-size: 22px; letter-spacing: 0.14em; }
.btn-x:hover { transform: rotate(8deg) scale(1.08); }

/* 4. chevron / arrow badge */
.btn-chart { transform: rotate(5deg); }
.btn-chart::before {
  clip-path: polygon(0 18%, 62% 18%, 62% 0, 100% 50%, 62% 100%, 62% 82%, 0 82%);
  background: linear-gradient(90deg, #c8d4e4, #fff 40%, #8ea0b8 70%, #eef3f8);
}
.btn-chart:hover { transform: rotate(5deg) translateX(4px) scale(1.04); }

.enter-orbit {
  position: relative;
  z-index: 3;
  display: inline-block;
  margin-top: 4px;
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d5dbe4;
  padding: 8px 4px 2px;
  animation: cuePulse 2.2s ease-in-out infinite;
}
.enter-orbit::after {
  content: "";
  display: block;
  width: 1px;
  height: 16px;
  margin: 6px auto 0;
  background: linear-gradient(#fff, transparent);
}
@keyframes cuePulse {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* Ident arrival sequence */
.ident.is-arriving .ident-presents,
.ident.is-arriving .ident-titles,
.ident.is-arriving .orbit-btns,
.ident.is-arriving .enter-orbit { opacity: 0; }

.ident.is-locked .globe-rig {
  animation: identArrive 1.7s cubic-bezier(.14,.82,.2,1) forwards;
}
.ident.is-locked .ident-presents {
  animation: fadeUp 0.7s 1.15s ease forwards;
}
.ident.is-locked .ident-titles {
  animation: fadeUp 0.8s 1.55s ease forwards;
}
.ident.is-locked .orbit-btns .btn-buy { animation: btnIn 0.7s 1.9s cubic-bezier(.2,1.4,.3,1) both; }
.ident.is-locked .orbit-btns .btn-ca { animation: btnIn 0.7s 2.05s cubic-bezier(.2,1.4,.3,1) both; }
.ident.is-locked .orbit-btns .btn-x { animation: btnIn 0.7s 2.2s cubic-bezier(.2,1.4,.3,1) both; }
.ident.is-locked .orbit-btns .btn-chart { animation: btnIn 0.7s 2.35s cubic-bezier(.2,1.4,.3,1) both; }
.ident.is-locked .enter-orbit { animation: fadeUp 0.6s 2.5s ease forwards; }

@keyframes identArrive {
  0% { transform: scale(0.18) rotate(-18deg); filter: blur(18px) brightness(1.8); opacity: 0; }
  70% { opacity: 1; filter: blur(0) brightness(1.3); }
  100% { transform: scale(1) rotate(0deg); filter: blur(0) brightness(1); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes btnIn {
  from { opacity: 0; translate: 0 24px; scale: 0.55; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

.ident.is-instant .globe-rig,
.ident.is-instant .ident-presents,
.ident.is-instant .ident-titles,
.ident.is-instant .orbit-btns .btn,
.ident.is-instant .enter-orbit {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

/* ========== CORRECTION / INTERTITLE ========== */
.correction {
  padding: 56px 16px 72px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80, 40, 40, 0.28), transparent 42%),
    linear-gradient(180deg, #000 0%, #07080c 40%, #000 100%);
  overflow: hidden;
}

.card-index {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dim);
  margin-bottom: 18px;
}

.intertitle {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.intertitle .inter-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: -6%;
}
.intertitle .inter-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  text-align: center;
  padding: 12px 8px 8px;
  margin-top: 0;
}

.inter-frame {
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.18));
  animation: frameGlow 4s ease-in-out infinite;
}
@keyframes frameGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255,255,255,0.12)); }
  50% { filter: drop-shadow(0 0 28px rgba(255,255,255,0.32)); }
}

/* copy position set on .intertitle .inter-copy */

.was-label, .then-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.handle { font-family: Syne, sans-serif; letter-spacing: 0.04em; color: #c5ccd6; }

.was-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(16px, 4.6vw, 28px);
  color: #d8dde6;
  margin: 8px 0 16px;
  line-height: 1.2;
}

.strike {
  position: relative;
  background: none;
}
.strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 3px;
  background: var(--strike);
  box-shadow: 0 0 10px var(--strike);
  transform: scaleX(0);
  transform-origin: left;
}
.correction.is-in .strike::after {
  animation: slash 0.7s 0.3s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes slash { to { transform: scaleX(1); } }

.then-label { margin-bottom: 6px; }

.correction-lockup {
  font-family: Unbounded, sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 7.2vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #d5dce6 25%, #fff 42%, #8b949f 60%, #fff 80%, #6a7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,255,255,0.35));
  text-wrap: balance;
}
.correction.is-in .correction-lockup {
  animation: slam 0.85s 0.7s cubic-bezier(.15,1.3,.3,1) both;
}
@keyframes slam {
  0% { opacity: 0; transform: scale(1.5); filter: blur(10px) brightness(2.2) drop-shadow(0 0 22px #fff); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1) drop-shadow(0 0 22px rgba(255,255,255,0.35)); }
}

.thread-grid {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.xcard {
  display: block;
  background: #0c0d10;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px 8px 22px 14px;
  padding: 18px 16px 16px;
  transform: rotate(-1.5deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.3s ease, border-color 0.2s;
}
.xcard:hover { transform: rotate(0deg) translateY(-4px); border-color: rgba(255,255,255,0.32); }

.xcard-h {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 44px;
}
.xcard-h .name { font-weight: 800; font-size: 14px; }
.xcard-h .who { font-size: 12px; color: var(--muted); }
.xmark {
  margin-left: auto;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 16px;
  opacity: 0.7;
}
.xcard-mention { font-size: 12px; color: var(--dim); margin: 10px 0 6px; }
.xcard-text {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.xcard-meta { margin-top: 12px; font-size: 11px; color: var(--dim); line-height: 1.4; }
.xcard-go { margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #dfe6f0; }

.still { margin: 0; transform: rotate(1.8deg); }
.film {
  display: flex;
  background: #111;
  padding: 0;
  box-shadow: 0 24px 50px rgba(0,0,0,0.55);
}
.sprockets {
  width: 16px;
  flex: 0 0 16px;
  background:
    repeating-linear-gradient(
      to bottom,
      #111 0 6px,
      #111 6px 10px,
      transparent 10px 18px,
      #111 18px 24px
    ),
    #0a0a0a;
  box-shadow: inset 0 0 0 1px #222;
  position: relative;
}
.sprockets::before {
  content: "";
  position: absolute;
  inset: 4px 4px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 8px,
    #000 8px 16px
  );
  border-radius: 2px;
}
.film img { width: 100%; height: auto; display: block; flex: 1 1 auto; }
.still figcaption {
  margin-top: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  line-height: 1.45;
  color: #c7ced8;
}
.still figcaption em { color: #fff; font-style: italic; }
.still figcaption a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ========== ORBIT REEL ========== */
.reel {
  padding: 20px 16px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(50, 70, 120, 0.28), transparent 40%),
    radial-gradient(ellipse at 10% 80%, rgba(80, 60, 20, 0.18), transparent 40%),
    #000;
}

.reel-track {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  position: relative;
}

.reel-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 8%;
  top: 8%;
  bottom: 8%;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 50% 40% 55% 45%;
  pointer-events: none;
  transform: rotate(-8deg);
  animation: pathSpin 60s linear infinite;
}
@keyframes pathSpin { to { transform: rotate(352deg); } }

.sat {
  position: relative;
  padding: 22px 20px 20px;
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.sat-k {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sat h3 {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.sat-b { font-size: 14px; line-height: 1.5; color: #c5ccd6; }
.sat-b strong { color: #fff; font-weight: 800; }

.sat-launch {
  border-radius: 8px 40px 12px 28px;
  transform: rotate(-1deg);
}
.sat-broadcast {
  border-radius: 32px 8px 40px 16px;
  transform: rotate(1.4deg);
  background: linear-gradient(160deg, rgba(20,24,36,0.9), rgba(8,8,10,0.85));
}
.sat-defaults {
  border-radius: 6px 6px 40px 6px;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 100%, 0 100%);
  transform: rotate(-0.6deg);
}
.sat-origin {
  border-radius: 50px 12px 50px 12px;
  transform: rotate(1deg);
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.08), transparent 30%),
    rgba(10,12,16,0.82);
}

.ca-line {
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ca-line code {
  font-family: Unbounded, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  background: #16181d;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 4px;
  word-break: break-all;
}

.sat-actions, .chip { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0c0e;
  background: linear-gradient(180deg, #fff, #b9c2ce);
}
.chip-copy { border-radius: 3px 14px 3px 14px; transform: rotate(-2deg); }
.chip-pump { border-radius: 20px 4px; transform: rotate(2deg); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.chip-x { border-radius: 50% 8px 50% 8px; padding: 12px 22px; }
.chip:hover { filter: brightness(1.1); }

/* ========== END CARD ========== */
.endcard {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px calc(32px + var(--safe));
  overflow: hidden;
}

.theater {
  position: absolute;
  inset: 0;
  background: url("../assets/theater.jpg") center 40% / cover no-repeat;
  transform: scale(1.08);
  animation: theaterPan 28s ease-in-out infinite alternate;
  filter: brightness(0.55) contrast(1.1);
  pointer-events: none;
}
@keyframes theaterPan {
  from { background-position: center 30%; transform: scale(1.06); }
  to { background-position: center 55%; transform: scale(1.12); }
}

.end-screen {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  text-align: center;
  padding: 28px 16px 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55), 0 0 18px rgba(0,0,0,0.35);
}
.end-screen .btn,
.end-screen .btn-k,
.end-screen .btn-v { text-shadow: none; }

.end-banner {
  width: min(100%, 640px);
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.25));
  animation: endFloat 6s ease-in-out infinite;
}
@keyframes endFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.015); }
}

.end-tick {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  letter-spacing: 0.28em;
  margin-top: 4px;
}
.end-line {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 18px;
}

.end-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-bottom: 22px;
}
.end-btns .btn {
  min-height: 48px;
  min-width: 108px;
  color: #0a0a0c;
}
.end-btns .btn-x {
  color: #0a0a0c;
  max-width: 92px;
  min-width: 92px;
  aspect-ratio: 1;
  min-height: 0;
}

.disclaimer {
  font-size: 11px;
  line-height: 1.55;
  color: #d5dbe4;
  max-width: 560px;
  margin: 0 auto;
  text-shadow: 0 1px 8px #000, 0 0 12px #000;
}

/* Toast */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe));
  transform: translate(-50%, 20px);
  z-index: 30;
  max-width: min(92vw, 420px);
  background: #0f1116;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.08);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  border-radius: 6px 18px 6px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Reveals */
.correction .intertitle,
.correction .xcard,
.correction .still,
.sat {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.is-in.correction .intertitle,
.xcard.is-in,
.still.is-in,
.sat.is-in {
  opacity: 1;
  transform: none;
}

/* ========== DESKTOP ========== */
@media (min-width: 760px) {
  .ident { padding: 18px 32px 24px; }

  .ident-presents { font-size: 11px; letter-spacing: 0.58em; }

  .ident-stage {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    width: min(100%, 1200px);
    padding: 0 12px;
  }

  .globe-rig { --g: min(46vh, 460px); }

  .ident-titles { text-align: left; max-width: 420px; }
  .ident-titles h1 { font-size: clamp(40px, 5.4vw, 72px); }

  .ticker { font-size: 28px; }
  .tagline { font-size: 22px; }

  .orbit-btns {
    width: min(100%, 820px);
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 4px;
  }

  .btn { min-height: 72px; }
  .btn-v { font-size: 15px; }
  .btn-ca .btn-v { font-size: 13px; }

  .intertitle { display: grid; }
  .intertitle .inter-frame,
  .intertitle .inter-copy {
    grid-area: 1 / 1;
    margin: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
  }
  .intertitle .inter-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8% 16% 10%;
    height: auto;
  }

  .thread-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 36px;
    align-items: start;
  }

  .xcard { padding: 22px; }

  .reel-track {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px 28px;
    padding: 20px 0;
  }
  .sat-launch { grid-column: 1 / 2; }
  .sat-broadcast { grid-column: 2 / 3; margin-top: 36px; }
  .sat-defaults { grid-column: 1 / 2; margin-left: 8%; }
  .sat-origin { grid-column: 2 / 3; margin-top: -12px; }

  .end-screen { padding: 40px 36px 32px; }
}

@media (min-width: 1100px) {
  .globe-rig { --g: min(52vh, 540px); }
  .ident-titles { max-width: 500px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ident-sky, .wire, .ring-a, .ring-b, .ring-c, .spark, .ticker,
  .enter-orbit, .inter-frame, .end-banner, .theater, .reel-track::before {
    animation: none !important;
  }
  .ident .globe-rig,
  .ident .ident-presents,
  .ident .ident-titles,
  .ident .orbit-btns .btn,
  .ident .enter-orbit,
  .correction-lockup,
  .strike::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .strike::after { transform: scaleX(1) !important; }
  .correction .intertitle,
  .correction .xcard,
  .correction .still,
  .sat { opacity: 1; transform: none; }
}

/* Very short phones */
@media (max-height: 700px) and (max-width: 759px) {
  .globe-rig { --g: min(52vw, 170px); }
  .ident-titles h1 { font-size: 20px; }
  .ticker { font-size: 16px; }
  .tagline { font-size: 12px; }
  .btn { min-height: 50px; padding: 6px 10px; }
  .ident { padding-top: 6px; }
}
