/* ============================================
   B86N — Stylesheet (v3 — addresses backlog)
   ============================================ */

/* ===== SELF-HOSTED FONTS — no external requests, no Google ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/Inter-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/JetBrainsMono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Fraunces-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Fraunces-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Fraunces-600.woff2') format('woff2');
}

:root {
  --bg: #07140F;
  --bg-2: #0B1E17;
  --surface: #0F261D;
  --surface-2: #143229;
  --line: rgba(212, 162, 76, 0.16);
  --line-strong: rgba(212, 162, 76, 0.42);
  --gold: #D4A24C;
  --gold-bright: #E8B86A;
  --gold-warm: #C9A972;
  --gold-deep: #A6781E;
  --ivory: #F2EDE0;
  --text: #DDD7C8;
  --muted: #8FA59A;
  --muted-2: #6B8378;
  /* Robust sans stack — falls back to native OS sans if Inter doesn't load,
     never to serif. */
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Editorial serif for display headlines — falls back through
     classic serif stack if Fraunces fails to load. */
  --serif: 'Fraunces', Charter, 'Bitstream Charter', 'Sitka Text',
           Cambria, Georgia, serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas,
          'Roboto Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(212, 162, 76, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(212, 162, 76, 0.035), transparent 60%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
main, header, footer { position: relative; z-index: 2; }
::selection { background: var(--gold); color: #0A1814; }

/* ===== TYPOGRAPHY — strict sans-serif everywhere ===== */
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ivory);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.012em;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.012em;
}
h4 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
p { margin: 0; }

/* ===== EYEBROW — refined (no horizontal dash) ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

.accent {
  color: var(--gold-warm);
  font-weight: inherit;
}

/* ===== LAYOUT ===== */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ===== NAV — wordmark left, nav right ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 65;
  backdrop-filter: blur(14px);
  background: rgba(7, 20, 15, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  background: rgba(7, 20, 15, 0.96);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1.5rem, 4.5vw, 3.5rem);
  max-width: 1280px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.88; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(232, 184, 106, 0.18));
  transition: filter 0.3s;
}
.logo:hover .logo-img {
  filter: drop-shadow(0 0 22px rgba(232, 184, 106, 0.32));
}

/* On home page only — hide the nav brain (the hero already has the big logo).
   Other pages keep the nav logo for brand consistency. */
body.page-home .nav .logo {
  display: none;
}

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 66;
  height: 76px;
  padding: 0 clamp(1.5rem, 4.5vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.2s;
  position: relative;
  display: flex;
  align-items: center;
}
.nav-links a span { display: inline; }
.nav-links a .nav-chev { display: none; } /* chevrons only on mobile */
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.nav-cta {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover {
  background: var(--gold);
  color: #0A1814 !important;
}

/* ===== HAMBURGER BUTTON (mobile only) ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== MOBILE DRAWER BACKDROP ===== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 15, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 55;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== HERO — 2-column on desktop (text left, logo right) ===== */
.hero {
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 55%;
  height: 75%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%,
              rgba(212, 162, 76, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  position: relative;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
  text-align: left;
  min-width: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 16ch;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.05s cubic-bezier(0.22, 0.8, 0.2, 1) 0.2s forwards;
}
.hero h1 .accent { color: var(--gold-warm); display: inline; }
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 0 50px rgba(212, 162, 76, 0.16));
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.2s cubic-bezier(0.22, 0.8, 0.2, 1) 0.15s forwards;
}

/* Visually hide content while keeping it accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero h1 .line-2 {
  display: block;
  font-weight: 400;
  color: var(--gold-warm);
  margin-top: 0.1em;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  text-align: left;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s forwards;
}
.hero-sub strong { color: var(--ivory); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.75s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: transform 0.2s, background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--sans);
}
.btn-primary { background: var(--gold); color: #0A1814; }
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.btn-secondary {
  border-color: var(--line-strong);
  color: var(--ivory);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  justify-content: flex-start;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.95s forwards;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
  width: 100%;
  max-width: 100%;
}
.hero-tag span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-tag span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-art-wrap { display: none; }

/* ===== PAGE HEAD — compact page identifier, not hero ===== */
.page-head {
  padding-top: clamp(5.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(1.4rem, 2.5vw, 2rem);
  position: relative;
  text-align: center;
}
.page-head .wrap { position: relative; }
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 500;
  margin: 0.7rem auto 0.85rem;
  max-width: 28ch;
  line-height: 1.15;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease 0.1s forwards;
}
.page-head h1 .accent { color: var(--gold-warm); }
.page-head .lead {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease 0.25s forwards;
}

/* Critical: when a section follows the page-head, no compound padding —
   the page-head and content share a single rhythm, not two separate ones. */
.page-head + section,
.page-head + div + section,
.page-head + .stats,
.page-head + div + .stats {
  padding-top: clamp(1rem, 2vw, 1.6rem);
}

/* ===== SECTION HEAD — h2 has no max-width (no forced wrapping) ===== */
.section-head {
  margin-bottom: 2.2rem;
}
.section-head h2 {
  margin-bottom: 1rem;
}
.section-head h2 .accent { color: var(--gold-warm); }
.section-head .lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ===== HOME — TILES ===== */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  background: var(--bg);
  padding: clamp(1.7rem, 2.4vw, 2.3rem);
  text-decoration: none;
  color: inherit;
  transition: background 0.4s;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 200px;
  position: relative;
}
.tile:hover { background: var(--bg-2); }
.tile h3 {
  color: var(--ivory);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.tile p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  flex-grow: 1;
}
.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: auto;
}
.tile-arrow svg { transition: transform 0.25s; }
.tile:hover .tile-arrow svg { transform: translateX(4px); }

/* ===== ABOUT ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-side {
  position: sticky;
  top: 7rem;
}
.about-side .eyebrow { margin-bottom: 1.1rem; }
.about-side-mark {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 1.2rem 0;
}
.about-side p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.about-text p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
}
.about-text p.lead-quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ivory);
  letter-spacing: -0.005em;
  margin-bottom: 2rem;
}
.about-text p.lead-quote .accent { color: var(--gold-warm); }
.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.credential-row span { display: inline-flex; align-items: center; gap: 0.55rem; }
.credential-row span::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.7em;
}

/* ===== VISION ===== */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.vision-head { position: sticky; top: 7rem; }
.vision-head .eyebrow { margin-bottom: 1rem; }
.vision-head h2 { margin-bottom: 1.3rem; }
.vision-head h2 .accent { color: var(--gold-warm); }
.vision-head .lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 38ch;
}
.vision-list { display: flex; flex-direction: column; }
.vision-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.vision-item:first-child { padding-top: 0; }
.vision-item:last-child { border-bottom: none; }
.vision-icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.vision-item h4 {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  font-weight: 500;
  margin-bottom: 0.55rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.vision-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== SERVICES (full list) ===== */
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 50px minmax(180px, 1fr) minmax(0, 2.4fr) minmax(140px, auto);
  gap: 2rem;
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
}
.service > * { min-width: 0; }
.service-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.4rem;
}
.service-title h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ivory);
}
.service-desc {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
  justify-content: flex-end;
}
.tag {
  font-size: 0.7rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-weight: 500;
}

/* ===== WHY ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.why-card {
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(15, 38, 29, 0.45), rgba(15, 38, 29, 0.08));
  transition: transform 0.3s, border-color 0.3s;
}
.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.why-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 1.05rem;
  color: var(--gold);
}
.why-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.why-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== APPROACH ===== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.principle {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.principle:last-child { border-bottom: none; }
.principle-num {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 600;
}
.principle h4 {
  font-size: 1.22rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.018em;
}
.principle p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ===== STATS ===== */
.stats { padding: clamp(2rem, 4vw, 3rem) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 2.1rem 1.6rem;
  text-align: left;
  transition: background 0.3s;
}
.stat:hover { background: var(--bg-2); }
.stat-num {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.stat-num .unit { font-size: 0.55em; opacity: 0.85; margin-left: 0.05em; }
.stat-label {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ===== CTA STRIP — wide enough headlines ===== */
.cta-strip {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(212, 162, 76, 0.05), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.cta-inner h2 {
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.cta-inner h2 .accent { color: var(--gold-warm); }
.cta-inner p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.7rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-block {
  padding: clamp(5.5rem, 8vw, 6.5rem) 0 clamp(3rem, 5vw, 4rem);
  text-align: center;
}
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-inner h1 {
  font-family: var(--serif);
  margin: 0.9rem auto 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.contact-inner h1 .accent { color: var(--gold-warm); }
.contact-lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.contact-email:hover {
  background: var(--gold);
  color: #0A1814;
  border-color: var(--gold);
  transform: translateY(-2px);
}
.contact-email .at { color: var(--gold); transition: color 0.3s; }
.contact-email:hover .at { color: #0A1814; }
.contact-meta {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: left;
}
.contact-meta strong {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* ===== LEADERSHIP ===== */
.leadership {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.leadership-inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.leadership-side .eyebrow { margin-bottom: 1.1rem; display: inline-block; }
.leadership-side-mark {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 1.2rem 0;
}
.leadership-side p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}
.founder {
  padding: 1.8rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(15, 38, 29, 0.45), rgba(15, 38, 29, 0.08));
  transition: border-color 0.3s;
}
.founder:hover { border-color: var(--line-strong); }
.founder-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem 1rem;
  margin-bottom: 0.9rem;
}
.founder-name h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
}
.founder-role {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.founder p {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.founder-link:hover { color: var(--gold-bright); }
.founder-link svg { width: 14px; height: 14px; }

/* ===== FOOTER (substantial) ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2.6rem;
}
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a, .footer-col li {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.5;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-brand p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 0 0.8rem;
  max-width: 32ch;
}
.footer-brand .footer-tagline {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: block;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.footer-bottom a {
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--gold-bright); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===== LEGAL PAGES (privacy / terms) ===== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0 4rem;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 2.4rem 0 0.9rem;
  color: var(--ivory);
  letter-spacing: -0.015em;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.legal-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content strong { color: var(--ivory); font-weight: 600; }
.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 162, 76, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.legal-content a:hover { text-decoration-color: var(--gold); }
.legal-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero h1 { max-width: none; }
}
@media (max-width: 900px) {
  /* Show hamburger, hide inline nav links — they become drawer */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 70; /* Above drawer (60) so the X stays clickable when open */
  }

  /* Mobile drawer: fully opaque, full-screen overlay.
     Now sits OUTSIDE the header in DOM, so it can truly cover the viewport. */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #07140F;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 0 2rem;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    z-index: 60;
    overflow-y: auto;
    transform: none;
    box-shadow: none;
    border: none;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
  }
  .nav-links a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.005em;
    visibility: visible;
    opacity: 1;
    background: transparent;
  }
  .nav-links a:first-child {
    border-top: 1px solid var(--line);
  }
  .nav-links a span { display: inline-block; }
  .nav-links a .nav-chev {
    display: inline-block;
    color: var(--muted-2);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
  }
  .nav-links a:hover { color: var(--gold-bright); }
  .nav-links a:hover .nav-chev { color: var(--gold); transform: translateX(2px); }
  .nav-links a.active { color: var(--gold); }
  .nav-links a.active .nav-chev { color: var(--gold); }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta {
    margin: 1.5rem 1.5rem 0;
    padding: 1rem 1.5rem;
    border: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold) !important;
    border-radius: 999px;
    color: var(--gold-bright);
    width: auto;
    justify-content: center;
  }
  .nav-links .nav-cta .nav-chev { display: none; }

  /* Backdrop not needed — full-width drawer covers everything below nav */
  .nav-backdrop { display: none; }

  .hero-logo { max-width: 62vw; }
  .logo-img { height: 44px; }

  /* Mobile hero: compact, content-first. Pulls everything up so the
     subtitle, CTAs, and start of next section are visible above the fold. */
  .hero {
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-art { order: -1; }
  .hero-meta {
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
    line-height: 1.12;
    max-width: 18ch;
  }
  .hero-sub {
    text-align: center;
    max-width: 46ch;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .hero-actions, .hero-tag { justify-content: center; }
  .hero-tag { max-width: 100%; padding-top: 0.9rem; margin-top: 0.2rem; }

  .eyebrow { font-size: 0.7rem; }

  /* On home page mobile, push hamburger to right since logo is hidden */
  body.page-home .nav-toggle { margin-left: auto; }

  /* Mobile home: nav transparent at top of scroll (no visible header bar
     when there's nothing in it) so hero content sits high on the viewport.
     When user scrolls, nav gets .scrolled class and becomes visible. */
  body.page-home .nav:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }
  body.page-home .hero {
    padding-top: 2rem;
  }

  .tiles-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-side { position: static; }
  .vision-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .vision-head { position: static; }
  .vision-item { grid-template-columns: 32px 1fr; gap: 1rem; }
  .vision-icon { width: 22px; height: 22px; }
  .service { grid-template-columns: 38px 1fr; gap: 1rem; }
  .service-icon { width: 24px; height: 24px; margin-top: 0.3rem; }
  .service-desc, .service-tags { grid-column: 2 / -1; }
  .service-tags { justify-content: flex-start; margin-top: 0.5rem; }
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Leadership stacks on mobile */
  .leadership-inner { grid-template-columns: 1fr; gap: 1.6rem; }

  /* Footer stacks on mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0.7rem 1.25rem; }
  .logo-img { height: 42px; }
  .stat { padding: 1.5rem 1.2rem; }
  .contact-email { font-size: 0.95rem; padding: 0.85rem 1.3rem; flex-wrap: wrap; justify-content: center; }
}
