/* ============================================================
   Inlet Road Capital Management — main stylesheet
   Static build. Google Fonts (Fraunces + Inter) is the only
   external dependency. Token names follow DESIGN.md §1 exactly.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Core brand tones */
  --ink: #14181D;
  --ink-soft: #1E242B;
  --paper: #F7F4ED;
  --paper-deep: #EFEBE0;
  --bronze: #B08A3E;
  /* #775E27: darkened so small text passes WCAG AA (≥4.5:1) on --paper-deep (#EFEBE0) — 5.16:1 verified */
  --bronze-deep: #775E27;

  /* Supporting tones */
  --text: #1A1F25;
  --text-on-dark: #EDE9DE;
  --muted: #6B7078;
  --muted-on-dark: #A8ACB1;
  --line: #DCD6C6;
  --line-on-dark: #343B44;
  --white: #FFFFFF;
  --error: #A63A2E;
  --success: #3E7A4E;
  --focus: #2F6FA8;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(24px, 5vw, 48px);

  /* Spacing scale (1rem = 16px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 80px;
  --space-16: 112px;
  --space-20: 144px;

  /* Breakpoints (documented; used in media queries below) */
  --bp-mobile: 720px;
  --bp-tablet: 1024px;
  --bp-nav: 900px;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

::selection { background: rgba(176, 138, 62, 0.28); }

/* Visible keyboard focus everywhere (functional, not decorative) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: top 200ms ease-out;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- 3. Typography ---------- */
.display-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* Balance display wrapping: headlines never strand a single word */
h1, h2, .display-hero, .hero-title { text-wrap: balance; }

.lead {
  font-size: 20px;
  line-height: 1.6;
}

.small { font-size: 14px; line-height: 1.6; }

/* Eyebrow kicker: bronze signal, uppercase, tracked.
   Light grounds: 24px bronze rule to the left.
   Dark grounds (.eyebrow--on-dark): plain, no rule. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--bronze);
}
.eyebrow--on-dark { color: var(--bronze); }
.eyebrow--on-dark::before { display: none; }

/* In-copy text links: bronze-deep, never blue */
.text-link {
  color: var(--bronze-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 200ms ease-out, color 200ms ease-out;
}
.text-link:hover {
  text-decoration-thickness: 2px;
  color: var(--bronze-deep);
}
.text-link--on-dark { color: var(--text-on-dark); }
.text-link--on-dark:hover { color: var(--bronze); }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--measure { max-width: 760px; }

/* Sticky-header offset for skip-link / back-to-top anchors */
#main { scroll-margin-top: 84px; }

/* Full-bleed bands, alternating grounds. One ground per band. */
.band { padding-block: var(--space-16); }          /* 112px desktop */
.band--paper { background: var(--paper); color: var(--text); }
.band--paper-deep { background: var(--paper-deep); color: var(--text); }
.band--ink { background: var(--ink); color: var(--text-on-dark); }
.band--ink-soft { background: var(--ink-soft); color: var(--text-on-dark); }
.band--cta { padding-block: 96px; text-align: center; }

/* Vertical rhythm inside a band */
.stack > * + * { margin-top: var(--space-5); }
.band-head { margin-bottom: var(--space-8); }
.band-head .eyebrow { margin-bottom: var(--space-5); }
.band-head h2 { margin-bottom: var(--space-5); max-width: 22ch; }

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
.grid-split--7-5 { grid-template-columns: 7fr 5fr; }
.grid-split--5-7 { grid-template-columns: 5fr 7fr; }

/* Bronze square list markers (not bullet characters) */
.marker-list { list-style: none; }
.marker-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.65;
}
.marker-list li + li { margin-top: var(--space-3); }
.marker-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--bronze);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--bronze-deep); color: var(--white); }

/* Primary on dark grounds: paper ground, ink text; hover -> bronze */
.btn--on-dark { background: var(--paper); color: var(--ink); }
.btn--on-dark:hover { background: var(--bronze); color: var(--ink); }

.btn--secondary { background: transparent; border-color: var(--text); color: var(--text); }
.btn--secondary:hover { border-color: var(--bronze-deep); color: var(--bronze-deep); }

.btn--secondary-on-dark { background: transparent; border-color: var(--text-on-dark); color: var(--text-on-dark); }
.btn--secondary-on-dark:hover { border-color: var(--bronze); color: var(--bronze); }

.btn--small { padding: 10px 20px; font-size: 13px; }

/* ---------- 6. Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color 250ms ease-out, border-color 250ms ease-out;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 72px;
}

/* Logo: two stacked <img>s cross-fade on scroll (opacity 200ms) */
.brand {
  position: relative;
  display: inline-block;
  height: 40px;
  aspect-ratio: 1925 / 1333;
  flex: none;
  margin-right: auto;
}
.brand-logo {
  position: absolute;
  inset: 0;
  height: 100%;
  width: auto;
  max-width: none;
  transition: opacity 200ms ease-out;
}
.brand-logo--reversed {
  filter: brightness(0) invert(1); /* white treatment for dark grounds */
  opacity: 0;
}

/* Transparent start over the dark home hero */
body.has-hero-dark .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
body.has-hero-dark .site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--line);
}
body.has-hero-dark .site-header:not(.is-scrolled) .brand-logo--reversed { opacity: 1; }
body.has-hero-dark .site-header:not(.is-scrolled) .brand-logo--standard { opacity: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 6px 2px 8px;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}
.nav-link:hover { color: var(--bronze-deep); }
.nav-link.is-active { border-bottom-color: var(--bronze-deep); }

body.has-hero-dark .site-header:not(.is-scrolled) .nav-link { color: var(--text-on-dark); }
body.has-hero-dark .site-header:not(.is-scrolled) .nav-link:hover { color: var(--bronze); }
body.has-hero-dark .site-header:not(.is-scrolled) .nav-link.is-active { border-bottom-color: var(--bronze); }

/* Compact header CTA: primary on solid header, outline variant over dark hero */
body.has-hero-dark .site-header:not(.is-scrolled) .btn--header {
  background: transparent;
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}
body.has-hero-dark .site-header:not(.is-scrolled) .btn--header:hover {
  border-color: var(--bronze);
  color: var(--bronze);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: background-color 200ms ease-out;
}
body.has-hero-dark .site-header:not(.is-scrolled) .nav-toggle span { background: var(--text-on-dark); }

/* ---------- 7. Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--gutter) var(--space-8);
  overflow-y: auto; /* allow scrolling on short viewports while body scroll is locked */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 250ms ease-out, transform 250ms ease-out, visibility 0s linear 250ms;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
.menu-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--text-on-dark);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-sans);
}
.menu-close:hover { color: var(--bronze); }
.menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.menu-link {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.menu-link:hover, .menu-link.is-active { color: var(--bronze); }
.menu-foot {
  margin-top: auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--line-on-dark);
}
.menu-email {
  color: var(--text-on-dark);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 2px;
}
.menu-email:hover { color: var(--bronze); }
.menu-firm {
  margin-top: var(--space-4);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
body.menu-open { overflow: hidden; }

/* ---------- 8. Heroes ---------- */
/* Variant A — Home hero (dark, signature) */
.hero--dark {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}
/* Faint bronze aura: the dark hero should have depth, not flat black */
.hero--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 72% 28%, rgba(176, 138, 62, 0.14), transparent 70%);
  pointer-events: none;
}
.hero--dark .hero-content {
  position: relative;
  padding: 96px 0 140px;
  animation: heroIn 400ms ease-out;
}
.hero--dark .eyebrow { margin-bottom: var(--space-6); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 16ch;
  color: var(--text-on-dark);
}
.hero-lead {
  margin-top: var(--space-6);
  font-size: 20px;
  line-height: 1.6;
  max-width: 42ch;
  color: var(--text-on-dark);
}
.hero-actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
/* 1px bronze rule spanning the container, 48px above the band edge */
.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
}
.hero-rule { display: block; height: 1px; background: var(--bronze); }

@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }

/* Variant B — Interior page hero (light, compact) */
.hero--light { background: var(--paper); }
.hero--light .hero-content {
  padding: 96px 0 80px;
  max-width: 760px;
  animation: heroIn 400ms ease-out;
}
.hero--light .eyebrow { margin-bottom: var(--space-5); }
.hero--light h1 { margin-bottom: var(--space-5); }
.hero--light .lead { color: var(--text); }
.hero--light .hero-rule { width: 64px; height: 2px; margin-top: var(--space-8); }

/* ---------- 9. Stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat { position: relative; text-align: center; padding: var(--space-6); }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: var(--line-on-dark);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  color: var(--bronze);
  font-feature-settings: "tnum";
}
.stat-label {
  margin-top: var(--space-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted-on-dark);
}

/* ---------- 10. Pillar cards ---------- */
.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-6);
  transition: border-color 200ms ease-out, transform 250ms ease-out;
}
.pillar-card::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--bronze);
  margin-bottom: var(--space-5);
}
.pillar-card:hover { border-color: var(--bronze); transform: translateY(-4px); }
.pillar-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--bronze-deep);
  margin-bottom: var(--space-3);
}
.pillar-card h3 { margin-bottom: var(--space-3); }
.pillar-card p { font-size: 15px; line-height: 1.65; color: var(--text); }

/* Compact variant (home teaser): number + title + one line, no card chrome */
.pillar-compact { padding-top: var(--space-2); }
.pillar-compact::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--bronze);
  margin-bottom: var(--space-4);
}
.pillar-compact .pillar-num { margin-bottom: var(--space-2); }
.pillar-compact h3 { margin-bottom: var(--space-2); }
.pillar-compact p { font-size: 15px; line-height: 1.65; }

/* ---------- 11. Investment criteria panel ---------- */
/* White panel lifts off the paper-deep band (same-tone bg made it invisible) */
.criteria-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-8);
}
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.criteria-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: var(--space-4);
}
.criteria-note {
  margin-top: var(--space-8);
  font-size: 20px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- 12. Aside card + pull quote + visual panel ---------- */
.aside-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: var(--space-6);
}
.aside-card h3 { margin-bottom: var(--space-4); }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.4;
  color: var(--text);
  border-left: 3px solid var(--bronze);
  padding-left: var(--space-5);
  margin-block: var(--space-8);
}

/* Abstract visual panel (recent activity) — texture only, no photos */
.visual-panel {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  min-height: 360px;
  overflow: hidden;
}
.visual-panel::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid var(--bronze);
  pointer-events: none;
}
.visual-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
}
.visual-ghost {
  position: absolute;
  right: 32px;
  bottom: 8px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 140px;
  line-height: 1;
  color: var(--bronze);
  opacity: 0.1;
  pointer-events: none;
}

/* ---------- 13. Team profiles ---------- */
.profile {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-10);
  align-items: start;
}
/* Hairline divider: two long text profiles need structure, not just air */
.profile + .profile {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--line);
}
/* Alternate sides: Rob's photo on the right (desktop) */
.profile--flip .profile-photo { order: 2; }

/* Gallery-mat frame: 12px paper mat + 1px hairline border, 4:5 image */
.photo-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  max-width: 420px;
}
.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-deep);
}

.profile-bio .eyebrow { margin-bottom: var(--space-4); }
.profile-bio h2 { margin-bottom: var(--space-5); }
.profile-bio .bio-text { max-width: 68ch; }
.profile-bio .bio-text p + p { margin-top: var(--space-4); }

.affil { margin-top: var(--space-6); }
.affil-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: var(--space-3);
}
.affil-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: var(--space-4) 0 var(--space-2);
}
.affil-list { list-style: none; }
.affil-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.affil-list li + li { margin-top: var(--space-2); }
.affil-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--bronze);
}
.affil-list strong { color: var(--text); font-weight: 600; }

/* ---------- 14. Contact ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-10);
  align-items: start;
}
.email-big {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: var(--bronze-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-big:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-intro { margin-bottom: var(--space-6); max-width: 36ch; }
.firm-block { margin-top: var(--space-8); font-size: 14px; line-height: 1.8; color: var(--muted); }
.firm-block strong { display: block; color: var(--text); font-weight: 600; }

/* Form */
.contact-form { max-width: 640px; }
.field { margin-bottom: var(--space-5); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: var(--space-2);
  color: var(--text);
}
.field-label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.field-input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px; /* 16px minimum: prevents iOS zoom */
  line-height: 1.5;
  color: var(--text);
  transition: border-color 200ms ease-out;
}
.field-input:hover { border-color: var(--muted); }
.field-input:focus { border-color: var(--bronze-deep); }
textarea.field-input { resize: vertical; min-height: 160px; }
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7078' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field.has-error .field-input { border-color: var(--error); }
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--error);
}
.field.has-error .field-error { display: block; }

.form-note { margin-top: var(--space-5); font-size: 14px; color: var(--muted); }
.form-disclosure {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Success panel replaces the form after mailto handoff */
.form-success {
  display: none;
  background: var(--paper-deep);
  border-top: 2px solid var(--bronze);
  padding: var(--space-8);
}
.form-success.is-shown { display: block; }
.form-success h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.form-success p + p { margin-top: var(--space-4); }

/* ---------- 15. CTA band ---------- */
/* Bronze hairline + low aura separate the CTA from the ink footer below */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(176, 138, 62, 0.35);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 70% at 50% 118%, rgba(176, 138, 62, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--text-on-dark); max-width: 20ch; margin-inline: auto; }
.cta-band .lead { color: var(--text-on-dark); margin-top: var(--space-5); }
.cta-band .btn { margin-top: var(--space-8); }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: var(--space-10) 0 var(--space-6);
  border-top: 1px solid var(--line-on-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-8);
}
.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1); /* white treatment on ink */
}
.footer-descriptor {
  margin-top: var(--space-4);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-on-dark);
  max-width: 44ch;
}
.footer-address { margin-top: var(--space-4); font-size: 13px; line-height: 1.8; color: var(--muted-on-dark); }
.footer-address strong { display: block; color: var(--text-on-dark); font-weight: 600; }
.footer-links { text-align: right; }
.footer-nav { display: flex; gap: var(--space-5); justify-content: flex-end; flex-wrap: wrap; }
.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 10px 2px;
  transition: color 200ms ease-out;
}
.footer-nav a:hover { color: var(--bronze); }
.footer-email {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 2px;
}
.footer-email:hover { color: var(--bronze); }

.footer-disclosure {
  border-top: 1px solid var(--line-on-dark);
  padding-block: var(--space-6);
}
.footer-disclosure p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-on-dark);
  max-width: 900px;
}
.footer-disclosure p + p { margin-top: var(--space-4); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-dark);
  font-size: 13px;
  color: var(--muted-on-dark);
}
.footer-bottom a {
  color: var(--muted-on-dark);
  text-decoration: none;
  padding: 10px 2px;
}
.footer-bottom a:hover { color: var(--bronze); }

/* ---------- 17. Reveal on scroll ---------- */
/* Hidden state applies only when JS is running (html.js set by inline
   script in <head>). If main.js fails to load, content stays visible. */
.reveal {
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .band { padding-block: 96px; }
  .display-hero, .hero-title { font-size: 52px; line-height: 1.08; }
  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 30px; }
  .stat-num { font-size: 44px; }

  .criteria-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .criteria-group + .criteria-group {
    border-top: 1px solid var(--line);
    padding-top: var(--space-6);
  }
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-nav, .btn--header { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { height: 64px; }
  .brand { height: 36px; }
}

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

@media (max-width: 720px) {
  .band { padding-block: 64px; }
  .band--cta { padding-block: 64px; }
  .display-hero, .hero-title { font-size: 40px; line-height: 1.12; }
  h1, .h1 { font-size: 32px; }
  h2, .h2 { font-size: 26px; }
  .lead { font-size: 18px; }
  .pull-quote { font-size: 20px; }

  .hero--dark { min-height: 0; }
  .hero--dark .hero-content { padding: 80px 0 120px; }
  .hero-actions .btn { width: 100%; }
  .hero--light .hero-content { padding: 64px 0 48px; }

  .grid-split, .grid-split--7-5, .grid-split--5-7 { grid-template-columns: 1fr; gap: var(--space-8); }

  /* Stats stack with top borders instead of vertical dividers */
  .stats { grid-template-columns: 1fr; }
  .stat { padding: var(--space-5) var(--space-4); }
  .stat + .stat::before {
    left: var(--space-5);
    right: var(--space-5);
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .stat-num { font-size: 40px; }

  .criteria-panel { padding: var(--space-6); }

  /* Team: photo above bio, centered, 320px max */
  .profile, .profile--flip { grid-template-columns: 1fr; gap: var(--space-6); }
  .profile--flip .profile-photo { order: 0; }
  .profile + .profile { margin-top: 64px; padding-top: 64px; }
  .photo-frame { max-width: 320px; margin-inline: auto; }

  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-nav { justify-content: flex-start; }
  .visual-panel { min-height: 280px; }
  .visual-ghost { font-size: 96px; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero--dark .hero-content, .hero--light .hero-content { animation: none; }
}

/* Spacing utilities (replaces one-off inline margins) */
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
