/* ==========================================================================
   Onsite Intelligence — design system
   Structure/typography modelled on large professional-services sites:
   white ground, full-bleed colour slabs, oversized condensed display type,
   hairline-ruled card grids, pill buttons. Palette is grey + red.
   Self-hosted fonts only (see /assets/fonts/fonts.css).
   ========================================================================== */

@import url('/assets/fonts/fonts.css');

:root {
  /* ---- ink / greys ---- sampled from the logo (#45494C) ---- */
  --ink:        #2C2F32;
  --ink-2:      #45494C;
  --ink-3:      #5A5F63;
  --grey-50:    #FAFAFA;
  --grey-100:   #F4F4F5;
  --grey-200:   #E4E4E7;
  --grey-300:   #D4D4D8;
  --grey-400:   #A1A1AA;
  --grey-500:   #71717A;
  --grey-600:   #52525B;
  --white:      #FFFFFF;

  /* ---- red ---- sampled from the logo (#991717) ---- */
  --red:        #991717;
  --red-deep:   #6E1010;
  --red-bright: #C22020;

  /* ---- semantic ---- */
  --text:        var(--ink);
  --text-muted:  var(--grey-600);
  --rule:        var(--grey-200);
  --rule-strong: var(--grey-300);

  --max:   1280px;
  --gutter: 40px;

  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Full-bleed colour slabs. Sections alternate ground colour — this is what
   gives the page its rhythm, so keep them edge-to-edge. */
.slab { padding: 104px 0; position: relative; }
.slab--tight  { padding: 72px 0; }
.slab--white  { background: var(--white); }
.slab--grey   { background: var(--grey-100); }
.slab--ink    { background: var(--ink);  color: var(--white); }
.slab--ink-2  { background: var(--ink-2); color: var(--white); }
.slab--red    { background: var(--red);  color: var(--white); }

.slab--ink .muted, .slab--red .muted, .slab--ink-2 .muted, .hero .muted { color: rgba(255,255,255,0.78); }
.muted { color: var(--text-muted); }

.rule-top { border-top: 1px solid var(--rule); }

/* ==========================================================================
   Type
   ========================================================================== */

.display,
.hero__word {
  /* Browser balances the lines, so headings never orphan a word against a
     hand-placed <br>. Manual breaks inside .display are therefore removed. */
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
}

/* The oversized hero word. Scales with the viewport so it always runs
   near edge-to-edge — that full-width scale is the whole effect. The cap is
   set so the longest rotator phrase still fits the wrap at max-width. */
/* Per-page override: the cap has to be small enough that the LONGEST rotator
   phrase still fits the wrap, so a page with wordier lines lowers --hero-max.
   Rough fit: max-px <= 1200 / (chars * 0.55). */
.display--hero,
.hero__rotator,
.hero__word {
  font-size: clamp(var(--hero-min, 34px), var(--hero-vw, 10vw), var(--hero-max, 132px));
  letter-spacing: -0.03em;
}
.display--xl   { font-size: clamp(36px, 5.4vw, 74px); line-height: 0.92; }
.display--lg   { font-size: clamp(30px, 4vw, 52px);  line-height: 0.98; }
.display--md   { font-size: clamp(23px, 2.4vw, 32px); line-height: 1.06; letter-spacing: -0.01em; }
.display--sm   { font-size: 19px; line-height: 1.2; letter-spacing: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 20px;
  display: block;
}
.slab--ink .eyebrow, .slab--ink-2 .eyebrow, .hero .eyebrow { color: var(--red-bright); }
.slab--red .eyebrow { color: rgba(255,255,255,0.72); }

.lede { font-size: 19px; line-height: 1.62; color: var(--text-muted); margin: 0 0 24px; }
.slab--ink .lede, .slab--red .lede, .slab--ink-2 .lede, .hero .lede { color: rgba(255,255,255,0.82); }

/* Wide enough that a display--xl heading honours its authored line breaks
   instead of wrapping against them; the lede keeps a readable measure. */
.section-head { max-width: 1040px; margin: 0 0 56px; }
.section-head .lede { margin-bottom: 0; max-width: 760px; }
.section-head .lede + .lede { margin-top: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Buttons + links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .chev { transition: transform .2s var(--ease); }
.btn:hover .chev { transform: translateX(4px); }

.btn--red     { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }

.btn--white   { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--grey-100); }

.btn--ink     { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--grey-300); }
.btn--outline:hover { border-color: var(--ink); }

.slab--ink .btn--outline, .slab--red .btn--outline, .slab--ink-2 .btn--outline, .hero .btn--outline {
  color: var(--white); border-color: rgba(255,255,255,0.45);
}
.slab--ink .btn--outline:hover, .slab--red .btn--outline:hover, .slab--ink-2 .btn--outline:hover, .hero .btn--outline:hover {
  border-color: var(--white); background: rgba(255,255,255,0.08);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* "Learn more ›" text link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s var(--ease);
}
.arrow-link:hover { gap: 14px; }
.slab--ink .arrow-link, .slab--ink-2 .arrow-link, .hero .arrow-link { color: var(--red-bright); }
.slab--red .arrow-link { color: var(--white); }

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

.utility {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.utility__inner {
  display: flex; justify-content: flex-end; align-items: center; gap: 28px;
  height: 40px;
}
.utility a { color: inherit; text-decoration: none; transition: color .15s; }
.utility a:hover { color: var(--white); }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.site-nav ul {
  display: flex; align-items: center; gap: 34px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 30px 0;
  display: block;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 26px; margin: 0 auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 190;
  background: var(--white);
  padding: 120px var(--gutter) 48px;
  display: none; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.mobile-nav a:hover { color: var(--red); }
.mobile-nav .btn { margin-top: 32px; align-self: flex-start; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
}

/* Optional full-bleed photograph behind the hero. Set --hero-img on the
   section; it sits under the grid and the type, dimmed enough that white
   display type stays legible over any part of it. */
.hero--photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(44,47,50,0.82) 0%, rgba(44,47,50,0.90) 55%, var(--ink) 100%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, center;
  z-index: 0;
  pointer-events: none;
}

/* faint engineering grid — texture, not decoration */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero__type { position: relative; z-index: 2; }

/* The display lines run the full width of the wrap. Letterforms are filled
   with a slow-drifting red/grey gradient rather than flat white. */
.hero__word {
  display: block;
  background-image: linear-gradient(
    100deg,
    #FFFFFF 0%, #FFFFFF 26%,
    var(--red-bright) 46%, var(--red) 58%,
    #FFFFFF 78%, #FFFFFF 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 14s linear infinite;
}
@keyframes sheen {
  0%   { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__word { animation: none; background-position: 50% 0; }
}

/* rotating second line */
.hero__rotator {
  display: block;
  position: relative;
  height: 1em;
  overflow: hidden;
}
/* The outgoing word clears fast and the incoming one is delayed past it, so
   the two are never both legible — a plain crossfade ghosts them together at
   this size. */
.hero__rotator .hero__word {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(0.34em);
  white-space: nowrap;
}
.hero__rotator .hero__word.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .30s var(--ease) .16s, transform .52s var(--ease) .10s;
}
.hero__rotator .hero__word.is-leaving {
  opacity: 0;
  transform: translateY(-0.34em);
  transition: opacity .16s var(--ease), transform .42s var(--ease);
}

.hero__meta {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0 96px;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 56px;
}
.hero__claims {
  text-wrap: balance;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 2.3vw, 30px); line-height: 1.24; letter-spacing: -0.01em;
  margin: 0;
}
.hero__claims span { display: block; }
.hero__claims span + span { color: rgba(255,255,255,0.5); }
.hero__copy p { color: rgba(255,255,255,0.8); margin: 0 0 18px; font-size: 17px; }

/* ==========================================================================
   Card grid — hairline-ruled, image/panel on top, red tick before the title
   ========================================================================== */

.card-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  border: 1px solid var(--rule);
  background: var(--white);
}
.card {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--rule);
  background: var(--white);
  transition: background .2s var(--ease);
}
.card:last-child { border-right: none; }
.card:hover { background: var(--grey-50); }

.card__media { height: 168px; position: relative; overflow: hidden; background: var(--ink); }
.card__body  { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }

.card__title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 20px; line-height: 1.12; letter-spacing: -0.005em;
  margin: 0 0 14px; padding-left: 14px; position: relative;
}
.card__title::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 4px; background: var(--red);
}
.card__body p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0 0 22px; flex: 1; }

/* Real photography. Drop an <img> straight into .card__media / .split__media:
     <div class="card__media"><img src="/assets/img/x.jpg" alt="..." loading="lazy"></div>
   It fills the box and crops from the centre. Add .media--tint for the ink
   wash that keeps white text legible over a busy photo. */
.card__media img,
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.media--tint::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,24,27,0.15) 0%, rgba(24,24,27,0.72) 100%);
  pointer-events: none;
}

/* Abstract CSS panels stand in for photography — geometric, technical,
   and consistent across the site. Swap for real imagery when it exists. */
.panel-lines,
.panel-arcs,
.panel-mesh,
.panel-strata { position: absolute; inset: 0; }

.panel-lines {
  background:
    repeating-linear-gradient(58deg, rgba(232,37,60,0.85) 0 2px, transparent 2px 15px),
    linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 100%);
}
.panel-arcs {
  background:
    radial-gradient(circle at 18% 116%, transparent 30%, rgba(255,255,255,0.14) 30.6%, transparent 31.4%),
    radial-gradient(circle at 18% 116%, transparent 46%, rgba(232,37,60,0.9) 46.6%, transparent 47.6%),
    radial-gradient(circle at 18% 116%, transparent 62%, rgba(255,255,255,0.14) 62.6%, transparent 63.6%),
    radial-gradient(circle at 18% 116%, transparent 78%, rgba(255,255,255,0.1) 78.6%, transparent 79.6%),
    linear-gradient(140deg, var(--ink-2) 0%, var(--ink) 100%);
}
.panel-mesh {
  background:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(126deg, var(--red-deep) 0%, var(--ink) 62%);
  background-size: 26px 26px, 26px 26px, 100% 100%;
}
.panel-strata {
  background:
    linear-gradient(0deg, rgba(232,37,60,0.9) 0 3px, transparent 3px 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 13px),
    linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 100%);
}

/* ==========================================================================
   Feature rows — numbered, hairline-separated
   ========================================================================== */

.steps { border-top: 1px solid var(--rule); }
.slab--ink .steps, .slab--ink-2 .steps { border-color: rgba(255,255,255,0.16); }

.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.35fr;
  gap: 40px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
}
.slab--ink .step, .slab--ink-2 .step { border-color: rgba(255,255,255,0.16); }

.step__num {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--red); padding-top: 4px;
}
.slab--ink .step__num, .slab--ink-2 .step__num { color: var(--red-bright); }
.step__title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 21px; line-height: 1.12; letter-spacing: -0.005em; margin: 0;
}
.step__body { margin: 0; color: var(--text-muted); font-size: 16px; }
.slab--ink .step__body, .slab--ink-2 .step__body { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   Stats
   ========================================================================== */

.stat-row { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0; }
.stat { padding: 0 34px; border-left: 1px solid rgba(255,255,255,0.22); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat__figure {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.stat__label { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.75); }

/* ==========================================================================
   Split feature block
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
/* Two text columns should share a top edge; centring is for media + text. */
.split--top { align-items: start; }
.split--reverse .split__media { order: 2; }
.split__media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

/* ==========================================================================
   Chips — coverage / scope tags
   ========================================================================== */

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
}
.slab--ink .chips li, .slab--ink-2 .chips li, .hero .chips li {
  border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.82);
}
.slab--red .chips li { border-color: rgba(255,255,255,0.45); color: var(--white); }

/* ==========================================================================
   Data table
   ========================================================================== */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.data-table thead th {
  font-family: var(--body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--ink);
}
.data-table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.data-table td { color: var(--text-muted); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }

.slab--ink .data-table th, .slab--ink .data-table td,
.slab--ink-2 .data-table th, .slab--ink-2 .data-table td { border-color: rgba(255,255,255,0.16); }
.slab--ink .data-table thead th, .slab--ink-2 .data-table thead th {
  color: var(--red-bright); border-bottom-color: rgba(255,255,255,0.45);
}
.slab--ink .data-table tbody th, .slab--ink-2 .data-table tbody th { color: var(--white); }
.slab--ink .data-table td, .slab--ink-2 .data-table td { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   CTA strip
   ========================================================================== */

.cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}

/* ==========================================================================
   Prose — long-form body copy (legal pages, articles)
   ========================================================================== */

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
  margin: 2.2em 0 0.7em; padding-top: 1.4em; border-top: 1px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 {
  font-family: var(--body); font-size: 17px; font-weight: 600;
  margin: 1.8em 0 0.5em;
}
.prose p, .prose li { color: var(--text-muted); line-height: 1.72; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 0.8em; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated {
  font-family: var(--mono); font-size: 13px; color: var(--grey-500);
  margin-bottom: 2.4em;
}

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

.form { max-width: 640px; }
.field { margin-bottom: 22px; }
.field > label,
.fieldset > legend {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 9px; padding: 0;
}
.field .hint { font-size: 14px; color: var(--grey-500); margin: 0 0 9px; }

.input, .field input[type="text"], .field input[type="email"],
.field input[type="tel"], .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(153,23,23,0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-400); }

/* choice lists — radio / checkbox rendered as tappable rows */
.fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.choices { display: grid; gap: 9px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  cursor: pointer; font-size: 16px;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.choice:hover { border-color: var(--grey-400); background: var(--grey-50); }
.choice input { margin: 3px 0 0; accent-color: var(--red); flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--red); background: rgba(153,23,23,0.04); }

.form-note { font-size: 14px; color: var(--grey-500); margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 18px; font-size: 15px; font-weight: 500; }
.form-status.ok  { color: #15803D; }
.form-status.err { color: var(--red); }

/* ==========================================================================
   Info tiles — small labelled facts (contact details, etc.)
   ========================================================================== */

.tiles { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tile { background: var(--white); padding: 26px; }
.tile h3 {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--red);
  margin: 0 0 10px;
}
.tile p { margin: 0; font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.tile a { color: var(--ink); text-decoration: none; font-weight: 500; }
.tile a:hover { color: var(--red); }

@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .prose h2 { font-size: 22px; }
}

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

.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--white); }

.footer-top { padding: 76px 0 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 46px; margin-bottom: 22px; }
.footer-col h3 {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; font-size: 15px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 14px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 9px; }
.status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  :root { --gutter: 28px; }
  .card-row { --cols: 2 !important; }
  .card:nth-child(2n) { border-right: none; }
  .card { border-bottom: 1px solid var(--rule); }
  .hero__meta { grid-template-columns: 1fr; gap: 34px; }
  .split { gap: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { height: 68px; }
  .brand img { height: 38px; }

  .slab { padding: 68px 0; }
  .slab--tight { padding: 52px 0; }

  .hero { padding-top: 46px; }
  .hero__meta { padding: 40px 0 62px; margin-top: 38px; }

  /* Let a long rotator phrase wrap rather than shrink to nothing. The JS
     auto-fit skips any rotator that is allowed to wrap. */
  .hero__rotator { height: 2.05em; }
  .hero__rotator .hero__word { white-space: normal; }

  /* The header CTA lives in the mobile menu below this width; leaving it in
     the bar pushes the toggle off-screen. */
  .site-header__inner > .btn { display: none; }

  .card-row { --cols: 1 !important; }
  .card { border-right: none; }
  .card:last-child { border-bottom: none; }

  .step { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .step__num { padding-top: 0; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }

  .stat-row { grid-template-columns: 1fr; }
  .stat { padding: 24px 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.22); }
  .stat:first-child { border-top: none; padding-top: 0; }

  .cta-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 40px; }
  main .btn, .mobile-nav .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
}
