/* =====================================================
   Astradyne — Custom Styles
   Loaded after Tailwind CDN, so these override where needed.
   ===================================================== */

:root {
  /* Brand palette — derived from Astradyne pitch deck.
     Page bg is intentionally near-black (not the deck's #0B1E22) so
     product renders that ship on solid black blend seamlessly. The deck's
     teal lives on in the orbital lines, ambient glows and hover states. */
  --space-black: #050709;        /* primary near-black page bg */
  --space-dark: #030405;         /* deeper variant */
  --space-deep: #0A0D10;         /* slightly lifted variant */
  --brand-teal-deck: #0B1E22;    /* original deck teal — kept as a reference */
  --accent-orange: #E8431F;      /* brand orange — focal accent */
  --accent-orange-soft: rgba(232, 67, 31, 0.55);
  --accent-teal: #8FB6C2;        /* muted teal-grey — atmospheric */
  --accent-teal-deep: #2E7D95;   /* deeper teal — supporting */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-quiet: rgba(255, 255, 255, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  scroll-behavior: smooth;
  background: var(--space-black);
  /* Lock text scaling so iOS Safari never auto-inflates copy on reflow
     (e.g. when the mobile menu opens). */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* =====================================================
   LARGE-SCREEN SCALING
   The whole layout is built in rem units (type, spacing,
   gaps AND the max-w-* container widths). Nudging the root
   font-size up on big monitors scales everything in
   proportion, so content fills wide screens instead of
   sitting small in a 1280px column. One place, no per-page
   edits. Base stays 16px up to 1536px.
   ===================================================== */
@media (min-width: 1536px) { html { font-size: 17px; } }
@media (min-width: 1920px) { html { font-size: 18.5px; } }
@media (min-width: 2560px) { html { font-size: 21px; } }

body {
  background: var(--space-black);
  color: var(--text-primary);
  font-family: 'Manrope', 'JUST Sans', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  overflow-x: hidden;
  min-height: 100vh;
}

/* =====================================================
   AMBIENT BACKGROUND
   ===================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(143, 182, 194, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(232, 67, 31, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 35% at 0% 60%, rgba(46, 125, 149, 0.05), transparent 60%);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60% 40%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 30% 10%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 50% 95%, rgba(255, 255, 255, 0.3), transparent);
  background-size: 600px 600px;
  opacity: 0.6;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.headline {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.headline-em {
  font-weight: 500;
  background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.025em;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 7, 9, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.nav-logo {
  color: white;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

/* Dropdown */
.dropdown-wrap { position: relative; }
/* Invisible hover bridge that keeps the dropdown open while moving the cursor from the trigger to the panel. */
.dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  height: 0.85rem;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  margin-top: 0.5rem;
  min-width: 200px;
  padding: 0.5rem;
  background: rgba(5, 7, 9, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.dropdown-wrap:hover .dropdown,
.dropdown-wrap:focus-within .dropdown,
.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown a {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover { background: rgba(255, 255, 255, 0.05); color: white; }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--border-soft);
}
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.mobile-menu a:hover { color: white; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 9999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #ff5a36;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(232, 67, 31, 0.30);
}
/* Light sweep across the button on hover. */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 150%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: transparent;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  transition: gap 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { gap: 0.7rem; color: white; }
.btn-ghost.disabled { color: var(--text-tertiary); pointer-events: none; }

/* Footer "Cookie Settings" trigger — a <button> styled to match the
   adjacent Privacy / Cookies text links (CookieYes opens the banner
   via the .cky-banner-element class). */
.cky-link-btn {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.cky-link-btn:hover { color: #fff; }

/* =====================================================
   PLACEHOLDER IMAGE BLOCKS
   These are styled <div>s that stand in for missing assets.
   Replace with <img> tags when real images are available.
   ===================================================== */
.placeholder-block {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 30% 25%, rgba(143, 182, 194, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 45% at 75% 80%, rgba(232, 67, 31, 0.08), transparent 60%),
    linear-gradient(160deg, #0A0E12 0%, #07090C 65%, #050709 100%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.placeholder-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, black 25%, transparent 80%);
  pointer-events: none;
}
.placeholder-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.placeholder-label {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  z-index: 2;
}
.placeholder-tag {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* Orbit ring used inside hero placeholder */
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(143, 182, 194, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-ring.r-1 { width: 280px; height: 280px; }
.orbit-ring.r-2 { width: 460px; height: 460px; border-color: rgba(143, 182, 194, 0.12); }
.orbit-ring.r-3 { width: 680px; height: 680px; border-color: rgba(143, 182, 194, 0.07); }

.glow-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 12px 2px rgba(232, 67, 31, 0.85), 0 0 30px 6px rgba(232, 67, 31, 0.40);
}

/* Stealth silhouette variant (for high-power platform hero) */
.placeholder-stealth {
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(232, 67, 31, 0.07), transparent 70%),
    linear-gradient(180deg, #0A0D10 0%, #050709 100%);
}
.placeholder-stealth .silhouette {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 30%;
  background:
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(20px);
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 67, 31, 0.28);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 24px 60px -28px rgba(232, 67, 31, 0.35);
}
/* Cinematic image zoom inside any card with an overflow-hidden media frame. */
.card img { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.card:hover img { transform: scale(1.045); }

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card {
  padding: 1.75rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232, 67, 31, 0.18), rgba(232, 67, 31, 0.04));
  border: 1px solid rgba(232, 67, 31, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFB29A;
  margin-bottom: 1.25rem;
}

/* =====================================================
   LOGO STRIP
   ===================================================== */
.logo-strip-item {
  opacity: 0.62;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.logo-strip-item:hover { opacity: 1; }
.logo-strip-item img,
.logo-strip-item svg {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  /* Render any logo as a clean white silhouette so dark-on-transparent
     official logos remain legible against the dark teal-black background.
     If you ever ship a logo that should keep its colors, give that
     specific <div> the .logo-strip-item--keep-color class. */
  filter: brightness(0) invert(1);
}
.logo-strip-item--keep-color img,
.logo-strip-item--keep-color svg { filter: none; }

/* For logos that ship as white artwork on a solid black background (e.g. a
   JPEG with no transparency): screen-blend drops the black to invisible and
   keeps the white, so it sits cleanly on the near-black page. */
.logo-strip-item--screen img {
  filter: none;
  mix-blend-mode: screen;
}

/* =====================================================
   LOGO MARQUEE (infinite-scroll Trusted By strip)
   ===================================================== */
.logo-marquee {
  position: relative;
  overflow: hidden;
  /* Soft fade-out at both edges so logos enter/exit gracefully. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: logo-marquee 38s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
.logo-marquee .logo-strip-item {
  flex: 0 0 auto;
  height: 44px;
  width: 150px;
  margin: 0 2rem;
}
@media (min-width: 1024px) {
  .logo-marquee .logo-strip-item {
    height: 52px;
    width: 180px;
    margin: 0 2.75rem;
  }
}
@keyframes logo-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* =====================================================
   FORM
   ===================================================== */
.form-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: white;
  font-size: 0.925rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.form-textarea { resize: vertical; min-height: 140px; }
/* iOS Safari auto-zooms when a focused input's font-size is below 16px.
   Force 16px on small screens to prevent that jarring zoom-on-tap. */
@media (max-width: 640px) {
  .form-input,
  .form-textarea { font-size: 16px; }
}

/* =====================================================
   HERO FADE-IN
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-fade {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.hero-fade-1 { animation-delay: 0.05s; }
.hero-fade-2 { animation-delay: 0.2s; }
.hero-fade-3 { animation-delay: 0.4s; }
.hero-fade-4 { animation-delay: 0.55s; }
.hero-fade-5 { animation-delay: 0.7s; }

/* =====================================================
   HERO TITLE — masked line reveal
   Each line rises out of an overflow-hidden mask on first
   paint. Subtler and more premium than a plain fade; used
   on the homepage H1. Lines stagger top → bottom.
   ===================================================== */
.title-line {
  display: block;
  overflow: hidden;
  /* room for descenders (g, p) so they aren't clipped at rest */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.title-line-inner {
  display: inline-block;
  transform: translateY(118%);
  opacity: 0;
  animation: titleRise 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.title-line:nth-child(1) .title-line-inner { animation-delay: 0.15s; }
.title-line:nth-child(2) .title-line-inner { animation-delay: 0.32s; }
.title-line:nth-child(3) .title-line-inner { animation-delay: 0.49s; }
@keyframes titleRise {
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .title-line-inner { transform: none; opacity: 1; animation: none; }
}

/* =====================================================
   PRODUCT-PAGE DISPLAY TITLE — "Rephen"
   Wide, monoline, aerospace face for the big product name on
   each product page (Solar-X / Solar-Z / Solar-Y).

   Rephen is NOT a Google Font, so it is self-hosted from
   assets/fonts/ (rephen.woff2 with rephen.otf as fallback).
   Orbitron remains in the stack as a graceful fallback in case
   the font ever fails to load.
   ===================================================== */
@font-face {
  font-family: 'Rephen';
  src: url('../assets/fonts/rephen.woff2') format('woff2'),
       url('../assets/fonts/rephen.otf')  format('opentype');
  font-weight: 400 700;
  font-display: swap;
}
.product-title {
  font-family: 'Rephen', 'Orbitron', 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =====================================================
   PRODUCT RENDER FRAMES — seamless black
   Studio renders ship on pure #000, which reads as a
   rectangle against the near-black page (#050709). Set the
   frame to the page bg and screen-blend the image so its
   black background drops out — no more "two different blacks".
   The frame stays transparent so the screen-blended image resolves
   against the CARD's (slightly lifted) background, matching it
   exactly — otherwise a flat #050709 frame reads as a faintly
   darker rectangle against the card. */
.render-frame { background: transparent; border: 0; }
.render-frame img { mix-blend-mode: screen; }

/* =====================================================
   FULL-BLEED MEDIA — giant, edge-to-edge hero visuals
   Breaks out of the centered container to span the full
   viewport width. Used for the homepage hero and the
   product-page hero videos so they feel "full-screen".
   ===================================================== */
.media-bleed {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--space-black);
  overflow: hidden;
}
.media-bleed-frame {
  height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 640px)  { .media-bleed-frame { height: 66vh; } }
@media (min-width: 1024px) { .media-bleed-frame { height: 82vh; } }
.media-bleed-frame > img,
.media-bleed-frame > video { width: 100%; height: 100%; }
/* Soft top/bottom fade so a bright full-bleed photo (e.g. Solar-Y hero)
   blends into the dark page instead of meeting it with a hard edge. */
.media-bleed.media-fade::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--space-black) 0%, rgba(5,7,9,0) 16%,
    rgba(5,7,9,0) 80%, var(--space-black) 100%);
}

/* Homepage hero ("Astradyne World") — taller and more atmospheric:
   larger frame + a lower image opacity so it reads as a faint backdrop
   sitting just under the headline. */
.media-bleed.hero-world { margin-top: -0.25rem; }
@media (min-width: 1024px) { .media-bleed.hero-world { margin-top: -0.75rem; } }
.media-bleed.hero-world .media-bleed-frame { height: 64vh; }
@media (min-width: 640px)  { .media-bleed.hero-world .media-bleed-frame { height: 80vh; } }
@media (min-width: 1024px) { .media-bleed.hero-world .media-bleed-frame { height: 90vh; } }
.media-bleed.hero-world img { opacity: 0.6; }

/* Bold weight for application labels — Manrope is loaded at 600 max,
   and font-semibold isn't in the prebuilt Tailwind, so use this. */
.fw-semibold { font-weight: 600; }

/* Wide editorial banner ratio (Looking Ahead image) */
.ratio-banner { aspect-ratio: 16 / 7; }
@media (max-width: 640px) { .ratio-banner { aspect-ratio: 4 / 3; } }

/* =====================================================
   APPLICATIONS MARQUEE (Solar-Y) — larger image cards that
   auto-scroll like the Trusted By logo strip. Track holds the
   set twice; translating -50% loops seamlessly. Pauses on hover.
   ===================================================== */
/* Taller underlay sections (Solar-X "Italy", Solar-Z "Earth") so the
   background image is cropped less. (py-32/py-48 aren't in the prebuilt
   Tailwind, so this is a guaranteed custom utility.) */
.section-underlay { padding-top: 8rem; padding-bottom: 8rem; }
@media (min-width: 1024px) { .section-underlay { padding-top: 12rem; padding-bottom: 12rem; } }

.apps-marquee {
  position: relative;
  overflow: hidden;
  /* Break out to the container edges (cancels px-6 / lg:px-10). */
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
@media (min-width: 1024px) {
  .apps-marquee { margin-left: -2.5rem; margin-right: -2.5rem; }
}
.apps-marquee-track {
  display: flex;
  width: max-content;
  animation: apps-marquee 46s linear infinite;
}
.apps-marquee:hover .apps-marquee-track { animation-play-state: paused; }
/* Spacing via item margin (not flex gap) so the -50% loop is seamless. */
.apps-marquee-item {
  flex: 0 0 auto;
  width: 300px;
  margin: 0 0.625rem;
}
@media (min-width: 1024px) {
  .apps-marquee-item { width: 384px; margin: 0 0.75rem; }
}
@keyframes apps-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .apps-marquee-track { animation: none; }
}

/* =====================================================
   MISC
   ===================================================== */
.divider-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 0 auto;
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Slow gradient drift on hero ambient */
@keyframes driftSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -1%) scale(1.05); }
}
.drift { animation: driftSlow 16s ease-in-out infinite; }

/* AOS adjustments */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* Selection */
::selection { background: rgba(232, 67, 31, 0.35); color: white; }

/* Scrollbar (subtle, dark) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--space-black); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* =====================================================
   PEOPLE MARQUEE (About page — team moments)
   ===================================================== */
.people-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.people-marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: people-marquee 90s linear infinite;
}
.people-marquee:hover .people-marquee-track { animation-play-state: paused; }
.people-marquee-item {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #050709;
}
.people-marquee-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.people-marquee-item:hover img { transform: scale(1.04); }
@media (min-width: 1024px) {
  .people-marquee-item { width: 380px; height: 260px; }
  .people-marquee-track { gap: 1.25rem; }
}
@keyframes people-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .people-marquee-track { animation: none; }
}

/* =====================================================
   CURSOR SPOTLIGHT — soft orange glow that follows the
   pointer site-wide. Sits between bg and content with
   mix-blend-mode: screen so it only brightens the dark
   bg (text and cards stay at full contrast).
   Injected by main.js; only active on hover-capable
   devices and when reduced-motion is OFF.
   ===================================================== */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--cx, -500px) var(--cy, -500px),
    rgba(232, 67, 31, 0.18),
    rgba(232, 67, 31, 0.05) 35%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}
.cursor-spotlight.active { opacity: 1; }

/* =====================================================
   HERO PARALLAX
   Anything with data-parallax gets translated on scroll.
   The intensity (in px) is read from the attribute.
   ===================================================== */
[data-parallax] {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
}

/* Hero media — soft cinematic glow + edge highlight */
.hero-media {
  box-shadow: 0 40px 90px -50px rgba(232, 67, 31, 0.30),
              inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Keyboard focus — visible, on-brand */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(232, 67, 31, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Respect users who prefer less motion — disable hover zoom / sweep / drift */
@media (prefers-reduced-motion: reduce) {
  .card img,
  .card:hover img { transform: none; transition: none; }
  .btn-primary::after { display: none; }
  .drift { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .orbit-ring.r-1 { width: 200px; height: 200px; }
  .orbit-ring.r-2 { width: 320px; height: 320px; }
  .orbit-ring.r-3 { width: 460px; height: 460px; }
  .placeholder-label { font-size: 0.6rem; bottom: 0.75rem; left: 1rem; }
  /* Ease the very tight tracking on small headlines so they don't crowd. */
  .headline { letter-spacing: -0.018em; }
  .headline-em { letter-spacing: -0.018em; }
  /* Never let media frames or the marquee cause horizontal scroll on phones. */
  .hero-media { max-width: 100%; }
  img, video { max-width: 100%; }
}
