@import url('tokens.css');

/* ==========================================================================
   MAWJ | Creative Agency
   Typography: Base Neue (Primary Display, Headlines, UI) / TheSans (Arabic)
   ========================================================================== */

@font-face {
  font-family: 'Base Neue';
  src: url('../fonts/BaseNeueTrial-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Base Neue';
  src: url('../fonts/BaseNeueTrial-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Base Neue';
  src: url('../fonts/BaseNeueTrial-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Base Neue';
  src: url('../fonts/BaseNeueTrial-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Base Neue Wide';
  src: url('../fonts/BaseNeueTrial-WideSemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Base Neue Exp';
  src: url('../fonts/BaseNeueTrial-ExpSemBd.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── 1. DESIGN TOKENS ────────────────────────────────────────────────────── */

:root {
  /* === BRAND COLORS (immutable, from brand guidelines) === */
  --mawj-navy:      #002A48;  /* Oxford Blue — primary dark */
  --mawj-blue:      #005487;  /* Midnight Blue — primary brand */
  --mawj-beige:     #B5CFE0;  /* Beau Blue — accent/light */
  --mawj-ivory:     #ECE9E0;  /* Platinum — background/warm white */

  /* === ATMOSPHERE TONAL STEPS (muted, deep, low-saturation navy) === */
  --bg-0: #030d16;   /* deepest — dark sections (system, work, cta) */
  --bg-1: #04121d;   /* base — page ground, footer */
  --bg-2: #06192a;   /* mid — calm content sections */
  --bg-3: #082234;   /* lifted — top of the atmosphere / lighter panels */

  /* === SEMANTIC COLORS (derived from brand) === */
  --color-bg:            var(--mawj-navy);
  --color-bg-deep:       #001C30;
  --color-surface:       #003357;
  --color-surface-raise: #003D66;
  --color-text:          #FFFFFF;
  --color-text-soft:     rgba(255, 255, 255, .72);
  --color-text-mute:     rgba(255, 255, 255, .55);
  --color-accent:        var(--mawj-beige);
  --color-line:          rgba(181, 207, 224, .18);
  --color-line-strong:   rgba(181, 207, 224, .32);

  /* === GRADIENTS === */
  --gradient-hero: radial-gradient(circle at 50% 50%, rgba(0, 84, 135, .55) 0%, rgba(0, 84, 135, .16) 38%, transparent 66%);
  --gradient-brand: linear-gradient(135deg, var(--mawj-blue) 0%, var(--mawj-navy) 100%);

  /* === TYPOGRAPHY === */
  --font-display: 'Base Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Base Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sub:     'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text:    'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic:  'TheSans', 'Cairo', -apple-system, sans-serif;

  /* Typography Scale */
  --fs-display: clamp(2.35rem, 5.4vw, 4.65rem);
  --fs-h1:      clamp(2.25rem, 4.8vw, 3.4rem);
  --fs-h2:      clamp(1.65rem, 3.6vw, 3.1rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.65rem);
  --fs-h4:      1.125rem;
  --fs-lede:    clamp(1.05rem, 1.4vw, 1.28rem);
  --fs-body:    1rem;
  --fs-sm:      .875rem;
  --fs-xs:      .75rem;
  --fs-label:   .6875rem;

  /* Line Heights */
  --lh-display: 1.14;
  --lh-h1:      1.12;
  --lh-h2:      1.16;
  --lh-h3:      1.25;
  --lh-body:    1.66;

  /* Font Weights */
  --w-lede:  500;  /* Metropolis Medium */
  --w-body:  500;  /* Metropolis Medium */
  --w-sub:   500;  /* Metropolis Medium */
  --w-label: 500;
  --w-ui:    500;
  --w-em:    600;
  --w-bold:  700;  /* Base Neue Bold */

  /* === SPACING SCALE (8pt rhythm) === */
  --s-1: .5rem;   --s-2: 1rem;     --s-3: 1.5rem;
  --s-4: 2rem;    --s-5: 2.5rem;   --s-6: 3rem;
  --s-8: 4rem;    --s-10: 5rem;    --s-12: 6rem;
  --s-16: 8rem;   --s-20: 10rem;

  /* Layout */
  --section-y: clamp(6rem, 11vw, 11rem);
  --section-y-sm: clamp(3.5rem, 6vw, 5rem);
  --section-x-sm: clamp(2.75rem, 4.5vw, 3.5rem);
  --gutter:    clamp(1.25rem, 4.5vw, 3rem);
  --container: 1240px;
  --measure:   62ch;

  /* === RADII === */
  --r-sm: 10px;   --r-md: 16px;   --r-lg: 24px;
  --r-xl: 32px;  --r-pill: 999px;

  /* === SHADOWS === */
  --shadow-sm:  0 4px 16px -2px rgba(0, 84, 135, .35);
  --shadow-md:  0 12px 32px -8px rgba(0, 84, 135, .45);
  --shadow-lg:  0 24px 56px -16px rgba(0, 84, 135, .55);
  --shadow-xl:  0 40px 90px -40px rgba(0, 0, 0, .9);
  --shadow-inner: 0 0 0 1px rgba(181, 207, 224, .05) inset;

  /* === MOTION === */
  --e-out:   cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.65, .05, .36, 1);
  --e-soft:  cubic-bezier(.25, .8, .25, 1);
  --d-fast: .18s; --d-mid: .26s; --d-slow: .6s;

  /* Layers */
  --z-bg: 0; --z-content: 10; --z-nav: 100; --z-drawer: 110;
  --z-cursor: 9000; --z-preload: 9500;
}

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }


/* ── 2. RESET & BASE ───────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* NOTE: no overflow on <html> — it re-scopes position:sticky and breaks the
     pinned "System" pipeline. Horizontal overflow is instead contained by
     body { overflow-x: hidden } plus each decorative light living inside an
     overflow:hidden section. */
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: var(--w-body);
  line-height: var(--lh-body);
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* ══ ATMOSPHERE ═══════════════════════════════════════════════════════════
   Soft light pools + a translucent tonal vignette (top lifted, base deepened)
   that drift almost imperceptibly. IMPORTANT: this layer is TRANSLUCENT — the
   vertical gradient fades to transparent through the middle so the wave field
   (z:-1, behind this) stays visible. The page's base tone comes from the body
   background-color; opaque sections carry their own muted --bg-* step. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 80% at 50% -8%, rgba(0, 84, 135, .2), transparent 60%),
    radial-gradient(90% 65% at 82% 108%, rgba(0, 84, 135, .1), transparent 62%),
    linear-gradient(180deg, rgba(8, 34, 52, .55) 0%, transparent 34%, transparent 64%, rgba(3, 13, 22, .6) 100%);
  will-change: transform;
  animation: atmosphereDrift 60s ease-in-out infinite alternate;
}
@keyframes atmosphereDrift {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(0, -2.4%, 0) scale(1.1); }
}

/* Fine film grain — fixed, above section backgrounds, below the cursor.
   Static (no animation), soft-light blended, ~3.5% so text stays crisp. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  opacity: .02;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

body.is-loading { overflow: hidden; }
body.nav-open   { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--mist-300); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--mist-300);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
  z-index: var(--z-preload);
  padding: .75rem 1.25rem; border-radius: var(--r-pill);
  background: var(--mist-300); color: var(--navy-900);
  font-size: var(--fs-sm); font-weight: var(--w-ui);
  transition: top var(--d-mid) var(--e-out);
}
.skip-link:focus { top: 1rem; }

/* ── 3. LAYOUT PRIMITIVES ──────────────────────────────────────────────── */

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

.section {
  position: relative;
  padding-block: var(--space-lg);
  z-index: var(--z-content);
}

/* Every section head is centred, the site reads as a gallery */
.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

/* Display tier. Base Neue Bold in natural sentence case. */
.section__title {
  max-width: 26ch;
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  letter-spacing: 0.05em;
  text-wrap: balance;
  text-transform: none;
}

/* Two-tone rhythm emphasis inside section titles */
.section__title .title-subtle {
  display: inline-block;
  font-weight: 500;
  opacity: .75;
  color: var(--color-accent);
  letter-spacing: inherit;
}

/* Long sentence headlines: spacious layout and comfortable scale */
.section__title--tight,
.section__title--tight * {
  max-width: 48ch !important;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  letter-spacing: 0.05em !important;
  word-spacing: normal !important;
  line-height: 1.32;
  font-weight: 700 !important;
  opacity: 1 !important;
  color: var(--color-text) !important;
  text-wrap: balance;
  text-transform: none !important;
}
/* No real italic exists, so emphasis is carried by colour, never a faux slant */
.section__title em {
  font-style: normal;
  color: var(--color-accent);
}

.section__lede {
  max-width: 54ch;
  margin-top: var(--s-3);
  color: var(--color-text-soft);
  font-size: var(--fs-lede);
  font-weight: var(--w-lede);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-text);
  font-size: var(--fs-label);
  font-weight: var(--w-em);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-accent);
}

/* Wave divider, the brand's core motif as a rule */
.wave-rule {
  width: min(340px, 60%);
  margin-top: var(--s-5);
  color: var(--color-line-strong);
}
.wave-rule svg { width: 100%; height: 18px; overflow: visible; }
.wave-rule path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: none;
}
.wave-rule.is-in path { animation: drawWave 1.6s var(--e-out) forwards; }
@keyframes drawWave { to { stroke-dashoffset: 0; } }

/* Wordmark: the single source of truth for how "Mawj" is set as text.
   The brand's official lettering uses Talina DEMO display face. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.wordmark--inline { color: var(--color-text-soft);; letter-spacing: .12em; }

/* ── 4. REVEAL BASE STATE ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  /* No will-change here: this is a one-shot reveal. Promoting ~30 elements to
     permanent compositor layers costs more than the single transition saves. */
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .55s var(--e-out) var(--reveal-delay, 0s),
    transform .6s var(--e-out) var(--reveal-delay, 0s);
}
/* If JS never runs, nothing should stay hidden */
.no-js .reveal { opacity: 1; transform: none; }

/* Split-text lines */
.split-line { display: block; overflow: hidden; }
.split-line__inner {
  display: block;
  transform: translate3d(0, 110%, 0);
}
.is-split-in .split-line__inner {
  transform: none;
  transition: transform .7s var(--e-out) var(--line-delay, 0s);
}

/* ── 5. BUTTONS ────────────────────────────────────────────────────────── */

.btn {
  --btn-fg: var(--mawj-navy);
  --btn-bg: var(--color-accent);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px;
  padding: 0 1.75rem;
  border-radius: var(--r-md);
  color: var(--btn-fg);
  background: var(--btn-bg);
  font-size: var(--fs-sm);
  font-weight: var(--w-ui);
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out), color var(--d-mid) var(--e-out);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--e-out);
  z-index: -1;
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { box-shadow: 0 14px 40px -14px rgba(181, 207, 224, .55); }
.btn:active { transform: scale(.975); }

.btn__label { position: relative; z-index: 1; }
.btn__icon { position: relative; z-index: 1; width: 17px; height: 17px; }
.btn__icon svg { width: 100%; height: 100%; transition: transform var(--d-mid) var(--e-out); }
.btn:hover .btn__icon svg { transform: translate(3px, 0); }

.btn--ghost {
  --btn-fg: var(--color-text);
  --btn-bg: transparent;
  border: 1px solid var(--color-line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost::before { background: var(--color-accent); }
.btn--ghost:hover { --btn-fg: var(--color-bg); box-shadow: 0 14px 40px -18px rgba(181, 207, 224, .45); }

.btn--lg { min-height: 62px; padding: 0 2.4rem; font-size: 1rem; border-radius: var(--r-md); }
.btn--full { width: 100%; }

/* ── 6. CUSTOM CURSOR ──────────────────────────────────────────────────── */

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: var(--z-cursor); display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-magnetic] { cursor: none; }

.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  pointer-events: none;
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--mist-300);
  box-shadow: 0 0 8px rgba(181, 207, 224, 0.6);
  transition: opacity .25s var(--e-out), width .25s var(--e-out), height .25s var(--e-out);
}
.cursor__ring {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1.25px solid rgba(181, 207, 224, .55);
  background: rgba(181, 207, 224, .05);
  transition: width .3s cubic-bezier(0.16, 1, 0.3, 1), height .3s cubic-bezier(0.16, 1, 0.3, 1),
              background .3s ease, border-color .3s ease, opacity .25s ease;
}
.cursor__label {
  font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-900); opacity: 0;
  transition: opacity .2s var(--e-out);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring {
  width: 58px; height: 58px;
  background: rgba(181, 207, 224, .14);
  border-color: rgba(181, 207, 224, .85);
  box-shadow: 0 0 16px rgba(0, 197, 252, 0.25);
}
.cursor.is-hover .cursor__dot  { opacity: 0; }
.cursor.is-view  .cursor__ring {
  width: 88px; height: 88px;
  background: var(--mist-300);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(181, 207, 224, 0.5);
}
.cursor.is-view  .cursor__label { opacity: 1; }
.cursor.is-view  .cursor__dot  { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ── 7. PRELOADER ──────────────────────────────────────────────────────── */

.preloader {
  position: fixed; inset: 0; z-index: var(--z-preload);
  display: grid; place-items: center;
  background: var(--navy-950);
  transition: transform .95s cubic-bezier(.77, 0, .175, 1);
  will-change: transform;
}
/* The real logo is used as a mask; a dynamic wave of Mawj blue rises and fills the shape
   from inside, cresting with genuine liquid fluid physics. */
.preloader__logo {
  position: relative;
  width: clamp(108px, 15vw, 164px);
  aspect-ratio: 720 / 725;
  opacity: 0;
  animation: preloaderLogoIn .75s var(--e-out) .05s forwards;
  -webkit-mask: url("../img/mawj-mark.png") center / contain no-repeat;
          mask: url("../img/mawj-mark.png") center / contain no-repeat;
}
@keyframes preloaderLogoIn {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
/* Empty state: subtle silhouette of the mark in Oxford/Midnight brand tone */
.preloader__logo-base {
  position: absolute; inset: 0;
  background: rgba(0, 84, 135, .22);
}
/* The fluid wave canvas filling up the logo */
.preloader__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Reduced motion / static fallback */
.preloader.is-static .preloader__logo { opacity: 1; animation: none; }
.preloader.is-done { pointer-events: none; transform: translateY(-100%); }
.preloader.is-gone { display: none; }

/* ── 8. NAVIGATION ─────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-top: max(.9rem, env(safe-area-inset-top));
  padding-bottom: .9rem;
  transition: transform .55s var(--e-out), background .45s var(--e-out),
              backdrop-filter .45s var(--e-out), border-color .45s var(--e-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(0, 19, 31, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-104%); }

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__brand {
  display: inline-flex; align-items: center;
  justify-self: start;
  min-height: 44px;
}
.nav__brand img {
  width: 32px; height: auto;
  transition: transform .5s var(--e-out);
}
.nav__brand:hover img { transform: rotate(-8deg) scale(1.08); }

.nav__links {
  display: flex; align-items: center; gap: .25rem;
  justify-self: center;
  padding: .3rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: border-color .45s var(--e-out), background .45s var(--e-out);
}
.nav.is-stuck .nav__links { border-color: var(--line); background: rgba(181, 207, 224, .035); }
.nav__links a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 .95rem;
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 400; letter-spacing: .02em;
  color: var(--color-text-soft);;
  transition: color var(--d-mid) var(--e-out), background var(--d-mid) var(--e-out);
}
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: 6px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--mist-300);
  transform: translate(-50%, 6px); opacity: 0;
  transition: transform var(--d-mid) var(--e-out), opacity var(--d-mid) var(--e-out);
}
.nav__links a:hover { color: var(--color-text);; background: rgba(181, 207, 224, .07); }
.nav__links a.is-current { color: var(--mist-300); }
.nav__links a.is-current::after { opacity: 1; transform: translate(-50%, 0); }

.nav__cta { justify-self: end; min-height: 44px; padding: 0 1.3rem; font-size: .8125rem; }

.nav__toggle {
  display: none;
  justify-self: end;
  position: relative;
  width: 46px; height: 46px;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(181, 207, 224, .05);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
          backdrop-filter: blur(10px) saturate(140%);
  cursor: pointer;
  transition: transform var(--d-fast) var(--e-out),
              border-color var(--d-mid) var(--e-out),
              background var(--d-mid) var(--e-out);
}
.nav__toggle:hover { border-color: var(--beau-blue); background: rgba(181, 207, 224, .09); }
.nav__toggle:active { transform: scale(.93); }
/* Two bars centred on the true middle so the morph crosses cleanly */
.nav__toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px; border-radius: 2px;
  background: var(--text);
  transition: transform var(--d-mid) var(--e-out), opacity var(--d-fast);
}
.nav__toggle span:first-child { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav__toggle span:last-child  { transform: translate(-50%, calc(-50% + 3.5px)); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

.nav__drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  display: flex; flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top)) var(--gutter)
           calc(1.5rem + env(safe-area-inset-bottom));
  background: rgba(0, 19, 31, .9);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  overflow: hidden auto;   /* clip the corner glow on X, allow scroll on Y */
  opacity: 0;
  transition: opacity .45s var(--e-out);
}
.nav__drawer[hidden] { display: none; }
.nav__drawer.is-open { opacity: 1; }

/* Brand-blue pool anchored top-right, where the toggle lives — the menu reads
   as emerging from that corner rather than a flat wash. */
.nav__drawer-glow {
  position: absolute; top: -14%; right: -18%;
  width: min(560px, 92vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
              rgba(0, 84, 135, .5) 0%, rgba(0, 84, 135, .12) 42%, transparent 70%);
  pointer-events: none; z-index: -1;
  opacity: 0; transform: scale(.82);
  transition: opacity .6s var(--e-out), transform .85s var(--e-out);
}
.nav__drawer.is-open .nav__drawer-glow { opacity: 1; transform: none; }

/* Header row: brand + close chip (sits where the hamburger was) */
.nav__drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .3rem var(--s-2);
  border-bottom: 1px solid var(--line);
}
.nav__drawer-brand img { width: 30px; height: auto; opacity: .92; }
.nav__drawer-close {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(181, 207, 224, .05);
  color: var(--text); cursor: pointer;
  transition: transform var(--d-fast) var(--e-out),
              border-color var(--d-mid) var(--e-out),
              background var(--d-mid) var(--e-out);
}
.nav__drawer-close:hover { border-color: var(--beau-blue); background: rgba(181, 207, 224, .1); }
.nav__drawer-close:active { transform: scale(.93); }
.nav__drawer-close svg { width: 18px; height: 18px; }

/* Link list — centered, clean, Base Neue display */
.nav__drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: var(--s-3);
  width: 100%;
  text-align: center;
}

.nav__drawer-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(.75rem, 2.5vw, 1.1rem) 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--e-out), transform .55s var(--e-out), color var(--d-mid) var(--e-out);
}

.nav__drawer.is-open .nav__drawer-item {
  opacity: 1;
  transform: none;
}

.nav__drawer-label {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
  transition: color var(--d-mid) var(--e-out), transform var(--d-mid) var(--e-out);
}

.nav__drawer-item:hover .nav__drawer-label,
.nav__drawer-item:active .nav__drawer-label {
  color: var(--beau-blue);
  transform: scale(1.04);
}

.nav__drawer.is-open .nav__drawer-item:nth-child(1) { transition-delay: .07s; }
.nav__drawer.is-open .nav__drawer-item:nth-child(2) { transition-delay: .12s; }
.nav__drawer.is-open .nav__drawer-item:nth-child(3) { transition-delay: .17s; }
.nav__drawer.is-open .nav__drawer-item:nth-child(4) { transition-delay: .22s; }
.nav__drawer.is-open .nav__drawer-item:nth-child(5) { transition-delay: .27s; }
.nav__drawer.is-open .nav__drawer-item:nth-child(6) { transition-delay: .32s; }

.nav__drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin-top: var(--s-4);
  min-height: 56px;
  border-radius: var(--r-pill);
  background: var(--beau-blue); color: var(--oxford-blue);
  font-family: var(--font-sub);
  font-size: 1.02rem; font-weight: 600; letter-spacing: .01em;
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--e-out) .42s, transform .55s var(--e-out) .42s, filter var(--d-mid) var(--e-out);
}
.nav__drawer.is-open .nav__drawer-cta { opacity: 1; transform: none; }
.nav__drawer-cta:hover { filter: brightness(1.06); }
.nav__drawer-cta:active { transform: scale(.985); }
.nav__drawer-cta svg { width: 18px; height: 18px; }

.nav__drawer-foot {
  margin-top: auto; padding-top: var(--s-3);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); text-align: center;
  opacity: 0; transition: opacity .5s var(--e-out) .55s;
}
.nav__drawer.is-open .nav__drawer-foot { opacity: .75; }

/* ── 9. HERO ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: var(--space-xl) var(--space-lg);
  overflow: hidden;
  isolation: isolate;
}

/* Static brand-blue glow (was an animated canvas wave field + breathing pool) */
/* Hero gets the richest atmosphere: one very large, very soft pool of light
   set high and centred, so the headline reads against a gentle glow rather
   than a hard spotlight. Deliberately faint — the drifting body field does
   most of the work. */
.hero__light {
  position: absolute; left: 50%; top: 24%;
  width: min(1500px, 150vw); aspect-ratio: 1.35;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 84, 135, .22) 0%, rgba(0, 84, 135, .05) 45%, transparent 68%);
  z-index: var(--z-bg);
  pointer-events: none;
}

/* Sits behind the video frame, deliberately clear of the H1's bounding box
   (measured overlap was 66% before this fix — competed directly with the headline). */
.hero__watermark {
  position: absolute; left: 50%; top: 66%;
  width: min(520px, 68vw);
  transform: translate(-50%, -50%);
  opacity: .04;
  z-index: var(--z-bg);
  pointer-events: none;
}

.hero__inner {
  position: relative; z-index: var(--z-content);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.hero__title {
  max-width: 28ch;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.05em;
  text-wrap: balance;
  text-transform: none;
}

.hero__title.hero__title--full {
  max-width: none;
  width: 100%;
}

.hero__line {
  display: block;
  width: 100%;
  text-align: center;
}

.hero__lede {
  max-width: 56ch;
  margin-top: var(--s-4);
  color: var(--color-text-soft);;
  font-size: var(--fs-lede);
  font-weight: var(--w-lede);
  text-wrap: pretty;
}

.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2);
  margin-top: var(--s-6);
}

.hero__media {
  width: min(920px, 100%);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(181, 207, 224, .28);
  background: var(--navy-950);
  aspect-ratio: 16 / 9;
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, .92),
    0 0 0 1px rgba(181, 207, 224, .08) inset;
  transform: translateZ(0);
  contain: paint;
  transition: transform .7s var(--e-out), border-color .5s var(--e-out), box-shadow .7s var(--e-out);
  cursor: pointer;
}
.hero__frame:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: rgba(181, 207, 224, .5);
  box-shadow:
    0 55px 120px -35px rgba(0, 0, 0, .95),
    0 0 45px -10px rgba(0, 84, 135, .5),
    0 0 0 1px rgba(181, 207, 224, .2) inset;
}
.hero__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  transform: translateZ(0);
  transition: filter .5s var(--e-out), opacity .4s var(--e-out);
}
.hero__frame-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(181, 207, 224, .18) 0%, transparent 35%, transparent 65%, rgba(0, 84, 135, .28) 100%);
}
.hero__frame.is-poster-only .hero__play,
.hero__frame.is-poster-only .hero__controls {
  display: none !important;
}

/* ── Center Video Player Glass Play/Pause Button ── */
.hero__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility .3s ease;
}

.hero__play-glass {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 19, 31, 0.76) 0%, rgba(0, 10, 18, 0.88) 100%);
  backdrop-filter: blur(24px) saturate(200%) contrast(105%);
  -webkit-backdrop-filter: blur(24px) saturate(200%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 40px -6px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: translateZ(0);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hero__play-specular {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 45%, transparent 65%);
  pointer-events: none;
}

.hero__play-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  color: #ffffff;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  transform: translateX(1.5px);
  transition: transform .2s ease, color .2s ease;
}

.hero__play-icon svg {
  width: 100%;
  height: 100%;
}

.hero__play-icon .ico-pause {
  display: none;
}

.hero__play:hover .hero__play-glass {
  background: linear-gradient(145deg, rgba(0, 32, 54, 0.88) 0%, rgba(0, 15, 26, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 22px 50px -6px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(0, 197, 252, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  transform: scale(1.08);
}

.hero__play:active .hero__play-glass {
  transform: scale(0.95);
}

/* Play state visibility transitions with pure clean opacity */
.hero__frame.is-playing:not(.is-user-active) .hero__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero__frame.is-playing.is-user-active .hero__play,
.hero__frame.is-paused .hero__play {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero__frame.is-playing .hero__play .ico-play { display: none; }
.hero__frame.is-playing .hero__play .ico-pause { display: block; }
.hero__frame.is-playing .hero__play-icon { transform: translateX(0); }

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 5, 12, 0.85) 0%, rgba(0, 5, 12, 0.05) 30%, rgba(0, 5, 12, 0.05) 50%, rgba(0, 5, 12, 0.95) 100%);
  opacity: 1;
  transition: opacity .3s ease;
}

.hero__frame.is-playing:not(.is-user-active) .hero__vignette {
  opacity: 0;
}

/* ── Top Bar Overlay ── */
.hero__top-bar {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.75rem);
  left: clamp(1rem, 3.5vw, 2.5rem);
  right: clamp(1rem, 3.5vw, 2.5rem);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility .3s ease;
}

.hero__top-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero__back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
  padding: 0;
}

.hero__back-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.hero__back-btn svg {
  width: 20px;
  height: 20px;
}

.hero__top-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
}

.hero__top-notice {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-sub);
  font-size: clamp(.74rem, 1.2vw, .84rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: .02em;
}

.hero__top-logo {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
  display: block;
}

@media (max-width: 640px) {
  .hero__top-notice .hero__top-text {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── Cinematic Bottom Controls Overlay ── */
.hero__controls {
  position: absolute;
  left: clamp(1rem, 3.5vw, 2.5rem);
  right: clamp(1rem, 3.5vw, 2.5rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: clamp(.65rem, 1.6vw, 1rem);
  background: transparent;
  visibility: visible;
  opacity: 1;
  transition: opacity .3s ease, visibility .3s ease;
}

.hero__frame.is-playing:not(.is-user-active) .hero__top-bar,
.hero__frame.is-playing:not(.is-user-active) .hero__controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero__frame.is-playing:not(.is-user-active) {
  cursor: none;
}

.hero__frame.is-playing:not(.is-user-active) * {
  cursor: none !important;
}

/* Meta Title & Chapter Subtitle (Bottom Left) */
.hero__meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  user-select: none;
}

.hero__meta-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero__meta-sub {
  font-family: var(--font-sub);
  font-size: clamp(.78rem, 1.2vw, .92rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin: .25rem 0 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* Full-Width Segmented Timeline Scrubber */
.hero__scrub-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero__scrub {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.hero__scrub-track {
  position: relative;
  width: 100%;
  height: 3.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: height .2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.hero__scrub:hover .hero__scrub-track {
  height: 5.5px;
}

.hero__scrub-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  z-index: 1;
}

.hero__scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: #ffffff;
  z-index: 2;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.hero__scrub-knob {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero__chapter-splits {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 3;
}

.hero__chapter-seg {
  height: 100%;
  border-right: 2px solid rgba(0, 19, 31, 0.9);
  box-sizing: border-box;
}

.hero__chapter-seg:last-child {
  border-right: none;
}

.hero__time {
  font-family: var(--font-sub);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* Floating Apple Glass Chapter Tooltip */
.hero__chapter-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .75rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(3, 24, 40, 0.94) 0%, rgba(1, 13, 22, 0.97) 100%);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(181, 207, 224, 0.35);
  box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 20;
  white-space: nowrap;
}

.hero__chapter-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hero__tooltip-title {
  font-family: var(--font-sub);
  font-size: .76rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .02em;
}

.hero__tooltip-time {
  font-family: var(--font-sub);
  font-size: .72rem;
  font-weight: 600;
  color: var(--mist-300);
  font-variant-numeric: tabular-nums;
  padding-left: .45rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Bottom Actions Row ── */
.hero__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero__bottom-left {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.hero__tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sub);
  font-size: clamp(.8rem, 1.2vw, .86rem);
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  padding: .35rem .75rem;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease, box-shadow .2s ease;
  position: relative;
  text-decoration: none;
}

.hero__tab-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 197, 252, 0.35);
}

.hero__tab-btn:active {
  transform: scale(0.96);
}

.hero__tab-ico {
  width: 14px;
  height: 14px;
  opacity: .85;
  flex-shrink: 0;
}

/* ── Chapters Popover Glass Drawer ── */
.hero__chapters-wrap {
  position: relative;
  z-index: 2;
}

.hero__chapters-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  min-width: min(320px, calc(100vw - 3rem));
  max-width: min(360px, calc(100vw - 3rem));
  border-radius: 20px;
  padding: .65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom left;
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1), visibility .25s;
  pointer-events: none;
  z-index: 10;
}

.hero__chapters-wrap.is-open .hero__chapters-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero__chapters-menu-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.hero__chapters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .25rem .5rem .45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: .2rem;
}

.hero__chapters-count {
  font-family: var(--font-sub);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist-300);
  opacity: .85;
}

.hero__chapter-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .6rem .8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.hero__chapter-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateX(3px);
}

.hero__chapter-item.is-active {
  background: linear-gradient(90deg, rgba(0, 155, 232, 0.25) 0%, rgba(0, 84, 135, 0.15) 100%);
  color: #ffffff;
  border-color: rgba(181, 207, 224, 0.45);
  box-shadow: 0 0 18px rgba(0, 155, 232, 0.35);
}

.hero__chapter-num {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  color: var(--mist-300);
  opacity: .85;
  flex-shrink: 0;
  width: 20px;
}

.hero__chapter-info {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
  min-width: 0;
}

.hero__chapter-name {
  font-family: var(--font-sub);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__chapter-duration {
  font-family: var(--font-sub);
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.hero__chapter-item.is-active .hero__chapter-duration {
  color: rgba(181, 207, 224, 0.85);
}

.hero__chapter-time {
  font-family: var(--font-sub);
  font-size: .72rem;
  font-weight: 700;
  color: var(--mist-300);
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.5);
  padding: .2rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Center Controls: 10s Rewind | Play/Pause | 10s Forward */
.hero__bottom-center {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.hero__ctrl-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  opacity: .88;
  transition: opacity .2s ease, transform .2s ease;
}

.hero__ctrl-icon-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.hero__ctrl-icon-btn:active {
  transform: scale(0.95);
}

.hero__ctrl-icon-btn svg {
  width: 26px;
  height: 26px;
}

.hero__ctrl-icon-btn--play {
  width: 44px;
  height: 44px;
  opacity: 1;
}

.hero__ctrl-icon-btn--play svg {
  width: 32px;
  height: 32px;
}

.hero__ctrl-icon-btn--play .ico-pause { display: none; }
.hero__controls.is-playing #heroBtnPlay .ico-play { display: none; }
.hero__controls.is-playing #heroBtnPlay .ico-pause { display: block; }

/* Right Controls: Volume, Quality/CC, Fullscreen */
.hero__bottom-right {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.5vw, 1.2rem);
}

.hero__ctrl-icon-btn .ico-unmute { display: none; }
.hero__controls.is-muted #heroBtnMute .ico-mute { display: block; }
.hero__controls.is-muted #heroBtnMute .ico-unmute { display: none; }
.hero__controls:not(.is-muted) #heroBtnMute .ico-mute { display: none; }
.hero__controls:not(.is-muted) #heroBtnMute .ico-unmute { display: block; }

/* Expandable Volume Slider */
.hero__vol-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero__vol-slider {
  width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: width .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease, margin-left .25s ease;
}

.hero__vol-wrap:hover .hero__vol-slider,
.hero__vol-slider:focus-visible {
  width: 60px;
  opacity: 1;
  margin-left: 6px;
}

.hero__vol-track {
  position: relative;
  width: 100%;
  height: 3.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.hero__vol-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: inherit;
  background: #ffffff;
}

/* Quality Selector Menu */
.hero__quality-wrap {
  position: relative;
  z-index: 2;
}

.hero__quality-wrap #heroBtnQuality svg {
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__quality-wrap.is-open #heroBtnQuality svg {
  transform: rotate(45deg);
}

.hero__quality-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  min-width: 155px;
  max-width: calc(100vw - 3rem);
  border-radius: 18px;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1), visibility .25s;
  pointer-events: none;
  z-index: 10;
}

.hero__quality-wrap.is-open .hero__quality-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero__quality-menu-glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(3, 24, 40, 0.92) 0%, rgba(1, 13, 22, 0.96) 100%);
  backdrop-filter: blur(28px) saturate(200%) contrast(110%);
  -webkit-backdrop-filter: blur(28px) saturate(200%) contrast(110%);
  border: 1px solid rgba(181, 207, 224, 0.32);
  box-shadow:
    0 25px 60px -10px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 30px rgba(0, 84, 135, 0.35);
  pointer-events: none;
  z-index: 0;
}

.hero__quality-menu-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.hero__quality-heading {
  padding: .35rem .65rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist-300);
  opacity: .85;
}

.hero__quality-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .75rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.hero__quality-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateX(2px);
}

.hero__quality-item.is-active {
  background: rgba(0, 155, 232, 0.2);
  color: #ffffff;
  border-color: rgba(181, 207, 224, 0.4);
}

.hero__quality-check {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--mist-300);
  opacity: 0;
  flex-shrink: 0;
}

.hero__quality-item.is-active .hero__quality-check {
  opacity: 1;
}

.hero__quality-name {
  font-family: var(--font-sub);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.hero__quality-name small {
  font-size: .68rem;
  font-weight: 700;
  padding: .1rem .35rem;
  border-radius: 4px;
  background: rgba(181, 207, 224, 0.2);
  color: var(--mist-300);
}

.hero__caption {
  margin-top: var(--s-3);
  color: var(--color-text-mute);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .015em;
}

/* ── Hero Video Player Mobile Responsive Rules ── */
@media (max-width: 640px) {
  .hero__controls {
    left: clamp(.65rem, 2.5vw, 1rem);
    right: clamp(.65rem, 2.5vw, 1rem);
    bottom: clamp(.65rem, 2.5vw, 1rem);
    gap: .45rem;
  }
  .hero__top-bar {
    left: clamp(.65rem, 2.5vw, 1rem);
    right: clamp(.65rem, 2.5vw, 1rem);
    top: clamp(.65rem, 2.5vw, 1rem);
  }
  .hero__meta-title {
    font-size: clamp(1rem, 4.2vw, 1.3rem);
  }
  .hero__meta-sub {
    font-size: clamp(.68rem, 2.7vw, .8rem);
    margin-top: .15rem;
  }
  .hero__scrub-wrap {
    gap: .65rem;
  }
  .hero__time {
    font-size: .72rem;
  }
  .hero__bottom-left {
    gap: .4rem;
  }
  .hero__bottom-center {
    gap: clamp(.5rem, 2vw, .95rem);
  }
  .hero__bottom-right {
    gap: clamp(.35rem, 1.5vw, .7rem);
  }
  .hero__ctrl-icon-btn {
    width: 30px;
    height: 30px;
  }
  .hero__ctrl-icon-btn svg {
    width: 20px;
    height: 20px;
  }
  .hero__ctrl-icon-btn--play {
    width: 36px;
    height: 36px;
  }
  .hero__ctrl-icon-btn--play svg {
    width: 24px;
    height: 24px;
  }
  .hero__tab-btn {
    padding: .25rem .55rem;
    font-size: .74rem;
    gap: .3rem;
  }
  .hero__tab-ico {
    width: 12px;
    height: 12px;
  }
  .hero__vol-wrap:hover .hero__vol-slider,
  .hero__vol-slider:focus-visible {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__bottom-center {
    gap: .4rem;
  }
  .hero__bottom-right {
    gap: .3rem;
  }
  .hero__meta-title {
    font-size: .95rem;
  }
  .hero__meta-sub {
    font-size: .65rem;
  }
  .hero__time {
    font-size: .66rem;
  }
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-size: 9.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-text-mute);;
  z-index: var(--z-content);
}
.scroll-hint__line {
  width: 1px; height: 42px;
  background: linear-gradient(180deg, transparent, var(--mist-300));
  opacity: .5;
  animation: hintSlide 2.6s var(--e-soft) infinite;
  transform-origin: top;
}
@keyframes hintSlide {
  0%       { transform: scaleY(0); opacity: 0; }
  35%      { transform: scaleY(1); opacity: .55; }
  100%     { transform: scaleY(1) translateY(42px); opacity: 0; }
}

/* ── 11. SELECTED WORK ─────────────────────────────────────────────────── */

/* Translucent ground so the wave field and star texture glide smoothly behind */
.work { background: rgba(3, 13, 22, .45); }

.work__reel { position: relative; }

/* Cinematic edge fades: cards dissolve off both sides of the frame */
.work__reel::before,
.work__reel::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: clamp(28px, 7vw, 110px);
  z-index: 2;
  pointer-events: none;
}
.work__reel::before { left: 0;  background: linear-gradient(90deg, var(--navy-950), transparent); }
.work__reel::after  { right: 0; background: linear-gradient(270deg, var(--navy-950), transparent); }

.work__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 1.7vw, 1.6rem);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  /* Align the first card with the centred container, let the last run off-frame */
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-block: .5rem 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.work__track::-webkit-scrollbar { display: none; }
.work__track:focus-visible { outline-offset: -3px; }
.work__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.work__track.is-dragging .work-card { pointer-events: none; }

.work__foot {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.work__progress {
  width: min(240px, 60%);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.work__progress-fill {
  display: block; height: 100%; width: 0%;
  background: var(--mist-300);
  transition: width .12s linear;
}
.work__controls { display: flex; align-items: center; gap: var(--s-3); }
.work__nav {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-line-strong);
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color var(--d-mid) var(--e-out), border-color var(--d-mid) var(--e-out),
              background var(--d-mid) var(--e-out), transform var(--d-mid) var(--e-out);
}
.work__nav svg { width: 18px; height: 18px; }
.work__nav:hover { color: var(--color-bg); background: var(--color-accent); border-color: var(--color-accent); }
.work__nav:active { transform: scale(.94); }
.work__nav[disabled] { opacity: .3; pointer-events: none; }
.work__hint {
  font-size: var(--fs-label);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-text-mute);;
}

.work-card {
  flex: 0 0 clamp(248px, 24vw, 330px);
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--color-surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .7s var(--e-out), border-color .5s var(--e-out), box-shadow .7s var(--e-out);
}
.work-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0%, rgba(181,207,224,.7) 14%, transparent 32%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--e-out);
  pointer-events: none;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-strong);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .85);
}
.work-card:hover::after { opacity: 0; }


.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
}
.work-card__media img {
  width: 100%; height: 112%;
  object-fit: cover;
  transform: translateY(-5%) scale(1.02);
  transition: transform 1.1s var(--e-out), filter .7s var(--e-out);
  filter: saturate(.92) brightness(.92);
}
.work-card:hover .work-card__media img { transform: translateY(-5%) scale(1.09); filter: saturate(1.05) brightness(1); }
.work-card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 19, 31, .72) 100%);
  pointer-events: none;
}

.work-card__body {
  display: flex; flex-direction: column; align-items: center;
  gap: .45rem;
  text-align: center;
  padding: var(--s-4) var(--s-3) var(--s-5);
}
.work-card__index {
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .24em; color: var(--mist-300); opacity: .75;
  font-variant-numeric: tabular-nums;
}
.work-card__client {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
}
.work-card__type { color: var(--color-text-mute); font-size: var(--fs-sm); font-weight: 500; }

/* Neighbouring cards recede while one is hovered, so focus reads clearly */
.work__track:hover .work-card:not(:hover) { opacity: .55; }
.work-card { transition: transform .7s var(--e-out), border-color .5s var(--e-out),
             box-shadow .7s var(--e-out), opacity .5s var(--e-out); }

/* Cards that open a case study read as live links */
.work-card--link { color: inherit; }
.work-card--link:hover { border-color: var(--line-strong); box-shadow: 0 40px 90px -50px rgba(0,0,0,.9); }
.work-card--link:hover .work-card__client { color: var(--mist-300); transition: color var(--d-mid) var(--e-out); }
.work-card__cta {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: var(--r-pill);
  background: rgba(181, 207, 224, .92); color: var(--navy-900);
  font-size: .78rem; font-weight: 500; letter-spacing: .01em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--e-out), transform .45s var(--e-out);
}
.work-card__cta svg { width: 15px; height: 15px; }
.work-card--link:hover .work-card__cta { opacity: 1; transform: none; }

.work-card__tag {
  display: inline-flex; align-self: center;
  padding: .2rem .65rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(181, 207, 224, .3);
  background: rgba(181, 207, 224, .1);
  font-size: 9.5px; font-weight: var(--w-em);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--mist-300);
  margin-bottom: .2rem;
}

/* ── 12. WHO WE WORK WITH ──────────────────────────────────────────────── */

.fit {
  overflow: hidden;
}
/* Removed: this section now sits directly on the drifting atmosphere. */
.fit__light { display: none; }

.pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(.55rem, 1.1vw, .9rem);
  max-width: 940px; margin-inline: auto;
}
.pill {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  /* Solid translucent rather than backdrop-blur: 10 live blur layers was the
     single biggest scroll cost on this section for no visual gain. */
  background: rgba(20, 46, 68, .55);
  color: var(--color-text);;
  font-size: clamp(.9rem, 1.15vw, 1.02rem);
  font-weight: var(--w-body); letter-spacing: .01em;
  white-space: nowrap;
  cursor: default;
  transition: border-color .5s var(--e-out), background .5s var(--e-out),
              color .5s var(--e-out), box-shadow .6s var(--e-out);
}
.pill::before {
  content: '';
  position: absolute; inset: -30%;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(181,207,224,.3), transparent 62%);
  opacity: 0;
  transition: opacity .55s var(--e-out);
  pointer-events: none;
  filter: blur(14px);
}
.pill:hover {
  border-color: rgba(181, 207, 224, .55);
  background: rgba(181, 207, 224, .12);
  box-shadow: 0 18px 44px -22px rgba(181, 207, 224, .5);
}
.pill:hover::before { opacity: 1; }
.pill span { position: relative; z-index: 1; }

/* ── 13. SERVICES ──────────────────────────────────────────────────────── */

.services {
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  padding-block: var(--section-y);
}

.svc__connective {
  max-width: 760px; margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  padding: clamp(1.2rem, 2vw, 1.6rem) clamp(1.5rem, 2.5vw, 2.2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-line-strong);
  background: linear-gradient(135deg, rgba(0, 84, 135, .22), rgba(0, 26, 46, .65));
  backdrop-filter: blur(12px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
}
.svc__connective-badge {
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-accent);
}
.svc__connective-text {
  color: var(--color-text-soft); font-size: clamp(.9rem, 1.1vw, 1rem); line-height: 1.55;
}
.svc__connective-text strong { color: var(--color-text); font-weight: 500; }

.svc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.svc__grid--pillars {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .svc__grid--pillars { grid-template-columns: 1fr; }
}

.svc {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-2);
  text-align: center;
  padding: clamp(2rem, 3.2vw, 2.75rem) clamp(1.35rem, 2.2vw, 1.9rem) clamp(2.4rem, 3.6vw, 3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-line);
  background: linear-gradient(180deg, rgba(20,46,68,.55), rgba(12,32,50,.4));
  overflow: hidden;
  isolation: isolate;
  transition: transform .6s var(--e-out), border-color .5s var(--e-out), background .5s var(--e-out);
}
.svc::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0%, rgba(181,207,224,.6) 12%, transparent 28%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--e-out); pointer-events: none;
}
.svc:hover { transform: translateY(-4px); border-color: var(--color-line-strong); }
.svc:hover::after { opacity: 0; }

/* Removed: cards separate from the ground with a hairline border and a
   restrained shadow, not an ambient glow. */
.svc__glow { display: none; }

.svc__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-line-strong);
  background: rgba(0, 19, 31, .45);
  color: var(--color-accent);
  transition: transform .6s var(--e-out), border-color .5s var(--e-out), color .5s var(--e-out), background .5s var(--e-out);
}
.svc__icon svg { width: 27px; height: 27px; }
.svc:hover .svc__icon {
  transform: translateY(-3px) rotate(-4deg);
  border-color: rgba(181, 207, 224, .5);
  background: rgba(181, 207, 224, .1);
}

.svc__title { margin-top: .35rem; font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; letter-spacing: 0.05em; color: var(--color-text); text-transform: none; }
.svc__copy  { max-width: 32ch; color: var(--color-text-mute); font-size: var(--fs-sm); font-weight: 500; line-height: 1.65; }

.svc__num {
  position: absolute; right: 1.1rem; bottom: .35rem;
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 400; line-height: 1;
  color: rgba(181, 207, 224, .055);
  font-variant-numeric: tabular-nums;
  transition: color .5s var(--e-out), transform .6s var(--e-out);
  pointer-events: none;
}
.svc:hover .svc__num { color: rgba(181, 207, 224, .11); transform: translateY(-3px); }

/* ── 14. THE SYSTEM ────────────────────────────────────────────────────── */

.system {
  position: relative;
  padding-block: var(--space-xl);
  background: rgba(3, 13, 22, .45);
  /* No overflow clipping here, it would turn this into the sticky scroll
     container and stop .system__sticky from pinning. */
  z-index: var(--z-content);
}
/* Whisper of light gathered behind the pipeline, well below the old level. */
.system__aura {
  position: absolute; left: 50%; top: 50%;
  width: min(1400px, 100%); aspect-ratio: 1.5;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 84, 135, .12) 0%, transparent 62%);
  pointer-events: none; z-index: 0;
}
.system__head {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.system__stage { position: relative; z-index: 1; height: 350vh; }
.system__sticky {
  position: sticky;
  top: clamp(80px, 12vh, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(0.5rem, 1vw, 1rem);
}
.system__canvas {
  position: relative;
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* the connecting wave */
.system__wave {
  position: relative;
  width: 100%;
  height: clamp(180px, 26vh, 300px);
}
.system__line {
  width: 100%; height: 100%;
  color: var(--line-strong);
}
.system__track { opacity: .75; }
.system__progress {
  stroke-dasharray: var(--sys-len, 1200);
  stroke-dashoffset: var(--sys-len, 1200);
  filter: drop-shadow(0 0 10px rgba(181, 207, 224, .55));
}

/* travelling light, an HTML element so the SVG's non-uniform scale can't squash it */
.system__pulse {
  position: absolute; left: 0; top: 50%;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 0 0 4px rgba(181, 207, 224, .22),
    0 0 26px 5px rgba(181, 207, 224, .75);
  opacity: 0;
  transition: opacity .4s var(--e-out);
  pointer-events: none;
}

/* nodes */
.system__nodes {
  position: absolute; inset: 0;
  pointer-events: none;
}
.sysnode__hit { pointer-events: auto; }
.sysnode {
  position: absolute;
  left: var(--x);
  top: 50%;
  transform: translate(-50%, -50%);
}
.sysnode__hit {
  position: relative;
  display: grid; place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  cursor: pointer;
}
.sysnode__ring {
  position: absolute; inset: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(0, 19, 31, .8);
  backdrop-filter: blur(8px);
  transition: transform .6s var(--e-out), border-color .5s var(--e-out),
              background .5s var(--e-out), box-shadow .6s var(--e-out);
}
.sysnode__icon {
  position: relative;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  color: var(--color-text-mute);;
  transition: color .5s var(--e-out), transform .6s var(--e-out);
}
.sysnode__icon svg { width: 100%; height: 100%; }
.sysnode__num {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px; font-weight: 500; letter-spacing: .2em;
  color: var(--color-text-mute);;
  font-variant-numeric: tabular-nums;
  transition: color .5s var(--e-out);
}

.sysnode:hover .sysnode__ring { border-color: rgba(181, 207, 224, .45); }

.sysnode.is-on .sysnode__ring {
  border-color: rgba(181, 207, 224, .85);
  background: rgba(181, 207, 224, .1);
  box-shadow: 0 0 0 1px rgba(181, 207, 224, .18), 0 0 34px -4px rgba(181, 207, 224, .55);
}
.sysnode.is-on .sysnode__icon { color: var(--mist-300); }
.sysnode.is-on .sysnode__num  { color: var(--mist-300); }

.sysnode.is-current .sysnode__ring {
  transform: scale(1.16);
  background: rgba(181, 207, 224, .16);
  box-shadow: 0 0 0 1px rgba(181,207,224,.3), 0 0 52px -2px rgba(181, 207, 224, .7);
}
.sysnode.is-current .sysnode__icon { color: var(--white); transform: scale(1.06); }
.sysnode.is-current .sysnode__ring::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(181, 207, 224, .32);
  animation: nodePing 2.4s var(--e-soft) infinite;
}
@keyframes nodePing {
  0%   { transform: scale(.9);  opacity: .9; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* stage panels */
.system__panels {
  position: relative;
  display: grid;
  margin-top: clamp(3rem, 7vh, 5.5rem);
  min-height: 200px;
  text-align: center;
}
.syspanel {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity .55s var(--e-out), transform .7s var(--e-out), filter .55s var(--e-out);
}
.syspanel.is-active { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.syspanel__kicker {
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--mist-300);
}
.syspanel__title {
  font-family: var(--font-sub);
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 400; letter-spacing: -.01em; line-height: 1.06;
}
.syspanel__copy {
  max-width: 46ch;
  color: var(--color-text-soft);;
  font-size: var(--fs-lede);
  text-wrap: pretty;
}

/* ── 14b. COMPARISON ─────────────────────────────────────────────────────── */

.compare {
  position: relative;
  background: linear-gradient(180deg, rgba(6, 25, 42, .45) 0%, rgba(4, 18, 29, .45) 100%);
  padding-block: var(--section-y);
}
/* Removed: relies on the tonal step + atmosphere for depth. */
.compare__light { display: none; }

.compare__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 1100px) {
  .compare__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .compare__grid {
    grid-template-columns: 1fr;
  }
}

.ccard {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-line);
  background: rgba(12, 32, 50, .4);
  backdrop-filter: blur(12px);
  transition: transform .5s var(--e-out), border-color .4s var(--e-out), box-shadow .5s var(--e-out);
}
.ccard:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 207, 224, .25);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
}

.ccard--mawj {
  border-color: rgba(181, 207, 224, .45);
  background: linear-gradient(180deg, rgba(0, 84, 135, .26) 0%, rgba(0, 26, 46, .75) 100%);
  box-shadow: 0 20px 60px -20px rgba(0, 84, 135, .35);
}
.ccard--mawj:hover {
  border-color: rgba(181, 207, 224, .7);
  box-shadow: 0 35px 80px -25px rgba(0, 84, 135, .5);
}

.ccard__badge {
  display: inline-flex; align-self: flex-start;
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-text-soft);
  padding: .25rem .75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, .03);
  margin-bottom: clamp(.8rem, 1.3vw, 1.1rem);
}
.ccard--mawj .ccard__badge {
  color: var(--color-accent);
  border-color: rgba(181, 207, 224, .4);
  background: rgba(181, 207, 224, .12);
  box-shadow: 0 0 16px -2px rgba(181, 207, 224, .3);
}

.ccard__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 700; line-height: 1.2;
  margin-top: 0;
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: none;
}
.ccard__invest {
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: .3rem;
}

.ccard__section {
  display: flex; flex-direction: column; gap: .6rem;
}
.ccard__sec-title {
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--color-text-soft);
}

.ccard__list {
  display: flex; flex-direction: column; gap: .55rem;
  font-size: var(--fs-sm); color: var(--color-text);
  line-height: 1.4;
}
.ccard__list li {
  display: flex; align-items: flex-start; gap: .6rem;
}
.ccard__icon {
  flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px;
}
.ccard__icon--pro { color: #52c41a; }
.ccard__icon--con { color: #ff4d4f; }
.ccard--mawj .ccard__icon--pro { color: var(--color-accent); }

.ccard__quote {
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-sm); font-style: italic;
  color: var(--color-text-soft);
  line-height: 1.45;
}
.ccard--mawj .ccard__quote {
  color: var(--color-text);
  font-weight: 500;
  border-top-color: rgba(181, 207, 224, .25);
}

/* Time saving banner */
.compare__summary {
  margin-top: clamp(2rem, 3.5vw, 3rem);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-line-strong);
  background: linear-gradient(135deg, rgba(0, 84, 135, .2), rgba(12, 32, 50, .5));
  backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
@media (max-width: 860px) {
  .compare__summary {
    grid-template-columns: 1fr;
  }
}
.compare__sum-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.05em;
  color: var(--color-text);
}
.compare__sum-head p {
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  margin-top: .6rem;
  line-height: 1.5;
}

.compare__sum-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem 1.2rem;
}
.compare__sum-item {
  display: flex; align-items: center; gap: .65rem;
  font-size: var(--fs-sm); color: var(--color-text);;
  line-height: 1.35;
}
.compare__sum-item svg {
  flex: 0 0 auto; width: 16px; height: 16px; color: var(--mist-300);
}

/* ── 15. PLANS ─────────────────────────────────────────────────────────── */

.plans {
  background: linear-gradient(180deg, rgba(4, 18, 29, .45) 0%, rgba(6, 25, 42, .45) 100%);
  padding-block: var(--section-y);
}

/* ── HOW WORKING WITH US FEELS ────────────────────────────────────────── */
.experience {
  position: relative;
  background: rgba(6, 25, 42, .45);
  padding-block: var(--section-y);
}
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.2rem, 2vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.exp-card {
  position: relative;
  display: flex; flex-direction: column; gap: .75rem;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-line);
  background: linear-gradient(180deg, rgba(20,46,68,.45), rgba(12,32,50,.35));
  backdrop-filter: blur(12px);
  transition: transform .5s var(--e-out), border-color .4s var(--e-out), box-shadow .5s var(--e-out);
}
.exp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 207, 224, .35);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .85);
}
.exp-card__label {
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-accent); opacity: .85;
}
.exp-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-transform: none;
}
.exp-card__copy {
  color: var(--color-text-soft); font-size: var(--fs-sm); font-weight: 500; line-height: 1.6;
}

/* ── Work Featured Badge & Top Showcase Card ───────────────────────────────── */
.work-card__tag--featured {
  background: var(--color-accent) !important;
  color: var(--color-bg) !important;
  border: 1px solid var(--color-accent) !important;
  font-weight: var(--w-em) !important;
  letter-spacing: .14em !important;
}
.work-featured {
  max-width: 840px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}
.work-featured__card {
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  transition: transform .6s var(--e-out), border-color .5s var(--e-out), box-shadow .6s var(--e-out);
}
.work-featured__card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 30px 80px -20px rgba(0, 84, 135, .45);
}
.work-featured__media {
  position: relative;
  width: 100%;
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
}
@media (max-width: 768px) {
  .work-featured__media { aspect-ratio: 16 / 9; }
}
.work-featured__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 42%;
  transition: transform 1.2s var(--e-out);
}
.work-featured__card:hover .work-featured__media img {
  transform: scale(1.04);
}
.work-featured__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 1.8vw, 1.4rem) clamp(1.25rem, 2vw, 1.85rem);
  background: linear-gradient(180deg, rgba(20,46,68,.75), rgba(12,32,50,.85));
}
.work-featured__info {
  display: flex; flex-direction: column; gap: .25rem;
}
.work-featured__meta {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.work-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: none;
}
.work-featured__desc {
  color: var(--color-text-soft); font-size: var(--fs-sm); font-weight: 500;
}

/* ── SHOWCASE REEL STRIP ─────────────────────────────────────────────────--- */
.showcase {
  position: relative;
  padding-block: var(--section-y);
  background: rgba(3, 13, 22, .45);
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  pointer-events: none;
}
.showcase__head {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.showcase__eyebrow {
  margin-bottom: 0;
}
.showcase__viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  pointer-events: none;
}
.showcase__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: max-content;
  animation: showcaseScroll 35s linear infinite !important;
  will-change: transform;
  pointer-events: none;
}
@keyframes showcaseScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.scard {
  position: relative;
  flex: 0 0 clamp(200px, 22vw, 290px);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}
.scard__media {
  width: 100%; height: 100%; object-fit: cover;
}
.scard__tag {
  position: absolute; bottom: .75rem; left: .75rem;
  padding: .25rem .65rem; border-radius: var(--r-md);
  background: rgba(0, 19, 31, .75); backdrop-filter: blur(8px);
  border: 1px solid var(--color-line); font-size: var(--fs-label);
  color: var(--color-accent); text-transform: uppercase; letter-spacing: .1em;
}

/* ── Experience Card Icons & Hover Animations ───────────────────────── */
.exp-card__icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(0, 84, 135, .25);
  border: 1px solid rgba(181, 207, 224, .2);
  color: var(--color-accent);
  margin-bottom: .35rem;
  transition: transform var(--d-mid) var(--e-out), background var(--d-mid) var(--e-out), border-color var(--d-mid) var(--e-out);
}
.exp-card__icon-wrap svg {
  width: 24px; height: 24px;
  transition: transform var(--d-mid) var(--e-out);
}
.exp-card:hover .exp-card__icon-wrap {
  background: rgba(0, 84, 135, .45);
  border-color: var(--color-accent);
  transform: scale(1.08);
}
.exp-card:hover .exp-card__icon-wrap svg {
  transform: scale(1.08);
}
.exp-card[data-card="cadence"]:hover .exp-card__icon-wrap svg {
  animation: expPulse 1.2s var(--e-out) infinite alternate;
}
.exp-card[data-card="revisions"]:hover .exp-card__icon-wrap svg {
  transform: rotate(180deg);
}
.exp-card[data-card="planning"]:hover .exp-card__icon-wrap svg {
  transform: translateY(-3px);
}
.exp-card[data-card="reporting"]:hover .exp-card__icon-wrap svg {
  transform: scale(1.15);
}
.exp-card[data-card="team"]:hover .exp-card__icon-wrap svg {
  transform: rotate(-10deg) scale(1.1);
}
@keyframes expPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.18); }
}

/* ── Experience Flexibility Sub-Block ────────────────────────────────────── */
.exp-flexibility {
  margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px dashed var(--color-line-strong);
  background: linear-gradient(135deg, rgba(0, 84, 135, .18), rgba(0, 33, 57, .35));
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.exp-flexibility__body {
  display: flex; align-items: center; gap: 1rem; flex: 1 1 320px;
}
.exp-flexibility__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: var(--r-md);
  background: rgba(181, 207, 224, .12); border: 1px solid rgba(181, 207, 224, .25);
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .15em; text-transform: uppercase; color: var(--color-accent); white-space: nowrap;
}
.exp-flexibility__text {
  font-size: clamp(.92rem, 1.1vw, 1.02rem); color: var(--color-text); line-height: 1.5;
}
.exp-flexibility__text strong { color: var(--color-accent); font-weight: 500; }
.exp-flexibility__chips {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.exp-chip {
  padding: .32rem .8rem; border-radius: var(--r-md);
  background: rgba(4, 34, 58, .6); border: 1px solid var(--color-line);
  font-size: var(--fs-sm); color: var(--color-text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .showcase__track { animation: none !important; }
  .exp-card:hover .exp-card__icon-wrap svg { animation: none !important; transform: none !important; }
}

/* ── CLIENT WORDS (TESTIMONIALS) ──────────────────────────────────────── */
.testimonials-compact {
  position: relative;
  background: rgba(4, 18, 29, .45);
  padding-block: var(--section-y);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  z-index: var(--z-content);
}
.testimonials-compact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.5vw, 1.3rem);
  align-items: start;
}

.t-card {
  min-width: 0; /* grid item must be allowed to shrink below the nowrap name/role's intrinsic width */
  background: linear-gradient(150deg, var(--mawj-blue, #002A48) 0%, var(--mawj-navy, #00131F) 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.t-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.t-card__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.t-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--color-accent);
  flex-shrink: 0;
  background: var(--mawj-midnight, #005487);
}
.t-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.t-card__meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.t-card__name {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.t-card__role {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-card__stars {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #ffca28;
  flex-shrink: 0;
}
.t-card__quote {
  font-family: var(--font-text);
  font-size: 0.88rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--color-text);
  opacity: 0.92;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 900px) {
  .testimonials-compact__grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .t-card--1, .t-card--2, .t-card--3 {
    margin-top: 0;
  }
  .testimonials-compact__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}


.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
  max-width: 1020px; margin-inline: auto;
}

.plan {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--s-4);
  padding: clamp(2rem, 3.4vw, 3rem) clamp(1.6rem, 2.6vw, 2.4rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,46,68,.55), rgba(12,32,50,.42));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .7s var(--e-out), border-color .5s var(--e-out), box-shadow .7s var(--e-out);
}
.plan::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0%, rgba(181,207,224,.75) 12%, transparent 30%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--e-out); pointer-events: none;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-strong);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
}
.plan:hover::after { opacity: 0; }

/* Removed: the featured plan is distinguished by border + surface, not a glow. */
.plan__glow { display: none; }

.plan__head { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.plan__badge {
  display: inline-flex; align-items: center;
  padding: .34rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--mist-300);
}
.plan__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: none;
}
.plan__pitch { max-width: 34ch; color: var(--color-text-soft); font-size: .95rem; font-weight: 500; line-height: 1.65; }

.plan__block { display: flex; flex-direction: column; gap: var(--s-2); }
.plan__listlabel {
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-text-mute);
}

.plan__list {
  display: flex; flex-direction: column; gap: .1rem;
  border-block: 1px solid var(--color-line);
  padding-block: var(--s-1);
}
.plan__list li {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding-block: .7rem;
  color: var(--color-text-soft);
  font-size: .9rem;
  border-bottom: 1px solid var(--color-line);
}
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::before {
  content: '';
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: .65;
}

.plan__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-2); }
.plan__meta { color: var(--color-text-mute); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; }

/* Featured plan: Content Wave carries a persistent (not hover-only) presence,
   held muted so it reads as "recommended", not "on sale". */
.plan--featured {
  overflow: visible;                 /* let the floating badge break the top edge */
  border-color: rgba(181, 207, 224, .38);
  box-shadow: 0 34px 90px -46px rgba(0, 84, 135, .7),
              0 0 0 1px rgba(181, 207, 224, .12) inset;
}

/* Floating "Most popular" pill, glass so it stays quiet */
.plan__popular {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.05rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(181, 207, 224, .38);
  background: rgba(4, 34, 58, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--mist-200);
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, .8);
}
.plan__popular::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px 1px rgba(181, 207, 224, .8);
}

/* The Content Playbook: the core asset of Content Wave, framed as a card
   within the card so it clearly outranks a normal feature list. */
.plan__block--playbook {
  position: relative;
  gap: var(--s-1);
  padding: clamp(1.4rem, 2.4vw, 2rem) clamp(1.1rem, 1.9vw, 1.6rem) clamp(1.5rem, 2.4vw, 1.9rem);
  border-radius: var(--r-lg);
  border: 1px solid rgba(181, 207, 224, .24);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 84, 135, .28), transparent 70%),
    linear-gradient(180deg, rgba(181, 207, 224, .09), rgba(181, 207, 224, .025));
}
.plan__playbook-badge {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin: 0 auto .35rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(181, 207, 224, .32);
  background: rgba(181, 207, 224, .1);
  color: var(--color-accent);
  box-shadow: 0 0 26px -6px rgba(181, 207, 224, .5);
}
.plan__playbook-badge svg { width: 23px; height: 23px; }
.plan__listlabel--playbook {
  font-family: var(--font-sub);
  text-transform: none;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  letter-spacing: -.006em;
  color: var(--color-accent);
}
.plan__playbook-lead {
  margin-top: -.15rem;
  color: var(--color-text-mute);
  font-size: var(--fs-sm);
}
.plan__block--playbook .plan__list { margin-top: var(--s-1); border-top: 0; }

/* Modularity statement: reads as a strategic position, not a service menu */
.plans__modular {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 640px;
  margin: clamp(3.5rem, 6vw, 5.5rem) auto 0;
}
.plans__modular .wave-rule { margin-top: 0; width: min(260px, 55%); }
.plans__modular-label {
  margin-top: var(--s-4);
  font-size: var(--fs-label); font-weight: var(--w-em);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--color-accent);
}
.plans__modular-copy {
  margin-top: var(--s-3);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-family: var(--font-sub);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.015em;
  color: var(--color-text);
  text-wrap: pretty;
}
.plans__note {
  margin-top: var(--s-3);
  color: var(--color-text-mute);
  font-size: var(--fs-sm);
}

/* ── 16. FINAL CTA ─────────────────────────────────────────────────────── */

.cta {
  position: relative;
  min-height: 92svh;
  display: grid; place-items: center;
  padding-block: var(--space-xl);
  overflow: hidden;
  isolation: isolate;
  background: transparent; /* lets the wave field read stronger again at the close */
  z-index: var(--z-content);
}

/* CTA earns a touch more ambient light to pull focus to the final action —
   soft and centred, not a spotlight. */
.cta__light {
  position: absolute; left: 50%; top: 50%;
  width: min(1200px, 130vw); aspect-ratio: 1.2;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 84, 135, .2) 0%, rgba(0, 84, 135, .05) 42%, transparent 66%);
  z-index: 0; pointer-events: none;
}
.cta__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cta__title {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 4.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.05em;
  text-wrap: balance;
  text-transform: none;
}
.cta__lede {
  max-width: 52ch;
  margin-top: var(--s-3);
  color: var(--color-text-soft);
  font-size: var(--fs-lede);
  font-weight: var(--w-lede);
  text-wrap: pretty;
}
.cta__actions { margin-top: var(--s-6); }
.cta__foot {
  margin-top: var(--s-6);
  font-size: var(--fs-label);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-text-mute);
}

/* ── BRAND GUIDELINE ELEMENTS (Starburst Badge & Signature Ribbon) ── */
.brand-starburst {
  display: inline-flex; align-items: center; justify-content: center;
  width: 90px; height: 90px;
  position: relative;
  margin-bottom: var(--s-3);
}
.brand-starburst svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(0, 84, 135, .4)); }

.brand-ribbon {
  display: inline-block;
  max-width: 320px;
  width: 100%;
  margin-top: var(--s-4);
  color: var(--color-accent);
}
.brand-ribbon text {
  font-family: var(--font-sub);
  font-size: 13px;
  letter-spacing: 0.05em;
  fill: var(--color-accent);
}

/* ── 17. FOOTER ────────────────────────────────────────────────────────── */

.footer {
  position: relative; z-index: var(--z-content);
  padding-block: var(--section-y-sm) var(--section-x-sm);
  border-top: 1px solid var(--color-line);
  background: transparent;
  overflow: hidden;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__mark { width: clamp(58px, 8vw, 84px); height: auto; opacity: .9; }
.footer__word {
  margin-top: var(--s-3);
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  letter-spacing: .16em; line-height: 1;
  color: rgba(181, 207, 224, .16);
  user-select: none;
}
.footer__tag { margin-top: var(--s-2); color: var(--color-text-soft); font-size: var(--fs-sm); }

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 1.8vw, 1.15rem);
  margin-top: var(--s-5);
}

.footer__social-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 207, 224, 0.22);
  color: var(--mist-200);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.footer__social-btn svg {
  width: 20px;
  height: 20px;
  transition: transform .25s ease;
}

.footer__social-btn:hover {
  background: rgba(0, 84, 135, 0.3);
  border-color: rgba(181, 207, 224, 0.65);
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 12px 28px -4px rgba(0, 84, 135, 0.6),
    0 0 18px rgba(0, 197, 252, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.footer__social-btn:active {
  transform: translateY(0) scale(0.95);
}

.footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  width: 100%;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-mute);
  font-size: var(--fs-label);
  letter-spacing: .12em; text-transform: uppercase;
}
.footer__top {
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color var(--d-mid) var(--e-out);
}
.footer__top:hover { color: var(--color-accent); }

/* ── 17b. PERFORMANCE ──────────────────────────────────────────────────────
   Skip rendering + paint for heavy sections while they are off-screen. The
   `auto` intrinsic keyword lets the browser remember each section's real height
   after first paint, so there is no scrollbar jump. Deliberately NOT applied to
   the pinned system section or the JS-measured work reel. */
.services,
.experience,
.plans,
.testimonials-compact,
.footer {
  content-visibility: auto;
}
/* Per-section placeholder heights, close to real so the first reveal never
   jumps. `auto` then remembers each section's true height after it paints. */
.services             { contain-intrinsic-size: auto 1200px; }
.experience           { contain-intrinsic-size: auto 600px; }
.plans                { contain-intrinsic-size: auto 1150px; }
.testimonials-compact { contain-intrinsic-size: auto 500px; }
.footer                { contain-intrinsic-size: auto 620px; }

/* ── 18. RESPONSIVE ────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__toggle { display: grid; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__brand { justify-self: start; }
}

@media (max-width: 900px) {
  .system__stage { height: auto; }
  .system__sticky { position: static; height: auto; display: block; padding-block: var(--s-2) var(--s-6); }
  .system__wave { height: auto; }
  .system__line, .system__pulse { display: none; }
  .system__nodes {
    position: static;
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: .4rem;
    height: auto;
  }
  .sysnode { position: static; transform: none; }
  .sysnode__hit { width: 60px; height: 60px; }
  .sysnode__ring { inset: 6px; }
  .sysnode__num { display: none; }
  .system__panels { margin-top: var(--s-4); min-height: 200px; }
}

@media (max-width: 480px) {
  /* Keep all five stages on one row (still a 54px touch target) */
  .sysnode__hit { width: 54px; height: 54px; }
  .sysnode__ring { inset: 4px; }
  .system__nodes { gap: .25rem; }
  .system__panels { min-height: 190px; }
}

@media (max-width: 720px) {
  :root { --fs-label: .625rem; }
  .hero { min-height: auto; padding-block: 7.5rem 4rem; }
  .hero__media { margin-top: var(--s-8); }
  .scroll-hint { display: none; }
  .work-card__media { aspect-ratio: 3 / 2; }
  .footer__base { flex-direction: column; gap: var(--s-2); }
}

@media (max-width: 420px) {
  .btn { padding: 0 1.35rem; }
  .pill { padding: 0 1.15rem; font-size: .875rem; }
}

/* Coarse pointers: no hover-dependent affordances, no custom cursor */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: auto; }
  .work-card:hover { transform: none; }
  .work__track:hover .work-card:not(:hover) { opacity: 1; }
  .svc:hover, .plan:hover, .exp-card:hover, .proof-card:hover { transform: none; }

  /* Native momentum scrolling with gentle snapping instead of pointer drag */
  .work__track {
    cursor: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .work-card { scroll-snap-align: center; }

  /* Mobile GPUs pay the most for live blur. Swap backdrop-filters for solid
     translucent fills, which look identical on these dark surfaces. */
  .svc, .plan, .sysnode__ring, .plan__popular, .exp-card, .proof-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .svc  { background: rgba(8, 30, 50, .62); }
  .plan { background: linear-gradient(180deg, rgba(20, 46, 68, .5), rgba(10, 30, 48, .42)); }
  .plan__popular { background: rgba(4, 34, 58, .95); }
}

/* ── 19. REDUCED MOTION ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .split-line__inner { transform: none !important; }

  .system__stage { height: auto; }
  .system__sticky { position: static; height: auto; display: block; }
  .syspanel { position: static; opacity: 1; transform: none; filter: none; }
  .system__panels { display: flex; flex-direction: column; gap: var(--s-6); }
  .system__wave { height: auto; }
  .system__line, .system__pulse { display: none; }
  .system__nodes { position: static; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; height: auto; }
  .sysnode { position: static; transform: none; }
  .preloader { display: none; }
}

