/* ============================================================================
   KLARHAUS — styles.css
   ----------------------------------------------------------------------------
   Design system for klarhaus.ca
   Direction: "the bonded ledger" — private-bank navy, archival off-white,
   brass detailing, editorial serif display, bureaucratic mono for data.

   HOW TO EDIT
   - All colours, fonts and spacing live in :root below. Change once,
     changes everywhere.
   - Sections are labelled with banner comments. Search "== " to jump.
   ========================================================================== */

/* == 1. TOKENS ============================================================ */
:root {
  /* Colour — dark side */
  --navy-950: #0a141d;
  --navy-900: #0d1a26;
  --navy-800: #122334;
  --navy-700: #1b3247;
  --on-dark: #edebe3;
  --on-dark-muted: #9aa6ae;
  --line-dark: rgba(237, 235, 227, 0.14);

  /* Colour — light side */
  --paper: #f4f3ef;
  --paper-2: #eceae3;
  --card: #fdfcf9;
  --ink: #14212c;
  --ink-soft: #3e4c59;
  --muted: #6b7680;
  --line: #dedcd2;

  /* Colour — accent */
  --brass: #c2a15b;
  --brass-bright: #dcc084;
  --brass-deep: #8a6f35;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* == 2. RESET / BASE ====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

[id] {
  scroll-margin-top: 96px;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--brass);
  color: var(--navy-950);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-950);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.skip-link:focus {
  left: 0;
}

/* == 3. TYPE UTILITIES ==================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.dark .eyebrow,
.eyebrow.on-dark {
  color: var(--brass);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-deep);
}

.dark .display em {
  color: var(--brass-bright);
}

.h1 { font-size: clamp(2.6rem, 5.6vw, 4.35rem); }
.h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.275rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}

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

.mono {
  font-family: var(--font-mono);
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

/* == 4. LAYOUT ============================================================ */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section.tight {
  padding-block: calc(var(--section-pad) * 0.62);
}

.dark {
  background: var(--navy-950);
  color: var(--on-dark);
}

.dark-2 {
  background: var(--navy-900);
  color: var(--on-dark);
}

.paper-2 {
  background: var(--paper-2);
}

/* Running head — ledger-style section header. Left: section subject.
   Right: the real regulatory artifact the section concerns. */
.running-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.running-head .rh-left { color: var(--ink); font-weight: 500; }
.running-head .rh-right { color: var(--muted); text-align: right; }

.dark .running-head,
.dark-2 .running-head {
  border-top-color: var(--line-dark);
}

.dark .running-head .rh-left,
.dark-2 .running-head .rh-left { color: var(--on-dark); }
.dark .running-head .rh-right,
.dark-2 .running-head .rh-right { color: var(--on-dark-muted); }

.section-intro {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-intro .h2 {
  margin: 0.9rem 0 1.1rem;
}

/* == 5. HEADER / NAV ====================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--on-dark);
}

.site-header.scrolled {
  background: rgba(10, 20, 29, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.26em;
  font-size: 0.95rem;
}

.brand .mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius);
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--on-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* Mobile panel */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 49;
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-dark);
  padding: 1rem var(--gutter) 2rem;
}

.nav-open .mobile-panel {
  display: block;
}

.mobile-panel ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.mobile-panel a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--on-dark);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-dark);
}

/* == 6. BUTTONS =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Primary — the brass action colour, used for one thing only: the assessment. */
.btn-brass {
  background: var(--brass);
  color: var(--navy-950);
}

.btn-brass:hover {
  background: var(--brass-bright);
  box-shadow: 0 8px 24px rgba(194, 161, 91, 0.28);
}

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--on-dark);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--on-dark-muted);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: var(--navy-800);
}

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

.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1rem;
}

/* == 7. HERO ============================================================== */
.hero {
  position: relative;
  padding-top: clamp(9rem, 16vh, 11.5rem);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}

/* faint drafting grid + brass glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(237, 235, 227, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 235, 227, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -240px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(194, 161, 91, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.hero .h1 {
  margin: 1.1rem 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.6rem;
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.hero-assurance span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--brass);
  margin-right: 0.6rem;
  vertical-align: 2px;
}

/* -- Claim plaque (signature element #1) ---------------------------------- */
.plaque {
  position: relative;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900) 72%);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.6rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
}

.plaque-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1.4rem;
}

.plaque-rows {
  display: grid;
  gap: 0.85rem;
  font-size: 0.86rem;
}

.plaque-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--on-dark-muted);
}

.plaque-row .val {
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plaque-row.total {
  border-top: 1px dashed var(--line-dark);
  padding-top: 0.95rem;
  margin-top: 0.35rem;
  color: var(--on-dark);
  font-weight: 500;
}

.plaque-row.total .val {
  color: var(--brass-bright);
  font-size: 1.28rem;
}

.plaque-stamp {
  position: absolute;
  right: 1.2rem;
  bottom: 3.4rem;
  transform: rotate(-9deg);
  border: 2px double var(--brass);
  color: var(--brass);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
  opacity: 0.9;
  pointer-events: none;
}

.plaque-foot {
  margin-top: 1.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  opacity: 0.75;
}

/* -- Duty-rate ticker ------------------------------------------------------ */
.ticker {
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
  padding-block: 0.95rem;
}

.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 46s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  white-space: nowrap;
}

.ticker-track b {
  color: var(--brass);
  font-weight: 500;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* == 8. STATS STRIP ======================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.stat {
  padding: 1.9rem 1.6rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat .num sup {
  font-size: 0.5em;
  color: var(--brass-deep);
}

.stat .label {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* == 9. CARD GRIDS (program / obstacle) =================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: #cfccbf;
  box-shadow: 0 18px 34px -22px rgba(20, 33, 44, 0.25);
}

.card .kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.9rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.card .example {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Note band inside a section */
.note {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Pull quote */
.pull {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  max-width: 44ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.pull::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--brass);
  margin: 0 auto 1.4rem;
}

/* == 10. ESTIMATOR (signature element #2) ================================= */
.estimator {
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--navy-800), var(--navy-900) 70%);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.est-controls {
  display: grid;
  gap: 1.7rem;
  align-content: start;
}

.est-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.75rem;
}

.est-field label output {
  color: var(--brass-bright);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.est-field select {
  width: 100%;
  background: var(--navy-950);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Range inputs — cross-browser */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-dark);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--line-dark);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  background: var(--brass);
  border: 2px solid var(--navy-950);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--brass);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--brass);
  border: 2px solid var(--navy-950);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--brass);
}

.est-result {
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  align-content: center;
  gap: 1.4rem;
}

.est-line .cap {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.35rem;
}

.est-line .fig {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}

.est-line.primary .fig {
  color: var(--brass-bright);
  font-size: clamp(2.5rem, 4.6vw, 3.6rem);
}

.est-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  opacity: 0.75;
  line-height: 1.7;
}

.est-cta {
  margin-top: 0.4rem;
}

/* == 11. PROCESS ========================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 2rem 1.6rem 0 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.step + .step {
  padding-left: 1.6rem;
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--brass);
}

.step + .step::before {
  left: 1.6rem;
}

.step .no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--brass-deep);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0.8rem 0 0.6rem;
}

.step p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.step .meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* == 12. FIRM ============================================================= */
.firm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.firm-copy .h2 {
  margin: 0.9rem 0 1.2rem;
}

.firm-copy p {
  color: var(--ink-soft);
}

.principle {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-bottom: 0.4rem;
}

.principle p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.name-note {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
  border-left: 2px solid var(--brass);
  padding-left: 1.1rem;
}

.name-note b {
  color: var(--ink);
  font-weight: 500;
}

/* Scope of work list */
.scope {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.scope li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.scope li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid var(--brass-deep);
  transform: translateY(-1px) rotate(45deg);
}

/* == 13. PRICING ========================================================== */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.fee-card {
  background: var(--navy-950);
  color: var(--on-dark);
  border-radius: var(--radius);
  border: 1px solid var(--navy-700);
  border-top: 2px solid var(--brass);
  padding: 2.2rem 2rem;
}

.fee-card .fee-line {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.fee-card .fee-line em {
  color: var(--brass-bright);
  font-style: italic;
}

.fee-card .terms {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line-dark);
  display: grid;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}

.fee-card .terms span b {
  color: var(--on-dark);
  font-weight: 500;
}

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

.never li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.never li s {
  text-decoration-color: var(--brass-deep);
}

.never li::before {
  content: "\00D7";
  color: var(--brass-deep);
  font-weight: 700;
  flex: 0 0 auto;
}

/* == 14. INDUSTRIES ======================================================= */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.chip.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* == 15. FAQ ============================================================== */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  transition: color 0.2s var(--ease);
}

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

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

.faq summary .ind {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--brass-deep);
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary .ind {
  transform: rotate(45deg);
}

.faq .faq-a {
  padding: 0 0.25rem 1.5rem;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 0.985rem;
  animation: faqIn 0.35s var(--ease);
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* == 16. CTA BAND ========================================================= */
.cta-band {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(194, 161, 91, 0.14), transparent 72%);
  pointer-events: none;
}

.cta-band .h2 {
  max-width: 20ch;
  margin: 1rem auto 1.2rem;
}

.cta-band .lede {
  margin-inline: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

.cta-band .hero-assurance {
  justify-content: center;
}

/* == 17. FOOTER =========================================================== */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer .brand {
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-tag {
  max-width: 34ch;
  line-height: 1.7;
}

.footer-legal {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

/* == 18. INTERIOR PAGES (assessment / contact) ============================ */
.page-head {
  padding-top: clamp(8.5rem, 15vh, 10.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 235, 227, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 235, 227, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}

.page-head .h1 {
  margin: 1rem 0 1.1rem;
}

/* Two-column form layout */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.next-steps {
  display: grid;
  gap: 0;
}

.next-step {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
}

.next-step:last-of-type {
  border-bottom: 1px solid var(--line);
}

.next-step .no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brass-deep);
  padding-top: 0.3rem;
}

.next-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.next-step p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.assurance-block {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid var(--brass);
  padding-left: 1.1rem;
  line-height: 1.75;
}

/* Forms */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field label .req {
  color: var(--brass-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px rgba(194, 161, 91, 0.22);
}

.form-foot {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.form-foot .small {
  max-width: 34ch;
}

/* honeypot — invisible to humans, catnip to bots */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  border-left-color: #4c7a5a;
}

.form-status.err {
  border-left-color: #a4442e;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}

.contact-card .kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.8rem;
}

.contact-card a.big,
.contact-card .big {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}

.contact-card a.big:hover {
  color: var(--brass-deep);
}

.contact-card p {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.1rem;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(1) contrast(0.95);
}

/* Contact sheet — letterhead-style details strip: prominent placement,
   professional density */
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}

.cs-cell {
  padding: 1.2rem 1.4rem 1.15rem;
  border-left: 1px solid var(--line);
}

.cs-cell:first-child {
  border-left: 0;
}

.cs-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.45rem;
}

.cs-value,
.cs-value a {
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
}

.cs-value a:hover {
  color: var(--brass-deep);
}

.cs-sub {
  margin-top: 0.3rem;
  font-size: 0.79rem;
  color: var(--muted);
}

.fee-card .btn {
  margin-top: 1.8rem;
}

@media (max-width: 1020px) {
  .contact-sheet { grid-template-columns: 1fr 1fr; }
  .cs-cell:nth-child(odd) { border-left: 0; }
  .cs-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .contact-sheet { grid-template-columns: 1fr; }
  .cs-cell { border-left: 0; }
  .cs-cell + .cs-cell { border-top: 1px solid var(--line); }
}

/* == 19. REVEAL / MOTION ================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .btn, .card { transition: none; }
}

/* == 20. RESPONSIVE ======================================================= */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plaque { max-width: 520px; }
  .estimator { grid-template-columns: 1fr; }
  .est-result {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding-left: 0;
    padding-top: 1.8rem;
  }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; }
  .step { border-top: 1px solid var(--line); padding-left: 0; padding-right: 1.6rem; }
  .step + .step { padding-left: 0; }
  .step + .step::before { left: 0; }
  .step:nth-child(2n) { border-right: 0; padding-left: 1.6rem; }
  .step:nth-child(2n)::before { left: 1.6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .firm-grid, .pricing, .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .card-grid, .card-grid.cols-2, .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2n) { border-right: 0; padding-left: 0; padding-right: 0; }
  .step:nth-child(2n)::before { left: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .stat:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .plaque-stamp { display: none; }
}
