/* ==========================================================
   Fieldline website concept v2
   Tokens follow the Fieldline Brand Guidelines (v6.15.2026)
   ========================================================== */

:root {
  --brand-blue: #004181;
  --tech-gray: #999999;
  --darkness: #011502;
  --sunshine: #FFFD77;
  --sea-blue: #009AAF;
  --sea-green: #00C09F;
  --bright-green: #86E181;
  --white: #FFFFFF;

  /* Derived surfaces (not brand colors) */
  --navy: #00264d;
  --blue-deep: #00305f;
  --surface: #F3F5F7;
  --surface-blue: #EAF1F8;
  --hairline: rgba(1, 21, 2, 0.12);
  --hairline-light: rgba(255, 255, 255, 0.18);
  --muted: rgba(1, 21, 2, 0.7);

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.45rem, 1.2rem + 0.9vw, 1.8rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  --fs-3xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 5.4vw, 5.6rem);

  --radius-btn: 14px;
  --radius-card: 18px;
  --radius-tile: 8px 8px 56px 8px;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --header-h: 84px;
  --focus: var(--sea-blue);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--darkness);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 200; background: var(--brand-blue); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-btn); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 900px; }

/* ---------- Type helpers ---------- */
.kicker {
  display: flex; align-items: center; gap: .85rem;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 1.25rem;
}
.kicker::before { content: ""; width: 40px; height: 3px; background: currentColor; flex: none; }
.on-dark .kicker { color: var(--sunshine); }
.h-section { font-size: var(--fs-3xl); max-width: 22ch; }
.split .h-section, .investigate-grid .h-section, .tab-copy h3 { font-size: var(--fs-2xl); }
.h-section .soft { font-weight: 300; display: block; }
.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--muted); max-width: 60ch; margin-top: 1.25rem; }
.on-dark .lede { color: rgba(255, 255, 255, .86); }
.prose p + p { margin-top: 1rem; }
.prose { max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 1rem/1 var(--font);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand-blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-accent { background: var(--sea-green); color: var(--darkness); }
.btn-accent:hover { background: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--brand-blue); background: transparent; }
.btn-ghost:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--brand-blue); }
.btn .arrow { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--brand-blue); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: currentColor; }
.text-link .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }
.on-dark .text-link { color: var(--white); }

.icon-btn {
  flex: none; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--radius-btn);
  border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header and mega menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); box-shadow: 0 10px 30px -24px rgba(0, 38, 77, .5); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { flex: none; }
.brand img { width: 148px; }

.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-item { position: static; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .7rem .85rem; border-radius: 10px;
  font-weight: 600; font-size: .96rem; text-decoration: none;
  background: none; border: 0; cursor: pointer; color: var(--darkness);
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--surface); }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-trigger { color: var(--brand-blue); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { margin-left: 1rem; }
.nav-cta .btn { padding: .85rem 1.25rem; font-size: .95rem; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 30px 60px -30px rgba(0, 38, 77, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-block: 2rem 2.5rem; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; }
.mega-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-link {
  display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start;
  padding: .9rem; border-radius: 12px; text-decoration: none;
}
.mega-link:hover { background: var(--surface); }
.mega-link:hover strong { color: var(--brand-blue); }
.mega-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-blue); color: var(--brand-blue); }
.mega-icon svg { width: 22px; height: 22px; }
.mega-link strong { display: block; font-size: .98rem; line-height: 1.3; }
.mega-link span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }
.mega-feature {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card); background: var(--brand-blue); color: var(--white);
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px;
  text-decoration: none;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(1); mix-blend-mode: luminosity; }
.mega-feature > * { position: relative; }
.mega-feature small { font-weight: 600; color: var(--sunshine); }
.mega-feature strong { font-size: 1.2rem; line-height: 1.3; margin: .35rem 0 .75rem; }
.mega-feature .text-link { color: var(--white); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: var(--darkness); margin-inline: auto; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); overflow-y: auto;
    padding: 1rem var(--gutter) 2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 1rem .25rem; border-radius: 0; border-bottom: 1px solid var(--hairline); font-size: 1.1rem; }
  .nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: none; }
  .mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .mega.is-open { display: block; }
  .mega-inner { grid-template-columns: 1fr; padding: .5rem 0 1rem; gap: 1rem; }
  .mega .wrap { padding-inline: 0; }
  .mega-grid, .mega-grid.cols-3 { grid-template-columns: 1fr; }
  .mega-feature { display: none; }
  .nav-cta { margin: 1.5rem 0 0; }
  .nav-cta .btn { width: 100%; padding: 1.1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Home hero with video ---------- */
.hero-video {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--navy);
  overflow: hidden;
}
.hero-video video, .hero-video .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: grayscale(1) contrast(1.05);
}
.hero-video::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 28, 58, .94) 0%, rgba(0, 45, 92, .82) 42%, rgba(0, 65, 129, .45) 100%),
    linear-gradient(0deg, rgba(0, 28, 58, .7), rgba(0, 28, 58, 0) 45%);
}
.hero-video::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brand-blue); mix-blend-mode: color; opacity: .75;
}
.hero-inner { padding-block: clamp(6rem, 12vh, 10rem) clamp(3rem, 7vh, 5.5rem); width: 100%; }
.hero-title { font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.035em; max-width: 13ch; }
.hero-title span { display: block; }
.hero-title .soft { font-weight: 300; }
.hero-title .accent { color: var(--white); }
.hero-sub { font-size: var(--fs-lg); line-height: 1.55; max-width: 52ch; margin-top: 1.75rem; color: rgba(255, 255, 255, .9); }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 8vh, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--hairline-light);
}
.hero-proof { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero-proof div { display: grid; }
.hero-proof b { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.hero-proof span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .75); }
.video-toggle { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-credit { font-size: .75rem; color: rgba(255, 255, 255, .55); }
.video-credit a { color: inherit; }

/* Headline reveal: one orchestrated moment on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span, .hero-sub, .hero-video .btn-row { animation: rise .9s var(--ease) both; }
  .hero-title span:nth-child(2) { animation-delay: .12s; }
  .hero-title span:nth-child(3) { animation-delay: .24s; }
  .hero-sub { animation-delay: .38s; }
  .hero-video .btn-row { animation-delay: .5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--navy);
  padding-block: clamp(5rem, 10vw, 8.5rem) clamp(4rem, 7vw, 6rem);
}
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 28, 58, .95) 0%, rgba(0, 45, 92, .85) 50%, rgba(0, 65, 129, .55) 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-blue); mix-blend-mode: color; opacity: .7; }
.page-hero h1 { font-size: var(--fs-3xl); max-width: 20ch; letter-spacing: -0.03em; }
.page-hero h1 .soft { display: block; font-weight: 300; }
.page-hero .lede { color: rgba(255, 255, 255, .88); }
.page-hero .kicker { color: var(--sunshine); }
.crumb { display: flex; gap: .5rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); margin-bottom: 1.5rem; }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--white); text-decoration: underline; }
.jump-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.jump-links a {
  font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--white);
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45);
}
.jump-links a:hover { background: var(--white); color: var(--brand-blue); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .6); }
.bg-surface { background: var(--surface); }
.bg-blue { background: var(--brand-blue); color: var(--white); --focus: var(--sunshine); }
.bg-navy { background: var(--navy); color: var(--white); --focus: var(--sunshine); }
.bg-dark { background: var(--darkness); color: var(--white); --focus: var(--sunshine); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head > div { flex: 1 1 32rem; min-width: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split.top { align-items: start; }
.split-40 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 900px) { .split, .split-40 { grid-template-columns: 1fr; } }
.media-tile { border-radius: var(--radius-tile); overflow: hidden; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Yours / ours pairing */
.pairing { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-card); overflow: hidden; }
.pairing > div { padding: clamp(1.75rem, 3vw, 2.5rem); }
.pairing .yours { background: var(--surface-blue); }
.pairing .ours { background: var(--brand-blue); color: var(--white); }
.pairing small { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 1rem; }
.pairing .ours small { color: var(--sunshine); }
.pairing .yours small { color: var(--brand-blue); }
.pairing ul li { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.pairing-foot { grid-column: 1 / -1; background: var(--darkness); color: var(--white); font-weight: 700; font-size: var(--fs-lg); padding: 1.25rem clamp(1.75rem, 3vw, 2.5rem) !important; }

/* ---------- Industry tabs ---------- */
.tabs { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.tab-list { display: flex; flex-direction: column; gap: .35rem; }
.tab {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  text-align: left; width: 100%;
  padding: 1.05rem 1.15rem; border-radius: 12px;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 1.02rem; color: var(--darkness);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tab:hover { background: var(--white); border-color: var(--hairline); }
.tab[aria-selected="true"] { background: var(--brand-blue); color: var(--white); }
.tab svg { width: 16px; height: 16px; opacity: 0; transition: opacity .2s ease, transform .2s var(--ease); }
.tab[aria-selected="true"] svg { opacity: 1; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; background: var(--white); border-radius: var(--radius-card); padding: clamp(1rem, 2vw, 1.5rem); }
.tab-panel[hidden] { display: none; }
.tab-media { border-radius: var(--radius-tile); overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--surface); }
.tab-media img, .tab-media video { width: 100%; height: 100%; object-fit: cover; }
.tab-copy { padding: .5rem clamp(0rem, 2vw, 1.5rem) .5rem 0; }
.tab-copy small { font-weight: 600; font-size: var(--fs-sm); color: var(--brand-blue); }
.tab-copy h3 { font-size: var(--fs-2xl); margin: .6rem 0 1rem; }
.tab-copy p { color: var(--muted); }
.tab-copy .text-link { margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel:not([hidden]) .tab-media img, .tab-panel:not([hidden]) .tab-media video { animation: settle .7s var(--ease) both; }
  .tab-panel:not([hidden]) .tab-copy { animation: rise .5s var(--ease) both; }
}
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: none; width: auto; white-space: nowrap; }
  .tab svg { display: none; }
  .tab-panel { grid-template-columns: 1fr; }
  .tab-media { aspect-ratio: 16 / 10; }
}

/* ---------- Investigation demo ---------- */
.investigate-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.steps { margin-top: 2.5rem; display: grid; gap: .5rem; }
.step {
  display: flex; gap: 1.1rem; align-items: flex-start; width: 100%; text-align: left;
  color: inherit; background: transparent; border: 0; border-left: 3px solid var(--hairline-light);
  padding: 1rem 1rem 1rem 1.25rem; cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.step:hover { background: rgba(255, 255, 255, .06); }
.step[aria-current="step"] { border-left-color: var(--sunshine); background: rgba(255, 255, 255, .08); }
.step-num { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); font-weight: 700; font-size: .9rem; }
.step[aria-current="step"] .step-num { background: var(--sunshine); border-color: var(--sunshine); color: var(--darkness); }
.step-text { display: grid; gap: .2rem; }
.step-text strong { font-weight: 700; font-size: 1.05rem; }
.step-text span { color: rgba(255, 255, 255, .78); font-size: .96rem; }

.demo {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--white); color: var(--darkness);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  --focus: var(--sea-blue);
}
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--hairline); font-size: var(--fs-sm); }
.crumbs { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.crumbs button { color: var(--brand-blue); background: none; border: 0; cursor: pointer; padding: .15rem .3rem; border-radius: 4px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.crumbs [aria-current="page"] { font-weight: 700; padding: .15rem .3rem; }
.crumbs .sep { opacity: .5; }
.demo-tag { flex: none; padding: .2rem .6rem; border: 1px solid var(--hairline); border-radius: 999px; font-size: .78rem; color: var(--muted); }
.demo-head { padding: 1.5rem 1.5rem .5rem; }
.demo-title { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.demo-sub { color: var(--muted); font-size: var(--fs-sm); margin-top: .25rem; }
.demo-body { padding: 1rem 1.5rem 1.25rem; min-height: 290px; }
.demo-prompt { margin: 0 1.5rem 1.5rem; padding: .9rem 1rem; background: var(--surface-blue); border-left: 3px solid var(--brand-blue); font-size: .96rem; font-weight: 500; }
.bars { display: grid; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 4.5rem; align-items: center; gap: 1rem; width: 100%; color: inherit; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: .55rem .6rem; }
button.bar-row { cursor: pointer; }
button.bar-row:hover { background: var(--surface); border-color: var(--hairline); }
.bar-label { font-weight: 600; font-size: .95rem; }
.bar-track { display: block; height: 20px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); background: var(--sea-blue); transition: width .6s var(--ease); }
.bar-row.is-outlier .bar-fill { background: var(--brand-blue); }
.bar-row.is-outlier .bar-label::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sea-green); margin-left: .45rem; vertical-align: middle; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-size: .92rem; }
.bar-value b { display: block; }
.bar-value small { font-size: .8rem; color: var(--muted); }
.bar-value .neg { color: var(--brand-blue); font-weight: 700; }
.drivers { display: grid; gap: .7rem; }
.driver { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 3.5rem; gap: 1rem; align-items: center; font-size: .95rem; }
.driver-axis { position: relative; height: 20px; background: linear-gradient(var(--hairline), var(--hairline)) 50% 0 / 1px 100% no-repeat; }
.driver-fill { position: absolute; top: 3px; bottom: 3px; background: var(--brand-blue); border-radius: 2px; }
.driver-fill.pos { background: var(--sea-green); }
.driver-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.apply label { display: block; font-weight: 600; margin-bottom: .5rem; }
.apply textarea { width: 100%; min-height: 140px; font: inherit; font-size: .96rem; line-height: 1.55; padding: .9rem 1rem; border: 1px solid var(--tech-gray); border-radius: 10px; resize: vertical; color: var(--darkness); }
.apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.apply-status { font-weight: 600; color: var(--brand-blue); }
.link-btn { font-weight: 600; color: var(--brand-blue); background: none; border: 0; padding: .4rem .2rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .investigate-grid { grid-template-columns: 1fr; } .demo { position: relative; top: 0; } }
@media (max-width: 520px) {
  .bar-row { grid-template-columns: 5.4rem minmax(0, 1fr) 4rem; gap: .6rem; }
  .driver { grid-template-columns: 1fr 3.5rem; }
  .driver-axis { grid-column: 1 / -1; grid-row: 2; }
  .demo-head, .demo-body { padding-inline: 1rem; } .demo-prompt { margin-inline: 1rem; }
}

/* ---------- Feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card {
  position: relative; background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.bg-surface .card { border-color: transparent; }
.card:hover { border-color: rgba(0, 65, 129, .35); transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(0, 38, 77, .45); }
.card-icon { width: 52px; height: 52px; margin-bottom: 1.25rem; }
.card-icon img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 1rem; }
.card ul.ticks { margin-top: 1rem; }
.bg-blue .card, .bg-navy .card { background: rgba(255, 255, 255, .06); border-color: var(--hairline-light); color: var(--white); }
.bg-blue .card p, .bg-navy .card p { color: rgba(255, 255, 255, .82); }
.bg-blue .card:hover, .bg-navy .card:hover { border-color: rgba(255, 255, 255, .5); box-shadow: none; }

.ticks li { position: relative; padding-left: 1.75rem; margin-top: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--sea-green); border-bottom: 2.5px solid var(--sea-green); transform: rotate(-45deg); }
.on-dark .ticks li::before, .bg-blue .ticks li::before, .bg-navy .ticks li::before { border-color: var(--bright-green); }
.two-col-list { columns: 2 18rem; column-gap: 2.5rem; }
.two-col-list li { break-inside: avoid; }

/* Numbered or icon list rows */
.rows { border-top: 1px solid var(--hairline); }
.rows > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem 2.5rem; padding-block: 1.6rem; border-bottom: 1px solid var(--hairline); }
.rows h3 { font-size: 1.15rem; line-height: 1.35; }
.rows p { color: var(--muted); }
.bg-blue .rows, .bg-navy .rows { border-color: var(--hairline-light); }
.bg-blue .rows > div, .bg-navy .rows > div { border-color: var(--hairline-light); }
.bg-blue .rows p, .bg-navy .rows p { color: rgba(255, 255, 255, .84); }
@media (max-width: 640px) { .rows > div { grid-template-columns: 1fr; gap: .4rem; } }

/* Process timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: phase; }
.phase { position: relative; padding: 2rem; border-radius: var(--radius-card); background: var(--white); border: 1px solid var(--hairline); }
.phase::before { counter-increment: phase; content: counter(phase); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-blue); color: var(--white); font-weight: 700; margin-bottom: 1.25rem; }
.phase h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.phase p { color: var(--muted); }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }

/* Pillar tiles (drivers, "what moved") */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pillar { padding: 1.75rem; border-radius: var(--radius-card); background: var(--white); }
.pillar h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.pillar li { color: var(--muted); padding: .35rem 0; border-top: 1px solid var(--hairline); font-size: .96rem; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat { padding: 1.75rem; border-radius: var(--radius-card); background: var(--surface); }
.stat b { display: block; font-size: var(--fs-3xl); line-height: 1; letter-spacing: -0.04em; color: var(--brand-blue); }
.stat span { display: block; margin-top: .6rem; color: var(--muted); font-size: .96rem; line-height: 1.45; }
.bg-blue .stat, .bg-navy .stat { background: rgba(255, 255, 255, .08); }
.bg-blue .stat b, .bg-navy .stat b { color: var(--white); }
.bg-blue .stat span, .bg-navy .stat span { color: rgba(255, 255, 255, .8); }

/* ---------- Logo grid ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.logo-cell { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1.25rem 1.5rem; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--white); transition: background-color .25s ease; }
.logo-cell img { max-height: 64px; max-width: 78%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .3s ease, opacity .3s ease, transform .3s var(--ease); }
.logo-cell:hover, .logo-cell:focus-within { background: var(--surface); }
.logo-cell:hover img, .logo-cell:focus-within img { filter: none; opacity: 1; transform: scale(1.06); }
@media (hover: none) { .logo-cell img { filter: none; opacity: 1; } }
@media (max-width: 1000px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Testimonial ---------- */
.quote-block { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quote-block blockquote { margin: 0; }
.quote-block blockquote p { font-size: var(--fs-2xl); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.quote-mark { width: 54px; height: 40px; color: var(--sea-green); margin-bottom: 1.5rem; }
.quote-block figcaption { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.quote-block figcaption img { width: 150px; }
.quote-block figcaption span { display: grid; }
.quote-block figcaption small { color: var(--muted); font-size: .95rem; }
.on-dark .quote-block figcaption small, .bg-blue .quote-block figcaption small { color: rgba(255, 255, 255, .75); }
.quote-photo { border-radius: var(--radius-tile); overflow: hidden; }
.quote-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .quote-block { grid-template-columns: 1fr; } .quote-photo { max-width: 360px; } }

.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.voice { padding: 2rem; border-radius: var(--radius-card); background: var(--white); display: flex; flex-direction: column; }
.voice p { font-size: 1.05rem; line-height: 1.6; }
.voice footer { margin-top: auto; padding-top: 1.5rem; font-size: .95rem; }
.voice footer small { display: block; color: var(--muted); }

/* ---------- Story cards (case studies, blog, events) ---------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.story-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius-card); background: var(--white); overflow: hidden; border: 1px solid var(--hairline); transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.bg-surface .story-card { border-color: transparent; }
.story-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(0, 38, 77, .5); }
.story-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-blue); }
.story-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-card:hover .thumb img { transform: scale(1.05); }
.story-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.story-card small { font-weight: 600; color: var(--brand-blue); font-size: .85rem; }
.story-card h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.story-card p { color: var(--muted); font-size: .98rem; }
.story-card .more { margin-top: auto; padding-top: .75rem; font-weight: 700; color: var(--brand-blue); display: inline-flex; gap: .45rem; align-items: center; }
.story-card .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.story-card:hover .more svg { transform: translateX(3px); }
.story-card.is-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.story-card.is-feature .thumb { aspect-ratio: auto; min-height: 320px; }
.story-card.is-feature .body { padding: clamp(1.75rem, 3vw, 3rem); justify-content: center; }
.story-card.is-feature h3 { font-size: var(--fs-2xl); }
@media (max-width: 800px) { .story-card.is-feature { grid-template-columns: 1fr; } .story-card.is-feature .thumb { min-height: 220px; } }
.metric-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.metric-chips span { font-size: .82rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-blue); color: var(--brand-blue); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font-weight: 600; font-size: .92rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--hairline); background: var(--white); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand-blue); color: var(--white); border-color: var(--brand-blue); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; font-weight: 700; font-size: 1.12rem; line-height: 1.35; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brand-blue); position: relative; transition: transform .25s var(--ease), background-color .2s ease; }
.accordion summary .plus::before, .accordion summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--brand-blue); transform: translate(-50%, -50%); }
.accordion summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s ease; }
.accordion details[open] .plus { background: var(--brand-blue); transform: rotate(180deg); }
.accordion details[open] .plus::before { background: var(--white); }
.accordion details[open] .plus::after { opacity: 0; }
.accordion .answer { padding: 0 3rem 1.5rem 0; color: var(--muted); max-width: 72ch; }
.accordion .answer p + p, .accordion .answer ul { margin-top: .75rem; }
.bg-blue .accordion, .bg-blue .accordion details { border-color: var(--hairline-light); }
.bg-blue .accordion .plus { border-color: var(--white); }
.bg-blue .accordion .plus::before, .bg-blue .accordion .plus::after { background: var(--white); }
.bg-blue .accordion details[open] .plus { background: var(--white); }
.bg-blue .accordion details[open] .plus::before { background: var(--brand-blue); }
.bg-blue .accordion .answer { color: rgba(255, 255, 255, .85); }

/* ---------- Callout band ---------- */
.band { position: relative; overflow: hidden; border-radius: 24px; background: var(--brand-blue); color: var(--white); padding: clamp(2.5rem, 5vw, 4.5rem); --focus: var(--sunshine); }
.band h2 { font-size: var(--fs-2xl); max-width: 26ch; }
.band p { color: rgba(255, 255, 255, .86); max-width: 58ch; margin-top: 1rem; font-size: var(--fs-lg); line-height: 1.55; }
.band .element { position: absolute; right: -30px; bottom: -30px; width: clamp(140px, 18vw, 240px); opacity: .18; }
.band > *:not(.element) { position: relative; }

/* ---------- CTA and footer ---------- */
.cta-final { background: var(--darkness); color: var(--white); padding-block: var(--section); position: relative; overflow: hidden; --focus: var(--sunshine); }
.cta-final .h-section { max-width: 18ch; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; align-items: end; }
.cta-contact { font-style: normal; display: grid; gap: .9rem; }
.cta-contact a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sea-green); justify-self: start; }
.cta-final .element { position: absolute; right: var(--gutter); top: 2.5rem; width: clamp(80px, 10vw, 140px); opacity: .12; }
@media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; } }

.site-footer { background: var(--darkness); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 4rem 2rem; font-size: .95rem; --focus: var(--sunshine); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand img { width: 140px; margin-bottom: 1.1rem; }
.footer-brand p { color: rgba(255, 255, 255, .72); max-width: 28ch; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .65); font-size: .88rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal li + li { margin-top: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; background: var(--white); color: var(--darkness); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-card); border: 1px solid var(--hairline); --focus: var(--sea-blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1px solid var(--tech-gray); border-radius: 10px; background: var(--white); color: var(--darkness); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--sea-blue); }
.field .error { display: none; color: #b3261e; font-size: .88rem; margin-top: .35rem; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field.has-error .error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; padding: 1.25rem; border-radius: 12px; background: var(--surface-blue); border-left: 4px solid var(--sea-green); font-weight: 600; }
.form.is-sent .form-success { display: block; }
.form.is-sent .form-fields { display: none; }
.form-fields { display: grid; gap: 1.1rem; }

/* ---------- Guide page ---------- */
.guide-cover { position: relative; }
.guide-cover .book {
  aspect-ratio: 8.5 / 11; max-width: 360px; margin-inline: auto;
  border-radius: 6px 18px 18px 6px; background: var(--white); color: var(--darkness);
  box-shadow: 18px 24px 50px -18px rgba(0, 0, 0, .55); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-3deg);
}
.guide-cover .book img.logo { width: 110px; }
.guide-cover .book h3 { font-size: 1.7rem; line-height: 1.1; color: var(--brand-blue); }
.guide-cover .book .bar { height: 6px; width: 60px; background: var(--sea-green); }
.guide-cover .book img.el { width: 90px; align-self: flex-end; }

/* ---------- Reveal on scroll (subtle, one-time) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; } .center .h-section, .center .lede { margin-inline: auto; }
.max-60 { max-width: 60ch; }
.divider { height: 1px; background: var(--hairline); margin-block: 3rem; }

.card-grid.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid.five > * { grid-column: span 2; }
.card-grid.five > :nth-child(-n+2) { grid-column: span 3; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .card-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-grid.five > *, .card-grid.five > :nth-child(-n+2) { grid-column: auto; } .card-grid.five > :last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .card-grid.four, .card-grid.five { grid-template-columns: 1fr; } }
.tab-copy h3 { font-size: var(--fs-xl); }
@media (max-width: 560px) {
  .pairing ul li { font-size: 1.15rem; }
  .pairing > div { padding: 1.4rem; }
  .btn-row .btn { width: 100%; }
}

/* Concept notice */
.concept-note{background:#0b1f3a;color:#fff;font-size:13px;line-height:1.4;text-align:center;padding:8px 16px}
