/* ==========================================================================
   EmberGuard Security: site styles
   Every color is a token in :root. To change the palette, edit that block
   only; nothing below hard-codes a brand color.
   ========================================================================== */

:root {
  /* Palette: electric blue */
  --night: #081029;          /* header, hero, and page intros */
  --brand: #0b1533;          /* headings and dark sections */
  --brand-deep: #050b1e;     /* footer */
  --accent: #2f5bff;         /* buttons, links, logo */
  --accent-hover: #1f47e6;
  --accent-2: #19c3ff;       /* gradient partner and focus ring on dark; never body text on white */
  --on-accent: #ffffff;      /* text on --accent */
  --accent-soft: #e8eeff;    /* icon tiles and soft fills */
  --glow-1: 47 91 255;       /* glows, as RGB channels */
  --glow-2: 25 195 255;
  --mark: #cddaff;           /* highlight band on light backgrounds */
  --globe-dot: 158 184 255;  /* globe land dots, as RGB channels */
  --globe-arc: 25 195 255;   /* globe arcs and markers */

  /* Neutrals */
  --ink: #0f1733;
  --muted: #4a5272;
  --paper: #ffffff;
  --panel: #f3f6ff;
  --rule: #dde3f3;
  --rule-strong: #7d869c;    /* form borders: 3:1 against white */
  --on-dark: #ffffff;
  --on-dark-muted: #bcc6e6;
  --line-dark: rgb(255 255 255 / 0.12);

  /* Severity tags on the sample scorecard */
  --critical: #c0262d;
  --critical-bg: #fdecec;

  /* Type: system fonts only, so the site makes no third-party requests */
  --font-display: Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
  --text-2xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --text-3xl: clamp(2.3rem, 1.5rem + 3vw, 3.5rem);

  --radius-sm: 10px;
  --radius: 14px;
  --header-h: 4.5rem;
  --shadow-card: 0 1px 2px rgb(11 21 51 / 0.06), 0 18px 40px -24px rgb(11 21 51 / 0.3);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--brand);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.narrow {
  max-width: 44rem;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

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

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
    align-items: start;
  }
}

/* ---------- Dark surfaces ---------- */

.dark {
  background: var(--night);
  color: var(--on-dark-muted);
}

.dark h1,
.dark h2,
.dark h3 {
  color: var(--on-dark);
}

.dark a:not(.btn) {
  color: var(--on-dark);
}

.dark :focus-visible {
  outline-color: var(--accent-2);
}

/* A soft light source and a faint grid behind dark sections. */
.glow {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(55rem 38rem at 90% -12%, rgb(var(--glow-1) / 0.45), transparent 62%),
    radial-gradient(40rem 30rem at 105% 100%, rgb(var(--glow-2) / 0.2), transparent 60%),
    var(--night);
}

.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 18%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 72% 18%, #000 15%, transparent 72%);
  pointer-events: none;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgb(var(--glow-2) / 0.22);
}

.label {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 38rem;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--muted);
}

.dark .lead {
  color: var(--on-dark-muted);
}

.note {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.pill--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* The highlighter: marks the phrase that matters. */
.mark {
  padding-inline: 0.12em;
  margin-inline: -0.12em;
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.dark .mark {
  background-image: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

/* Paper documents keep the light highlighter, even inside dark sections. */
.dark .doc .mark {
  background-image: linear-gradient(var(--mark), var(--mark));
}

.mark--row {
  background-position: 0 55%;
  background-size: 100% 1.15em;
}

.h1-line {
  display: block;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75em 1.3em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms, transform 160ms, box-shadow 160ms;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.16), 0 12px 26px -12px rgb(var(--glow-1) / 0.75);
}

.btn-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.14), 0 18px 34px -12px rgb(var(--glow-1) / 0.85);
}

.btn-secondary {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--brand);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dark .btn-secondary {
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}

.dark .btn-secondary:hover {
  border-color: var(--accent-2);
  background: rgb(255 255 255 / 0.06);
}

.btn-inverse {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--accent-hover);
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.55);
}

.btn-inverse:hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover,
  .btn-inverse:hover {
    transform: translateY(-2px);
  }

  .btn-primary:active,
  .btn-inverse:active {
    transform: translateY(0);
  }
}

.btn-lg {
  padding: 0.95em 1.6em;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.link-arrow::after {
  content: "\2192";
  content: "\2192" / "";
  transition: transform 160ms;
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 2.1rem 0 0;
}

/* ---------- Icons ---------- */

.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-tile svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dark .icon-tile {
  background: rgb(255 255 255 / 0.08);
  color: var(--accent-2);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
  background: var(--night);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--on-dark);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.logo-stop-1 {
  stop-color: var(--accent-2);
}

.logo-stop-2 {
  stop-color: var(--accent);
}

.brand-check {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  color: rgb(255 255 255 / 0.82);
  text-decoration: none;
  transition: background-color 160ms, color 160ms;
}

.site-nav a:not(.btn):hover {
  background-color: rgb(255 255 255 / 0.08);
  color: #fff;
}

/* Current page: a bright stroke sized to the word. */
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration-line: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}

.nav-cta {
  margin-left: 0.75rem;
}

.site-header :focus-visible {
  outline-color: var(--accent-2);
}

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 160ms;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 47.99rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.5rem 1rem 1.25rem;
    border-bottom: 1px solid var(--line-dark);
    background: var(--night);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a:not(.btn) {
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }

  .site-nav a[aria-current="page"] {
    text-underline-offset: 0.35em;
  }

  .nav-cta {
    margin: 1.25rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

@media (max-width: 23.5rem) {
  .brand-name {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .nav-toggle {
    gap: 0;
    padding-inline: 0.7rem;
  }

  .nav-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Hero: brand and promise, then the facts, with the globe pinned beside them ---------- */

.hero {
  padding-bottom: clamp(2rem, 5vw, 4rem);
  overflow-x: hidden; /* fallback for browsers without clip */
  overflow-x: clip;   /* the globe overhangs the right edge */
}

.hero-grid {
  display: grid;
  column-gap: 3rem;
}

/* Desktop: text blocks stack on the left; the globe column spans all three. */
@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero-intro { grid-area: 1 / 1; }
  .hero-facts { grid-area: 2 / 1; }
  .hero-cost { grid-area: 3 / 1; }
  .globe-rail { grid-area: 1 / 2 / 4 / 3; }
}

.hero-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 7vw, 5rem) 2.5rem;
}

@media (min-width: 62rem) {
  .hero-intro {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-bottom: 4rem;
  }
}

.hero-intro .eyebrow {
  align-self: flex-start;
}

.hero-title {
  margin-bottom: 0.55em;
}

.hero-brand {
  display: block;
  font-size: clamp(2.7rem, 1.6rem + 4.2vw, 4.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #fff 35%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-claim {
  display: block;
  max-width: 21ch;
  margin-top: 0.45em;
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.scroll-cue::after {
  content: "\2193";
  content: "\2193" / "";
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after {
    animation: nudge 1.6s ease-in-out 3; /* three nudges, then still */
  }
}

@keyframes nudge {
  50% { transform: translateY(4px); }
}

.hero-facts,
.hero-cost {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-dark);
}

.hero-facts h2,
.hero-cost h2 {
  max-width: 18ch;
}

.quote {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgb(255 255 255 / 0.05);
}

.quote blockquote {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: #fff;
}

.quote figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}

.cost-list {
  display: grid;
  gap: 1.4rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.cost-list li {
  display: flex;
  gap: 1rem;
}

.cost-list .icon-tile {
  margin-bottom: 0;
}

.cost-list h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.cost-list p {
  margin: 0;
}

.cost-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgb(var(--glow-1) / 0.14);
}

.cost-cta p {
  flex: 1 1 16rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #fff;
}

/* The globe: only shown when the script can draw it. */
.globe-rail {
  display: none;
}

.js .globe-rail {
  display: block;
}

.globe-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-block: -1rem 1rem;
}

@media (min-width: 62rem) {
  .globe-sticky {
    position: sticky;
    top: var(--header-h);
    justify-content: center;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    margin: 0;
  }
}

.globe-canvas {
  display: block;
  width: min(100%, 34rem);
  aspect-ratio: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.globe-canvas.is-ready {
  opacity: 1;
}

@media (min-width: 62rem) {
  .globe-canvas {
    width: min(115%, calc(100vh - var(--header-h) - 5rem));
    width: min(115%, calc(100svh - var(--header-h) - 5rem));
    margin-right: -10%;
  }
}

.globe-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.globe-foot p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--on-dark-muted);
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}

.assurances li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.assurances li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.75rem;
  margin: -0.2rem 0.1rem 0 0.15rem;
  border: solid var(--accent-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Documents (scorecard, scope, credentials) ---------- */

.doc-stage {
  position: relative;
  z-index: 0;
}

.doc {
  position: relative;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  color: var(--ink);
}

.doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--brand);
}

.doc-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.doc-meta {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--muted);
}

.stamp {
  flex: none;
  padding: 0.3em 0.45em 0.25em 0.65em;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.5;
  transform: rotate(-7deg);
}

.doc-fields {
  margin: 0;
}

.doc-fields > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 30rem) {
  .doc-fields > div {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
  }
}

.doc-fields dt {
  padding-top: 0.15rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-fields dd {
  margin: 0;
  line-height: 1.5;
}

.doc-note {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Scorecard: a sample of what the free assessment delivers */

.scorecard {
  width: 100%;
  max-width: 34rem;
  justify-self: center;
  box-shadow: 0 36px 80px -40px rgb(var(--glow-1) / 0.55), 0 14px 32px -20px rgb(11 21 51 / 0.35);
}

/* A second sheet behind the card. */
.scorecard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  transform: translate(14px, 16px) rotate(2deg);
}

/* Less tilt on phones, so the sheet stays inside the page gutter. */
@media (max-width: 40rem) {
  .scorecard::before {
    transform: translate(6px, 8px) rotate(1deg);
  }
}

.sc-metrics {
  margin: 0;
}

.sc-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}

.sc-row dt {
  line-height: 1.35;
}

.sc-row dd {
  order: -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--brand);
}

.sc-risks {
  padding-top: 1.1rem;
}

.sc-risks ol {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: risk;
}

.sc-risks li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.4rem 0;
  line-height: 1.35;
  counter-increment: risk;
}

.sc-risks li::before {
  content: counter(risk);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
}

.tag {
  padding: 0.3em 0.6em 0.25em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-critical {
  background: var(--critical);
  color: #fff;
}

.tag-high {
  background: var(--critical-bg);
  color: var(--critical);
}

.sc-foot {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: var(--text-sm);
}

.sc-foot p {
  margin: 0;
}

.sc-foot .doc-note {
  margin-top: 0.5rem;
}

/* The headline mark draws on load. The scorecard fills in row by row when it
   scrolls into view (main.js adds .is-visible). */
@media (prefers-reduced-motion: no-preference) {
  .mark-draw {
    animation: mark-draw 650ms cubic-bezier(0.3, 0.7, 0.4, 1) 350ms both;
  }

  .js .reveal:not(.is-visible) .mark-reveal {
    background-size: 0% 1.15em;
  }

  .js .is-visible .mark-reveal {
    animation: mark-draw-row 650ms cubic-bezier(0.3, 0.7, 0.4, 1) 1000ms both;
  }

  .js .is-visible .scorecard .sc-row,
  .js .is-visible .scorecard .sc-risks li {
    animation: fade-up 500ms ease both;
  }

  .js .is-visible .scorecard .sc-row:nth-child(1) { animation-delay: 250ms; }
  .js .is-visible .scorecard .sc-row:nth-child(2) { animation-delay: 330ms; }
  .js .is-visible .scorecard .sc-row:nth-child(3) { animation-delay: 410ms; }
  .js .is-visible .scorecard .sc-row:nth-child(4) { animation-delay: 490ms; }
  .js .is-visible .scorecard .sc-row:nth-child(5) { animation-delay: 570ms; }
  .js .is-visible .scorecard .sc-risks li:nth-child(1) { animation-delay: 700ms; }
  .js .is-visible .scorecard .sc-risks li:nth-child(2) { animation-delay: 780ms; }
  .js .is-visible .scorecard .sc-risks li:nth-child(3) { animation-delay: 860ms; }
}

@keyframes mark-draw {
  from { background-size: 0% 0.5em; }
  to { background-size: 100% 0.5em; }
}

@keyframes mark-draw-row {
  from { background-size: 0% 1.15em; }
  to { background-size: 100% 1.15em; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Scope of work */

.scope-doc {
  max-width: 32rem;
}

.doc-sign {
  padding-top: 1.75rem;
}

.sign-line {
  display: block;
  height: 2.2rem;
  border-bottom: 1.5px solid var(--ink);
}

.doc-sign p {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ---------- FBI figures (stat tiles in the hero) ---------- */

.kpis {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 30rem) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
}

.kpi-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  color: #fff;
}

.kpi-label {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--on-dark-muted);
}

/* The running estimate gets a pulsing dot while it updates. */
.kpi-value.is-live::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-2);
}

@media (prefers-reduced-motion: no-preference) {
  .kpi-value.is-live::before {
    animation: live-pulse 1.8s ease-out infinite;
  }
}

@keyframes live-pulse {
  from { box-shadow: 0 0 0 0 rgb(var(--glow-2) / 0.6); }
  to { box-shadow: 0 0 0 10px rgb(var(--glow-2) / 0); }
}

.kpi-source {
  max-width: 38rem;
  margin: 1.1rem 0 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

/* ---------- Home sections ---------- */

/* What the assessment shows: sample scorecard beside the five numbers.
   clip (not hidden) keeps the tilted back sheet in bounds without breaking sticky. */
.measures {
  overflow-x: clip;
}

.measures-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 62rem) {
  .measures-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: 4.5rem;
    align-items: start;
  }

  .measures-head { grid-area: 1 / 2; }
  .measures-list { grid-area: 2 / 2; }

  .measures-card {
    grid-area: 1 / 1 / 3 / 2;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.measures-head {
  margin-bottom: 0;
}

.metric-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.metric-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.metric-list .icon-tile {
  margin-bottom: 0;
}

.metric-list h3 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.metric-list p {
  margin: 0;
  color: var(--muted);
}

/* How it works */

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}

.step:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 44px -26px rgb(var(--glow-1) / 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .step:hover {
    transform: translateY(-4px);
  }
}

.step:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.step--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 24px 50px -30px rgb(var(--glow-1) / 0.8);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.step--featured .step-num {
  background: var(--accent);
}

.step h3 {
  font-size: var(--text-xl);
}

.step p {
  flex: 1;
  color: var(--muted);
}

/* The step's link covers the whole card. */
.step .link-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.step .link-arrow:focus-visible {
  outline: none;
}

/* Industries */

.industries {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 36rem) {
  .industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .industries {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.industry {
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.industry h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.industry p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Principles */

.principles {
  display: grid;
  gap: 1.75rem 2.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.principles li {
  display: flex;
  gap: 1rem;
}

.principles .icon-tile {
  margin-bottom: 0;
}

.principles h3 {
  margin-bottom: 0.35rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
}

.dark .principles p {
  color: var(--on-dark-muted);
}

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.certs li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
}

.dark .certs li {
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

/* Short pages (thank-you, 404) fill the screen so the footer sits low. */
.message-page {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 14rem);
}

/* ---------- Inner page intro ---------- */

.page-intro {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
}

.page-intro h1 {
  max-width: 22ch;
}

.page-intro .lead {
  margin-bottom: 0;
}

.jump ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.dark .jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms, border-color 160ms;
}

.dark .jump a:hover {
  border-color: var(--accent-2);
  background: rgb(255 255 255 / 0.1);
}

.jump-num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}

/* ---------- Services ---------- */

.service {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .service {
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 5rem;
  }

  .service-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

.service-aside .pill {
  margin-bottom: 1rem;
}

.glance {
  margin: 1.5rem 0 0;
  padding: 0.3rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.glance > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.glance > div:last-child {
  border-bottom: 0;
}

.glance dt {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.glance dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
  color: var(--brand);
}

.glance .free {
  color: var(--accent);
}

.service-body {
  max-width: 44rem;
}

.service-body .lead {
  max-width: none;
  color: var(--ink);
}

.service-body h3 {
  margin-top: 2.25rem;
}

.checklist {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2.1rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 6px;
  background: var(--accent);
}

.checklist li::after {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0.47rem;
  width: 0.36rem;
  height: 0.66rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plain-list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}

.plain-list li + li {
  margin-top: 0.4rem;
}

.plain-list li::marker {
  color: var(--accent);
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 160ms, box-shadow 160ms;
}

.faq details[open] {
  border-color: var(--accent);
  box-shadow: 0 16px 36px -26px rgb(var(--glow-1) / 0.7);
}

.faq summary {
  position: relative;
  padding: 1.1rem 3.5rem 1.1rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  top: 50%;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 200ms, background-color 160ms, color 160ms;
}

.faq details[open] summary::after {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 5rem;
    align-items: start;
  }
}

.prose {
  max-width: 40rem;
}

.prose p + h2 {
  margin-top: 2.5rem;
}

.cred-card {
  width: 100%;
  max-width: 30rem;
}

.headshot {
  width: 100%;
  max-width: 30rem;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-hover);
}

/* ---------- Contact ---------- */

.form-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .form-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.request-form {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.request-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.field-row {
  display: grid;
  gap: 0 1.25rem;
}

@media (min-width: 36rem) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.hint {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms, box-shadow 160ms;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--brand);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
  box-shadow: 0 0 0 6px rgb(var(--glow-1) / 0.16);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--critical);
}

.select {
  position: relative;
}

.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.field select {
  padding-right: 2.75rem;
  appearance: none;
  cursor: pointer;
}

.form-group {
  margin: 0.5rem 0 0;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.form-group legend {
  float: left;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-group legend + * {
  clear: both;
}

.hp {
  display: none;
}

.form-note {
  margin: 0.5rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  font-size: var(--text-sm);
}

.privacy {
  margin: 1rem 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.next-steps h2 {
  font-size: var(--text-xl);
}

.timeline {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 3rem;
  counter-increment: next;
}

.timeline li::before {
  content: counter(next);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 6px 16px -6px rgb(var(--glow-1) / 0.8);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.2rem;
  bottom: 0.3rem;
  left: calc(1rem - 1px);
  width: 2px;
  background: var(--rule);
}

.timeline h3 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.timeline p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.area {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.area h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.area p {
  margin: 0;
  font-size: var(--text-sm);
}

/* ---------- Closing band and footer ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  background:
    radial-gradient(40rem 22rem at 100% 0%, rgb(var(--glow-2) / 0.35), transparent 60%),
    linear-gradient(120deg, var(--accent) 0%, var(--accent-hover) 55%, var(--brand) 140%);
  color: rgb(255 255 255 / 0.9);
}

.cta-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }
}

.cta-band h2 {
  margin-bottom: 0.35em;
  color: #fff;
}

.cta-band p {
  margin: 0;
}

.cta-band :focus-visible {
  outline-color: #fff;
}

.site-footer {
  padding-block: 3.5rem 1.5rem;
  background: var(--brand-deep);
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}

.site-footer a {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: var(--accent-2);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.site-footer .brand {
  margin-bottom: 0.9rem;
}

.footer-blurb {
  max-width: 26rem;
  margin: 0;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-area p {
  margin: 0;
}

.footer-area .footer-title--spaced {
  margin-top: 1.25rem;
}

/* Long addresses may break anywhere rather than overflow narrow screens. */
.email-link {
  overflow-wrap: anywhere;
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--text-xs);
}

.footer-legal p {
  margin: 0;
}

/* ---------- Scroll reveal (added by main.js; content shows without it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .reveal-group > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 550ms ease, transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .reveal-group.is-visible > * {
    opacity: 1;
    transform: none;
  }

  .js .reveal-group.is-visible > :nth-child(2) { transition-delay: 70ms; }
  .js .reveal-group.is-visible > :nth-child(3) { transition-delay: 140ms; }
  .js .reveal-group.is-visible > :nth-child(4) { transition-delay: 210ms; }
  .js .reveal-group.is-visible > :nth-child(5) { transition-delay: 280ms; }
  .js .reveal-group.is-visible > :nth-child(6) { transition-delay: 350ms; }
}

@media print {
  .js .reveal,
  .js .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
