/* ══════════════════════════════════════════════════════════════
   VENTRA — SITE COMPONENTS
   All values come from tokens.css. Square corners, monochrome,
   silver as the only accent, 32° as the only diagonal.
   ══════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-on-light);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* ── Focus — visible, consistent, everywhere ── */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 300;
  background: var(--white);
  color: var(--ventra-black);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  padding: var(--sp-3) var(--sp-6);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--sp-4); }

/* ── Layout primitives ── */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sp-24); }
.section--tight { padding-block: var(--sp-16); }

.surface-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.surface-light { background: var(--surface-light); }
.surface-white { background: var(--surface-white); }

.measure { max-width: var(--measure); }

/* Anchor offset for the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ── Type ── */
h1, h2, h3 {
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: var(--measure); }

.lede {
  font-size: var(--fs-h3);
  line-height: 1.55;
  color: var(--text-muted-light);
}
.surface-dark .lede, .cta-band .lede { color: var(--text-muted-dark); }

.pull-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--stone);
}
.surface-dark .pull-quote { color: var(--silver); }

/* ── Section label — V chevron + mono tag. The chevron is the
     logo's construction geometry (32° per side). ── */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--sp-6);
}
.surface-dark .section-label,
.hero .section-label,
.cta-band .section-label { color: var(--silver); }
.section-label::before {
  content: '';
  width: 13px;
  height: 9px;
  flex-shrink: 0;
  /* V chevron drawn at the mark's 32° construction angle */
  background: currentColor;
  clip-path: polygon(0 0, 18% 0, 50% 78%, 82% 0, 100% 0, 58% 100%, 42% 100%);
}

/* ── Trace divider — a schematic line that steps down at 32°,
     the "service line" running through the page. ── */
.trace {
  display: block;
  width: 100%;
  height: 56px;
  stroke: var(--mist);
  stroke-width: 1;
  fill: none;
}
.trace--on-dark { stroke: var(--slate); }

/* ── Buttons — square, hard-edged ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-ui);
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--solid-light { background: var(--white); color: var(--ventra-black); }
.btn--solid-light:hover { background: var(--mist); }
.btn--solid-dark { background: var(--ventra-black); color: var(--white); }
.btn--solid-dark:hover { background: var(--slate); }
.btn--ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: var(--slate);
}
.btn--ghost-dark:hover { border-color: var(--silver); }
.btn--ghost-light {
  background: transparent;
  color: var(--ventra-black);
  border-color: var(--silver);
}
.btn--ghost-light:hover { border-color: var(--ventra-black); }

/* ── Text link with chevron ── */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-ui);
  color: var(--ventra-black);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--ventra-black); }
.surface-dark .text-link { color: var(--white); border-color: var(--slate); }
.surface-dark .text-link:hover { border-color: var(--silver); }
.text-link::after {
  content: '';
  width: 9px;
  height: 13px;
  background: currentColor;
  /* the V chevron rotated to point forward */
  clip-path: polygon(0 0, 0 18%, 78% 50%, 0 82%, 0 100%, 100% 58%, 100% 42%);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ventra-black);
  border-bottom: 1px solid var(--graphite);
}
.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.site-header__logo { flex-shrink: 0; display: flex; align-items: center; }
.site-header__logo img { height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: var(--sp-8); }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}
.site-nav__links a {
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-ui);
  color: var(--silver);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] { color: var(--white); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-1);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--ventra-black);
  border-bottom: 1px solid var(--graphite);
  padding: var(--sp-2) 0 var(--sp-8);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul a {
  display: block;
  padding: var(--sp-4) var(--gutter);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid var(--graphite);
}
.nav-mobile ul a:hover { color: var(--white); }
.nav-mobile .btn { margin: var(--sp-6) var(--gutter) 0; }

@media (max-width: 900px) {
  .site-nav__links, .site-header__cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--ventra-black);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--sp-32) var(--sp-24);
}
/* Optional photographic background - dark gradient keeps the brand's
   black-dominant hero rule; text side (left) stays near-opaque black. */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo picture, .hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: grayscale(1);
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.88) 42%, rgba(13,13,13,0.62) 100%);
}
/* Lower-resolution source photos: object-fit:cover on a full-bleed banner
   forces a large upscale (2.5x-4.5x for these), which reads as pixelated
   on wide screens. Contain keeps the image at close to its native scale,
   letterboxed onto the hero's own black background instead of blown up. */
.hero__photo--fit img {
  object-fit: contain;
  object-position: right center;
}
/* Brand signage device: V mark watermark at 5% opacity */
.hero__mark {
  position: absolute;
  top: -8%;
  right: -4%;
  width: min(52vw, 640px);
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-display);
  max-width: 14ch;
}
.hero__support {
  margin-top: var(--sp-6);
  font-size: var(--fs-h3);
  line-height: 1.55;
  color: var(--silver);
  max-width: 40ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

/* ── Telemetry strip — the signature element. Categorical statuses
     only; no invented metrics. ── */
.telemetry {
  margin-top: var(--sp-16);
  border-top: 1px solid var(--graphite);
  padding-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  column-gap: var(--sp-12);
  row-gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-mono);
}
.telemetry__item { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 720px) {
  .telemetry {
    grid-template-columns: repeat(2, minmax(0, auto));
    column-gap: var(--sp-8);
    row-gap: var(--sp-6);
  }
}
.telemetry__key { color: var(--silver); font-size: var(--fs-label); }
.telemetry__val { color: var(--white); }

/* Orchestrated hero sequence — runs once, ~1.2s total */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    transform: translateY(10px);
    animation: hero-in-solid 0.5s ease forwards;
  }
  .hero__support, .hero__ctas {
    opacity: 0;
    transform: translateY(10px);
    animation: hero-in 0.5s ease forwards;
  }
  .hero__support { animation-delay: 0.15s; }
  .hero__ctas { animation-delay: 0.3s; }
  .telemetry__item {
    opacity: 0;
    animation: hero-in 0.4s ease forwards;
  }
  .telemetry__item:nth-child(1) { animation-delay: 0.55s; }
  .telemetry__item:nth-child(2) { animation-delay: 0.75s; }
  .telemetry__item:nth-child(3) { animation-delay: 0.95s; }
  .telemetry__item:nth-child(4) { animation-delay: 1.15s; }
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-in-solid {
  to { transform: translateY(0); }
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: var(--sp-8);
}
.card h3 { color: var(--white); margin-bottom: var(--sp-3); }
.card p { font-size: var(--fs-sm); color: var(--silver); }
.card .mono-tag { margin-bottom: var(--sp-4); }

.surface-light .card,
.surface-white .card {
  background: var(--white);
  border-color: var(--border-light);
}
.surface-light .card h3, .surface-white .card h3 { color: var(--ventra-black); }
.surface-light .card p, .surface-white .card p { color: var(--stone); }

.mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
}
a.mono-tag:hover { color: var(--ventra-black); }
.surface-dark a.mono-tag:hover { color: var(--white); }
.surface-dark .mono-tag { color: var(--silver); }

/* ── Steps (numbered process) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  counter-reset: step;
}
.step {
  counter-increment: step;
  border-top: 1px solid var(--border-light);
  padding-top: var(--sp-6);
}
.surface-dark .step { border-color: var(--border-dark); }
.step::before {
  content: '0' counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-mono);
  color: var(--stone);
  margin-bottom: var(--sp-4);
}
.surface-dark .step::before { color: var(--silver); }
.step h3 { margin-bottom: var(--sp-3); }
.step p { font-size: var(--fs-sm); color: var(--stone); }
.surface-dark .step p { color: var(--silver); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: var(--sp-12); } }

/* ── Definition rows (service anatomy, printable) ── */
.anatomy { border-top: 1px solid var(--border-light); }
.anatomy__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--border-light);
}
.anatomy__row dt {
  font-weight: var(--fw-semi);
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
}
.anatomy__row dd p { font-size: var(--fs-sm); color: var(--stone); }
.anatomy__row dd p + p { margin-top: var(--sp-3); }
.anatomy__row dd ul {
  margin-top: var(--sp-3);
  list-style: none;
}
.anatomy__row dd li {
  font-size: var(--fs-sm);
  color: var(--stone);
  padding-left: var(--sp-6);
  position: relative;
  margin-bottom: var(--sp-2);
}
.anatomy__row dd li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 7px;
  background: var(--silver);
  clip-path: polygon(0 0, 18% 0, 50% 78%, 82% 0, 100% 0, 58% 100%, 42% 100%);
}
@media (max-width: 700px) {
  .anatomy__row { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ── Image slots — art-directed placeholders. Each slot keeps its
     aspect ratio and shows a labelled field until photography is
     commissioned (see SHOTLIST.md, Phase 3). ── */
.img-slot {
  position: relative;
  background: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Photo slots lose the placeholder border; only labelled empty slots keep it */
.img-slot:has(img) { border: none; background: none; }
.img-slot--16x9 { aspect-ratio: 16 / 9; }
.img-slot--4x3  { aspect-ratio: 4 / 3; }
.img-slot--3x4  { aspect-ratio: 3 / 4; }
.img-slot img, .img-slot picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Brand rule: monochrome-first imagery */
  filter: grayscale(1);
}
.img-slot__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--silver);
  text-align: center;
  padding: var(--sp-4);
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 13px;
  height: 9px;
  background: var(--stone);
  clip-path: polygon(0 0, 18% 0, 50% 78%, 82% 0, 100% 0, 58% 100%, 42% 100%);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__body { padding-bottom: var(--sp-8); }
.faq-item__body p { font-size: var(--fs-sm); color: var(--stone); }
.faq-item__body p + p { margin-top: var(--sp-3); }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-grid .form-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--silver);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-ui);
  color: var(--white);
  background: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: border-color 0.15s ease;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ABABAB' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--silver);
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--stone); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* Honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note { font-size: var(--fs-caption); color: var(--stone); }
.surface-dark .form-note { color: var(--silver); }
.surface-dark .form-note a { color: var(--silver); }

/* ── Partner logos — SHIPS HIDDEN. See markup comments. ── */
.partner-logos[hidden] { display: none; }
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-12);
  padding-block: var(--sp-8);
}
.partner-logos img { height: 36px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* ── CTA band ── */
.cta-band {
  background: var(--ventra-black);
  color: var(--white);
  padding-block: var(--sp-24);
  position: relative;
  overflow: hidden;
}
.cta-band__mark {
  position: absolute;
  bottom: -20%;
  right: -2%;
  width: min(38vw, 420px);
  opacity: 0.05;
  pointer-events: none;
}
.cta-band h2 { max-width: 22ch; }
.cta-band .lede { margin-top: var(--sp-4); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

/* ── Hero carousel — the whole top banner rotates. Slide 1 is the full
     brand hero (nested .hero section); slides 2-4 reuse .carousel__slide
     as photo-backed promo banners. Native swipe/scroll on touch; JS only
     syncs dots/arrows and autoplay. All slides share one row height via
     the track's default flex stretch, so heights self-match slide 1. ── */
.hero-carousel {
  position: relative;
  background: var(--ventra-black);
  border-bottom: 1px solid var(--graphite);
}
.hero-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-carousel__track::-webkit-scrollbar { display: none; }
.hero-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

/* Slides 2-4: fixed two-thirds solid / one-third photo split, so every
   promo slide reads the same size regardless of the source photo's own
   dimensions (unlike a full-bleed background, which sized itself off
   whatever image happened to be dropped in). */
.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: var(--white);
  background: var(--ventra-black);
  box-sizing: border-box;
}
.carousel__slide__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
  padding: var(--sp-16) var(--sp-16) var(--sp-16) var(--gutter);
  box-sizing: border-box;
}
.carousel__slide__photo {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  position: relative;
  overflow: hidden;
}
.carousel__slide__photo picture,
.carousel__slide__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.carousel__slide .section-label { margin-bottom: 0; }
.carousel__slide h2 {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-h1);
  max-width: 16ch;
}
.carousel__slide h2::after {
  content: '';
  width: 18px;
  height: 26px;
  flex-shrink: 0;
  background: currentColor;
  clip-path: polygon(0 0, 0 18%, 78% 50%, 0 82%, 0 100%, 100% 58%, 100% 42%);
  transition: transform 0.15s ease;
}
.carousel__slide:hover h2::after,
.carousel__slide:focus-visible h2::after { transform: translateX(6px); }

/* Controls sit as one row at the bottom of the banner, clear of the
   copy - previously the arrows were vertically centered over the full
   slide and landed on top of the headline text. */
.carousel__controls {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.carousel__arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ventra-black);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.carousel__arrow:hover { border-color: var(--silver); }
.carousel__arrow::before {
  content: '';
  width: 11px;
  height: 16px;
  background: var(--silver);
}
.carousel__arrow--prev::before { clip-path: polygon(100% 0, 100% 18%, 22% 50%, 100% 82%, 100% 100%, 0 58%, 0 42%); }
.carousel__arrow--next::before { clip-path: polygon(0 0, 0 18%, 78% 50%, 0 82%, 0 100%, 100% 58%, 100% 42%); }

.carousel__dots {
  display: flex;
  gap: var(--sp-3);
}
.carousel__dot {
  width: 22px;
  height: 3px;
  background: var(--graphite);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.carousel__dot[aria-selected="true"] { background: var(--silver); }

@media (max-width: 700px) {
  .carousel__slide { flex-direction: column; }
  .carousel__slide__inner {
    flex: 1 1 55%;
    max-width: 100%;
    padding: var(--sp-8) var(--gutter);
  }
  .carousel__slide__photo {
    flex: 1 1 45%;
    max-width: 100%;
    order: -1;
  }
  .carousel__arrow { display: none; }
}

/* ── Floating CTA — persistent side rail on the home page. Hidden until
     scrolled past the banner (site.js), hidden entirely below the header
     breakpoint where the inline hero/CTA-band buttons already cover it. ── */
.floating-cta {
  position: fixed;
  right: var(--sp-6);
  top: 50%;
  transform: translateY(-50%);
  z-index: 240;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--ventra-black);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.floating-cta .btn { white-space: nowrap; width: 100%; }
@media (max-width: 900px) {
  .floating-cta { display: none; }
}

/* ── Footer ── */
.site-footer {
  background: var(--ventra-black);
  color: var(--silver);
  border-top: 1px solid var(--graphite);
  padding-block: var(--sp-16) var(--sp-8);
  font-size: var(--fs-caption);
}
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--graphite);
}
.site-footer__brand img { height: 56px; width: auto; margin-bottom: var(--sp-4); }
.site-footer__brand p { max-width: 34ch; line-height: 1.6; }
.site-footer nav ul { list-style: none; }
.site-footer nav li { margin-bottom: var(--sp-3); }
.site-footer__head {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: var(--sp-4);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  color: var(--silver);
}
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ── Service-loop diagram — 32° corner language, drawn on scroll ── */
.service-loop { width: 100%; height: auto; }
.service-loop .loop-line {
  fill: none;
  stroke: var(--stone);
  stroke-width: 1.5;
  stroke-linecap: butt;
}
.service-loop .loop-stub {
  fill: none;
  stroke: var(--silver);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.service-loop .loop-node { fill: var(--ventra-black); }
.service-loop .loop-arrow { fill: var(--stone); }
.service-loop .loop-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  fill: var(--stone);
}
.service-loop .loop-title {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  fill: var(--ventra-black);
}
.service-loop .loop-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--stone);
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-draw] .loop-line {
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
  }
  .js [data-draw].in-view .loop-line {
    animation: loop-draw 1.8s ease forwards;
  }
  .js [data-draw] .loop-node,
  .js [data-draw] .loop-arrow,
  .js [data-draw] .loop-label,
  .js [data-draw] .loop-title,
  .js [data-draw] .loop-sub,
  .js [data-draw] .loop-stub { opacity: 0; }
  .js [data-draw].in-view .loop-node,
  .js [data-draw].in-view .loop-arrow,
  .js [data-draw].in-view .loop-label,
  .js [data-draw].in-view .loop-title,
  .js [data-draw].in-view .loop-sub,
  .js [data-draw].in-view .loop-stub {
    animation: hero-in 0.6s ease 1.1s forwards;
  }
}
@keyframes loop-draw { to { stroke-dashoffset: 0; } }

/* ── Card icons — consistent 1.5 stroke, butt caps ── */
.card-icon {
  width: 26px;
  height: 26px;
  stroke: var(--silver);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  margin-bottom: var(--sp-4);
}
.surface-light .card-icon, .surface-white .card-icon { stroke: var(--stone); }

/* ── Back to top — injected by site.js ── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--mist); }
.back-to-top::before {
  content: '';
  width: 15px;
  height: 11px;
  background: var(--ventra-black);
  /* the V chevron, inverted: pointing up */
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 82% 100%, 50% 22%, 18% 100%, 0 100%);
}
@media (max-width: 640px) {
  .back-to-top { bottom: var(--sp-4); right: var(--sp-4); }
}
@media print { .back-to-top { display: none !important; } }

/* ── Print — the how-it-works page is forwarded internally ── */
@media print {
  .site-header, .site-footer, .cta-band, .nav-mobile, .skip-link, .trace { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .surface-dark { background: #fff !important; color: #000 !important; }
  .surface-dark .lede, .surface-dark .step p { color: #333 !important; }
  .section { padding-block: 1.5rem; }
  a { text-decoration: none; color: #000; }
}

/* ── Reduced motion — everything lands instantly ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── News article ── */
.article { max-width: 46rem; margin-inline: auto; }
.article__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--stone);
}
.article__meta a { color: inherit; }
.article__meta a:hover { color: var(--ventra-black); }
.article__dek {
  margin-top: var(--sp-6);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.5;
  color: var(--stone);
  max-width: none;
}
.article__hero { margin-top: var(--sp-12); }
.article__hero figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-caption);
  color: var(--stone);
}
.article__body { margin-top: var(--sp-12); }
.article__body p { max-width: none; }
.article__body p + p { margin-top: var(--sp-8); }
.article__body h2 { margin-top: var(--sp-16); }
.article__body h2 + p { margin-top: var(--sp-6); }
.article__quote {
  clear: both;
  margin: var(--sp-12) 0;
  padding-left: var(--sp-6);
  border-left: 3px solid var(--ventra-black);
}
.article__quote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.5;
  max-width: none;
}
.article__quote cite {
  display: block;
  margin-top: var(--sp-4);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--stone);
}
/* Reduced and floated so body copy wraps around it rather than the
   image sitting full-width between paragraphs. */
.article__inline-image {
  float: right;
  width: 260px;
  max-width: 40%;
  margin: 0 0 var(--sp-6) var(--sp-8);
}
@media (max-width: 640px) {
  .article__inline-image { float: none; width: 100%; max-width: none; margin: var(--sp-8) 0; }
}
.article__about {
  clear: both;
  margin-top: var(--sp-16);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--border-light);
}
.article__contact {
  margin-top: var(--sp-12);
  padding: var(--sp-8);
  background: var(--pearl);
  border-radius: var(--radius);
}
.article__contact h3 { margin-bottom: var(--sp-3); }
.article__contact p { color: var(--stone); max-width: none; }
.article__footer-row {
  margin-top: var(--sp-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-light);
}
.share-links { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }

/* Author byline - avatar + name/title, used on opinion/analysis pieces
   in place of (or alongside) the mono-tag/date meta line. */
.article__byline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.article__byline img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(1);
}
.article__byline p { font-size: var(--fs-sm); }
.article__byline p:first-child { font-weight: var(--fw-medium); color: var(--ventra-black); }
.article__byline p:last-child { color: var(--stone); }

/* Key-stats callout - skimmable pull-out of the numbers a reader (or
   an answer engine) would otherwise have to extract from prose. */
.article__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-8);
  margin: var(--sp-12) 0;
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.article__stats dt {
  font-family: var(--font-mono);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--ventra-black);
}
.article__stats dd {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--stone);
  max-width: none;
}

/* ── News index ── */
.news-list { margin-top: var(--sp-12); display: flex; flex-direction: column; }
.news-list__item {
  display: block;
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
}
.news-list__item[hidden] { display: none; }
.news-list__item:last-child { border-bottom: 1px solid var(--border-light); }
.news-list__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--stone);
}
.news-list__item h2 {
  margin-top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
}
.news-list__item p.lede-sm { margin-top: var(--sp-3); color: var(--stone); max-width: var(--measure); }
.news-list__item h2::after {
  content: '';
  width: 14px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  clip-path: polygon(0 0, 0 18%, 78% 50%, 0 82%, 0 100%, 100% 58%, 100% 42%);
  transition: transform 0.15s ease;
}
.news-list__item:hover h2::after { transform: translateX(6px); }
.news-filter-notice {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--stone);
}
.news-filter-notice[hidden] { display: none; }
.news-filter-notice a { color: var(--ventra-black); }

@media (max-width: 640px) {
  .article__footer-row { flex-direction: column; align-items: flex-start; }
}
