/* ============================================================
   MEBA — Metals of Bahrain · Shared site stylesheet
   ============================================================ */

:root {
  /* MEBA purple system */
  --purple: #511f74;
  --purple-700: #3e1759;
  --purple-500: #6a2a96;
  --purple-300: #a472c6;
  --purple-100: #e9dcf3;
  --purple-50:  #f6f0fb;

  --bg-0: #ffffff;
  --bg-1: #faf8fc;
  --bg-2: #f3eef8;
  --line:   rgba(81, 31, 116, 0.10);
  --line-2: rgba(81, 31, 116, 0.18);

  --ink-0: #1a0f24;
  --ink-1: #4a3a5b;
  --ink-2: #76688a;
  --ink-3: #a89cb8;

  --glow: 81, 31, 116;

  /* Industrial / editorial type system */
  --serif:     "Archivo", system-ui, sans-serif;   /* display / headings */
  --editorial: "Newsreader", Georgia, serif;        /* italic accent words */
  --sans:      "Hanken Grotesk", system-ui, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, monospace;

  /* Placeholder / TODO accent (amber) */
  --todo:      #b45309;
  --todo-line: #f59e0b;
  --todo-bg:   #fff7ed;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--ink-0); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body {
  overflow-x: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(81, 31, 116, 0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(81, 31, 116, 0.05), transparent 60%),
    var(--bg-0);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(81, 31, 116, 0.25); color: var(--purple-700); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  font-weight: 600;
  /* ShinyText */
  background-image: linear-gradient(
    105deg,
    var(--purple) 0%,
    var(--purple) 38%,
    #c084fc 50%,
    var(--purple) 62%,
    var(--purple) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eyebrow-shine 2.8s linear infinite;
}
@keyframes eyebrow-shine {
  from { background-position: 150% center; }
  to   { background-position: -50% center; }
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--purple), transparent);
  vertical-align: middle;
  margin-right: 10px;
  position: relative;
  top: -2px;
}
/* Override shiny for dark-bg sections */
.about-video-bg .eyebrow {
  background-image: linear-gradient(
    105deg,
    var(--purple-300) 0%,
    var(--purple-300) 38%,
    #fff 50%,
    var(--purple-300) 62%,
    var(--purple-300) 100%
  );
}
.about-video-bg .eyebrow::before {
  background: linear-gradient(90deg, var(--purple-300), transparent);
}
[data-screen-label="Divisions / Process"] .eyebrow {
  background-image: linear-gradient(
    105deg,
    var(--purple-100) 0%,
    var(--purple-100) 38%,
    #fff 50%,
    var(--purple-100) 62%,
    var(--purple-100) 100%
  );
  opacity: 1;
}


.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
  color: var(--ink-0);
  text-wrap: balance;
  text-align: center;
}
.section-sub {
  margin-top: 18px;
  max-width: 640px;
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ---------- Nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-0);
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.logo.foot img { height: 56px; }
/* The bundled "SVG" logo is actually two stacked raster layers (a legacy mask hack)
   which some mobile browsers render slightly soft. Swap to a clean single-layer
   high-res raster on mobile only - path resolves relative to this stylesheet. */
@media (max-width: 900px) {
  .logo img { content: url('../brand/meba-logo-hq.png'); }
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; color: var(--ink-1); position: relative;
  transition: color .2s;
  font-weight: 500;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--purple); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 600; font-size: 13px;
  border: 1px solid rgba(81, 31, 116, 0.6);
  box-shadow: 0 8px 24px -8px rgba(var(--glow), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover { background: var(--purple-700); transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(var(--glow), 0.6); }
.nav-cta .arrow { transition: transform .2s; }
.nav-cta:hover .arrow { transform: translateX(2px); }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  align-items: center; justify-content: center;
  color: var(--ink-0);
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner.open + .mobile-menu { display: block; }
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu .wrap { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-0);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--purple); }
.mobile-menu .nav-cta {
  display: inline-flex; align-self: flex-start;
  margin-top: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid rgba(81, 31, 116, 0.6);
  box-shadow: 0 14px 38px -10px rgba(var(--glow), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: var(--purple-700); transform: translateY(-1px); box-shadow: 0 18px 48px -10px rgba(var(--glow), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-ghost {
  background: #fff;
  color: var(--ink-0);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--purple-50); border-color: var(--purple); color: var(--purple); }
.btn-light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.hero h1 .accent {
  font-family: var(--editorial);
  background: linear-gradient(180deg, var(--purple-500) 0%, var(--purple) 60%, var(--purple-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero p.sub {
  margin-top: 28px;
  color: var(--ink-1);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px var(--purple); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- 3D Orb (purple) ---------- */
.orb-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}
.orb-glow-bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 50% 50%, rgba(81, 31, 116, 0.30), rgba(81, 31, 116, 0.08) 30%, transparent 60%);
  filter: blur(30px);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.impeller {
  position: absolute; inset: 2%;
  animation: heroBob 8s ease-in-out infinite;
}
.impeller-canvas {
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
}
.impeller-canvas:active { cursor: grabbing; }
.impeller-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: opacity 0.6s ease;
}
.impeller-fallback img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(81, 31, 116, 0.30));
}
.impeller.r3f-loaded .impeller-fallback { opacity: 0; pointer-events: none; }
@keyframes heroBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.impeller-aura {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(81, 31, 116, 0.18) 0%, rgba(81, 31, 116, 0.06) 35%, transparent 65%);
  filter: blur(20px);
  animation: glowPulse 6s ease-in-out infinite;
}

.ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(81, 31, 116, 0.22);
  pointer-events: none;
}
.ring.r1 { inset: 5%; animation: ringSpin 30s linear infinite; }
.ring.r2 { inset: -2%; border-style: solid; border-color: rgba(81, 31, 116, 0.14); animation: ringSpin 50s linear infinite reverse; }
.ring.r3 { inset: -10%; border-color: rgba(81, 31, 116, 0.08); animation: ringSpin 80s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.spark {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--purple-300);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--purple);
  animation: floatUp 6s linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(20px) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-200px) scale(1); opacity: 0; }
}

.readout {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-2);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.readout .bar { width: 24px; height: 1px; background: rgba(81, 31, 116, 0.45); }
.readout.tl { top: 8%; left: 0; }
.readout.tr { top: 14%; right: 0; flex-direction: row-reverse; }
.readout.br { bottom: 10%; right: 4%; flex-direction: row-reverse; }
.readout.bl { bottom: 16%; left: 2%; }
.readout .val { color: var(--purple); font-weight: 500; }

/* ---------- Photo hero (home) ---------- */
.hero-photo {
  padding: 0;
  min-height: 720px;
  height: clamp(640px, 86vh, 860px);
  display: flex;
  align-items: stretch;
  background: #0b0610;
  border-bottom: 1px solid var(--line);
}
.hero-photo .hero-photo-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-photo .hero-photo-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
  /* lean toward the pour on the right */
  filter: saturate(1.08) contrast(1.05);
}
/* Left-to-right dark gradient so headline reads cleanly */
.hero-photo .hero-photo-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(8, 4, 14, 0.92) 0%,
      rgba(8, 4, 14, 0.82) 28%,
      rgba(8, 4, 14, 0.50) 52%,
      rgba(8, 4, 14, 0.18) 74%,
      rgba(8, 4, 14, 0.05) 100%),
    linear-gradient(180deg,
      rgba(8, 4, 14, 0.35) 0%,
      transparent 25%,
      transparent 70%,
      rgba(8, 4, 14, 0.55) 100%);
  pointer-events: none;
}
/* Subtle MEBA-purple tint to tie the photo into the brand */
.hero-photo .hero-photo-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 12% 35%, rgba(81, 31, 116, 0.35), transparent 60%),
    radial-gradient(900px 500px at 95% 90%, rgba(81, 31, 116, 0.20), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-photo-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  padding-top: 64px;
  padding-bottom: 140px;
}
.hero-photo .hero-photo-inner { display: flex; justify-content: center; }
.hero-photo .hero-copy { max-width: 820px; text-align: center; }
.hero-photo .hero-copy h1 { margin-left: auto; margin-right: auto; }
.hero-photo .hero-meta { justify-content: center; }
.hero-photo .hero-ctas { justify-content: center; }
.hero-photo .hero-copy p.sub { margin-left: auto; margin-right: auto; }
@media (max-width: 980px) {
  .hero-photo .hero-photo-bg img { object-position: 70% center; }
  .hero-photo .hero-photo-grad {
    background:
      linear-gradient(180deg,
        rgba(8, 4, 14, 0.88) 0%,
        rgba(8, 4, 14, 0.65) 40%,
        rgba(8, 4, 14, 0.35) 65%,
        rgba(8, 4, 14, 0.05) 100%);
  }
}

/* Light hero copy variants */
.hero-photo .hero-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.hero-photo .hero-copy h1 .accent {
  font-family: var(--serif);
  background: linear-gradient(180deg, #d6b2ec 0%, #b07ed1 60%, #8c4cb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 700;
}
.hero-photo .hero-copy p.sub {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
.hero-meta.light {
  color: rgba(255, 255, 255, 0.72);
}
.hero-meta.light .dot {
  background: var(--purple-300);
  box-shadow: 0 0 12px var(--purple-300);
}

/* Make ghost button readable on dark — swap for light variant */
.hero-photo .hero-ctas .btn-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px);
}
.hero-photo .hero-ctas .btn-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

/* Floating readout chips on right column */
.hero-readouts {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 460px;
  margin-left: auto;
  align-content: center;
}
@media (max-width: 980px) {
  .hero-readouts { max-width: none; margin-left: 0; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .hero-readouts { grid-template-columns: repeat(2, 1fr); }
}
.hero-readouts .rc {
  position: relative;
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: rgba(14, 8, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.hero-readouts .rc::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-300), var(--purple));
  opacity: 0.85;
}
.hero-readouts .rc-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hero-readouts .rc-val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex; align-items: baseline; gap: 4px;
}
.hero-readouts .rc-unit {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  margin-left: 2px;
}
.hero-readouts .rc-val.ok {
  color: #6ee7a0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.hero-readouts .ok-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6ee7a0;
  box-shadow: 0 0 10px #6ee7a0;
  animation: pulse 2s ease-in-out infinite;
}

/* Photo credit / location caption */
.hero-caption {
  position: absolute;
  left: 32px;
  bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  z-index: 3;
}
.hero-caption .hc-bar {
  width: 28px; height: 1px;
  background: rgba(255, 255, 255, 0.4);
}
@media (max-width: 720px) {
  .hero-caption { left: 20px; right: 20px; bottom: 16px; }
}

/* ---------- Cubes component ---------- */
.cubes-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.cubes-scene {
  display: grid;
  width: 100%;
  height: 100%;
  column-gap: 4%;
  row-gap: 4%;
  perspective: 9999999px;
}
.cubes-scene .cube {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
}
.cubes-scene .cube::before {
  content: '';
  position: absolute;
  inset: -20px;
}
.cubes-scene .cube-face {
  position: absolute;
  inset: 0;
  background: var(--cube-face-bg, #f0ebf7);
  border: var(--cube-face-border, 1px solid rgba(81,31,116,0.18));
}
.cubes-scene .cube-face--top    { transform: translateY(-50%) rotateX(90deg); }
.cubes-scene .cube-face--bottom { transform: translateY(50%)  rotateX(-90deg); }
.cubes-scene .cube-face--left   { transform: translateX(-50%) rotateY(-90deg); }
.cubes-scene .cube-face--right  { transform: translateX(50%)  rotateY(90deg); }
.cubes-scene .cube-face--front,
.cubes-scene .cube-face--back   { transform: rotateY(-90deg) translateX(50%) rotateY(90deg); }

/* Capabilities hero 2-col layout */
.cap-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cap-hero-cubes {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
}
@media (max-width: 900px) {
  .cap-hero-grid { grid-template-columns: 1fr; }
  .cap-hero-cubes { display: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.magnet-lines {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.magnet-lines span {
  display: block;
  transform-origin: center;
  will-change: transform;
  transform: rotate(var(--rotate, -10deg));
  transition: transform 0.15s ease-out;
  border-radius: 999px;
}
/* Mobile: the pointer-follow line grid has no equivalent on touch, and even
   scroll-driven it still doesn't read well at this size. Swap it out for a
   simple static dot texture - no JS, no motion, brand-purple, zero risk. */
@media (max-width: 900px) {
  .magnet-lines-host .magnet-lines { display: none; }
  .magnet-lines-host {
    background-image: radial-gradient(rgba(130, 80, 200, 0.28) 1.4px, transparent 1.4px) !important;
    background-size: 20px 20px !important;
    background-color: var(--bg-0);
  }
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .bg-grid { z-index: 0; }
.page-hero {
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(81, 31, 116, 0.10), transparent 60%),
    var(--bg-0);
}
.page-hero .crumbs {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.page-hero .crumbs a:hover { color: var(--purple); }
.page-hero .crumbs .sep { opacity: 0.5; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 900px;
  text-wrap: balance;
}
.page-hero h1 .accent {
  font-family: var(--editorial);
  background: linear-gradient(to right,
    #511f74, #8b3cc4, #c9a0e0, #8b3cc4, #511f74, #8b3cc4, #c9a0e0
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
  animation: hero-accent-shift 5s ease-in-out infinite alternate;
  padding-right: 0.12em;
  margin-right: -0.12em;
  padding-left: 0.06em;
  margin-left: -0.06em;
}
@keyframes hero-accent-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.page-hero p.lead {
  margin-top: 22px;
  color: var(--ink-1);
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.page-hero p.lead.fade-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Stats bar ---------- */
/* ── Vision & Mission ─────────────────────────────────── */
.vm-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}
.eyebrow.no-dash::before { display: none; }
.section-sub-italic {
  font-size: clamp(16px, 1.8vw, 22px);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-1);
  line-height: 1.5;
  margin: 8px 0 0;
}
.vm-panel {
  padding: clamp(56px, 7vw, 100px) clamp(40px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  min-height: 340px;
}
.vm-panel::before {
  content: '\201C';
  position: absolute;
  top: 24px;
  right: 36px;
  font-family: var(--serif);
  font-size: 180px;
  line-height: 1;
  opacity: 0.07;
  color: #fff;
  pointer-events: none;
  user-select: none;
}
.vm-panel--vision {
  background: var(--ink-0);
  color: #fff;
}
.vm-panel--mission {
  background: var(--purple);
  color: #fff;
}
.vm-panel-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 1;
}
.vm-panel-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--purple);
  flex-shrink: 0;
}
.vm-panel--mission .vm-panel-label::before {
  background: rgba(255,255,255,0.5);
}
.vm-panel-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
  opacity: 0.85;
}
/* ── VM animations ── */
.vm-panel {
  overflow: hidden;
}
.vm-panel-label,
.vm-panel-quote {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.vm-panel-label { transition-delay: 0.1s; }
.vm-panel-quote { transition-delay: 0.25s; }
.vm-panel.vm-animated .vm-panel-label,
.vm-panel.vm-animated .vm-panel-quote {
  opacity: 1;
  transform: none;
}
.vm-panel.vm-animated .vm-panel-quote { opacity: 0.85; }
.vm-panel-num {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  line-height: 1;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 680px) {
  .vm-section { grid-template-columns: 1fr; }
}

/* ── Clients & Partners marquee ───────────────────────── */
.clients-band {
  overflow: hidden;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.clients-band-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.clients-band-label {
  text-align: center;
}
.clients-band-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-1);
  text-align: center;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.5;
}

/* Section eyebrow subtitle — matches section-sub-italic */
.section-eyebrow-sub {
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--ink-1);
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}
.clients-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.clients-track-wrap {
  overflow: hidden;
  position: relative;
}
.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.clients-track-wrap::before { left: 0;  background: linear-gradient(to right, var(--bg-1), transparent); }
.clients-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg-1), transparent); }
.clients-track {
  display: flex;
  gap: 0;
  width: max-content;
}
.clients-track--fwd { animation: clients-scroll-fwd 35s linear infinite; }
.clients-track--rev { animation: clients-scroll-rev 42s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
@keyframes clients-scroll-fwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes clients-scroll-rev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.client-logo {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  padding: 12px 48px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.25s, opacity 0.25s;
}
.client-logo:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}
/* Touch devices have no persistent hover, so the dim/grayscale state never lifts - show full colour always on mobile */
@media (max-width: 720px) {
  .client-logo { filter: none; opacity: 1; }
}
.client-name {
  white-space: nowrap;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
  line-height: 1;
  display: flex;
  align-items: center;
}
.client-name:first-child { border-left: 1px solid var(--line); }

/* ── Stats ─────────────────────────────────────────────── */
.stats {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--purple);
}
.stat-num .accent { color: var(--purple); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }

/* ---------- Section header ---------- */
.section-head {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-bottom: 56px;
  text-align: center;
}
.section-head .right { color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.section-head .right .btn { font-family: var(--sans); text-transform: none; letter-spacing: normal; }
@media (max-width: 720px) { .section-head { gap: 12px; } }

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .card-grid, .card-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 18px 40px -22px rgba(var(--glow), 0.35);
}
.card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 500;
  margin: 0; letter-spacing: -0.01em; color: var(--ink-0);
}
.card p {
  color: var(--ink-1);
  font-size: 13.5px; line-height: 1.6;
  margin: 8px 0 0;
}
.card .num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.15em;
}
.card .more {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--purple); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
}
.card .more svg { transition: transform .2s; }
.card:hover .more svg { transform: translateX(3px); }

/* ---------- Capability cards (with photo media strip) ---------- */
.capability-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
  justify-content: flex-start;
}
.capability-card .num {
  z-index: 2;
  top: 14px; right: 16px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 4, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a0a26;
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.capability-card:hover .card-media img { transform: scale(1.04); }
.card-media .ico {
  position: absolute;
  left: 16px;
  bottom: -22px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--purple-100);
  color: var(--purple);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(var(--glow), 0.45);
  z-index: 2;
}
.card-media .ico svg { width: 22px; height: 22px; }
.capability-card > div:last-child {
  padding: 24px 28px 28px;
}
.capability-card h3 { margin-top: 0; }

/* ---------- Products grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products { grid-template-columns: 1fr; } }

.product {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--purple);
  border: 1px solid transparent;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: pointer;
  display: block;
}
.product:nth-child(odd) { background: var(--purple-700); }
.product:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -22px rgba(var(--glow), 0.55); }
.product img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.product:hover img { transform: scale(1.04); }
.product .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.product .label .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s, transform .3s, background .3s;
  flex-shrink: 0;
}
.product:hover .label .arrow { opacity: 1; transform: translateX(0); background: rgba(255, 255, 255, 0.32); }
.product .corner {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.products-cta {
  margin-top: 40px;
  display: flex; justify-content: center;
}

/* ---------- About / ScrollStack ---------- */
.about { background: var(--bg-1); }

.about-video-bg {
  position: relative;
  overflow: hidden;
  background: #160826;
}
.about-bg-video {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: contain;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
  transform: scale(0.7);
  transform-origin: center center;
}
.about-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #160826 0%, rgba(22,8,38,0.55) 12%, rgba(22,8,38,0.55) 88%, #160826 100%);
  z-index: 1;
  pointer-events: none;
}
.about-video-bg .wrap { position: relative; z-index: 2; }

/* Dark section text overrides */
.about-video-bg .eyebrow { color: var(--purple-300); }
.about-video-bg .section-title { color: #fff; }
.about-video-bg .section-sub { color: rgba(255,255,255,0.72); }
.about-video-bg .section-sub-italic { color: rgba(255,255,255,0.85); }

/* Dark section scroll-stack card overrides */
.about-video-bg .scroll-stack-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(199,130,250,0.18);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.about-video-bg .ss-year { color: var(--purple-300); }
.about-video-bg .ss-heading { color: #fff; }
.about-video-bg .ss-body { color: rgba(255,255,255,0.65); }

/* 2-col layout: sticky text left, scroll-stack right */
.about-ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-ss-left {
  position: sticky;
  top: 22vh;
  padding: 80px 0;
}
.about-ss-right { min-height: 100%; }

/* Scroll-stack mechanics */
.scroll-stack-section {
  padding: 24px 0 80px;
  position: relative;
}
.scroll-stack-inner { position: relative; }
.scroll-stack-end { width: 100%; height: 1px; }

.scroll-stack-card {
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(81,31,116,0.07), 0 1px 4px rgba(81,31,116,0.04);
  overflow: hidden;
  transform-origin: top center;
  will-change: transform;
  position: relative;
}
.ss-card-body {
  padding: 40px 44px 44px;
}
.ss-year {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--purple-100);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.ss-heading {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--ink-0);
  line-height: 1.2;
  margin: 0 0 12px;
}
.ss-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-1);
  margin: 0;
}

@media (max-width: 900px) {
  .about-ss-grid { grid-template-columns: 1fr; gap: 0; }
  .about-ss-left { position: static; padding: 64px 0 32px; }
  .scroll-stack-section { padding-bottom: 320px; }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 56px; } }
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--purple), rgba(81, 31, 116, 0.12));
}
.milestone { position: relative; padding-bottom: 36px; }
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: "";
  position: absolute; left: -27px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--purple);
  box-shadow: 0 0 14px rgba(var(--glow), 0.4);
}
.milestone .year {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--purple);
  text-transform: uppercase; font-weight: 500;
}
.milestone h4 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500; margin: 6px 0 8px;
  letter-spacing: -0.01em; color: var(--ink-0);
}
.milestone p { color: var(--ink-1); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Values ---------- */
.values-ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.values-ss-left { max-width: 480px; }
.about-ss-left .eyebrow,
.values-ss-left .eyebrow { text-align: left; font-size: clamp(22px, 2.6vw, 34px); }
.about-ss-left .section-sub-italic,
.values-ss-left .section-sub-italic,
.about-ss-left .section-sub,
.values-ss-left .section-sub { text-align: left; }
.values-ss-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stack component */
.stack-container {
  position: relative;
  width: 640px;
  height: 420px;
  perspective: 600px;
}
.card-rotate {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transform-origin: 90% 90%;
  user-select: none;
}
.stack-card {
  width: 100%;
  height: 100%;
  padding: 36px 40px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--purple);
  background: var(--bg-0);
  box-shadow: 0 4px 24px rgba(81,31,116,0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  transition: box-shadow .3s ease, transform .3s ease;
}
.card-rotate:hover .stack-card {
  box-shadow: 0 12px 48px rgba(81,31,116,0.16);
  transform: translateY(-2px);
}
/* shimmer sweep on hover */
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(199,130,250,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
}
.card-rotate:hover .stack-card::before {
  transform: translateX(100%);
  transition: transform .6s ease;
}
.stack-card::after {
  content: attr(data-num);
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-family: var(--sans);
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  color: var(--purple);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  transition: opacity .4s ease;
}
.card-rotate:hover .stack-card::after { opacity: 0.13; }
.stack-card .ix {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 18px;
}
.stack-card h4 {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-0);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.stack-card p {
  color: var(--ink-1);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 880px) {
  .values-ss-grid { grid-template-columns: 1fr; gap: 48px; padding: 64px 0; }
  .values-ss-left { max-width: 100%; margin: 0 auto; text-align: center; }
  .values-ss-left .eyebrow,
  .values-ss-left .section-sub-italic,
  .values-ss-left .section-sub { text-align: center; }
  .values-ss-left .btn { margin-left: auto; margin-right: auto; }
  .values-ss-right { justify-content: center; }
  .stack-container { width: 100%; max-width: 640px; height: 620px; }
  .stack-card { padding: 28px 24px; }
  .stack-card h4 { font-size: 24px; }
  .stack-card p { font-size: 14.5px; }
}
.value {
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.value .ix {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--purple);
  font-weight: 500;
}
.value h4 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  margin: 10px 0 10px;
  letter-spacing: -0.01em;
}
.value p {
  color: var(--ink-1);
  font-size: 14px; line-height: 1.65;
  margin: 0;
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1080px) { .process { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .process { grid-template-columns: 1fr; } }
/* Process section text overrides (dark Grainient bg) */
[data-screen-label="Divisions / Process"] .section-title,
[data-screen-label="Divisions / Process"] .section-sub,
[data-screen-label="Divisions / Process"] .eyebrow,
[data-screen-label="Divisions / Process"] .process-footer {
  color: #fff;
}
[data-screen-label="Divisions / Process"] .eyebrow { opacity: 1; }
[data-screen-label="Divisions / Process"] .section-sub { color: rgba(255,255,255,0.72); }
[data-screen-label="Divisions / Process"] .section-eyebrow-sub { color: rgba(255,255,255,0.78); }

.step {
  position: relative;
  padding: 22px 22px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.step:hover {
  border-color: rgba(192,130,250,0.7);
  box-shadow: 0 0 18px 2px rgba(160,80,230,0.35), inset 0 0 0 1px rgba(192,130,250,0.25);
}
.step .ix {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(200,160,255,0.9); font-weight: 500;
}
.step h4 {
  font-family: var(--serif);
  font-size: 17px; font-weight: 500; margin: 4px 0 4px;
  letter-spacing: -0.01em;
  color: #fff;
}
.step p { color: rgba(255,255,255,0.65); font-size: 13px; line-height: 1.55; margin: 0; }
.step::after {
  content: "→";
  position: absolute; right: -14px; top: 36px;
  color: rgba(192,130,250,0.6);
  font-family: var(--mono); font-size: 18px;
  z-index: 1;
}
.step:last-child::after { display: none; }
@media (max-width: 1080px) {
  .step::after { display: none; }
}

/* ---------- Industry detail rows ---------- */
.industry-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.industry-row:last-child { border-bottom: none; }
.industry-row.flip { grid-template-columns: 1.1fr 0.9fr; }
.industry-row.flip .ir-media { order: -1; }
@media (max-width: 880px) {
  .industry-row, .industry-row.flip { grid-template-columns: 1fr; gap: 32px; }
  .industry-row.flip .ir-media { order: 0; }
}
.industry-row .ir-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple); font-weight: 500;
}
.industry-row h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px); font-weight: 500;
  margin: 12px 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.industry-row p {
  color: var(--ink-1);
  font-size: 15px; line-height: 1.65;
  margin: 0 0 20px;
  max-width: 520px;
}
.industry-row ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.industry-row li {
  color: var(--ink-1);
  font-size: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.industry-row li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--purple);
  transform: rotate(45deg);
}
.ir-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--purple-700);
  border: 1px solid var(--line);
}
.ir-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ir-media .tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
}

/* ---------- Standards strip ---------- */
.standards {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
}
@media (max-width: 880px) { .standards-grid { grid-template-columns: repeat(2, 1fr); } }
.standard {
  text-align: center;
  padding: 18px 12px;
}
.standard .code {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  color: var(--ink-0); letter-spacing: -0.01em;
}
.standard .lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 6px;
}

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--purple);
  color: #fff;
  padding: 80px 0;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 10% 100%, rgba(164,114,198,0.35), transparent 60%),
    radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 880px) { .cta-band-inner { grid-template-columns: 1fr; gap: 28px; } }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 620px;
  text-wrap: balance;
}
.cta-band p {
  color: rgba(255,255,255,0.78);
  margin: 16px 0 0;
  font-size: 16px; line-height: 1.6;
  max-width: 520px;
}
.cta-band .ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 880px) { .cta-band .ctas { justify-content: flex-start; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.info-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-0);
}
.info-row {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.info-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  display: grid; place-items: center;
  color: var(--purple);
  flex-shrink: 0;
}
.info-ico svg { width: 16px; height: 16px; }
.info-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 4px;
}
.info-val {
  font-size: 15px;
  color: var(--ink-0);
  line-height: 1.6;
}
a.info-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}
a.info-link:hover { opacity: 0.75; }

.form-card {
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(var(--glow), 0.30);
}
.form-card::before {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(81, 31, 116, 0.10), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-2); text-transform: uppercase; font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink-0);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--glow), 0.10);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.error input, .field.error textarea, .field.error select { border-color: #c43030; background: #fff5f5; }
.field label .req { color: var(--purple); font-style: normal; }
.phone-row { display: flex; gap: 8px; }
.phone-row .phone-cc { flex: 0 0 auto; width: 118px; }
.phone-row input { flex: 1 1 0; min-width: 0; }
.field.error .phone-row input { border-color: #c43030; background: #fff5f5; }
.form-submit { margin-top: 8px; width: 100%; justify-content: center; }
.form-success {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple-700);
  font-size: 13.5px;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px;
}
.form-error {
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff5f5;
  border: 1px solid #f0c4c4;
  color: #a32626;
  font-size: 13.5px;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  background: var(--bg-1);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.foot h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-2); text-transform: uppercase; margin: 0 0 18px; font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot li { color: var(--ink-1); font-size: 13.5px; }
.foot a:hover { color: var(--purple); }
.foot-bottom {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: 0.12em;
}
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--ink-1);
  background: #fff;
  transition: border-color .2s, color .2s, background .2s;
}
.social-btn:hover { color: #fff; background: var(--purple); border-color: var(--purple); }
.social-btn svg { width: 14px; height: 14px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .impeller, .ring, .spark, .orb-glow-bg, .impeller-aura, .hero-meta .dot { animation: none !important; }
}

/* subtle grid */
.bg-grid {
  display: none;
}

/* ---------- Grades tables ---------- */
.grades-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.grades-tab {
  padding: 10px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.grades-tab:hover { color: var(--ink-1); }
.grades-tab.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
  font-weight: 600;
}
.grades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.grades-table thead th {
  background: var(--purple);
  color: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.grades-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
  line-height: 1.5;
}
.grades-table tbody tr:hover {
  background: rgba(98, 0, 234, 0.03);
}
@media (max-width: 680px) {
  .grades-table { font-size: 12px; }
  .grades-table thead th, .grades-table tbody td { padding: 9px 10px; }
}

/* ============================================================
   ADDED COMPONENTS — fact-checked rebuild
   ============================================================ */

/* ---------- Loud placeholder / TODO chip ---------- */
.todo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--todo);
  background: var(--todo-bg);
  border: 1.5px dashed var(--todo-line);
  padding: 7px 13px;
  border-radius: 7px;
  line-height: 1.3;
}
.todo::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--todo-line);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
  flex-shrink: 0;
}
.todo.block { display: inline-flex; }
.todo.big { font-size: 13px; padding: 12px 18px; }

/* ---------- Eyebrow on dark / hero-photo ---------- */

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(3n) { border-right: none; }
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background .2s ease;
}
.feature-content:hover { background: var(--purple-50); }
.feature-content strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.feature-content span {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- Capability detail cards (bulleted, grouped) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  position: relative;
  --x: 50%;
  --y: 50%;
  --r: 320px;
}
@media (max-width: 880px) { .cap-grid { grid-template-columns: 1fr; } }

/* ChromaGrid overlay layers */
.chroma-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 18px;
  backdrop-filter: grayscale(1) brightness(0.72);
  -webkit-backdrop-filter: grayscale(1) brightness(0.72);
  background: rgba(0,0,0,0.001);
  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%, transparent 15%,
    rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.22) 45%,
    rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.72) 88%, white 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%, transparent 15%,
    rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.22) 45%,
    rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.72) 88%, white 100%
  );
}
.chroma-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: 18px;
  backdrop-filter: grayscale(1) brightness(0.72);
  -webkit-backdrop-filter: grayscale(1) brightness(0.72);
  background: rgba(0,0,0,0.001);
  opacity: 1;
}
.cap {
  scroll-margin-top: 90px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cap:hover {
  border-color: rgba(130, 60, 190, 0.55);
  box-shadow: 0 0 22px 4px rgba(120, 50, 180, 0.18), 0 2px 12px rgba(0,0,0,0.06);
}
.cap .cap-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #1a0a26;
}
.cap .cap-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cap .cap-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; text-align: center; }
.cap h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  margin: 0; letter-spacing: -0.01em; color: var(--ink-0);
}
.cap ul { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.cap li {
  position: relative;
  color: var(--ink-1);
  font-size: 13.5px; line-height: 1.6;
  padding-left: 18px;
  text-align: left;
}
.cap li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.6;
}
.cap li b { color: var(--ink-0); font-weight: 600; }
.cap .cap-desc { color: var(--ink-1); font-size: 14px; line-height: 1.6; margin: 0; }

/* ── DotGrid background ─────────────────────────────────── */
.capabilities-dot-host {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.capabilities-dot-host .dot-grid__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
[data-screen-label="Home / Capabilities"] .wrap {
  position: relative;
  z-index: 1;
}


/* ---------- Spec strip (key numbers) ---------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 720px) { .spec-strip { grid-template-columns: repeat(2, 1fr); } }
.spec-cell {
  background: #fff;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.spec-cell .sv {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.spec-cell .sv .accent { color: var(--purple); }
.spec-cell .sl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- Process flow (11-step) ---------- */
.flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.flow-row-fwd { flex-direction: row; }
.flow-row-rev { flex-direction: row; }
.flow-row-fwd .fstep:last-child::after { display: none; }
.flow-row-rev .fstep:last-child::after { display: none; }
.flow .fstep {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.flow .fstep:hover {
  border-color: rgba(192,130,250,0.75);
  box-shadow: 0 0 20px 3px rgba(160,80,230,0.4), inset 0 0 0 1px rgba(192,130,250,0.2);
}
.flow .fstep .fi {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: rgba(230,200,255,1); font-weight: 700;
}
.flow .fstep h4 {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600; margin: 0;
  letter-spacing: -0.01em; line-height: 1.2; color: #fff;
}
.flow .fstep p { color: rgba(255,255,255,0.6); font-size: 12px; line-height: 1.45; margin: 0; }
.flow .fstep::after {
  content: "→";
  position: absolute; right: -8px; top: 50%;
  transform: translateY(-50%);
  color: rgba(192,130,250,0.6);
  font-family: var(--mono); font-size: 14px;
  z-index: 2;
}
.flow .fstep:last-child::after { display: none; }
.flow .fstep[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,5,30,0.96);
  border: 1px solid rgba(199,130,250,0.25);
  color: rgba(255,255,255,0.88);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
  width: 260px;
  padding: 11px 14px;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 200;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.flow .fstep[data-tip]:hover::before { opacity: 1; }

/* Mobile: the row scrolls horizontally (overflow-x:auto), which forces
   overflow-y to clip too - so a floating tooltip above the card would get
   cut off. Show the tip inline inside the card instead, expanding on tap. */
@media (max-width: 900px) {
  .flow .fstep[data-tip]::before {
    order: 99;
    position: static;
    display: block;
    width: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    color: rgba(255,255,255,0.75);
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
  }
  .flow .fstep[data-tip].tip-active::before {
    opacity: 1;
    max-height: 260px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
}

/* Mobile: the 11-step flow has no room to squeeze 5-6 cards per row -
   scroll horizontally instead, with each card wide enough for its text. */
@media (max-width: 900px) {
  .flow-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .flow-row::-webkit-scrollbar { display: none; }
  .flow .fstep {
    flex: 0 0 148px;
    min-width: 148px;
  }
}

/* ---------- Certifications strip ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
.cert {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 16px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  text-decoration: none;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.cert:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(var(--glow), 0.4); }
.cert .cert-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f3f6;
  border: 1px solid var(--line-2);
}
.cert .cert-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.cert:hover .cert-thumb img { transform: scale(1.03); }
.cert .cert-thumb::after {
  content: "View →";
  position: absolute; bottom: 8px; right: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: #fff; background: rgba(20,16,28,0.7);
  padding: 4px 8px; border-radius: 999px;
  opacity: 0; transition: opacity .25s ease;
  backdrop-filter: blur(4px);
}
.cert:hover .cert-thumb::after { opacity: 1; }
.cert .cert-code {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink-0);
}
.cert .cert-lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-top: -4px;
}

/* ---------- Client endorsements ---------- */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .endorse-grid { grid-template-columns: 1fr; } }
.endorse {
  position: relative;
  display: flex; align-items: center; gap: 22px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.endorse:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(var(--glow), 0.4); }
.endorse::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple-300), var(--purple));
}
.endorse .e-thumb {
  width: 96px; height: 124px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f4f3f6;
  border: 1px solid var(--line-2);
}
.endorse .e-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.endorse:hover .e-thumb img { transform: scale(1.04); }
.endorse .e-name {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink-0);
}
.endorse .e-kind {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple); margin-top: 6px;
}
.endorse .e-note { color: var(--ink-2); font-size: 13px; margin-top: 8px; line-height: 1.5; }

/* ---------- Alloy chips ---------- */
/* keep old chip styles for anything else using them */
.alloy-wrap { display: flex; flex-direction: column; gap: 24px; }
.alloy-group .ag-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.alloy-group .ag-head::after {
  content: ""; flex: 1; height: 1px; background: var(--line-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink-0); background: #fff;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-50); }
.chip.count { background: var(--purple); color: #fff; border-color: var(--purple); }
.chip[data-tip] { position: relative; }
.chip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-0);
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  width: 220px;
  padding: 9px 13px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 100;
  text-align: left;
}
.chip[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink-0);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 100;
}
.chip[data-tip]:hover::after,
.chip[data-tip]:hover::before { opacity: 1; }

/* -------- Materials section redesign -------- */
.materials-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0 0;
}
.mat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 60px;
}
@media (max-width: 820px) { .mat-layout { grid-template-columns: 1fr; gap: 36px; } }
.mat-heading { font-size: clamp(28px, 3.5vw, 46px); }
.mat-count { display: inline-block; tabular-nums: 1; font-variant-numeric: tabular-nums; }
.mat-plus { color: var(--purple); }

/* ---- StarBorder alloy tags ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

.atag {
  display: inline-block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: default;
  user-select: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.atag.atag-in { opacity: 1; transform: translateY(0); }

.atag .sb-bottom {
  position: absolute;
  width: 300%; height: 50%;
  opacity: 0.7;
  bottom: -11px; right: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple), transparent 10%);
  animation: star-movement-bottom 6s linear infinite alternate;
  z-index: 0;
}
.atag .sb-top {
  position: absolute;
  width: 300%; height: 50%;
  opacity: 0.7;
  top: -11px; left: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple), transparent 10%);
  animation: star-movement-top 6s linear infinite alternate;
  z-index: 0;
}
.atag .sb-inner {
  position: relative;
  z-index: 1;
  background: rgba(98, 0, 234, 0.08);
  border: 1px solid rgba(98, 0, 234, 0.25);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  overflow: hidden;
}
.atag .sb-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.55) 50%,
    transparent 70%
  );
  transform: translateX(-150%);
  transition: transform 0s;
  pointer-events: none;
}
.atag:hover .sb-inner::after {
  transform: translateX(150%);
  transition: transform 0.5s ease;
}

@keyframes star-movement-bottom {
  0%   { transform: translate(0%, 0%);    opacity: 1; }
  100% { transform: translate(-100%, 0%); opacity: 0; }
}
@keyframes star-movement-top {
  0%   { transform: translate(0%, 0%);   opacity: 1; }
  100% { transform: translate(100%, 0%); opacity: 0; }
}

/* ---- Stats bar redesign ---- */
.mat-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(135deg, #1a0a2e 0%, #12082a 50%, #1e0d38 100%);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 0;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.07);
}
@media (max-width: 720px) {
  .mat-stats { grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .mstat { padding: 24px 20px 22px; gap: 8px; }
  .mstat-num { font-size: clamp(30px, 8vw, 40px); }
  .mstat-label { font-size: 10.5px; letter-spacing: 0.08em; line-height: 1.5; }
  .mstat::before { left: 20px; right: 20px; }
}
.mstat-div { display: none; }
.mstat {
  padding: 24px 28px 22px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.mstat:last-child { border-right: none; }
.mstat::before {
  content: '';
  position: absolute;
  bottom: 0; left: 28px; right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  border-radius: 2px;
  opacity: 0.5;
}
.mstat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  display: flex; align-items: baseline; gap: 3px;
}
.mstat-unit {
  font-family: var(--mono);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  color: #9b59d6;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.mstat-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* ---------- Standout product card (Custom) ---------- */
.product.standout {
  background: var(--purple);
  border: 2px solid var(--purple-300);
  box-shadow: 0 22px 50px -26px rgba(var(--glow), 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  aspect-ratio: auto;
}
.product.standout::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(164,114,198,0.40), transparent 60%),
    radial-gradient(360px 220px at 0% 100%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.product.standout .so-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
}
.product.standout .so-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  padding: 4px 8px; border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px; background: rgba(0,0,0,0.18);
}
.product.standout .so-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  display: grid; place-items: center; color: #fff;
}
.product.standout .so-body { position: relative; z-index: 1; }
.product.standout h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600; color: #fff;
  margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.05;
}
.product.standout p {
  color: rgba(255,255,255,0.82);
  font-size: 14px; line-height: 1.5; margin: 0;
}
.product.standout:hover { transform: translateY(-4px); }

/* ---------- Map placeholder ---------- */
.map-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(45deg, var(--bg-2) 0 14px, var(--bg-1) 14px 28px);
  display: grid; place-items: center;
}
.map-ph .map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(81,31,116,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(81,31,116,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-ph .map-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 24px;
}
.map-ph .map-pin {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--purple-100);
  display: grid; place-items: center; color: var(--purple);
  box-shadow: 0 10px 24px -10px rgba(var(--glow), 0.4);
}

/* ---------- Industry icon cards (7) ---------- */
.ind-card {
  position: relative;
  padding: 30px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex; flex-direction: column; gap: 18px;
  align-items: center; text-align: center;
  min-height: 220px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.ind-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 18px 40px -22px rgba(var(--glow), 0.35);
}
.ind-card .ix {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-3);
}
.ind-card .ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple);
}
.ind-card .ico svg { width: 26px; height: 26px; }
.ind-card h3 {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600;
  margin: 0; letter-spacing: -0.01em; color: var(--ink-0);
}
.ind-card p { color: var(--ink-1); font-size: 14px; line-height: 1.6; margin: 0; }
.ind-card .ind-foot {
  margin-top: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   Hero load animations
   ============================================================ */

/* Video bg — hide fallback img once video loads */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; filter: saturate(1.08) contrast(1.05); }
.hero-video-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; filter: saturate(1.08) contrast(1.05); transition: opacity 0.6s; }
.hero-video:not([src=""]) ~ .hero-video-fallback { opacity: 0; }

/* Heading — each word drops in */
.hw {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(.22,.68,0,1.2), transform 0.55s cubic-bezier(.22,.68,0,1.2);
  transition-delay: calc(var(--wi) * 110ms + 200ms);
}
.hero-heading.animate .hw {
  opacity: 1;
  transform: translateY(0);
}

/* Subheading — typewriter cursor blink */
.hero-sub {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  white-space: normal;
}
.hero-sub.fade-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* CTAs slide up */
.hero-ctas-anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-ctas-anim.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Hero split layout (video pour visible on right)
   ============================================================ */

/* Centred video hero layout */
.hero-split { display: flex; align-items: center; justify-content: center; }
.hero-copy-left {
  max-width: 820px;
  text-align: center;
}
.hero-copy-left h1 { margin-left: auto; margin-right: auto; }
.hero-copy-left p.sub { margin-left: auto; margin-right: auto; max-width: 600px; }
.hero-copy-left .hero-ctas { justify-content: center; }

/* Override the left-to-right gradient so pour is visible on right */
.hero-photo .hero-photo-grad {
  background:
    linear-gradient(90deg,
      rgba(8, 4, 14, 0.96) 0%,
      rgba(8, 4, 14, 0.88) 32%,
      rgba(8, 4, 14, 0.55) 55%,
      rgba(8, 4, 14, 0.15) 75%,
      rgba(8, 4, 14, 0.0) 100%),
    linear-gradient(180deg,
      rgba(8, 4, 14, 0.25) 0%,
      transparent 20%,
      transparent 75%,
      rgba(8, 4, 14, 0.45) 100%) !important;
}

/* Video object-position: centre on the pour (right half of frame) */
.hero-video {
  object-position: 70% center !important;
}

/* Mobile: revert to centred stacked */
@media (max-width: 860px) {
  .hero-split { justify-content: center; }
  .hero-copy-left { max-width: 100%; text-align: center; }
  .hero-copy-left h1 { margin-left: auto; margin-right: auto; }
  .hero-copy-left p.sub { margin-left: auto; margin-right: auto; }
  .hero-copy-left .hero-ctas { justify-content: center; }
  .hero-video,
  .hero-photo .hero-photo-bg img { object-position: 85% center !important; }
  /* Reserve enough room below the copy for the taller 2-row mobile stats bar
     so it doesn't overlap/clip the CTA buttons */
  .hero-photo { min-height: 780px; height: clamp(720px, 92vh, 900px); }
  .hero-photo-inner { padding-top: 48px; padding-bottom: 220px; }
}

/* ============================================================
   Specificity fix — override .hero-photo .hero-photo-inner centring
   ============================================================ */
.hero-photo .hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo .hero-copy-left {
  max-width: 820px;
  text-align: center;
}
.hero-photo .hero-copy-left h1 {
  margin-left: auto;
  margin-right: auto;
}
.hero-photo .hero-copy-left p.sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}
.hero-photo .hero-copy-left .hero-ctas {
  justify-content: center;
}

/* ============================================================
   Hero-integrated stats bar
   ============================================================ */
.hero-stats-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(8, 4, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
  gap: 0;
}
.hstat {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.09);
}
.hstat:last-child { border-right: none; }
.hstat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.hstat-num.accent { color: var(--purple-300); }
.hstat-text {
  font-size: clamp(18px, 1.9vw, 28px);
}
.hstat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

@media (max-width: 720px) {
  .hero-stats-grid { grid-template-columns: repeat(2,1fr); }
  .hstat { padding: 14px 18px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.09); }
  .hstat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.09); }
  .hstat:last-child, .hstat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* ============================================================
   Industries — split list + image panel
   ============================================================ */
.industries-split { padding: 120px 0; }

.ind-split-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

/* List */
.ind-split-list {
  border-top: 1px solid var(--line);
}
.isl-row {
  display: grid;
  grid-template-columns: 44px 1fr auto 20px;
  align-items: center;
  gap: 0 20px;
  padding: 22px 8px 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: background .2s, box-shadow .25s cubic-bezier(.4,0,.2,1);
  box-shadow: inset 3px 0 0 transparent;
}
.isl-row.is-active,
.isl-row:hover { background: var(--purple-50); }
.isl-row.is-active,
.isl-row:hover { box-shadow: inset 3px 0 0 var(--purple); }

.isl-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  padding-left: 12px;
  transition: color .2s;
}
.isl-row.is-active .isl-num,
.isl-row:hover .isl-num { color: var(--purple); }

.isl-name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  transition: color .2s;
}
.isl-row.is-active .isl-name,
.isl-row:hover .isl-name { color: var(--purple-700); }

.isl-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .2s;
}
.isl-row.is-active .isl-tag,
.isl-row:hover .isl-tag { color: var(--purple-300); }

.isl-arrow {
  color: var(--ink-3);
  transform: translateX(-4px);
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}
.isl-row.is-active .isl-arrow,
.isl-row:hover .isl-arrow { color: var(--purple); transform: translateX(0); }

/* Image panel */
.ind-split-img {
  position: sticky;
  top: 100px;
}
.isp-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--purple-700);
  box-shadow: 0 32px 64px -24px rgba(81,31,116,0.35);
}
.isp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .45s ease, transform .45s ease;
}
.isp-img.is-active {
  opacity: 1;
  transform: scale(1);
}
.isp-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 24px 22px;
  background: linear-gradient(0deg, rgba(30,10,50,0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.isp-label-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.isp-label-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 960px) {
  .ind-split-body { grid-template-columns: 1fr; gap: 40px; }
  .ind-split-img { position: static; }
  .isp-frame { aspect-ratio: 16/7; }
  .isl-tag { display: none; }
}

/* Molten scroll beam */
.scroll-beam {
  position: fixed;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  background: rgba(255,255,255,0.04);
}
.scroll-beam-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg,
    #ff8c00 0%,
    #ffb830 40%,
    #ff6a00 80%,
    #e63800 100%
  );
  box-shadow: 0 0 6px 1px rgba(255,130,0,0.55);
  transition: height 0.08s linear;
  border-radius: 0 0 2px 2px;
}
.scroll-beam-tip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe0a0;
  box-shadow: 0 0 8px 3px rgba(255,160,30,0.8), 0 0 2px 1px #fff;
  transition: top 0.08s linear;
  top: 0%;
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6), 0 4px 12px rgba(0,0,0,0.22);
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.18), 0 0 0 0 rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.18), 0 0 0 10px rgba(37,211,102,0); }
}
.wa-float { animation: wa-pulse 2.5s ease-in-out infinite; }
.wa-float:hover { animation: none; }

/* ============================================================
   PrismaticBurst hero (contact page) — full background
   ============================================================ */
.contact-pb-hero {
  background: #08000f;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.prismatic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.prismatic-bg canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.prismatic-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(8,0,15,0.55) 0%,
    rgba(20,4,40,0.35) 50%,
    rgba(8,0,15,0.65) 100%
  );
}
.accent-light {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(to right, #e0b4ff, #fff, #c084fc, #e0b4ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-accent-shift 5s ease-in-out infinite alternate;
  padding-right: 0.12em;
  margin-right: -0.12em;
}

/* map embed */
.map-embed iframe { box-shadow: 0 8px 32px -8px rgba(0,0,0,0.15); }

/* ============================================================
   Division detail pages (/divisions/*)
   ============================================================ */
.div-hero {
  width: 100%;
  height: clamp(260px, 42vw, 540px);
  overflow: hidden;
  display: block;
  margin-top: 0;
}
.div-hero img,
.div-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.div-intro {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.div-intro .crumbs { margin-bottom: 18px; }
.div-intro h1 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--ink-0);
  margin: 0 0 18px;
  max-width: 640px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.div-intro p {
  font-size: 17px;
  color: var(--ink-1);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 0 28px;
}
.div-intro .div-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.div-intro .div-spec-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 100px;
  padding: 5px 14px;
}
/* Equipment list */
.equip-heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 36px 0 16px;
}
.equip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 640px;
}
.equip-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  min-width: 0;
}
.equip-list li:last-child { border-bottom: 1px solid var(--line); }
.equip-list .el-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-0);
  padding-right: 20px;
  line-height: 1.5;
  min-width: 0;
}
.equip-list .el-desc {
  font-size: 13.5px;
  color: var(--ink-1);
  line-height: 1.6;
  min-width: 0;
}
@media (max-width: 600px) {
  .equip-list li { grid-template-columns: 1fr; gap: 4px; }
}
/* Break up the long flat run of stacked text on mobile division pages:
   give the equipment list its own tinted card instead of sitting flush
   against the intro text with no visual separation. */
@media (max-width: 900px) {
  .equip-list {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 4px 16px;
    max-width: none;
  }
  .equip-list li { border-top: 1px solid var(--line); padding: 16px 0; }
  .equip-list li:first-child { border-top: none; }
  .equip-list li:nth-child(even) {
    background: rgba(81,31,116,0.035);
  }
}

/* Gallery */
.div-gallery { padding: 40px 0 56px; }
.div-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 28px;
}
.div-gallery-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.div-gallery-grid--3 .div-gallery-slot {
  aspect-ratio: 3/4;
}
.div-gallery-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.div-gallery-grid--4 .div-gallery-slot {
  aspect-ratio: 3/4;
}
.div-gallery-slot {
  aspect-ratio: 9/16;
  background: var(--bg-1);
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color .2s;
  overflow: hidden;
}
.div-gallery-slot svg { opacity: 0.3; width: 20px; height: 20px; }
.div-gallery-slot.has-img {
  border: none;
  padding: 0;
}
.div-gallery-slot.has-img img,
.div-gallery-slot.has-img video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.div-gallery-slot.has-img:hover img,
.div-gallery-slot.has-img:hover video { transform: scale(1.04); }
/* Cap card link */
.cap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  transition: gap .2s;
}
.cap-link:hover { gap: 10px; }

/* Stretched link — makes the whole .cap card clickable */
.cap { position: relative; cursor: pointer; }
.cap-link { position: relative; z-index: 1; }
.cap-link::after { content: ''; position: absolute; inset: -9999px; }

/* Division page two-column layout */
.div-intro-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
}
.div-intro-main { min-width: 0; }
.div-sidebar {
  position: sticky;
  top: 96px;
}
.div-sidebar > .equip-heading { margin-bottom: 12px; }
.div-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.div-sidebar-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.div-sidebar-card:hover {
  border-color: rgba(130,60,190,0.45);
  box-shadow: 0 4px 16px rgba(100,40,160,0.12);
  transform: translateY(-2px);
}
.dsb-thumb {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #1a0a26;
}
.dsb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.div-sidebar-card:hover .dsb-thumb img { transform: scale(1.06); }
.dsb-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-0);
  line-height: 1.3;
  padding: 9px 12px 10px;
}
@media (max-width: 900px) {
  .div-intro-layout { grid-template-columns: 1fr; }
  .div-sidebar {
    position: static;
    margin-top: 40px;
    min-width: 0;
  }
  .div-sidebar-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
  }
  .div-sidebar-list::-webkit-scrollbar { display: none; }
  .div-sidebar-card {
    flex: 0 0 160px;
  }
  .dsb-thumb { aspect-ratio: 4 / 3; }
}

@media (max-width: 1024px) {
  .div-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .div-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .div-hero { height: clamp(200px, 55vw, 320px); }
}
@media (max-width: 480px) {
  .div-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ====== PRODUCT GRID (homepage) ====== */
.prod-grid-section {
  background: var(--purple-700);
  padding: 0;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.prod-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.07);
  transition: background .2s;
  perspective: 600px;
}

/* Checkerboard alternating shades */
.prod-tile:nth-child(2),
.prod-tile:nth-child(4),
.prod-tile:nth-child(5),
.prod-tile:nth-child(7) { background: var(--purple-500); }
.prod-tile:nth-child(1):hover,
.prod-tile:nth-child(3):hover,
.prod-tile:nth-child(6):hover,
.prod-tile:nth-child(8):hover { background: var(--purple-500); }
.prod-tile:nth-child(2):hover,
.prod-tile:nth-child(4):hover,
.prod-tile:nth-child(5):hover,
.prod-tile:nth-child(7):hover { background: var(--purple-700); }
.prod-tile img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  transition: transform .6s ease;
}
.prod-tile:hover img {
  transform: scale(1.08) translateY(-6px);
}
.prod-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 40%, transparent 70%);
  pointer-events: none;
}
.prod-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  border-left: 3px solid var(--purple-300);
  z-index: 1;
}
@media (max-width: 900px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-tile img { width: 60%; height: 60%; }
  .prod-tile-label { font-size: 9px; padding: 10px 12px; }
}
/* Safari/iOS renders filter: drop-shadow() on an <img> with an SVG source by
   flattening its transparency to opaque black - swap to a non-filter shadow. */
@media (max-width: 900px) {
  .prod-tile img {
    filter: none;
    -webkit-filter: none;
  }
}

/* ====== PROJECT CARDS ====== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
}
.project-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(var(--glow), 0.18);
  border-color: var(--purple-300);
}
.project-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}
.project-card-media img:not(.project-card-logo) {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.project-card:hover .project-card-media img:not(.project-card-logo) { transform: scale(1.04); }
.project-card-media { position: relative; }
.project-card-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 108px;
  height: 68px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 2;
}
.project-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 480px) {
  .project-card-body { padding: 20px 20px 24px; }
}
.project-card-meta {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-0);
  font-weight: 700;
}
.project-card h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0;
  color: var(--ink-2);
}
.project-card p {
  color: var(--ink-1);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.project-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--purple-50);
  color: var(--purple);
  border: 1px solid var(--purple-100);
  font-weight: 500;
}

/* ====== MAGNET LINES ====== */
.magnet-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
}
.magnet-lines span {
  display: block;
  width: 1.2px;
  height: clamp(18px, 3vmin, 32px);
  background: var(--purple-200, rgba(81,31,116,0.15));
  transform-origin: center;
  will-change: transform;
  transform: rotate(var(--rotate, -10deg));
  border-radius: 1px;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

/* ====== FACILITY PAGE ====== */
.facility-section {
  padding: 64px 0;
}
.facility-section + .facility-section {
  padding-top: 0;
}
.facility-section-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 0 0 28px;
  color: var(--ink-0);
}
.facility-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 880px) {
  .facility-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .facility-gallery-grid { grid-template-columns: 1fr; }
}
.facility-gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.facility-gallery-item img,
.facility-gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.facility-gallery-item:hover img,
.facility-gallery-item:hover video {
  transform: scale(1.04);
}
