/* ==========================================================================
   SagarAI — Marine Vision Systems
   Design system: "Admiralty Chart"
   Palette derived from Indian Naval Hydrographic chart conventions:
   deep-water navy, shoal aqua, chart paper, cautionary magenta, track amber.
   ========================================================================== */

:root {
  /* --- Depth ramp (deep water -> shoal -> drying height) --- */
  --abyss:      #04202F;
  --deep:       #08304A;
  --shelf:      #114E6E;
  --midwater:   #1C6A90;
  --shoal:      #7FB2C4;
  --shallow:    #BCD8DE;

  /* --- Chart paper --- */
  --chart:      #EDF1EC;
  --paper:      #FAFCF9;
  --rule:       #C8D3CE;
  --rule-soft:  #DDE4DF;

  /* --- Signal colours --- */
  --magenta:    #C9186E;   /* Admiralty cautionary / restricted area */
  --magenta-dk: #9E1256;
  --amber:      #F2A93B;   /* EO/IR track + detection reticle */
  --amber-dim:  #B87C22;
  --sea-green:  #1F7A63;   /* verified / operational */

  /* --- Ink --- */
  --ink:        #0A1D26;
  --ink-2:      #35505C;
  --ink-3:      #6A8390;
  --on-dark:    #E6EEF0;
  --on-dark-2:  #9FBBC6;
  --on-dark-3:  #6B8C9B;

  /* --- Type --- */
  --display: "Archivo", "Archivo Expanded", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Metrics --- */
  --wrap: 1220px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --sec-y: clamp(3.75rem, 8vw, 7rem);
  --radius: 3px;
  --radius-lg: 5px;

  --shadow-sm: 0 1px 2px rgba(4, 32, 47, .07), 0 2px 8px rgba(4, 32, 47, .05);
  --shadow-md: 0 2px 4px rgba(4, 32, 47, .07), 0 12px 32px rgba(4, 32, 47, .09);
  --shadow-lg: 0 4px 8px rgba(4, 32, 47, .08), 0 24px 64px rgba(4, 32, 47, .14);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0125rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--shelf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.021em;
  line-height: 1.1;
  color: var(--abyss);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.22rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.075rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--amber); color: var(--abyss); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--abyss); color: #fff; padding: .85rem 1.35rem;
  font: 600 .85rem/1 var(--body);
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--dark { background: var(--abyss); color: var(--on-dark-2); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark a { color: var(--shoal); }
.section--dark a:hover { color: var(--amber); }

.section--chart { background: var(--chart); }

/* Sounding-grid texture: the recurring chart motif */
.soundings {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, var(--rule) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.section--dark .soundings {
  opacity: .3;
  background-image: radial-gradient(circle at 1px 1px, rgba(127,178,196,.5) 1px, transparent 0);
}

.grid { display: grid; gap: clamp(1.15rem, 2.4vw, 1.9rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.g-sidebar { grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

@media (max-width: 960px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-split, .g-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Eyebrow — encodes chart-sheet section referencing
   ========================================================================== */

.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .705rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--magenta); flex: none;
}
.section--dark .eyebrow { color: var(--amber); }
.section--dark .eyebrow::before { background: var(--amber); }

.lede {
  font-size: clamp(1.055rem, 1.85vw, 1.235rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--dark .lede { color: var(--on-dark-2); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.masthead {
  position: sticky; top: 0; z-index: 200;
  background: rgba(4, 32, 47, .93);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(127, 178, 196, .17);
}

.masthead__bar {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: .68rem; text-decoration: none; flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand__name {
  font-family: var(--display); font-weight: 800; font-size: 1.235rem;
  letter-spacing: -.028em; color: #fff; line-height: 1;
}
.brand__tag {
  display: block; font-family: var(--mono); font-size: .565rem; font-weight: 400;
  letter-spacing: .21em; text-transform: uppercase; color: var(--shoal);
  margin-top: 3px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .18rem; }

.nav__item { position: relative; }

.nav__link {
  display: flex; align-items: center; gap: .3rem;
  padding: .62rem .74rem;
  font-size: .875rem; font-weight: 500;
  color: var(--on-dark-2); text-decoration: none;
  border-radius: var(--radius);
  transition: color .16s, background .16s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: #fff; background: rgba(127,178,196,.12); }
.nav__link[aria-current="page"] { color: var(--amber); }
.nav__link svg { width: 9px; height: 9px; opacity: .65; transition: transform .2s; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + 9px); left: 0;
  min-width: 322px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-7px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item--right .nav__panel { left: auto; right: 0; }
.nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__sub {
  display: block; padding: .6rem .72rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: background .14s;
}
.nav__sub:hover { background: var(--chart); color: var(--ink); }
.nav__sub strong {
  display: block; font-size: .875rem; font-weight: 600; letter-spacing: -.005em;
  font-family: var(--display);
}
.nav__sub span { display: block; font-size: .765rem; color: var(--ink-3); line-height: 1.45; margin-top: 1px; }
.nav__sub code {
  font-family: var(--mono); font-size: .625rem; color: var(--magenta);
  letter-spacing: .06em; text-transform: uppercase;
}

.nav__cta {
  margin-left: .55rem;
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .58rem 1.05rem;
  background: var(--magenta); color: #fff;
  font-size: .845rem; font-weight: 600; text-decoration: none;
  border-radius: var(--radius); white-space: nowrap;
  transition: background .16s;
}
.nav__cta:hover { background: var(--magenta-dk); color: #fff; }

.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid rgba(127,178,196,.3);
  border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--on-dark); position: relative; transition: background .15s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--on-dark);
  transition: transform .2s, top .2s;
}
.burger span::before { top: -5.5px; }
.burger span::after  { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: flex; }
  /* backdrop-filter would make .masthead the containing block for the
     fixed-position drawer below, collapsing it. Use a solid bar instead. */
  .masthead { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--abyss); }
  .nav {
    position: fixed; inset: 72px 0 0; margin: 0;
    background: var(--abyss);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.1rem var(--gutter) 2.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .27s cubic-bezier(.4,0,.2,1);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: .95rem .25rem; font-size: 1rem; border-bottom: 1px solid rgba(127,178,196,.12); justify-content: space-between; }
  .nav__panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; min-width: 0;
    padding: 0 0 .5rem .25rem;
    display: none;
  }
  .nav__item.is-open .nav__panel { display: block; }
  .nav__sub { color: var(--on-dark-2); padding: .58rem .5rem; }
  .nav__sub strong { color: var(--on-dark); }
  .nav__sub span { color: var(--on-dark-3); }
  .nav__sub:hover { background: rgba(127,178,196,.09); }
  .nav__cta { margin: 1.15rem 0 0; justify-content: center; padding: .92rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--body); font-size: .915rem; font-weight: 600;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .17s, color .17s, border-color .17s, transform .17s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.btn--primary:hover { background: var(--magenta-dk); border-color: var(--magenta-dk); color: #fff; }

.btn--dark { background: var(--abyss); color: #fff; border-color: var(--abyss); }
.btn--dark:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

.btn--ghost { background: transparent; color: var(--abyss); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--abyss); color: var(--abyss); background: transparent; }

.btn--onDark { background: transparent; color: var(--on-dark); border-color: rgba(127,178,196,.42); }
.btn--onDark:hover { background: rgba(127,178,196,.13); color: #fff; border-color: var(--shoal); }

.btn--amber { background: var(--amber); color: var(--abyss); border-color: var(--amber); }
.btn--amber:hover { background: #FFC163; border-color: #FFC163; color: var(--abyss); }

.btn-row { display: flex; flex-wrap: wrap; gap: .78rem; }

/* ==========================================================================
   HERO — signature element: bathymetric contour scope
   ========================================================================== */

.hero {
  position: relative;
  background: var(--abyss);
  color: var(--on-dark-2);
  overflow: hidden;
  padding-block: clamp(3.4rem, 7vw, 6rem) clamp(3.4rem, 7vw, 5.5rem);
}

.hero__bg { position: absolute; inset: 0; opacity: .95; }
.hero__bg svg { width: 100%; height: 100%; object-fit: cover; }

.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: minmax(0,1fr); } }

.hero h1 { color: #fff; margin-bottom: .55em; }
.hero h1 em {
  font-style: normal; color: var(--amber);
  /* chart-style underline: a depth contour beneath the key phrase */
  background-image: linear-gradient(transparent 78%, rgba(242,169,59,.28) 78%);
}

.hero__lede { font-size: clamp(1.045rem, 1.9vw, 1.2rem); color: var(--on-dark-2); max-width: 54ch; margin-bottom: 1.9rem; }

.hero__fix {
  display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  line-height: 1.5;
  font-family: var(--mono); font-size: .69rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--shoal);
  border: 1px solid rgba(127,178,196,.28);
  border-radius: 100px; padding: .38rem .85rem .38rem .62rem;
  margin-bottom: 1.5rem;
}
.hero__fix b { color: var(--amber); font-weight: 500; }
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none;
  box-shadow: 0 0 0 0 rgba(242,169,59,.75);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(242,169,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,169,59,0); }
}

/* Scope panel */
.scope {
  position: relative;
  border: 1px solid rgba(127,178,196,.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(17,78,110,.42), rgba(4,32,47,.75));
  padding: .8rem;
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.scope__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-3);
  padding: .1rem .2rem .68rem;
  border-bottom: 1px solid rgba(127,178,196,.16);
  margin-bottom: .7rem;
}
.scope__head b { color: var(--amber); font-weight: 500; }
.scope__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem;
  margin-top: .72rem; padding-top: .72rem;
  border-top: 1px solid rgba(127,178,196,.16);
}
.scope__stat { text-align: left; }
.scope__stat b {
  display: block; font-family: var(--display); font-size: 1.32rem; font-weight: 700;
  color: #fff; letter-spacing: -.025em; line-height: 1.1;
  white-space: nowrap;
}
.scope__stat b i { font-style: normal; font-size: .68em; font-weight: 600; margin-left: .1em; }
.scope__stat span {
  display: block; font-family: var(--mono); font-size: .585rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-dark-3); margin-top: 3px; line-height: 1.35;
}

/* Ticker of programme alignment */
.hero__rail {
  position: relative; z-index: 2;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(127,178,196,.17);
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.55rem;
}
.hero__rail p {
  font-family: var(--mono); font-size: .655rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-dark-3); margin: 0; flex: none;
}

/* ==========================================================================
   Badge tiles (programme alignment + clients)
   ========================================================================== */

.badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .46rem .82rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--paper);
  font-size: .775rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none;
  transition: border-color .16s, color .16s;
}
.badge:hover { border-color: var(--magenta); color: var(--magenta); }
.badge img, .badge svg { width: 17px; height: 17px; flex: none; }
.section--dark .badge, .hero .badge {
  background: rgba(127,178,196,.07); border-color: rgba(127,178,196,.26); color: var(--on-dark-2);
}
.section--dark .badge:hover, .hero .badge:hover { border-color: var(--amber); color: var(--amber); }

.emblem-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
}
.emblem {
  background: var(--paper); padding: 1.4rem 1rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  min-height: 132px; text-decoration: none;
  transition: background .17s;
}
.emblem:hover { background: var(--chart); }
.emblem img { height: 44px; width: auto; }
.emblem span {
  font-family: var(--mono); font-size: .615rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.4;
}

/* Client wall */
.clientwall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: rgba(127,178,196,.2);
  border: 1px solid rgba(127,178,196,.2); border-radius: var(--radius-lg); overflow: hidden;
}
.clientwall--light { background: var(--rule); border-color: var(--rule); }
.clientcell {
  background: var(--abyss); padding: 1.7rem 1.15rem;
  display: flex; flex-direction: column; gap: .5rem; justify-content: center;
  min-height: 128px; text-decoration: none; transition: background .18s;
}
.clientwall--light .clientcell { background: var(--paper); }
.clientcell:hover { background: var(--deep); }
.clientwall--light .clientcell:hover { background: var(--chart); }
.clientcell img { height: 40px; width: auto; }
.clientcell b {
  font-family: var(--display); font-size: .93rem; font-weight: 700; color: #fff;
  letter-spacing: -.015em; line-height: 1.25;
}
.clientwall--light .clientcell b { color: var(--abyss); }
.clientcell span {
  font-family: var(--mono); font-size: .59rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--on-dark-3);
}
.clientwall--light .clientcell span { color: var(--ink-3); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  text-decoration: none; color: inherit;
  position: relative;
}
a.card:hover { border-color: var(--shelf); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: .42em; }
.card p { color: var(--ink-2); font-size: .925rem; margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: 1.15rem; }
.card__foot--row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}

.card--dark { background: rgba(127,178,196,.05); border-color: rgba(127,178,196,.2); }
.card--dark p { color: var(--on-dark-2); }
a.card--dark:hover { border-color: var(--shoal); background: rgba(127,178,196,.09); }

.card__ref {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: .85rem; display: block;
}
.card--dark .card__ref { color: var(--amber); }

.card__icon {
  width: 42px; height: 42px; margin-bottom: 1.05rem;
  color: var(--shelf);
}
.card--dark .card__icon { color: var(--shoal); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .42rem;
  font-size: .855rem; font-weight: 600; color: var(--magenta); text-decoration: none;
}
.arrow-link svg { width: 14px; height: 14px; transition: transform .18s; }
a.card:hover .arrow-link svg, .arrow-link:hover svg { transform: translateX(3px); }
.card--dark .arrow-link, .section--dark .arrow-link { color: var(--amber); }

/* Product card with visual */
.pcard { padding: 0; overflow: hidden; }
.pcard__vis {
  aspect-ratio: 16 / 9; background: var(--abyss);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  border-bottom: 1px solid var(--rule);
}
.pcard__vis svg, .pcard__vis img { width: 100%; height: 100%; object-fit: contain; }
.pcard__body { padding: 1.45rem 1.55rem 1.55rem; display: flex; flex-direction: column; flex: 1; }

/* ==========================================================================
   Spec tables & data
   ========================================================================== */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; background: var(--paper); }
caption {
  text-align: left; padding: 1rem 1.15rem; font-family: var(--mono);
  font-size: .655rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule); background: var(--chart);
}
th, td { text-align: left; padding: .78rem 1.15rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; background: var(--chart);
  border-bottom: 1px solid var(--rule);
}
tbody th { font-weight: 600; color: var(--abyss); width: 34%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: rgba(237,241,236,.6); }
td code, th code { font-family: var(--mono); font-size: .845em; color: var(--shelf); }

.statline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
}
.section--dark .statline, .statline--dark { background: rgba(127,178,196,.2); border-color: rgba(127,178,196,.2); }
.statline > div { background: var(--paper); padding: 1.45rem 1.25rem; }
.section--dark .statline > div, .statline--dark > div { background: var(--abyss); }
.statline b {
  display: block; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800; letter-spacing: -.035em; color: var(--abyss); line-height: 1;
}
.section--dark .statline b, .statline--dark b { color: #fff; }
.statline em {
  font-style: normal; color: var(--magenta);
}
.section--dark .statline em, .statline--dark em { color: var(--amber); }
.statline span {
  display: block; margin-top: .55rem; font-size: .795rem; line-height: 1.45; color: var(--ink-3);
}
.section--dark .statline span, .statline--dark span { color: var(--on-dark-3); }

/* ==========================================================================
   Feature list / checks
   ========================================================================== */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .78rem; }
.checks li { position: relative; padding-left: 1.7rem; font-size: .935rem; color: var(--ink-2); line-height: 1.6; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border: 1.5px solid var(--magenta); border-radius: 1px;
  transform: rotate(45deg);
}
.section--dark .checks li { color: var(--on-dark-2); }
.section--dark .checks li::before { border-color: var(--amber); }
.checks li strong { color: var(--abyss); font-weight: 600; }
.section--dark .checks li strong { color: #fff; }

/* Sounding list — numbered but only where sequence is real */
.soundlist { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.soundlist li {
  counter-increment: s; position: relative; padding: 1.15rem 0 1.15rem 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.soundlist li:last-child { border-bottom: 0; }
.soundlist li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.2rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  color: var(--magenta); letter-spacing: .05em;
}
.soundlist h3, .soundlist h4 { margin-bottom: .3em; font-size: 1.075rem; letter-spacing: -.01em; }
.soundlist p { font-size: .915rem; color: var(--ink-2); margin: 0; }
.section--dark .soundlist li { border-color: rgba(127,178,196,.18); }
.section--dark .soundlist li::before { color: var(--amber); }
.section--dark .soundlist p { color: var(--on-dark-2); }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.phead {
  background: var(--abyss); color: var(--on-dark-2);
  padding-block: clamp(2.6rem, 5.5vw, 4.4rem) clamp(2.6rem, 5.5vw, 4rem);
  position: relative; overflow: hidden;
}
.phead h1 { color: #fff; }
.phead .lede { color: var(--on-dark-2); }
.phead__inner { position: relative; z-index: 2; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .42rem;
  font-family: var(--mono); font-size: .655rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--on-dark-3); margin-bottom: 1.35rem; list-style: none; padding: 0;
}
.crumbs a { color: var(--shoal); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs li { display: flex; align-items: center; gap: .42rem; }
.crumbs li + li::before { content: "/"; color: var(--on-dark-3); opacity: .55; }

/* ==========================================================================
   Prose (articles, legal)
   ========================================================================== */

.prose { font-size: 1.045rem; line-height: 1.75; color: var(--ink-2); }
.prose > * { max-width: 72ch; }
.prose h2 { margin-top: 2.4em; font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.prose h3 { margin-top: 1.9em; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose blockquote {
  margin: 2em 0; padding: 1.25rem 1.6rem;
  border-left: 3px solid var(--magenta); background: var(--chart);
  font-size: 1.075rem; color: var(--abyss); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 2.2em 0; max-width: 100%; }
.prose figcaption {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .07em; color: var(--ink-3);
  margin-top: .75rem; line-height: 1.5;
}
.prose code {
  font-family: var(--mono); font-size: .87em; background: var(--chart);
  padding: .12em .38em; border-radius: 2px; color: var(--shelf);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .42rem; }
.field label {
  font-family: var(--mono); font-size: .665rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.field label .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .945rem; color: var(--ink);
  padding: .78rem .9rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); width: 100%;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--shelf);
  box-shadow: 0 0 0 3px rgba(28,106,144,.14);
}
.field textarea { min-height: 132px; resize: vertical; }
.field small { font-size: .775rem; color: var(--ink-3); }
.form__note {
  font-size: .8rem; color: var(--ink-3); line-height: 1.55;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ==========================================================================
   Contact blocks
   ========================================================================== */

.contactcard {
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: var(--paper); padding: 1.6rem;
}
.contactcard h3 { margin-bottom: .18em; font-size: 1.145rem; }
.contactcard .role {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 1.1rem;
}
.contactcard dl { margin: 0; display: grid; gap: .62rem; }
.contactcard dt {
  font-family: var(--mono); font-size: .615rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.contactcard dd { margin: .12rem 0 0; font-size: .935rem; font-weight: 500; }
.contactcard dd a { color: var(--abyss); text-decoration: none; border-bottom: 1px solid var(--rule); }
.contactcard dd a:hover { color: var(--magenta); border-color: var(--magenta); }

.callbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem;
  background: var(--abyss); color: var(--on-dark-2);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem;
}
.callbar__txt { flex: 1 1 260px; }
.callbar b { display: block; font-family: var(--display); color: #fff; font-size: 1.16rem; letter-spacing: -.02em; }
.callbar span { font-size: .87rem; }
.callbar .tel {
  font-family: var(--mono); font-size: 1.28rem; font-weight: 500; letter-spacing: -.01em;
  color: var(--amber); text-decoration: none; white-space: nowrap;
}
.callbar .tel:hover { color: #FFC163; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: linear-gradient(140deg, var(--deep), var(--abyss) 62%);
  color: var(--on-dark-2); position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot { background: var(--abyss); color: var(--on-dark-3); padding-block: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid rgba(127,178,196,.16); }
.foot__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 2.2rem clamp(1.2rem, 3vw, 2.4rem);
}
@media (max-width: 1020px) { .foot__grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 700px)  { .foot__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px)  { .foot__grid { grid-template-columns: minmax(0,1fr); } }

.foot__brand { grid-column: span 1; }
@media (max-width: 1020px) { .foot__brand { grid-column: 1 / -1; } }
.foot__brand p { font-size: .875rem; line-height: 1.65; margin: 1rem 0 1.15rem; max-width: 40ch; }

.foot h5 {
  font-family: var(--mono); font-size: .645rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--shoal); margin: 0 0 1rem; font-weight: 500;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot a { color: var(--on-dark-3); text-decoration: none; font-size: .87rem; }
.foot a:hover { color: var(--amber); }

.foot__addr { font-size: .87rem; line-height: 1.65; font-style: normal; }
.foot__addr a { display: inline; }

.foot__bar {
  margin-top: clamp(2.4rem, 5vw, 3.4rem); padding-block: 1.5rem;
  border-top: 1px solid rgba(127,178,196,.16);
  display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; align-items: center;
  font-size: .79rem;
}
.foot__bar p { margin: 0; }
.foot__bar nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-0 { margin-top: 0; } .mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 1.9rem; } .mt-4 { margin-top: 2.6rem; } .mt-5 { margin-top: 3.4rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 1.9rem; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.mono { font-family: var(--mono); }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.hr { height: 1px; background: var(--rule); border: 0; margin-block: clamp(2.4rem, 5vw, 3.6rem); }
.section--dark .hr { background: rgba(127,178,196,.18); }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .615rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 2px;
  background: var(--chart); color: var(--ink-2); border: 1px solid var(--rule);
}
.tag--live { background: rgba(31,122,99,.1); color: var(--sea-green); border-color: rgba(31,122,99,.3); }
.tag--trial { background: rgba(242,169,59,.13); color: var(--amber-dim); border-color: rgba(242,169,59,.4); }
.tag--dev { background: rgba(201,24,110,.08); color: var(--magenta); border-color: rgba(201,24,110,.25); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* Print */
@media print {
  .masthead, .foot, .cta-band, .burger { display: none; }
  body { background: #fff; color: #000; }
  .hero, .phead, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .phead h1, .section--dark h2 { color: #000 !important; }
}

/* Narrow-viewport hero tidy-up */
@media (max-width: 760px) {
  .hero__bg svg .depths { display: none; }
  .hero__bg { opacity: .8; }
  .scope__stats { grid-template-columns: repeat(3, 1fr); }
  .scope__stat b { font-size: 1.12rem; }
  .callbar { padding: 1.25rem; }
  .callbar .tel { font-size: 1.12rem; }
}

/* ==========================================================================
   Perception Lab — interactive capability demonstrations
   ========================================================================== */
.lab { display: grid; grid-template-columns: 268px 1fr; gap: 1.75rem; align-items: start; }
.lab__rail {
  position: sticky; top: 92px; display: flex; flex-direction: column; gap: .3rem;
  border: 1px solid var(--rule); border-radius: 12px; padding: .55rem; background: var(--paper);
}
.lab__tab {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: 8px; padding: .62rem .7rem;
  font-family: var(--body); font-size: .93rem; color: var(--ink); line-height: 1.35;
  border-left: 3px solid transparent; transition: background .16s ease, border-color .16s ease;
}
.lab__tab span {
  display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .12rem;
}
.lab__tab:hover { background: var(--chart); }
.lab__tab[aria-selected="true"] {
  background: var(--abyss); border-left-color: var(--magenta); color: #fff;
}
.lab__tab[aria-selected="true"] span { color: var(--amber); }
.lab__tab:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

.lab__panel { min-width: 0; }
.lab__panel[hidden] { display: none; }
.lab__panel > h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin: .1rem 0 .5rem; }
.lab__panel > p { max-width: 62ch; color: var(--ink-2); }

.lab__viz {
  margin: 1.15rem 0 0; border-radius: 12px; overflow: hidden;
  background: var(--abyss); border: 1px solid var(--rule-d);
}
.lab__cv { width: 100%; height: auto; display: block; }
.lab__cv:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.lab__err { color: var(--ink-2); padding: 2rem; font-size: .92rem; }

.lab__ctrls {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem 1.5rem; align-items: start;
  padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-top: 0;
  border-radius: 0 0 12px 12px; background: var(--paper); margin-top: -1px;
}
.lab__ctrl { min-width: 0; }
.lab__lab {
  display: flex; justify-content: space-between; gap: .6rem; align-items: baseline;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem;
}
.lab__val { color: var(--magenta); font-size: .82rem; letter-spacing: 0; }
.lab__range { width: 100%; accent-color: var(--magenta); cursor: pointer; }
.lab__range:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.lab__seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.lab__segbtn {
  background: none; border: 0; cursor: pointer; padding: .45rem .8rem;
  font-family: var(--mono); font-size: .76rem; color: var(--ink-2);
  border-right: 1px solid var(--rule);
}
.lab__segbtn:last-child { border-right: 0; }
.lab__segbtn[aria-pressed="true"] { background: var(--abyss); color: #fff; }
.lab__segbtn:focus-visible { outline: 2px solid var(--magenta); outline-offset: -2px; }

.lab__chips { display: flex; flex-wrap: wrap; gap: .38rem; }
.lab__chip {
  --chip: var(--midwater);
  background: none; cursor: pointer; padding: .32rem .62rem .32rem .62rem;
  border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: .38rem;
}
.lab__chip::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: var(--chip); opacity: .28;
}
.lab__chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-3); }
.lab__chip[aria-pressed="true"]::before { opacity: 1; }
.lab__chip:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

.lab__act { margin-top: .3rem; }
.lab__read { display: grid; gap: .3rem; align-self: start; }
.lab__readrow {
  --rc: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font-size: .82rem; padding-bottom: .3rem; border-bottom: 1px dotted var(--rule);
}
.lab__readrow span { color: var(--ink-3); font-family: var(--mono); font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; }
.lab__readrow b { color: var(--rc); font-weight: 600; text-align: right; }

.lab__meta { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lab__meta li {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 999px; padding: .26rem .66rem;
}
.lab__note {
  margin-top: 1rem; font-size: .8rem; color: var(--ink-3);
  border-left: 2px solid var(--amber); padding-left: .8rem; max-width: 66ch;
}
/* Without JS every panel stays visible and readable. */
.lab:not(.lab--live) .lab__rail { display: none; }
.lab:not(.lab--live) { grid-template-columns: 1fr; }
.lab:not(.lab--live) .lab__panel { border-top: 1px solid var(--rule); padding-top: 1.6rem; margin-top: 1.6rem; }

@media (max-width: 900px) {
  .lab { grid-template-columns: 1fr; }
  .lab__rail {
    position: static; flex-direction: row; overflow-x: auto; gap: .3rem;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .lab__tab { white-space: nowrap; flex: 0 0 auto; border-left: 0; border-bottom: 3px solid transparent; }
  .lab__tab[aria-selected="true"] { border-left: 0; border-bottom-color: var(--magenta); }
  .lab__ctrls { grid-template-columns: 1fr; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
