/* =========================================================================
   AnchorSOL® Wall, T1 Navy
   Design tokens + components per handoff/01-design-tokens.md and T1-navy.html.
   ========================================================================= */

/* -------- Tokens -------- */
:root {
  --bg:           #0a1426;
  --bg-2:         #060d1a;
  --bg-surface:   #0d1a30;
  --bg-surface-2: #0c1730;
  --ink:          #f4efe2;
  --mut:          rgba(244,239,226,.7);
  --mut-2:        rgba(244,239,226,.55);
  --hi:           #f4efe2;
  --amber:        #d4a23a;
  --rule:         rgba(255,255,255,.08);

  --ff-display:   "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ff-body:      "Archivo", system-ui, -apple-system, sans-serif;

  --container:    1320px;  /* tighter than before so wide screens get gutter */
  --container-x:  56px;
  --header-h:     124px; /* topbar 38 + nav 86 */
  --ease:         cubic-bezier(.2,.7,.3,1);

  /* legacy bridge so inner-page CSS keeps working without re-authoring */
  --c-navy-900:   var(--bg-2);
  --c-navy-800:   var(--bg);
  --c-navy-700:   #1c2942;
  --c-navy-500:   var(--mut-2);
  --c-amber-600:  var(--amber);
  --c-amber-500:  #e6b552;
  --c-amber-100:  rgba(212,162,58,.15);
  --c-bg:         var(--bg);
  --c-bg-soft:    var(--bg-surface);
  --c-bg-warm:    var(--bg-surface-2);
  --c-text:       var(--ink);
  --c-text-muted: var(--mut);
  --c-text-subtle: var(--mut-2);
  --c-border:     var(--rule);
  --c-border-strong: rgba(244,239,226,.18);
  --radius-sm:    0;
  --radius:       0;
  --radius-lg:    0;
  --shadow-sm:    none;
  --shadow:       none;
  --shadow-lg:    none;
  --container-narrow: 1100px;
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
html, body { margin: 0; padding: 0; }
/* Hard rule: page must never scroll horizontally on any device. */
html, body { overflow-x: hidden; max-width: 100vw; }
/* Anywhere we use CSS grid with implicit min-content sizing, allow shrink */
.hero, .split, .anatomy, .vs, .apps, .caps-grid, .lean-grid,
.proj, .gallery-grid, .footer .grid, .cta__in, .strip__in,
.compare__grid, .contact-layout, .about-grid,
.mse__principle, .mse__metrics, .lean-process__strip, .vs-others__grid,
.kb-cards, .kb-resources {
  min-width: 0;
}
.hero > *, .split > *, .anatomy > *, .vs > *, .apps > *, .caps-grid > *,
.lean-grid > *, .proj > *, .gallery-grid > *, .footer .grid > *,
.cta__in > *, .compare__grid > *, .contact-layout > *, .about-grid > *,
.mse__principle > *, .mse__metrics > *, .lean-process__strip > *,
.vs-others__grid > *, .kb-cards > *, .kb-resources > * {
  min-width: 0;
}
img, video, iframe { max-width: 100%; height: auto; }
body {
  /* Blueprint paper background, navy with engineering grid lines.
     Two layers: fine 24px grid + major 120px grid + a soft radial
     glow so the page reads like a working draft, not a flat canvas. */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 162, 58, .06), transparent 60%),
    linear-gradient(rgba(244, 239, 226, .035) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(244, 239, 226, .035) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(244, 239, 226, .015) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 239, 226, .015) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }

/* -------- Utilities -------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--container-x); }
/* Wide and ultra-wide screens, scale gutters up so content sits with
   breathing room instead of looking stretched. */
@media (min-width: 1600px) { :root { --container-x: 80px; } }
@media (min-width: 1920px) { :root { --container-x: 112px; --container: 1480px; } }
@media (min-width: 2400px) { :root { --container-x: 160px; --container: 1560px; } }
.mono { font-family: var(--ff-mono); letter-spacing: .04em; }
.ucase { text-transform: uppercase; letter-spacing: .08em; }
.skip { position: absolute; left: -9999px; top: 0; padding: .75rem 1rem; background: var(--bg-2); color: var(--ink); z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 900;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: pretty;
  color: var(--ink);
}
p { color: var(--mut); }

/* -------- Buttons (T1-navy) -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--p { background: var(--hi); color: var(--bg); }
.btn--p:hover { background: #ffffff; }
.btn--g { color: #fff; border-color: rgba(255,255,255,.25); }
.btn--g:hover { border-color: rgba(255,255,255,.5); }
/* Legacy aliases */
.btn--primary { background: var(--hi); color: var(--bg); }
.btn--primary:hover { background: #ffffff; }
.btn--dark { background: var(--bg-2); color: var(--ink); border-color: var(--rule); }
.btn--dark:hover { background: var(--bg-surface); }
.btn--ghost { color: var(--ink); border-color: rgba(255,255,255,.25); }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.25); }
.btn--ghost-light:hover { border-color: rgba(255,255,255,.5); }
.arrow { font-family: var(--ff-mono); }

/* Text link with arrow (legacy) */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hi);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.tlink:hover { border-bottom-color: var(--hi); }

/* -------- TopBar -------- */
.top { background: var(--bg-2); border-bottom: 1px solid var(--rule); }
.top__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.top .live { color: var(--amber); display: inline-flex; align-items: center; gap: 8px; }
.top .live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* -------- Nav (modernized, sticky w/ blur, animated hover) -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 38, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(212, 162, 58, .25);
  transition: background .25s ease, padding .25s ease, border-color .25s ease;
}
.nav.scrolled {
  background: rgba(6, 13, 26, .92);
  border-bottom-color: rgba(212, 162, 58, .5);
}
/* Centered brand mark, nav links stacked below on desktop, hidden on mobile.
   The bottom tab bar replaces all nav on tablet/mobile, so the top simply
   becomes a clean centered logo, very Apple-style. */
.nav__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 14px;
  transition: padding .25s ease, gap .25s ease;
}
.nav.scrolled .nav__in { padding: 10px 0 8px; gap: 10px; }

.brand { display: flex; align-items: center; gap: 14px; transition: transform .25s ease; justify-content: center; text-align: left; }
.brand:hover { transform: translateY(-1px); }
.brand img {
  height: 56px;
  width: auto;
  display: block;
  transition: height .25s ease;
}
.nav.scrolled .brand img { height: 44px; }
.brand .wm {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: font-size .25s ease;
}
.nav.scrolled .brand .wm { font-size: 17px; }
.brand .wm sup { font-size: 10px; font-weight: 700; vertical-align: super; color: var(--amber); }
.brand .wm small {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--hi);
  text-transform: uppercase;
  opacity: .8;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .82);
}
/* Mobile and tablet: bottom tab bar handles navigation, hide the
   inline horizontal nav links entirely so the top stays clean. */
@media (max-width: 1100px) {
  .nav__links { display: none; }
}
.nav__links a {
  position: relative;
  padding: 10px 14px;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.nav__links a:hover { color: var(--hi); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] {
  color: var(--hi);
}
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}

.nav__cta {
  padding: 13px 20px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--amber);
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 0 rgba(212, 162, 58, 0);
}
.nav__cta:hover {
  background: var(--hi);
  color: var(--bg);
  border-color: var(--hi);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 162, 58, .4);
}

/* -------- Footer logo block -------- */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
  transition: opacity .15s ease;
}
.footer-logo:hover { opacity: .85; }
.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-logo__wm {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-logo__wm sup { font-size: 9px; font-weight: 700; vertical-align: super; color: var(--amber); }
.footer-logo__wm small {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--hi);
  text-transform: uppercase;
  opacity: .7;
}
.footer-blurb {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mut);
  margin: 0;
}

/* -------- Mobile nav toggle (hamburger button) -------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover, .nav-toggle:focus-visible {
  border-color: var(--amber);
  background: rgba(212, 162, 58, .08);
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: background .25s ease; }
.nav-toggle__bar::before, .nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0; width: 22px; height: 2px;
  background: var(--ink);
  transition: top .25s ease, transform .25s ease;
}
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); background: var(--amber); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); background: var(--amber); }

/* -------- Mobile nav: full-screen overlay (modern UX) -------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 26, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90;
  padding: 96px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(244, 239, 226, .08);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease, padding-left .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav a::after {
  content: "→";
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: 18px;
  color: var(--amber);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible, .mobile-nav a:active {
  color: var(--amber);
  padding-left: 8px;
}
.mobile-nav a:hover::after, .mobile-nav a:focus-visible::after, .mobile-nav a:active::after {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav .btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 18px 24px;
}
.mobile-nav__contact {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: center;
  line-height: 1.7;
}
.mobile-nav__contact a {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--ff-mono) !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  color: var(--amber) !important;
}
.mobile-nav__contact a::after { display: none !important; }

/* Lock body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

/* -------- Hero -------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 720px;
  max-height: 86vh;
  border-bottom: 1px solid var(--rule);
}
/* On wide screens, give the hero a centered container with side gutters.
   The video stretches further left (wider visible area) and the text
   floats above the first ~40% of it via z-index + gradient backdrop.
   More overlap, more cinematic. */
@media (min-width: 1101px) {
  .hero {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--container-x);
    grid-template-columns: 0.85fr 1.15fr;
    border-bottom: 0;
    background: transparent;
  }
  .hero__l {
    z-index: 3;
    position: relative;
    padding: 80px 0 80px 0;
    max-width: 700px;
    /* Push the text rightward INTO the video column for more overlap */
    margin-right: -180px;
  }
  /* Soft navy backdrop that fades through the overlap region.
     Solid on the left, gentle fade on the right edge to keep
     text readable while letting the video texture show through. */
  .hero__l::after {
    content: "";
    position: absolute;
    inset: -80px -240px -80px -60vw;
    background: linear-gradient(90deg,
      var(--bg) 0%,
      var(--bg) 60%,
      rgba(10, 20, 38, .92) 75%,
      rgba(10, 20, 38, .6) 86%,
      rgba(10, 20, 38, 0) 100%);
    z-index: -1;
    pointer-events: none;
  }
}
@media (min-width: 1600px) {
  .hero {
    grid-template-columns: 0.78fr 1.22fr;
    min-height: 640px;
    max-height: 78vh;
  }
  .hero__l {
    padding: 96px 0 96px 0;
    margin-right: -220px;
    max-width: 760px;
  }
}
@media (min-width: 1920px) {
  .hero { max-height: 720px; }
  .hero__l {
    padding: 104px 0 104px 0;
    max-width: 800px;
    margin-right: -260px;
  }
}
.hero__l {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
  max-width: calc(var(--container) * .55);
}
.hero__r { position: relative; z-index: 1; }
@media (min-width: 1101px) {
  .hero h1 { font-size: clamp(72px, 6.5vw, 100px); }
}
@media (min-width: 1600px) {
  .hero h1 { font-size: 104px; }
}
.hero__l::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,.022) 24px 25px);
  pointer-events: none;
}
.rank {
  display: inline-flex;
  align-self: flex-start;
  align-items: stretch;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.2);
  position: relative;
}
.rank b { background: var(--hi); color: var(--bg); padding: 7px 12px; font-weight: 900; }
.rank span { padding: 7px 14px; color: rgba(255,255,255,.85); }
.hero h1 {
  font-weight: 900;
  font-size: 104px;
  line-height: .88;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin: 8px 0 0;
  position: relative;
  text-wrap: pretty;
}
.hero h1 .row { display: block; }
.hero h1 .row.hi { color: var(--hi); }
.hero h1 .row.out { -webkit-text-stroke: 2px var(--amber); color: transparent; }
.hero p.lede {
  font-size: 17px;
  line-height: 1.5;
  max-width: 46ch;
  color: var(--mut);
  margin: 8px 0 0;
  position: relative;
}
.hero p.lede b { color: #fff; }
.hero__btns { display: flex; gap: 0; margin-top: 16px; position: relative; }
.hero__btns .btn--g { border-left: 0; }

.hero__r { position: relative; overflow: hidden; border-left: 1px solid var(--rule); }
.caution {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background-image: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--bg) 14px 28px);
  z-index: 2;
}
.hero__r > img, .hero__r > video { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) brightness(.78) saturate(.95); }
.hero__r > video { display: block; }

/* DataPin */
.pin {
  position: absolute;
  padding: 8px 12px;
  background: rgba(6,13,26,.85);
  border: 1px solid var(--amber);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}
.pin b { color: var(--amber); }
.pin--a { top: 64px; left: 32px; }
.pin--b { top: 48%; right: 32px; }

/* ImageOverlay (NKVE card) */
.ovl {
  position: absolute;
  left: 32px; right: 32px; bottom: 32px;
  background: rgba(6,13,26,.9);
  border-left: 3px solid var(--amber);
  padding: 18px 22px;
  z-index: 3;
}
.ovl h4 { margin: 0 0 6px; font-weight: 900; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.ovl p {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}
.ovl p b { color: var(--amber); }

/* -------- Client strip -------- */
.strip { background: var(--bg-2); padding: 24px 0; border-bottom: 1px solid var(--rule); }
.strip__in {
  display: grid;
  grid-template-columns: auto repeat(6, 1fr);
  gap: 24px;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.strip__in .lbl { color: var(--hi); }
.strip__in b { color: #fff; }

/* -------- Section shell -------- */
section { padding: 96px 0; border-bottom: 1px solid var(--rule); position: relative; }
section.cta-band, section.cta { padding: 120px 0; }
section.hero { padding: 0; }

.secmark {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 32px;
}
.secmark .num { color: var(--hi); }
.secmark .rule { flex: 1; height: 1px; background: var(--rule); }
/* Section number eyebrows replaced with SVG icons */
.secmark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--amber);
  color: var(--amber);
  flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.secmark__icon svg { width: 18px; height: 18px; }
.secmark:hover .secmark__icon { border-color: var(--hi); color: var(--hi); }

.sechead {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: end;
}
.sechead h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: .98;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.sechead h2 .hi { color: var(--hi); }
.sechead h2 .out { -webkit-text-stroke: 2px var(--amber); color: transparent; }
.sechead p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--mut); max-width: 48ch; }
.sechead p b { color: #fff; }

/* -------- MSE Wall, Explained (homepage section 00) -------- */
.mse { padding-top: 96px; padding-bottom: 96px; background: var(--bg-2); }
.mse__principle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}
.mse__txt h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 12px 0 18px;
}
.mse__txt p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mut);
  margin: 0 0 18px;
}
.mse__txt p b { color: var(--ink); }
.mse__lead {
  border-left: 3px solid var(--amber);
  padding: 12px 0 12px 18px;
  margin-top: 8px !important;
  background: var(--bg-surface);
}
.mse__pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mse__pic {
  position: relative;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.mse__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
/* zoom-on-hover removed */
.mse__pic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(to top, rgba(10,20,38,.92) 60%, rgba(10,20,38,0));
}
.mse__pic figcaption b {
  color: var(--amber);
  font-family: var(--ff-mono);
  margin-right: 8px;
}

.mse__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mse__metric {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mse__metric:last-child { border-right: 0; }
.mse__metric-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 44px;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--amber);
}
.mse__metric-lbl {
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--mut);
}

@media (max-width: 1000px) {
  .mse__principle { grid-template-columns: 1fr; gap: 48px; }
  .mse__metrics { grid-template-columns: 1fr; }
  .mse__metric { border-right: 0; border-bottom: 1px solid var(--rule); }
  .mse__metric:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .mse__pics { grid-template-columns: 1fr; }
  .mse__txt h3 { font-size: 24px; }
}

/* -------- Anatomy (homepage section 01) -------- */
.anatomy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.anat__svg {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  position: relative;
  aspect-ratio: 1 / .9;
}
.anat__svg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.anat__svg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.anat__list { display: flex; flex-direction: column; }
.anat__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.anat__item:last-child { border-bottom: 1px solid var(--rule); }
.anat__num {
  width: 36px; height: 36px;
  border: 1px solid var(--hi);
  color: var(--hi);
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.anat__b h4 { margin: 0 0 8px; font-weight: 900; font-size: 22px; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
.anat__b p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mut); }
.anat__b p b { color: #fff; }
.anat__spec {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--hi);
  text-align: right;
  text-transform: uppercase;
  line-height: 1.5;
}

/* -------- Panel Feature Spotlight (homepage section 01b) -------- */
.panel-spotlight { margin-top: 72px; }
.anat-subhead { margin-bottom: 32px; }
.anat-subhead .tech-label { color: var(--amber); display: block; margin-bottom: 12px; }
.anat-subhead h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 16ch;
}
.anat-subhead h3 .hi { color: var(--hi); }
.anat-subhead p { font-size: 15px; line-height: 1.6; color: var(--mut); margin: 0; max-width: 56ch; }
.anat-subhead p b { color: var(--ink); }
@media (max-width: 700px) { .anat-subhead h3 { font-size: 32px; } }

/* -------- Compare table (homepage section 02) -------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); }
.vs__col { padding: 32px; }
.vs__col--us { background: var(--bg-surface); border-right: 2px solid var(--hi); }
.vs__col--them { background: transparent; color: var(--mut); }
.vs__col h3 { margin: 0 0 6px; font-weight: 900; font-size: 24px; letter-spacing: -.01em; text-transform: uppercase; }
.vs__col--us h3 { color: #fff; }
.vs__col .tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hi);
  margin-bottom: 24px;
  display: block;
}
.vs__col--them .tag { color: rgba(255,255,255,.4); }
.vs__row {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
}
.vs__row:first-of-type { border-top: 0; }
.vs__row b { font-weight: 700; color: #fff; }
.vs__col--them .vs__row b { color: var(--mut); }
.vs__chip {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 4px 8px;
  background: rgba(244,239,226,.08);
  color: var(--hi);
  border: 1px solid var(--hi);
  text-transform: uppercase;
  letter-spacing: .08em;
  align-self: start;
  white-space: nowrap;
}
.vs__col--them .vs__chip { background: transparent; color: rgba(255,255,255,.45); border-color: rgba(255,255,255,.2); }

/* -------- Applications grid (homepage section 03) -------- */
.apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px)  { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .apps { grid-template-columns: repeat(3, 1fr); } }

/* Photo-rich app card */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  overflow: hidden;
  transition: border-left-color .2s ease, transform .2s ease, background .2s ease;
}
.app:hover {
  border-left-color: var(--hi);
  transform: translateY(-2px);
  background: var(--bg-surface-2);
}
.app__icon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--bg);
  transition: background .2s ease;
}
.app__icon svg { width: 24px; height: 24px; display: block; }
.app:hover .app__icon { background: var(--hi); }
.app__media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg);
}
.app__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.05);
  transition: transform .4s ease;
}
/* zoom-on-hover removed */
.app__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.app__body h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
}
.app__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mut);
  flex: 1;
}
.app__arr {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-top: 8px;
  transition: color .15s ease, transform .2s ease;
  display: inline-block;
}
.app:hover .app__arr { color: var(--hi); transform: translateX(3px); }
@media (max-width: 700px) {
  .app__media { height: 200px; }
  .app__body { padding: 20px; }
  .app__body h4 { font-size: 20px; }
}

/* -------- Capabilities showcase [03b] -------- */
.caps { background: var(--bg-2); }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  padding: 0 0 28px;
  transition: border-left-color .2s ease, transform .2s ease;
}
.cap:hover { border-left-color: var(--hi); transform: translateY(-2px); }
.cap__media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg);
}
.cap__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.05);
  transition: transform .4s ease;
}
/* zoom-on-hover removed */
.cap__eyebrow {
  display: inline-block;
  margin: 0 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
}
.cap__stat {
  margin: 8px 28px 12px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
}
.cap__unit {
  font-size: .55em;
  color: var(--mut-2);
  font-weight: 500;
  margin-left: 4px;
}
.cap__amp {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: .55em;
  color: var(--mut-2);
  text-transform: lowercase;
  letter-spacing: 0;
}
.cap__sub {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 500;
  color: var(--mut-2);
  margin-top: 8px;
  text-transform: uppercase;
}
.cap__cap {
  margin: 0 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mut);
}

@media (max-width: 1100px) { .caps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .caps-grid { grid-template-columns: 1fr; } .cap__stat { font-size: 28px; } }

/* -------- Applications brochure quote -------- */
.apps-quote {
  margin: 56px 0 0;
  padding: 36px 48px;
  background: var(--bg-surface);
  border-left: 4px solid var(--amber);
  text-align: left;
}
.apps-quote p {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.apps-quote .hi { color: var(--hi); font-weight: 900; }
.apps-quote .tech-label {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
}
.apps-quote p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .apps-quote { padding: 28px 24px; }
  .apps-quote p { font-size: 20px; }
}

/* -------- Projects masonry (homepage section 04) -------- */
.proj {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.proj__lead { grid-column: span 2; grid-row: span 2; }
.proj__t { grid-column: span 1; grid-row: span 1; }
.proj__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.proj--legacy {
  /* keep backwards-compat for old 6-col masonry */
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 8px;
}
.proj a {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--bg-surface);
}
.proj img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.05);
  transition: filter .15s ease;
}
.proj a:hover img { filter: saturate(1.05) contrast(1.05); }
.proj a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85));
}
.proj__cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.proj__cap h5 { margin: 0 0 4px; font-weight: 900; font-size: 16px; letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.proj__cap span { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--hi); }
/* Lead tile gets a stronger amber border on hover */
.proj__lead { box-shadow: inset 0 0 0 0 var(--amber); transition: box-shadow .25s ease; }
.proj__lead:hover { box-shadow: inset 0 0 0 3px var(--amber); }
.proj__lead .proj__cap h5 { font-size: 24px; }

/* Auxiliary note under the projects grid (e.g. crib walls mention) */
.proj-aux {
  margin: 40px auto 0;
  padding: 18px 24px;
  max-width: 720px;
  background: var(--bg-surface);
  border-left: 2px solid var(--mut-2);
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mut);
}
.proj-aux .tech-label {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
}
.proj-aux b { color: var(--ink); }

/* -------- Brochure download card -------- */
.brochure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  transition: background .15s ease;
}
.brochure:hover { background: var(--bg-surface-2); }
@media (min-width: 800px) { .brochure { grid-template-columns: 1fr auto; gap: 48px; } }

.brochure__l h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(22px, 1.5vw + 1rem, 32px);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 8px 0 8px;
}
.brochure__l p { font-size: 14px; line-height: 1.55; color: var(--mut); max-width: 56ch; }

.brochure__r {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--hi);
  color: var(--bg);
  transition: background .15s ease;
}
.brochure:hover .brochure__r { background: #ffffff; }
.brochure__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--bg);
  color: var(--bg);
}
.brochure__cta {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  line-height: 1.2;
}
.brochure__cta b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-top: 2px;
}

/* -------- [03] Lean / Modular / Mobile section -------- */
.lean-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 64px;
}
@media (min-width: 700px)  { .lean-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lean-grid { grid-template-columns: repeat(4, 1fr); } }
.lean-card {
  background: var(--bg-surface-2);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
}
.lean-card__num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(32px, 2.5vw, 44px);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--hi);
  margin-bottom: 4px;
}
.lean-card__num .unit { color: var(--mut-2); font-size: .55em; font-weight: 500; letter-spacing: 0; margin: 0 .05em; }
.lean-card__lbl {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}
.lean-card__cap { font-size: 13px; line-height: 1.55; color: var(--mut); margin-top: auto; }

/* -------- Lean process strip -------- */
.lean-process { margin-top: 56px; }
.lean-process__head {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 12px 0 28px;
  line-height: 1.1;
}
.lean-process__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lean-step {
  position: relative;
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.lean-step__num {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--bg);
  background: var(--amber);
  padding: 4px 8px;
}
/* Lean step numbers replaced with SVG icons */
.lean-step__icon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  background: var(--amber);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.lean-step__icon svg { width: 22px; height: 22px; }
.lean-step img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.05);
}
.lean-step figcaption {
  padding: 20px 22px 24px;
  flex: 1;
}
.lean-step figcaption h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.lean-step figcaption p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mut);
  margin: 0;
}
@media (max-width: 1000px) { .lean-process__strip { grid-template-columns: 1fr; } }

/* -------- Vs Other Walls -------- */
.vs-others { margin-top: 24px; }
.vs-others__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.vs-others__head h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(28px, 2vw + 1rem, 40px);
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
}

.vs-others__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 800px)  { .vs-others__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .vs-others__grid { grid-template-columns: repeat(3, 1fr); } }

.vs-card {
  background: var(--bg-surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.vs-card--accent {
  background: var(--bg-surface-2);
  border-top: 3px solid var(--amber);
  margin-top: -3px;
}
.vs-card__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--mut-2);
}
.vs-card--accent .vs-card__title { color: var(--hi); }
.vs-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vs-card__list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mut);
  padding-left: 16px;
  position: relative;
}
.vs-card__list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--mut-2);
  font-family: var(--ff-mono);
  font-weight: 700;
}
.vs-card--accent .vs-card__list li::before { color: var(--amber); content: "+"; }
.vs-card__list li b { color: var(--ink); font-weight: 700; }
.vs-card__verdict {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  font-family: var(--ff-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--mut);
  text-transform: uppercase;
}
.vs-card__verdict b { color: var(--hi); font-weight: 700; }
.vs-card--accent .vs-card__verdict b { color: var(--amber); }

/* -------- Video feature strip (full-bleed cinematic break) -------- */
.vfeature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 0;
  height: clamp(440px, 70vh, 720px);
}
.vfeature__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: contrast(1.1) brightness(.55) saturate(.95);
}
.vfeature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,20,38,.15) 0%, rgba(10,20,38,.4) 50%, rgba(10,20,38,.92) 100%);
}
.vfeature::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  z-index: -1;
  background-image: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--bg) 14px 28px);
}
.vfeature__inner {
  position: absolute;
  left: var(--container-x);
  right: var(--container-x);
  bottom: 56px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: calc(var(--container) - var(--container-x) * 2);
  margin: 0 auto;
}
@media (min-width: 1000px) { .vfeature__inner { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; } }
.vfeature__l { display: flex; flex-direction: column; gap: 16px; }
.vfeature__h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  text-wrap: pretty;
}
.vfeature__h2 span { display: block; }
.vfeature__h2 .hi { color: var(--hi); }
.vfeature__r {
  padding: 24px;
  background: rgba(6,13,26,.85);
  border-left: 3px solid var(--amber);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vfeature__meta {
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.vfeature__meta b { color: var(--amber); }
.vfeature__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
}

/* -------- [06] About section (Founder + 3 pillars) -------- */
.about-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; } }

.about-portrait { background: var(--bg-surface); border: 1px solid var(--rule); }
.about-portrait img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top; background: #fff; }
.about-portrait__cap { padding: 28px 24px 32px; }
.about-portrait__cap h4 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 6px 0 12px;
}
.about-portrait__cap p { font-size: 14px; line-height: 1.55; color: var(--mut); }

/* Portrait, full-width centered above the pillars on wide screens */
.about-portrait--centered {
  max-width: 720px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 900px) {
  .about-portrait--centered {
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
    max-width: 1080px;
    align-items: stretch;
  }
}

/* 3-pillar block, full container width below portrait for breathing room.
   Each pillar gets ample horizontal space, single-line title, and the
   "by" connector visually demoted so the IMPACT/INNOVATE/PROMPT keyword
   reads as the primary hit. */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}
.about-pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--amber);
  min-height: 220px;
  transition: transform var(--dur-base) var(--ease-expo), border-color var(--dur-base) var(--ease-soft);
}
.about-pillar:hover { transform: translateY(-3px); border-top-color: var(--hi); }
.about-pillar__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--amber);
}
.about-pillar h4 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.about-pillar__by {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: .55em;
  letter-spacing: .1em;
  color: var(--mut-2);
  vertical-align: 0.2em;
  margin: 0 .15em;
}
.about-pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mut);
  margin: 0;
}
@media (max-width: 1000px) {
  .about-pillars { grid-template-columns: 1fr; gap: 14px; margin-top: 2rem; }
  .about-pillar { padding: 22px 20px; min-height: 0; }
  .about-pillar h4 { font-size: 22px; white-space: normal; }
}

/* Trust strip counter: massive amber number animating up to 500+ */
.trust-strip__counter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  text-align: left;
}
.trust-strip__num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.trust-strip__lbl {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.005em;
  color: var(--mut);
}
@media (max-width: 600px) {
  .trust-strip__counter { flex-direction: column; gap: 4px; align-items: flex-start; }
  .trust-strip__num { font-size: 44px; }
  .trust-strip__lbl { font-size: 14px; }
}

/* -------- [07] Contact section (form + aside) -------- */
.contact-section { background: var(--bg-2); }
.contact-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }

.contact-form { background: var(--bg-surface); padding: 32px; }

.contact-aside { display: flex; flex-direction: column; gap: 32px; }
.contact-block {
  background: var(--bg-surface);
  border-left: 3px solid var(--amber);
  padding: 24px 24px 28px;
}
.contact-block h4 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 6px 0 12px;
}
.contact-block address {
  font-style: normal;
  color: var(--mut);
  line-height: 1.6;
  margin-bottom: 14px;
}
.addr-link {
  display: block;
  color: var(--mut);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: border-left-color .2s ease, color .2s ease;
}
.addr-link:hover { border-left-color: var(--amber); color: var(--ink); }
.addr-link__cta {
  display: block;
  margin-top: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.addr-link:hover .addr-link__cta { color: var(--hi); }
.gbp-review {
  margin-top: 12px !important;
  font-size: 12px !important;
}
.gbp-review a {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dotted rgba(212,162,58,.4);
  padding-bottom: 2px;
  transition: color .15s ease, border-bottom-color .15s ease;
}
.gbp-review a:hover { color: var(--hi); border-bottom-color: var(--hi); }
.contact-block p { font-size: 14px; line-height: 1.7; color: var(--mut); margin-bottom: 8px; }
.contact-block p b { color: var(--mut-2); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contact-block a { color: var(--ink); transition: color .15s ease; }
.contact-block a:hover { color: var(--hi); }
.contact-hours { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut-2); }

/* -------- Published Research [06b] -------- */
.research { background: var(--bg-2); }
.papers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.paper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s ease, border-left-color .2s ease, transform .2s ease;
}
.paper:hover {
  background: var(--bg-surface-2);
  border-left-color: var(--hi);
  transform: translateX(2px);
}
.paper__head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.paper__year { color: var(--amber); font-weight: 700; }
.paper__journal { color: var(--mut-2); }
.paper__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0;
}
.paper__authors {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mut-2);
  margin: 0;
}
.paper__topic {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mut);
  margin: 0;
  flex: 1;
}
.paper__cta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-top: 8px;
}
.paper:hover .paper__cta { color: var(--hi); }

.research__note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-left: 2px solid var(--mut-2);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mut);
}
.research__note .tech-label {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
}

@media (max-width: 800px) {
  .papers { grid-template-columns: 1fr; }
}

/* -------- Contact CTAs (replaces form) -------- */
.contact-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "eyebrow icon"
    "title   icon"
    "sub     icon";
  gap: 6px 24px;
  align-items: start;
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-cta:hover {
  background: var(--bg-surface-2);
  border-left-color: var(--hi);
  transform: translateX(2px);
}
.contact-cta__eyebrow {
  grid-area: eyebrow;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-cta__title {
  grid-area: title;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
}
.contact-cta__arr {
  display: inline-block;
  margin-left: 4px;
  color: var(--amber);
  transition: transform .2s ease;
}
.contact-cta:hover .contact-cta__arr { transform: translateX(4px); }
.contact-cta--pdf:hover .contact-cta__arr { transform: translateY(2px); }
.contact-cta__sub {
  grid-area: sub;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 6px;
}
.contact-cta__icon {
  grid-area: icon;
  width: 56px;
  height: 56px;
  align-self: center;
  color: var(--hi);
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.contact-cta:hover .contact-cta__icon { opacity: 1; color: var(--amber); }
.contact-email {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut-2);
  margin-top: 8px;
}
.contact-email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  transition: color .15s ease;
}
.contact-email a:hover { color: var(--hi); }

@media (max-width: 600px) {
  .contact-cta { padding: 28px 24px; }
  .contact-cta__title { font-size: 24px; }
  .contact-cta__icon { width: 40px; height: 40px; }
}

/* -------- Press card -------- */
.press {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--hi);
}
.press__src {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hi);
}
.press__src b { color: #fff; display: block; margin-top: 6px; font-size: 14px; letter-spacing: .04em; }
.press__q {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}
.press__q::before { content: ""; display: block; width: 32px; height: 2px; background: var(--hi); margin-bottom: 14px; }

/* -------- CTA section -------- */
.cta { padding: 120px 0; background: var(--bg-2); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 24px, rgba(212,162,58,.05) 24px 25px);
  pointer-events: none;
}
.cta__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.cta h2 { margin: 0; font-weight: 900; font-size: clamp(36px, 4.5vw, 60px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.cta h2 .hi { color: var(--hi); }
.cta__r { display: flex; flex-direction: column; gap: 16px; }
.cta__r p { margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: var(--mut); }
.cta__btns { display: flex; gap: 0; }

/* -------- Footer -------- */
footer.footer, footer { background: var(--bg-2); padding: 64px 0 32px; color: var(--mut); font-size: 13px; line-height: 1.7; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
footer h4 { margin: 0 0 14px; font-family: var(--ff-display); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
footer ul { padding: 0; margin: 0; list-style: none; }
footer li { padding: 3px 0; }
footer a { transition: color .15s ease; }
footer a:hover { color: var(--hi); }
footer .b { color: #fff; }
footer .bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS (mobile-first cascade)
   ========================================================================= */

/* Tablet landscape and below (≤1100px) */
@media (max-width: 1100px) {
  :root { --container-x: 32px; }

  /* Desktop nav links hidden, bottom tab bar handles all navigation */
  .nav__links { display: none; }

  /* Centered brand mark tightens on tablet+ */
  .nav__in { padding: 14px 0 12px; gap: 0; }
  .brand img { height: 48px; }
  .brand .wm { font-size: 19px; }

  /* Hero stacks, readable scale */
  .hero { grid-template-columns: 1fr; min-height: auto; max-height: none; }
  .hero__l { padding: 56px 32px; max-width: none; }
  .hero__r { min-height: 420px; }
  .hero h1 { font-size: clamp(44px, 7vw, 64px); }

  /* Section headlines smaller, readable on tablet portrait */
  .sechead { grid-template-columns: 1fr; gap: 24px; }
  .sechead h2 { font-size: clamp(32px, 5vw, 48px); }

  /* Multi-col grids collapse */
  .anatomy { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .vs__col--us { border-right: 0; border-bottom: 2px solid var(--hi); }

  /* Apps + caps go 2-col */
  .apps { grid-template-columns: repeat(2, 1fr); }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }

  /* Projects masonry */
  .proj { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .proj__lead { grid-column: span 2; grid-row: span 2; }
  .proj__t { grid-column: span 1; grid-row: auto; }

  /* Gallery 2-col */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-tile--lead img { height: 380px; }

  /* CTAs and supplementary blocks */
  .cta__in { grid-template-columns: 1fr; }
  .cta h2 { font-size: clamp(28px, 5vw, 44px); }
  .press { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .strip__in { grid-template-columns: 1fr; gap: 12px; }
  .top__in { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Tablet portrait / large mobile (≤900px) */
@media (max-width: 900px) {
  .gallery-cta-line, .caps-cta-line { flex-direction: column; align-items: flex-start; }

  /* Contact layout stacks */
  .contact-layout { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* About grid stacks */
  .about-grid { grid-template-columns: 1fr; }

  /* Lean stat cards 2-col */
  .lean-grid { grid-template-columns: repeat(2, 1fr); }

  /* MSE explainer pics 1-col */
  .mse__principle { grid-template-columns: 1fr; gap: 32px; }
  .mse__metrics { grid-template-columns: 1fr; }

  /* Lean process strip stacks */
  .lean-process__strip { grid-template-columns: 1fr; }
  .vs-others__grid { grid-template-columns: 1fr; }
}

/* Mobile (≤720px) */
@media (max-width: 720px) {
  :root { --container-x: 20px; }

  /* Hero copy tightened, ensure no horizontal overflow on small phones.
     Readable sizes, not splashy. */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__l, .hero__r { min-width: 0; max-width: 100%; }
  .hero__l { padding: 32px 20px 28px; }
  .hero h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: .95;
    letter-spacing: -.03em;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .hero p.lede { font-size: 14px; line-height: 1.55; max-width: 100%; }
  /* Stack hero buttons vertically on phones, full width, no overflow */
  .hero__btns {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero__btns .btn {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
    white-space: normal;
    font-size: 11px;
    padding: 14px 16px;
  }
  .rank { font-size: 10px; }
  .rank b { font-size: 12px; }

  /* Section headlines, tighter on mobile so they don't dominate the viewport */
  .sechead h2 { font-size: clamp(24px, 6vw, 32px); line-height: 1.08; letter-spacing: -.02em; }
  .sechead p { font-size: 14px; line-height: 1.55; }
  .cta h2 { font-size: clamp(22px, 6vw, 30px); line-height: 1.1; }
  .cta p { font-size: 14px; }

  /* Section number eyebrows tighter */
  .secmark { font-size: 10px; gap: 10px; letter-spacing: .14em; flex-wrap: wrap; }
  .secmark .rule { display: none; }

  /* Article body text tighter */
  p, li { font-size: 14px; }
  .tech-label { font-size: 10px; }

  /* Spec card numbers smaller so they don't blow up the viewport */
  .stat-card__num, .spec-card__num { font-size: clamp(36px, 10vw, 48px); }
  .cap__stat { font-size: clamp(22px, 6.5vw, 28px); line-height: 1.1; }
  .cap__eyebrow { font-size: 11px; }

  /* Trust strip chip text */
  .trust-strip__chip b { font-size: 12px; }
  .trust-strip__chip small { font-size: 8px; }
  .trust-strip__head p { font-size: 15px; }

  /* All grids to 1-col */
  .apps { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-tile img, .gallery-tile--lead img { height: 240px; }
  .lean-grid { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; gap: 24px; }

  /* Project masonry 1-col on small phones */
  .proj { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .proj__lead { grid-column: span 1; grid-row: span 1; }

  /* Anatomy cross-section svg scales */
  .anat__svg { aspect-ratio: 1 / 1; }

  /* Lean process step height shorter */
  .lean-step img { height: 200px; }

  /* Tables in articles scroll horizontally if needed */
  .article__table { font-size: 12px; }
  .article__table th, .article__table td { padding: 8px 10px; }
  .article__wrap { padding: 0 20px; }

  /* Tightened section vertical padding */
  section { padding: 56px 0; }
  #system, #why, #lean, #applications, #projects, #about, #contact, #capabilities, .mse, .gallery-strip, .vfeature { padding: 56px 0; }
  .vfeature { min-height: auto; }

  /* WhatsApp FAB smaller, closer to edge */
  .wa-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-fab svg { width: 24px; height: 24px; }

  /* Knowledge base cards */
  .kb-cards, .kb-resources { grid-template-columns: 1fr; }
  .kb-hero h1 { font-size: clamp(32px, 9vw, 48px); }
  .kb-cta__box { padding: 32px 24px; }
  .kb-cta__box h2 { font-size: 28px; }

  /* Article body */
  .article h1 { font-size: clamp(28px, 8vw, 40px); }
  .article h2 { font-size: 24px; }
  .article h3 { font-size: 18px; }
  .article p, .article li { font-size: 15px; }
  .article__lede { font-size: 17px; }
}

/* Very small phones (≤380px) */
@media (max-width: 380px) {
  :root { --container-x: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__l { padding: 40px 16px; min-width: 0; }
  .hero__r { min-width: 0; }
  .hero h1 {
    font-size: 32px;
    letter-spacing: -.03em;
    line-height: .92;
  }
  .hero p.lede { font-size: 14px; line-height: 1.45; }
  .sechead h2 { font-size: 28px; }
  .brand .wm { font-size: 15px; }
  .brand .wm small { font-size: 8px; letter-spacing: .14em; }
  .brand img { height: 42px; }
  .nav.scrolled .brand img { height: 36px; }
  .nav__in { padding: 10px 0 8px; }
  /* Tab bar tightens more so 12 tabs feel less cramped per swipe */
  .tabbar__tab { min-width: 60px; padding: 8px 8px 6px; }
  .tabbar__lbl { font-size: 9px; letter-spacing: .06em; }
}

/* iPhone SE / very narrow phones (≤340px) */
@media (max-width: 340px) {
  :root { --container-x: 14px; }
  .hero h1 { font-size: 28px; }
  .hero__l { padding: 36px 14px; }
  .sechead h2 { font-size: 24px; }
  .brand .wm small { display: none; } /* hide sub-tagline to save horizontal space */
}

/* Defensive: long CTA buttons should wrap on narrow phones so they
   never punch through their parent. Targets buttons whose text might
   exceed 250px (e.g. "Send brief on WhatsApp →"). */
@media (max-width: 480px) {
  .gallery-cta-btn, .caps-cta-btn, .kb-cta__btns .btn, .cta-band .btn, .vfeature .btn {
    white-space: normal;
    max-width: 100%;
    text-align: left;
  }
}

/* =========================================================================
   UNIVERSAL UX FIXES
   ========================================================================= */

/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Visible focus state for keyboard users (accessibility) */
*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
button:focus-visible, a:focus-visible, .btn:focus-visible { outline-offset: 2px; }

/* Remove iOS tap highlight (we have hover states) */
a, button { -webkit-tap-highlight-color: transparent; }

/* Better text rendering */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; }

/* Image safety */
img, video, svg { max-width: 100%; height: auto; }

/* Ensure all touch targets meet 44px minimum on mobile */
@media (max-width: 720px) {
  a.btn, button.btn, .nav__cta, .wa-fab { min-height: 44px; }
}

/* =========================================================================
   LEGACY BRIDGE, inner-page classes (about.html, system.html, etc.)
   These keep the existing inner pages rendering with the new T1-navy
   tokens, so the whole site reads as one design system.
   ========================================================================= */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-x); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: 96px; border-bottom: 1px solid var(--rule); }
.section--soft { background: var(--bg-surface); }
.section--dark { background: var(--bg-2); }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 1rem; font-size: clamp(32px, 4vw, 48px); line-height: 1.02; letter-spacing: -.03em; }
.section-head .eyebrow { display: inline-block; margin-bottom: .75rem; }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}
.lead { font-size: 17px; line-height: 1.55; color: var(--mut); max-width: 60ch; }
.muted { color: var(--mut-2); }

/* Tech-label / section-marker (used heavily on inner pages) */
.tech-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
}
.tech-label::before { content: "["; opacity: .55; }
.tech-label::after  { content: "]"; opacity: .55; }
.tech-label--light, .tech-label--muted { color: var(--mut-2); }

.section-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mut);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-bottom: 2rem;
}
.section-marker__num { color: var(--hi); font-weight: 700; }
.section-marker__rule { flex: 1; height: 1px; background: var(--rule); }

/* Banner (inner-page hero) */
.banner {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: 7rem 5rem;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.banner__bg { position: absolute; inset: 0; z-index: -2; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) brightness(.5) saturate(.95); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,38,.4), rgba(10,20,38,.85)); }
.banner h1 { color: #fff; margin-bottom: .75rem; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; max-width: 18ch; }
.banner p { color: var(--mut); max-width: 60ch; font-size: 17px; }
.crumbs {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--mut-2);
}
.crumbs a:hover { color: var(--amber); }
.crumbs span { margin-inline: .5rem; opacity: .5; }

/* Split (image+copy) */
.split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.split--reverse > .split__media { order: 2; }
@media (min-width: 900px) { .split--reverse > .split__media { order: -1; } }
.split__media { position: relative; overflow: hidden; border: 1px solid var(--rule); }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__copy h2 { margin-bottom: 1rem; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.02; letter-spacing: -.03em; }
.split__copy .lead { margin-bottom: 1.5rem; }
.split__copy .btn { margin-top: 1.5rem; }

/* Stats (legacy 4-up grid) */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__num { font-family: var(--ff-display); font-weight: 900; font-size: clamp(28px, 2vw + 1rem, 40px); color: var(--hi); line-height: 1; display: block; margin-bottom: .35rem; }
.stats__lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut-2); }

/* Spec card grid (industrial dashboards) */
.spec-grid { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--rule); border: 1px solid var(--rule); overflow: hidden; }
@media (min-width: 700px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .spec-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.spec-card { background: var(--bg-surface-2); padding: 1.75rem 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-height: 140px; }
.spec-card__num { font-family: var(--ff-display); font-weight: 900; font-size: clamp(28px, 1vw + 1.6rem, 40px); line-height: 1; color: var(--hi); letter-spacing: -.025em; margin-bottom: .35rem; }
.spec-card__num .unit { font-size: .55em; font-weight: 500; color: var(--mut); margin-left: .15em; letter-spacing: 0; }
.spec-card__lbl { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut-2); }
.spec-card__caption { font-size: 13px; color: var(--mut); line-height: 1.45; margin-top: .5rem; }
.spec-card__index { position: absolute; top: .85rem; right: 1rem; font-family: var(--ff-mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--mut-2); opacity: .65; }

/* Blueprint background overlay (technical grid) */
.blueprint-bg { position: relative; isolation: isolate; }
.blueprint-bg::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* Chip (small mono pill) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  background: rgba(244,239,226,.06);
  border: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink);
  text-transform: uppercase;
}
.chip--accent { background: rgba(212,162,58,.12); border-color: rgba(212,162,58,.4); color: var(--amber); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Timeline (founder credentials) */
.timeline { position: relative; padding-left: 1.75rem; margin-top: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rule); }
.timeline__item { position: relative; padding-bottom: 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.85rem; top: .35rem; width: 12px; height: 12px; background: var(--amber); }
.timeline__year { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); text-transform: uppercase; display: block; margin-bottom: .15rem; }
.timeline__title { font-family: var(--ff-display); font-weight: 700; font-size: 16px; color: var(--ink); display: block; margin-bottom: .15rem; }
.timeline__desc { font-size: 14px; color: var(--mut); line-height: 1.55; }

/* Editorial layout (long-form section) */
.editorial { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 1000px) { .editorial { grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: start; } .editorial__lede { position: sticky; top: 2rem; } }
.editorial__h { font-size: clamp(40px, 4vw + 1rem, 80px); font-weight: 900; letter-spacing: -.04em; line-height: .95; margin-top: 1rem; color: var(--ink); text-transform: uppercase; }
.editorial__para { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 60ch; }
.editorial__para + .editorial__para { margin-top: 1.5rem; }
.editorial__para--first::first-letter { font-family: var(--ff-display); font-size: 4rem; font-weight: 900; float: left; line-height: .85; margin: .35rem .65rem 0 0; color: var(--amber); letter-spacing: -.04em; }
.editorial__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Pull quote */
.pull { margin: 2.5rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 3px solid var(--amber); }
.pull blockquote { font-family: var(--ff-display); font-size: clamp(20px, 1.5vw + 1rem, 28px); line-height: 1.25; letter-spacing: -.02em; font-weight: 600; color: var(--ink); }

/* Three commitments rows */
.commit { margin-top: 2rem; border-top: 1px solid var(--rule); }
.commit__row { display: grid; grid-template-columns: 1fr; gap: .65rem; padding: 2.5rem 0; border-bottom: 1px solid var(--rule); position: relative; transition: background .15s ease; }
@media (min-width: 800px) { .commit__row { grid-template-columns: auto 1fr auto; gap: 3rem; align-items: start; } }
.commit__num { font-family: var(--ff-mono); font-size: 14px; font-weight: 700; color: var(--amber); letter-spacing: .12em; }
.commit__body h3 { font-size: clamp(22px, 1.5vw + .75rem, 32px); margin-bottom: .65rem; letter-spacing: -.025em; text-transform: uppercase; color: var(--ink); }
.commit__body p { font-size: 16px; line-height: 1.55; max-width: 56ch; color: var(--mut); }
.commit__tag { align-self: center; }

/* Schematic (long-form mechanism diagram) */
.schematic { margin-top: 2.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .schematic { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: start; gap: 3rem; } }
.schematic svg { width: 100%; height: auto; display: block; background: rgba(255,255,255,.02); border: 1px solid var(--rule); }
.schematic__legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.schematic__legend li { display: grid; grid-template-columns: 28px 1fr; gap: .85rem; align-items: start; color: var(--mut); font-size: 14px; line-height: 1.5; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.schematic__legend li:last-child { border-bottom: 0; }
.schematic__legend strong { color: #fff; font-weight: 700; display: block; margin-bottom: .15rem; }
.schematic__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--amber); color: #fff; font-family: var(--ff-mono); font-size: 12px; font-weight: 700; }

/* Industry lineage (3-card progression) */
.lineage { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 800px) { .lineage { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.lineage__item { padding: 1.5rem 1.25rem; background: var(--bg-surface-2); border: 1px solid var(--rule); border-top: 3px solid var(--rule); }
.lineage__item--active { background: var(--bg-surface); border-top-color: var(--amber); }
.lineage__year { display: block; font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); text-transform: uppercase; margin-bottom: .65rem; }
.lineage__item h4 { font-family: var(--ff-display); font-size: 18px; font-weight: 900; margin-bottom: .5rem; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; }
.lineage__item p { font-size: 14px; line-height: 1.55; color: var(--mut); }

/* Academic papers cards */
.papers-list { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 800px) { .papers-list { grid-template-columns: 1fr 1fr; } }
.paper { background: var(--bg-surface); border: 1px solid var(--rule); padding: 1.5rem; }
.paper__meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.paper h4 { font-family: var(--ff-display); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: .35rem; text-transform: none; letter-spacing: -.01em; }
.paper__authors { font-family: var(--ff-mono); font-size: 12px; color: var(--ink); margin-bottom: .15rem; }
.paper__cite { font-size: 13px; color: var(--mut); margin-bottom: .75rem; }
.paper__abstract { font-size: 14px; color: var(--mut); margin-bottom: 1rem; line-height: 1.55; }

/* Resource cards */
.resource-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
.resource { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; padding: 1.5rem; background: var(--bg-surface); border: 1px solid var(--rule); align-items: center; }
.resource img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.resource h3 { font-size: 16px; margin-bottom: .5rem; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; font-weight: 900; }
.resource p { font-size: 14px; margin-bottom: 1rem; color: var(--mut); }

/* Office card (contact) */
.office { background: var(--bg-surface); border: 1px solid var(--rule); padding: 2rem; }
.office h3 { margin-bottom: .25rem; font-size: 22px; text-transform: uppercase; color: var(--ink); }
.office__loc { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); text-transform: uppercase; margin-bottom: .75rem; display: block; }
.office address { font-style: normal; color: var(--mut); line-height: 1.6; margin-bottom: 1.25rem; }
.office__row { display: flex; gap: .65rem; padding: .35rem 0; font-size: 14px; color: var(--mut); }
.office__row .lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); min-width: 56px; }
.office__row a:hover { color: var(--hi); }

.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.entity-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 600px) { .entity-grid { grid-template-columns: 1fr 1fr; } }
.entity-card { padding: 1.25rem; background: var(--bg-surface); border: 1px solid var(--rule); }
.entity-card h4 { font-family: var(--ff-display); font-size: 17px; font-weight: 900; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; }
code { font-family: var(--ff-mono); font-size: .85em; background: rgba(255,255,255,.06); padding: .1em .35em; color: var(--ink); }

/* Form (contact) */
.form { background: var(--bg-surface); border: 1px solid var(--rule); padding: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; color: var(--amber); }
.field input, .field textarea, .field select { width: 100%; padding: .75rem .9rem; border: 1px solid var(--rule); background: var(--bg-2); color: var(--ink); font-family: var(--ff-display); font-size: 14px; transition: border-color .15s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req { color: var(--amber); }
.field__hint { display: block; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; color: var(--mut-2); margin-top: .35rem; }
.form__sla { margin-top: .85rem; text-align: center; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; color: var(--mut); text-transform: uppercase; }

/* Geo-toggle (contact) */
.geo-toggle { display: flex; gap: .5rem; align-items: stretch; border: 1px solid var(--rule); background: var(--bg-2); padding: .35rem; margin-bottom: 1.5rem; }
.geo-toggle__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.geo-toggle__option { flex: 1 1 0; }
.geo-toggle__option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.geo-toggle__option span { display: flex; justify-content: center; align-items: center; padding: .65rem .75rem; background: transparent; font-family: var(--ff-mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut-2); cursor: pointer; transition: background .15s ease, color .15s ease; user-select: none; }
.geo-toggle__option input:checked + span { background: var(--hi); color: var(--bg); }
.geo-toggle__option input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.procurement-note { padding: 1.25rem 1.5rem; border-left: 3px solid var(--amber); background: var(--bg-surface); }

/* Steps grid (focus page) */
.steps { display: grid; gap: 1.5rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.step { background: var(--bg-surface); border: 1px solid var(--rule); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; }
.step__media { aspect-ratio: 4/3; overflow: hidden; margin-bottom: 1.25rem; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__num { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); margin-bottom: .5rem; text-transform: uppercase; }
.step h3 { font-size: 18px; margin-bottom: .5rem; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; }
.step p { font-size: 14px; color: var(--mut); }

/* Component rows (system page) */
.cmp { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 4rem; }
@media (min-width: 900px) { .cmp { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; } }
.cmp + .cmp { margin-top: 5rem; padding-top: 5rem; border-top: 1px solid var(--rule); }
.cmp:nth-of-type(even) > .cmp__media { order: 2; }
@media (max-width: 899px) { .cmp:nth-of-type(even) > .cmp__media { order: -1; } }
.cmp__step { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); margin-bottom: .75rem; text-transform: uppercase; }
.cmp__step::before { content: "[ "; opacity: .55; }
.cmp__step::after  { content: " ]"; opacity: .55; }
.cmp__media { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.cmp__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cmp__media--single { grid-template-columns: 1fr; }
.cmp h3 { color: var(--ink); }

/* Benefit grid */
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit { background: var(--bg-surface); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.benefit__media { aspect-ratio: 16/10; overflow: hidden; }
.benefit__media img { width: 100%; height: 100%; object-fit: cover; }
.benefit__body { padding: 1.75rem 1.75rem 1.5rem; }
.benefit__num { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); margin-bottom: .5rem; display: block; text-transform: uppercase; }
.benefit h3 { font-size: 22px; margin-bottom: .5rem; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; }
.benefit__sub { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); margin-bottom: .75rem; }

/* Application list (applications page) */
.app-list { display: grid; gap: 4rem; margin-top: 3rem; }
.app { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; min-height: auto; padding: 0; border: 0; background: transparent; }
@media (min-width: 900px) { .app { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.app:nth-child(even) > .app__media { order: 2; }
@media (max-width: 899px) { .app:nth-child(even) > .app__media { order: -1; } }
.app__media { display: grid; gap: .75rem; grid-template-columns: 1fr; overflow: hidden; }
.app__media.is-double { grid-template-columns: 1fr 1fr; }
.app__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.app__step { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); text-transform: uppercase; margin-bottom: .75rem; }

/* Gallery + project tile (legacy) */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; } }
.proj--tall { grid-row: span 2; }
@media (max-width: 1023px) { .proj--tall { grid-row: auto; } }

/* Gallery proj tile (different from .proj on homepage) */
.gallery .proj { position: relative; overflow: hidden; min-height: 280px; background: var(--bg-surface); }
.gallery .proj img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s ease; }
.gallery .proj:hover img { filter: contrast(1.05) saturate(1.05); }
.gallery .proj__cap { position: absolute; inset: auto 0 0 0; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(180deg, rgba(10,20,38,0), rgba(10,20,38,.92)); color: #fff; }
.gallery .proj__cap h4 { color: #fff; font-size: 18px; margin-bottom: .15rem; text-transform: uppercase; letter-spacing: -.01em; }
.gallery .proj__cap span { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); }

/* Spec table */
.spec-table { background: var(--bg-surface); border: 1px solid var(--rule); }
.spec-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tbody tr { border-bottom: 1px solid var(--rule); }
.spec-table tbody tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { text-align: left; padding: 1rem 1.25rem; vertical-align: top; }
.spec-table th { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); background: var(--bg-2); width: 40%; }
.spec-table td { color: var(--mut); }
@media (max-width: 600px) { .spec-table table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; } .spec-table th { padding-bottom: 0; } .spec-table td { padding-top: .25rem; padding-bottom: 1rem; } }

/* FAQ accordion */
.faq { max-width: 820px; margin: 3rem auto 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
.faq details[open] summary .faq__chev { transform: rotate(45deg); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--ff-display); font-weight: 700; font-size: 17px; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--rule); flex-shrink: 0; transition: transform .25s var(--ease); color: var(--amber); }
.faq__body { margin-top: 1rem; color: var(--mut); line-height: 1.6; }

/* Section head--center on dark sections (already inherits) */
.section--dark { background: var(--bg-2); }
.cta-band { background: var(--bg-2); padding: 120px 0; border-bottom: 1px solid var(--rule); }
.cta-band__bg { display: none; }
.cta-band .container { text-align: center; }
.cta-band h2 { color: var(--ink); max-width: 22ch; margin: 1rem auto; font-size: clamp(40px, 5vw + 1rem, 88px); line-height: .9; }
.cta-band p { color: var(--mut); max-width: 56ch; margin: 0 auto 2rem; font-size: 17px; }

/* Pillars (homepage 3-up cards, legacy) */
.pillars { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 2.25rem 1.75rem 2rem; background: var(--bg-surface); border: 1px solid var(--rule); transition: background .15s ease; }
.pillar:hover { background: var(--bg-surface-2); }
.pillar__num { font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--amber); margin-bottom: 1rem; display: block; text-transform: uppercase; }
.pillar__icon { width: 56px; height: 56px; background: rgba(212,162,58,.12); color: var(--amber); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.pillar h3 { font-size: 22px; margin-bottom: .65rem; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; }
.pillar p { font-size: 14px; line-height: 1.6; color: var(--mut); }

/* Service grid (homepage svc-grid, legacy) */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { position: relative; isolation: isolate; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; padding: 2rem; transition: background .15s ease; background: var(--bg-surface); border: 1px solid var(--rule); }
.svc__bg { position: absolute; inset: 0; z-index: -2; }
.svc__bg img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) brightness(.55); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,38,0) 30%, rgba(10,20,38,.92) 100%); }
.svc__body { width: 100%; }
.svc h3 { color: #fff; font-size: 24px; margin-bottom: .35rem; text-transform: uppercase; }
.svc p { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 1rem; }

/* Clients chip strip (legacy on inner pages) */
.clients { display: flex; flex-wrap: wrap; gap: .65rem .75rem; justify-content: center; margin-top: 2.5rem; }
.clients span { display: inline-flex; align-items: center; padding: .65rem 1.1rem; background: var(--bg-surface); border: 1px solid var(--rule); font-family: var(--ff-mono); font-weight: 700; font-size: 12px; color: var(--ink); letter-spacing: .12em; text-transform: uppercase; }
.client-region { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--rule); }
.client-region__head { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 1.25rem; }

/* Footer (legacy class) */
.footer { background: var(--bg-2); color: var(--mut); padding-block: 4.5rem 1.5rem; font-size: 13px; line-height: 1.7; }
.footer__grid { display: grid; gap: 3rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.1fr; } }
.footer h4 { font-family: var(--ff-display); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1.25rem; }
.footer__brand img { height: 36px; margin-bottom: 1.25rem; }
.footer__brand p { color: var(--mut); font-size: 14px; max-width: 36ch; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: .65rem; }
.footer ul a { color: var(--mut); transition: color .15s ease; }
.footer ul a:hover { color: var(--hi); }
.footer__office address { font-style: normal; color: var(--mut); margin-bottom: 1rem; }
.footer__office .row { display: flex; gap: .5rem; padding: .15rem 0; font-size: 14px; }
.footer__office .row .lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut-2); min-width: 50px; }
.footer__office .row a { color: var(--ink); }
.footer__office .row a:hover { color: var(--hi); }
.footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--mut-2); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* WhatsApp floating action button, on-brand: cream surface, navy logo */
.wa-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--hi);
  text-decoration: none;
  border: 1px solid var(--amber);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--hi);
  color: var(--bg);
  border-color: var(--bg);
  box-shadow: 0 14px 32px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.3);
}
.wa-fab svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 2;
}
.wa-fab__pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  pointer-events: none;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .9; }
  70%  { transform: scale(1.6); opacity: 0;  }
  100% { transform: scale(1.6); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) { .wa-fab__pulse { animation: none; opacity: .25; } }

@media (max-width: 600px) {
  .wa-fab { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
}
@media print { .wa-fab { display: none; } }

/* Sticky callback bar */
.callback-bar { background: var(--bg-2); color: var(--mut); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.callback-bar__inner { display: flex; align-items: center; gap: 1rem; padding: .5rem var(--container-x); justify-content: center; flex-wrap: wrap; }
.callback-bar a { color: var(--ink); padding: .15rem .4rem; transition: color .15s ease; }
.callback-bar a:hover { color: var(--hi); }
.callback-bar__sep { color: var(--mut-2); }
.callback-bar__close { margin-left: auto; color: var(--mut-2); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.callback-bar__close:hover { color: var(--ink); }
.callback-bar.is-hidden { display: none; }

/* Hero (legacy class for inner pages, different from T1-navy hero) */
.hero__inner { padding-block: 6rem 5rem; max-width: 760px; }
.hero__eyebrow { display: inline-block; margin-bottom: 1.25rem; font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.stack { display: block; }

/* Header (legacy alias) */
.header { background: var(--bg); border-bottom: 2px solid var(--hi); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: 86px; }
.brand__wordmark { font-family: var(--ff-display); font-weight: 900; font-size: 17px; text-transform: uppercase; color: var(--ink); }
.brand__wordmark sup { font-size: .55em; vertical-align: super; }

/* nav__cta legacy alias on header */
.header .nav__cta { margin-left: 1rem; }

/* Partners small strip */
.partners { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; align-items: center; justify-content: center; margin-top: 3rem; opacity: .7; }
.partners img { height: 36px; width: auto; filter: grayscale(1) invert(1); }

/* Print */
@media print {
  .top, .nav, .header, .callback-bar, .wa-fab, .nav-toggle, .mobile-nav { display: none; }
  body { background: #fff; color: #000; }
}

/* Misc helpers */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.flow > * + * { margin-top: 1.25rem; }
.lazy { background: var(--bg-surface); }

/* =========================================================================
   KNOWLEDGE BASE / ARTICLES (/learn/)
   ========================================================================= */
.kb-hero { padding: 80px 0 56px; background: var(--bg-2); }
.breadcrumb {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut-2);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--amber); text-decoration: none; }
.breadcrumb a:hover { color: var(--hi); }
.breadcrumb span { color: var(--mut); }
.kb-hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: pretty;
  color: var(--ink);
  margin: 16px 0 24px;
  max-width: 22ch;
}
.kb-hero h1 .hi { color: var(--hi); }
.kb-hero__lede { font-size: 17px; line-height: 1.6; color: var(--mut); max-width: 56ch; margin: 0; }
@media (max-width: 700px) { .kb-hero h1 { font-size: 40px; } }

.kb-grid { padding: 64px 0; }
.kb-section-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 24px;
}
.kb-section-title--upcoming { margin-top: 72px; color: var(--mut); }

.kb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .kb-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .kb-cards { grid-template-columns: 1fr; } }

.kb-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  text-decoration: none;
  color: var(--ink);
  transition: border-left-color .2s ease, transform .2s ease, background .2s ease;
}
.kb-card:hover {
  border-left-color: var(--hi);
  background: var(--bg-surface-2);
  transform: translateY(-2px);
}
.kb-card--lead {
  grid-column: span 1;
  background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
}
.kb-card--coming {
  cursor: default;
  border-left-color: var(--mut-2);
  opacity: .75;
}
.kb-card--coming:hover { transform: none; border-left-color: var(--mut-2); }
.kb-card__tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.kb-card--coming .kb-card__tag { color: var(--mut-2); }
.kb-card h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.kb-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mut);
  margin: 0;
  flex: 1;
}
.kb-card__cta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-top: 8px;
}
.kb-card:hover .kb-card__cta { color: var(--hi); }

.kb-cta { padding: 80px 0 96px; background: var(--bg-2); }
.kb-cta__box {
  padding: 56px 64px;
  background: var(--bg-surface);
  border-left: 4px solid var(--amber);
}
.kb-cta__box .tech-label { color: var(--amber); }
.kb-cta__box h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 8px 0 12px;
}
.kb-cta__box p { font-size: 15px; line-height: 1.6; color: var(--mut); margin: 0 0 24px; max-width: 56ch; }
.kb-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .kb-cta__box { padding: 36px 28px; }
  .kb-cta__box h2 { font-size: 32px; }
}

/* Article page */
.article { padding: 64px 0 96px; background: var(--bg); }
.article__wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.article__head { margin: 32px 0 48px; }
.article__tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 16px;
}
.article h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 24px;
}
@media (max-width: 700px) { .article h1 { font-size: 32px; } }
.article__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--mut);
  margin: 0 0 16px;
}
.article__lede b { color: var(--ink); }
.article__meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut-2);
  margin: 0;
}
.article__toc {
  margin: 0 0 48px;
  padding: 24px 28px;
  background: var(--bg-surface);
  border-left: 3px solid var(--amber);
}
.article__toc .tech-label { display: block; color: var(--amber); margin-bottom: 12px; }
.article__toc ol { margin: 0; padding-left: 20px; }
.article__toc li { padding: 4px 0; font-size: 14px; line-height: 1.5; }
.article__toc a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--mut-2); }
.article__toc a:hover { color: var(--amber); border-bottom-color: var(--amber); }

.article section { margin: 48px 0; }
.article h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.article h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px;
}
.article p b, .article p strong { color: var(--hi); font-weight: 700; }
.article p em { font-style: italic; color: var(--mut); }
.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; }
.article li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 6px 0;
}
.article li b { color: var(--hi); }
.article a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,162,58,.3);
}
.article a:hover { color: var(--hi); border-bottom-color: var(--hi); }
.article__equation {
  padding: 16px 24px !important;
  background: var(--bg-2);
  border-left: 3px solid var(--amber);
  font-family: var(--ff-mono);
  font-size: 15px !important;
  color: var(--amber) !important;
  margin: 16px 0 !important;
}
.article__figure {
  margin: 32px 0;
  padding: 0;
}
.article__figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
.article__figure figcaption {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mut);
  margin-top: 12px;
  font-style: normal;
}
.article__table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.article__table th, .article__table td {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.article__table th {
  background: var(--bg-surface);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.article__table td b { color: var(--hi); }
.article__table--wide { font-size: 13px; }
.article__table--wide td { line-height: 1.55; }

.article__related {
  margin: 80px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.article__related .tech-label { display: block; color: var(--amber); margin-bottom: 24px; }
.article__related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .article__related-grid { grid-template-columns: 1fr; } }

/* Knowledge base: Resources & downloads */
.kb-section-title--resources { margin-top: 72px; color: var(--ink); }
.kb-resources {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 1000px) { .kb-resources { grid-template-columns: 1fr; } }
.kb-resource {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  text-decoration: none;
  color: var(--ink);
  transition: border-left-color .2s ease, transform .2s ease, background .2s ease;
}
.kb-resource:hover {
  border-left-color: var(--hi);
  background: var(--bg-surface-2);
  transform: translateX(2px);
}
.kb-resource__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--amber);
  flex-shrink: 0;
}
.kb-resource__icon svg { width: 22px; height: 22px; }
.kb-resource:hover .kb-resource__icon { color: var(--hi); }
.kb-resource__body { display: flex; flex-direction: column; gap: 4px; }
.kb-resource__tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.kb-resource__body h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.kb-resource__body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mut);
  margin: 4px 0 0;
}
.kb-resource__cta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
  transition: color .15s ease;
}
.kb-resource:hover .kb-resource__cta { color: var(--hi); }

/* -------- Gallery strip (between Projects and Desa Park City cinematic break) -------- */
.gallery-strip {
  padding: 96px 0;
  background: var(--bg-2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.gallery-tile {
  margin: 0;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-left-color .2s ease, transform .2s ease;
}
.gallery-tile:hover {
  border-left-color: var(--hi);
  transform: translateY(-2px);
}
.gallery-tile--lead { grid-row: span 1; }
.gallery-tile img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.05);
  transition: transform .5s ease, filter .3s ease;
}
.gallery-tile--lead img { height: 480px; }
.gallery-tile:hover img {
  filter: saturate(1.05) contrast(1.05);
}
.gallery-tile figcaption {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-tile__tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
}
.gallery-tile h4 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 4px 0 0;
  line-height: 1.1;
}
.gallery-tile p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mut);
  margin: 4px 0 0;
}

@media (max-width: 1100px) { .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery-tile--lead img { height: 380px; } }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-tile img, .gallery-tile--lead img { height: 280px; }
}

/* Gallery: lead-generation CTAs */
.gallery-tile__tag {
  /* Override default tag style for question-mark intent */
  font-style: normal;
  text-transform: none !important;
  letter-spacing: .04em !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--amber) !important;
  font-family: var(--ff-mono);
}
.gallery-tile h4 {
  font-size: 22px !important;
  margin-top: 2px !important;
}
.gallery-tile__cta {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(244,239,226,.3);
  padding-bottom: 2px;
  transition: color .15s ease, border-bottom-color .15s ease;
}
.gallery-tile__cta:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.gallery-cta-line {
  margin: 56px 0 0;
  padding: 28px 36px;
  background: var(--bg-surface);
  border-left: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mut);
}
.gallery-cta-line .tech-label { color: var(--amber); margin: 0; }
.gallery-cta-btn { align-self: flex-start; margin-top: 8px; }
@media (min-width: 900px) {
  .gallery-cta-line {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .gallery-cta-line .tech-label { flex-shrink: 0; }
  .gallery-cta-btn { margin-top: 0; margin-left: auto; flex-shrink: 0; }
}

/* Capabilities: lead-gen CTA strip below the 7-tile grid */
.caps-cta-line {
  margin: 48px 0 0;
  padding: 28px 36px;
  background: var(--bg-surface);
  border-left: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mut);
  max-width: 100%;
  box-sizing: border-box;
}
.caps-cta-line .tech-label { color: var(--amber); margin: 0; }
.caps-cta-btn {
  align-self: flex-start;
  margin-top: 8px;
  /* Allow text to wrap on narrow phones so the long CTA doesn't push past viewport */
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
@media (min-width: 900px) {
  .caps-cta-line { flex-direction: row; align-items: center; gap: 24px; }
  .caps-cta-line .tech-label { flex-shrink: 0; }
  .caps-cta-btn { margin-top: 0; margin-left: auto; flex-shrink: 0; }
}

/* Capabilities eyebrow now reads as a question; tune typography */
.cap__eyebrow {
  /* Eyebrow is now a question, slightly larger + readable */
  font-size: 12px !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* -------- Lead-gen CTA lines (Why + About) -------- */
.why-cta-line, .about-statement {
  margin: 48px 0 0;
  padding: 28px 36px;
  background: var(--bg-surface);
  border-left: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mut);
}
.why-cta-line .tech-label, .about-statement .tech-label { color: var(--amber); margin: 0; }
.about-statement p {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--ink);
  margin: 4px 0 8px;
  max-width: 56ch;
}
.about-statement p .hi { color: var(--hi); font-weight: 900; }
.why-cta-btn, .about-cta-btn { align-self: flex-start; margin-top: 6px; }
@media (min-width: 900px) {
  .why-cta-line { flex-direction: row; align-items: center; gap: 24px; }
  .why-cta-line .tech-label { flex-shrink: 0; }
  .why-cta-btn { margin-top: 0; margin-left: auto; flex-shrink: 0; }
}
@media (max-width: 700px) {
  .why-cta-line, .about-statement { padding: 24px 22px; }
  .about-statement p { font-size: 18px; }
}

/* -------- Trust strip (replaces basic .strip) -------- */
.trust-strip {
  padding: 56px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-strip__head {
  margin-bottom: 28px;
  text-align: center;
}
.trust-strip__head .tech-label {
  color: var(--amber);
  display: inline-block;
  margin-bottom: 10px;
}
.trust-strip__head p {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.005em;
  color: var(--mut);
  margin: 0;
}
.trust-strip__head p b {
  color: var(--ink);
  font-weight: 900;
}
.trust-strip__row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.trust-strip__chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--amber);
  text-align: left;
  transition: border-left-color .2s ease, transform .2s ease;
}
.trust-strip__chip:hover { border-left-color: var(--hi); transform: translateY(-1px); }
.trust-strip__chip b {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.trust-strip__chip small {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut-2);
  line-height: 1.3;
}
@media (max-width: 1200px) { .trust-strip__row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .trust-strip__row { grid-template-columns: repeat(2, 1fr); } .trust-strip__chip { padding: 12px 10px; } }
@media (max-width: 380px) { .trust-strip__row { grid-template-columns: 1fr; } }

/* =========================================================================
   Bottom tab bar, native-app feel on mobile + tablet
   Hidden on desktop (>1100px). Frosted-glass nav, amber accent for WhatsApp.
   ========================================================================= */
.tabbar {
  display: none; /* shown via media query below */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(10, 20, 38, .92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--amber);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
  overflow: hidden; /* hide horizontal overflow but show inner scroll */
}
/* Right-edge fade, hints there's more content to scroll. Disabled when bar
   doesn't overflow (tablet+). */
.tabbar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0);
  width: 36px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 20, 38, 0), rgba(10, 20, 38, .92) 60%);
  opacity: 0;
  transition: opacity .25s var(--ease-soft);
}
.tabbar.is-scrollable::after { opacity: 1; }
.tabbar.is-at-end::after { opacity: 0; }
/* The inner scroll container, this is what actually scrolls horizontally */
.tabbar__scroll {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-behavior: smooth;
}
.tabbar__scroll::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.tabbar__tab {
  flex: 0 0 auto; /* don't shrink, allow natural width */
  min-width: 68px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 10px 8px;
  min-height: 60px;
  color: var(--mut-2);
  text-decoration: none;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .15s ease, background .15s ease, transform .15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.tabbar__tab:hover,
.tabbar__tab:focus-visible {
  color: var(--ink);
  outline: none;
}
.tabbar__tab:active {
  transform: scale(.96);
}
.tabbar__tab.is-active {
  color: var(--amber);
}
.tabbar__tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: var(--amber);
}
.tabbar__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.tabbar__lbl {
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
/* WhatsApp tab, amber accent so it reads as the conversion CTA */
.tabbar__tab--whatsapp {
  color: var(--amber);
}
.tabbar__tab--whatsapp:hover,
.tabbar__tab--whatsapp:focus-visible {
  color: var(--hi);
}
.tabbar__icon-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tabbar__pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  pointer-events: none;
  animation: tabbarPulse 2.4s ease-out infinite;
}
@keyframes tabbarPulse {
  0%   { transform: scale(.85); opacity: .9; }
  70%  { transform: scale(1.6); opacity: 0;  }
  100% { transform: scale(1.6); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) {
  .tabbar__pulse { animation: none; opacity: .25; }
}

/* Tab bar is SITE-WIDE on every device. Desktop, tablet, mobile.
   Triple-locked: !important + body-scoped + html-scoped, so no cascade,
   browser cache, or stale CSS can ever hide it. */
nav.tabbar,
body nav.tabbar,
html body nav.tabbar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
/* Floating WhatsApp FAB is redundant when tabbar Chat exists */
.wa-fab { display: none !important; }
/* Desktop refinement: bigger touch targets, centered scroll container */
@media (min-width: 1101px) {
  .tabbar__scroll {
    max-width: var(--container);
    margin: 0 auto;
    justify-content: center;
  }
  .tabbar__tab { min-width: 92px; padding: 13px 14px 10px; }
  .tabbar__lbl { font-size: 11px; }
  .tabbar__icon { width: 24px; height: 24px; }
  body { padding-bottom: 70px; }
}
@media (min-width: 1600px) {
  .tabbar__tab { min-width: 104px; padding: 14px 16px 12px; }
}
@media (max-width: 380px) {
  .tabbar__tab { padding: 8px 2px 6px; min-height: 56px; }
  .tabbar__lbl { font-size: 9px; letter-spacing: .06em; }
  .tabbar__icon { width: 20px; height: 20px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }
}
@media print { .tabbar { display: none; } }
/* Interactive vs Comparison: hover/tap a row to highlight both that row
   and its matching pair in the other column. Dim others. Like the user's
   eye is being guided across the comparison rather than overwhelmed. */
.vs__row {
  cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-soft),
              background var(--dur-base) var(--ease-soft),
              border-color var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-snap);
}
.vs__row:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.vs.is-focused .vs__row:not(.is-highlight) { opacity: .35; }
.vs__row.is-highlight {
  background: rgba(212, 162, 58, .08);
  transform: translateX(2px);
}
.vs__col--us .vs__row.is-highlight { border-left: 3px solid var(--amber); padding-left: calc(1rem - 3px); }
.vs__col--them .vs__row.is-highlight { border-left: 3px solid var(--mut-2); padding-left: calc(1rem - 3px); }
.vs__row.is-highlight .vs__chip {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
  transform: scale(1.05);
}
.vs__chip {
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-snap);
}

/* While a tap is auto-scrolling the bar past other tabs, kill hover
   so intermediate tabs don't get the hover/active visual treatment
   as they slide under the cursor. */
.tabbar.is-tapping .tabbar__tab:hover,
.tabbar.is-tapping .tabbar__tab:focus-visible {
  color: var(--mut-2);
}
.tabbar.is-tapping .tabbar__tab.is-active { color: var(--amber); }
.tabbar.is-tapping .tabbar__tab.tabbar__tab--whatsapp { color: var(--amber); }
.tabbar.is-tapping .tabbar__tab { pointer-events: none; }
.tabbar.is-tapping .tabbar__tab.is-active { pointer-events: auto; }

/* =========================================================================
   vs Other walls, tap-to-expand accordion (replaces wordy 6-card grid)
   Apple-style: collapsed rows by default, tap reveals trade-offs.
   AnchorSOL row pre-opened, amber-accented.
   ========================================================================= */
.vs-others__hint {
  margin: 8px 0 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut-2);
}
.vs-acc {
  margin: 32px 0 0;
  border: 1px solid var(--rule);
  background: var(--bg-surface);
}
.vs-acc__row {
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur-base) var(--ease-soft);
}
.vs-acc__row:last-child { border-bottom: 0; }
.vs-acc__row[open] {
  background: var(--bg-surface-2);
}
.vs-acc__sum {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-soft);
}
.vs-acc__sum::-webkit-details-marker { display: none; }
.vs-acc__sum::marker { display: none; content: ""; }
.vs-acc__sum:hover { background: rgba(255,255,255,.03); }
.vs-acc__name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.15;
}
.vs-acc__short {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mut);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.3;
}
.vs-acc__chev {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.vs-acc__chev::before, .vs-acc__chev::after {
  content: "";
  position: absolute;
  background: var(--amber);
  top: 50%;
  left: 50%;
  transition: transform var(--dur-base) var(--ease-expo);
}
.vs-acc__chev::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.vs-acc__chev::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.vs-acc__row[open] .vs-acc__chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.vs-acc__body {
  padding: 0 22px 22px;
  animation: vsAccOpen var(--dur-slow) var(--ease-expo);
}
.vs-acc__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.vs-acc__body li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mut);
}
.vs-acc__body li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--amber);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  top: 3px;
}
.vs-acc__body b { color: var(--ink); }
.vs-acc__verdict {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: rgba(212, 162, 58, .08);
  border-left: 2px solid var(--amber);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
@keyframes vsAccOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* AnchorSOL row, amber-tinted to stand apart */
.vs-acc__row--accent {
  background: linear-gradient(180deg, rgba(212, 162, 58, .06), rgba(212, 162, 58, .02));
  border-left: 3px solid var(--amber);
}
.vs-acc__row--accent[open] {
  background: linear-gradient(180deg, rgba(212, 162, 58, .12), rgba(212, 162, 58, .04));
}
.vs-acc__row--accent .vs-acc__name {
  color: var(--amber);
}
/* Narrow phones, stack the short summary beneath the title */
@media (max-width: 640px) {
  .vs-acc__sum {
    grid-template-columns: 1fr 28px;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    padding: 16px 16px;
  }
  .vs-acc__name { grid-column: 1; grid-row: 1; font-size: 15px; }
  .vs-acc__short { grid-column: 1; grid-row: 2; text-align: left; font-size: 10px; }
  .vs-acc__chev { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .vs-acc__body { padding: 0 16px 18px; }
}

/* =========================================================================
   Pull-quote, dramatic airquote treatment.
   Two oversized amber quote marks flanking the line, big serif glyphs,
   the quote text sits between like a stage spotlight on it.
   ========================================================================= */
.pull-quote {
  margin: 5rem auto;
  max-width: 1040px;
  padding: 3.5rem 3rem;
  position: relative;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* Opening quote mark, top-left */
.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -28px;
  left: 8%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 180px;
  line-height: 1;
  color: var(--amber);
  opacity: .9;
  pointer-events: none;
  text-shadow: 0 4px 24px rgba(212, 162, 58, .25);
}
/* Closing quote mark, bottom-right */
.pull-quote::after {
  content: "\201D";
  position: absolute;
  bottom: -100px;
  right: 8%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 180px;
  line-height: 1;
  color: var(--amber);
  opacity: .9;
  pointer-events: none;
  text-shadow: 0 4px 24px rgba(212, 162, 58, .25);
}
.pull-quote blockquote {
  margin: 0 auto;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
  text-transform: uppercase;
  max-width: 22ch;
}
.pull-quote blockquote .hi { color: var(--amber); }
@media (max-width: 720px) {
  .pull-quote {
    margin: 3rem 0;
    padding: 2.5rem 1.5rem;
  }
  .pull-quote::before { font-size: 100px; top: -16px; left: 6%; }
  .pull-quote::after { font-size: 100px; bottom: -60px; right: 6%; }
  .pull-quote blockquote { font-size: clamp(22px, 6vw, 30px); max-width: 18ch; }
}

/* =========================================================================
   Unified Use Cases (Applications) grid, replaces the old Capabilities +
   Applications sections. Each card pairs a constraint question (eyebrow)
   with an application segment (title) + photo + proof chips.
   ========================================================================= */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.usecase {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-expo),
              border-color var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.usecase:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}
.usecase__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.usecase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-expo);
}
/* Image zoom on hover removed: was distracting when the cursor merely
   passed over a card mid-scroll. Cards still lift on hover. */
.usecase__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
  flex: 1 1 auto;
}
.usecase__eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  line-height: 1.4;
}
.usecase__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.usecase__body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mut);
  margin: 0;
}
.usecase__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.usecase__chips .chip {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--mut);
  text-transform: uppercase;
  white-space: nowrap;
}
.usecase__chips .chip--accent {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(212, 162, 58, .06);
}
@media (max-width: 1100px) {
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .usecases-grid { grid-template-columns: 1fr; gap: 16px; }
  .usecase__title { font-size: 20px; }
  .usecase__body { padding: 18px 18px 20px; }
}

/* CTA row beneath the closing pull-quote in About */
.about-cta-row {
  margin: 2.5rem 0 0;
  text-align: center;
}
@media (max-width: 720px) {
  .about-cta-row { text-align: left; }
}

/* =========================================================================
   APPLE-GRADE REFINEMENT LAYER
   Cascade-overrides for slow motion, premium type, refined buttons,
   premium nav, scroll-reveal entrance. Drops in late so it wins.
   ========================================================================= */

/* -- Easing tokens, Apple-flavored -- */
:root {
  --ease-expo:   cubic-bezier(.16, 1, .3, 1);    /* ease-out-expo, Apple's go-to */
  --ease-soft:   cubic-bezier(.4, 0, .2, 1);     /* Material's standard, also Apple-grade */
  --ease-snap:   cubic-bezier(.2, .9, .3, 1);    /* tactile button feedback */
  --dur-fast:    .18s;
  --dur-base:    .32s;
  --dur-slow:    .6s;
  --dur-deep:    .9s;
}

/* -- Type polish, system-wide -- */
html { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; }
h1, h2, h3, h4, h5, h6, .h1, .h2 { font-feature-settings: "kern" 1, "ss01" 1; letter-spacing: -.025em; }
.mono, [class*="mono"], .stat-card__num, .spec-card__num, code, pre { font-variant-numeric: tabular-nums slashed-zero; }

/* -- Refined buttons, Apple-tier feel -- */
.btn {
  padding: 18px 28px;
  font-size: 13px;
  letter-spacing: .09em;
  transition:
    background var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft),
    transform var(--dur-base) var(--ease-snap),
    box-shadow var(--dur-base) var(--ease-soft);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: var(--dur-fast); }
.btn--p:hover, .btn--primary:hover { box-shadow: 0 10px 30px rgba(244, 239, 226, .18), 0 4px 10px rgba(212, 162, 58, .15); }
.btn--g:hover, .btn--ghost:hover, .btn--ghost-light:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Tab bar tabs also pick up the snappy feel */
.tabbar__tab { transition: color var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-snap); }

/* -- Premium nav, compact-on-scroll, stronger frosted glass when scrolled -- */
.nav, .header {
  transition:
    background-color var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft),
    backdrop-filter var(--dur-base) var(--ease-soft);
}
.nav.scrolled, .header.scrolled {
  background: rgba(10, 20, 38, .78);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 1px 0 var(--rule), 0 12px 32px rgba(0, 0, 0, .35);
}

/* -- Scroll reveal, one-shot fade-up. Added via JS by setting data-reveal -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-deep) var(--ease-expo), transform var(--dur-deep) var(--ease-expo);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
[data-reveal][data-reveal-delay="1"] { transition-delay: .06s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .12s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .18s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: .3s; }

/* -- Hero entrance, staggered rows + lede + buttons.
      Triggered by .hero-ready on <body> set by JS once DOM is interactive.
      Uses transitions (not animations) so it's robust on backgrounded tabs. -- */
.hero__l > .rank,
.hero__l > p.lede,
.hero__l > .hero__btns,
.hero__l > h1 .row {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-deep) var(--ease-expo), transform var(--dur-deep) var(--ease-expo);
  will-change: opacity, transform;
}
.hero__r video, .hero__r > img {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease-expo), transform 1.4s var(--ease-expo);
}
body.hero-ready .hero__l > .rank        { opacity: 1; transform: translateY(0); transition-delay: .05s; }
body.hero-ready .hero__l > h1 .row:nth-of-type(1) { opacity: 1; transform: translateY(0); transition-delay: .18s; }
body.hero-ready .hero__l > h1 .row:nth-of-type(2) { opacity: 1; transform: translateY(0); transition-delay: .28s; }
body.hero-ready .hero__l > h1 .row:nth-of-type(3) { opacity: 1; transform: translateY(0); transition-delay: .38s; }
body.hero-ready .hero__l > p.lede       { opacity: 1; transform: translateY(0); transition-delay: .52s; }
body.hero-ready .hero__l > .hero__btns  { opacity: 1; transform: translateY(0); transition-delay: .64s; }
body.hero-ready .hero__r video,
body.hero-ready .hero__r > img          { opacity: 1; transform: scale(1); transition-delay: .15s; }

/* -- Reduced motion, kill all of the above -- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__l > .rank, .hero__l > p.lede, .hero__l > .hero__btns,
  .hero__l > h1 .row, .hero__r video, .hero__r > img {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .btn { transition: none !important; }
}
/* No-JS safety, if site.js never runs, hero is still visible */
html.no-js .hero__l > .rank, html.no-js .hero__l > p.lede, html.no-js .hero__l > .hero__btns,
html.no-js .hero__l > h1 .row, html.no-js .hero__r video, html.no-js .hero__r > img {
  opacity: 1 !important; transform: none !important;
}

/* -- Section breathing, refined rhythm -- */
section { scroll-margin-top: 100px; }
.mse, #system, #why, #lean, #capabilities, #applications, #projects, #contact, #about,
.kb-article > section, .kb-hub > section {
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

/* -- Premium card hover, gentle lift -- */
.proj, .proj-card, .app-card, .spec-card, .stat-card, .compare__col, .step, .kb-card,
.benefit, .resource, .post-card, .feature, .testimonial {
  transition:
    transform var(--dur-base) var(--ease-expo),
    border-color var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft);
}
.proj:hover, .proj-card:hover, .app-card:hover, .spec-card:hover,
.compare__col:hover, .step:hover, .kb-card:hover, .benefit:hover, .feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

/* Image zoom-on-hover removed across all cards. Cards still lift on
   hover via translateY; the image stays static so the user isn't
   distracted by zoom artifacts when scrolling past cards quickly. */
.proj img, .proj-card img, .app-card img, .gallery a img, .kb-card img {
  transition: filter var(--dur-slow) var(--ease-soft);
}

/* -- Body link slow underline reveal, optional polish -- */
a:not(.btn):not(.nav__cta):not(.tabbar__tab):not(.wa-fab) {
  transition: color var(--dur-fast) var(--ease-soft);
}

/* -- Section number eyebrows get subtle animation room -- */
.secmark, .sechead, .hero__l > .rank { letter-spacing: .14em; }

/* -- Focus-visible refinement across the board -- */
*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 0;
}

/* -- Smooth scroll w/ correct offset for sticky nav -- */
html { scroll-padding-top: 120px; }
@media (max-width: 1100px) { html { scroll-padding-top: 80px; } }
