/* ==========================================================================
   Silvalytics Solutions site stylesheet
   One file. Tokens, type scale and components follow work/design_spec.md.
   No external requests: fonts and textures are relative to this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted Inter, SIL OFL; see ../fonts/OFL.txt)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2"),
       url("../fonts/Inter-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-Medium.woff2") format("woff2"),
       url("../fonts/Inter-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2"),
       url("../fonts/Inter-SemiBold.ttf") format("truetype");
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand colors (facts.md) */
  --deep: #0E3B2C;
  --primary: #0E8A4F;
  --lime: #8CC63F;
  --pale: #EEF6F0;
  --paper: #F7FAF8;
  --ink: #14241B;
  --muted: #55685C;
  --rule: #D3E2D7;
  --on-deep: #FFFFFF;
  --on-deep-muted: #C7DECF;
  --white: #FFFFFF;
  --rule-on-deep: rgba(255, 255, 255, 0.18);
  --frame-on-deep: rgba(199, 222, 207, 0.35);

  /* spacing, 4 px base */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* responsive rhythm (overridden at breakpoints below) */
  --gutter: 16px;
  --gap: 16px;
  --section: 48px;
  --section-deep: 64px;
  --header-h: 56px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --radius-lg: 6px;
  --ease: 150ms ease;
}
@media (min-width: 480px) {
  :root {
    --gutter: 24px;
    --section: 64px;
    --section-deep: 80px;
  }
}
@media (min-width: 768px) {
  :root {
    --gap: 24px;
    --header-h: 64px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --gap: 32px;
    --section: 96px;
    --section-deep: 112px;
  }
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1024px) {
  body {
    font-size: 1.0625rem;
  }
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}
img, video {
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), text-decoration-thickness var(--ease);
}
a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
main {
  display: block;
}
svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Type scale
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 24ch;
  text-wrap: balance;
}
h3, .h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
@media (min-width: 1024px) {
  h3, .h3 {
    font-size: 1.3125rem;
  }
}
.lead {
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 60ch;
}
@media (min-width: 768px) {
  .lead {
    font-size: 1.25rem;
  }
}
.small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  flex-shrink: 0;
}
.eyebrow--plain::before {
  display: none;
}
.eyebrow--center {
  justify-content: center;
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* vertical rhythm inside heading blocks and running text */
.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3,
.eyebrow + .h1,
.eyebrow + .h2,
.eyebrow + .h3 {
  margin-top: var(--s3);
}
h1 + .lead,
h2 + .lead,
.h1 + .lead,
.h2 + .lead,
h1 + p,
h2 + p {
  margin-top: var(--s4);
}
h3 + p,
.h3 + p {
  margin-top: var(--s2);
}
p + p,
p + ul,
p + ol,
ul + p,
ol + p {
  margin-top: var(--s4);
}
.lead + .btn-row,
p + .btn-row {
  margin-top: var(--s6);
}
.btn-row + .small,
.btn-row + p {
  margin-top: var(--s4);
}
.section-head {
  margin-bottom: var(--s6);
}
.prose h2 {
  margin: var(--s7) 0 var(--s4);
}
.prose h3 {
  margin: var(--s6) 0 var(--s2);
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  max-width: 68ch;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: var(--s2);
}
.center {
  text-align: center;
}
.center h1,
.center h2,
.center .lead,
.center p {
  margin-left: auto;
  margin-right: auto;
}
.center .btn-row,
.btn-row--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. Layout utilities
   -------------------------------------------------------------------------- */
.wrap,
.wrap-wide,
.wrap-prose {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap {
  max-width: calc(1160px + 2 * var(--gutter));
}
.wrap-wide {
  max-width: calc(1360px + 2 * var(--gutter));
}
.wrap-prose {
  max-width: calc(720px + 2 * var(--gutter));
}
.bleed {
  width: 100%;
}
.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.section--tight {
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}
.bg-paper {
  background: var(--paper);
}
.bg-white {
  background: var(--white);
}
.bg-pale {
  background: var(--pale);
}
.rule-top {
  border-top: 1px solid var(--rule);
}
.rule-bottom {
  border-bottom: 1px solid var(--rule);
}

/* 12-column grid: single column below 768, paired halves 768 to 1023, 12 columns at 1024 */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6) var(--gap);
}
.grid--center {
  align-items: center;
}
.grid--end {
  align-items: end;
}
.grid--gap-lg {
  gap: var(--s6) var(--gap);
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .col-1-4, .col-1-5 { grid-column: 1 / 7; }
  .col-1-6, .col-1-7, .col-1-8 { grid-column: 1 / 8; }
  .col-1-12 { grid-column: 1 / 13; }
  .col-5-12, .col-6-12, .col-6-11 { grid-column: 7 / 13; }
  .col-7-12, .col-8-12, .col-9-12 { grid-column: 8 / 13; }
}
@media (min-width: 1024px) {
  .col-1-4 { grid-column: 1 / 5; }
  .col-1-5 { grid-column: 1 / 6; }
  .col-1-6 { grid-column: 1 / 7; }
  .col-1-7 { grid-column: 1 / 8; }
  .col-1-8 { grid-column: 1 / 9; }
  .col-1-12 { grid-column: 1 / 13; }
  .col-5-12 { grid-column: 5 / 13; }
  .col-6-11 { grid-column: 6 / 12; }
  .col-6-12 { grid-column: 6 / 13; }
  .col-7-12 { grid-column: 7 / 13; }
  .col-8-12 { grid-column: 8 / 13; }
  .col-9-12 { grid-column: 9 / 13; }
  .grid--gap-lg {
    gap: var(--s6) var(--s7);
  }
}

/* stack: vertical spacing between children; cluster: wrapping inline row */
.stack > * + * {
  margin-top: var(--stack, var(--s4));
}
.stack--sm {
  --stack: var(--s2);
}
.stack--lg {
  --stack: var(--s6);
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   6. Skip link
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--deep);
  color: var(--on-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus,
.skip:focus-visible {
  transform: none;
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Skip-link target: focused by fragment navigation only, so no ring on the whole region. */
main:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   7. Header and navigation
   The toggle is a checkbox + label so the menu works with JavaScript off.
   site.js adds aria-expanded, Escape and outside-click closing.
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 40px;
  width: auto;
}
@media (max-width: 479px) {
  .brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .brand img {
    height: 34px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
}
.nav-toggle__cb {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s2);
  margin-right: calc(-1 * var(--s2));
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle__cb:focus-visible + .nav-toggle {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.nav-toggle__close {
  display: none;
  align-items: center;
  gap: var(--s2);
}
.nav-toggle__cb:checked ~ .nav-toggle .nav-toggle__open {
  display: none;
}
.nav-toggle__cb:checked ~ .nav-toggle .nav-toggle__close {
  display: inline-flex;
}
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gutter) var(--s4);
}
.nav-toggle__cb:checked ~ .nav {
  display: block;
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li {
  border-top: 1px solid var(--rule);
}
.nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.nav__link:hover,
.nav__link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav__cta {
  margin-top: var(--s3);
}
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  /* The checkbox has no visible control at this width, so take it out of the tab order. */
  .nav-toggle__cb {
    display: none;
  }
  .nav,
  .nav-toggle__cb:checked ~ .nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav__list li {
    border: 0;
  }
  .nav__link {
    min-height: 44px;
  }
  .nav__cta {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   8. Buttons and text links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 14px 22px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), text-decoration-thickness var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn--primary {
  background: var(--deep);
  color: var(--on-deep);
  border-color: var(--deep);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.btn--primary:active {
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.25);
}
.btn--secondary {
  color: var(--deep);
  border: 1.5px solid var(--primary);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--pale);
}
.btn--sm {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.9375rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}
@media (max-width: 479.98px) {
  .btn-row > .btn {
    width: 100%;
  }
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.link-arrow:hover,
.link-arrow:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Deep bands (hero, CTA, proof, footer)
   -------------------------------------------------------------------------- */
.band-deep {
  background: var(--deep);
  color: var(--on-deep);
  padding-top: var(--section-deep);
  padding-bottom: var(--section-deep);
}
.band-deep h1,
.band-deep h2,
.band-deep h3,
.band-deep .h1,
.band-deep .h2,
.band-deep .h3 {
  color: var(--on-deep);
}
.band-deep .eyebrow,
.band-deep .lead,
.band-deep .small,
.band-deep .stat__l {
  color: var(--on-deep-muted);
}
.band-deep a {
  color: var(--on-deep);
  text-decoration-color: var(--on-deep-muted);
}
.band-deep a:hover,
.band-deep a:focus-visible {
  text-decoration-color: var(--lime);
}
.band-deep :focus-visible {
  outline-color: var(--lime);
}
.band-deep .btn--primary {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}
.band-deep .btn--primary:hover,
.band-deep .btn--primary:focus-visible {
  background: var(--pale);
  border-color: var(--pale);
}
.band-deep .btn--secondary {
  color: var(--on-deep);
  border-color: var(--on-deep-muted);
}
.band-deep .btn--secondary:hover,
.band-deep .btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}
.band-deep .link-arrow {
  color: var(--on-deep);
}
.band-deep .link-arrow svg {
  color: var(--lime);
}
.band-deep .badge {
  border-color: var(--lime);
  color: var(--on-deep-muted);
}
.band-deep .rule-top,
.band-deep .rule-bottom {
  border-color: var(--rule-on-deep);
}

/* --------------------------------------------------------------------------
   10. Texture modifier
   -------------------------------------------------------------------------- */
.topo {
  position: relative;
  isolation: isolate;
}
.topo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/topo-light.jpg");
  background-repeat: repeat;
  background-size: 900px auto;
  opacity: 0.35;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Figures: viewer frame and full-bleed exhibit
   -------------------------------------------------------------------------- */
.viewer {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.viewer img,
.viewer video {
  display: block;
  width: 100%;
  height: auto;
}
.viewer video {
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
.viewer__status {
  padding: var(--s2) var(--s3);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.viewer--on-deep,
.band-deep .viewer {
  border-color: var(--frame-on-deep);
  background: rgba(255, 255, 255, 0.04);
}
.viewer--on-deep .viewer__status,
.band-deep .viewer .viewer__status {
  color: var(--on-deep-muted);
  border-color: var(--frame-on-deep);
}
.viewer--capped img {
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}
.video-block {
  margin: 0;
}
.exhibit {
  margin: 0;
}
.exhibit img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
}
.exhibit--strip img {
  aspect-ratio: 16 / 9;
}
@media (min-width: 768px) {
  .exhibit img,
  .exhibit--strip img {
    aspect-ratio: auto;
  }
}
.exhibit figcaption {
  padding-top: var(--s3);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.figure-row {
  display: grid;
  gap: var(--gap);
  margin-top: var(--gap);
}
.figure-row + .viewer {
  margin-top: var(--gap);
}
@media (min-width: 768px) {
  .figure-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
/* three figures: two columns with the third centered on tablets, three across on desktop */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .figure-row--3 > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--gap) / 2);
  }
}
@media (min-width: 1024px) {
  .figure-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   12. Stat tiles
   .stats (4-up), .stats--3 (3-up), .stats--6 (3 x 2), .stats--sm (smaller numeral)
   -------------------------------------------------------------------------- */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5) 0;
}
.stats + .stats {
  margin-top: var(--s5);
}
.stat {
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.stat__n {
  display: block;
  font-size: clamp(2.125rem, 1.6rem + 2.3vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__l {
  display: block;
  margin-top: var(--s2);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}
.stats--sm .stat__n {
  font-size: 1.75rem;
}
.band-deep .stat {
  border-color: var(--rule-on-deep);
}
@media (min-width: 360px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .stats--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    row-gap: var(--s6);
  }
  .stats--3,
  .stats--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding-top: 0;
    padding-left: var(--s5);
    padding-right: var(--s5);
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .band-deep .stat {
    border-color: var(--rule-on-deep);
  }
  .stats .stat:nth-child(4n + 1) {
    padding-left: 0;
    border-left: 0;
  }
  .stats--3 .stat:nth-child(4n + 1),
  .stats--6 .stat:nth-child(4n + 1) {
    padding-left: var(--s5);
    border-left: 1px solid var(--rule);
  }
  .band-deep .stats--3 .stat:nth-child(4n + 1),
  .band-deep .stats--6 .stat:nth-child(4n + 1) {
    border-color: var(--rule-on-deep);
  }
  .stats--3 .stat:nth-child(3n + 1),
  .stats--6 .stat:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   13. Feature grid, audience grid, traction grid, card grid
   -------------------------------------------------------------------------- */
.feature-grid,
.audience-grid,
.traction-grid,
.card-grid,
.person-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6) var(--gap);
}
@media (min-width: 768px) {
  .feature-grid,
  .audience-grid,
  .card-grid,
  .person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .feature-grid,
  .traction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .audience-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.feature {
  padding-top: var(--s4);
  border-top: 1px solid var(--primary);
}
.feature svg,
.card svg,
.funds svg {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.feature svg {
  margin-bottom: var(--s3);
}
.feature h3 + p,
.audience h3 + p,
.traction-item h3 + p {
  margin-top: var(--s2);
}
.audience {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.audience .link-arrow,
.card .link-arrow {
  margin-top: auto;
  padding-top: var(--s2);
}
.traction-item h3 {
  margin-top: var(--s4);
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: var(--primary);
}
.card p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Step list (ol.steps > li.step)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--s5);
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6) var(--gap);
  border-left: 2px solid var(--primary);
}
.step {
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--s3);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.step h3 + p {
  margin-top: var(--s2);
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: var(--s5) 0 0;
    border-left: 0;
    border-top: 2px solid var(--primary);
  }
}

/* --------------------------------------------------------------------------
   15. Checklists, plain list, "together" box, dev strip
   -------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--rule);
}
.checklist li:first-child {
  border-top: 0;
}
.checklist svg {
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
  color: var(--primary);
}
.checklist--muted svg {
  color: var(--muted);
}
.band-deep .checklist li {
  border-color: var(--rule-on-deep);
}
.band-deep .checklist svg {
  color: var(--lime);
}
@media (min-width: 768px) {
  .checklist--2col {
    columns: 2;
    column-gap: var(--gap);
  }
  .checklist--2col li {
    break-inside: avoid;
  }
}
.plainlist {
  padding-left: 1.25em;
  margin-top: var(--s4);
}
.plainlist li + li {
  margin-top: var(--s2);
}
.together {
  padding: var(--s5);
  background: var(--pale);
  border-left: 3px solid var(--primary);
  font-size: 1.125rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .together {
    font-size: 1.25rem;
  }
}
.dev-strip {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--pale);
  border-radius: var(--radius-lg);
}
.dev-strip ul {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
}
.dev-strip li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--muted);
}
.dev-strip svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Definition rows (dl.defrows > div.defrows__row > dt + dd)
   -------------------------------------------------------------------------- */
.defrows {
  margin: 0;
  border-top: 1px solid var(--rule);
}
.defrows__row {
  padding: var(--s4);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.defrows__row:nth-child(even) {
  background: var(--pale);
}
.defrows dt {
  font-weight: 600;
}
.defrows dd {
  margin: var(--s1) 0 0;
}
@media (min-width: 768px) {
  .defrows__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--gap);
  }
  .defrows dd {
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   17. Tables
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--s6);
}
.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.table--compare {
  min-width: 760px;
}
.table--ba {
  min-width: 520px;
}
.table th,
.table td {
  padding: var(--s3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.table thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}
.table th[scope="row"] {
  font-weight: 600;
  border-left: 3px solid var(--primary);
  color: var(--deep);
}
.table tbody tr:nth-child(odd) {
  background: var(--paper);
}
.table--ba td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table--ba thead th:not(:first-child) {
  text-align: right;
}
.table--ba td:last-child {
  font-weight: 600;
}
.table--ba td .table__baseline {
  display: block;
  margin-top: var(--s1);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
}
/* Phones: the before/after table fits the screen (three short columns) instead of scrolling sideways. */
@media (max-width: 767.98px) {
  .table--ba {
    min-width: 0;
    font-size: 0.875rem;
  }
  .table--ba th,
  .table--ba td {
    padding: var(--s2);
  }
  .table--ba td {
    white-space: normal;
  }
  .table--ba td .table__baseline {
    font-size: 0.8125rem;
  }
}
/* Phones: the cruise comparison becomes one card per aspect, with each answer labeled by its column
   (the data-label attribute on every cell), so the Silvalytics Solutions and Together columns are never off-screen. */
@media (max-width: 767.98px) {
  .table--compare {
    min-width: 0;
  }
  .table--compare,
  .table--compare tbody,
  .table--compare tr,
  .table--compare th,
  .table--compare td {
    display: block;
  }
  .table--compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .table--compare tbody tr,
  .table--compare tbody tr:nth-child(odd) {
    margin-top: var(--s4);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
  }
  .table--compare tbody tr:first-child {
    margin-top: 0;
  }
  .table--compare th[scope="row"] {
    padding: var(--s3) var(--s4);
    background: var(--pale);
    border-bottom: 1px solid var(--rule);
  }
  .table--compare td {
    padding: var(--s3) var(--s4);
  }
  .table--compare td:last-child {
    border-bottom: 0;
  }
  .table--compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--s1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
.table--on-deep,
.band-deep .table {
  color: var(--on-deep);
}
.table--on-deep th,
.table--on-deep td,
.band-deep .table th,
.band-deep .table td {
  border-color: var(--rule-on-deep);
}
.table--on-deep thead th,
.band-deep .table thead th {
  border-bottom-color: var(--lime);
}
.table--on-deep th[scope="row"],
.band-deep .table th[scope="row"] {
  color: var(--on-deep);
  border-left-color: var(--lime);
}
.table--on-deep tbody tr:nth-child(odd),
.band-deep .table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}
.table-scroll + .small,
.table-scroll + p {
  margin-top: var(--s4);
}

/* --------------------------------------------------------------------------
   18. Facts list, funding areas, persons
   -------------------------------------------------------------------------- */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact {
  padding: var(--s5) 0;
  border-top: 1px solid var(--rule);
}
.fact:first-child {
  padding-top: 0;
  border-top: 0;
}
.fact__figure {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.fact__text {
  margin-top: var(--s2);
}
.fact__source {
  display: block;
  margin-top: var(--s2);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.funds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.funds li {
  padding: var(--s5);
  border-top: 1px solid var(--rule);
}
.funds li:first-child {
  border-top: 0;
}
.funds svg {
  margin: var(--s3) 0 var(--s2);
}
@media (min-width: 640px) {
  .funds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .funds li:nth-child(2) {
    border-top: 0;
  }
  .funds li:nth-child(even) {
    border-left: 1px solid var(--rule);
  }
}
.person h3 + .copy-email {
  margin-top: var(--s2);
}
.person-grid + p {
  margin-top: var(--s6);
}

/* --------------------------------------------------------------------------
   19. FAQ (details/summary, no JavaScript)
   -------------------------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s3);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::marker {
  content: "";
}
.faq-item summary svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.faq-item summary:hover,
.faq-item[open] {
  background: var(--pale);
}
.faq-item[open] summary svg {
  transform: rotate(180deg);
}
.faq-item__body {
  padding: 0 var(--s5) var(--s5);
}
.faq-item__body p + p {
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   20. Forms (Netlify Forms pattern; see work/components.md)
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s5);
}
.form__row {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 768px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: grid;
  gap: var(--s2);
}
.field__label {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}
.field__help {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.field__error {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--deep);
}
.field__input,
.field__select,
.field__textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}
.field__textarea {
  min-height: 0;
  resize: vertical;
}
.field__input:hover,
.field__select:hover,
.field__textarea:hover {
  border-color: var(--ink);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.field__input:user-invalid,
.field__select:user-invalid,
.field__textarea:user-invalid {
  border-color: var(--deep);
  box-shadow: inset 0 0 0 1px var(--deep);
}
.field:has(:user-invalid) .field__error,
.field.is-invalid .field__error {
  display: block;
}
.field.is-invalid .field__input,
.field.is-invalid .field__select,
.field.is-invalid .field__textarea {
  border-color: var(--deep);
  box-shadow: inset 0 0 0 1px var(--deep);
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.select {
  position: relative;
}
.select .field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
}
.select svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--muted);
  pointer-events: none;
}
.field--hp {
  position: absolute;
  left: -9999px;
}
.form__actions {
  display: grid;
  gap: var(--s3);
}
.form__actions .small {
  margin: 0;
}
.aside {
  padding: var(--s6);
  background: var(--pale);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.aside > * + * {
  margin-top: var(--s4);
}
.aside .eyebrow {
  margin-top: var(--s6);
}
.aside .eyebrow:first-child {
  margin-top: 0;
}
.aside ol {
  padding-left: 1.25em;
}
.aside li + li {
  margin-top: var(--s2);
}

/* --------------------------------------------------------------------------
   21. Copy-email control
   -------------------------------------------------------------------------- */
.copy-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  max-width: 100%;
}
/* The address always sits on its own line; Email and Copy share the next line, the same for every person. */
.copy-email__addr {
  flex: 0 0 100%;
  -webkit-user-select: all;
  user-select: all;
  overflow-wrap: anywhere;
}
.copy-email__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--deep);
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
.copy-email__btn svg {
  width: 16px;
  height: 16px;
}
.copy-email__btn:hover,
.copy-email__btn:focus-visible {
  background: var(--pale);
}
.copy-email__btn.is-copied {
  background: var(--pale);
  border-color: var(--deep);
}
.no-js .copy-email__btn {
  display: none;
}
/* Phones: the address always sits on its own line, with Email and Copy together on the next line. */
@media (max-width: 479.98px) {
  .copy-email {
    display: flex;
  }
  .copy-email__addr {
    flex: 0 0 100%;
  }
}
.copy-email__live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.band-deep .copy-email__btn {
  color: var(--on-deep);
  border-color: var(--on-deep-muted);
}
.band-deep .copy-email__btn:hover,
.band-deep .copy-email__btn:focus-visible,
.band-deep .copy-email__btn.is-copied {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--lime);
}

/* --------------------------------------------------------------------------
   22. CTA band, cross-link row, hero, page head
   -------------------------------------------------------------------------- */
.cta .btn-row {
  margin-top: 0;
}
@media (min-width: 1024px) {
  .cta__actions {
    align-self: end;
    justify-content: flex-end;
  }
}
.crosslink {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.crosslink__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s5);
}
.crosslink__in p {
  max-width: 60ch;
}
.hero .viewer {
  width: 100%;
}
.page-head {
  padding-bottom: var(--s7);
}
.page-head .exhibit {
  margin-top: var(--s7);
}
.mark {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto var(--s5);
}
.center .mark {
  margin-left: auto;
  margin-right: auto;
}
.page-center {
  padding-top: var(--section);
  padding-bottom: var(--section);
  min-height: 60vh;
}

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
main > .cta:last-child {
  padding-bottom: var(--s8);
}
.site-footer {
  border-top: 1px solid var(--rule-on-deep);
  padding-top: var(--s8);
  padding-bottom: var(--s8);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 0.8fr 1.5fr 1.1fr;
  }
}
.site-footer__brand img {
  display: block;
  height: 40px;
  width: auto;
}
.site-footer__meta {
  margin-top: var(--s4);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--on-deep-muted);
}
.site-footer__heading {
  margin-bottom: var(--s3);
}
.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
.site-footer__list a {
  text-decoration: none;
}
.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
}
.site-footer__person {
  font-weight: 500;
}
.site-footer__person + .site-footer__person {
  margin-top: var(--s4);
}
.site-footer__person .copy-email {
  display: flex;
  margin-top: var(--s1);
  font-weight: 400;
  font-size: 0.9375rem;
}
.site-footer__notes p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--on-deep-muted);
}
.site-footer__notes p + p {
  margin-top: var(--s2);
}
.site-footer__bottom {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule-on-deep);
  font-size: 0.8125rem;
  color: var(--on-deep-muted);
}

/* --------------------------------------------------------------------------
   24. Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
  .faq-item[open] summary svg {
    transform: rotate(180deg);
  }
}
