/* ============================================================
   Worx | services.css
   The cinematic services page. One fixed starfield behind a
   film in chapters: launch, manifesto, fleet (horizontal ride
   through six animated scenes), field footage wall, marquee,
   flight plan (the Worx sequence) and ignition.
   Hidden start states only apply once services.js adds
   .cx-ready to <html>, so the page reads fine without JS.
   ============================================================ */

.cx-page {
  background-image: none;
  --hud: rgba(254, 238, 207, 0.55);
  --hud-dim: rgba(254, 238, 207, 0.28);
}

.cx-main,
.cx-page .site-footer {
  position: relative;
  z-index: 1;
}

.cx-page .site-header:not(.is-scrolled) {
  background: transparent;
}

/* ---- Fixed cinematic layers ------------------------------- */

.cx-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(229, 125, 35, 0.14), transparent 70%),
    radial-gradient(900px 600px at 0% 100%, rgba(192, 69, 39, 0.1), transparent 70%),
    var(--ink);
}

.cx-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cx-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.cx-grain {
  position: fixed;
  inset: -50%;
  z-index: 95;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: cx-grain 0.9s steps(6) infinite;
}

@keyframes cx-grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -8%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}

/* Letterbox bars: closed on load, open with the intro */
.cx-letterbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: none;
}

.cx-ready .cx-letterbox {
  display: block;
}

.cx-letterbox span {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5vh;
  background: #050201;
}

.cx-letterbox span:first-child { top: 0; }
.cx-letterbox span:last-child { bottom: 0; }

/* ---- Left HUD: comms rail ----------------------------------- */

.cx-comms {
  position: fixed;
  left: clamp(14px, 2vw, 28px);
  top: 50%;
  z-index: 90;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--hud);
}

.cx-comms-tag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--accent-2);
}

.cx-comms-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.cx-comms-signal i {
  width: 3px;
  background: var(--accent-2);
  animation: cx-signal 1.6s ease-in-out infinite;
}

.cx-comms-signal i:nth-child(1) { height: 30%; animation-delay: 0s; }
.cx-comms-signal i:nth-child(2) { height: 50%; animation-delay: 0.15s; }
.cx-comms-signal i:nth-child(3) { height: 70%; animation-delay: 0.3s; }
.cx-comms-signal i:nth-child(4) { height: 85%; animation-delay: 0.45s; }
.cx-comms-signal i:nth-child(5) { height: 100%; animation-delay: 0.6s; }

@keyframes cx-signal {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.cx-comms-line {
  position: relative;
  width: 1px;
  height: clamp(40px, 8vh, 80px);
  background: var(--hud-dim);
  overflow: hidden;
}

/* A data packet travelling down the wire */
.cx-comms-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -30%;
  width: 1px;
  height: 30%;
  background: linear-gradient(transparent, var(--accent-2));
  animation: cx-packet 2.4s linear infinite;
}

.cx-comms-line:last-of-type::after {
  animation-delay: 1.2s;
}

@keyframes cx-packet {
  to { top: 100%; }
}

.cx-comms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cx-comms-list a {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(21, 9, 5, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* HUD corner ticks on each button */
.cx-comms-list a::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 13px;
  background:
    linear-gradient(var(--accent-2), var(--accent-2)) top left / 6px 1px,
    linear-gradient(var(--accent-2), var(--accent-2)) top left / 1px 6px,
    linear-gradient(var(--accent-2), var(--accent-2)) bottom right / 6px 1px,
    linear-gradient(var(--accent-2), var(--accent-2)) bottom right / 1px 6px;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.25s ease, inset 0.25s ease;
}

.cx-comms-list a:hover,
.cx-comms-list a:focus-visible {
  border-color: var(--accent-2);
  background: rgba(250, 167, 25, 0.12);
  color: var(--accent-2);
  transform: translateX(3px);
}

.cx-comms-list a:hover::before,
.cx-comms-list a:focus-visible::before {
  opacity: 1;
  inset: -7px;
}

.cx-comms-list svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cx-comms-tip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid rgba(250, 167, 25, 0.4);
  border-radius: 6px;
  background: rgba(21, 9, 5, 0.85);
  color: var(--accent-2);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translate(-6px, -50%);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cx-comms-list a:hover .cx-comms-tip,
.cx-comms-list a:focus-visible .cx-comms-tip {
  opacity: 1;
  transform: translate(0, -50%);
}

.cx-comms-freq {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.cx-comms-freq b {
  color: var(--text);
  font-weight: 500;
}

.cx-comms-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--hud-dim);
}

.cx-comms-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(250, 167, 25, 0.75);
  animation: cx-blink 1.4s ease-in-out infinite;
}

@keyframes cx-blink {
  50% { opacity: 0.2; }
}

/* ---- Right HUD: altimeter ------------------------------------ */

.cx-alt {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  top: 50%;
  z-index: 90;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 14px;
  align-items: stretch;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--hud);
}

.cx-alt-read {
  grid-column: 1 / -1;
  justify-self: end;
}

.cx-alt-read b {
  color: var(--accent-2);
  font-weight: 500;
}

.cx-alt-scale {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  width: 10px;
  min-height: 180px;
  background:
    repeating-linear-gradient(to bottom, var(--hud-dim) 0 1px, transparent 1px 8px) right / 6px 100% no-repeat;
}

.cx-alt-scale span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 100%;
  background: var(--gradient);
  transform-origin: bottom;
  transform: scaleY(var(--p, 0));
}

.cx-alt-list {
  grid-column: 1;
  grid-row: 2;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-align: right;
}

.cx-alt-list a {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  color: var(--hud-dim);
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.cx-alt-list a span {
  opacity: 0.6;
}

.cx-alt-list a:hover,
.cx-alt-list a.is-active {
  color: var(--accent-2);
}

@media (max-width: 1100px) {
  .cx-alt { display: none; }
}

@media (max-width: 900px) {
  .cx-comms {
    top: auto;
    bottom: 16px;
    left: 16px;
    transform: none;
    flex-direction: row;
  }

  .cx-comms-tag,
  .cx-comms-freq,
  .cx-comms-status,
  .cx-comms-line,
  .cx-comms-signal,
  .cx-comms-tip {
    display: none;
  }

  .cx-comms-list {
    flex-direction: row;
  }
}

/* tablets: the icons sit in the bottom-left corner, so the corner's
   coordinates readout steps up above them */
@media (min-width: 721px) and (max-width: 900px) {
  .cx-hud .cx-hud-corner--bl { bottom: 50px; }
}

/* phones on their side: the hero fills the screen edge to edge and the
   icons would sit on its copy (the footer carries the same links) */
@media (max-width: 900px) and (max-height: 500px) {
  .cx-comms { display: none; }
}

/* ---- 00 Launch (hero) ---------------------------------------- */

.cx-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0 18vh;
  text-align: center;
}

/* Background: a dark planet rising over the bottom edge, lit from
   behind like an eclipse. Used when WebGL is unavailable. */

.cx-hero-sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(8, 3, 1, 0.55) 100%);
}

.cx-hero-glow {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 30%;
  width: min(900px, 110vw);
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(192, 69, 39, 0.22), transparent 70%);
  filter: blur(30px);
}

.cx-eclipse {
  --size: max(170vw, 1500px);
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 78%;
  width: var(--size);
  aspect-ratio: 1;
  margin-left: calc(var(--size) / -2);
  pointer-events: none;
}

.cx-eclipse-planet,
.cx-eclipse-flare {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff6e4;
  box-shadow: 0 0 20px 6px rgba(250, 167, 25, 0.9), 0 0 80px 30px rgba(229, 125, 35, 0.45);
  animation: cx-flare 5s ease-in-out infinite;
}

.cx-eclipse-flare::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 90vw);
  height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(254, 238, 207, 0.9) 50%, transparent);
  filter: blur(0.5px);
}

@keyframes cx-flare {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
}

.cx-hero-gl {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cx-gl-on .cx-eclipse,
.cx-gl-on .cx-hero-glow {
  display: none;
}

/* the hand-over: the hero's foot falls into the page's ink (no seam),
   and the sun's light washes the screen as the manifesto arrives */
.cx-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 22vh;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}

.cx-transit {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 70% 55% at var(--sx, 50%) 100%, rgba(255, 196, 120, 0.55), rgba(229, 125, 35, 0.22) 45%, transparent 75%),
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(192, 69, 39, 0.35), transparent 70%);
}

.cx-hud {
  position: absolute;
  inset: 88px clamp(70px, 7vw, 110px) 28px;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--hud);
}

.cx-hud b {
  color: var(--accent-2);
  font-weight: 500;
}

.cx-hud-corner {
  position: absolute;
  padding: 10px 14px;
}

.cx-hud-corner::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--hud-dim);
}

.cx-hud-corner--tl { top: 0; left: 0; }
.cx-hud-corner--tl::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cx-hud-corner--tr { top: 0; right: 0; }
.cx-hud-corner--tr::before { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cx-hud-corner--bl { bottom: 0; left: 0; }
.cx-hud-corner--bl::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cx-hud-corner--br { bottom: 0; right: 0; display: flex; align-items: center; gap: 12px; }
.cx-hud-corner--br::before { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.cx-hud-corner--br i {
  position: relative;
  width: 1px;
  height: 34px;
  background: var(--hud-dim);
  overflow: hidden;
}

.cx-hud-corner--br i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  animation: cx-scrollcue 1.8s ease-in-out infinite;
}

@keyframes cx-scrollcue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.cx-hud-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  background:
    linear-gradient(var(--hud), var(--hud)) center / 1px 100% no-repeat,
    linear-gradient(var(--hud), var(--hud)) center / 100% 1px no-repeat;
}

.cx-hero-copy {
  position: relative;
  z-index: 3;
  width: min(1180px, 88vw);
  text-align: left;
}

/* ---- The title card: the About page's HUD recipe --------------------
   One smoked-glass panel at About's left-hand angle, facing into the
   eclipse: the log head, the status line, the title (the word slot
   rolling everything / everywhere / all at once), the brief and the
   call. The glass lives on ::before and dissolves at its edges. */
.cx-card {
  position: relative;
  isolation: isolate;
  width: min(100%, clamp(420px, 42vw, 600px));
  padding: 1em 1.2em 1.1em 1em;
  transform: perspective(900px) rotateY(20deg) rotateX(2deg);
  transform-origin: left 30%;
}

.cx-card::before {
  content: "";
  position: absolute;
  inset: -34px -56px;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(254, 238, 207, 0.03) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 110% at 20% 40%, rgba(20, 9, 5, 0.74), rgba(20, 9, 5, 0.4) 60%, rgba(20, 9, 5, 0) 100%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 24%, #000 70%, rgba(0, 0, 0, 0.5) 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 6%, #000 14%, #000 86%, rgba(0, 0, 0, 0.6) 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 24%, #000 70%, rgba(0, 0, 0, 0.5) 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 6%, #000 14%, #000 86%, rgba(0, 0, 0, 0.6) 94%, transparent 100%);
  mask-composite: intersect;
}

.cx-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  margin-bottom: 16px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(254, 238, 207, 0.3), transparent) 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(254, 238, 207, 0.7);
}

.cx-card-head .tag-code { color: var(--accent-2); }
.cx-card-call { flex: 1; }
.cx-card-sol { color: var(--accent-2); font-variant-numeric: tabular-nums; }

.cx-card-rec {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4a32;
  box-shadow: 0 0 8px rgba(255, 74, 50, 0.8);
  animation: cx-rec 1.2s steps(2, jump-none) infinite;
}

@keyframes cx-rec { 50% { opacity: 0.15; } }

/* the status line (About's .story-status) */
.cx-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.cx-kicker::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px 1px rgba(250, 167, 25, 0.65);
}

/* the title: the card's headline, not a poster */
.cx-title {
  font-size: clamp(2.3rem, 4.3vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 18px rgba(21, 9, 5, 0.6);
}

.cx-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.cx-line > span {
  display: inline-block;
}

.cx-title em {
  font-style: normal;
}

.cx-hero-sub {
  max-width: 46ch;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(254, 238, 207, 0.26), transparent) 1;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: rgba(254, 238, 207, 0.74);
  text-shadow: 0 1px 14px rgba(21, 9, 5, 0.65);
}

.cx-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 28px;
}

/* ---- The call: one of the crew picks up ------------------------------
   A comms key in the brand gradient with Marwan on it: his face in a
   live ring (a pulse says he's there), a status that turns from "crew
   online" to "Marwan answers", a voice line that speaks up under the
   pointer, a light pass across the glass, and the viewfinder brackets
   opening round it. */
.cx-call {
  --hov: 0;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 66px;
  padding: 0 10px 0 7px;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--gradient);
  box-shadow:
    0 18px 40px -18px rgba(229, 125, 35, 0.85),
    0 0 0 1px rgba(250, 167, 25, 0.35),
    inset 0 1px 0 rgba(254, 238, 207, 0.45),
    inset 0 -10px 22px -12px rgba(66, 29, 15, 0.55);
  transition: --hov 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

@property --hov { syntax: "<number>"; inherits: true; initial-value: 0; }

.cx-call::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 38%, rgba(254, 238, 207, 0.55) 50%, transparent 62%) -160% 0 / 60% 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(66, 29, 15, 0.1) 0 1px, transparent 1px 3px);
  animation: cx-call-pass 5.5s ease-in-out 3s infinite;
}

@keyframes cx-call-pass {
  0% { background-position: -160% 0, 0 0; }
  22%, 100% { background-position: 260% 0, 0 0; }
}

.cx-call-face {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(21, 9, 5, 0.85), 0 0 0 calc(3px + var(--hov) * 2px) rgba(254, 238, 207, 0.55);
}

.cx-call-face img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(calc(1 + var(--hov) * 0.06));
}

/* he's there: a live dot, and a pulse off the ring */
.cx-call-face i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(21, 9, 5, 0.9), 0 0 8px 1px rgba(250, 167, 25, 0.85);
  animation: cx-call-live 1.4s ease-in-out infinite;
}

@keyframes cx-call-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; box-shadow: 0 0 0 2px rgba(21, 9, 5, 0.9), 0 0 2px 0 rgba(250, 167, 25, 0.3); }
}

.cx-call-face::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(254, 238, 207, 0.7);
  animation: cx-call-ring 2.4s ease-out infinite;
}

@keyframes cx-call-ring {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

.cx-call-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.cx-call-txt small {
  position: relative;
  display: block;
  height: 1.1em;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 10, 4, 0.66);
}

.cx-call-txt small span {
  display: block;
  transform: translateY(calc(var(--hov) * -100%));
}

.cx-call-txt small span + span { position: absolute; left: 0; top: 100%; }

.cx-call-txt b {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.cx-call-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  margin-left: 4px;
}

.cx-call-wave i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: rgba(26, 10, 4, 0.8);
  animation: cx-call-talk 1.3s ease-in-out infinite;
}

.cx-call-wave i:nth-child(2) { animation-delay: -0.2s; }
.cx-call-wave i:nth-child(3) { animation-delay: -0.45s; }
.cx-call-wave i:nth-child(4) { animation-delay: -0.7s; }
.cx-call-wave i:nth-child(5) { animation-delay: -0.95s; }

@keyframes cx-call-talk {
  0%, 100% { transform: scaleY(calc(0.22 + var(--hov) * 0.3)); }
  50% { transform: scaleY(calc(0.55 + var(--hov) * 0.45)); }
}

.cx-call-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(21, 9, 5, 0.9);
  box-shadow: inset 0 0 0 1px rgba(250, 167, 25, 0.3);
}

.cx-call-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.9;
  transform: translateX(calc(var(--hov) * 3px));
}

.cx-call-vf {
  --c: rgba(254, 238, 207, 0.7);
  --o: calc(5px + var(--hov) * 6px);
  position: absolute;
  inset: calc(var(--o) * -1);
  pointer-events: none;
  opacity: calc(0.35 + var(--hov) * 0.65);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px 12px no-repeat;
}

.cx-call:hover,
.cx-call:focus-visible {
  --hov: 1;
  box-shadow:
    0 24px 50px -18px rgba(229, 125, 35, 0.95),
    0 0 0 1px rgba(250, 167, 25, 0.6),
    0 0 36px -6px rgba(250, 167, 25, 0.45),
    inset 0 1px 0 rgba(254, 238, 207, 0.55),
    inset 0 -10px 22px -12px rgba(66, 29, 15, 0.55);
}

.cx-call:focus-visible { outline: none; }

@media (max-width: 900px) {
  .cx-card { transform: perspective(900px) rotateY(10deg) rotateX(2deg); width: min(100%, 560px); }
}

@media (max-width: 600px) {
  .cx-card { transform: none; }
  .cx-card::before { inset: -20px -16px; }
  .cx-call { width: 100%; }
  .cx-call-arrow { margin-left: auto; }
  .cx-call-wave { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-call::before, .cx-call-wave i, .cx-call-face::after, .cx-call-face i, .cx-card-rec { animation: none !important; }
}

.cx-textlink {
  font-family: var(--font-display);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cx-textlink:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

@media (max-width: 720px) {
  .cx-hud { inset: 80px 16px 20px; font-size: 0.56rem; }
  .cx-hud-corner--bl,
  .cx-hud-cross { display: none; }
  .cx-eclipse { top: 82%; --size: 260vw; }
}

/* ---- 01 Manifesto -------------------------------------------- */

.cx-manifesto {
  position: relative;
}

.cx-manifesto-pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, 84vw);
  margin-inline: auto;
  padding-block: 120px;
}

.cx-manifesto-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cx-manifesto-text mark {
  background: none;
  color: var(--accent-2);
}

.cx-ready .cx-manifesto-text .cx-w {
  opacity: 0.14;
}

/* The crew's record: no cards, no gauges. Four figures stand on one
   instrument line: each rolls in on mechanical reels (services.js), a
   warm trace draws along the line beneath it to its share, and a scan
   passes once over the whole line as the record completes. */
.cx-telemetry {
  --tl: rgba(254, 238, 207, 0.14);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 8vh, 90px);
  border-bottom: 1px solid var(--tl);
}

/* the scan over the line */
.cx-telemetry::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(254, 238, 207, 0.9), transparent);
  opacity: 0;
  pointer-events: none;
}

.cx-telemetry.is-done::after { animation: cx-tele-scan 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }

@keyframes cx-tele-scan {
  0% { transform: translateX(-30%); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(480%); opacity: 0; }
}

.cx-tele {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(14px, 2vw, 28px) clamp(18px, 2.6vh, 26px);
}

/* the ticks between figures: a hairline that fades up into the dark */
.cx-tele + .cx-tele::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 64%;
  background: linear-gradient(0deg, var(--tl), transparent);
}

.cx-tele:first-child { padding-left: 0; }

.cx-tele-idx {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--accent-2);
}

.cx-tele-idx::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.cx-tele strong {
  display: flex;
  align-items: flex-start;
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.cx-tele strong em {
  margin: 0.08em 0 0 0.06em;
  font-style: normal;
  font-size: 0.46em;
  letter-spacing: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* the real figure, kept for screen readers while the reels show it */
.cx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the reels: each digit is a strip of 0-9 behind a mask, and rolls
   (farther for the ones column, so the figure settles left to right) */
.cx-reels { display: inline-flex; }

.cx-reel {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.cx-reel > span {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform var(--d, 1.8s) cubic-bezier(0.16, 1, 0.3, 1) var(--dl, 0s), filter var(--d, 1.8s) ease var(--dl, 0s);
  filter: blur(1.5px);
}

.cx-reel > span > i {
  display: block;
  height: 1em;
  font-style: normal;
  text-align: center;
}

.cx-tele.is-on .cx-reel > span {
  transform: translateY(calc(var(--to) * -1em));
  filter: blur(0);
}

.cx-tele-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the trace: this figure's share, drawn along the shared line */
.cx-tele-bar {
  position: absolute;
  left: 0;
  right: clamp(14px, 2vw, 28px);
  bottom: -1px;
  height: 1px;
}

.cx-tele + .cx-tele .cx-tele-bar { left: clamp(14px, 2vw, 28px); }

.cx-tele-bar i {
  position: relative;
  display: block;
  height: 100%;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(250, 167, 25, 0.6);
  transform-origin: left;
  transform: scaleX(var(--v));
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

/* its head: a lit bead where the trace ends */
.cx-tele-bar::after {
  content: "";
  position: absolute;
  left: calc(var(--v, 1) * 100%);
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px 2px rgba(250, 167, 25, 0.7);
  transition: left 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, opacity 0.4s ease;
}

.cx-ready .cx-tele:not(.is-on) .cx-tele-bar i { transform: scaleX(0); }
.cx-ready .cx-tele:not(.is-on) .cx-tele-bar::after { left: 0; opacity: 0; }

@media (max-width: 820px) {
  .cx-telemetry { grid-template-columns: 1fr 1fr; row-gap: 28px; border-bottom: 0; }
  .cx-tele { border-bottom: 1px solid var(--tl); }
  .cx-tele:nth-child(3) { padding-left: 0; }
  .cx-tele:nth-child(3)::before { display: none; }
  .cx-tele:nth-child(3) .cx-tele-bar { left: 0; }
  .cx-telemetry::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-reel > span { transition: none; filter: none; }
}

/* ---- 02 Fleet ------------------------------------------------ */

.cx-fleet {
  position: relative;
}

.cx-fleet-pin {
  position: relative;
  overflow: hidden;
}

.cx-fleet-track {
  display: flex;
  flex-direction: column;
}

.cx-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: 120px clamp(80px, 9vw, 150px);
  min-height: 100vh;
}

.cx-panel-bignum {
  position: absolute;
  z-index: -1;
  right: 4vw;
  bottom: 2vh;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10rem, 30vw, 30rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(254, 238, 207, 0.07);
  pointer-events: none;
  user-select: none;
}

.cx-panel--intro {
  grid-template-columns: 1fr;
  align-content: center;
}

.cx-fleet-title {
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.cx-fleet-lede {
  max-width: 460px;
  margin-top: 26px;
  font-size: 1.1rem;
  color: var(--muted);
}

.cx-fleet-hint {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud);
}

.cx-fleet-hint span {
  position: relative;
  width: 70px;
  height: 1px;
  background: var(--hud-dim);
  overflow: hidden;
}

.cx-fleet-hint span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  animation: cx-hint 1.6s ease-in-out infinite;
}

@keyframes cx-hint {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.cx-panel-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--hud);
  margin-bottom: 18px;
}

.cx-panel-idx b {
  color: var(--accent-2);
  font-weight: 500;
}

.cx-panel-idx b::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  vertical-align: 1px;
}

.cx-panel-copy h3 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.cx-panel-copy > p:not(.cx-panel-idx) {
  margin-top: 22px;
  max-width: 480px;
  color: var(--muted);
}

.cx-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 30px;
}

.cx-tags li {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(33, 16, 9, 0.5);
}

.cx-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-2);
}

.cx-panel-link span {
  transition: transform 0.3s ease;
}

.cx-panel-link:hover span {
  transform: translateX(6px);
}

/* Copy entrance per panel */
.cx-ready .cx-panel .cx-panel-copy > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cx-ready .cx-panel.is-live .cx-panel-copy > * {
  opacity: 1;
  transform: none;
}

.cx-ready .cx-panel.is-live .cx-panel-copy > :nth-child(2) { transition-delay: 0.08s; }
.cx-ready .cx-panel.is-live .cx-panel-copy > :nth-child(3) { transition-delay: 0.16s; }
.cx-ready .cx-panel.is-live .cx-panel-copy > :nth-child(4) { transition-delay: 0.24s; }
.cx-ready .cx-panel.is-live .cx-panel-copy > :nth-child(5) { transition-delay: 0.32s; }

.cx-fleet-progress {
  display: none;
}

/* Horizontal mode (desktop, set by JS) */
.cx-h .cx-fleet-pin {
  height: 100vh;
}

.cx-h .cx-fleet-track {
  flex-direction: row;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.cx-h .cx-panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  padding-block: 110px 90px;
}

.cx-h .cx-panel--intro {
  flex-basis: 72vw;
  width: 72vw;
}

.cx-h .cx-fleet-hint {
  display: flex;
}

.cx-h .cx-fleet-progress {
  position: absolute;
  left: clamp(80px, 9vw, 150px);
  right: clamp(200px, 16vw, 260px);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--hud);
}

.cx-fleet-progress-bar {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.cx-fleet-progress-bar i {
  display: block;
  height: 100%;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
}

.cx-fleet-progress-count {
  order: -1;
}

.cx-fleet-progress-count b {
  color: var(--accent-2);
  font-weight: 500;
}

/* Scene frame shared by all six */
.cx-scene {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 68vh;
  aspect-ratio: 5 / 4;
  justify-self: center;
  transform-style: preserve-3d;
}

.cx-ready .cx-panel .cx-scene {
  opacity: 0;
  scale: 0.9;
  translate: 0 30px;
  transition: opacity 0.8s ease 0.1s, scale 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, translate 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.cx-ready .cx-panel.is-live .cx-scene {
  opacity: 1;
  scale: 1;
  translate: 0 0;
}

@media (max-width: 900px) {
  .cx-panel {
    grid-template-columns: 1fr;
    padding: 90px 6vw 60px;
    min-height: 0;
  }

  .cx-panel--intro {
    padding-top: 120px;
  }

  .cx-scene {
    order: -1;
  }
}

/* ---- The fleet's worlds (fleet-worlds.js) ----------------------
   Each division's world is drawn live on its own canvas: no box round
   it, the dark falls away at its edges into the page, and the
   viewfinder brackets hold it. */
.cx-scene--fw {
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 58%, transparent 100%);
}

.cx-scene--fw::before {
  content: "";
  position: absolute;
  inset: 6%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 48%, rgba(229, 125, 35, 0.14), transparent 65%);
  pointer-events: none;
}

.cx-fw {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cx-fw-vf {
  --c: rgba(254, 238, 207, 0.4);
  position: absolute;
  inset: 4%;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px 16px no-repeat;
  transition: inset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cx-panel.is-live .cx-fw-vf { inset: 2%; }

/* ---- Scene: web ---------------------------------------------- */

.sw-browser {
  position: absolute;
  inset: 4% 8% 10% 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(21, 9, 5, 0.85);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 125, 35, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(44, 22, 12, 0.8);
}

.sw-bar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.sw-bar > i:nth-child(1) { background: var(--brand-ember); }
.sw-bar > i:nth-child(2) { background: var(--brand-orange); }
.sw-bar > i:nth-child(3) { background: var(--brand-amber); }

.sw-url {
  margin-left: 12px;
  flex: 1;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.sw-url b {
  color: var(--text);
  font-weight: 500;
}

.sw-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.sw-code {
  margin: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.72vw, 0.66rem);
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  overflow: hidden;
}

.sw-code .k { color: var(--brand-orange); }
.sw-code .s { color: var(--brand-amber); }
.sw-code .t { color: var(--brand-cream); }

.sw-code::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1em;
  background: var(--accent-2);
  vertical-align: middle;
  animation: cx-blink 0.9s steps(1) infinite;
}

.sw-site {
  display: flex;
  flex-direction: column;
  gap: 8%;
  padding: 8%;
}

.sw-site > span,
.sw-site i {
  display: block;
  border-radius: 6px;
}

.sw-nav {
  height: 7%;
  background: linear-gradient(90deg, var(--brand-orange) 0 14%, transparent 14% 60%, var(--line-strong) 60% 100%);
  opacity: 0.8;
}

.sw-site .sw-heroblk {
  flex: 1.2;
  padding: 8%;
  background: linear-gradient(135deg, rgba(229, 125, 35, 0.35), rgba(66, 29, 15, 0.8));
  display: flex;
  flex-direction: column;
  gap: 10%;
  justify-content: center;
}

.sw-heroblk i { height: 12%; background: var(--brand-cream); width: 80%; }
.sw-heroblk i:nth-child(2) { width: 55%; opacity: 0.6; }
.sw-heroblk .sw-btn { width: 30%; height: 16%; background: var(--brand-amber); border-radius: 999px; }

.sw-site .sw-cards {
  flex: 0.8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8%;
}

.sw-cards i {
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.sw-foot {
  height: 6%;
  background: var(--line);
}

/* Blocks assemble in when the panel is live */
.cx-ready .sw-site > * {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}

.cx-ready .is-live .sw-site > * {
  animation: sw-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-live .sw-site > :nth-child(1) { animation-delay: 0.9s; }
.is-live .sw-site > :nth-child(2) { animation-delay: 1.5s; }
.is-live .sw-site > :nth-child(3) { animation-delay: 2.1s; }
.is-live .sw-site > :nth-child(4) { animation-delay: 2.6s; }

@keyframes sw-in {
  to { opacity: 1; transform: none; }
}

.sw-score {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(33, 16, 9, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: translateZ(60px);
}

.sw-score svg {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 5;
}

.sw-score circle {
  stroke: var(--line-strong);
}

.sw-score .sw-score-arc {
  stroke: var(--accent-2);
  stroke-linecap: round;
  stroke-dasharray: 214;
  stroke-dashoffset: calc(214 - 214 * var(--score, 0) / 100);
}

.sw-score b {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: var(--accent-2);
  margin-top: -8%;
}

.sw-score span {
  position: absolute;
  bottom: 12%;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Scene: platforms ---------------------------------------- */

.sp-graph {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 88%;
  overflow: visible;
}

.sp-links path {
  fill: none;
  stroke: rgba(254, 238, 207, 0.18);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  animation: sp-dash 1.2s linear infinite;
}

@keyframes sp-dash {
  to { stroke-dashoffset: -18; }
}

.sp-pulses circle {
  fill: var(--brand-amber);
  filter: drop-shadow(0 0 6px var(--brand-amber));
}

.sp-nodes circle {
  fill: rgba(33, 16, 9, 0.95);
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.sp-graph text {
  fill: var(--brand-cream);
  font: 600 10px var(--font-mono);
  text-anchor: middle;
  letter-spacing: 0.08em;
}

.sp-core circle {
  fill: var(--brand-orange);
}

.sp-core text {
  fill: var(--on-accent);
  font-size: 11px;
}

.sp-core .sp-core-halo {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: sp-halo 2.4s ease-out infinite;
}

@keyframes sp-halo {
  from { transform: scale(0.75); opacity: 0.9; }
  to { transform: scale(1.6); opacity: 0; }
}

.sp-dash {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 44%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(33, 16, 9, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: translateZ(60px);
}

.sp-dash p {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.sp-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
}

.sp-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--gradient);
  height: 30%;
  animation: sp-bar 2.6s ease-in-out infinite;
}

.sp-bars i:nth-child(1) { animation-delay: -0.2s; }
.sp-bars i:nth-child(2) { animation-delay: -0.9s; }
.sp-bars i:nth-child(3) { animation-delay: -1.5s; }
.sp-bars i:nth-child(4) { animation-delay: -0.4s; }
.sp-bars i:nth-child(5) { animation-delay: -2.1s; }
.sp-bars i:nth-child(6) { animation-delay: -1.1s; }
.sp-bars i:nth-child(7) { animation-delay: -1.8s; }
.sp-bars i:nth-child(8) { animation-delay: -0.6s; }

@keyframes sp-bar {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

.sp-rows {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--muted);
}

.sp-rows span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-rows em {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(250, 167, 25, 0.75);
}

/* ---- Scene: mobile ------------------------------------------- */

.sm-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 96%;
  aspect-ratio: 9 / 19;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.sm-phone {
  position: absolute;
  inset: 0;
  border-radius: 13% / 6%;
  padding: 4%;
  background: linear-gradient(145deg, #3a2014, #120704);
  box-shadow:
    inset 0 0 0 2px rgba(254, 238, 207, 0.15),
    0 50px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(229, 125, 35, 0.2);
  animation: sm-float 6s ease-in-out infinite;
}

@keyframes sm-float {
  0%, 100% { transform: translateY(-8px) rotateZ(-2deg); }
  50% { transform: translateY(8px) rotateZ(2deg); }
}

.sm-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 10% / 4.6%;
  background: linear-gradient(160deg, var(--brand-cocoa), var(--ink));
}

.sm-notch {
  position: absolute;
  z-index: 2;
  top: 6%;
  left: 50%;
  width: 30%;
  height: 3.2%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050201;
}

.sm-glare {
  position: absolute;
  inset: 4%;
  border-radius: 10% / 4.6%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, transparent 30%);
  pointer-events: none;
}

.sm-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(rgba(0, 0, 0, 0.6), transparent 70%);
  filter: blur(6px);
}

.sm-toast {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(33, 16, 9, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
}

.sm-toast i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--gradient);
}

.sm-toast--1 { left: 2%; top: 14%; }
.sm-toast--2 { right: 0; top: 44%; }
.sm-toast--3 { left: 4%; bottom: 14%; }

.is-live .sm-toast {
  animation: sm-toast 6s ease-in-out infinite;
}

.is-live .sm-toast--2 { animation-delay: 2s; }
.is-live .sm-toast--3 { animation-delay: 4s; }

@keyframes sm-toast {
  0% { opacity: 0; transform: translateY(16px) scale(0.9); }
  8%, 45% { opacity: 1; transform: none; }
  55%, 100% { opacity: 0; transform: translateY(-12px) scale(0.96); }
}

/* ---- Scene: UI/UX -------------------------------------------- */

.su-board {
  position: absolute;
  inset: 4% 20% 8% 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 0.4fr 1.6fr 1fr 0.6fr;
  gap: 12px;
  padding: 36px 20px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle, rgba(254, 238, 207, 0.08) 1px, transparent 1px) 0 0 / 16px 16px,
    rgba(21, 9, 5, 0.85);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.su-label {
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.su-b {
  border: 1.5px dashed rgba(254, 238, 207, 0.3);
  border-radius: 8px;
  position: relative;
}

.su-b1 { grid-column: 1 / -1; }
.su-b2 { grid-column: 1 / 5; }
.su-b3 { grid-column: 5 / -1; }
.su-b4 { grid-column: 1 / 3; }
.su-b5 { grid-column: 3 / 5; }
.su-b6 { grid-column: 5 / -1; grid-row: 3 / 5; }

/* Each block "gets designed" in turn on a 9s loop */
.su-b::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 8px;
  opacity: 0;
}

.su-b1::after { background: linear-gradient(90deg, var(--brand-orange) 0 12%, var(--surface-2) 12%); }
.su-b2::after { background: linear-gradient(135deg, var(--brand-ember), var(--brand-amber)); }
.su-b3::after { background: var(--brand-cream); }
.su-b4::after { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.su-b5::after { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.su-b6::after { background: linear-gradient(180deg, var(--brand-cocoa), var(--brand-ember)); }

.is-live .su-b::after { animation: su-fill 9s ease infinite; }
.is-live .su-b2::after { animation-delay: 1.2s; }
.is-live .su-b3::after { animation-delay: 2.4s; }
.is-live .su-b4::after { animation-delay: 3.6s; }
.is-live .su-b5::after { animation-delay: 4.4s; }
.is-live .su-b6::after { animation-delay: 5.2s; }

@keyframes su-fill {
  0% { opacity: 0; transform: scale(0.94); }
  6%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; }
}

.su-cursor {
  position: absolute;
  z-index: 3;
  width: 22px;
  left: 40%;
  top: 14%;
  fill: var(--brand-cream);
  stroke: var(--ink);
  stroke-width: 1.2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.is-live .su-cursor {
  animation: su-cursor 9s ease-in-out infinite;
}

@keyframes su-cursor {
  0% { left: 40%; top: 14%; }
  4% { left: 50%; top: 18%; }
  13% { left: 36%; top: 42%; }
  26% { left: 82%; top: 40%; }
  40% { left: 18%; top: 70%; }
  49% { left: 48%; top: 72%; }
  58% { left: 84%; top: 78%; }
  80% { left: 60%; top: 55%; }
  100% { left: 40%; top: 14%; }
}

.su-swatches {
  position: absolute;
  right: 4%;
  top: 8%;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(33, 16, 9, 0.92);
  transform: translateZ(50px);
}

.su-swatches i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.su-swatches i:nth-child(1) { background: var(--brand-cocoa); }
.su-swatches i:nth-child(2) { background: var(--brand-ember); }
.su-swatches i:nth-child(3) { background: var(--brand-orange); }
.su-swatches i:nth-child(4) { background: var(--brand-amber); }
.su-swatches i:nth-child(5) { background: var(--brand-cream); }

.su-layers {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(33, 16, 9, 0.92);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  font-size: 0.7rem;
  transform: translateZ(70px);
}

.su-layers span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.su-layers em {
  font-style: normal;
  padding: 3px 8px;
  border-radius: 5px;
}

.is-live .su-layers em { animation: su-layer 9s ease infinite; }
.is-live .su-layers em:nth-of-type(2) { animation-delay: 1.2s; }
.is-live .su-layers em:nth-of-type(3) { animation-delay: 3.6s; }
.is-live .su-layers em:nth-of-type(4) { animation-delay: 5.2s; }

@keyframes su-layer {
  0%, 14% { background: rgba(250, 167, 25, 0.2); color: var(--accent-2); }
  20%, 100% { background: transparent; color: var(--text); }
}

/* ---- Scene: AR / VR ------------------------------------------ */

.cx-scene--arvr {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 40%, rgba(229, 125, 35, 0.18), transparent 70%);
}

.sa-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 70%;
  background-image:
    linear-gradient(rgba(250, 167, 25, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 167, 25, 0.45) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(400px) rotateX(62deg);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  animation: sa-floor 1.6s linear infinite;
}

@keyframes sa-floor {
  to { background-position: 0 50px; }
}

.sa-holo {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  perspective: 800px;
}

.sa-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: sa-spin 12s linear infinite;
}

@keyframes sa-spin {
  from { transform: translateY(0) rotateX(-22deg) rotateY(0); }
  50% { transform: translateY(-10px) rotateX(-22deg) rotateY(180deg); }
  to { transform: translateY(0) rotateX(-22deg) rotateY(360deg); }
}

.sa-cube i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--brand-amber);
  background: rgba(250, 167, 25, 0.06);
  box-shadow: inset 0 0 30px rgba(250, 167, 25, 0.25), 0 0 20px rgba(250, 167, 25, 0.2);
}

/* Faces sit half a cube-width from the centre; JS sets --half */
.sa-f1 { transform: translateZ(var(--half, 70px)); }
.sa-f2 { transform: rotateY(180deg) translateZ(var(--half, 70px)); }
.sa-f3 { transform: rotateY(90deg) translateZ(var(--half, 70px)); }
.sa-f4 { transform: rotateY(-90deg) translateZ(var(--half, 70px)); }
.sa-f5 { transform: rotateX(90deg) translateZ(var(--half, 70px)); }
.sa-f6 { transform: rotateX(-90deg) translateZ(var(--half, 70px)); }

.sa-beam {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 120%;
  height: 80%;
  background: linear-gradient(to bottom, rgba(250, 167, 25, 0.35), transparent);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  opacity: 0.6;
  animation: sa-beam 2s ease-in-out infinite;
}

@keyframes sa-beam {
  50% { opacity: 0.25; }
}

.sa-ring {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(250, 167, 25, 0.35);
  transform: translate(-50%, -50%) rotateX(75deg);
  animation: sa-ring 3s ease-in-out infinite;
}

@keyframes sa-ring {
  0%, 100% { transform: translate(-50%, -50%) rotateX(75deg) scale(0.8); opacity: 1; }
  50% { transform: translate(-50%, -50%) rotateX(75deg) scale(1.15); opacity: 0.3; }
}

.sa-hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--hud);
}

.sa-hud b { color: var(--accent-2); font-weight: 500; }
.sa-hud--tl { top: 18px; left: 20px; }
.sa-hud--br { bottom: 18px; right: 20px; }

.sa-bracket {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--hud), var(--hud)) top left / 18px 1px,
    linear-gradient(var(--hud), var(--hud)) top left / 1px 18px,
    linear-gradient(var(--hud), var(--hud)) top right / 18px 1px,
    linear-gradient(var(--hud), var(--hud)) top right / 1px 18px,
    linear-gradient(var(--hud), var(--hud)) bottom left / 18px 1px,
    linear-gradient(var(--hud), var(--hud)) bottom left / 1px 18px,
    linear-gradient(var(--hud), var(--hud)) bottom right / 18px 1px,
    linear-gradient(var(--hud), var(--hud)) bottom right / 1px 18px;
  background-repeat: no-repeat;
  animation: sa-lock 3s ease-in-out infinite;
}

@keyframes sa-lock {
  0%, 100% { width: 46%; opacity: 0.9; }
  50% { width: 54%; opacity: 0.4; }
}

/* ---- 03 Field footage ---------------------------------------- */

.cx-field {
  position: relative;
  padding: clamp(100px, 14vh, 160px) 0 clamp(60px, 10vh, 120px);
  overflow: hidden;
}

.cx-field-head {
  width: min(900px, 88vw);
  margin: 0 auto clamp(40px, 6vh, 70px);
  text-align: center;
}

.cx-field-head .eyebrow {
  justify-content: center;
}

.cx-field-head h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cx-field-head p:last-child {
  margin-top: 18px;
  color: var(--muted);
}

.cx-wall {
  perspective: 1400px;
  width: min(1320px, 88vw);
  margin-inline: auto;
}

.cx-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
}

.cx-tile {
  position: relative;
  display: block;
  /* the screen captures' own frame (~1902 x 906), so every video fills
     its card edge to edge: nothing cropped off the sides, no bands */
  aspect-ratio: 1902 / 906;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.5s ease;
}

.cx-tile:hover {
  transform: translateZ(40px) scale(1.03);
  border-color: var(--accent-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 40px rgba(250, 167, 25, 0.25);
  z-index: 2;
}

/* The film overfills its card by 2px all round (clipped by the card):
   the card's height lands on a fraction of a pixel at most widths and
   the video layer snaps to whole pixels, and a capture's own last rows
   can be light, either of which left a bright hairline along the
   bottom. The card behind is dark for the same reason. */
.cx-tile video {
  position: absolute;
  inset: -2px;
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  object-position: center;
  transform: scale(var(--cx-zoom, 1));
  transform-origin: var(--cx-zoom-at, 50% 50%);
  filter: saturate(0.85) brightness(0.78);
  transition: filter 0.4s ease, transform 0.8s ease;
}

.cx-tile:hover video {
  filter: none;
  transform: scale(calc(var(--cx-zoom, 1) * 1.04));
}

/* The Glimpse capture has its own browser margin and rounded frame
   baked in: zoom just past it so it sits flush like the others */
.cx-tile video[data-src*="Glimpse"] {
  --cx-zoom: 1.045;
  --cx-zoom-at: 50% 100%;
}

/* Scanlines over the footage for a "transmission" feel */
.cx-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.cx-tile-rec {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--brand-cream);
}

.cx-tile-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-ember);
  box-shadow: 0 0 8px rgba(192, 69, 39, 0.8);
  animation: cx-blink 1.2s steps(1) infinite;
}

.cx-tile-meta {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(10, 4, 2, 0.9));
  font-size: 0.78rem;
  color: var(--muted);
}

.cx-tile-meta b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

@media (max-width: 820px) {
  .cx-wall-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .cx-wall-grid { grid-template-columns: 1fr; }
}

/* ---- Marquee ------------------------------------------------- */

.cx-marquee {
  position: relative;
  padding-block: clamp(50px, 8vh, 90px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(21, 9, 5, 0.6);
}

.cx-marquee-row {
  display: flex;
  white-space: nowrap;
}

.cx-marquee-row + .cx-marquee-row {
  margin-top: 10px;
}

.cx-marquee-inner {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding-right: 0.4em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  will-change: transform;
}

.cx-marquee-inner .is-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-cream);
}

.cx-marquee-inner i {
  font-style: normal;
  font-size: 0.4em;
  color: var(--accent);
}

.cx-marquee-row--rev .cx-marquee-inner {
  font-size: clamp(2rem, 5.5vw, 5rem);
  color: var(--muted);
}

.cx-marquee-row--rev .is-outline {
  -webkit-text-stroke-color: var(--muted);
}

/* ---- 04 Flight plan ------------------------------------------ */

.cx-flight {
  position: relative;
}

.cx-flight-pin {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-rows: auto 1fr;
  gap: 20px clamp(30px, 4vw, 60px);
  padding: 110px clamp(80px, 9vw, 150px) 50px;
  overflow: hidden;
}

.cx-flight-head {
  grid-column: 1 / -1;
}

.cx-flight-head h2 {
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cx-flight-head p:last-child {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
}

.cx-flight-map {
  position: relative;
  min-height: 340px;
}

.cx-flight-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cx-flight-guide {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 3 8;
}

.cx-flight-trail {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(229, 125, 35, 0.8));
}

.cx-flight-points {
  position: absolute;
  inset: 0;
}

.cx-wp {
  position: absolute;
  width: 0;
  height: 0;
}

.cx-wp-dot {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--ink);
  transition: border-color 0.12s linear, background 0.12s linear, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cx-wp-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  opacity: 0;
}

.cx-wp.is-done .cx-wp-dot {
  border-color: var(--accent-2);
  background: var(--accent-2);
  box-shadow: 0 0 20px var(--accent-2);
}

.cx-wp.is-current .cx-wp-dot {
  transform: scale(1.3);
}

.cx-wp.is-current .cx-wp-dot::after {
  animation: cx-ping 1.4s ease-out infinite;
}

@keyframes cx-ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

.cx-wp-label {
  position: absolute;
  left: 0;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s linear, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cx-wp-label span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--hud-dim);
}

.cx-wp.is-below .cx-wp-label {
  bottom: auto;
  top: 18px;
}

.cx-wp.is-done .cx-wp-label {
  color: var(--text);
}

.cx-wp.is-current .cx-wp-label {
  color: var(--accent-2);
  transform: translateX(-50%) scale(1.12);
}

.cx-ship {
  --jet-w: clamp(76px, 6.6vw, 116px);
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 3;
  will-change: transform;
}

/* ---- Rocket man: the painted jetpack plumes are the base layer; live
   flames, embers and heat glow sit on top at the two nozzles, so the
   still image breathes like a cinemagraph. */
.cx-jet {
  --thrust: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--jet-w);
  aspect-ratio: 1441 / 985;
  /* centre on the torso, and cancel the image's own -30deg heading so
     the JS rotation points him straight down the flight path */
  translate: -52% -48%;
  rotate: 30deg;
  transition: scale 0.35s ease;
  animation: cx-jet-bob 3.2s ease-in-out infinite;
}

.cx-ship.is-flipped .cx-jet {
  rotate: -30deg;
  scale: -1 1;
}

.cx-jet-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  /* Seat him in the scene: warm space-light grade, a soft ambient
     shadow and a faint amber rim from his own exhaust */
  filter:
    saturate(0.92) brightness(calc(0.94 * var(--shade, 1))) sepia(0.08)
    drop-shadow(0 0 1px rgba(255, 170, 80, 0.35))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

/* the air he flies through (flight-fx.js): contrail, streaks, beats */
.cx-flight-fx {
  position: absolute;
  inset: -120px;
  z-index: 1;
  width: calc(100% + 240px);
  height: calc(100% + 240px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent), linear-gradient(180deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent), linear-gradient(180deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-composite: intersect;
}

@keyframes cx-jet-bob {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-1.2%, 1.6%) rotate(-1.2deg); }
}

/* Plume: a box anchored at a nozzle, rotated down the exhaust line */
.cx-jet-plume {
  position: absolute;
  z-index: 1;
  width: 62%;
  height: 16%;
  transform-origin: 0 50%;
  translate: 0 -50%;
  scale: calc(0.85 + var(--thrust) * 0.55) 1;
  transition: scale 0.3s ease;
  mix-blend-mode: screen;
  pointer-events: none;
}

.cx-jet-plume--l { left: 35.6%; top: 46.1%; rotate: 123deg; }
.cx-jet-plume--r { left: 64.9%; top: 57.6%; rotate: 111deg; }

.cx-jet-plume > i {
  position: absolute;
  left: 0;
  top: 50%;
  border-radius: 50%;
  transform-origin: 0 50%;
}

.cx-jet-outer {
  width: 100%;
  height: 100%;
  margin-top: -8%;
  translate: 0 -42%;
  background: radial-gradient(ellipse 100% 50% at 0 50%, rgba(255, 120, 30, 0.75), rgba(229, 80, 20, 0.35) 45%, transparent 72%);
  filter: blur(3px);
  animation: cx-flick-a 0.19s ease-in-out infinite alternate;
}

.cx-jet-mid {
  width: 66%;
  height: 62%;
  translate: 0 -50%;
  background: radial-gradient(ellipse 100% 50% at 0 50%, rgba(255, 196, 90, 0.95), rgba(255, 140, 40, 0.55) 50%, transparent 75%);
  filter: blur(1.5px);
  animation: cx-flick-b 0.13s ease-in-out infinite alternate;
}

.cx-jet-core {
  width: 30%;
  height: 34%;
  translate: 0 -50%;
  background: radial-gradient(ellipse 100% 50% at 0 50%, #fff, rgba(255, 244, 214, 0.9) 40%, transparent 78%);
  filter: blur(0.6px);
  animation: cx-flick-c 0.08s linear infinite alternate;
}

.cx-jet-plume--r > i { animation-delay: -0.07s; }

@keyframes cx-flick-a {
  from { transform: scale(0.92, 0.9); opacity: 0.8; }
  to { transform: scale(1.08, 1.12); opacity: 1; }
}

@keyframes cx-flick-b {
  from { transform: scale(0.88, 0.94); opacity: 0.85; }
  to { transform: scale(1.1, 1.06); opacity: 1; }
}

@keyframes cx-flick-c {
  from { transform: scale(0.9, 0.9); }
  to { transform: scale(1.12, 1.08); }
}

/* Embers shed down the exhaust */
.cx-jet-sparks {
  position: absolute;
  inset: 0;
}

.cx-jet-sparks i {
  position: absolute;
  left: 4%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd488;
  box-shadow: 0 0 6px 1px rgba(255, 170, 60, 0.9);
  opacity: 0;
  animation: cx-ember 0.9s linear infinite;
  animation-delay: calc(var(--s) * -0.13s);
}

.cx-jet-sparks i:nth-child(odd) { --dy: -1; }
.cx-jet-sparks i:nth-child(even) { --dy: 1; }
.cx-jet-sparks i:nth-child(3n) { animation-duration: 1.2s; width: 2px; height: 2px; }

@keyframes cx-ember {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(calc(var(--jet-w) * 0.62), calc(var(--dy) * var(--jet-w) * 0.09)); opacity: 0; }
}

/* Nozzle flare and heat bloom */
.cx-jet-nozzle {
  position: absolute;
  z-index: 3;
  width: 9%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, rgba(255, 214, 140, 0.8) 34%, rgba(255, 140, 40, 0) 70%);
  mix-blend-mode: screen;
  animation: cx-flick-c 0.07s linear infinite alternate;
  pointer-events: none;
}

.cx-jet-nozzle--l { left: 35.6%; top: 46.1%; }
.cx-jet-nozzle--r { left: 64.9%; top: 57.6%; }

.cx-jet-heat {
  position: absolute;
  z-index: 0;
  left: 18%;
  top: 36%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 140, 30, 0.45), transparent 65%);
  filter: blur(10px);
  animation: cx-heat 0.6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cx-heat {
  from { opacity: calc(0.55 + var(--thrust) * 0.3); }
  to { opacity: calc(0.8 + var(--thrust) * 0.2); }
}

/* Live exhaust canvas (jet-fire.js). The CSS plumes above stay as a
   fallback for browsers without canvas. */
.cx-jet-fire {
  position: absolute;
  z-index: 1;
  left: -80%;
  top: -20%;
  width: 180%;
  height: 180%;
  pointer-events: none;
}

.cx-jet.has-fire .cx-jet-plume,
.cx-jet.has-fire .cx-jet-nozzle {
  display: none;
}

/* The rocket man flies in front of the waypoints; labels keep a soft
   shadow so they stay readable, and the dot he sits on steps aside */
.cx-flight-points { z-index: 2; }
/* Ignition burst the moment the trail reaches a mark */
.cx-wp-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, 0.95), rgba(250, 167, 25, 0.5) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.cx-wp.is-arriving .cx-wp-dot::before {
  animation: cx-wp-burst 0.6s ease-out;
}

@keyframes cx-wp-burst {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}
.cx-wp-label { text-shadow: 0 1px 8px rgba(10, 5, 3, 0.9); }

@media (max-width: 900px) {
  .cx-ship { --jet-w: clamp(68px, 16vw, 92px); }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .cx-ship { --jet-w: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-jet,
  .cx-jet-plume > i,
  .cx-jet-nozzle,
  .cx-jet-heat { animation: none; }
  .cx-jet-sparks { display: none; }
}

.cx-flight-pad {
  position: absolute;
  left: 0;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hud-dim);
}

.cx-flight-pad span {
  width: 24px;
  height: 2px;
  background: var(--hud-dim);
}

.cx-flight-card {
  align-self: center;
  position: relative;
  padding: 26px 26px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(33, 16, 9, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.cx-flight-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  right: 26px;
  height: 2px;
  background: var(--gradient);
}

.cx-flight-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--hud);
}

.cx-flight-card-top b {
  color: var(--accent-2);
  font-weight: 500;
}

.cx-flight-status {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.cx-flight-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(250, 167, 25, 0.75);
  animation: cx-blink 1.2s ease-in-out infinite;
}

.cx-flight-status em {
  font-style: normal;
}

.cx-flight-card h3 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.05;
}

.cx-flight-card > p {
  min-height: 4.8em;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.cx-flight-card h3,
.cx-flight-card > p {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cx-flight-card.is-swapping h3,
.cx-flight-card.is-swapping > p {
  opacity: 0;
  transform: translateY(8px);
}

.cx-flight-checklist {
  list-style: none;
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--hud-dim);
  counter-reset: stage;
}

.cx-flight-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  counter-increment: stage;
  transition: color 0.3s ease;
}

.cx-flight-checklist li::before {
  content: counter(stage, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 24px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cx-flight-checklist li.is-done {
  color: var(--text);
}

.cx-flight-checklist li.is-done::before {
  content: "✓";
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--on-accent);
}

.cx-flight-checklist li.is-current {
  color: var(--accent-2);
}

.cx-flight-checklist li.is-current::before {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.cx-flight-meter {
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.cx-flight-meter span {
  display: block;
  height: 100%;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 900px) {
  .cx-flight-pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(340px, 1fr) auto;
    padding: 90px 6vw 40px;
  }

  .cx-flight-map { min-height: 340px; margin-inline: 8vw; }
  .cx-wp-label { font-size: 0.74rem; }
  .cx-flight-card { padding: 18px 20px; }
  .cx-flight-card > p { min-height: 0; font-size: 0.88rem; }
  .cx-flight-checklist { display: none; }
}

/* ---- 05 Ignition (CTA) --------------------------------------- */

.cx-ignite {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--section-pad) 6vw;
  isolation: isolate;
}

.cx-ignite::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(1100px, 130vw);
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(229, 125, 35, 0.2), transparent 65%);
  filter: blur(20px);
}

.cx-cta {
  position: relative;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(26px, 4.5vw, 60px);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(192, 69, 39, 0.28), transparent 70%),
    radial-gradient(500px 360px at 100% 100%, rgba(250, 167, 25, 0.12), transparent 70%),
    linear-gradient(160deg, rgba(66, 29, 15, 0.75), rgba(21, 9, 5, 0.9));
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cx-cta::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0.8;
}

.cx-cta-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cx-ignite-title {
  margin-top: 6px;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.cx-ignite-title em {
  font-style: normal;
}

.cx-ignite-sub {
  max-width: 440px;
  margin-top: 22px;
  color: var(--muted);
}

.cx-cta-steps {
  list-style: none;
  width: 100%;
  max-width: 440px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.cx-cta-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
}

.cx-cta-steps span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}

.cx-cta-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
}

.cx-cta-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.cx-cta-contact svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--accent-2);
}

.cx-cta-contact a:hover {
  border-color: var(--accent-2);
  background: rgba(250, 167, 25, 0.08);
}

@media (min-width: 1101px) {
  .cx-cta { width: min(1180px, calc(100vw - 320px)); }
}

@media (max-width: 900px) {
  .cx-cta { grid-template-columns: 1fr; }
  .cx-cta-contact { margin-top: 0; }
}

/* ---- JS-controlled start states ------------------------------ */

.cx-ready .cx-title .cx-line > span,
.cx-ready .cx-ignite-title .cx-line > span {
  transform: translateY(110%) rotate(4deg);
}

.cx-ready .cx-kicker,
.cx-ready .cx-hero-sub,
.cx-ready .cx-hero-cta,
.cx-ready .cx-hud,
.cx-ready .cx-comms,
.cx-ready .cx-alt {
  opacity: 0;
}

/* ---- Reduced motion ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .cx-grain,
  .cx-eclipse-flare,
  .cx-comms-signal i,
  .cx-comms-line::after,
  .sm-phone,
  .sa-cube,
  .sa-floor,
  .cx-eclipse-flare {
    animation: none !important;
  }
}

/* ---- Hero word slot ------------------------------------------ */
/* Without JS only the first word shows; services.js rolls through the rest. */

.cx-line > .cx-slot {
  position: relative;
  display: inline-grid;
}

.cx-slot em {
  grid-area: 1 / 1;
  justify-self: start;
  font-style: normal;
  white-space: nowrap;
}

.cx-slot em:not(:first-child) {
  visibility: hidden;
}

.cx-slot-on .cx-slot em {
  visibility: visible;
}

/* ---- Fleet: services inside each division --------------------- */

.cx-svc-list {
  list-style: none;
  display: grid;
  margin: 24px 0 0;
  max-width: 520px;
  border-top: 1px solid var(--line);
}

.cx-svc-list a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 11px 36px 11px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}

.cx-svc-list a::after {
  content: "→";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translate(-6px, -50%);
  opacity: 0;
  color: var(--accent-2);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cx-svc-list a:hover,
.cx-svc-list a:focus-visible {
  padding-left: 12px;
}

.cx-svc-list a:hover::after,
.cx-svc-list a:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.cx-svc-list b {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.cx-svc-list a:hover b {
  color: var(--accent-2);
}

.cx-svc-list span {
  font-size: 0.8rem;
  color: var(--muted);
}

.cx-svc-list em {
  font-style: normal;
  color: var(--accent-2);
}

/* Divisions with many services: tighter rows so the panel fits */
.cx-h .cx-svc-list li:nth-child(n + 4) a {
  padding-block: 8px;
}

/* ---- Scene extras: animation film, AI chat -------------------- */

.su-film {
  position: absolute;
  left: 4%;
  bottom: -2%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 44%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(33, 16, 9, 0.94);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: translateZ(80px);
}

.su-film-play {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
}

.su-film-play::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-left: 10px solid var(--on-accent);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.su-film-meta {
  flex: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.su-film-meta b {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.su-film-meta i {
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  overflow: hidden;
}

.su-film-meta em {
  display: block;
  height: 100%;
  background: var(--gradient);
  transform-origin: left;
  animation: su-film 6s linear infinite;
}

@keyframes su-film {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sa-chat {
  position: absolute;
  z-index: 3;
  right: 5%;
  top: 12%;
  width: 46%;
  display: grid;
  gap: 8px;
  font-size: 0.72rem;
}

.sa-chat-tag {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.sa-chat p {
  padding: 8px 12px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  opacity: 0;
}

.sa-chat-q {
  justify-self: end;
  background: rgba(229, 125, 35, 0.9);
  color: var(--on-accent);
  border-bottom-right-radius: 3px;
}

.sa-chat-a {
  justify-self: start;
  display: grid;
  background: rgba(33, 16, 9, 0.92);
  border: 1px solid var(--line-strong);
  border-bottom-left-radius: 3px;
}

.sa-chat-a > * {
  grid-area: 1 / 1;
}

.sa-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.sa-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: sa-dot 0.9s ease-in-out infinite;
}

.sa-dots i:nth-child(2) { animation-delay: 0.15s; }
.sa-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes sa-dot {
  50% { transform: translateY(-3px); opacity: 0.4; }
}

.is-live .sa-chat-q { animation: sa-q 8s ease infinite; }
.is-live .sa-chat-a { animation: sa-a 8s ease infinite; }
.is-live .sa-dots { animation: sa-typing 8s steps(1) infinite; }
.sa-chat-text { opacity: 0; }
.is-live .sa-chat-text { animation: sa-text 8s steps(1) infinite; }

@keyframes sa-q {
  0%, 4% { opacity: 0; transform: translateY(8px); }
  10%, 85% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; }
}

@keyframes sa-a {
  0%, 16% { opacity: 0; transform: translateY(8px); }
  22%, 85% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; }
}

@keyframes sa-typing {
  0%, 38% { opacity: 1; }
  39%, 100% { opacity: 0; }
}

@keyframes sa-text {
  0%, 38% { opacity: 0; }
  39%, 100% { opacity: 1; }
}

/* ---- Star map ------------------------------------------------ */

.cx-starmap {
  position: relative;
  padding: clamp(100px, 14vh, 160px) 0 clamp(40px, 8vh, 90px);
}

.cx-starmap-head {
  width: min(900px, 88vw);
  margin: 0 auto clamp(30px, 5vh, 56px);
  text-align: center;
}

.cx-starmap-head .eyebrow {
  justify-content: center;
}

.cx-starmap-head h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cx-starmap-head p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.cx-map {
  position: relative;
  width: min(1320px, 88vw);
  aspect-ratio: 16 / 8.2;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 50%, rgba(66, 29, 15, 0.45), rgba(21, 9, 5, 0.55) 70%);
  overflow: hidden;
  isolation: isolate;
}

.cx-map-grid {
  position: absolute;
  inset: -20px;
  z-index: -1;
  background:
    linear-gradient(rgba(254, 238, 207, 0.05) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(254, 238, 207, 0.05) 1px, transparent 1px) 0 0 / 60px 60px;
}

/* Desktop: stars fill the left, the inspector card owns the right */
.cx-map-stars {
  position: absolute;
  inset: 4% 29% 6% 0;
}

.cx-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cx-map-lines line {
  stroke: rgba(250, 167, 25, 0.35);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.cx-ready .cx-map-lines line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cx-ready .cx-map.is-on .cx-map-lines line {
  stroke-dashoffset: 0;
}

.cx-map-lines--mob {
  display: none;
}

.cx-const-label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-dim);
  pointer-events: none;
}

.cx-const-label b {
  color: var(--accent-2);
  font-weight: 500;
}

/* the constellation, its division: a faint dot between */
.cx-const-label i {
  font-style: normal;
  opacity: 0.5;
}

/* desktop: the top star of a four-star line carries its name above it,
   clear of the star it rises over (tools/services/build.js marks it) */
@media (min-width: 1100px) {
  .cx-star.cx-star--up span { top: auto; bottom: calc(100% + 8px); }
}

/* the narrowest phones: a column is too slim for both names, so the
   division is charted on its own */
@media (max-width: 389px) {
  .cx-const-label b,
  .cx-const-label i { display: none; }
}

.cx-star {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

/* Bigger invisible hit area */
.cx-star::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}

.cx-star i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--brand-amber) 40%, rgba(250, 167, 25, 0) 72%);
  box-shadow: 0 0 calc(var(--s) * 1.2) rgba(250, 167, 25, 0.55);
  animation: cx-twinkle 3s ease-in-out infinite;
  animation-delay: var(--d);
  transition: scale 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Diffraction spikes */
.cx-star i::before,
.cx-star i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(254, 238, 207, 0.7), transparent);
  transform: translate(-50%, -50%);
}

.cx-star i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes cx-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.82); }
}

.cx-star span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
  pointer-events: none;
}

.cx-ready .cx-star {
  opacity: 0;
  scale: 0;
  transition: opacity 0.5s ease, scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cx-ready .cx-map.is-on .cx-star {
  opacity: 1;
  scale: 1;
  transition-delay: calc(var(--d) * 0.25);
}

.cx-star:hover i,
.cx-star:focus-visible i,
.cx-star.is-active i {
  scale: 1.7;
}

.cx-star:hover span,
.cx-star:focus-visible span,
.cx-star.is-active span {
  color: var(--text);
}

.cx-star:focus-visible {
  outline: 1px solid var(--accent-2);
  outline-offset: 10px;
}

.cx-map-card {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 27%;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(21, 9, 5, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.cx-map-card.is-flash {
  animation: cx-card-flash 0.5s ease;
}

@keyframes cx-card-flash {
  from { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(250, 167, 25, 0.2), 0 30px 60px rgba(0, 0, 0, 0.5); }
}

.cx-map-card-div {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.cx-map-card-name {
  margin-top: 6px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.cx-map-card-short {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cx-map-card-subs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.cx-map-card-subs li {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.7rem;
}

/* the rest of the capabilities, counted (the service page lists them) */
.cx-map-card-subs li.is-more {
  border-style: dashed;
  color: var(--accent-2);
}

.cx-map-card-link[hidden] {
  display: none;
}

.cx-map-card-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-2);
}

.cx-map-hud {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--hud-dim);
}

/* the star map charts its stacked layout up to 1099px: between tablet
   and laptop the side-by-side chart is too narrow for its names */
@media (max-width: 1099px) {
  .cx-map {
    aspect-ratio: auto;
    height: 170vw;
    max-height: 1100px;
  }

  .cx-map-lines--desk { display: none; }
  .cx-map-lines--mob { display: block; }

  .cx-map-stars {
    inset: 3% 0 36% 0;
  }

  .cx-star,
  .cx-const-label {
    left: var(--mx);
    top: var(--my);
  }

  .cx-star span { font-size: 0.64rem; }

  .cx-map-card {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    transform: none;
  }

  .cx-map-hud { gap: 10px; }
}

/* ---- Flight plan crew ---------------------------------------- */

.cx-flight-crew {
  margin-top: 14px;
}

.cx-flight-crew > span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hud-dim);
}

.cx-flight-crew ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 26px;
}

.cx-flight-crew li {
  animation: cx-crew-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cx-flight-crew a {
  display: block;
  padding: 4px 10px;
  border: 1px solid rgba(250, 167, 25, 0.45);
  border-radius: 999px;
  background: rgba(250, 167, 25, 0.08);
  font-size: 0.72rem;
  color: var(--brand-cream);
  transition: background 0.25s ease;
}

.cx-flight-crew a:hover {
  background: rgba(250, 167, 25, 0.22);
}

@keyframes cx-crew-in {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
}

/* ---- Mission builder ----------------------------------------- */

.cx-mission {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(21, 9, 5, 0.6);
  text-align: left;
}

.cx-mission-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.cx-mission-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.cx-mission-readout {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hud);
}

.cx-mission-readout b {
  color: var(--hud);
  font-weight: 500;
}

.cx-mission-readout.is-armed b {
  color: var(--accent-2);
}

.cx-mission-clear {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.cx-mission-clear:hover {
  color: var(--text);
  border-color: var(--muted);
}

.cx-mission-grid {
  display: flex;
  flex-direction: column;
}

.cx-mission-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cx-mission-group:last-child {
  border-bottom: 0;
}

.cx-mission-group p {
  flex: 0 0 100%;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hud-dim);
}

.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(33, 16, 9, 0.6);
  color: var(--text);
  font: 500 0.82rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cx-chip::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  font-size: 0.7rem;
  line-height: 1;
  color: var(--muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cx-chip:hover {
  border-color: var(--accent-2);
}

.cx-chip[aria-pressed="true"] {
  border-color: var(--accent-2);
  background: rgba(250, 167, 25, 0.16);
  color: var(--accent-2);
}

.cx-chip[aria-pressed="true"]::before {
  content: "✓";
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--on-accent);
}

.cx-chip:active {
  transform: scale(0.96);
}

.cx-chip:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.cx-mission-foot {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
}

/* the ignition (ignite.css): it arms (the ring charges) once services
   are picked, and carries them to the contact page */
.cx-ignite-btn {
  --ig-size: clamp(170px, 15vw, 210px);
  margin-inline: auto;
}

.cx-mission-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Keep wide content clear of the fixed HUD rails ----------- */

@media (min-width: 1101px) {
  .cx-wall,
  .cx-map {
    width: min(1320px, calc(100vw - 300px));
  }

  .cx-manifesto-pin {
    width: min(1180px, calc(100vw - 320px));
  }

  .cx-panel,
  .cx-flight-pin {
    padding-left: max(150px, 9vw);
    padding-right: max(190px, 11vw);
  }
}

/* ---- Phone refinements ---------------------------------------- */

.cx-comms {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cx-comms.is-away {
  opacity: 0 !important;
  transform: translateY(20px);
  pointer-events: none;
}

@media (max-width: 600px) {
  .cx-title { font-size: clamp(2.1rem, 10vw, 3rem); }

  .cx-star span {
    width: 84px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .cx-const-label { font-size: 0.56rem; letter-spacing: 0.12em; }

  /* the lowest star's label hangs below the frame: room before the card */
  .cx-map .cx-map-card { margin-top: 26px; }
}

/* Phone and tablet star map (to 1099px, as above): stars get the full
   frame, the inspector sits below */
@media (max-width: 1099px) {
  .cx-map {
    height: auto;
    max-height: none;
    padding-bottom: 14px;
  }

  .cx-map-stars {
    position: relative;
    inset: auto;
    height: 150vw;
    max-height: 1000px;
  }

  .cx-map-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    margin: 0 12px;
    transform: none;
  }

  .cx-map-hud {
    position: relative;
    left: auto;
    bottom: auto;
    padding: 12px 14px 0;
  }
}

/* ---- Scene: mobile, a living app built in code ----------------- */
/* The phone swipes through four imagined app screens (services.js
   drives the loop) while platform badges orbit it. The orbit is
   drawn twice: the back half sits behind the phone, the front half
   in front, so badges genuinely pass around it. */

.cx-scene--mobile .sm-stage {
  z-index: 1;
  height: 90%;
}

.sm-phone {
  container-type: size;
}

.sm-app {
  position: absolute;
  inset: 4%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10% / 4.6%;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(229, 125, 35, 0.28), transparent 60%),
    linear-gradient(170deg, #2a140b, #120704);
  color: var(--brand-cream);
  font-family: var(--font-body);
  font-size: 5.4cqw;
  line-height: 1.3;
}

.sm-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3em 1.5em 0.3em;
  font-size: 0.72em;
  font-weight: 600;
}

.sm-status span {
  display: flex;
  align-items: flex-end;
  gap: 0.18em;
}

.sm-status span i {
  width: 0.25em;
  background: var(--brand-cream);
  border-radius: 1px;
}

.sm-status span i:nth-child(1) { height: 0.4em; }
.sm-status span i:nth-child(2) { height: 0.6em; }
.sm-status span i:nth-child(3) { height: 0.8em; }

.sm-status span em {
  width: 1.6em;
  height: 0.75em;
  margin-left: 0.3em;
  border: 1px solid var(--brand-cream);
  border-radius: 0.2em;
  background: linear-gradient(90deg, var(--brand-cream) 70%, transparent 70%) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat;
}

.sm-screens {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.sm-screen {
  position: absolute;
  inset: 0;
  padding: 0.7em 1.15em;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.65s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.5s ease;
}

.sm-screen.is-on,
.sm-screens:not(.is-running) .sm-screen:first-child {
  opacity: 1;
  transform: none;
}

.sm-screen.is-out {
  opacity: 0;
  transform: translateX(-45%) scale(0.94);
}

.sm-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.1;
}

.sm-title em {
  display: block;
  margin-top: 0.2em;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* Home */
.sm-hello {
  font-size: 0.78em;
  color: var(--muted);
}

.sm-hello b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75em;
  line-height: 1.1;
  color: var(--brand-cream);
}

.sm-hero-card {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 0.9em;
  padding: 0.9em;
  border-radius: 1em;
  background: var(--gradient);
  color: var(--on-accent);
  box-shadow: 0 0.8em 1.6em rgba(229, 125, 35, 0.3);
}

.sm-ring {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
}

.sm-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 4;
}

.sm-ring circle {
  stroke: rgba(26, 10, 4, 0.2);
}

.sm-ring .sm-ring-arc {
  stroke: var(--on-accent);
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: 100.5;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.sm-screen.is-on .sm-ring-arc,
.sm-screens:not(.is-running) .sm-ring-arc {
  stroke-dashoffset: 28;
}

.sm-ring b {
  font-size: 0.72em;
}

.sm-hero-card p {
  font-size: 0.66em;
  line-height: 1.35;
}

.sm-hero-card p em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.35em;
}

.sm-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6em;
  margin-top: 1em;
}

.sm-tiles i {
  aspect-ratio: 1;
  border-radius: 0.8em;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}

.sm-tiles i:nth-child(1) { background: linear-gradient(135deg, var(--brand-ember), var(--brand-orange)); }
.sm-tiles i:nth-child(2) { background: linear-gradient(135deg, var(--brand-amber), var(--brand-cream)); }
.sm-tiles i:nth-child(3) { background: linear-gradient(135deg, var(--brand-cocoa), var(--brand-amber)); }
.sm-tiles i:nth-child(4) { background: linear-gradient(135deg, var(--brand-cocoa), var(--brand-ember)); }

.sm-screen.is-on .sm-tiles i {
  animation: sm-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.sm-screen.is-on .sm-tiles i:nth-child(2) { animation-delay: 0.08s; }
.sm-screen.is-on .sm-tiles i:nth-child(3) { animation-delay: 0.16s; }
.sm-screen.is-on .sm-tiles i:nth-child(4) { animation-delay: 0.24s; }

@keyframes sm-pop {
  from { opacity: 0; transform: scale(0.4); }
}

.sm-rows span {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.8em;
}

.sm-rows i {
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}

.sm-rows em {
  flex: 1;
  height: 0.5em;
  border-radius: 0.3em;
  background: var(--line-strong);
}

.sm-rows span + span em { flex: 0.7; }

/* Stats */
.sm-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45em;
  height: 8.5em;
  margin-top: 1em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--line-strong);
}

.sm-bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 0.35em 0.35em 0 0;
  background: var(--gradient);
  transform-origin: bottom;
  transform: scaleY(0.05);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-screen.is-on .sm-bars i { transform: none; }
.sm-screen.is-on .sm-bars i:nth-child(2) { transition-delay: 0.06s; }
.sm-screen.is-on .sm-bars i:nth-child(3) { transition-delay: 0.12s; }
.sm-screen.is-on .sm-bars i:nth-child(4) { transition-delay: 0.18s; }
.sm-screen.is-on .sm-bars i:nth-child(5) { transition-delay: 0.24s; }
.sm-screen.is-on .sm-bars i:nth-child(6) { transition-delay: 0.3s; }
.sm-screen.is-on .sm-bars i:nth-child(7) { transition-delay: 0.36s; }

.sm-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
  margin-top: 1em;
}

.sm-kpis span {
  padding: 0.8em;
  border: 1px solid var(--line-strong);
  border-radius: 0.8em;
  background: rgba(44, 22, 12, 0.8);
  font-size: 0.6em;
  color: var(--muted);
}

.sm-kpis b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2em;
  line-height: 1.1;
  color: var(--brand-cream);
}

/* Map */
.sm-screen--map {
  padding: 0;
}

.sm-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(254, 238, 207, 0.05) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    linear-gradient(90deg, rgba(254, 238, 207, 0.05) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    radial-gradient(circle at 70% 30%, rgba(192, 69, 39, 0.35), transparent 60%),
    #1a0c06;
}

.sm-map svg {
  position: absolute;
  inset: 0 0 22% 0;
  width: 100%;
  height: 78%;
  overflow: visible;
}

.sm-road {
  fill: none;
  stroke: rgba(254, 238, 207, 0.12);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.sm-route {
  fill: none;
  stroke: var(--brand-amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 2s ease 0.3s;
}

.sm-screen.is-on .sm-route { stroke-dashoffset: 0; }

.sm-rover-dot {
  fill: var(--brand-cream);
  filter: drop-shadow(0 0 3px var(--brand-amber));
}

.sm-pin {
  position: absolute;
  left: 85%;
  top: 8%;
  width: 0.9em;
  height: 0.9em;
  margin: -0.45em 0 0 -0.45em;
  border-radius: 50%;
  background: var(--brand-ember);
  box-shadow: 0 0 0 0.3em rgba(192, 69, 39, 0.35);
  animation: sm-pin 1.6s ease-out infinite;
}

@keyframes sm-pin {
  0% { box-shadow: 0 0 0 0 rgba(192, 69, 39, 0.6); }
  100% { box-shadow: 0 0 0 1.4em rgba(192, 69, 39, 0); }
}

.sm-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 1em 1.1em;
  border-top: 1px solid var(--line-strong);
  border-radius: 1.2em 1.2em 0 0;
  background: #1f0f08;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.sm-screen.is-on .sm-sheet { transform: none; }

.sm-sheet p {
  font-size: 0.66em;
  color: var(--muted);
}

.sm-sheet b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45em;
  color: var(--brand-cream);
}

.sm-btn {
  padding: 0.55em 1.1em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7em;
  font-weight: 700;
}

/* Chat */
.sm-msg {
  max-width: 80%;
  margin-top: 0.7em;
  padding: 0.6em 0.85em;
  border-radius: 1em;
  font-size: 0.72em;
  line-height: 1.35;
  opacity: 0;
}

.sm-msg--in {
  background: rgba(44, 22, 12, 0.95);
  border: 1px solid var(--line-strong);
  border-bottom-left-radius: 0.3em;
}

.sm-msg--out {
  margin-left: auto;
  background: var(--gradient);
  color: var(--on-accent);
  font-weight: 600;
  border-bottom-right-radius: 0.3em;
}

.sm-title + .sm-msg { margin-top: 1em; }

.sm-screen.is-on .sm-msg { animation: sm-msg 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.sm-screen.is-on .sm-msg:nth-of-type(2) { animation-delay: 0.3s; }
.sm-screen.is-on .sm-msg:nth-of-type(3) { animation-delay: 1s; }
.sm-screen.is-on .sm-msg:nth-of-type(4) { animation-delay: 1.8s; }

@keyframes sm-msg {
  from { opacity: 0; transform: translateY(0.8em) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.sm-typing {
  display: inline-flex;
  gap: 0.25em;
  margin-top: 0.7em;
  padding: 0.6em 0.8em;
  border-radius: 1em;
  background: rgba(44, 22, 12, 0.95);
  opacity: 0;
}

.sm-screen.is-on .sm-typing { animation: sm-msg 0.4s ease both 2.3s; }

.sm-typing i {
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: var(--muted);
  animation: sa-dot 0.9s ease-in-out infinite;
}

.sm-typing i:nth-child(2) { animation-delay: 0.15s; }
.sm-typing i:nth-child(3) { animation-delay: 0.3s; }

/* Tab bar follows the current screen */
.sm-tabbar {
  position: relative;
  display: flex;
  justify-content: space-around;
  padding: 0.8em 1em 1.5em;
  border-top: 1px solid var(--line);
  background: rgba(18, 7, 4, 0.9);
}

.sm-tabbar i {
  width: 1.05em;
  height: 1.05em;
  border: 1.5px solid var(--muted);
  border-radius: 0.3em;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sm-tabbar i:nth-child(2) { border-radius: 50%; }
.sm-tabbar i:nth-child(4) { border-radius: 50% 50% 0.3em 50%; }

.sm-tabbar i.is-active {
  border-color: var(--accent-2);
  background: rgba(250, 167, 25, 0.25);
}

.sm-tab-dot {
  position: absolute;
  bottom: 0.7em;
  left: calc(12.5% + var(--tab, 0) * 25%);
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateX(-50%);
  transition: left 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}

/* Finger tap before each swipe */
.sm-tap {
  position: absolute;
  z-index: 3;
  left: var(--tx, 50%);
  top: var(--ty, 50%);
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(254, 238, 207, 0.25);
  border: 2px solid rgba(254, 238, 207, 0.7);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
}

.sm-tap.is-tapping {
  animation: sm-tap 0.55s ease-out;
}

@keyframes sm-tap {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

/* Orbiting platform badges */
.sm-orbit {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 12%;
  bottom: -2%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.sm-orbit--back {
  z-index: 0;
  clip-path: inset(-50% -50% 50% -50%);
}

.sm-orbit--front {
  z-index: 2;
  clip-path: inset(50% -50% -50% -50%);
}

.sm-orbit-plane {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  transform: scaleY(0.28);
}

.sm-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(250, 167, 25, 0.3);
  box-shadow: 0 0 60px rgba(229, 125, 35, 0.15) inset;
}

.sm-arm {
  --dur: 18s;
  position: absolute;
  inset: 0;
  animation: sm-arm var(--dur) linear infinite;
  animation-delay: calc(var(--k) * var(--dur) / -6);
}

.sm-arm:nth-of-type(1) { --k: 0; }
.sm-arm:nth-of-type(2) { --k: 1; }
.sm-arm:nth-of-type(3) { --k: 2; }
.sm-arm:nth-of-type(4) { --k: 3; }
.sm-arm:nth-of-type(5) { --k: 4; }
.sm-arm:nth-of-type(6) { --k: 5; }

/* b sits on the rim and undoes the arm's rotation and the plane's
   squash, so the label stays upright and round */
.sm-arm b {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 0;
  height: 0;
  animation: sm-counter var(--dur) linear infinite;
  animation-delay: inherit;
}

.sm-arm i {
  position: absolute;
  left: 0;
  top: 0;
  padding: 7px 14px;
  border: 1px solid rgba(250, 167, 25, 0.55);
  border-radius: 999px;
  background: rgba(21, 9, 5, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(250, 167, 25, 0.18);
  font: 600 0.74rem/1 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--brand-cream);
  white-space: nowrap;
  animation: sm-depth var(--dur) linear infinite;
  animation-delay: inherit;
}

@keyframes sm-arm {
  to { transform: rotate(360deg); }
}

@keyframes sm-counter {
  from { transform: rotate(0deg) scaleY(3.5714); }
  to { transform: rotate(-360deg) scaleY(3.5714); }
}

/* 0% right, 25% front, 50% left, 75% back */
@keyframes sm-depth {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.85; }
  25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.85; }
  75% { transform: translate(-50%, -50%) scale(0.72); opacity: 0.45; }
  100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.85; }
}

.cx-scene--mobile .sm-toast {
  z-index: 3;
}

.cx-scene--mobile .sm-toast--1 { left: -2%; top: 10%; }
.cx-scene--mobile .sm-toast--2 { right: -4%; top: 30%; }
.cx-scene--mobile .sm-toast--3 { left: 0; top: 52%; bottom: auto; }

@media (prefers-reduced-motion: reduce) {
  .sm-arm,
  .sm-arm b,
  .sm-arm i {
    animation-play-state: paused;
  }
}

@media (max-width: 900px) {
  .sm-orbit { left: 6%; right: 6%; }
  .sm-arm i { padding: 5px 10px; font-size: 0.62rem; }
  .cx-scene--mobile .sm-toast { padding: 7px 12px; font-size: 0.7rem; }
  .cx-scene--mobile .sm-toast--1 { left: 0; top: 6%; }
  .cx-scene--mobile .sm-toast--2 { right: 0; left: auto; top: 40%; }
  .cx-scene--mobile .sm-toast--3 { display: none; }
}

/* Chat bubbles hug their text; the release card is the payoff */
.sm-msg { width: fit-content; }

.sm-release {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5em 0.7em;
  align-items: center;
  margin-top: 1em;
  padding: 0.85em;
  border: 1px solid rgba(250, 167, 25, 0.45);
  border-radius: 1em;
  background: linear-gradient(160deg, rgba(229, 125, 35, 0.22), rgba(33, 16, 9, 0.95));
  opacity: 0;
}

.sm-screen.is-on .sm-release {
  animation: sm-msg 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 2.4s;
}

.sm-release-icon {
  width: 2.3em;
  height: 2.3em;
  border-radius: 0.65em;
  background: var(--gradient);
  box-shadow: 0 0 1em rgba(250, 167, 25, 0.45);
}

.sm-release p {
  font-size: 0.62em;
  color: var(--muted);
}

.sm-release b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55em;
  color: var(--brand-cream);
}

.sm-release-stores {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.4em;
}

.sm-release-stores i {
  flex: 1;
  padding: 0.45em 0;
  border-radius: 0.5em;
  background: #050201;
  border: 1px solid var(--line-strong);
  font-style: normal;
  font-size: 0.56em;
  font-weight: 600;
  text-align: center;
}

.sm-screen.is-on .sm-typing { animation-delay: 3s; }

/* ================================================================
   Responsive pass: every viewport from 360px phones to 2560px
   ultrawides, including short laptop screens (MacBook 1280x800,
   1366x768 with browser chrome).
   ================================================================ */

/* Wide decorative layers (grain, AR floor, star-map sweep, footage
   wall) must never widen the page. `clip` (not `hidden`) keeps sticky
   and GSAP pinning working. */
html,
body {
  overflow-x: clip;
}

.cx-main {
  overflow-x: clip;
}

/* ---- Web scene: score ring. Number and label stacked in flow, so
   "100" and "PERFORMANCE" can never touch at any size. */
.sw-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}

.sw-score b {
  position: relative;
  margin-top: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.15rem, 2.1vw, 2rem);
}

.sw-score span {
  position: relative;
  bottom: auto;
  font-size: clamp(0.4rem, 0.62vw, 0.54rem);
  letter-spacing: 0.12em;
  line-height: 1;
}

/* ---- Platform scene: keep the "Systems in sync" card clear of the
   CLOUD and DATA nodes. */
.sp-graph {
  width: 78%;
  height: 78%;
}

.sp-dash {
  width: 38%;
  right: -1%;
}

@media (max-width: 600px) {
  .sp-dash { padding: 10px 12px; }
  .sp-rows { display: none; }
}

/* ---- Flight plan: the pinned section must fit one screen ------- */
.cx-flight-pin {
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

@media (min-width: 901px) {
  /* Card beside the heading and map, spanning the full height,
     instead of stacked under the heading where it ran off-screen. */
  .cx-flight-pin {
    grid-template-rows: auto minmax(0, 1fr);
    padding-top: clamp(96px, 13vh, 120px);
    padding-bottom: clamp(24px, 5vh, 50px);
  }

  .cx-flight-head { grid-column: 1; }

  .cx-flight-head h2 { font-size: clamp(2.2rem, min(5vw, 8vh), 4.8rem); }

  .cx-flight-card {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    max-height: 100%;
  }

  .cx-flight-map { min-height: 0; }
}

/* Short laptop screens: tighten the card so it always fits */
@media (min-width: 901px) and (max-height: 820px) {
  .cx-flight-card { padding: 20px 22px 18px; }
  .cx-flight-card h3 { margin-top: 10px; font-size: clamp(1.5rem, 4vh, 2rem); }
  .cx-flight-card > p { min-height: 0; font-size: 0.88rem; }
  .cx-flight-checklist {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 0.78rem;
  }
  .cx-flight-meter { margin-top: 12px; }
  .cx-flight-head p:last-child { margin-top: 8px; font-size: 0.95rem; }
}

@media (min-width: 901px) and (max-height: 640px) {
  .cx-flight-head p:last-child { display: none; }
  .cx-flight-crew { display: none; }
}

/* Phones and portrait tablets: heading, map, card in one screen */
@media (max-width: 900px) {
  .cx-flight-pin {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 84px 6vw 20px;
  }

  .cx-flight-head h2 { font-size: clamp(2rem, 9vw, 3.4rem); }
  .cx-flight-head p:last-child { margin-top: 8px; font-size: 0.92rem; }
  .cx-flight-map { min-height: 0; margin-inline: 4vw; }
  .cx-flight-card h3 { margin-top: 10px; font-size: 1.5rem; }
  .cx-flight-crew { margin-top: 10px; }
  .cx-flight-meter { margin-top: 12px; }
}

@media (max-width: 900px) and (max-height: 760px) {
  .cx-flight-head p:last-child { display: none; }
  .cx-flight-crew { display: none; }
}

/* Landscape phones: side by side, the only layout that fits 390px tall */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .cx-flight-pin {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 42%);
    grid-template-rows: auto minmax(0, 1fr);
    padding: 70px 5vw 14px;
  }
  .cx-flight-head { grid-column: 1; }
  .cx-flight-head h2 { font-size: 1.8rem; }
  .cx-flight-card { grid-column: 2; grid-row: 1 / -1; align-self: center; padding: 14px 16px; }
  .cx-flight-card h3 { font-size: 1.25rem; }
  .cx-flight-card > p { font-size: 0.8rem; }
}

/* ---- Manifesto (pinned): fit short screens ----------------------- */
@media (max-height: 820px) {
  .cx-manifesto-pin { padding-block: 96px 40px; }
  .cx-manifesto-text { font-size: clamp(1.7rem, min(4.6vw, 6.4vh), 4.2rem); }
  .cx-telemetry { margin-top: clamp(24px, 5vh, 48px); }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .cx-manifesto-pin { padding-block: 70px 20px; }
  .cx-manifesto-text { font-size: clamp(1.2rem, 6vh, 1.8rem); }
  .cx-telemetry { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
  .cx-tele strong { font-size: clamp(1.8rem, 7vh, 2.6rem); }
}

/* ---- Fleet panels (horizontal, pinned): fit short laptop screens */
@media (min-width: 901px) and (max-height: 820px) {
  .cx-h .cx-panel { padding-block: 96px 64px; }
  .cx-panel-copy h3 { font-size: clamp(2.2rem, min(5vw, 8vh), 4.6rem); }
  .cx-panel-idx { margin-bottom: 12px; }
  .cx-panel-copy > p:not(.cx-panel-idx) { margin-top: 14px; }
  .cx-svc-list { margin-top: 16px; }
  .cx-svc-list a { padding-block: 8px; }
  .cx-scene { max-height: 62vh; }
  .cx-fleet-title { font-size: clamp(2.8rem, min(8vw, 13vh), 7.5rem); }
}

@media (min-width: 901px) and (max-height: 680px) {
  .cx-svc-list span { display: none; }
  .cx-panel-copy > p:not(.cx-panel-idx) { font-size: 0.95rem; }
}

/* ---- Ultrawide: stop content stretching into thin lines ---------- */
@media (min-width: 1920px) {
  .cx-panel { gap: clamp(60px, 6vw, 140px); }
  .cx-scene { max-width: 760px; }
  .cx-flight-pin { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); }
}

/* Phones: manifesto and its four stat cards fit one pinned screen */
@media (max-width: 600px) {
  .cx-manifesto-pin { padding-block: 84px 24px; }
  .cx-manifesto-text { font-size: clamp(1.35rem, min(6.4vw, 3.6vh), 1.9rem); }
  .cx-telemetry { margin-top: 24px; }
}

/* ================================================================
   Motion budget and touch pass
   ================================================================ */

/* Loops only run where they can be seen: fleet scenes that are not
   live, and chapters scrolled off screen (services.js toggles
   .is-offscreen), hold their CSS animations. */
.cx-ready .cx-panel:not(.is-live) .cx-scene *,
.cx-ready .cx-panel:not(.is-live) .cx-scene *::before,
.cx-ready .cx-panel:not(.is-live) .cx-scene *::after,
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
  animation-play-state: paused !important;
}

/* Reduced motion: every decorative loop on the page settles on its
   resting frame. Colour and border fades on hover stay. */
@media (prefers-reduced-motion: reduce) {
  .cx-main *,
  .cx-main *::before,
  .cx-main *::after,
  .cx-fx *,
  .cx-comms *,
  .cx-comms *::after,
  .cx-alt * {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }

  .cx-grain { display: none; }
}

/* Touch screens: every control gets at least a 44px target */
@media (pointer: coarse) {
  .cx-comms-list a {
    width: 44px;
    height: 44px;
  }

  .cx-chip,
  .cx-cta-contact a {
    min-height: 44px;
  }

  .cx-mission-clear {
    min-height: 44px;
    padding-inline: 16px;
  }

  .cx-textlink,
  .cx-map-card-link,
  .cx-flight-crew a {
    position: relative;
  }

  .cx-textlink::after,
  .cx-map-card-link::after,
  .cx-flight-crew a::after {
    content: "";
    position: absolute;
    inset: -10px -4px;
  }

  .cx-star::before {
    inset: -16px;
  }
}

/* Keyboard focus in the fleet reads as the same hairline language */
.cx-svc-list a:focus-visible {
  outline: none;
  box-shadow: inset 0 -1px 0 var(--accent-2);
}

.cx-svc-list a:focus-visible b {
  color: var(--accent-2);
}

.cx-tile:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

/* the call's hover, the site's CTA language: dark key, light words */
.cx-call { transition: --hov 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background-color 0.35s ease; }
.cx-call:hover,
.cx-call:focus-visible {
  background: #150905;
  box-shadow:
    0 0 0 1px rgba(250, 167, 25, 0.75),
    0 0 36px -6px rgba(250, 167, 25, 0.45),
    0 24px 50px -18px rgba(229, 125, 35, 0.6);
}
.cx-call:hover .cx-call-txt b,
.cx-call:focus-visible .cx-call-txt b { color: var(--text); }
.cx-call:hover .cx-call-txt small,
.cx-call:focus-visible .cx-call-txt small { color: var(--accent-2); }
.cx-call:hover .cx-call-wave i,
.cx-call:focus-visible .cx-call-wave i { background: var(--accent-2); }
.cx-call:hover .cx-call-arrow,
.cx-call:focus-visible .cx-call-arrow { background: var(--gradient); box-shadow: none; }
.cx-call:hover .cx-call-arrow svg,
.cx-call:focus-visible .cx-call-arrow svg { stroke: var(--on-accent); }
