/* Story Assets Machine · brand system */
:root {
  --ink: #06141F;        /* near-black blue base */
  --royal: #1F5FF5;      /* primary, brightest */
  --ocean: #15639C;
  --emerald: #0E6E54;    /* accent only */
  --sage: #7FD1A8;       /* highlight */
  --bone: #F4F3EE;       /* light surface */
  --display: "Schibsted Grotesk", sans-serif;
  --body: "Inter", sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  overflow-x: hidden;
}

::selection { background: var(--royal); color: var(--bone); }

/* ---- fixed ascent canvas ---- */
#ascent {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: var(--ink);
}

/* color grade veil above video, below text */
#grade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 60%, transparent 40%, rgba(6, 20, 31, 0.55) 100%);
}

/* ---- scroll driver ---- */
.scroll-track { height: 1500vh; }

/* ---- HUD ---- */
.hud {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  padding: clamp(16px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wordmark { display: flex; flex-direction: column; gap: 3px; }
.wm-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.wm-sam {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.55);
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(244, 243, 238, 0.6);
}
.hud-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 8px rgba(127, 209, 168, 0.8);
}

/* altitude meter, right edge */
.hud-alt {
  position: absolute;
  right: clamp(16px, 2.6vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.alt-rail {
  position: relative;
  width: 2px;
  height: 42vh;
  background: rgba(244, 243, 238, 0.14);
}
.alt-fill {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, var(--ocean), var(--royal));
  box-shadow: 0 0 12px rgba(31, 95, 245, 0.7);
}
.alt-tick {
  position: absolute;
  left: -5px;
  width: 12px;
  height: 1px;
  background: rgba(244, 243, 238, 0.3);
}

.alt-read {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  min-width: 92px;
}
.alt-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(244, 243, 238, 0.45);
}
.alt-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.alt-zone {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--royal);
  text-transform: uppercase;
}

.hud-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: rgba(244, 243, 238, 0.4);
  font-variant-numeric: tabular-nums;
}

/* ---- zones ---- */
.zones { position: fixed; inset: 0; z-index: 3; pointer-events: none; }

.zone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 8vw, 140px);
  max-width: 1100px;
  opacity: 0;
  visibility: hidden;
}

.zone .display { will-change: transform, opacity; }

/* dark card behind zone text for contrast over bright frames */
.card {
  width: fit-content;
  max-width: min(760px, 100%);
  background: rgba(4, 13, 20, 0.88);
  border: 1px solid rgba(31, 95, 245, 0.22);
  border-radius: 3px;
  padding: clamp(26px, 3.4vw, 46px) clamp(26px, 3.8vw, 52px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--royal);
  border-style: solid;
  opacity: 0.75;
}
.card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* hero card: bottom-left, right edge fades out so the craft stays visible */
#z-hero {
  justify-content: flex-end;
  padding-bottom: 9vh;
}
#z-hero .card,
#z-story .card,
#z-assets .card {
  max-width: min(480px, 88%);
  background: linear-gradient(
    100deg,
    rgba(4, 13, 20, 0.88) 0%,
    rgba(4, 13, 20, 0.45) 30%,
    rgba(4, 13, 20, 0.06) 70%,
    rgba(4, 13, 20, 0) 100%
  );
  border-right-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
#z-hero .card::after,
#z-story .card::after,
#z-assets .card::after { display: none; }

/* statement card second line: spaced apart, sage accent */
.statement-accent {
  display: block;
  margin-top: 1.1em;
  color: var(--sage);
}

/* statement card: one large centered line */
.zone--statement { align-items: center; max-width: none; }
.card--statement { text-align: center; }
.card--statement .display { max-width: 16ch; margin: 0 auto; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
}

#z-hero .display { max-width: 14ch; }

.body-line {
  margin-top: 20px;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244, 243, 238, 0.9);
  max-width: 46ch;
}

.scroll-cue {
  margin-top: 48px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.72);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cue-line {
  display: inline-block;
  width: 54px;
  height: 1px;
  background: linear-gradient(to right, var(--royal), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(10px); }
}

/* quote */
.quote-line { font-weight: 500; font-size: clamp(26px, 3.6vw, 48px); max-width: 24ch; }
.quote-cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.75);
}
.quote-cite::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--royal);
  margin-right: 14px;
  vertical-align: middle;
}

/* embed slot */
.embed-slot {
  margin-top: 34px;
  width: min(430px, 72vw);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(244, 243, 238, 0.16);
  background: rgba(6, 20, 31, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(2px);
}
.embed-slot::before, .embed-slot::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--royal);
  border-style: solid;
}
.embed-slot::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.embed-slot::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.embed-slot iframe { width: 100%; height: 100%; border: 0; }
.embed-hint {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.55);
  padding: 0 20px;
  text-align: center;
  line-height: 1.8;
}
.embed-slot--close { display: none; }
.embed-slot--close.has-embed { display: flex; }

/* close */
#z-close { align-items: flex-start; }
.cta {
  pointer-events: auto;
  margin-top: 42px;
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-decoration: none;
  padding: 15px 34px;
  border: 1px solid var(--royal);
  background: rgba(31, 95, 245, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.cta:hover {
  background: rgba(31, 95, 245, 0.28);
  box-shadow: 0 0 26px rgba(31, 95, 245, 0.35);
}
.close-foot {
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 243, 238, 0.4);
}

/* loading veil */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.8s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.loader-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.loader-bar {
  width: 180px; height: 1px;
  background: rgba(244, 243, 238, 0.15);
  position: relative;
  overflow: hidden;
}
.loader-bar span {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--royal);
  box-shadow: 0 0 10px rgba(31, 95, 245, 0.9);
}
.loader-sub {
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.45);
}

@media (max-width: 720px) {
  .hud-alt { right: 12px; gap: 9px; }
  .alt-rail { height: 30vh; }
  .alt-read { min-width: 64px; }
  .hud-bottom span:nth-child(2) { display: none; }
  .zone { padding: 0 24px; justify-content: flex-end; padding-bottom: 20vh; }
}

/* ---- hero trust line ---- */
.hero-trust {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.62);
}

/* ---- ground: homepage content after the ascent ---- */
.ground {
  position: relative;
  z-index: 6;
  /* Earth's limb from the final orbit hold stays fixed behind the ground
     content: you are standing on top of the world. */
  background-image:
    linear-gradient(to bottom, rgba(2, 10, 18, 0.78) 0%, rgba(4, 13, 20, 0.86) 45%, rgba(6, 20, 31, 0.93) 100%),
    url("../frames/f_0543.jpg");
  background-position: center, center bottom;
  background-size: auto, cover;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
  border-top: 1px solid rgba(31, 95, 245, 0.25);
}
body.landed .hud, body.landed .zones { opacity: 0; pointer-events: none; }
.hud, .zones { transition: opacity 0.5s ease; }

.g-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(70px, 10vh, 130px) clamp(24px, 6vw, 80px);
}

.g-kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.g-kicker::after {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: var(--royal);
}

.g-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
}
.g-accent { color: var(--royal); }

.g-body {
  margin-top: 22px;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 243, 238, 0.85);
  max-width: 58ch;
}

/* stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 5vw, 64px) clamp(32px, 5vw, 72px);
}
.stat {
  border-left: 2px solid rgba(31, 95, 245, 0.45);
  padding-left: clamp(18px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(105deg, var(--bone) 40%, #7fa4f9 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.6);
  line-height: 1.8;
  max-width: 30ch;
}

/* logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
.logo-grid--top { margin-top: clamp(56px, 8vh, 90px); }
.logo-tile {
  background: var(--bone);
  border-radius: 10px;
  aspect-ratio: 5 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6% 10%;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* pain cards */
.g-pain .g-display { margin-bottom: 54px; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.pcard {
  background: rgba(4, 13, 20, 0.85);
  border: 1px solid rgba(31, 95, 245, 0.22);
  border-left: 2px solid var(--royal);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 38px);
}
.pcard-num {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--royal);
  margin-bottom: 14px;
}
.pcard-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 1.9vw, 26px);
  margin-bottom: 12px;
}
.pcard-body {
  font-size: clamp(14px, 1.2vw, 16.5px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 243, 238, 0.78);
}

/* ground close */
.g-close { padding-bottom: clamp(90px, 14vh, 160px); }
.g-close .cta { margin-top: 34px; }
.g-foot {
  margin-top: 64px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.4);
}

@media (max-width: 720px) {
  .stat-grid, .pain-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- scroll-reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* pain card hover lift */
.pcard { transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.7s ease; }
.pcard:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 95, 245, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 24px rgba(31, 95, 245, 0.12);
}

/* ---- AI mini cards ---- */
.mini-grid {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.mcard {
  background: rgba(4, 13, 20, 0.7);
  border: 1px solid rgba(31, 95, 245, 0.18);
  border-left: 2px solid var(--royal);
  border-radius: 4px;
  padding: 18px 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.7s ease;
}
.mcard:hover { transform: translateY(-3px); border-color: rgba(31, 95, 245, 0.5); }
.mcard-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.mcard-swap {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244, 243, 238, 0.6);
}

/* ---- contact form ---- */
.contact-form { margin-top: 38px; max-width: 640px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.65);
}
.form-field input {
  background: rgba(4, 13, 20, 0.8);
  border: 1px solid rgba(31, 95, 245, 0.3);
  border-radius: 3px;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--bone);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-field input:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(31, 95, 245, 0.18);
}
.cta--submit {
  margin-top: 26px;
  cursor: pointer;
  font-size: 14px;
}
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
}

/* ---- keep-scrolling cue with animated carets ---- */
.keep-scrolling {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.55);
}
.carets { display: flex; flex-direction: column; align-items: flex-start; padding-left: 34px; }
.carets i {
  display: block;
  width: 11px; height: 11px;
  border-right: 2px solid var(--royal);
  border-bottom: 2px solid var(--royal);
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: 0.2;
  animation: caretWave 1.5s ease-in-out infinite;
}
.carets i:nth-child(2) { animation-delay: 0.18s; }
.carets i:nth-child(3) { animation-delay: 0.36s; }
@keyframes caretWave {
  0%, 100% { opacity: 0.2; transform: rotate(45deg) translate(0, 0); }
  40% { opacity: 1; transform: rotate(45deg) translate(3px, 3px); }
}

/* ---- altitude rail persists through the ground; only top/bottom HUD fades ---- */
.hud { z-index: 7; }
body.landed .hud { opacity: 1; pointer-events: none; }
.hud-top, .hud-bottom { transition: opacity 0.5s ease; }
body.landed .hud-top, body.landed .hud-bottom { opacity: 0; }

/* ---- SDI call-to-action card ---- */
.g-sdi { padding-top: 0; }
.sdi-cta {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  background: rgba(4, 13, 20, 0.8);
  border: 1px solid rgba(31, 95, 245, 0.28);
  border-radius: 4px;
  padding: clamp(32px, 4.5vw, 56px);
  position: relative;
  overflow: hidden;
}
.sdi-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 0% 50%, rgba(31, 95, 245, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.sdi-ring-wrap { position: relative; flex: 0 0 auto; }
.sdi-arc { transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 0.8, 0.3, 1); }
.sdi-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.sdi-ring-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sdi-ring-label small {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.5);
}
.sdi-cta-copy .g-headline { max-width: 18ch; }
.sdi-cta-copy .cta { margin-top: 30px; }
@media (max-width: 720px) {
  .sdi-cta { flex-direction: column; align-items: flex-start; }
}

/* ---- SDI entry points ---- */
.hud-cta {
  pointer-events: auto;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  border: 1px solid rgba(127, 209, 168, 0.35);
  border-radius: 3px;
  padding: 9px 14px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.hud-cta:hover {
  background: rgba(127, 209, 168, 0.12);
  border-color: var(--sage);
}

.alt-path {
  pointer-events: auto;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(244, 243, 238, 0.6);
}
.alt-path a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.alt-path a:hover { color: var(--bone); }

/* landed: the altitude rail steps out of the way */
body.landed .hud-alt { opacity: 0.22; transition: opacity 0.5s ease; }
body.landed .alt-read { opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
body.landed .alt-tick { opacity: 0; }

/* ---- primary CTA: bright metallic royal blue ---- */
.cta--primary {
  background: linear-gradient(180deg, #4a80f8 0%, #1F5FF5 48%, #1748BC 100%);
  border-color: rgba(127, 178, 255, 0.7);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 22px rgba(31, 95, 245, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.cta--primary:hover {
  background: linear-gradient(180deg, #5c8dfa 0%, #2f6bf6 48%, #1c52d4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 32px rgba(31, 95, 245, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

/* foot + scroll cue now sit outside the close card */
#z-close .close-foot { margin-top: 26px; }
#z-close .keep-scrolling { margin-top: 22px; }
#z-close .close-foot, #z-close .keep-scrolling {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8);
}

/* ---- custom cursor: dot + trailing ring ---- */
@media (pointer: fine) {
  html, body, a, button, input, textarea, [data-hover] { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;          /* never blocks clicks */
  border-radius: 50%;
  z-index: 9999;
}
.cursor-dot  { width: 8px;  height: 8px;  background: #1F5FF5; }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(31, 95, 245, 0.55);
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
/* ring grows when hovering anything clickable */
.cursor-ring.grow { width: 56px; height: 56px; border-color: #1F5FF5; }

/* ---- quote lives inside the statement card now ---- */
.statement-quote {
  margin: 36px auto 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: rgba(244, 243, 238, 0.78);
}
.statement-cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.5);
}

/* brighter scroll-cue carets */
.carets i {
  border-right-color: #5c8dfa;
  border-bottom-color: #5c8dfa;
  filter: drop-shadow(0 0 6px rgba(31, 95, 245, 0.8));
}
@keyframes caretWave {
  0%, 100% { opacity: 0.55; transform: rotate(45deg) translate(0, 0); }
  40% { opacity: 1; transform: rotate(45deg) translate(3px, 3px); }
}

/* logos merged into the results section */
.g-results .logo-grid { margin-top: clamp(44px, 7vh, 72px); }

/* SDI card: brighter frame, steady glow on the button, calmer hover */
.sdi-cta {
  border-color: rgba(92, 141, 250, 0.65);
  box-shadow: 0 0 34px rgba(31, 95, 245, 0.22);
}
.g-sdi .cta {
  box-shadow: 0 0 26px rgba(31, 95, 245, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(127, 178, 255, 0.8);
  background: rgba(31, 95, 245, 0.22);
}
.g-sdi .cta:hover {
  box-shadow: 0 0 10px rgba(31, 95, 245, 0.3);
  background: rgba(31, 95, 245, 0.3);
}

/* keep-scrolling cue: highlighted and pinned low on the screen */
#z-close .keep-scrolling {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  align-items: center;
  color: var(--sage);
  font-weight: 600;
  text-shadow: 0 0 14px rgba(127, 209, 168, 0.5);
}
#z-close .keep-scrolling .carets {
  padding-left: 0;
  align-items: center;
}

/* ground starts sooner after orbit: less dead scroll after the close card */
.ground { margin-top: -45vh; }

/* the quote greets you the moment you land */
.g-quote {
  text-align: center;
  padding-top: clamp(90px, 16vh, 160px);
  padding-bottom: clamp(40px, 7vh, 80px);
}
.gq-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: balance;
}
.gq-cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.55);
}
.gq-cite::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--royal);
  margin-right: 14px;
  vertical-align: middle;
}

/* trust line: bottom right, tucked under the altitude meter */
.hud-trust {
  position: absolute;
  right: clamp(16px, 2.6vw, 34px);
  bottom: clamp(56px, 9vh, 90px);
  max-width: 240px;
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  color: rgba(244, 243, 238, 0.55);
  transition: opacity 0.5s ease;
}
body.landed .hud-trust { opacity: 0; }

.body-line--punch {
  color: var(--sage);
  font-weight: 400;
}
#z-hero .body-line--punch + .body-line { margin-top: 8px; }

/* trust line brightens to white after the machine zone */
.hud-trust { transition: opacity 0.5s ease, color 0.8s ease, text-shadow 0.8s ease; }
body.trust-bright .hud-trust {
  color: var(--bone);
  text-shadow: 0 0 14px rgba(244, 243, 238, 0.3);
}

/* three ways in: cards echo the pain cards, links sit at the card foot */
.ways-grid .pcard { display: flex; flex-direction: column; }
.ways-grid .alt-path { margin-top: auto; padding-top: 18px; }

/* =============================================================
   MOBILE — pushed to the end so it wins the cascade
   ============================================================= */

/* horizontal top progress bar (hidden on desktop) */
.mobile-progress { display: none; }

@media (max-width: 720px) {
  /* hide the vertical altitude meter entirely — it was overlapping the cards */
  .hud-alt { display: none; }
  .hud-trust { display: none; }

  /* thin horizontal bar pinned to the very top of the viewport */
  .mobile-progress {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 8;
    background: rgba(244, 243, 238, 0.08);
    pointer-events: none;
  }
  .mobile-progress span {
    display: block;
    height: 100%;
    width: var(--sam-progress, 0%);
    background: linear-gradient(to right, var(--ocean), var(--royal));
    box-shadow: 0 0 8px rgba(31, 95, 245, 0.6);
    transition: width 0.05s linear;
  }
  body.landed .mobile-progress { opacity: 0.45; }

  /* HUD top: give the wordmark room, shrink the SDI chip */
  .hud { padding: 14px 16px; }
  .wm-name { font-size: 13px; }
  .hud-cta {
    font-size: 9px;
    letter-spacing: 0.2em;
    padding: 7px 10px;
  }
  .hud-bottom { font-size: 8.5px; letter-spacing: 0.18em; }
  .hud-bottom span:nth-child(2) { display: none; }

  /* zone cards: full-width comfortably, no more right-fade
     (the fade was designed so text vanishes off the ship on desktop;
      on mobile the whole card sits over the ship, so it just made
      the copy unreadable — kill the gradient) */
  .zone {
    padding: 0 18px;
    justify-content: flex-end;
    padding-bottom: 14vh;
    padding-top: 60px;   /* clear the top progress bar and wordmark */
    max-width: none;
  }
  .card { max-width: 100%; padding: 22px 22px; }
  #z-hero .card,
  #z-story .card,
  #z-assets .card {
    max-width: 100%;
    background: rgba(4, 13, 20, 0.9);
    border-right-color: rgba(31, 95, 245, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  }
  #z-hero .card::after,
  #z-story .card::after,
  #z-assets .card::after { display: block; }

  /* typography scales for narrow screens */
  .display { font-size: clamp(26px, 7vw, 34px); }
  .body-line { font-size: 14.5px; }
  .quote-line { font-size: clamp(20px, 5.5vw, 26px); }
  .card--statement .display { font-size: clamp(24px, 6.4vw, 32px); }

  /* keep-scrolling cue: centered under the close card, tighter */
  #z-close .keep-scrolling {
    bottom: 6vh;
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  /* ground: give it back the space the fixed HUD used to consume */
  .ground { margin-top: -20vh; }
  .g-section { padding: 60px 20px; }
  .g-display { font-size: clamp(28px, 8vw, 42px); }
  .g-headline { font-size: clamp(24px, 6.8vw, 34px); }

  /* proof + results stats: two columns on mobile, not squished single column */
  .stat-grid, .pain-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-num { font-size: clamp(38px, 12vw, 54px); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-tile { padding: 14px; }

  /* SDI card: stack on mobile */
  .sdi-cta { flex-direction: column; text-align: center; padding: 28px 22px; }
  .sdi-cta-copy .g-headline { margin: 0 auto; }
  .sdi-ring-wrap svg { width: 130px; height: 130px; }

  /* contact form: stack, full-width inputs */
  .form-row { grid-template-columns: 1fr; gap: 14px; }

  /* mini AI cards */
  .mini-grid { grid-template-columns: 1fr; }

  /* custom cursor off on touch (already gated by pointer:fine, belt-and-suspenders) */
  html, body, a, button, input, textarea, [data-hover] { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* very narrow: extra breathing room */
@media (max-width: 380px) {
  .hud { padding: 12px 12px; }
  .hud-cta { font-size: 8.5px; padding: 6px 9px; }
  .zone { padding: 60px 14px 12vh; }
  .card { padding: 20px 18px; }
  .display { font-size: clamp(24px, 7vw, 30px); }
}

/* ---- hero play button: click to auto-play the launch ---- */
.hero-actions {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-actions .scroll-cue { margin-top: 0; }

.hero-play {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.72);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}
.hero-play:hover { color: var(--bone); }
.hero-play:hover .hero-play-icon { border-left-color: var(--bone); }
.hero-play-icon {
  width: 0; height: 0;
  border-left: 8px solid var(--royal);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: border-left-color 0.3s ease;
}

/* the button disappears once the launch is playing */
body.launch-playing .hero-play { opacity: 0.35; pointer-events: none; }
body.launch-playing .hero-actions .scroll-cue { opacity: 0.5; }

@media (max-width: 720px) {
  .hero-actions { margin-top: 34px; gap: 14px; }
  .hero-play { font-size: 12px; padding: 11px 18px 11px 14px; }
}

/* hero actions with the softened play affordance */
.hero-play .cue-line { width: 40px; }
body.launch-playing .hero-play { opacity: 0.4; }

/* ---- launch cue as a light (ghost) button ---- */
.hero-play {
  border: 1px solid rgba(244, 243, 238, 0.28);
  border-radius: 3px;
  padding: 12px 20px;
  background: rgba(244, 243, 238, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hero-play:hover {
  background: rgba(244, 243, 238, 0.12);
  border-color: rgba(244, 243, 238, 0.6);
}
.hero-play .cue-line { display: none; }

/* ---- keep-scrolling cue above the ground quote ---- */
.keep-scrolling--ground {
  position: static;
  transform: none;
  align-items: center;
  margin: 0 auto clamp(40px, 7vh, 70px);
  color: var(--sage);
  font-weight: 600;
  text-shadow: 0 0 14px rgba(127, 209, 168, 0.5);
}
.keep-scrolling--ground .carets { padding-left: 0; align-items: center; }

@media (max-width: 720px) {
  /* the small wordmark is now the only brand mark, so give it presence */
  .wm-sam { font-size: 9px; letter-spacing: 0.26em; color: rgba(244, 243, 238, 0.75); }
  /* light launch button sizing on narrow screens */
  .hero-play { padding: 11px 16px; font-size: 9.5px; letter-spacing: 0.24em; }
  /* ground scroll cue */
  .keep-scrolling--ground { margin-bottom: 32px; font-size: 9px; }
}

/* ---- mid-page conversation CTA bands ---- */
.cta-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(50px, 8vh, 90px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.cta-band-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 22ch;
  margin: 0 auto 24px;
  text-wrap: balance;
}
.cta-band .cta { margin-top: 0; }

/* remove the blue progress fill on the altitude rail (keep rail, ticks, readout) */
.alt-fill { display: none; }

/* mobile: drop the green "Story · Assets · Machine" eyebrow on the first CTA
   card — it duplicates the fixed top-left wordmark and crowds the screen */
@media (max-width: 720px) {
  #z-close .kicker { display: none; }
}

/* launch button: gentle attention-getting pulse (white glow breathing to transparent) */
@keyframes launchPulse {
  0%, 100% {
    background: rgba(244, 243, 238, 0.03);
    border-color: rgba(244, 243, 238, 0.25);
    box-shadow: 0 0 0 rgba(244, 243, 238, 0);
  }
  50% {
    background: rgba(244, 243, 238, 0.16);
    border-color: rgba(244, 243, 238, 0.85);
    box-shadow: 0 0 22px rgba(244, 243, 238, 0.28);
  }
}
.hero-play { animation: launchPulse 2.6s ease-in-out infinite; }
.hero-play:hover { animation: none; }              /* hover takes over cleanly */
body.launch-playing .hero-play { animation: none; } /* stop once it's playing */
@media (prefers-reduced-motion: reduce) {
  .hero-play { animation: none; }
}
