/* ============================================================
   CARTER STODDARD — PORTFOLIO
   styles.css
   ============================================================ */


/* Fonts loaded via <link> in HTML — no @import needed */


/* ------------------------------------------------------------
   CSS VARIABLES — TOKENS
   Change any role in one line.
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-bg:      #000000;
  --color-text:    #FFFFFF;
  --color-accent:  #CCFF00;

  /* Fonts — semantic roles */
  --font-heading:    'Archivo Black', sans-serif;
  --font-accent:     'Playfair Display', serif;       /* always italic, always lime */
  --font-marker:     'Permanent Marker', cursive;     /* signature, annotations */
  --font-body:       'Space Grotesk', sans-serif;
  --font-subheading: 'Space Grotesk', sans-serif;
  --font-button:     'Space Grotesk', sans-serif;
  --font-label:      'Space Grotesk', sans-serif;
  --font-nav:        'Space Grotesk', sans-serif;
  --font-caption:    'Space Grotesk', sans-serif;
  --font-quote:      'Playfair Display', serif;
  --font-marquee:    'Archivo Black', sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.87, 0, 0.13, 1);
  --duration-fast:   0.2s;
  --duration-base:   0.5s;
  --duration-slow:   1s;

  /* Z-index layers */
  --z-bg:      0;
  --z-content: 10;
  --z-nav:     100;
  --z-loader:  1000;

  /* Border radius — global tokens */
  --radius-card:   12px;
  --radius-pill:   99px;
  --radius-button: 14px;
  --radius-circle: 50%;
}


/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Screen-reader only — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus — visible outline on Tab, hidden on click */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  background-color: #000000;
  touch-action: manipulation;
}

body {
  background-color: #000000; /* starfield canvas sits above this */
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-button);
}


/* ------------------------------------------------------------
   UTILITY CLASSES
   ------------------------------------------------------------ */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-accent);
}

.marker {
  font-family: var(--font-marker);
  color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Global container — consistent left-edge alignment for section headers ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ============================================================
   SITE PASSWORD GATE
   ============================================================ */

.gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black, #000);
}

.gate__vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.gate__content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: 0 24px;
}

/* ── Decorative restricted label ── */
.gate__restricted {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.gate__restricted-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(204, 255, 0, 0.25);
}

.gate__restricted-text {
  font-family: var(--font-label, 'Space Grotesk', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.gate__restricted-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent, #ccff00);
  animation: gate-pulse 1.6s ease-in-out infinite;
}

@keyframes gate-pulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ── Heading ── */
.gate__heading {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 8px;
}

.gate__heading-name {
  font-family: var(--font-heading, 'Archivo Black', sans-serif);
  color: #fff;
  display: inline;
}

.gate__heading-accent {
  font-family: var(--font-accent, 'Playfair Display', serif);
  font-style: italic;
  color: var(--color-accent, #ccff00);
  display: inline;
  margin-left: 0.15em;
}

/* ── Subheading ── */
.gate__sub {
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-weight: 300;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

/* ── Form ── */
.gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Input wrapper with corner bracket treatment ── */
.gate__input-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 14px;
  border-top: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: var(--radius-card, 4px);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gate__input-wrap::before,
.gate__input-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-color: rgba(204, 255, 0, 0.6);
  border-style: solid;
  transition: border-color 0.3s ease;
}

.gate__input-wrap::before {
  left: 0;
  border-width: 0 0 1.5px 1.5px;
  border-radius: 0 0 0 var(--radius-card, 4px);
}

.gate__input-wrap::after {
  right: 0;
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0 0 var(--radius-card, 4px) 0;
}

/* Focus state */
.gate__input-wrap:focus-within {
  border-color: rgba(204, 255, 0, 1);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.06);
}

.gate__input-wrap:focus-within::before,
.gate__input-wrap:focus-within::after {
  border-color: rgba(204, 255, 0, 1);
}

/* Success state */
.gate__input-wrap--success {
  border-color: var(--color-accent, #ccff00) !important;
}
.gate__input-wrap--success::before,
.gate__input-wrap--success::after {
  border-color: var(--color-accent, #ccff00) !important;
}

/* Error state */
.gate__input-wrap--error {
  border-color: rgba(255, 80, 80, 0.8) !important;
}
.gate__input-wrap--error::before,
.gate__input-wrap--error::after {
  border-color: rgba(255, 80, 80, 0.8) !important;
}

/* ── Input ── */
.gate__input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-weight: 400;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.25em;
}

.gate__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2em;
}

/* ── Message ── */
.gate__msg {
  font-family: var(--font-label, 'Space Grotesk', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  min-height: 18px;
  opacity: 0;
}

.gate__msg--success {
  color: var(--color-accent, #ccff00);
}

.gate__msg--error {
  color: rgba(255, 80, 80, 0.8);
}

/* ── Button ── */
.gate__btn {
  font-family: var(--font-button, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-accent, #ccff00);
  color: var(--black, #000);
  border: none;
  border-radius: 14px;
  padding: 14px 32px;
  width: 100%;
  max-width: 340px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gate__btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .gate__content {
    padding: 0 20px;
  }

  .gate__input-wrap,
  .gate__btn {
    max-width: 100%;
  }
}


/* ============================================================
   SECTION 00 — LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--color-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.loader__countdown {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 14rem);
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.04em;
}

.loader__label {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.loader__liftoff {
  font-family: var(--font-marker);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-accent);
  opacity: 0;
}

/* Loader hidden state — added by JS after sequence completes */
#loader.hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}


/* ============================================================
   HERO LOCK BUTTON — mobile only, fixed bottom-right
   ============================================================ */
.hero-lock-btn {
  display: none; /* hidden on desktop */
}

@media (hover: none) and (pointer: coarse) {
  .hero-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 499;
    height: 36px;
    padding: 0 14px;
    font-family: var(--font-button);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    /* Only show when hero is in view */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .hero-lock-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-lock-btn.is-locked {
    background: #CCFF00;
    border-color: #CCFF00;
    color: #000;
  }

  .hero-lock-btn__icon--unlocked { display: flex; }
  .hero-lock-btn__icon--locked   { display: none; }

  .hero-lock-btn.is-locked .hero-lock-btn__icon--unlocked { display: none; }
  .hero-lock-btn.is-locked .hero-lock-btn__icon--locked   { display: flex; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
/* ── Nav bar — two rounded-rect buttons ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ── Wordmark — shows on legal/sub-pages, pushes buttons right ── */
.nav__wordmark {
  margin-right: auto;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav__wordmark:hover {
  opacity: 0.7;
}

/* Elevate nav above overlay when menu is open so X button is clickable */
#nav:has(.nav__menu-btn.is-open),
#nav.nav--menu-open {
  z-index: 501;
}

/* ── Portfolio button (mission control status indicator) ── */
.nav__portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CCFF00;
  background: transparent;
  padding: 0 20px;
  border: 1px solid #CCFF00;
  border-radius: var(--radius-button);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.nav__portfolio-btn:hover {
  background: #CCFF00;
  color: #000;
}

/* ── Status dot ── */
.nav__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CCFF00;
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}

.nav__portfolio-btn:hover .nav__status-dot {
  background: #000;
  animation: none;
}

@keyframes status-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 5px 2px rgba(204, 255, 0, 0.35);
  }
}

/* ── Hamburger button (reticle) ── */
.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: var(--radius-button);
  background: transparent;
  cursor: pointer;
}

/* ── Targeting reticle ── */
.nav__reticle {
  position: relative;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.nav__reticle-tl,
.nav__reticle-tr,
.nav__reticle-bl,
.nav__reticle-br {
  position: absolute;
  width: 7px;
  height: 7px;
  transition: transform 0.2s ease;
}

.nav__reticle-tl {
  top: 0; left: 0;
  border-top: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
}

.nav__reticle-tr {
  top: 0; right: 0;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}

.nav__reticle-bl {
  bottom: 0; left: 0;
  border-bottom: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
}

.nav__reticle-br {
  bottom: 0; right: 0;
  border-bottom: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}

/* ── Hover: brackets tighten inward ── */
.nav__menu-btn:hover .nav__reticle-tl { transform: translate(2px, 2px); }
.nav__menu-btn:hover .nav__reticle-tr { transform: translate(-2px, 2px); }
.nav__menu-btn:hover .nav__reticle-bl { transform: translate(2px, -2px); }
.nav__menu-btn:hover .nav__reticle-br { transform: translate(-2px, -2px); }

/* ── Menu open state ── */
.nav__menu-btn.is-open {
  position: relative;
  z-index: 501;
}

/* ── Fullscreen menu overlay ── */
#menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

#menu-overlay.is-open {
  pointer-events: all;
}

/* Subtle lime glow — top right atmosphere */
.menu-overlay__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Two-column layout */
.menu-overlay__content {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Left column — nav links */
.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  width: 55%;
}

.menu-overlay__link {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 72px);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  text-decoration: none;
  margin-bottom: 16px;
  border-left: 3px solid transparent;
  padding-left: 0;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.menu-overlay__link:hover {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  padding-left: 16px;
}

/* Right column — supplementary */
.menu-overlay__aside {
  width: 45%;
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-self: center;
}

.menu-overlay__label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.menu-overlay__socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-overlay__social {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-overlay__social:hover {
  color: var(--color-accent);
}

.menu-overlay__tagline {
  margin-top: 48px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 18px;
  color: var(--color-accent);
}

.menu-overlay__copy {
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Menu overlay — mobile ── */
@media (max-width: 767px) {
  #menu-overlay {
    justify-content: flex-start;
    padding: 15vh 40px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-overlay__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-overlay__nav {
    width: 100%;
  }

  .menu-overlay__link {
    font-size: clamp(36px, 10vw, 56px);
    padding-left: 0;
  }

  .menu-overlay__aside {
    width: 100%;
    padding-left: 0;
    border-left: none;
    margin-top: 48px;
  }
}


/* ============================================================
   SECTION 01 — HERO
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent; /* starfield canvas shows through from behind */
}

/* Full-page starfield — fixed behind everything site-wide */
#starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Hero marquee — sits between starfield (z0) and interior (z5), visible through window */
.hero__marquee {
  position: absolute;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  pointer-events: none;
}

.hero__marquee-row {
  width: 100%;
  overflow: visible;
}

/* Track — single flex row that holds all copies, animated as one unit */
.hero__marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hero__marquee-track--fwd {
  animation: hero-mq-fwd 30s linear infinite;
  animation-delay: -10s; /* start 1/3 through so text appears mid-flow on load */
}

.hero__marquee-track--rev {
  animation: hero-mq-rev 30s linear infinite;
  animation-delay: -10s;
}

.hero__marquee-inner {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 8rem);
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__marquee-inner--neon {
  color: var(--color-accent);
}

.hero__marquee-dot,
.marquee-dot {
  margin: 0 0.5em;
  opacity: 0.7;
}

/* Shift exactly 3 of 6 copies (50%) — seamless loop */
@keyframes hero-mq-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes hero-mq-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Floating astronaut — behind interior (z4), visible through porthole window */
.hero__astronaut-float {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 40vw;
  max-width: 600px;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  animation: astronaut-drift 6s ease-in-out infinite;
}

@keyframes astronaut-drift {
  0%, 100% { translate: 0 0;    rotate: 0deg; }
  25%      { translate: 8px -12px;  rotate: 1.5deg; }
  50%      { translate: -4px -6px;  rotate: -1deg; }
  75%      { translate: -10px -14px; rotate: 2deg; }
}

/* LAYER 2: White shuttle interior — mask cuts a hole where the porthole is,
   so the starfield (Layer 1) shows through naturally. Fades out on scroll. */
.hero__interior {
  position: absolute;
  /* Oversized by 40px each side so parallax shifts never expose edges */
  inset: -40px;
  z-index: 5;
  pointer-events: none;
  background: url('../assets/images/Interior-Shuttle-Background.webp') center center / cover no-repeat;
}

@media (max-width: 767px) {
  .hero__interior {
    inset: -120px;
  }
}
  /* Window area is transparent in the PNG — marquee and starfield show through naturally */
}

/* LAYER 2b: Porthole frame — hidden, using real image window instead */
.hero__porthole-frame {
  display: none;
}

/* Portrait wrapper — fixed desktop size, sides clip on smaller viewports */
.hero__portrait-wrapper {
  position: relative;
  z-index: var(--z-content);
  width: 1800px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  margin-top: 14vh;
}

/* img elements — kept in DOM as WebGL texture sources, hidden visually */
.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* WebGL output canvas — the actual visual output */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: block;
}


/* ── Section spacer — breathing room between pinned sections ── */
.section-spacer {
  height: 6rem;
  position: relative;
  background: transparent;
  pointer-events: none;
}

.section-spacer--sm {
  height: 0;
}

/* ============================================================
   SECTIONS 02–10 — SCAFFOLDS
   (Content TBD — briefed one at a time)
   ============================================================ */

/* ── Sections 02–10: transparent so the fixed starfield shows through ── */
#about, #quote, #services, #clients, #testimonials, #contact {
  position: relative;
  background: transparent;
  padding: var(--space-2xl) 0;
}


/* ============================================================
   SECTION 03 — QUOTE
   ============================================================ */
#quote {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  /* No overflow hidden — text must enter from fully off-screen bottom */
}

/* ── Marquee Moon 3D ─────────────────────────────────────── */
.marquee-moon {
  position: absolute;
  top: 2%;
  left: 4%;
  width: clamp(200px, 18vw, 340px);
  height: clamp(200px, 18vw, 340px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .marquee-moon {
    top: 12%;
    left: 2%;
    width: 180px;
    height: 180px;
  }
}

.quote__model {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.quote__model--tl {
  top: 2%;
  left: -2%;
  width: clamp(320px, 32vw, 560px);
  height: clamp(320px, 32vw, 560px);
}

.quote__model--tr {
  top: -2%;
  right: -4%;
  width: clamp(300px, 30vw, 520px);
  height: clamp(300px, 30vw, 520px);
}

.quote__model--br {
  bottom: -2%;
  right: -2%;
  width: clamp(300px, 30vw, 520px);
  height: clamp(300px, 30vw, 520px);
}

@media (max-width: 768px) {
  .quote__model--tl {
    top: 8%;
    left: 10%;
    width: 150px;
    height: 150px;
  }
  .quote__model--tr {
    top: 5%;
    right: 5%;
    width: 120px;
    height: 120px;
  }
  .quote__model--br {
    bottom: 8%;
    right: 8%;
    width: 140px;
    height: 140px;
  }
}

.quote__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  padding: 0 var(--space-lg);
  text-align: center;
}

.quote__text {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

/* Each line is a reveal container — holds text + wipe bar */
.quote__line {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Text — hidden initially via clip-path, revealed left to right */
.quote__line-inner {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 6.3vw, 7.35rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--color-text);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

/* Lime wipe bar — sits on top, shrinks away to the right */
.quote__wipe-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* Accent words — inherit size from parent, switch to italic Playfair + lime */
.quote__line-inner .accent {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* ============================================================
   SECTION 04 — WHO I AM (horizontal scroll collage)
   ============================================================ */
#about {
  position: relative;
  padding: 0;
  height: 100vh;
  overflow: hidden; /* clips the track while it scrolls horizontally */
  display: flex;
  flex-direction: column;
}

/* ── About Shuttle 3D ─────────────────────────────────────── */
.about-shuttle {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 400px;
  height: 300px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .about-shuttle {
    bottom: 8%;
    left: 2%;
    width: 220px;
    height: 160px;
  }
}

/* ── Section header ── */
.about__header {
  flex-shrink: 0;
  width: 100%;
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: 48px;
}

.about__label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  opacity: 0;
}

.about__heading {
  margin: 0;
  line-height: 1.1;
}

.about__heading-main {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
  opacity: 0;
}

.about__heading-accent {
  display: inline;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--color-accent);
  margin-left: 0.3em;
  opacity: 0;
}

/* Horizontal strip — scrolls left via GSAP translate */
.about__track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: max-content;
  gap: clamp(2rem, 4vw, 5rem);
  padding: 5vh clamp(2rem, 5vw, 6rem);
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ── Base card ─────────────────────────────────────────────── */
.about__card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.6rem;
}

/* ── Vertical alignment modifiers ──────────────────────────── */
.about__card--top    { align-self: flex-start; }
.about__card--mid    { align-self: center; }
.about__card--end    { align-self: flex-end; }
.about__card--offset { align-self: flex-start; margin-top: 14vh; }

/* ── Width / size variants ─────────────────────────────────── */
.about__card--tall    { width: clamp(160px, 16vw, 260px); }
.about__card--wide    { width: clamp(280px, 32vw, 440px); }
.about__card--portrait{ width: clamp(180px, 20vw, 300px); }
.about__card--hero    { width: clamp(340px, 40vw, 540px); }
.about__card--sm      { width: clamp(130px, 13vw, 190px); }
.about__card--copy    { width: clamp(240px, 26vw, 360px); justify-content: center; }

/* ── Placeholder image box ─────────────────────────────────── */
.about__card-img {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(204, 255, 0, 0.2);
}
.about__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Wipe reveal — about section ───────────────────────────── */
.about__wipe {
  position: relative;
  display: block;
  overflow: hidden;
}
.about__wipe-inner {
  display: block;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.about__wipe-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* ── Captions ──────────────────────────────────────────────── */
.about__card-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about__caption-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.about__caption-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* ── Pull quote card ───────────────────────────────────────── */
.about__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.about__quote-sig {
  font-size: 1.2rem;
  opacity: 0.7;
}

/* ── Closing copy card ─────────────────────────────────────── */
.about__closing {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.about__card--closing {
  border-left: 1px solid rgba(204, 255, 0, 0.4);
  padding-left: 2rem;
}


/* ============================================================
   SECTION 05 — STATS (Mission Control Readout)
   ============================================================ */
#stats {
  position: relative;
  padding: var(--space-2xl) 0;
  background: transparent;
  overflow: hidden;
}

/* ── Section header — left aligned, matches services pattern ── */
.stats__header {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.stats__header-label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  opacity: 0;
}

.stats__heading {
  margin: 0;
  line-height: 1.1;
}

.stats__heading-main {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
  opacity: 0;
}

.stats__heading-accent {
  display: inline;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--color-accent);
  margin-left: 0.3em;
  opacity: 0;
}

/* Radar sweep — thin lime line, full height */
.stats__sweep {
  display: none;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.stats__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  border-top: 1.5px solid rgba(204, 255, 0, 0.6);
  border-right: none;
  border-bottom: none;
  border-left: none;
  opacity: 0;
  overflow: visible;
  transition: border-color 0.3s ease;
}

/* Bottom-left corner bracket */
.stats__cell::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-left: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 0 var(--radius-card);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner bracket */
.stats__cell::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 var(--radius-card) 0;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Hover — brighten all bracket elements + blink */
.stats__cell:hover {
  border-top-color: rgba(204, 255, 0, 1);
  animation: statsBlink 0.15s ease-in-out 2;
}

.stats__cell:hover::before,
.stats__cell:hover::after {
  border-color: rgba(204, 255, 0, 1);
}

@keyframes statsBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}


.stats__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.stats__number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats__accent {
  color: var(--color-accent);
}

/* ── Stats Responsive ── */
@media (max-width: 767px) {
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 20px;
  }

  .stats__number {
    font-size: clamp(3rem, 12vw, 5rem);
  }
}


/* ============================================================
   SECTION 06 — SERVICES
   Mission briefing interface — categories + detail panel.
   ============================================================ */
#services {
  position: relative;
  padding: var(--space-lg) 0;
  background: transparent;
}

.services__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Header ── */
.services__header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.services__label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
  opacity: 0;
}

.services__heading {
  margin: 0;
  line-height: 1.1;
  overflow: hidden;
}

.services__heading-main {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
  opacity: 0;
}

.services__heading-accent {
  display: inline;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--color-accent);
  margin-left: 0.3em;
  opacity: 0;
}

/* ── Desktop briefing — two columns ── */
.services__briefing {
  display: flex;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: flex-start;
}

/* Left column — nav list */
.services__nav {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
}

.services__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.75rem, 1.2vw, 1rem) 0;
  border: none;
  border-bottom: 1px solid rgba(204, 255, 0, 0.2);
  border-left: 2px solid transparent;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, color 0.2s ease;
  opacity: 0;
  padding-left: 0.75rem;
}

.services__row:first-child {
  border-top: 1px solid rgba(204, 255, 0, 0.2);
}

.services__num {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 1.5rem;
}

.services__name {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* Hover state */
.services__row:hover .services__name {
  color: var(--color-accent);
}
.services__row:hover {
  border-left-color: var(--color-accent);
}

/* Chevron indicator — signals clickable */
.services__row::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(204, 255, 0, 0.4);
  transition: color 0.2s ease, transform 0.2s ease;
  padding-right: 0.5rem;
}

.services__row:hover::after {
  color: var(--color-accent);
}

/* Active state */
.services__row.is-active {
  border-left: 3px solid #CCFF00;
}
.services__row.is-active .services__name {
  color: var(--color-text);
}

.services__row.is-active::after {
  content: '−';
  color: var(--color-accent);
}

/* Right column — detail panel */
.services__panel {
  flex: 1;
  position: relative;
  min-height: 280px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  padding-left: 24px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-left: 2px solid #CCFF00;
}

/* Hover — brighten all bracket elements + blink */
/* Panel hover removed — no brackets to animate */

.services__panel-inner {
  opacity: 0;
}

/* Panel content styles */
.services__detail-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.services__detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services__detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.4rem 0;
}

.services__detail-item::before {
  content: '—';
  color: var(--color-accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Mobile accordion ── */
.services__accordion {
  display: none;
}

.services__acc-item {
  border-bottom: 1px solid rgba(204, 255, 0, 0.2);
}

.services__acc-item:first-child {
  border-top: 1px solid rgba(204, 255, 0, 0.2);
}

.services__acc-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.services__acc-trigger .services__num {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.services__acc-trigger .services__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text);
}

.services__acc-trigger::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(204, 255, 0, 0.4);
  transition: color 0.2s ease;
  padding-right: 0.5rem;
}
.services__acc-item.is-open .services__acc-trigger::after {
  content: '−';
  color: var(--color-accent);
}

.services__acc-body {
  height: 0;
  overflow: hidden;
}

.services__acc-body-inner {
  position: relative;
  padding: 0 0.5rem 1.25rem 2.5rem;
  border-left: 2px solid #CCFF00;
  padding-left: 24px;
  margin-left: 0.5rem;
}

/* Active accordion item — corner brackets + top bar */
.services__acc-item.is-open {
  position: relative;
}
.services__acc-item.is-open .services__acc-trigger {
  border-left: 3px solid #CCFF00;
}

.services__acc-sub {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0;
  opacity: 0;
}

.services__acc-sub::before {
  content: '—';
  color: var(--color-accent);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── CTA ── */
.services__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  opacity: 0;
}

.services__cta-text {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* Services CTA — solid pill button */
.services__cta-btn {
  display: inline-block;
  padding: 18px 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000000;
  background: #CCFF00;
  border: none;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.services__cta-btn:hover {
  background: #b8e600;
  transform: scale(1.02);
}

/* ── Responsive ── */

/* Tablet — fall back to accordion if cramped */
@media (max-width: 1023px) {
  .services__briefing { display: none; }
  .services__accordion { display: block; }
}

/* Mobile */
@media (max-width: 767px) {
  .services__container {
    padding: 0 20px;
  }

  .services__heading-main,
  .services__heading-accent {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
}

/* ============================================================
   SECTION 07 — CLIENTS
   Masonry-style patch grid — Lando Norris helmet grid inspired.
   ============================================================ */
#clients {
  position: relative;
  padding: var(--space-lg) 0;
  background: transparent;
}

/* ── Section header — left aligned, matches services pattern ── */
.clients__header {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.clients__label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  opacity: 0;
}

.clients__heading {
  margin: 0;
  line-height: 1.1;
}

.clients__heading-main {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
  opacity: 0;
}

.clients__heading-accent {
  display: inline;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--color-accent);
  margin-left: 0.3em;
  opacity: 0;
}

/* ── Patch grid — masonry-style layout ── */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Individual patch card ── */
.clients__patch {
  position: relative;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  border-top: 1.5px solid rgba(204, 255, 0, 0.6);
  border-right: none;
  border-bottom: none;
  border-left: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
}

.clients__patch--lg,
.clients__patch--sm {
  height: 280px;
}

/* Bottom-left corner bracket */
.clients__patch::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-left: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 0 var(--radius-card);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner bracket */
.clients__patch::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 var(--radius-card) 0;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* ── Logo placeholder ── */
.clients__patch-placeholder {
  width: 80px;
  height: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
}

.clients__patch--sm .clients__patch-placeholder {
  width: 80px;
  height: 24px;
}

/* Real logo images — swap in for .clients__patch-placeholder */
.clients__patch-logo {
  width: 90%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  mix-blend-mode: lighten;
  transition: opacity 0.3s ease;
}

.clients__patch--sm .clients__patch-logo {
  max-width: 85%;
  max-height: 120px;
}

/* ── Bottom labels ── */
.clients__patch-name {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.clients__patch-year {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Hover state ── */
.clients__patch:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(204, 255, 0, 0.08);
  border-top-color: rgba(204, 255, 0, 1);
  animation: statsBlink 0.15s ease-in-out 2;
}

.clients__patch:hover::before,
.clients__patch:hover::after {
  border-color: rgba(204, 255, 0, 1);
}

.clients__patch:hover .clients__patch-logo {
  opacity: 1;
}

/* ── Clients Responsive — Mobile: 2 columns, 4 rows ── */
@media (max-width: 767px) {
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients__patch--lg,
  .clients__patch--sm {
    height: 200px;
  }

  .clients__patch-name,
  .clients__patch-year {
    bottom: 10px;
    font-size: 9px;
  }

  .clients__patch-name { left: 12px; }
  .clients__patch-year { right: 12px; }

  .clients__label {
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-bottom: 32px;
  }
}

/* ── Shared CTA button (LAUNCH / PORTFOLIO style) ── */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: transparent;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-card);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-btn__arrow {
  font-size: 16px;
  font-weight: 700;
}

.clients__cta-wrap {
  margin-top: 48px;
  opacity: 0;
  text-align: center;
}

/* ============================================================
   SECTION 08 — TESTIMONIALS
   Featured quote + horizontal scrolling card row.
   ============================================================ */
#testimonials {
  position: relative;
  padding: var(--space-lg) 0;
  background: transparent;
  overflow: visible;
}

.test__container {
  max-width: 1280px;
  margin: 0 auto;
  overflow: visible;
  padding: 0 40px;
}

/* ── Section header ── */
.test__header {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.test__header-label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  opacity: 0;
}

.test__heading {
  margin: 0;
  line-height: 1.1;
}

.test__heading-main {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
  opacity: 0;
}

.test__heading-accent {
  display: inline;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--color-accent);
  margin-left: 0.3em;
  opacity: 0;
}

/* ── Transmission label — shared between featured + cards ── */
.test__transmission {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

/* ── Featured testimonial ── */
.test__featured {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  border-top: 1.5px solid rgba(204, 255, 0, 0.6);
  border-right: none;
  border-bottom: none;
  border-left: none;
  margin-bottom: 64px;
  transition: border-color 0.3s ease;
}

/* Bottom-left corner bracket */
.test__featured::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-left: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 0 var(--radius-card);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner bracket */
.test__featured::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 var(--radius-card) 0;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.test__featured:hover {
  border-top-color: rgba(204, 255, 0, 1);
  animation: statsBlink 0.15s ease-in-out 2;
}

.test__featured:hover::before,
.test__featured:hover::after {
  border-color: rgba(204, 255, 0, 1);
}

.test__featured-quote {
  margin: 0 0 1.5rem 0;
  padding: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--color-text);
  line-height: 1.4;
}

.test__quote-line {
  display: block;
  opacity: 0;
}

/* ── Person row — shared between featured + cards ── */
.test__person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.test__avatar--lg {
  width: 56px;
  height: 56px;
}

.test__person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.test__person-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
}

.test__person-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Infinite rolling carousel ── */
.test__row-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.test__row {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: max-content;
  padding: 10px 0;
  animation: testimonialScroll 46s linear infinite;
  will-change: transform;
}

.test__row:hover {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Individual card ── */
.test__card {
  position: relative;
  flex-shrink: 0;
  min-width: 380px;
  width: 380px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  border-top: 1.5px solid rgba(204, 255, 0, 0.6);
  border-right: none;
  border-bottom: none;
  border-left: none;
  transition: border-color 0.3s ease;
}

/* Bottom-left corner bracket */
.test__card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-left: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 0 var(--radius-card);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner bracket */
.test__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 var(--radius-card) 0;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.test__card:hover {
  border-top-color: rgba(204, 255, 0, 1);
  animation: statsBlink 0.15s ease-in-out 2;
}

.test__card:hover::before,
.test__card:hover::after {
  border-color: rgba(204, 255, 0, 1);
}

.test__card-quote {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

/* ── Testimonials Responsive ── */
@media (max-width: 1023px) {
  .test__card {
    min-width: 280px;
    width: 280px;
  }
}

@media (max-width: 767px) {
  .test__container {
    padding: 0 20px;
  }

  .test__card {
    min-width: 85vw;
    width: 85vw;
  }

  .test__featured-quote {
    font-size: clamp(20px, 5vw, 28px);
  }

  .test__header-label {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}

/* Scaffold placeholder text */
.scaffold-placeholder {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: var(--space-lg);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Porthole — switch from vh to vw so it stays circular on portrait screens */
  .hero__porthole-frame {
    width: clamp(200px, 72vw, 360px);
    height: clamp(200px, 72vw, 360px);
  }

  /* Portrait — anchored to bottom of hero on mobile so no crop gap shows */
  .hero__portrait-wrapper {
    width: 845px;
    align-self: flex-end;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* About — sticky scroll on mobile (JS drives scrollLeft via RAF lerp) */
  #about {
    height: auto;
    overflow: visible;
  }

  #about .about__track {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden; /* JS drives scrollLeft */
    align-items: center;
  }

  /* Nav adjusts on mobile */
  #nav {
    padding: 14px 16px;
    gap: 8px;
  }

  .nav__portfolio-btn {
    padding: 0 14px;
    font-size: 11px;
    height: 40px;
  }

  .nav__menu-btn {
    width: 40px;
    height: 40px;
  }

  /* Quote — full width, sized so longest line fits in one row */
  .quote__inner {
    padding: 0 4px;
  }

  .quote__line-inner {
    font-size: clamp(1.5rem, 6.8vw, 7.35rem);
    white-space: nowrap;
  }

  /* Strip will-change on mobile to reduce GPU layer pressure */
  .quote__line-inner,
  .quote__wipe-bar,
  .about__wipe-inner,
  .about__wipe-bar,
  .about__track {
    will-change: auto;
  }
}


/* ============================================================
   SECTION 09 — CONTACT
   Mission briefing contact form.
   ============================================================ */
#contact {
  position: relative;
  padding: var(--space-lg) 0;
  background: transparent;
  overflow: hidden;
}

.contact__inner {
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.contact__header {
  margin-bottom: 56px;
}

.contact__label {
  display: flex;
  align-items: center;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  opacity: 0;
}

.contact__status-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  margin-left: 8px;
  animation: contactPulse 1.5s ease-in-out infinite;
}

.contact__status-dot--success {
  opacity: 1;
  animation: none;
}

@keyframes contactPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.contact__heading {
  margin: 0 0 16px;
  line-height: 1.1;
}

.contact__heading-main {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
  opacity: 0;
}

.contact__heading-accent {
  display: inline;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--color-accent);
  margin-left: 0.3em;
  opacity: 0;
}

.contact__subtext {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  opacity: 0;
}

/* ── Form layout ── */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.contact__row {
  opacity: 0;
}

.contact__row--split {
  display: flex;
  gap: 16px;
}

.contact__row--split .contact__field {
  flex: 1;
}

/* ── Field labels ── */
.contact__field-label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

/* ── Field box — corner bracket treatment ── */
.contact__field-box {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
  border-top: 1.5px solid rgba(204, 255, 0, 0.6);
  border-right: none;
  border-bottom: none;
  border-left: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact__field-box:focus-within {
  background: rgba(255, 255, 255, 0.05);
}

/* Bottom-left corner bracket */
.contact__field-box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-left: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 0 var(--radius-card);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner bracket */
.contact__field-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(204, 255, 0, 0.6);
  border-bottom: 1.5px solid rgba(204, 255, 0, 0.6);
  border-radius: 0 0 var(--radius-card) 0;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Focus — brackets brighten */
.contact__field-box:focus-within {
  border-top-color: rgba(204, 255, 0, 1);
  box-shadow: inset 0 0 20px rgba(204, 255, 0, 0.06);
}

.contact__field-box:focus-within::before,
.contact__field-box:focus-within::after {
  border-color: rgba(204, 255, 0, 1);
}

/* ── Input / textarea base ── */
.contact__input {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.contact__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.contact__textarea {
  min-height: 160px;
  resize: vertical;
}

/* ── Service pills ── */
.contact__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact__pill {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact__pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

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

.contact__pill.is-selected {
  background: rgba(204, 255, 0, 0.12);
  border: 1px solid rgba(204, 255, 0, 0.6);
  color: var(--color-accent);
}

/* ── Consent checkbox ── */
.contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.contact__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact__checkmark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: transparent;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 1px;
}

.contact__checkbox:checked + .contact__checkmark {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.contact__checkbox:checked + .contact__checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact__consent-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ── Submit button ── */
.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-button);
  padding: 0 48px;
  margin-top: 32px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
}

.contact__submit:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.contact__submit:active {
  transform: scale(0.97);
}

.contact__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.contact__submit-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Error messages ── */
.contact__error {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 80, 80, 0.9);
  margin-top: 6px;
  min-height: 0;
}

.contact__submit-error {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 80, 80, 0.9);
  margin-top: 12px;
  min-height: 0;
}

/* ── Success state ── */
.contact__success {
  opacity: 0;
}

/* ── Rotating Earth Globe ── */
#earth-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 805px;
  height: 805px;
  pointer-events: none;
  z-index: 0;
}

#earth-container .planet-container {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-circle);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px 20px rgba(94, 144, 241, 0.15);
}

#earth-container .night {
  animation: rotate-night 80s linear infinite;
  background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_nightmap.jpg);
  background-size: 200%;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
}

#earth-container .day {
  animation: rotate-day 80s linear infinite;
  background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_daymap.jpg);
  background-size: 200%;
  border-left: solid 1px black;
  border-radius: var(--radius-circle);
  box-shadow: 5px 0 20px 10px #040615 inset;
  height: 100%;
  margin-left: 110px;
  position: absolute;
  width: 100%;
  z-index: 3;
}

#earth-container .clouds {
  animation: rotate-day 50s linear infinite;
  background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_clouds.jpg);
  background-size: 200%;
  border-radius: var(--radius-circle);
  height: 100%;
  opacity: 0.3;
  position: absolute;
  width: 100%;
  z-index: 4;
}

#earth-container .inner-shadow {
  background: radial-gradient(circle at 30% 50%, transparent 20%, rgba(0, 0, 0, 0.8) 80%);
  border-radius: var(--radius-circle);
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 5;
}

@keyframes rotate-night {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

@keyframes rotate-day {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* ── Earth container — scale down on tablet ── */
@media (max-width: 1023px) {
  #earth-container {
    width: 500px;
    height: 500px;
  }
}

/* ── Contact Responsive — Mobile ── */
@media (max-width: 767px) {
  .contact__row--split {
    flex-direction: column;
    gap: 24px;
  }

  .contact__pill {
    padding: 8px 14px;
    font-size: 12px;
  }

  .contact__submit {
    width: 100%;
  }

  .contact__header {
    margin-bottom: 40px;
  }

  #earth-container {
    width: 400px;
    height: 400px;
  }
}


/* ============================================================
   SECTION 10 — FOOTER
   Cinematic closing — re-entry from space to Earth
   ============================================================ */

/* ── Atmospheric haze bleeding into contact section above ── */
footer::before,
#footer::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(10, 20, 60, 0.4));
  pointer-events: none;
  z-index: 0;
}

footer,
#footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(85vh + 200px);
  padding: clamp(80px, 10vw, 120px) 0 0;
  background: transparent;
  overflow: hidden;
}

/* ── Footer starfield — CSS star layers with twinkle ── */
.footer__stars,
.footer__stars-sm,
.footer__stars-lg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.footer__stars {
  background-image:
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 340px 220px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 560px 140px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 780px 320px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 200px 400px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 450px 500px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 680px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 900px 180px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 1100px 90px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 1300px 250px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 50px 550px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 1400px 400px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 1000px 480px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 300px 650px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 850px 600px, rgba(255,255,255,0.5), transparent);
  background-size: 1500px 700px;
  animation: footerTwinkle 4s ease-in-out infinite alternate;
}
.footer__stars-sm {
  background-image:
    radial-gradient(0.5px 0.5px at 80px 160px, rgba(255,255,255,0.5), transparent),
    radial-gradient(0.5px 0.5px at 260px 40px, rgba(255,255,255,0.4), transparent),
    radial-gradient(0.5px 0.5px at 420px 280px, rgba(255,255,255,0.6), transparent),
    radial-gradient(0.5px 0.5px at 600px 380px, rgba(255,255,255,0.3), transparent),
    radial-gradient(0.5px 0.5px at 740px 120px, rgba(255,255,255,0.5), transparent),
    radial-gradient(0.5px 0.5px at 950px 300px, rgba(255,255,255,0.4), transparent),
    radial-gradient(0.5px 0.5px at 1150px 200px, rgba(255,255,255,0.5), transparent),
    radial-gradient(0.5px 0.5px at 1350px 100px, rgba(255,255,255,0.3), transparent),
    radial-gradient(0.5px 0.5px at 170px 500px, rgba(255,255,255,0.5), transparent),
    radial-gradient(0.5px 0.5px at 520px 580px, rgba(255,255,255,0.4), transparent),
    radial-gradient(0.5px 0.5px at 1050px 550px, rgba(255,255,255,0.3), transparent),
    radial-gradient(0.5px 0.5px at 1250px 450px, rgba(255,255,255,0.5), transparent);
  background-size: 1400px 650px;
  animation: footerTwinkle 6s ease-in-out infinite alternate-reverse;
}
.footer__stars-lg {
  background-image:
    radial-gradient(1.5px 1.5px at 250px 100px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 700px 250px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 1200px 150px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 400px 450px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 900px 500px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 1100px 380px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 50px 300px, rgba(255,255,255,0.5), transparent);
  background-size: 1300px 600px;
  animation: footerTwinkle 5s ease-in-out infinite alternate;
}
@keyframes footerTwinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── Background text — "CREATE WITHOUT" + "LIMITS." behind astronaut ── */
.footer__bg-text {
  position: relative;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  margin-bottom: -60px;
  opacity: 0;
}

.footer__bg-line1 {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 64px);
  font-weight: 900;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.footer__bg-line2 {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 90px);
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: 1;
}

/* ── Center astronaut — anchored to bottom, 2x scaled ── */
.footer__astronaut {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(800px, 90vw, 1400px);
  max-width: none;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

/* ── CTA button — sits in the copyright bar, centered ── */
.footer__cta-btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-card);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__cta-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.footer__cta-btn:active {
  transform: scale(0.97);
}

/* ── Footer columns — pages left, connect right ── */
.footer__columns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  padding: 0 40px;
  margin-top: clamp(48px, 6vw, 80px);
  position: relative;
  z-index: 3;
  opacity: 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col--right {
  text-align: right;
  align-items: flex-end;
}

.footer__col-label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-link {
  font-family: var(--font-heading);
  font-size: clamp(12px, 1.6vw, 20px);
  font-weight: 900;
  color: var(--color-text);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__col-link:hover {
  color: var(--color-accent);
}

/* ── Bottom bar ── */
.footer__bottom {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 40px 40px;
  margin-top: auto;
}

.footer__divider {
  display: none;
}

.footer__copyright-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  opacity: 0;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.footer__legal {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.footer__legal-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: var(--color-accent);
}

/* ── Mobile CTA — hidden on desktop, visible on mobile ── */
.footer__mobile-cta {
  display: none;
}

/* ── Footer Responsive — Tablet ── */
@media (max-width: 1023px) {
  .footer__col-link {
    font-size: clamp(16px, 2vw, 24px);
  }
}

/* ── Footer Responsive — Mobile ── */
@media (max-width: 767px) {
  footer,
  #footer {
    min-height: auto;
    padding-top: clamp(60px, 10vw, 100px);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  /* Order: heading(1) → CTA(2) → columns(3) → astronaut(4) → bottom(5) */
  .footer__bg-text {
    position: relative;
    margin-bottom: 0;
    order: 1;
  }

  .footer__mobile-cta {
    display: inline-block;
    position: relative;
    z-index: 3;
    order: 2;
    margin-top: 32px;
    padding: 16px 44px;
    font-family: var(--font-button);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-accent);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .footer__mobile-cta:hover {
    opacity: 0.85;
    transform: scale(1.02);
  }

  .footer__bg-line1 {
    font-size: clamp(24px, 8vw, 40px);
  }

  .footer__bg-line2 {
    font-size: clamp(32px, 10vw, 52px);
  }

  /* Columns — stacked centered, above astronaut */
  .footer__columns {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    text-align: center;
    margin-top: 48px;
    order: 3;
  }

  .footer__col {
    align-items: center;
  }

  .footer__col--right {
    text-align: center;
    align-items: center;
  }

  .footer__col-links {
    align-items: center;
  }

  .footer__col-link {
    font-size: 16px;
  }

  /* Astronaut — centered bottom on mobile, using margin only (GSAP overrides transform) */
  .footer__astronaut {
    display: block !important;
    position: static !important;
    width: 160vw;
    max-width: none;
    margin-left: calc(-30vw + 355px);
    margin-right: calc(-30vw - 370px);
    margin-top: -20px;
    margin-bottom: -100px;
    order: 4;
    z-index: 2;
  }

  /* Bottom bar — overlaid on top of astronaut image at the very bottom */
  .footer__bottom {
    position: relative;
    z-index: 3;
    padding: 20px 20px 28px;
    margin-top: -80px;
    order: 5;
  }

  .footer__copyright-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }

  /* Hide desktop CTA on mobile */
  .footer__cta-btn {
    display: none;
  }

  /* Legal links above copyright */
  .footer__legal {
    justify-content: center;
    order: -1;
    padding-top: 20px;
  }

  .footer__copyright {
    order: 1;
    padding-top: 10px;
  }
}


/* ============================================================
   LEGAL PAGES — Privacy Policy, Terms
   ============================================================ */

/* ── Layout ── */
.legal {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(80px + 80px) 40px 120px; /* nav height ~80px + 80px top space */
}

/* ── Page header ── */
.legal__label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.legal__heading {
  font-size: 0;
  line-height: 1.1;
}

.legal__heading-primary {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  color: var(--color-text);
  margin-right: 12px;
}

.legal__heading-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--color-accent);
}

.legal__date {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
}

.legal__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
  margin-bottom: 48px;
}

/* ── Back link ── */
.legal__back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.2s ease;
}
.legal__back:hover {
  color: var(--color-accent);
}

/* ── Section headings ── */
.legal__section h2 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 48px;
  margin-bottom: 16px;
  border-left: 2px solid var(--color-accent);
  padding-left: 16px;
}

/* ── Body paragraphs ── */
.legal__section p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ── Lists ── */
.legal__section ul {
  list-style: none;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal__section li {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 0;
}

.legal__section li::before {
  content: "—";
  color: var(--color-accent);
  position: absolute;
  left: -24px;
}

/* ── Bold text ── */
.legal__section strong {
  font-weight: 700;
  color: var(--color-text);
}

/* ── Links ── */
.legal__section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.legal__section a:hover {
  opacity: 0.7;
}

/* ── Cross-page link ── */
.legal__crosslink {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 64px;
}

.legal__crosslink a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.legal__crosslink a:hover {
  opacity: 0.7;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .legal {
    padding: calc(80px + 40px) 20px 80px;
  }

  .legal__section h2 {
    font-size: clamp(16px, 4vw, 22px);
  }
}
