/* ==========================================================================
   Cat 4 Consulting — styles.css
   Dark charcoal base / safety-orange accent / documentation-as-imagery
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg-0: #0b0d0f;
  --bg-1: #101317;
  --bg-2: #171b20;
  --bg-3: #1e242b;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --text-hi: #f4f3f0;
  --text-mid: #b9bfc6;
  --text-low: #848c95;

  --orange: #ff6b1a;
  --orange-hi: #ff8a3d;
  --orange-dim: rgba(255, 107, 26, 0.14);
  --yellow: #ffc400;
  --green: #46d68c;
  --red: #ff5d5d;

  --paper: #f6f3ec;
  --paper-line: #ddd8cc;
  --ink: #16181b;
  --ink-soft: #4d5259;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1180px;
  --header-h: 72px;
  --chamfer: 12px;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--orange-hi);
  text-decoration: none;
}
a:hover {
  color: var(--orange);
}

::selection {
  background: var(--orange);
  color: var(--bg-0);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--bg-0);
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 40px);
}
.container-narrow {
  max-width: 860px;
}

section[id],
footer[id],
.pillar[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ---------- Type helpers ---------- */
.kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

h2 {
  font-size: clamp(34px, 4.6vw, 54px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-lede {
  margin-top: 16px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-mid);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #0a0a0a;
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    0 100%
  );
}
.btn-primary:hover {
  background: var(--orange-hi);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-hi);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-hi);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-hi);
}
.brand:hover {
  color: var(--text-hi);
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--text-low);
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}
.site-nav > a:not(.btn) {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav > a:not(.btn):hover {
  color: var(--text-hi);
  border-bottom-color: var(--orange);
}
.btn-nav {
  padding: 11px 20px 12px;
  font-size: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-hi);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 26px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease),
      visibility 0s 0.25s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .site-nav > a:not(.btn) {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 20px;
  }
  .btn-nav {
    margin-top: 18px;
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(255, 107, 26, 0.09), transparent 62%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--bg-0);
  background-size: auto, 52px 52px, 52px 52px, auto;
  background-position: 0 0, -1px -1px, -1px -1px, 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-top: clamp(56px, 8.5vw, 108px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.hero-headline {
  font-size: clamp(38px, 4.4vw, 60px);
  margin-bottom: 24px;
}
.hl-file {
  color: var(--orange);
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(17px, 1.6vw, 20px);
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.trust-strip {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.trust-strip li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-low);
  text-transform: uppercase;
}
.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Hero visual: document stack */
.hero-visual {
  min-width: 0;
}
.doc-stack {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
  padding-top: 148px;
  padding-bottom: 150px;
}

.doc-chart {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(330px, 88%);
  margin: 0;
  padding: 16px 18px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(1.6deg);
}
.doc-chart svg {
  width: 100%;
  height: auto;
}
.doc-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mid);
}
.doc-chart-foot {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-low);
}
.svg-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.chip {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.chip-green {
  color: var(--green);
  border: 1px solid rgba(70, 214, 140, 0.45);
  background: rgba(70, 214, 140, 0.08);
}

/* Paper supplement card */
.doc-paper {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(408px, 100%);
  background: var(--paper);
  color: var(--ink);
  padding: 22px 24px 20px;
  border: 1px solid var(--paper-line);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.2deg);
  font-family: var(--font-mono);
}

.doc-paper-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.doc-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.doc-claim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.redact-bar {
  display: inline-block;
  width: 74px;
  height: 11px;
  background: var(--ink);
  opacity: 0.85;
}

.doc-rows {
  font-size: 12px;
  line-height: 1.5;
}
.doc-row {
  display: grid;
  grid-template-columns: 1fr 74px 78px;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--paper-line);
}
.doc-row > span:nth-child(2) {
  text-align: right;
  white-space: nowrap;
}
.doc-row > span:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}
.doc-row-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}
.doc-row-note {
  grid-template-columns: 1fr;
  padding: 4px 0 7px;
  font-size: 10.5px;
  color: #b3540f;
  border-bottom: 1px dashed var(--paper-line);
}
.cut {
  color: var(--red);
  text-decoration-thickness: 2px;
  margin-right: 2px;
}

.doc-totals {
  margin-top: 12px;
  font-size: 12px;
}
.doc-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: var(--ink-soft);
}
.doc-total-delta {
  margin-top: 5px;
  padding: 8px 10px;
  background: rgba(43, 158, 101, 0.12);
  border: 1px solid rgba(43, 158, 101, 0.5);
  color: #197a4c;
  font-weight: 600;
}

/* Stamps */
.stamp {
  display: inline-block;
  padding: 5px 12px 6px;
  border: 2.5px solid currentColor;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  transform: rotate(-6deg);
  opacity: 0.92;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='40'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .82 0'/></filter><rect width='120' height='40' filter='url(%23n)' fill='white'/></svg>");
  mask-size: 120px 40px;
}
.stamp-red {
  color: var(--red);
}
.stamp-orange {
  color: #d4470b;
}
.doc-stamp {
  position: absolute;
  right: 14px;
  top: 57%;
  font-size: 21px;
  transform: rotate(-11deg);
}

.specimen {
  position: absolute;
  left: 24px;
  bottom: 6px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  opacity: 0.65;
}

/* After-hours call log card */
.doc-call {
  position: absolute;
  left: -6px;
  bottom: 0;
  z-index: 3;
  width: min(330px, 94%);
  margin: 0;
  padding: 14px 16px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.6deg);
}
.doc-call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mid);
}
.call-rows {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.call-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--text-mid);
}
.call-row:last-child {
  border-bottom: none;
}
.call-time {
  flex-shrink: 0;
  color: var(--text-low);
}
.call-row-hi span:last-child {
  color: var(--orange-hi);
  font-weight: 600;
}

/* Hazard divider */
.hazard-divider {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 14px,
    #14161a 14px 28px
  );
  opacity: 0.85;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: 2;
  }
  .doc-stack {
    max-width: 480px;
    padding-top: 148px;
  }
}
@media (max-width: 480px) {
  .hl-field,
  .hl-file {
    white-space: normal;
  }
  .doc-stack {
    padding-top: 140px;
  }
  .doc-stamp {
    right: 8px;
    font-size: 18px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(72px, 9vw, 120px);
}
.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- 01 Problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.problem-card {
  position: relative;
  margin: 0;
  padding: 52px 24px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
}
.problem-card p {
  font-size: 18.5px;
  font-weight: 500;
  color: var(--text-hi);
  line-height: 1.45;
}
.problem-card em {
  color: var(--orange-hi);
  font-style: italic;
}
.problem-card .stamp {
  position: absolute;
  top: 14px;
  left: 20px;
  font-size: 14.5px;
  transform: rotate(-4deg);
}

.problem-closer {
  max-width: 720px;
  margin-top: clamp(36px, 5vw, 52px);
  font-size: clamp(17px, 1.7vw, 20px);
}
.problem-punch {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 6px;
}

/* ---------- 02 Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1120px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    0 100%
  );
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-card:hover {
  border-color: rgba(255, 107, 26, 0.55);
  transform: translateY(-3px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255, 107, 26, 0.35);
}

.service-card h3,
.service-card h4 {
  font-size: 25px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15.5px;
}
.service-tags {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--text-low);
}

/* Pillar blocks inside What We Do */
.pillar + .pillar {
  margin-top: clamp(48px, 6vw, 72px);
}
.pillar-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pillar-num {
  padding-top: 4px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
}
.pillar-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-low);
}
.pillar-title {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 6px;
}
.pillar-sub {
  margin: 0;
  font-size: 17px;
  color: var(--text-mid);
}

/* Missed-call math strip */
.math-strip {
  margin-top: 26px;
  padding: 22px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
}
.math-head {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.math-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text-hi);
}
.math-var {
  padding: 5px 10px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.math-op {
  color: var(--orange);
  font-weight: 600;
}
.math-total {
  padding: 5px 10px;
  background: rgba(70, 214, 140, 0.08);
  border: 1px solid rgba(70, 214, 140, 0.5);
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}
.math-tail {
  color: var(--text-mid);
}
.math-foot {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-low);
}
@media (max-width: 560px) {
  .math-var,
  .math-total {
    white-space: normal;
  }
}

/* ---------- 03 Why Cat 4 ---------- */
.section-why {
  position: relative;
  overflow: hidden;
}
.giant-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(180px, 30vw, 420px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.why-story h2 {
  margin-bottom: 22px;
}
.why-story p {
  font-size: 17.5px;
}
.why-aside {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-low);
  border-left: 2px solid var(--orange);
  padding-left: 14px;
  margin-top: 24px;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.why-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 20px;
  border-top: 1px solid var(--line);
}
.why-item:last-child {
  border-bottom: 1px solid var(--line);
}
.why-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.why-item h3 {
  font-size: 23px;
  margin-bottom: 8px;
}
.why-item p {
  font-size: 15.5px;
}

@media (max-width: 880px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 04 Results ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.stat {
  background: var(--bg-1);
  padding: 26px 24px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-hi);
  line-height: 1.05;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-low);
}

.carrier-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-low);
  margin-bottom: clamp(36px, 5vw, 52px);
}
.carrier-line::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.case-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-low);
  margin-bottom: 14px;
}
.case-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.case-card > p:not(.case-tag):not(.case-amount) {
  font-size: 15px;
}
.case-amount {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
}
.case-amount-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-low);
  margin-bottom: 4px;
}
.redact-num {
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.case-note {
  margin-top: 22px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-low);
}

/* ---------- 05 Steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(20px, 3vw, 34px);
}
.step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -27px;
  width: 20px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0 4px,
    transparent 4px 8px
  );
}
.step:last-child::after {
  display: none;
}
.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  background: var(--orange);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
.step h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.step p {
  font-size: 15.5px;
}
@media (max-width: 880px) {
  .step::after {
    display: none;
  }
}

.steps-note {
  margin-top: clamp(24px, 3.5vw, 36px);
  max-width: 780px;
  padding: 18px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  font-size: 16px;
}
.steps-note strong {
  color: var(--text-hi);
}

.section-cta {
  margin-top: clamp(36px, 5vw, 52px);
}

/* ---------- 06 Founder ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-copy h2 {
  margin-bottom: 22px;
}
.about-copy p {
  font-size: 17px;
}

.cred-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: 24px 26px 10px;
}
.cred-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.cred-rows {
  margin: 0;
}
.cred-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.cred-row:last-child {
  border-bottom: none;
}
.cred-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-low);
  padding-top: 3px;
}
.cred-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text-hi);
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 07 FAQ ---------- */
.faq-group {
  margin: clamp(30px, 4vw, 44px) 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.faq-group::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.section-head + .faq-group {
  margin-top: 0;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] {
  border-color: rgba(255, 107, 26, 0.5);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-hi);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--orange);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 24px 22px;
  max-width: 700px;
}
.faq-body p {
  font-size: 16px;
}

/* ---------- Final CTA / form ---------- */
.section-cta-final {
  position: relative;
  padding-top: 0;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(255, 107, 26, 0.08), transparent 60%),
    var(--bg-1);
}
.hazard-divider-top {
  margin-bottom: clamp(64px, 8vw, 104px);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cta-copy h2 {
  margin-bottom: 20px;
}
.cta-copy > p {
  font-size: 17.5px;
}

.cta-checklist {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cta-checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--text-hi);
}
.cta-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--orange);
  background: var(--orange-dim);
}
.cta-checklist li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* Dual offer cards */
.offer-card {
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
}
.offer-tag {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--orange);
}
.offer-card > p:not(.offer-tag) {
  font-size: 15.5px;
}
.offer-card .cta-checklist {
  margin: 16px 0 2px;
}

.cta-alt {
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-low);
}

/* Form */
.review-form {
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 16px;
}
.field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.req {
  color: var(--orange);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.18s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23ff6b1a' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-low);
  opacity: 0.75;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
}

/* Dropzone */
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 18px;
  text-align: center;
  background: var(--bg-0);
  border: 1.5px dashed var(--line);
  color: var(--text-low);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  border-color: var(--orange);
  color: var(--orange-hi);
  background: rgba(255, 107, 26, 0.05);
}
.dropzone p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-mid);
}
.dropzone strong {
  color: var(--text-hi);
}
.dropzone-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-low);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mid);
}
.file-list .file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-list .file-size {
  flex-shrink: 0;
  color: var(--text-low);
}
.file-list .file-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-low);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.file-list .file-remove:hover {
  border-color: var(--red);
  color: var(--red);
}
.file-warn {
  border-color: rgba(255, 196, 0, 0.5) !important;
  color: var(--yellow) !important;
}
.file-note {
  border-color: rgba(255, 107, 26, 0.4) !important;
  color: var(--text-mid) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}
.btn-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-note {
  margin-top: 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-low);
}

.form-status {
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  min-height: 1.4em;
}
.form-status.ok {
  color: var(--green);
}
.form-status.err {
  color: var(--red);
}

.form-success {
  padding: 40px 20px;
  text-align: center;
}
.form-success h3 {
  font-size: 30px;
  color: var(--green);
  margin-bottom: 12px;
}
.form-success p {
  color: var(--text-mid);
}

@media (max-width: 880px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 56px);
}
.footer-brand p {
  margin-top: 18px;
  font-size: 15px;
  max-width: 320px;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
  letter-spacing: 0.04em;
}
.footer-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-low);
  margin-bottom: 16px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-col a {
  color: var(--text-mid);
  font-size: 15px;
}
.footer-col a:hover {
  color: var(--orange-hi);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-low);
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-low);
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* No-JS: keep everything visible */
.no-js .reveal,
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}
