/* ==========================================================================
   InspectBay design system
   Service bay precise: gunmetal, clean white, hazard red.
   Saira Condensed over Saira. Caution stripes, gauge dials, metallic sheen.
   ========================================================================== */

:root {
  /* Core palette from the brand sheet */
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --ink: #14181C;
  --primary: #26313A;
  --accent: #D62828;
  --muted: #69737C;

  /* Derived gunmetal ladder */
  --gun-900: #0F1418;
  --gun-800: #1B242B;
  --gun-700: #26313A;
  --gun-600: #33414C;
  --gun-500: #45565F;
  --gun-300: #8A949C;
  --gun-200: #C3CAD0;
  --gun-100: #DFE4E8;
  --gun-050: #E9EDF0;

  /* Hazard red ladder */
  --red-700: #9C1B1B;
  --red-600: #B92121;
  --red-500: #D62828;
  --red-300: #EE7B7B;
  --red-100: #FBE3E3;

  /* Inspection status colors: green, amber, red chips */
  --status-green: #1F7A43;
  --status-green-bg: #E4F3EA;
  --status-amber: #8A5600;
  --status-amber-bg: #FCF0DC;
  --status-red: #B92121;
  --status-red-bg: #FBE3E3;

  /* Type scale, condensed display over a humanist body face */
  --font-display: "Saira Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Saira", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-mega: clamp(2.5rem, 6.2vw, 4.35rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 2.85rem);
  --fs-h3: clamp(1.2rem, 1.7vw, 1.45rem);
  --fs-lead: clamp(1.04rem, 1.5vw, 1.22rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Spacing scale, 4px base */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;
  --sp-10: 120px;

  /* Radii: shop hardware is square, so almost nothing is round */
  --r-0: 0px;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-pill: 999px;

  /* Shadows and rules */
  --shadow-1: 0 1px 0 rgba(20, 24, 28, 0.08);
  --shadow-2: 0 10px 24px -14px rgba(20, 24, 28, 0.45);
  --shadow-3: 0 26px 60px -32px rgba(20, 24, 28, 0.55);
  --rule: 1px solid var(--gun-100);
  --rule-strong: 2px solid var(--gun-700);

  --container: 1200px;
  --header-h: 74px;

  /* Motifs */
  --caution: repeating-linear-gradient(
      135deg,
      var(--accent) 0 14px,
      var(--gun-800) 14px 28px);
  --caution-soft: repeating-linear-gradient(
      135deg,
      rgba(214, 40, 40, 0.85) 0 10px,
      rgba(38, 49, 58, 0.85) 10px 20px);
  --sheen: linear-gradient(
      168deg,
      #3d4a54 0%,
      #2b3740 26%,
      #1d262d 52%,
      #2f3c45 78%,
      #414f59 100%);
  --brushed: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      rgba(255, 255, 255, 0) 1px 4px);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gun-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-mega); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0.002em; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
hr { border: 0; border-top: var(--rule); margin: var(--sp-7) 0; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

/* ------------------------------------------------------- a11y helpers -- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -80px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-1);
  transition: top 140ms ease-out;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-1);
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ layout -- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.section { padding-block: var(--sp-9); position: relative; }
.section--tight { padding-block: var(--sp-8); }
.section--dark {
  background: var(--gun-800);
  background-image: var(--sheen);
  color: #EDF1F4;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #C7D0D7; }
.section--panel { background: var(--surface); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------- caution stripes and bolts -- */
.caution-band {
  height: 10px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.caution-band--thin { height: 6px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 8px;
  background: var(--caution-soft);
  background-size: 28.3px 28.3px;
  transform: skewX(-14deg);
}
.section--dark .eyebrow { color: #FF9A9A; }

.bolt {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    linear-gradient(140deg, #fff 0%, var(--gun-200) 55%, var(--gun-300) 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.22);
}
.bolt::after {
  content: "";
  position: absolute;
  inset: 3px;
  background:
    linear-gradient(to right, transparent 44%, var(--gun-500) 44% 56%, transparent 56%),
    linear-gradient(to bottom, transparent 44%, var(--gun-500) 44% 56%, transparent 56%);
  transform: rotate(28deg);
}
.bolt--tl { top: 9px; left: 9px; }
.bolt--tr { top: 9px; right: 9px; }
.bolt--bl { bottom: 9px; left: 9px; }
.bolt--br { bottom: 9px; right: 9px; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px var(--sp-6);
  border: 0;
  border-radius: var(--r-1);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 130ms ease-out, background-color 130ms ease-out, box-shadow 130ms ease-out;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 520ms ease-out;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:hover::after { left: 115%; }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--red-600); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--gun-700);
  box-shadow: none;
  border: 2px solid var(--gun-700);
  padding: 12px calc(var(--sp-6) - 2px);
}
.btn--ghost:hover { --btn-bg: var(--gun-700); --btn-fg: #fff; }
.btn--steel {
  --btn-bg: var(--gun-700);
  --btn-fg: #fff;
}
.btn--steel:hover { --btn-bg: var(--gun-600); }
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--gun-800);
}
.btn--block { width: 100%; }
.btn--sm { padding: 10px var(--sp-5); font-size: 0.85rem; }

/* ------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: var(--rule);
  transition: box-shadow 160ms ease-out, background-color 160ms ease-out;
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.site-header.is-stuck { box-shadow: var(--shadow-2); background: rgba(255, 255, 255, 0.985); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark svg { flex: none; }
.wordmark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.wordmark span b { color: var(--accent); font-weight: 800; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gun-700);
  padding-block: 6px;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 180ms ease-out;
}
.nav-list a:hover::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 2px solid var(--gun-700);
  background: transparent;
  border-radius: var(--r-1);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--gun-700);
  content: "";
  transition: transform 160ms ease-out, opacity 120ms ease-out;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  border-bottom: var(--rule);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 480px at 12% -12%, rgba(38, 49, 58, 0.09), transparent 62%),
    repeating-linear-gradient(135deg, rgba(38, 49, 58, 0.035) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--sp-9) var(--sp-8);
}
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 7px;
  background: var(--caution-soft);
  background-size: 28.3px 28.3px;
  transform: skewX(-14deg);
  opacity: 0.85;
}
.hero-lead {
  font-size: var(--fs-lead);
  color: var(--gun-600);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 var(--sp-6);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 2px solid var(--gun-100);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gun-600);
  margin: 0;
}
.trust-strip li svg { color: var(--accent); flex: none; }

/* Hero photo, framed like a lift post with a caution kick plate */
.hero-photo {
  position: relative;
  padding: 12px;
  background: var(--sheen);
  background-image: var(--sheen), var(--brushed);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-3);
}
.hero-photo img {
  border-radius: var(--r-1);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-photo::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  height: 12px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.photo-tag {
  position: absolute;
  left: 22px;
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(15, 20, 24, 0.86);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-left: 3px solid var(--accent);
}

/* --------------------------------------------------- status chips ----- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-1);
  border: 1px solid currentColor;
}
.chip::before {
  content: "";
  width: 8px; height: 8px;
  background: currentColor;
  border-radius: 50%;
}
.chip--green { color: var(--status-green); background: var(--status-green-bg); }
.chip--amber { color: var(--status-amber); background: var(--status-amber-bg); }
.chip--red { color: var(--status-red); background: var(--status-red-bg); }
.chip--snap { animation: chip-snap 420ms cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.reveal .chip--snap { animation-play-state: paused; }
.reveal.is-visible .chip--snap { animation-play-state: running; }
.reveal.is-visible .chip--snap:nth-of-type(2) { animation-delay: 120ms; }
.reveal.is-visible .chip--snap:nth-of-type(3) { animation-delay: 240ms; }
@keyframes chip-snap {
  0% { transform: translateY(-6px) scale(0.86) rotate(-3deg); opacity: 0; }
  60% { transform: translateY(0) scale(1.06) rotate(1deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}

/* ---------------------------------------------------------- cards ----- */
.card {
  position: relative;
  background: var(--surface);
  border: var(--rule);
  border-top: 3px solid var(--gun-700);
  border-radius: var(--r-2);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  box-shadow: var(--shadow-1);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-top-color 160ms ease-out;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-top-color: var(--accent);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--gun-600); margin-bottom: 0; }
.card .cost {
  display: block;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--gun-200);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--accent);
}
.card--dark p { color: #BFC9D1; }

.feature-card { padding-top: var(--sp-5); }
.feature-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gun-700);
  border-radius: var(--r-2);
  background:
    linear-gradient(150deg, #fff, var(--gun-050));
  margin-bottom: var(--sp-4);
  color: var(--gun-700);
  position: relative;
}
.feature-icon::after {
  content: "";
  position: absolute;
  right: -7px; bottom: -7px;
  width: 14px; height: 14px;
  background: var(--caution);
  background-size: 19.8px 19.8px;
}
.card:hover .feature-icon { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------- step rail ---- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 25px; top: 12px; bottom: 12px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gun-200) 0 8px, transparent 8px 16px);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  margin: 0;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sheen);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), var(--shadow-2);
}
.step-num::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%);
  opacity: 0.85;
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { color: var(--gun-600); margin-bottom: 0; }
.section--dark .step p { color: #C2CCD3; }
.section--dark .steps::before {
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.28) 0 8px, transparent 8px 16px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
}
.frame-photo {
  position: relative;
  border: 10px solid var(--gun-700);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-3);
  background: var(--gun-700);
}
.frame-photo img { border-radius: var(--r-1); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.frame-photo::before {
  content: "";
  position: absolute;
  top: -10px; left: -10px;
  width: 46%; height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}

/* ------------------------------------------------------ gauge dials --- */
.gauge-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.gauge {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--r-2);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-1);
}
.gauge-dial { width: 132px; height: 76px; margin: 0 auto var(--sp-3); display: block; }
.gauge-needle {
  transform-origin: 66px 66px;
  transform: rotate(-88deg);
}
.reveal.is-visible .gauge-needle { animation: needle-sweep 1500ms cubic-bezier(0.16, 0.9, 0.28, 1) forwards; }
@keyframes needle-sweep {
  0% { transform: rotate(-88deg); }
  55% { transform: rotate(var(--sweep, 40deg)); }
  72% { transform: rotate(calc(var(--sweep, 40deg) - 11deg)); }
  86% { transform: rotate(calc(var(--sweep, 40deg) + 4deg)); }
  100% { transform: rotate(var(--sweep, 40deg)); }
}
.gauge-figure {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.gauge h3 {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--sp-2) 0 var(--sp-3);
}
.gauge p { font-size: var(--fs-small); color: var(--gun-600); margin: 0; }

/* --------------------------------------------------- testimonials ----- */
.testimonial {
  position: relative;
  background: var(--surface);
  border: var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-2);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  margin: 0;
  box-shadow: var(--shadow-1);
}
.testimonial .ro-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--gun-200);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-4);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}
.testimonial p { font-size: 1.03rem; color: var(--ink); }
.testimonial footer {
  border-top: 1px solid var(--gun-100);
  padding-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--gun-600);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.results-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  background: var(--sheen);
  background-image: var(--sheen), var(--brushed);
  border-radius: var(--r-2);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}
.results-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.result { text-align: center; color: #fff; }
.result b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.result span {
  display: block;
  font-size: var(--fs-small);
  color: #BFC9D1;
  margin-top: 6px;
}

/* ------------------------------------------------------------ pricing -- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--gun-100);
  border-radius: var(--r-2);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tier h3 {
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
}
.tier .tier-for { font-size: var(--fs-small); color: var(--muted); margin-bottom: var(--sp-4); }
.tier .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.tier .per { font-size: var(--fs-small); color: var(--muted); margin-left: 6px; }
.tier ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 var(--sp-6);
  border-top: 1px dashed var(--gun-200);
  padding-top: var(--sp-4);
  flex: 1;
}
.tier ul li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--gun-600);
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tier--featured {
  border-color: var(--gun-700);
  box-shadow: var(--shadow-3);
}
.tier--featured::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
  border-radius: var(--r-2) var(--r-2) 0 0;
}
.tier-flag {
  position: absolute;
  top: -15px;
  right: var(--sp-5);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-1);
  box-shadow: var(--shadow-2);
}
.billing-note {
  margin-top: var(--sp-6);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--gun-600);
}

/* ---------------------------------------------------------------- faq -- */
.faq-list { border-top: 2px solid var(--gun-700); }
.faq-item { border-bottom: var(--rule); background: var(--surface); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  background: none;
  border: 0;
  padding: var(--sp-5);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.faq-q:hover { color: var(--accent); }
.faq-sign {
  flex: none;
  width: 30px; height: 30px;
  border: 2px solid var(--gun-700);
  border-radius: 50%;
  position: relative;
  transition: transform 200ms ease-out, border-color 160ms ease-out;
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  background: var(--gun-700);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq-sign::before { width: 12px; height: 2px; }
.faq-sign::after { width: 2px; height: 12px; transition: opacity 160ms ease-out; }
.faq-q[aria-expanded="true"] .faq-sign { transform: rotate(180deg); border-color: var(--accent); }
.faq-q[aria-expanded="true"] .faq-sign::after { opacity: 0; }
.faq-a {
  padding: 0 var(--sp-5) var(--sp-5);
  max-width: 78ch;
}
.faq-a p { color: var(--gun-600); margin-bottom: var(--sp-3); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------- form -- */
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--sp-8);
  align-items: start;
}
.form-card {
  background: var(--surface);
  border-radius: var(--r-2);
  padding: var(--sp-7) var(--sp-6);
  box-shadow: var(--shadow-3);
  position: relative;
  border-top: 8px solid transparent;
  background-clip: padding-box;
}
.form-card::before {
  content: "";
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
  border-radius: var(--r-2) var(--r-2) 0 0;
}
.field { margin-bottom: var(--sp-4); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gun-700);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #FBFCFD;
  border: 2px solid var(--gun-200);
  border-radius: var(--r-1);
  padding: 11px 12px;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}
input:hover, select:hover, textarea:hover { border-color: var(--gun-500); }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--gun-700); }
textarea { min-height: 128px; resize: vertical; }
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gun-700) 50%),
    linear-gradient(135deg, var(--gun-700) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
[aria-invalid="true"] { border-color: var(--accent) !important; background: #FFF7F7; }
.error-msg {
  display: block;
  font-size: var(--fs-small);
  color: var(--red-700);
  margin-top: 5px;
  font-weight: 500;
}
.error-msg:empty { display: none; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.consent input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--accent); }
.consent label {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--gun-600);
  margin: 0;
}
.form-foot { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--gun-600); }
.hook-list { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.hook-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 0.96rem;
}
.hook-list li svg { flex: none; margin-top: 3px; color: #FF9A9A; }

/* ------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--gun-900);
  background-image: linear-gradient(180deg, #141B21 0%, #0F1418 100%), var(--brushed);
  color: #C3CAD0;
  padding-top: var(--sp-8);
}
.site-footer::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
  margin-top: calc(var(--sp-8) * -1);
  margin-bottom: var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer .wordmark span { color: #fff; }
.site-footer p { font-size: var(--fs-small); color: #98A3AB; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  color: #C3CAD0;
  text-decoration: none;
  font-size: var(--fs-small);
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.social-row { display: flex; gap: 10px; margin-top: var(--sp-4); }
.social-row a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-1);
  color: #C3CAD0;
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--sp-5) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  color: #7E8A93;
}
.footer-base a { color: #98A3AB; }

/* ------------------------------------------------------- prose pages -- */
.page-head {
  background: var(--gun-800);
  background-image: var(--sheen);
  color: #fff;
  padding-block: var(--sp-8);
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.page-head p { color: #C2CCD3; max-width: 68ch; margin: 0; }
.prose { max-width: 76ch; }
.prose h2 {
  font-size: 1.6rem;
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--gun-100);
}
.prose h3 { font-size: 1.18rem; margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--gun-600); }
.prose li strong, .prose p strong { color: var(--ink); }
.data-list { list-style: none; padding: 0; }
.data-list li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--gun-200);
}
.data-list li b {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--gun-700);
}
.author-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.author-portrait {
  border: 10px solid var(--gun-700);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-3);
  position: relative;
}
.author-portrait img { border-radius: var(--r-1); }
.author-portrait::after {
  content: "";
  position: absolute;
  left: -10px; right: -10px; bottom: -10px;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.byline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: var(--rule);
  border-left: 5px solid var(--gun-700);
  border-radius: var(--r-2);
  font-size: var(--fs-small);
  color: var(--gun-600);
}
.byline .badge {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sheen);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.map-group {
  background: var(--surface);
  border: var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-2);
  padding: var(--sp-5);
}
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { padding: var(--sp-3) 0; border-bottom: 1px dashed var(--gun-200); }
.map-group li:last-child { border-bottom: 0; }
.map-group a { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.map-group span { display: block; font-size: var(--fs-small); color: var(--gun-600); }
.status-panel {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--r-2);
  padding: var(--sp-6);
  box-shadow: var(--shadow-2);
  max-width: 640px;
}

/* -------------------------------------------------------- reveal fx --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms ease-out, transform 620ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }

/* ------------------------------------------------------- responsive --- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gauge-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --sp-9: 64px; --sp-10: 80px; }
  .hero-grid, .split, .contact-shell { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .grid-3, .grid-4, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-3);
    padding: var(--sp-5);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px dashed var(--gun-200); }
  .nav-list a { display: block; padding: var(--sp-4) 0; font-size: 1.05rem; }
  .header-cta .btn { display: none; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .author-layout { grid-template-columns: minmax(0, 1fr); }
  .data-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 620px) {
  .grid-2, .field-row, .results-strip { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: var(--sp-6) var(--sp-4); }
  .testimonial .ro-line { flex-direction: column; gap: 2px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-4); }
  .step-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .steps::before { left: 21px; }
}
@media (max-width: 380px) {
  .wordmark span { font-size: 1.15rem; }
  .tier .amount { font-size: 2.6rem; }
}

/* --------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .gauge-needle, .reveal.is-visible .gauge-needle { animation: none; transform: rotate(var(--sweep, 40deg)); }
  .chip--snap, .reveal.is-visible .chip--snap { animation: none; opacity: 1; }
  .btn:hover { transform: none; }
  .card:hover, .tier:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* -------------------------------------------- mobile only nav action -- */
.nav-cta-item { display: none; }
@media (max-width: 900px) {
  .nav-cta-item { display: block; }
  .nav-cta-item a { color: var(--accent); }
}

/* ==========================================================================
   BAY NOTES: the magazine
   Same tokens, same typefaces, same hardware. Caution stripe on the lead card,
   brushed gunmetal on the cards, hazard red for the angle tags and the rules.
   ========================================================================== */

/* ------------------------------------------------------- breadcrumb ----- */
.crumb { margin-bottom: var(--sp-5); }
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.crumb li + li::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: skewX(-24deg);
  flex: none;
}
.crumb a { color: var(--gun-600); text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }
.crumb [aria-current="page"] {
  color: var(--gun-700);
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb--light ol { color: #98A3AB; }
.crumb--light a { color: #C2CCD3; }
.crumb--light a:hover { color: #fff; }
.crumb--light [aria-current="page"] { color: #fff; }
.nav-list a[aria-current="page"] { color: var(--accent); }
.nav-list a[aria-current="page"]::after { right: 0; }

/* ------------------------------------------------- magazine masthead ---- */
.mag-head { padding-block: var(--sp-8) var(--sp-9); }
.mag-head h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mag-head .standfirst {
  color: #C2CCD3;
  font-size: var(--fs-lead);
  max-width: 62ch;
  margin: 0;
}
.mag-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: var(--sp-5) 0 0;
  border-top: 2px solid rgba(255, 255, 255, 0.16);
}
.mag-facts li { display: flex; align-items: baseline; gap: var(--sp-3); margin: 0; }
.mag-facts b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
}
.mag-facts span {
  font-size: var(--fs-small);
  color: #98A3AB;
  max-width: 22ch;
}

/* ------------------------------------------------------ magazine grid --- */
.mag-list { padding-block: var(--sp-8) var(--sp-9); }
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--rule);
  border-top: 3px solid var(--gun-700);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-top-color 150ms ease-out;
}
.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-top-color: var(--accent);
}
.mag-card__media { position: relative; background: var(--gun-100); }
.mag-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.mag-card__angle {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--gun-800);
  background-image: var(--brushed);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px var(--sp-4) 7px var(--sp-3);
  border-left: 4px solid var(--accent);
}
.mag-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--sp-5);
}
.mag-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.mag-card__sep {
  width: 16px;
  height: 6px;
  flex: none;
  background: var(--caution-soft);
  background-size: 28.3px 28.3px;
  transform: skewX(-14deg);
}
.mag-card__title {
  font-size: 1.3rem;
  line-height: 1.12;
  margin: 0 0 var(--sp-3);
}
.mag-card__title a { color: var(--ink); text-decoration: none; }
.mag-card__title a:hover { color: var(--accent); text-decoration: underline; }
.mag-card__dek {
  color: var(--gun-600);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.mag-card__go { margin: auto 0 0; }
.mag-card__go a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.mag-card__go a::after {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: width 160ms ease-out;
}
.mag-card__go a:hover { text-decoration: underline; }
.mag-card__go a:hover::after { width: 34px; }

/* the first card runs the full width of the grid */
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  border-top-width: 0;
  border-left: 5px solid var(--accent);
  position: relative;
}
.mag-card.lead::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
  z-index: 2;
}
.mag-card.lead .mag-card__media { flex: 0 0 54%; }
.mag-card.lead .mag-card__media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card__body { padding: var(--sp-7) var(--sp-6); justify-content: center; }
.mag-card.lead .mag-card__title { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.mag-card.lead .mag-card__dek { font-size: var(--fs-lead); line-height: 1.55; }

.mag-outro {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--gun-800);
  background-image: var(--sheen);
  border-radius: var(--r-2);
  border-left: 5px solid var(--accent);
}
.mag-outro p { color: #C2CCD3; max-width: 72ch; }
.mag-outro a { color: #fff; }
.mag-outro .btn { color: #fff; margin-top: var(--sp-2); }

/* ------------------------------------------------------ article page ---- */
.article { padding-block: var(--sp-7) var(--sp-8); background: var(--bg); }
.article-wrap { max-width: 860px; }
.article-head { margin-bottom: var(--sp-6); }
.article-head h1 {
  font-size: clamp(2.05rem, 5vw, 3.25rem);
  margin-bottom: var(--sp-4);
}
.standfirst {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.55;
  color: var(--gun-600);
  max-width: 62ch;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--gun-100);
}
.article-byline__badge {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sheen);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.article-byline__who {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-byline__who a { color: var(--gun-700); text-decoration-color: var(--accent); }
.article-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}
.article-byline__meta li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.article-byline__meta li + li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.article-byline__meta time { color: var(--gun-600); font-weight: 500; }

.article-figure {
  margin: 0 0 var(--sp-7);
  border: 8px solid var(--gun-700);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-3);
  position: relative;
  background: var(--gun-700);
}
.article-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-1);
}
.article-figure::after {
  content: "";
  position: absolute;
  left: -8px; right: -8px; bottom: -8px;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}

/* --------------------------------------------- article body typography -- */
.article-body {
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--gun-600);
}
.article-body > :first-child { margin-top: 0; }
.article-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.12;
  color: var(--ink);
  margin: var(--sp-8) 0 var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--gun-200);
  position: relative;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 72px;
  height: 2px;
  background: var(--accent);
}
.article-body h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: var(--sp-6) 0 var(--sp-3);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--accent);
}
.article-body p { margin: 0 0 var(--sp-5); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--gun-700); text-decoration-color: var(--accent); }
.article-body a:hover { color: var(--accent); }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-5); padding-left: 1.3rem; }
.article-body li { margin-bottom: var(--sp-3); }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul > li {
  position: relative;
  padding-left: var(--sp-6);
}
.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 6px;
  background: var(--caution-soft);
  background-size: 28.3px 28.3px;
  transform: skewX(-14deg);
}
.article-body blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-small);
  background: var(--surface);
  border: var(--rule);
}
.article-body caption {
  caption-side: bottom;
  padding-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--muted);
  text-align: left;
}
.article-body th, .article-body td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--gun-100);
  vertical-align: top;
}
.article-body thead th {
  background: var(--gun-800);
  background-image: var(--sheen);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-body tbody tr:nth-child(even) { background: var(--gun-050); }

/* the contextual link the magazine drops between sections */
.inline-read {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--muted);
  text-transform: uppercase;
}
.inline-read a {
  color: var(--gun-700);
  text-decoration: none;
  text-transform: none;
  font-size: 1.06rem;
  letter-spacing: 0;
  border-bottom: 2px solid var(--accent);
}
.inline-read a:hover { color: var(--accent); }

/* ---------------------------------------------------- article call out -- */
.article-cta {
  position: relative;
  margin: var(--sp-8) 0 0;
  padding: var(--sp-7) var(--sp-6);
  background: var(--gun-800);
  background-image: var(--sheen);
  border-radius: var(--r-2);
  color: #EDF1F4;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.article-cta .eyebrow { color: #FF9A9A; margin-top: var(--sp-2); }
.article-cta h2 { color: #fff; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.article-cta p { color: #C2CCD3; max-width: 62ch; }
.article-cta .btn { margin-top: var(--sp-3); }

/* --------------------------------------------------------- author box -- */
.author-box {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  background: var(--surface);
  border: var(--rule);
  border-top: 3px solid var(--gun-700);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
}
.author-box img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: var(--r-1);
  border: 5px solid var(--gun-700);
}
.author-box h2 { font-size: 1.5rem; margin-bottom: var(--sp-3); }
.author-box p { color: var(--gun-600); font-size: var(--fs-small); line-height: 1.65; }
.author-box .eyebrow { margin-bottom: var(--sp-2); }
.author-box__link { margin-bottom: 0; }
.author-box__link a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--red-100);
}
.author-box__link a:hover { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------- read also -- */
.read-also {
  background: var(--gun-050);
  border-top: var(--rule);
  padding-block: var(--sp-8);
}
.read-also h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: var(--sp-6); }
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.rel-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--r-2);
  overflow: hidden;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rel-card__media { background: var(--gun-100); position: relative; }
.rel-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rel-card__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: var(--caution);
  background-size: 39.6px 39.6px;
}
.rel-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.rel-card__meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.rel-card__title { font-size: 1.14rem; line-height: 1.14; margin-bottom: var(--sp-3); }
.rel-card__title a { color: var(--ink); text-decoration: none; }
.rel-card__title a:hover { color: var(--accent); text-decoration: underline; }
.rel-card__dek {
  color: var(--gun-600);
  font-size: var(--fs-small);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-also__all { margin: var(--sp-6) 0 0; }

/* ------------------------------------------- home page magazine strip -- */
.home-mag-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.home-mag-head p.standfirst { margin: var(--sp-2) 0 0; max-width: 56ch; }
.home-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.home-mag-grid .mag-card__dek {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section--panel .mag-card { border-color: var(--gun-200); }
.home-mag-more { margin: var(--sp-6) 0 0; }

/* --------------------------------------------- author page article list -- */
.article-index { list-style: none; padding: 0; margin: 0; }
.article-index li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-2) var(--sp-4);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--gun-200);
}
.article-index li:last-child { border-bottom: 0; }
.article-index a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--gun-700);
}
.article-index a:hover { color: var(--accent); text-decoration: underline; }
.article-index time {
  font-size: var(--fs-small);
  color: var(--muted);
  white-space: nowrap;
}

/* --------------------------------------------------- magazine responsive -- */
@media (max-width: 1000px) {
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel-grid, .home-mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-card.lead .mag-card__media { flex-basis: 46%; }
}
@media (max-width: 900px) {
  .article-byline__meta { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  .mag-grid, .rel-grid, .home-mag-grid { grid-template-columns: minmax(0, 1fr); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card__media { flex: none; }
  .mag-card.lead .mag-card__media img { aspect-ratio: 3 / 2; min-height: 0; }
  .mag-card.lead .mag-card__body { padding: var(--sp-6) var(--sp-5); }
  .author-box { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .author-box img { width: 108px; height: 108px; }
  .article-body { max-width: none; }
}
@media (max-width: 480px) {
  .article { padding-block: var(--sp-6) var(--sp-7); }
  .article-figure { border-width: 5px; }
  .article-figure::after { left: -5px; right: -5px; bottom: -5px; height: 6px; }
  .article-cta, .mag-outro { padding: var(--sp-6) var(--sp-4); }
  .author-box { padding: var(--sp-5) var(--sp-4); }
  .mag-card__body { padding: var(--sp-4); }
  .article-body { font-size: 1.02rem; }
  .article-body h2 { margin-top: var(--sp-7); }
  .article-body table { display: block; overflow-x: auto; }
  .article-index li { grid-template-columns: minmax(0, 1fr); }
  .mag-facts { gap: var(--sp-4); }
  .mag-facts li { width: 100%; }
  .crumb [aria-current="page"] { max-width: 24ch; }
}
@media (max-width: 380px) {
  .mag-head h1 { font-size: 2.3rem; }
  .article-head h1 { font-size: 1.85rem; }
  .article-byline { gap: var(--sp-3); }
  .inline-read { padding: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) {
  .mag-card:hover, .rel-card:hover { transform: none; }
  .mag-card__go a:hover::after { width: 22px; }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
/* The strip sits on the near black footer, so the label is stated at full opacity
   in the gunmetal ladder rather than being dimmed to a whisper. */
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.4rem;
  color: var(--gun-200); opacity: 1; }
/* One row, never wrapped: the five names stay on a single line and the row itself
   scrolls sideways when the footer column is too narrow to hold them. */
.site-network ul { list-style: none; margin: 0;
  display: flex; flex-wrap: nowrap; gap: 0.5rem 1.5rem;
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* overflow-x: auto also computes overflow-y to auto, so the 5px focus ring
     needs room inside the box or it clips and forces a stray vertical bar.
     The h2 margin above is trimmed to match, keeping the gap as drawn. */
  padding: 5px 0; }
.site-network li { flex: 0 0 auto; }
.site-network li + li { margin-top: 0; }
/* Colour is set here because the base a rule paints links in var(--gun-700),
   which is invisible on this footer. Full opacity and a heavier weight carry
   the small size. white-space keeps each brand name whole. */
.site-network a { font-size: 0.86rem; font-weight: 600; text-decoration: none;
  color: var(--gun-100); opacity: 1; white-space: nowrap;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { color: var(--surface);
  border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
