/* =========================================================
   TERĒAN — Site-wide styles
   Brand palette, sampled from the official logo:
     Charcoal  #231F20   (the "Ter an®" letterforms)
     Blue      #006699   (the ē)
   Dark mode by default. Sections marked .band-light / .band-light-white
   flip the surface + text tokens to light, so every component inside
   (cards, forms, FAQs, quotes) adapts without its own light variant.
   ========================================================= */

:root {
  /* Fixed darks — header, footer, darkest bands (always dark) */
  --ink: #1a1718;          /* deepest charcoal */
  --ink-2: #231f20;        /* brand charcoal */
  --ink-3: #2e2a2b;        /* raised / hover */

  /* Theme surfaces (dark by default; overridden in .band-light) */
  --paper: #1f1b1c;        /* section background */
  --paper-2: #262223;      /* alternate section background */
  --white: #2b2728;        /* card / input surface */

  /* Text */
  --text: #eceaea;
  --muted: #a9a3a4;
  --text-on-dark: #eceaea;
  --muted-on-dark: #a9a3a4;

  /* Lines */
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);

  /* Brand */
  --brand: #006699;        /* Terēan blue */
  --brand-deep: #004f77;
  --brand-bright: #4da3d1; /* same hue, lifted for text on charcoal */
  --signal: #006699;       /* primary CTAs */
  --signal-deep: #004f77;
  --accent-text: var(--brand-bright); /* blue for text: lifted on dark, true brand on light */

  /* Blue scale (light → deep) — gauge + charts */
  --v1: #d9e8f1;
  --v2: #b6d3e5;
  --v3: #8ebbd7;
  --v4: #5fa0c7;
  --v5: #2f84b6;
  --v6: #006699;
  --v7: #004f77;
  --v8: #003a58;
  /* The accent rule used on section edges, eyebrows, cards */
  --velocity: linear-gradient(90deg, var(--brand), var(--brand));
  --velocity-v: linear-gradient(180deg, var(--brand), var(--brand));

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --header-height: 76px;
  --container: 1200px;
  --container-wide: 1400px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light sections — the "few light gray / white" bands */
.band-light, .band-light-white {
  --paper: #f2f2f2;
  --paper-2: #e9e9e9;
  --white: #ffffff;
  --text: #231f20;
  --muted: #625d5e;
  --line: #dcdada;
  --accent-text: #006699;
  color: var(--text);
}
.band-light { background: #f2f2f2; }
.band-light-white { background: #ffffff; --paper: #f2f2f2; }
.band-light .eyebrow, .band-light-white .eyebrow { color: var(--accent-text); }
.band-light .text-link, .band-light-white .text-link { color: var(--accent-text); }
.band-light .text-gradient, .band-light-white .text-gradient { color: var(--accent-text); }

/* =========================
   RESET & BASE
   ========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

[id] { scroll-margin-top: calc(var(--header-height) + 20px); }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--brand); color: #fff; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--signal); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: inherit;
}

.display-xl { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 0.98; }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; }
.display-md { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.on-dark .lede, .lede.on-dark { color: var(--muted-on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ''; width: 28px; height: 3px; border-radius: 2px;
  background: var(--velocity);
}

.mono { font-family: var(--font-mono); }
.text-gradient {
  background: var(--velocity);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.reg { font-size: 0.55em; vertical-align: super; line-height: 0; font-weight: 500; }

/* Inline text link with underline sweep */
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--accent-text);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 1.5px; }
.text-link .arrow { transition: transform .3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* =========================
   BUTTONS
   ========================= */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-display); font-stretch: 110%;
  font-weight: 650; font-size: 0.98rem; letter-spacing: 0.01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn::after {
  /* velocity shimmer that sweeps across on hover */
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px; z-index: -1;
  background: var(--velocity);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgba(0,102,153, .55); }
.btn:hover::after { transform: scaleX(1); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-signal { --btn-bg: var(--signal); }
.btn-signal:hover { box-shadow: 0 10px 28px -10px rgba(0,102,153, .6); }
.btn-outline { --btn-fg: var(--text); background: transparent; border-color: currentColor; color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--paper); border-color: var(--text); }
.btn-ghost-light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* =========================
   HEADER
   ========================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-height);
  color: #fff;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,24,.65), rgba(26,23,24,0));
  pointer-events: none; transition: opacity .35s;
}
.header.scrolled {
  background: rgba(26,23,24, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
  height: 66px;
}
.header.scrolled::before { opacity: 0; }

.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: block; flex-shrink: 0; }
.logo-img { width: 138px; height: auto; transition: width .35s var(--ease); }
.header.scrolled .logo-img { width: 124px; }

.nav-desktop { position: relative; display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  font-size: 0.92rem; font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color .2s;
}
.nav-link:hover, .nav-item.active > .nav-link, .nav-item.open > .nav-link { color: #fff; }
.nav-caret { width: 10px; height: 6px; transition: transform .25s var(--ease); }
.nav-item.open .nav-caret { transform: rotate(180deg); }

.nav-trace {
  position: absolute; left: 0; bottom: -2px; width: 60px; height: 8px;
  color: var(--brand-bright);
  opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .3s;
}
.nav-trace.visible { opacity: 1; }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  min-width: 300px; padding: 10px;
  background: rgba(35,31,32, 0.98);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .22s, transform .3s var(--ease), visibility .22s;
}
.nav-dropdown::before { /* hover bridge */
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-item.open .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-link {
  display: block; padding: 12px 14px; border-radius: 10px;
  transition: background .2s;
}
.nav-dropdown-link:hover, .nav-dropdown-link.active { background: rgba(255,255,255,.06); }
.nav-dropdown-label { display: block; font-weight: 600; font-size: 0.95rem; color: #fff; }
.nav-dropdown-desc { display: block; font-size: 0.82rem; color: var(--muted-on-dark); }
.nav-dropdown-link.active .nav-dropdown-label { color: var(--brand-bright); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

.menu-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color .2s, background .2s;
}
.menu-btn:hover { border-color: #fff; }
.menu-bar { width: 18px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s, width .35s var(--ease); }
.menu-bar:nth-child(2) { width: 12px; transform: translateX(3px); }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .nav-desktop { display: block; }
  .menu-btn { display: none; }
}
@media (min-width: 1200px) and (max-width: 1320px) {
  .nav-link { padding: 10px 8px; font-size: 0.88rem; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 990; pointer-events: none; }
.mobile-menu.open { pointer-events: auto; }
.mobile-menu-backdrop {
  position: absolute; inset: 0; background: rgba(12,10,11, .55);
  opacity: 0; transition: opacity .35s;
}
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  padding: calc(var(--header-height) + 16px) 28px 32px;
  background: var(--ink);
  color: #fff;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  border-left: 1px solid var(--line-dark);
}
.mobile-menu-panel::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--velocity-v);
}
.mobile-menu.open .mobile-menu-panel { transform: none; }
.mobile-nav-link {
  display: block; padding: 11px 0;
  font-family: var(--font-display); font-stretch: 112%;
  font-size: 1.35rem; font-weight: 650;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255,255,255,.88);
  transition: color .2s, padding-left .3s var(--ease);
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--brand-bright); padding-left: 6px; }
.mobile-nav-sub { font-size: 1.05rem; font-weight: 500; padding-left: 14px; }
.mobile-nav-sub:hover, .mobile-nav-sub.active { padding-left: 20px; }
.mobile-nav-group {
  display: block; margin-top: 18px; padding-bottom: 4px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.mobile-menu-footer { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; text-align: center; }
.mobile-menu-phone { font-family: var(--font-mono); color: var(--muted-on-dark); }
.mobile-menu-tagline { font-family: var(--font-display); font-stretch: 115%; font-weight: 600; color: #fff; }

/* =========================
   SECTIONS
   ========================= */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-sm { padding: clamp(56px, 7vw, 88px) 0; }
.band-paper { background: var(--paper); }
.band-paper-2 { background: var(--paper-2); }
.band-white { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--text-on-dark); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* Subtle survey-grid texture for dark bands */
.grid-texture { position: relative; }
.grid-texture::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}

.velocity-rule { height: 4px; border-radius: 2px; background: var(--velocity); }

/* =========================
   SCROLL REVEALS (GSAP adds .gsap-in)
   ========================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal].gsap-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="scale"] { transform: scale(.96); }

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

/* =========================
   PAGE HERO (subpages)
   ========================= */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + clamp(64px, 9vw, 120px)) 0 clamp(64px, 8vw, 104px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.8); }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26,23,24,.96) 0%, rgba(26,23,24,.75) 50%, rgba(26,23,24,.45) 100%),
    linear-gradient(0deg, rgba(26,23,24,1) 0%, rgba(26,23,24,0) 40%);
}
.page-hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; pointer-events: none; }
.page-hero-inner { position: relative; max-width: 860px; }
.page-hero .eyebrow { color: var(--brand-bright); margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1; margin-bottom: 22px; }
.page-hero .lede { color: rgba(236,234,234,.78); }
.page-hero .btn-row { margin-top: 32px; }
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--velocity);
}
.breadcrumb { display: flex; gap: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 22px; }
.breadcrumb a:hover { color: #fff; }

/* =========================
   CARDS & COMMON COMPONENTS
   ========================= */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(26,23,24,.35); border-color: transparent; }
.card-dark { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-on-dark); }
.card-dark h3 { color: #fff; }

.grid-2 { display: grid; gap: 28px; }
.grid-3 { display: grid; gap: 24px; }
.grid-4 { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.split-reverse > :first-child { order: 2; }
  .split-60 { grid-template-columns: 1.25fr 1fr; }
  .split-40 { grid-template-columns: 1fr 1.25fr; }
}

.media-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 30px 60px -36px rgba(26,23,24,.5);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.wide { aspect-ratio: 16 / 10; }
.media-frame.square { aspect-ratio: 1; }

/* "Instrument" frame for velocity plots — reads like a software window */
.plot-frame {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(26,23,24,.45);
}
.plot-frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--ink); color: var(--muted-on-dark);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
}
.plot-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.plot-frame-bar i:first-child { background: var(--signal); }
.plot-frame-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plot-frame img { width: 100%; background: #fff; }
.plot-frame figcaption { padding: 14px 18px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Check list */
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .5em; width: 16px; height: 10px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg) translateY(-4px);
}
.on-dark .check-list li::before, .band-ink .check-list li::before { border-color: var(--brand-bright); }

/* Stat */
.stat-value { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.band-ink .stat-label, .on-dark .stat-label { color: var(--muted-on-dark); }

/* Testimonial */
.quote-card {
  position: relative;
  padding: 36px 34px 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.quote-card::before {
  content: ''; position: absolute; top: 24px; left: 34px; width: 34px; height: 26px;
  background: var(--velocity);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V15.6C0 6.9 4.6 1.6 13.4 0l1.4 3.6C10 5 7.6 7.8 7.3 12H14v14H0zm19.2 0V15.6C19.2 6.9 23.8 1.6 32.6 0L34 3.6c-4.8 1.4-7.2 4.2-7.5 8.4h6.7v14H19.2z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M0 26V15.6C0 6.9 4.6 1.6 13.4 0l1.4 3.6C10 5 7.6 7.8 7.3 12H14v14H0zm19.2 0V15.6C19.2 6.9 23.8 1.6 32.6 0L34 3.6c-4.8 1.4-7.2 4.2-7.5 8.4h6.7v14H19.2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.quote-card blockquote { font-size: 1.06rem; line-height: 1.65; margin-top: 44px; }
.quote-card figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.quote-card figcaption strong { display: block; font-family: var(--font-display); font-stretch: 110%; font-size: 1rem; }
.quote-card figcaption span { color: var(--muted); }
.quote-card.dark { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-on-dark); }
.quote-card.dark figcaption { border-color: var(--line-dark); }
.quote-card.dark figcaption strong { color: #fff; }
.quote-card.dark figcaption span { color: var(--muted-on-dark); }

/* =========================
   FAQ ACCORDION (same behavior as the Maru build)
   ========================= */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 24px;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--accent-text); box-shadow: 0 16px 36px -26px rgba(0,102,153,.6); }
.faq-question {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display); font-stretch: 108%;
  font-weight: 650; font-size: 1.08rem; line-height: 1.35;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: ''; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background:
    linear-gradient(var(--brand), var(--brand)) center / 10px 1.6px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 1.6px 10px no-repeat;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg); border-color: var(--accent-text);
}
.faq-answer { padding: 0 0 24px; color: var(--muted); }
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p { margin-top: 12px; }
.faq-answer ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.faq-answer strong { color: var(--text); }

/* =========================
   FORMS
   ========================= */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: grid; gap: 7px; }
.form-group label {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.form-group label .req { color: var(--accent-text); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6566' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  padding-right: 40px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(0,102,153,.12);
}
.form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-status {
  display: none; padding: 16px 18px; border-radius: 10px; font-weight: 500;
}
.form-status.success { display: block; background: rgba(0,102,153,.14); border: 1px solid var(--brand); color: var(--text); }
.form-status.error { display: block; background: rgba(214,69,65,.1); border: 1px solid rgba(214,69,65,.55); color: var(--text); }
.form button[type="submit"][disabled] { opacity: .6; pointer-events: none; }

/* =========================
   CTA BAND (shared, bottom of most pages)
   ========================= */
.cta-band { position: relative; overflow: hidden; }
.cta-band-inner {
  position: relative; z-index: 1;
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.025em; line-height: 1; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }
.cta-band .contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }

/* =========================
   FOOTER
   ========================= */
.footer { position: relative; background: var(--ink); color: var(--muted-on-dark); padding: 80px 0 28px; }
.footer-velocity { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--velocity); }
.footer-main { display: grid; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 760px) { .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; } }
.footer-logo img { width: 160px; }
.footer-tagline { margin-top: 20px; max-width: 36ch; font-size: .95rem; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: #fff;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.footer-social a:hover { background: var(--brand); border-color: var(--accent-text); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; font-size: .95rem; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-mono { font-family: var(--font-mono); }
.footer-sub { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.footer-affiliations { padding: 40px 0; border-bottom: 1px solid var(--line-dark); }
.affiliation-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.affiliation-list li {
  background: #fff; border-radius: 8px; padding: 8px 12px; height: 52px;
  display: grid; place-items: center;
  opacity: .82; transition: opacity .25s, transform .25s var(--ease);
}
.affiliation-list li:hover { opacity: 1; transform: translateY(-2px); }
.affiliation-list img { max-height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.sub-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .84rem; }
.sub-footer a { color: #fff; }
.sub-footer a:hover { color: var(--brand-bright); }

/* =========================================================
   HOMEPAGE
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(48px, 9vh, 110px)) 0 300px;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(0,102,153,.22), transparent 70%),
    var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 900px) { .hero { padding-bottom: 260px; min-height: max(760px, 100vh); } }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-content { position: relative; cursor: auto; }
.hero-content .eyebrow { color: var(--brand-bright); margin-bottom: 22px; }
.hero-title { max-width: 14ch; margin-bottom: 26px; }
.hero-title .br-desktop { display: none; }
@media (min-width: 900px) { .hero-title { max-width: none; } .hero-title .br-desktop { display: inline; } }
.hero-lede { color: rgba(236,234,234,.8); max-width: 58ch; margin-bottom: 34px; }

.hero-readout {
  position: absolute; right: clamp(190px, 14vw, 230px); bottom: 34px;
  width: 300px; padding: 14px 16px 12px;
  background: rgba(26,23,24,.72);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted-on-dark);
  display: none;
  pointer-events: none;
}
@media (min-width: 900px) { .hero-readout { display: block; } }
.readout-head { display: flex; align-items: center; gap: 8px; color: #fff; }
.readout-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(0,102,153,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,102,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(0,102,153,0); } 100% { box-shadow: 0 0 0 0 rgba(0,102,153,0); } }
.readout-trace { width: 100%; height: 66px; margin: 10px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.readout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.readout-grid dt { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; }
.readout-grid dd { color: #fff; font-size: .78rem; margin-top: 2px; }
.readout-class { color: var(--brand-bright) !important; font-weight: 500; }

.hero-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,234,234,.55);
  pointer-events: none; transition: opacity .6s;
  white-space: nowrap;
}
.hero-hint span::before { content: '◉ '; color: var(--accent-text); }
.hero-hint.used { opacity: 0; }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  padding: 16px 0;
}
.ticker::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--velocity); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.ticker-item::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Noise / steps ---------- */
.noise-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .noise-grid { grid-template-columns: 1fr 1fr; gap: 80px; } .noise-head { position: sticky; top: calc(var(--header-height) + 40px); } }
.noise-head h2 { margin: 18px 0 22px; }
.noise-head .lede { margin-bottom: 26px; }
.steps { display: grid; gap: 18px; counter-reset: s; }
.step {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 30px 30px 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateX(6px); box-shadow: 0 20px 40px -30px rgba(26,23,24,.45); }
.step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--velocity-v); }
.step-num { font-size: .85rem; color: var(--accent-text); padding-top: 4px; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step-icon { position: absolute; right: 22px; top: 22px; width: 64px; color: var(--line); }
@media (max-width: 600px) { .step-icon { display: none; } }

.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-value small { font-size: .45em; font-weight: 600; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.stat .stat-value { color: var(--text); }

/* ---------- Capability viewer ---------- */
.capabilities .section-head .lede { color: var(--muted-on-dark); }
.viewer { display: grid; gap: 24px; }
@media (min-width: 1000px) { .viewer { grid-template-columns: 320px 1fr; gap: 36px; align-items: start; } }
.viewer-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -24px; padding: 0 24px 4px;
  scroll-snap-type: x mandatory;
}
.viewer-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .viewer-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; } }
.viewer-tab {
  position: relative; flex-shrink: 0; scroll-snap-align: start;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  text-align: left;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--muted-on-dark);
  overflow: hidden;
  transition: background .25s, color .25s, border-color .25s;
}
.viewer-tab:hover { color: #fff; border-color: rgba(255,255,255,.22); }
.viewer-tab[aria-selected="true"] { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(77,163,209,.5); }
.viewer-tab-num { font-size: .75rem; color: var(--brand-bright); }
.viewer-tab-label { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.viewer-tab-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--velocity); transform: scaleX(0); transform-origin: left; }
.viewer.auto .viewer-tab[aria-selected="true"] .viewer-tab-progress { animation: tabprogress 5.2s linear forwards; }
@keyframes tabprogress { to { transform: scaleX(1); } }
.viewer-frame { background: var(--ink-2); border-color: var(--line-dark); }
.viewer-frame .plot-frame-bar { background: #070d10; }
.viewer-panel img { aspect-ratio: 2 / 1; object-fit: contain; background: #fff; }
.viewer-panel.active img { animation: plotin .7s var(--ease); }
@keyframes plotin { from { opacity: 0; transform: scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.viewer-copy { padding: 24px 26px 28px; }
.viewer-copy h3 { font-size: 1.45rem; margin-bottom: 10px; color: #fff; }
.viewer-copy p { color: var(--muted-on-dark); max-width: 68ch; }

/* ---------- ASCE gauge ---------- */
.asce-split h2 { margin: 18px 0 20px; }
.asce-split .lede { margin-bottom: 30px; }
.gauge { padding: 28px; }
.gauge:hover { transform: none; }
.gauge-head { display: grid; gap: 10px; margin-bottom: 56px; font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.gauge-result { font-size: 1rem; letter-spacing: 0; color: var(--text); }
.gauge-result .mono { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.gauge-class { color: var(--accent-text); }
.gauge-bar { position: relative; display: flex; height: 64px; border-radius: 10px; overflow: visible; }
.gauge-seg {
  position: relative; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.95);
  border-right: 1px solid rgba(255,255,255,.6);
}
.gauge-seg:first-child { border-radius: 10px 0 0 10px; }
.gauge-seg:last-of-type { border-radius: 0 10px 10px 0; border-right: 0; }
.gauge-seg:nth-child(1) { background: var(--v1); color: var(--ink-2); }
.gauge-seg:nth-child(2) { background: var(--v2); color: var(--ink-2); }
.gauge-seg:nth-child(3) { background: var(--v3); color: var(--ink-2); }
.gauge-seg:nth-child(4) { background: var(--v4); }
.gauge-seg:nth-child(5) { background: var(--v5); }
.gauge-seg:nth-child(6) { background: var(--v6); }
.gauge-seg:nth-child(7) { background: var(--v7); }
.gauge-seg:nth-child(8) { background: var(--v8); }
.gauge-seg span { transform: translateY(0); }
.gauge-seg:nth-child(-n+2) span { font-size: .62rem; }
.gauge-seg.hit { box-shadow: inset 0 0 0 3px var(--ink-2); }
.gauge-marker {
  position: absolute; top: -14px; bottom: -14px; left: 0;
  width: 2px; background: var(--ink);
  transition: left 1.6s var(--ease);
}
.gauge.in .gauge-marker, [data-gauge].in .gauge-marker { left: var(--marker); }
.gauge-marker::before { content: ''; position: absolute; top: -7px; left: -6px; border: 7px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.gauge-marker span {
  position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .7rem; white-space: nowrap;
}
.gauge-scale { display: flex; justify-content: space-between; margin-top: 22px; font-size: .68rem; color: var(--muted); }
.gauge-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.gauge-legend b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .74rem; color: var(--text); }

/* ---------- Why / feature rows ---------- */
.feature-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature-row { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .feature-row { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .feature-row.reverse .feature-media { order: 2; }
}
.feature-media { position: relative; }
.feature-media .media-frame { aspect-ratio: 5 / 4; }
.feature-media .media-frame img { height: 115%; }
.feature-index {
  position: absolute; left: 18px; bottom: 18px;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(26,23,24,.75); color: #fff; font-size: .72rem; letter-spacing: .1em;
  backdrop-filter: blur(6px);
}
.feature-copy h3 { margin-bottom: 16px; }
.feature-copy > p { color: var(--muted); margin-bottom: 28px; }
.feature-copy .quote-card { background: var(--paper); border-color: transparent; }

/* ---------- Origin ---------- */
.origin-section { overflow: hidden; }
.origin-section .contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.origin-section .container { position: relative; }
.origin-photo { position: relative; max-width: 460px; }
.origin-photo .media-frame { box-shadow: 0 40px 80px -40px #000; }
.origin-tag {
  position: absolute; right: -12px; bottom: 28px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--paper); color: var(--text);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.origin-tag strong { display: block; font-family: var(--font-display); font-stretch: 110%; }
.origin-tag span { font-size: .82rem; color: var(--muted); }
.origin-split h2 { margin: 18px 0 22px; }
.origin-split .lede { color: var(--muted-on-dark); }
.origin-quote {
  margin: 34px 0; padding: 4px 0 4px 26px;
  border-left: 3px solid; border-image: var(--velocity-v) 1;
}
.origin-quote p { font-family: var(--font-display); font-stretch: 105%; font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; color: #fff; }
.origin-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: .74rem; color: var(--muted-on-dark); letter-spacing: .02em; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .industry-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; }
  .industry-card.feature { grid-row: span 2; }
}
.industry-card {
  position: relative; display: block; min-height: 300px;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  color: #fff;
}
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.industry-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,23,24,0) 25%, rgba(26,23,24,.92) 100%);
  transition: background .5s;
}
.industry-card:hover img { transform: scale(1.06); }
.industry-card:hover::after { background: linear-gradient(180deg, rgba(26,23,24,.35) 0%, rgba(26,23,24,.95) 100%); }
.industry-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.industry-body h3 { font-size: 1.6rem; font-weight: 800; font-stretch: 116%; }
.industry-body p {
  font-size: .95rem; color: rgba(236,234,234,.85);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .4s, margin .4s;
}
.industry-card:hover .industry-body p, .industry-card:focus-visible .industry-body p { max-height: 200px; opacity: 1; margin-top: 10px; }
.industry-more { display: inline-block; margin-top: 12px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-bright); }
@media (hover: none) { .industry-body p { max-height: none; opacity: 1; margin-top: 10px; } }

/* ---------- Clients marquee ---------- */
.clients-section .section-head { margin-bottom: 40px; }
.marquee {
  overflow: hidden; padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 10px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-tile {
  flex-shrink: 0;
  width: 190px; height: 92px; padding: 16px 22px;
  display: grid; place-items: center;
  background: var(--paper); border-radius: 12px;
  transition: background .3s;
}
.logo-tile img { max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .35s, opacity .35s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile.logo-invert img { filter: invert(1) grayscale(1); }
.logo-tile.logo-invert:hover img { filter: invert(1); }

/* ---------- Home CTA ---------- */
.home-cta { overflow: hidden; }
.home-cta .contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-cta .container { position: relative; }
.home-cta-head { margin-bottom: 56px; }
.home-cta-head h2 { margin-top: 18px; }
.action-cards { display: grid; gap: 18px; }
@media (min-width: 900px) { .action-cards { grid-template-columns: repeat(3, 1fr); } }
.action-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; min-height: 260px;
  background: rgba(35,31,32,.75);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.action-card:hover { transform: translateY(-6px); border-color: rgba(77,163,209,.6); background: rgba(35,31,32,.95); }
.action-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); font-size: .8rem; color: var(--brand-bright); margin-bottom: 24px;
}
.action-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.action-card p { color: var(--muted-on-dark); }
.action-go { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--accent-text); }
.action-card:hover .action-go { color: #fff; }


/* =========================================================
   HEADER ACTIONS — always-visible data uploader + cart
   ========================================================= */
.header-actions { gap: 10px; }
.header-upload { gap: 8px; padding: 9px 14px; }
.header-upload svg { width: 17px; height: 17px; flex-shrink: 0; }
.header-upload span { display: none; }
@media (min-width: 480px) { .header-upload span { display: inline; } }
@media (min-width: 1200px) and (max-width: 1400px) { .header-upload span { display: none; } .header-upload { padding: 9px 11px; } }
.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  transition: border-color .2s, background .2s;
}
.cart-btn:hover { border-color: #fff; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font: 600 .7rem/19px var(--font-sans); text-align: center;
  box-shadow: 0 0 0 2px var(--ink);
}
.cart-count[hidden] { display: none; }
@media (max-width: 400px) { .logo-img { width: 118px; } .header-actions { gap: 7px; } }

/* ---------- Sector picker (homepage, under hero) ---------- */
.sector-picker { background: var(--ink); padding: 28px 0 34px; border-bottom: 1px solid var(--line-dark); }
.sector-picker-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 14px; }
.sector-picker-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .sector-picker-grid { grid-template-columns: repeat(4, 1fr); } }
.sector-pick {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  min-height: 108px; padding: 16px 18px; border-radius: 12px; overflow: hidden; isolation: isolate; color: #fff;
  border: 1px solid var(--line-dark);
  transition: border-color .3s, transform .4s var(--ease);
}
.sector-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: opacity .4s, transform 1s var(--ease); }
.sector-pick::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,23,24,.15), rgba(26,23,24,.9)); }
.sector-pick:hover { border-color: var(--brand); transform: translateY(-3px); }
.sector-pick:hover img { opacity: .8; transform: scale(1.05); }
.sector-pick-name { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.sector-pick-go { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand); transition: transform .3s var(--ease); }
.sector-pick:hover .sector-pick-go { transform: translateX(3px); }

@media (min-width: 1040px) {
  .industry-grid-4 { grid-template-columns: 1.3fr 1fr 1fr; }
  .industry-grid-4 .industry-card:nth-child(4) { grid-column: span 2; }
}
.industry-row-link { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 960px) { .industry-row-link { grid-column: 2 / -1; } }

/* Dropdowns also open on hover / keyboard focus with pure CSS, so the
   menus work even if JavaScript hasn't loaded. */
@media (hover: hover) {
  .nav-item.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.nav-item.has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
