/* =========================================================
   QSky — Quantum Sky   |   style.css
   Palette derived from the brand logo (#011252 navy) +
   the red / blue laser beams and the QS spectrum mark.
   Layout language follows luxquanta.com (dark/light bands,
   numbered 01–03 blocks, 6-card feature grid, sector grid).
   ========================================================= */

/* ---------- Fonts (local, variable) ---------- */
@font-face {
  font-family: "Asap Sharp";
  src: url("../assets/fonts/AsapSharp-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Asap Sharp";
  src: url("../assets/fonts/AsapSharp-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy:        #011252;   /* brand primary (logo) */
  --navy-900:    #030a2e;   /* deep background */
  --navy-800:    #061544;
  --navy-700:    #0d2168;
  --blue:        #2a3cff;   /* beam blue */
  --blue-soft:   #6a76ff;
  --red:         #ff0a1a;   /* beam red */
  --red-soft:    #ff5a63;
  --spectrum:    linear-gradient(90deg,#ff00f1 0%,#00dfcf 25%,#86d661 45%,#ffce00 60%,#ff7103 72%,#ff0007 87%,#fffbcc 100%);
  --light:       #f6f6f8;
  --white:       #ffffff;
  --ink:         #0b1030;
  --ink-soft:    #4a5070;
  --line:        rgba(1,18,82,.12);
  --line-dark:   rgba(255,255,255,.12);

  --font-display: "Asap Sharp", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 16px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
sup { font-size: .55em; vertical-align: super; line-height: 0; }
.prod { white-space: nowrap; }
.prod sup { margin: 0 1px 0 2px; }
.btn .prod { margin-left: .3em; }

.container { width: min(100% - 2*var(--gutter), var(--container)); margin-inline: auto; }

.section { padding: clamp(72px, 9vw, 130px) 0; }
.section-light { background: var(--light); color: var(--ink); }
.section-dark  { background: var(--navy-900); color: var(--white); }

.section-title { font-size: clamp(30px, 4vw, 52px); max-width: 22ch; }
.section-dark .section-title { color: var(--white); }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.section-dark .lead { color: rgba(255,255,255,.72); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
  color: var(--blue-soft); margin-bottom: 18px;
}
.section-light .eyebrow { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 10px 30px -12px rgba(42,60,255,.7); }
.btn-primary:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--blue); color: var(--white); border-color: var(--blue); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3,10,46,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand-logo { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: flex-end; }
.nav-list { display: flex; gap: 28px; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  color: rgba(255,255,255,.85); font-weight: 500; font-size: 15px;
  transition: color .2s;
}
.nav-list > li > a:hover { color: var(--white); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }

.sub-menu {
  position: absolute; top: 100%; left: -16px; min-width: 240px;
  background: var(--white); color: var(--ink); border-radius: var(--radius-sm);
  padding: 10px; box-shadow: 0 24px 50px -20px rgba(1,18,82,.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.sub-menu a:hover { background: var(--light); color: var(--navy); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-link-support { color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; }
.nav-link-support:hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: calc(100vh - 76px); display: flex; align-items: center;
  background: radial-gradient(120% 90% at 50% 110%, var(--navy-700) 0%, var(--navy-900) 60%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.beam {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 14s ease-in-out infinite alternate;
}
.beam-blue { width: 55vw; height: 55vw; left: -18vw; top: -12vw; background: radial-gradient(circle, var(--blue) 0%, rgba(42,60,255,0) 65%); }
.beam-red  { width: 60vw; height: 32vw; right: -20vw; bottom: 4vw; background: radial-gradient(ellipse, var(--red) 0%, rgba(255,10,26,0) 65%); animation-delay: -7s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vw,3vw,0) scale(1.12); } }
.grid-lines {
  position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 0; }
.hero-title { font-size: clamp(38px, 6vw, 88px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; max-width: 26ch; }
.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; opacity: 0; transform: translateY(30px); animation: rise .9s var(--ease) forwards; }
.hero-title .line:nth-child(1) > span:nth-child(1) { animation-delay: .05s; }
.hero-title .line:nth-child(1) > span:nth-child(2) { animation-delay: .18s; color: var(--blue-soft); }
.hero-title .line:nth-child(2) > span:nth-child(1) { animation-delay: .31s; }
.hero-title .line:nth-child(2) > span:nth-child(2) { animation-delay: .44s; color: var(--red-soft); }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.hero-sub { margin-top: 32px; font-size: clamp(18px, 1.6vw, 22px); max-width: 56ch; color: rgba(255,255,255,.78); }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mark {
  position: absolute; right: -4vw; bottom: -6vw; width: clamp(280px, 42vw, 720px);
  opacity: .16; pointer-events: none; z-index: 0;
  filter: drop-shadow(0 0 40px rgba(255,255,255,.15));
}

/* ---------- Numbered steps (01–03) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.step { padding-top: 24px; border-top: 1px solid var(--line); }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--blue); }
.step h3 { margin: 14px 0 12px; font-size: 22px; }
.step p { color: var(--ink-soft); }

/* ---------- QKD ---------- */
.qkd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.qkd-intro .lead { margin: 22px 0 32px; }
.qkd-points { display: grid; gap: 28px; }
.qkd-point { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.03); transition: border-color .25s, background .25s; }
.qkd-point:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.qkd-point h3 { font-size: 20px; margin-bottom: 8px; }
.qkd-point p { color: rgba(255,255,255,.7); font-size: 15px; }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 0 5px rgba(255,255,255,.06); }
.dot-blue { background: var(--blue); box-shadow: 0 0 18px var(--blue); }
.dot-red { background: var(--red); box-shadow: 0 0 18px var(--red); }
.dot-spectrum { background: var(--spectrum); }

/* ---------- Why ---------- */
.why-head .lead { margin-top: 18px; }
.why-head strong { color: var(--navy); font-family: var(--font-display); font-weight: 700; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line-dark); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--spectrum); opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: rgba(255,255,255,.7); font-size: 15px; }

/* ---------- Quotes ---------- */
.quote-slider { margin-top: 48px; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.quote-track { position: relative; min-height: 190px; }
.quote { margin: 0; position: absolute; inset: 0; opacity: 0; transform: translateX(24px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; color: var(--navy); max-width: 30ch; }
.quote footer { margin-top: 22px; color: var(--ink-soft); font-size: 15px; }
.quote-controls { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.quote-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 18px; cursor: pointer; transition: background .2s, color .2s; }
.quote-btn:hover { background: var(--navy); color: var(--white); }
.quote-dots { display: flex; gap: 8px; }
.quote-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.quote-dots i.is-active { background: var(--navy); width: 22px; border-radius: 4px; }

/* ---------- Solutions ---------- */
.solutions-head .lead { margin-top: 18px; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.sector {
  position: relative; display: block; padding: 34px 28px 30px; border-radius: var(--radius);
  border: 1px solid var(--line-dark); overflow: hidden; color: var(--white);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(42,60,255,.28), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  transition: transform .3s var(--ease), border-color .3s;
}
.sector:nth-child(even) { background: radial-gradient(90% 70% at 100% 0%, rgba(255,10,26,.24), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.sector:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.32); }
.sector-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); margin-bottom: 20px; }
.sector-icon svg { width: 22px; height: 22px; }
.sector h3 { font-size: 22px; margin-bottom: 12px; }
.sector p { color: rgba(255,255,255,.7); font-size: 15px; }
.sector::after { content: "→"; position: absolute; right: 24px; top: 26px; font-size: 20px; opacity: .5; transition: transform .25s var(--ease), opacity .25s; }
.sector:hover::after { transform: translateX(4px); opacity: 1; }

/* ---------- Partners ---------- */
.partners { padding-bottom: 0; }
.partner-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner-strip span {
  display: grid; place-items: center; height: 72px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); color: var(--ink-soft); font-size: 13px; font-family: var(--font-display); letter-spacing: .04em;
}

/* ---------- News ---------- */
.news-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(1,18,82,.35); }
.news-thumb { aspect-ratio: 16/10; background: var(--navy); position: relative; }
.news-thumb::after { content: ""; position: absolute; inset: 0; background: url("../assets/logo/qs-mark-white.svg") center/38% no-repeat; opacity: .35; }
.thumb-a { background: radial-gradient(80% 80% at 20% 20%, var(--blue), var(--navy-900)); }
.thumb-b { background: radial-gradient(80% 80% at 80% 30%, var(--red), var(--navy-900)); }
.thumb-c { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.thumb-d { background: radial-gradient(90% 90% at 50% 100%, #6a1bff, var(--navy-900)); }
.news-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-meta { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.tag { padding: 3px 9px; border-radius: 999px; background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { font-size: 18px; line-height: 1.3; flex: 1; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--white); text-align: center; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta .beam { opacity: .45; }
.cta .beam-blue { left: -10vw; top: -30vw; }
.cta .beam-red { right: -12vw; bottom: -20vw; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta .section-title { color: var(--white); }
.cta .lead { color: rgba(255,255,255,.75); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 72px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 54px; width: auto; }
.tagline { margin-top: 18px; font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 18px; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul + h4 { margin-top: 28px; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.footer-mark { height: 26px; width: auto; opacity: .8; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .beam, .hero-title .line > span { animation: none; opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    /* The header's backdrop-filter is the containing block for this fixed box,
       so top/left/right resolve against the header; height uses viewport units. */
    position: fixed; top: 76px; left: 0; right: 0;
    height: calc(100vh - 76px); height: calc(100dvh - 76px);
    background: var(--navy-900);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 24px var(--gutter) 40px; gap: 24px; overflow-y: auto;
    clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path .35s var(--ease), visibility 0s .35s;
  }
  .main-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .35s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list > li > a { display: flex; font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); justify-content: space-between; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; color: rgba(255,255,255,.75); box-shadow: none; padding: 4px 0 8px 12px; display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a:hover { background: rgba(255,255,255,.06); color: var(--white); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { justify-content: center; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-locked { overflow: hidden; }

  .steps, .feature-grid, .solutions-grid { grid-template-columns: 1fr 1fr; }
  .qkd-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .steps, .feature-grid, .solutions-grid, .news-grid, .footer-grid { grid-template-columns: 1fr; }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 80px 0; }
  .hero-mark { opacity: .1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-logo { height: 36px; }
}

/* ---------- Language switch (ES / EN) ---------- */
html[data-lang="en"] .lang-es { display: none !important; }
html[data-lang="es"] .lang-en { display: none !important; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.06);
}
.lang-switch button {
  font: 600 12px/1 inherit; font-family: inherit; letter-spacing: .06em;
  padding: 8px 10px; border: 0; background: transparent; color: rgba(255,255,255,.7);
  cursor: pointer; transition: background .15s, color .15s;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button.is-active { background: var(--blue); color: var(--white); }
@media (max-width: 960px) {
  .lang-switch { align-self: flex-start; }
}

/* ======================================================================
   Scroll-assembled scenes (anime.js)
   Each .scene is tall; its .scene-pin sticks under the header while the
   SVG model on one side is assembled piece by piece as the user scrolls.
   ====================================================================== */
.scene { position: relative; height: 280vh; scroll-margin-top: 76px; }
.scene-pin {
  position: sticky; top: 76px;
  height: calc(100vh - 76px); height: calc(100dvh - 76px);
  overflow: hidden; display: flex; align-items: center;
}
.scene-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: min(100% - 2*var(--gutter), var(--container)); position: relative; z-index: 1; }
.scene.flip .scene-model { order: -1; }

.scene-copy { min-width: 0; }
.scene-copy .section-title { font-size: clamp(28px, 3.3vw, 46px); max-width: 20ch; }
.scene-copy p { margin-top: 18px; color: var(--ink-soft); max-width: 52ch; }
.section-dark .scene-copy p, .cta-scene .scene-copy p { color: rgba(255,255,255,.75); }
.scene-copy .lead { max-width: 48ch; }
.scene-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.scene-facts li {
  padding: 7px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: 13px;
  border: 1px solid var(--line); color: var(--navy); background: rgba(255,255,255,.6);
}
.section-dark .scene-facts li { border-color: rgba(255,255,255,.25); color: var(--white); background: rgba(255,255,255,.06); }
.scene-media {
  margin: 24px 0 0; width: min(100%, 380px); aspect-ratio: 16 / 9; max-height: 22vh;
  border: 1px dashed rgba(1,18,82,.35); border-radius: var(--radius);
  display: grid; place-items: center; font-size: 13px; color: var(--ink-soft); overflow: hidden;
}
.section-dark .scene-media, .cta-scene .scene-media { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.6); }
.scene-media img { width: 100%; height: 100%; object-fit: cover; }
.scene-media:has(img) { border-style: solid; border-color: transparent; }

.scene-model { position: relative; }
.scene-model svg { width: 100%; height: auto; max-height: calc(100vh - 76px - 40px); margin-inline: auto; opacity: 0; transition: opacity .4s; }
.scene-model svg.ready { opacity: 1; }
.scene-model .part { transform-box: fill-box; transform-origin: 50% 50%; }
.scene-progress { position: absolute; left: 12%; right: 12%; bottom: -14px; height: 3px; border-radius: 3px; background: rgba(127,140,255,.18); overflow: hidden; }
.scene-progress i { display: block; height: 100%; width: 0%; background: var(--spectrum); border-radius: 3px; }

/* Contact scene keeps the CTA look */
.cta-scene { background: var(--navy); color: var(--white); }
.cta-scene .scene-pin { position: sticky; }
.cta-scene .cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-scene .section-title { color: var(--white); }
.cta-scene .lead { color: rgba(255,255,255,.75); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-address { margin-top: 28px; font-style: normal; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.7); }
.contact-address strong { color: var(--white); }
.contact-address a:hover { color: var(--white); text-decoration: underline; }

/* Hero: scroll hint + ambient photons */
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.photons { position: absolute; inset: 0; }
.photon { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px rgba(255,255,255,.6); opacity: 0; }
.photon.red { background: var(--red); box-shadow: 0 0 14px 3px rgba(255,10,26,.6); }
.photon.blue { background: #7d8dff; box-shadow: 0 0 14px 3px rgba(42,60,255,.7); }

/* Applications cards animate in with anime.js */
.solutions-head .eyebrow { display: inline-block; }
.solutions-head .lead { margin-top: 18px; }
#app-grid .sector { opacity: 0; }
.footer-note { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.55); max-width: 30ch; }

@media (max-height: 720px) { .scene-media { display: none; } .scene-copy p { font-size: 15px; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i, .photon { animation: none; }
}

/* ---------- Hero tagline (project phrase) ---------- */
.hero-tagline { margin-top: 34px; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.01em; color: var(--white); opacity: 0; animation: rise .9s var(--ease) .7s forwards; }
.hero-tagline + .hero-sub { margin-top: 14px; }

/* ---------- Members ---------- */
.members .section-title { margin-top: 4px; }
.members-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.members-grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-height: 132px; display: flex; transition: transform .3s var(--ease), box-shadow .3s; }
.members-grid li:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(1,18,82,.45); }
.members-grid a { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px 24px; }
.members-grid img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.members-grid li:hover img { filter: none; opacity: 1; }
.member-text span { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--navy); text-align: center; line-height: 1.15; }
@media (max-width: 1100px) { .members-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .members-grid { grid-template-columns: repeat(2, 1fr); } .members-grid li { min-height: 110px; } .members-grid img { max-height: 64px; } }
/* header nav: seven items need a little less room */
@media (min-width: 961px) and (max-width: 1280px) { .nav-list { gap: 18px; } .nav-list > li > a { font-size: 14px; } .main-nav { gap: 18px; } }
.nav-list > li > a { white-space: nowrap; }

/* ---------- 3D wireframe models: one colour, technical-drawing look ---------- */
.scene-model svg.model3d { color: #fff; overflow: hidden; --m-red: #ff2a3a; --m-blue: #6b84ff; --m-earth: #4d63ff; --m-earthfill: #0b1a5c; }
.section-light .scene-model svg.model3d { color: var(--navy); --m-red: #e3001b; --m-blue: #2a3cff; --m-earth: #2a3cff; --m-earthfill: #dfe4ff; }
.scene-model svg.model3d text { font-weight: 500; letter-spacing: .02em; }




/* ---------- section-to-section arrows: a discreet centred chevron ---------- */
.solutions, .members { position: relative; }
.next-arrow {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5;
  width: 48px; height: 40px; display: grid; place-items: center;
  color: var(--white); opacity: .32; transition: opacity .25s;
}
.next-arrow svg { width: 26px; height: 26px; animation: nudge 2.4s ease-in-out infinite; }
.next-arrow.up svg { transform: rotate(180deg); animation: none; }
.next-arrow:hover, .next-arrow:focus-visible { opacity: .85; outline: none; }
.section-light .next-arrow { color: var(--navy); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) { .next-arrow svg { animation: none; } }

/* ---------- technical-drawing annotations ---------- */
.scene-model svg.model3d text.note { font-family: var(--font-display); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.scene-model svg.model3d path.lead { stroke-width: .8; opacity: .7; }

/* ======================================================================
   Phones / small tablets: each scene is exactly one screen. The model sits
   fixed at the top, the text is static below it in its own scrollable box,
   and the assembly plays automatically when the section comes into view.
   ====================================================================== */
@media (max-width: 960px) {
  .scene { height: calc(100vh - 76px); height: calc(100dvh - 76px); padding: 0; }
  .scene-pin { position: static; height: 100%; overflow: hidden; display: block; }
  .scene-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; height: 100%; width: 100%; }
  .scene-model, .scene.flip .scene-model {
    position: relative; order: -1; flex: 0 0 42%; min-height: 0; max-height: 42%; width: 100%; height: 42%; margin: 0; padding: 6px 0 12px;
    display: flex; align-items: center; justify-content: center;
  }
  .scene-model svg.model3d { height: 100%; width: auto; max-width: 100%; max-height: 100%; }
  .scene-progress { left: 16%; right: 16%; bottom: 3px; top: auto; }
  .scene-copy {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 14px var(--gutter) 60px; width: 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent);
  }
  .scene-copy .section-title { font-size: clamp(22px, 6vw, 30px); max-width: none; }
  .scene-copy p { font-size: 15px; margin-top: 10px; max-width: none; }
  .scene-copy .eyebrow { margin-bottom: 10px; }
  .cta-scene .cta-bg { display: none; }
  .next-arrow { bottom: 6px; }
  .scroll-hint { display: none; }
  .hero { min-height: calc(100svh - 76px); }
  .hero-inner { padding: 64px 0 90px; }
  .hero-title { font-size: clamp(34px, 9.4vw, 48px); }
  .hero-sub { font-size: 16px; }
  .members-grid { gap: 12px; }
}
@media (max-width: 400px) { .hero-title { font-size: 32px; } }
