/* ============================================================================
   SPECTRA IMMERSIVE SERVICES  .  styles
   True black, minimal, spectrum accents used sparingly.
   Tune the whole theme from the :root custom properties below.
   ============================================================================ */

/* Theme tokens */
:root {
  /* Surfaces, true black base */
  --bg: #000000;
  --panel: #0A0A0C;
  --panel-2: #101014;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #F4F5F9;
  --text-dim: #9B9FB0;
  --text-mute: #5C6072;

  /* Spectrum accents (violet to cyan to magenta) */
  --violet: #7C3AED;
  --cyan: #22D3EE;
  --magenta: #EC4899;

  /* The signature gradient, used only on key accents */
  --spectrum: linear-gradient(100deg, #7C3AED 0%, #22D3EE 50%, #EC4899 100%);
  --spectrum-soft: linear-gradient(100deg, rgba(124,58,237,0.12), rgba(34,211,238,0.12), rgba(236,72,153,0.12));

  /* Type */
  --font-display: "Space Grotesk", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* offset anchored scrolling for the fixed nav */
main section[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--panel); color: var(--text); padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  transform: translateY(-150%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Reveal states. Hidden only while JS will reveal them via IntersectionObserver,
   which adds .in when the element scrolls into view. CSS transitions do the rest,
   so visibility never depends on a rAF loop or a scroll library. */
.js [data-animate] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-animate].in { opacity: 1; transform: none; }
.js.no-anim [data-animate] { opacity: 1 !important; transform: none !important; }

/* ============================================================================
   Background: pure black with a whisper of grain. No colored haze.
   ============================================================================ */
.bg { position: fixed; inset: 0; z-index: -2; background: var(--bg); overflow: hidden; }
.bg__grain {
  position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Immersive WebGL canvas, fixed behind all content */
.webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
/* When WebGL takes over, retire the CSS orbital fallback */
.webgl-on .orbital { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   Preloader, a brief immersive intro
   ============================================================================ */
.preloader { display: none; }
.js .preloader {
  display: flex; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center;
  background: #000; animation: preloaderAuto .6s var(--ease) 3.6s forwards; /* fallback dismiss if JS stalls */
}
.preloader.is-hidden { opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; width: min(320px, 70vw); }
.preloader__mark { width: 64px; height: 64px; animation: spin 18s linear infinite; }
.preloader__bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader__fill { display: block; height: 100%; width: 0%; background: var(--spectrum); transition: width .2s linear; }
.preloader__row { display: flex; justify-content: space-between; width: 100%; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mute); }
@keyframes preloaderAuto { to { opacity: 0; visibility: hidden; } }

/* ============================================================================
   Scroll progress + custom cursor
   ============================================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.scroll-progress__bar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--spectrum); }

.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor__dot { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.cursor__ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border-color: rgba(34,211,238,0.6); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) { body.has-cursor { cursor: none; } body.has-cursor a, body.has-cursor button { cursor: none; } .cursor { display: block; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.9rem 1.6rem; border-radius: 100px; font-family: var(--font-display);
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn--glow { color: #050505; background: var(--spectrum); background-size: 180% 180%; }
.btn--glow:hover { box-shadow: 0 0 36px rgba(124,58,237,0.45); transform: translateY(-2px); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.45); transform: translateY(-2px); }
.btn--full { width: 100%; }

.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(5,5,5,0.35); border-top-color: #050505; animation: spin 0.7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: 0.9; }
.btn.is-loading .btn__spinner { display: inline-block; }

/* ============================================================================
   Nav
   ============================================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 110; transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0,0,0,0.6); backdrop-filter: blur(16px) saturate(120%); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem var(--gutter); max-width: 1320px; margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__top { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.26em; color: #fff; }
.brand__sub { font-family: var(--font-display); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-mute); margin-top: 5px; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a { position: relative; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--text-dim); padding: 4px 0; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: var(--spectrum); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,0.97); backdrop-filter: blur(20px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mobile-menu__links a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--text); }
.mobile-menu__links a.btn { font-size: 1rem; margin-top: 1rem; }

/* ============================================================================
   Hero, two column with an animated orbital visual
   ============================================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 8rem 0 5rem; }
/* legibility scrim over the WebGL layer, darker on the left behind the copy */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(125% 100% at 16% 50%, rgba(0,0,0,0.72), rgba(0,0,0,0.2) 46%, transparent 74%); }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3rem; width: 100%; }
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-dim); padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 100px; margin-bottom: 1.8rem; }
.hero__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spectrum); }
.hero__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.0; font-size: clamp(2.8rem, 7vw, 5.6rem); margin-bottom: 1.6rem; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .accent { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 540px; font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--text-dim); margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero intro, pure CSS so it always plays on load */
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js .hero__eyebrow { opacity: 0; animation: heroIn .8s var(--ease) .1s forwards; }
.js .hero__title .line { opacity: 0; animation: heroIn 1s var(--ease) forwards; }
.js .hero__title .line:nth-child(1) { animation-delay: .24s; }
.js .hero__title .line:nth-child(2) { animation-delay: .36s; }
.js .hero__title .line:nth-child(3) { animation-delay: .48s; }
.js .hero__sub { opacity: 0; animation: heroIn 1s var(--ease) .58s forwards; }
.js .hero__cta { opacity: 0; animation: heroIn 1s var(--ease) .7s forwards; }
.js .orbital { opacity: 0; animation: heroIn 1.2s var(--ease) .35s forwards; }

/* Orbital visual */
.orbital { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; display: grid; place-items: center; }
.orbital__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,0.5), rgba(34,211,238,0.18) 45%, transparent 68%); filter: blur(40px); opacity: 0.5; }
.orbital__svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.orbital__ring { transform-box: view-box; transform-origin: 200px 200px; }
.orbital__ring--1 { animation: spin 26s linear infinite; }
.orbital__ring--2 { animation: spin 34s linear infinite reverse; }
.orbital__ring--3 { animation: spin 44s linear infinite; }
.orbital__node { filter: drop-shadow(0 0 6px currentColor); }
.orbital__core { animation: corePulse 6s ease-in-out infinite; transform-box: view-box; transform-origin: 200px 200px; }
@keyframes corePulse { 0%,100% { opacity: 0.9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-mute); z-index: 2; }
.hero__scroll-text { font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--text-mute), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: #fff; animation: scrollCue 1.8s var(--ease) infinite; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(260%); } }

/* ============================================================================
   Section primitives
   ============================================================================ */
.section { position: relative; padding: clamp(6rem, 13vw, 10rem) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(2.6rem, 5vw, 4.5rem); }
.section__kicker { font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: 10px; }
.section__kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--spectrum); }
.section__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section__lead { color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.18rem); margin-top: 1.1rem; max-width: 600px; }

/* ============================================================================
   Proof strip
   ============================================================================ */
.proof { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__kicker { text-align: center; font-family: var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.78rem; color: var(--text-mute); margin-bottom: 2rem; }

.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: 1.5rem; white-space: nowrap; animation: marquee 36s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.4); }
.marquee__track i { color: var(--text-mute); font-style: normal; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
.stat { text-align: center; padding: 1rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-flex; align-items: baseline; }
.stat__num em { font-style: normal; }
.stat__label { display: block; margin-top: 0.7rem; color: var(--text-dim); font-size: 0.92rem; }

/* ============================================================================
   Services cards, minimal
   ============================================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  position: relative; padding: 2.2rem 1.9rem; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
/* thin spectrum line that wipes in on hover, the only flourish */
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--spectrum); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--panel-2); }
.card:hover::after { transform: scaleX(1); }
.card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.4rem; color: var(--cyan); background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.2; margin-bottom: 0.55rem; }
.card__text { color: var(--text-dim); font-size: 0.96rem; }

/* ============================================================================
   Why us pillars, minimal
   ============================================================================ */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { position: relative; padding: 2.2rem; border-bottom: 1px solid var(--line); }
.pillar:nth-child(odd) { border-right: 1px solid var(--line); }
.pillar__no { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: transparent; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; letter-spacing: 0.1em; }
.pillar__title { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; margin: 0.7rem 0 0.5rem; }
.pillar__text { color: var(--text-dim); }

/* ============================================================================
   Process timeline
   ============================================================================ */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: 1rem; }
.timeline__line { position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: var(--line); }
.timeline__line-fill { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--spectrum); transition: transform 1.3s var(--ease); }
.timeline.in .timeline__line-fill { transform: scaleX(1); }
.timeline__step { position: relative; padding-top: 2.4rem; }
.timeline__dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.timeline__no { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.timeline__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin: 0.4rem 0 0.5rem; }
.timeline__text { color: var(--text-dim); font-size: 0.92rem; }

/* ============================================================================
   Case study, Spectra Museum
   ============================================================================ */
.casestudy { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.cs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; z-index: 0; }
.casestudy .container { position: relative; z-index: 1; }
.casestudy__head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; margin-bottom: 3.4rem; }
.casestudy__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -0.02em; line-height: 0.98; margin: 0.6rem 0 0.6rem; }
.casestudy__title .accent { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.casestudy__where { color: var(--text-mute); font-family: var(--font-display); letter-spacing: 0.06em; }
.casestudy__lead { color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.16rem); }

.casestudy__scope { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 2rem; }
.casestudy__scope li { font-family: var(--font-display); font-size: 0.82rem; color: var(--text-dim); padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 100px; }

/* zones header, sets the click affordance */
.casestudy__zoneshead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.8rem 0 1.2rem; }
.casestudy__zonestitle { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.casestudy__hint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text-mute); }
.casestudy__hint svg { color: var(--cyan); }

/* zone tiles, clickable case study visuals (swap for real photos) */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.zone {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, #0c0c10, #050506);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem;
  color: var(--text); text-decoration: none;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.zone::before { content: ""; position: absolute; inset: 0; opacity: 0.4; transition: opacity .45s var(--ease); background: radial-gradient(120% 80% at 50% 12%, var(--hue, #7C3AED), transparent 62%); }
.zone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7)); }
.zone:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 18px 44px rgba(0,0,0,0.55); }
.zone:hover::before { opacity: 0.75; }
.zone:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.zone__arrow { position: absolute; top: 0.85rem; right: 0.85rem; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); color: #fff; opacity: 0; transform: translateY(-6px) scale(0.92); transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s; }
.zone:hover .zone__arrow, .zone:focus-visible .zone__arrow { opacity: 1; transform: none; }
.zone:hover .zone__arrow { background: rgba(255,255,255,0.1); }
.zone__idx { position: relative; z-index: 1; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }
.zone__name { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-top: 0.2rem; }
.zone:nth-child(1) { --hue: #7C3AED; }
.zone:nth-child(2) { --hue: #6366F1; }
.zone:nth-child(3) { --hue: #22D3EE; }
.zone:nth-child(4) { --hue: #14B8A6; }
.zone:nth-child(5) { --hue: #EC4899; }
.zone:nth-child(6) { --hue: #8B5CF6; }
.zone:nth-child(7) { --hue: #F472B6; }
.zone:nth-child(8) { --hue: #38BDF8; }

.casestudy__cta { margin-top: 2.6rem; }

/* ============================================================================
   Audiences pills
   ============================================================================ */
.pills { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pill { font-family: var(--font-display); font-weight: 500; font-size: clamp(0.95rem, 1.6vw, 1.15rem); padding: 0.8rem 1.4rem; border-radius: 100px; border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, color .3s; }
.pill:hover { transform: translateY(-3px); border-color: var(--line-strong); color: #fff; }

/* ============================================================================
   Contact, form
   ============================================================================ */
.contact__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; position: relative; }
.contact__meta { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact__meta li { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.contact__meta a:hover { color: var(--cyan); }

.form { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 0.88rem; color: var(--text-dim); }
.req { color: var(--magenta); }

.field input, .field textarea, .select-wrap select {
  width: 100%; font: inherit; color: var(--text); background: #050506;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0.85rem 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus, .select-wrap select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.16); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.select-wrap select option { background: var(--panel); color: var(--text); }

.field.is-invalid input, .field.is-invalid textarea { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.14); }
.field__error { color: #fca5a5; font-size: 0.82rem; min-height: 0; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.field--consent { gap: 0.4rem; }
.checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--text-dim); font-family: var(--font-body); }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-strong); background: #050506; display: grid; place-items: center; transition: background .2s, border-color .2s; margin-top: 2px; }
.checkbox__box::after { content: ""; width: 6px; height: 11px; border-right: 2px solid #050505; border-bottom: 2px solid #050505; transform: rotate(45deg) scale(0); transform-origin: center; transition: transform .2s var(--ease); }
.checkbox input:checked + .checkbox__box { background: var(--cyan); border-color: var(--cyan); }
.checkbox input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__box { box-shadow: 0 0 0 3px rgba(34,211,238,0.3); }
.field--consent.is-invalid .checkbox__box { border-color: #f87171; }

.form__status { font-size: 0.9rem; min-height: 0; }
.form__status.is-error { color: #fca5a5; }

.form-success { position: absolute; inset: 0; border-radius: var(--radius-lg); background: rgba(0,0,0,0.92); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.8rem; padding: 2rem; opacity: 0; visibility: hidden; transform: scale(0.97); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.form-success.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
.form-success__check { width: 78px; height: 78px; color: var(--cyan); }
.form-success__check circle, .form-success__check path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.form-success.is-visible .form-success__check circle { animation: draw 0.6s var(--ease) forwards; }
.form-success.is-visible .form-success__check path { animation: draw 0.5s var(--ease) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.36rem; }
.form-success p { color: var(--text-dim); max-width: 340px; }

/* ============================================================================
   Footer
   ============================================================================ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vw, 5rem); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__tag { color: var(--text-dim); max-width: 320px; }
.footer__col h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1.1rem; }
.footer__col a { display: block; color: var(--text-dim); padding: 0.3rem 0; transition: color .2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--text-dim); transition: color .25s, border-color .25s, transform .25s; }
.footer__social a:hover { color: #fff; border-color: var(--line-strong); transform: translateY(-3px); }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 0.86rem; }
.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal a:hover { color: var(--cyan); }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .orbital { max-width: 360px; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .casestudy__head { grid-template-columns: 1fr; gap: 1.4rem; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 1.4rem; }
  .timeline__line { left: 6px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .timeline__line-fill { width: 100%; height: 100%; transform: scaleY(0); transform-origin: 50% 0; }
  .timeline.in .timeline__line-fill { transform: scaleY(1); }
  .timeline__step { padding-top: 0; padding-bottom: 2.4rem; padding-left: 1.8rem; }
  .timeline__dot { left: -1.4rem; top: 4px; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat + .stat::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(odd) { border-right: none; }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .hero__scroll { display: none; }
}

/* ============================================================================
   Reduced motion: cut non-essential animation, reveal everything
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-animate] { opacity: 1 !important; transform: none !important; }
  .js .hero__eyebrow, .js .hero__title .line, .js .hero__sub, .js .hero__cta, .js .orbital { opacity: 1 !important; transform: none !important; }
  .orbital__ring, .orbital__core, .marquee__track, .hero__scroll-line::after { animation: none !important; }
  .scroll-progress__bar, .timeline__line-fill { transform: scaleX(1) !important; }
  .cursor { display: none !important; }
}

/* Zone tiles: real photos behind the labels */
.zone__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s var(--ease); }
.zone:hover .zone__img { transform: scale(1.06); }
.zone::before { opacity: 0; z-index: 1; }
.zone:hover::before { opacity: 0.45; }
.zone::after { z-index: 1; }
.zone__idx, .zone__name, .zone__arrow { z-index: 2; }
