/* ==========================================================================
   SemperWise Technologies — site.css
   Always Wise. Always Ahead.
   Palette derived from the brand mark: deep navy base, teal/cyan accent,
   gold secondary. No frameworks, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #050b1a;
  --navy-850: #071125;
  --navy-800: #0a1730;
  --navy-700: #12234a;
  --navy-600: #1b3a7a;
  --ink:      #0d1b3e;
  --teal:     #17b8c4;
  --cyan:     #3fd8e8;
  --gold:     #d99a1e;
  --paper:    #f6f8fb;
  --paper-2:  #eef2f8;
  --muted:    #5f6f8c;
  --muted-2:  #7c8aa5;
  --line:     #dbe3ee;
  --white:    #ffffff;

  /* On-dark text */
  --on-dark:      #eaf1fb;
  --on-dark-soft: #9db0cd;
  --dark-line:    rgba(120, 170, 220, 0.16);
  --dark-card:    rgba(255, 255, 255, 0.035);

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Metrics */
  --container: min(1200px, 92vw);
  --header-h: 74px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Effects */
  --grad-accent: linear-gradient(120deg, var(--teal), var(--cyan));
  --shadow-sm: 0 2px 10px rgba(13, 27, 62, 0.06);
  --shadow-md: 0 14px 40px rgba(13, 27, 62, 0.10);
  --shadow-lg: 0 30px 70px rgba(5, 11, 26, 0.18);
  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(23, 184, 196, 0.18);
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
/* Removes the tap delay without disabling pinch-zoom. */
a, button, summary, [role="tab"] { touch-action: manipulation; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--teal);
  color: var(--navy-900);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: var(--container); margin-inline: auto; }

/* Keep content clear of notches / rounded corners in landscape. */
@supports (padding: max(0px)) {
  .container,
  .header-inner,
  .mega-inner {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

.section { padding: clamp(64px, 8vw, 116px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section--dark {
  background: var(--navy-900);
  color: var(--on-dark-soft);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 0.4em; }
.section-head p { font-size: 1.02rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.section-head--center .eyebrow { justify-content: center; }
.section--dark .eyebrow { color: var(--cyan); }
.section--dark .eyebrow::before { background: var(--cyan); }

.accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-gold {
  background: linear-gradient(120deg, var(--gold), #f0c04f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-accent);
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(23, 184, 196, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(23, 184, 196, 0.36); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.section--dark .btn-ghost,
.cta-band .btn-ghost,
.hero .btn-ghost {
  border-color: rgba(150, 200, 240, 0.32);
  color: var(--on-dark);
}
.section--dark .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.hero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm { padding: 10px 20px; font-size: 0.86rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* A cinematic scrim rather than a hard bar: the nav and the dark brand emblem
   always sit on a defined surface, but the hero still reads as full-bleed. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -34px 0;
  background: linear-gradient(180deg,
    rgba(4, 9, 22, 0.92) 0%,
    rgba(4, 9, 22, 0.74) 55%,
    rgba(4, 9, 22, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s var(--ease);
}
.site-header.is-stuck::before,
.site-header.has-open-mega::before { opacity: 0; }
.site-header.is-stuck,
.site-header.has-open-mega {
  background: rgba(5, 11, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--dark-line);
}
.site-header.has-open-mega { border-bottom-color: transparent; }
.header-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }

/* The brand emblem is a dark-navy shield on a dark header, so it gets a small
   lift + cyan halo to keep its silhouette readable. */
.brand-mark {
  width: auto;
  height: 50px;
  filter: drop-shadow(0 0 9px rgba(63, 216, 232, 0.32));
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 0 14px rgba(63, 216, 232, 0.6)) brightness(1.06);
  transform: translateY(-1px);
}
.brand--lg .brand-mark { height: 56px; }
.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  line-height: 1;
}
.brand-word em { font-style: normal; color: var(--cyan); }
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: 3px;
}

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; }

/* Top-level items — links and mega triggers share one look. */
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  background: none;
  border: 0;
  padding: 9px 14px;
  border-radius: 10px;
  position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link::after,
.nav-trigger::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link:hover::after,
.nav-trigger:hover::after,
.nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }

.chev {
  width: 8px; height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
  opacity: 0.75;
}
.nav-trigger[aria-expanded="true"] .chev { transform: translateY(1px) rotate(225deg); opacity: 1; }

/* --------------------------------------------------------------------------
   5b. Mega menu panels
   -------------------------------------------------------------------------- */
.has-mega { position: static; }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #081431 0%, #060e20 100%);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 2;
}
.mega::before {
  /* faint accent rule so the panel reads as part of the brand system */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), transparent);
  opacity: 0.55;
}
.mega.is-open { opacity: 1; transform: none; pointer-events: auto; }

.mega-inner {
  width: var(--container);
  margin-inline: auto;
  padding: 38px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}
.mega-inner--wide { grid-template-columns: 1fr; }

.mega-cols { display: grid; gap: 30px; }
.mega-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mega-cols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.mega-title {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dark-line);
}

/* Keeps every column's first link on the same baseline when a heading wraps. */
/* border-box, so the reserved height must include the 12px padding-bottom. */
.mega-cols--5 .mega-title { min-height: calc(2 * 1.4em + 12px); }

.mega-links li + li { margin-top: 3px; }
.mega-links a {
  display: block;
  padding: 9px 12px;
  margin-left: -12px;
  border-radius: 10px;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.mega-links a:hover { background: rgba(63, 216, 232, 0.09); transform: translateX(3px); }
.mega-links b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.3;
}
.mega-links small {
  display: block;
  font-size: 0.76rem;
  color: var(--on-dark-soft);
  margin-top: 3px;
  line-height: 1.45;
}
.mega-links--plain a { font-size: 0.88rem; color: var(--on-dark-soft); padding: 7px 12px; }
.mega-links--plain a:hover { color: var(--on-dark); }

.mega-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.mega-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.mega-foot {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  font-size: 0.88rem;
  color: var(--on-dark-soft);
}
.mega-foot a { color: var(--cyan); font-weight: 600; }
.mega-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Promo rail */
.mega-promo {
  background: linear-gradient(155deg, rgba(27, 58, 122, 0.55), rgba(10, 23, 48, 0.6));
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.mega-promo-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(217, 154, 30, 0.45);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  margin-bottom: 14px;
}
.mega-promo h3 { font-size: 1.16rem; color: var(--on-dark); margin-bottom: 8px; }
.mega-promo p { font-size: 0.84rem; color: var(--on-dark-soft); margin-bottom: 18px; }
.mega-promo .btn { width: 100%; justify-content: center; margin-bottom: 14px; }
.mega-promo .link-arrow { color: var(--cyan); font-size: 0.72rem; }

/* The lockup sits on dark here, so it gets the same lift as the header mark. */
.mega-promo--brand { text-align: center; }
.mega-promo--brand img {
  width: 92px;
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 12px rgba(63, 216, 232, 0.35));
}
.mega-promo-word {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  margin-bottom: 12px;
}
.mega-promo-word em { font-style: normal; color: var(--cyan); }
.mega-promo--brand p { font-size: 0.82rem; }

/* Product grid inside the Products panel */
.mega-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mega-product-grid a {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark-card);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.mega-product-grid a:hover {
  border-color: var(--cyan);
  background: rgba(63, 216, 232, 0.08);
  transform: translateY(-3px);
}
.mega-product-grid b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.96rem;
  color: var(--on-dark);
}
.mega-product-grid small {
  display: block;
  font-size: 0.73rem;
  color: var(--on-dark-soft);
  margin-top: 4px;
}

/* Dim the page behind an open panel */
.mega-scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(3, 7, 18, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 1;
}
.mega-scrim.is-open { opacity: 1; pointer-events: auto; }

.header-cta { flex: none; }

/* The demo CTA lives in the pill above 900px and inside the menu below it. */
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--on-dark);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark-soft);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(64px, 8vw, 108px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 175, 225, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 175, 225, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 780px;
  height: 780px;
  max-width: 110vw;
  background: radial-gradient(circle, rgba(23, 184, 196, 0.24), transparent 62%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  color: var(--on-dark);
  margin-bottom: 22px;
  letter-spacing: -0.035em;
}
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  max-width: 540px;
  color: var(--on-dark-soft);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* Hero visual — looping brand animation */
.hero-visual {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  width: 100%;
}

.hero-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(63, 216, 232, 0.28);
  background: var(--navy-800);
  box-shadow:
    0 0 0 1px rgba(5, 11, 26, 0.6),
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(23, 184, 196, 0.22);
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Softens the video's own edges into the navy hero rather than a hard cut. */
.hero-video-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 11, 26, 0.55), transparent 42%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(5, 11, 26, 0.45));
}

.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(150, 200, 240, 0.3);
  background: rgba(5, 11, 26, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.hero-video-frame:hover .video-toggle,
.video-toggle:focus-visible { opacity: 1; }
.video-toggle:hover { border-color: var(--cyan); background: rgba(5, 11, 26, 0.85); }

/* Pause glyph by default; becomes a play triangle when the video is stopped. */
.video-toggle-icon {
  width: 12px; height: 13px;
  border-left: 3.5px solid var(--on-dark);
  border-right: 3.5px solid var(--on-dark);
}
.video-toggle[aria-pressed="true"] .video-toggle-icon {
  width: 0; height: 0;
  border: 7px solid transparent;
  border-left: 12px solid var(--on-dark);
  border-right: 0;
  margin-left: 4px;
}

.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(10, 23, 48, 0.82);
  border: 1px solid var(--dark-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.chip-float b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--on-dark);
  line-height: 1.15;
}
.chip-float small {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.chip-float .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 184, 196, 0.18);
}
.chip-float .dot--gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 154, 30, 0.18); }
.chip-a { top: -20px; left: -26px; }
.chip-b { bottom: -20px; right: -26px; animation-delay: -3s; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.92; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* --------------------------------------------------------------------------
   7. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--navy-850);
  border-block: 1px solid var(--dark-line);
  padding: 17px 0;
  overflow: hidden;
  display: flex;
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  flex: none;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark);
  white-space: nowrap;
}
.marquee i {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* --------------------------------------------------------------------------
   8. Platform cards
   -------------------------------------------------------------------------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.platform-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.pcard {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 26px;
}
.pcard-top .tag { display: inline-flex; align-items: center; gap: 7px; }
.pcard-top .tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.pcard h3 { font-size: 1.6rem; margin-bottom: 10px; }
.pcard > p { font-size: 0.94rem; margin-bottom: 26px; }
.pcard .link-arrow { margin-top: auto; }

.pcard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}
.pcard-metrics b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--teal);
  line-height: 1.1;
}
.pcard-metrics small {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-top: 4px;
}

/* Flagship card */
.pcard--flag {
  background: linear-gradient(150deg, var(--navy-600), var(--navy-800) 55%, var(--navy-900));
  border-color: transparent;
  color: var(--on-dark-soft);
  box-shadow: var(--shadow-lg);
}
.pcard--flag h3 { color: var(--white); }
.pcard--flag .pcard-top { color: rgba(234, 241, 251, 0.75); }
.pcard--flag .pcard-top .tag::before { background: var(--cyan); }
.pcard--flag .pcard-metrics { border-top-color: rgba(255, 255, 255, 0.16); }
.pcard--flag .pcard-metrics b { color: var(--cyan); }
.pcard--flag .pcard-metrics small { color: rgba(234, 241, 251, 0.6); }
.pcard--flag .link-arrow { color: var(--cyan); }

/* Module chip cloud */
.modules {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}
.modules h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-family: var(--font-body);
  margin-bottom: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.82rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease), background 0.2s var(--ease);
}
.chips li:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.section--paper .chips li { background: var(--white); }

/* --------------------------------------------------------------------------
   9. Pillars
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.pillar {
  padding: 30px 24px 34px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.3s var(--ease);
}
.pillar:last-child { border-right: 0; }
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.pillar:hover { background: var(--paper); }
.pillar:hover::before { transform: scaleX(1); }
.pillar .num {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 22px;
}
.pillar h3 {
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pillar p { font-size: 0.86rem; line-height: 1.6; }

.pillars-note {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   10. Lifecycle band
   -------------------------------------------------------------------------- */
.cycle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cycle-visual { max-width: 300px; margin-inline: auto; width: 100%; }
.cycle-visual svg { animation: spin 60s linear infinite; }

.cycle-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--dark-line);
  margin-top: 46px;
}
.cycle-steps li {
  padding: 26px 12px 0;
  position: relative;
  border-right: 1px solid var(--dark-line);
}
.cycle-steps li:last-child { border-right: 0; }
.cycle-steps li::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(63, 216, 232, 0.8);
}
.cycle-steps .num {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}
.cycle-steps h3 {
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cycle-steps p { font-size: 0.82rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.stat { border-top: 3px solid var(--gold); padding-top: 20px; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 4.4vw, 3.35rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat span {
  display: block;
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   12. Services tabs
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.tab {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}
.tab:hover { border-color: var(--teal); color: var(--teal); }
.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.tab-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: clamp(26px, 3.4vw, 40px);
}
.tab-panel[hidden] { display: none; }
.tab-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.tab-panel-head h3 { font-size: 1.5rem; margin: 0; }
.tab-panel-head p { max-width: 560px; font-size: 0.92rem; margin: 0; }

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 30px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 3px 0;
}
.service-list li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(23, 184, 196, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%2317b8c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
}

/* --------------------------------------------------------------------------
   13. Why us / vision-mission
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
}
.diff-list { margin-top: 26px; display: grid; gap: 16px; }
.diff-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink);
}
.diff-list .n {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.vm-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--white);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.vm-card:last-child { border-left-color: var(--gold); margin-bottom: 0; }
.vm-card .eyebrow { margin-bottom: 12px; }
.vm-card:last-child .eyebrow { color: var(--gold); }
.vm-card:last-child .eyebrow::before { background: var(--gold); }
.vm-card h3 {
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.vm-card p { font-size: 0.92rem; }

/* Values strip */
.values {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}
.values div h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--teal);
  font-family: var(--font-head);
  letter-spacing: 0;
}
.values div p { font-size: 0.8rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   14. Industries
   -------------------------------------------------------------------------- */
.industry-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-chips li {
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dark-line);
  background: var(--dark-card);
  color: var(--on-dark);
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
              background 0.22s var(--ease), color 0.22s var(--ease);
}
.industry-chips li:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(63, 216, 232, 0.07);
}

/* --------------------------------------------------------------------------
   15. Module groups — the detailed half of the Platform story
   -------------------------------------------------------------------------- */
.module-groups { display: grid; gap: 34px; }

.module-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.module-group-num {
  font-family: var(--font-head);
  color: var(--gold);
  letter-spacing: 0.1em;
}
.module-group-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: none;
}

.chips li.is-soon {
  border-style: dashed;
  border-color: rgba(217, 154, 30, 0.5);
  color: var(--muted);
}
.chips li.is-soon:hover { border-color: var(--gold); color: var(--gold); }

.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(217, 154, 30, 0.4);
  background: rgba(217, 154, 30, 0.08);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}
/* Inline variant that sits after a module name inside a chip or mega link. */
.badge--inline {
  font-size: 0.56rem;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--navy-900);
  padding: clamp(64px, 8vw, 104px) 0;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(23, 184, 196, 0.30), transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 0%, rgba(27, 58, 122, 0.55), transparent 70%);
  z-index: -1;
}
.cta-band h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--white);
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 18px;
}
.cta-band p {
  color: var(--on-dark-soft);
  max-width: 620px;
  margin: 0 auto 32px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}
.contact-rows { margin-top: 32px; }
.contact-rows li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink);
}
.contact-rows li:last-child { border-bottom: 1px solid var(--line); }
.contact-rows dt,
.contact-rows .label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}
.contact-rows a:hover { color: var(--teal); }

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 3.2vw, 38px);
}
.form-card > header { margin-bottom: 24px; }
.form-card h3 {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-card > header p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 184, 196, 0.16);
}
.field input::placeholder,
.field textarea::placeholder { color: #a9b5c8; }
.field [aria-invalid="true"] { border-color: #d6455b; background: #fdf3f4; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.error {
  display: none;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #c33448;
}
.error.is-visible { display: block; }

.form-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--muted-2);
  text-align: center;
}
.form-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }

.form-success {
  text-align: center;
  padding: 26px 10px;
}
.form-success .tick {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(23, 184, 196, 0.12);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}
.form-success h3 { margin-bottom: 8px; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-soft);
  padding: clamp(52px, 6vw, 76px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 46px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; max-width: 330px; }
.footer-sig {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 0.87rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 22px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   19. Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   19b. Sub-page furniture — page head, legal pages, detail tables, "soon"
   All of it reuses the existing tokens; no new design language.
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  background: var(--navy-900);
  color: var(--on-dark-soft);
  padding: calc(var(--header-h) + clamp(46px, 6vw, 78px)) 0 clamp(46px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 175, 225, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 175, 225, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 40%, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 40%, #000 20%, transparent 76%);
  z-index: -2;
}
.page-head::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 620px;
  height: 620px;
  max-width: 110vw;
  background: radial-gradient(circle, rgba(23, 184, 196, 0.2), transparent 62%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  color: var(--on-dark);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  max-width: 18ch;
}
.page-head-lead {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--on-dark-soft);
  max-width: 62ch;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--on-dark-soft);
  margin-bottom: 24px;
}
.crumbs a { color: var(--cyan); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs span[aria-hidden] { opacity: 0.45; }

/* --- Detail tables (company details) ------------------------------------ */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.detail-table {
  margin: 0;
  border-top: 1px solid var(--line);
}
.detail-table > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.detail-table dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}
.detail-table dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}
.detail-table a:hover { color: var(--teal); }
.detail-table--wide > div { grid-template-columns: 260px minmax(0, 1fr); }

.detail-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.detail-aside .badge { margin-bottom: 16px; }
.detail-aside h3 { font-size: 1.18rem; margin-bottom: 10px; }
.detail-aside p { font-size: 0.92rem; }
.detail-aside .btn { margin-top: 8px; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-address { font-style: normal; line-height: 1.6; }

/* --- "Under development" pages ------------------------------------------ */
.soon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}
.soon-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 18px 0 14px; }
.soon-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.soon-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 30px 28px;
}
.soon-panel h3 {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.soon-list { display: grid; gap: 15px; }
.soon-list li { padding-left: 20px; position: relative; }
.soon-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.soon-list b { display: block; color: var(--ink); font-size: 0.96rem; }
.soon-list small { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 2px; }
.soon-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.soon-note a { color: var(--teal); font-weight: 600; }

/* --- Legal pages -------------------------------------------------------- */
.legal { max-width: 74ch; }
.legal-lede {
  font-size: 1.08rem;
  color: var(--ink);
  padding-bottom: 26px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.legal h2:first-of-type { margin-top: 30px; }
.legal p { font-size: 1rem; }
.legal a { color: var(--teal); font-weight: 500; }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal code {
  font-size: 0.88em;
  background: var(--paper-2);
  border-radius: 5px;
  padding: 2px 6px;
}
.legal-list { margin: 0 0 1em; display: grid; gap: 10px; }
.legal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.legal-list b { color: var(--ink); }

.legal-contact {
  margin-top: 44px;
  padding: 26px 28px;
  border-left: 3px solid var(--teal);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--paper);
}
.legal-contact h3 { font-size: 1.06rem; margin-bottom: 10px; }
.legal-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted-2);
}

/* --- Footer address block ----------------------------------------------- */
.footer-address {
  font-style: normal;
  font-size: 0.87rem;
  line-height: 1.7;
  margin: 18px 0 14px;
  color: var(--on-dark-soft);
}
.footer-address strong { color: var(--on-dark); font-weight: 600; }
.footer-address a:hover { color: var(--cyan); }
.footer-status {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-soft);
  padding: 9px 13px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 4px;
}


/* --------------------------------------------------------------------------
   19c. Product preview, architecture, traction, services summary
   -------------------------------------------------------------------------- */

/* --- Product preview (interface concept, NOT a screenshot) --------------- */
.preview { margin: 44px 0 0; }
.preview-frame {
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 30px 70px rgba(5, 11, 26, 0.28), 0 0 60px rgba(23, 184, 196, 0.10);
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--navy-800);
  border-bottom: 1px solid var(--dark-line);
}
.preview-dots { display: flex; gap: 6px; flex: none; }
.preview-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.preview-url {
  font-size: 0.74rem;
  color: var(--on-dark-soft);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}
/* The honesty label. Must remain visible at every width. */
.preview-tag {
  margin-left: auto;
  flex: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(217, 154, 30, 0.5);
  background: rgba(217, 154, 30, 0.10);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.preview-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.preview-side {
  border-right: 1px solid var(--dark-line);
  padding: 20px 16px;
  background: rgba(255,255,255,.02);
}
.preview-brand {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  margin-bottom: 18px;
}
.preview-brand b { color: var(--cyan); font-weight: 700; }
.preview-side li {
  font-size: 0.8rem;
  color: var(--on-dark-soft);
  padding: 9px 11px;
  border-radius: 8px;
}
.preview-side li.is-active { background: rgba(63,216,232,.12); color: var(--cyan); font-weight: 600; }

.preview-main { padding: 20px; display: grid; gap: 14px; }
.preview-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.preview-tile {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 15px 16px;
}
.preview-tile b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--on-dark); line-height: 1.1; }
.preview-tile small { font-size: 0.68rem; color: var(--on-dark-soft); }
.preview-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 8px;
}
.preview-tile--score { background: linear-gradient(150deg, rgba(23,184,196,.18), rgba(10,23,48,.5)); }
.preview-score { color: var(--cyan) !important; }
.preview-score small { font-size: 0.9rem; color: var(--on-dark-soft); }
.preview-delta { font-size: 0.7rem; color: #4ad6a4; }
.preview-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.10); margin: 9px 0 5px; overflow: hidden; }
.preview-bar i { display: block; height: 100%; background: var(--grad-accent); }
.preview-chips { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.sev { font-size: 0.62rem; border-radius: var(--radius-pill); padding: 3px 9px; }
.sev--c { background: rgba(214,69,91,.18); color: #ff8ea0; }
.sev--h { background: rgba(217,154,30,.18); color: #f0c04f; }

.preview-panel { border: 1px solid var(--dark-line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.preview-panel-head {
  display: flex; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dark-line);
  font-size: 0.74rem;
  color: var(--on-dark);
}
.preview-muted { color: var(--on-dark-soft); font-size: 0.7rem; }
.preview-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--on-dark-soft);
  border-bottom: 1px solid rgba(120,170,220,.07);
}
.preview-list li:last-child { border-bottom: 0; }
.preview-list .preview-muted { margin-left: auto; }
.sev-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sev-dot.sev--c { background: #d6455b; }
.sev-dot.sev--h { background: var(--gold); }
.sev-dot.sev--m { background: #6b8fd6; }
.sev-dot.sev--l { background: rgba(255,255,255,.3); }

.preview-frameworks {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 15px 16px;
}
.preview-fw { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-fw span {
  font-size: 0.72rem;
  color: var(--on-dark-soft);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}
.preview-fw b { color: var(--cyan); }

.preview-caption {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted-2);
  max-width: 70ch;
}

/* --- Architecture (AWS) -------------------------------------------------- */
.arch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.arch-item {
  border-top: 2px solid var(--cyan);
  padding-top: 18px;
}
.arch-item:nth-child(even) { border-top-color: var(--gold); }
.arch-item h3 { font-size: 1.04rem; margin-bottom: 8px; }
.arch-item p { font-size: 0.9rem; line-height: 1.6; }

/* --- Traction stats (value + label + detail) ----------------------------- */
.stat--wide small {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

/* --- Services summary cards --------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.svc-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px 20px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-count {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
}
.svc-card h3 { font-size: 1rem; margin-bottom: 8px; }
.svc-card p { font-size: 0.86rem; line-height: 1.55; margin-bottom: 14px; }
.svc-more {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.svc-foot { margin-top: 30px; text-align: center; }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .platform-grid, .platform-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* With three cards the flagship spans the row; with four it stays 2x2. */
  .platform-grid:not(.platform-grid--4) .pcard--flag { grid-column: 1 / -1; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar:nth-child(3) { border-right: 0; }
  .pillar:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cycle-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cycle-steps li:nth-child(3n) { border-right: 0; }
  .cycle-steps li:nth-child(n+4) { padding-top: 34px; margin-top: 14px; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mega panels need breathing room before the nav collapses. */
@media (min-width: 1101px) and (max-width: 1240px) {
  .mega-inner { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
  .mega-cols--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .mega-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-link, .nav-trigger { padding-inline: 10px; font-size: 0.86rem; }
}

@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(5, 11, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dark-line);
    padding: 18px 0 26px;
    margin: 0;
    display: none;
    /* dvh tracks the collapsing mobile URL bar; vh is the fallback. */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: var(--container); margin-inline: auto; }
  .nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--dark-line);
    border-radius: 0;
  }
  .nav-link::after, .nav-trigger::after { display: none; }
  .nav-link:hover { background: none; }

  /* Mega panels become in-place accordions inside the overlay menu. */
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.02rem;
    border-radius: 0;
    border-bottom: 1px solid var(--dark-line);
  }
  .nav-trigger:hover,
  .nav-trigger[aria-expanded="true"] { background: none; }

  .mega {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    transition: none;
  }
  .mega::before { display: none; }
  .mega-inner {
    width: 100%;
    max-width: none;
    display: block;
    padding: 14px 0 22px;
    margin-inline: 0;
    padding-left: 0;
  }
  .mega-cols,
  .mega-cols--2, .mega-cols--3, .mega-cols--4, .mega-cols--5 { grid-template-columns: 1fr; gap: 22px; }
  .mega-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-promo { margin-top: 22px; }
  .mega-scrim { display: none; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a {
    border-bottom: 0;
    margin-top: 18px;
    text-align: center;
    border-radius: var(--radius-pill);
    background: var(--grad-accent);
    color: var(--navy-900);
    font-weight: 700;
  }
  .nav-cta-mobile a:hover { color: var(--navy-900); }
  .site-header:not(.is-stuck).has-open-nav { background: rgba(5, 11, 26, 0.96); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; }
  .hero-sub { max-width: none; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }

  .cycle-grid { grid-template-columns: 1fr; }
  .cycle-visual { max-width: 220px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .detail-grid, .soon-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The mock sidebar is chrome, not content — drop it before it squeezes the data. */
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .platform-grid, .platform-grid--4 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .pillar:nth-child(2n) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-top: 0; }
  .cycle-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-steps li { border-right: 1px solid var(--dark-line); }
  .cycle-steps li:nth-child(2n) { border-right: 0; }
  .cycle-steps li:nth-child(n+3) { padding-top: 34px; margin-top: 14px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-row { grid-template-columns: 1fr; }
  .preview-chrome { flex-wrap: wrap; gap: 8px 12px; }
  .preview-tag { margin-left: 0; order: 3; width: 100%; text-align: center; }
  .preview-main { padding: 14px; }
  .preview-list li { flex-wrap: wrap; row-gap: 3px; }
  .preview-list .preview-muted { margin-left: 17px; width: 100%; }
  .preview-fw span { font-size: 0.68rem; padding: 5px 10px; }
  .brand-tag { display: none; }
  .tab-panel-head { display: block; }
  .tab-panel-head p { margin-top: 10px; }
}

@media (max-width: 520px) {
  .service-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-rows li { grid-template-columns: 1fr; gap: 4px; }
  .detail-table > div,
  .detail-table--wide > div { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .chip-float { padding: 9px 13px; }
  .chip-float b { font-size: 0.94rem; }
}


/* --------------------------------------------------------------------------
   20b. Mobile refinements
   Everything below targets touch/handset use specifically: legible minimum
   type, 44px tap targets, no iOS focus-zoom, and tighter vertical rhythm.
   -------------------------------------------------------------------------- */

/* --- Tap targets: 44px minimum on anything touch-driven ------------------ */
@media (max-width: 1100px) {
  /* iOS zooms the page when a focused field is under 16px. */
  .field input,
  .field select,
  .field textarea { font-size: 16px; padding: 14px 15px; }
  .field textarea { min-height: 128px; }

  .btn { padding: 15px 26px; }
  .btn-sm { padding: 13px 22px; font-size: 0.92rem; }

  .footer-col li { margin-bottom: 0; }
  .footer-col a { display: block; padding: 12px 0; }
  .footer-bottom { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .footer-bottom nav { gap: 0 22px; }
  .footer-bottom a { display: inline-block; padding: 11px 0; }

  .contact-rows a { display: inline-block; padding: 10px 0; }
  .link-arrow { padding: 10px 0; }

  .video-toggle { width: 46px; height: 46px; opacity: 1; right: 10px; bottom: 10px; }

  .mega-links a { padding-block: 12px; }
  .mega-links--plain a { padding-block: 12px; }
  .mega-more { display: inline-block; padding: 12px 0; }
  .mega-product-grid a { padding: 16px; }
  .crumbs a { display: inline-block; padding: 12px 0; }
  .detail-table a, .legal a, .footer-address a { padding-block: 2px; }

  .tab { padding: 13px 20px; }
  .chips li { padding: 11px 16px; }
  .industry-chips li { padding: 13px 20px; }
}

/* --- Readable minimum type ---------------------------------------------- */
@media (max-width: 1100px) {
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.17em; }
  .brand-tag { font-size: 0.7rem; letter-spacing: 0.14em; }
  .mega-title { font-size: 0.75rem; letter-spacing: 0.15em; }
  .mega-promo-tag, .badge { font-size: 0.72rem; }
  .mega-more { font-size: 0.82rem; }
  .mega-links small, .mega-product-grid small { font-size: 0.82rem; }

  .pcard-top { font-size: 0.72rem; letter-spacing: 0.14em; }
  .pcard-metrics small { font-size: 0.68rem; letter-spacing: 0.1em; }
  .pcard > p { font-size: 1rem; }

  .pillar .num, .cycle-steps .num { font-size: 0.75rem; }
  .pillar p, .cycle-steps p { font-size: 0.95rem; }
  .pillar h3, .cycle-steps h3 { font-size: 1.06rem; }

  .stat span { font-size: 0.76rem; letter-spacing: 0.12em; }
  .modules h4, .footer-col h4 { font-size: 0.75rem; letter-spacing: 0.15em; }
  .chips li, .service-list li { font-size: 0.95rem; }

  .values div p, .diff-list li, .vm-card p { font-size: 0.95rem; }
  .footer-brand p, .footer-col a { font-size: 0.95rem; }
  .footer-bottom { font-size: 0.88rem; }

  .contact-rows .label, .field label, .detail-table dt { font-size: 0.72rem; letter-spacing: 0.13em; }
  .soon-list small, .legal-note, .soon-note { font-size: 0.9rem; }
  .footer-address, .footer-status { font-size: 0.92rem; }
  .contact-rows li { font-size: 1rem; }
  .form-card > header p { font-size: 0.8rem; }
  .form-note { font-size: 0.84rem; }

  .chip-float small { font-size: 0.7rem; }
  .hero-trust { font-size: 0.8rem; }
}

/* --- Hero: chips move out from over the video --------------------------- */
@media (max-width: 1100px) {
  .hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
  }
  .hero-video-frame { grid-column: 1 / -1; }
  .chip-float {
    position: static;
    animation: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.045);
    padding: 12px 14px;
  }
}

/* --- Density and layout at handset widths -------------------------------- */
@media (max-width: 680px) {
  .section { padding-block: 54px; }
  .section-head { margin-bottom: 30px; }
  .hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: 54px; }

  .marquee { padding: 13px 0; }
  .marquee span { font-size: 0.78rem; letter-spacing: 0.15em; }
  .marquee-track { gap: 26px; padding-right: 26px; }

  /* A scrolling strip beats three wrapped rows of pills. */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 26px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; scroll-snap-align: start; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .modules { margin-top: 34px; padding-top: 30px; }
  .values { margin-top: 34px; padding-top: 30px; }
  .contact-rows li { padding: 14px 0; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.15rem; }
  .section-head h2 { font-size: 1.8rem; }
  .cta-band h2 { font-size: 1.8rem; }
  .pcard { padding: 26px 20px; }
  .pcard-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pcard-metrics b { font-size: 1.3rem; }
  .pcard-metrics small { font-size: 0.68rem; letter-spacing: 0.05em; }
  .form-card { padding: 22px 18px; }
}

/* Only the narrowest handsets need the single-column fallback. */
@media (max-width: 361px) {
  .hero-visual { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* --- Landscape handsets: the hero must not need a full scroll ------------ */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1100px) {
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 36px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .hero-visual { order: 0; max-width: none; }
  .section { padding-block: 48px; }
}

/* --------------------------------------------------------------------------
   21. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Print — plain, readable */
@media print {
  .site-header, .marquee, .hero-visual, .cta-band, .form-card { display: none; }
  body { color: #000; }
  .section--dark, .hero { background: #fff; color: #000; }
}
