/* ============================================================
   CANDOR — Design System
   Palette: Midnight & Brass  |  Type: Fraunces + Hanken Grotesk
   One source of truth. Change a token here, it changes everywhere.
   ============================================================ */

/* -------------------- SELF-HOSTED VARIABLE FONTS -------------------- */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 600;font-display:swap;src:url('fonts/fraunces.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 500;font-display:swap;src:url('fonts/fraunces-italic.woff2') format('woff2');}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url('fonts/hanken.woff2') format('woff2');}
@font-face{font-family:'Hanken Grotesk';font-style:italic;font-weight:300 700;font-display:swap;src:url('fonts/hanken-italic.woff2') format('woff2');}

/* -------------------- DESIGN TOKENS -------------------- */
:root {
  /* Brand colour system — edit these to retheme the whole site */
  --midnight:      #0B1A2B;   /* primary deep ink-navy */
  --midnight-2:    #112D45;   /* raised panel on dark */
  --midnight-3:    #0E2236;   /* mid layer */
  --brass:         #B5894C;   /* warm brass accent (sparingly) */
  --brass-soft:    #C9A66B;   /* lighter brass for hovers/lines */
  --brass-deep:    #9A7235;   /* pressed brass */
  --ivory:         #F5F1E8;   /* warm light background */
  --paper:         #FCFAF4;   /* card surface on ivory */
  --ink:           #1B2129;   /* charcoal body text on light */
  --slate:         #59626E;   /* muted secondary text */
  --slate-light:   #8A929C;   /* faint captions */

  /* Derived / utility */
  --line-dark:     rgba(245, 241, 232, 0.14);  /* hairlines on dark */
  --line-light:    rgba(27, 33, 41, 0.12);     /* hairlines on light */
  --brass-line:    rgba(181, 137, 76, 0.45);
  --ivory-dim:     rgba(245, 241, 232, 0.72);
  --ivory-faint:   rgba(245, 241, 232, 0.52);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* Spacing rhythm */
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --maxw: 1200px;
  --maxw-narrow: 760px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 76px;
}

/* -------------------- RESET / BASE -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* -------------------- TYPE SCALE -------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--slate);
  font-weight: 400;
}

/* Eyebrow / label — the "candor" voice marker */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--brass);
  display: inline-block;
}
.on-dark .eyebrow, .dark .eyebrow { color: var(--brass-soft); }

/* -------------------- LAYOUT -------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }

.dark {
  background: var(--midnight);
  color: var(--ivory);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--ivory); }
.dark .lead { color: var(--ivory-dim); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head p { color: var(--slate); font-size: 1.1rem; }
.dark .section-head p { color: var(--ivory-dim); }
.section-head.center .eyebrow { justify-content: center; }

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brass);
  color: var(--midnight);
}
.btn-primary:hover {
  background: var(--brass-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(181,137,76,0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-light);
}
.dark .btn-ghost { color: var(--ivory); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-deep); }
.dark .btn-ghost:hover { color: var(--brass-soft); border-color: var(--brass); }

.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with brass underline grow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--brass-deep);
  position: relative;
}
.dark .link-arrow { color: var(--brass-soft); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s var(--ease);
}
.link-arrow:hover::after { width: calc(100% - 1.3rem); }
.link-arrow .arrow { transition: transform 0.35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* -------------------- NAV -------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245, 241, 232, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-light);
}
/* On dark hero pages the nav starts transparent over midnight */
.nav-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ivory);
  transition: color 0.4s var(--ease);
}
.brand-word .dot { color: var(--brass-soft); }
.nav.scrolled .brand-word { color: var(--ink); }
.nav.scrolled .brand-word .dot { color: var(--brass-deep); }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ivory-dim);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav.scrolled .nav-links a { color: var(--slate); }
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--brass);
}
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.nav-cta .btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }

/* Mobile menu */
.nav-toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 110; }
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ivory); transition: all 0.4s var(--ease);
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 3px; }
body.menu-open .nav-toggle span { background: var(--ivory); }
body.menu-open .nav-toggle span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--midnight);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--ivory);
  padding: 0.45rem 0;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a .num {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--brass-soft); opacity: 0.8;
}
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.12s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.18s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.24s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.30s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.36s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.42s; }
.mobile-menu a:hover { color: var(--brass-soft); }
.mobile-menu .mm-cta { margin-top: 2.5rem; }

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--midnight);
  color: var(--ivory);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(181,137,76,0.10), transparent 55%),
    radial-gradient(90% 60% at 10% 100%, rgba(17,45,69,0.9), transparent 60%),
    var(--midnight);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
  background-size: 100% clamp(3rem, 6vw, 5rem);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.hero .container { position: relative; z-index: 2; }
.hero h1, .hero h2 { color: var(--ivory); }
.hero .lead { color: var(--ivory-dim); }
.hero .lead em { color: var(--brass-soft); font-style: italic; }
.hero-eyebrow { margin-bottom: 1.75rem; }
.hero h1 { margin-bottom: 1.75rem; max-width: 16ch; }
.hero .lead { max-width: 52ch; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-faint);
}
.hero-scroll .bar { width: 1px; height: 38px; background: var(--brass-line); position: relative; overflow: hidden; }
.hero-scroll .bar::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--brass-soft); animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { top: -50%; } 100% { top: 100%; } }

/* -------------------- CARDS -------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -28px rgba(11,26,43,0.4);
  border-color: var(--brass-line);
}
.dark .card {
  background: var(--midnight-2);
  border-color: var(--line-dark);
}
.dark .card:hover { box-shadow: 0 24px 50px -24px rgba(0,0,0,0.6); }

.card-index {
  font-family: var(--serif);
  font-size: 0.95rem; color: var(--brass-deep);
  letter-spacing: 0.05em;
}
.dark .card-index { color: var(--brass-soft); }
.card h3 { margin: 0.9rem 0 0.7rem; }
.card p { color: var(--slate); font-size: 0.98rem; }
.dark .card p { color: var(--ivory-dim); }
.card .card-foot { margin-top: 1.4rem; }

/* Serve card (program types) */
.serve-card {
  display: flex; flex-direction: column;
  min-height: 260px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 3px;
  transition: all 0.5s var(--ease);
  position: relative; overflow: hidden;
}
.serve-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--brass); transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.serve-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(11,26,43,0.4); }
.serve-card:hover::before { transform: scaleY(1); }
.serve-card .label { font-family: var(--serif); font-size: 0.9rem; color: var(--brass-deep); letter-spacing: 0.04em; }
.serve-card h3 { margin: 0.7rem 0 0.6rem; }
.serve-card p { color: var(--slate); font-size: 0.96rem; flex-grow: 1; }
.serve-card .link-arrow { margin-top: 1.3rem; }

/* -------------------- STAT STRIP -------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.5rem 0.5rem; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  height: 56%; width: 1px; background: var(--line-dark);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1; color: var(--brass-soft);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-num .suffix { font-size: 0.55em; }
.stat-label {
  margin-top: 0.8rem; font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ivory-dim);
}

/* -------------------- THE CANDOR LEDGER (signature) -------------------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-dark); border-radius: 3px; overflow: hidden; }
.ledger-col { padding: clamp(1.8rem, 4vw, 3rem); }
.ledger-col.them { background: transparent; }
.ledger-col.us { background: var(--midnight-2); border-left: 1px solid var(--brass-line); position: relative; }
.ledger-col.us::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brass);
}
.ledger-tag {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 1.6rem; display: block;
}
.ledger-col.them .ledger-tag { color: var(--ivory-faint); }
.ledger-col.us .ledger-tag { color: var(--brass-soft); }
.ledger-item { display: flex; gap: 0.9rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line-dark); align-items: flex-start; }
.ledger-item:last-child { border-bottom: none; }
.ledger-item .ico { flex-shrink: 0; margin-top: 0.15rem; width: 18px; height: 18px; }
.ledger-col.them .ledger-item { color: var(--ivory-faint); }
.ledger-col.us .ledger-item { color: var(--ivory); }
.ledger-item span { font-size: 0.98rem; line-height: 1.5; }

/* Redaction reveal — the brass bar that wipes away to expose the truth */
.redact {
  position: relative; display: inline-block;
  color: var(--brass-soft); font-style: italic;
  white-space: nowrap;
}
.redact::after {
  content: ""; position: absolute; inset: -1px -3px;
  background: var(--brass); border-radius: 1px;
  transform: scaleX(1); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.redact.revealed::after { transform: scaleX(0); transform-origin: right; }

/* -------------------- HOW IT WORKS -------------------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line-light);
  align-items: start;
}
.dark .step { border-color: var(--line-dark); }
.step:last-child { border-bottom: 1px solid var(--line-light); }
.dark .step:last-child { border-color: var(--line-dark); }
.step-num {
  font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--brass); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.step-body h3 { margin-bottom: 0.7rem; }
.step-body p { color: var(--slate); max-width: 56ch; }
.dark .step-body p { color: var(--ivory-dim); }

/* -------------------- TESTIMONIALS -------------------- */
.quote-card {
  background: var(--paper); border: 1px solid var(--line-light);
  padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 3px;
  display: flex; flex-direction: column; height: 100%;
}
.dark .quote-card { background: var(--midnight-2); border-color: var(--line-dark); }
.quote-mark { font-family: var(--serif); font-size: 3rem; line-height: 0.5; color: var(--brass); height: 1.5rem; }
.quote-card blockquote {
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.5;
  color: var(--ink); margin: 1.3rem 0 1.8rem; flex-grow: 1; font-style: italic;
}
.dark .quote-card blockquote { color: var(--ivory); }
.quote-author { display: flex; align-items: center; gap: 0.9rem; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--midnight-2), var(--brass-deep));
  display: grid; place-items: center; color: var(--ivory);
  font-family: var(--serif); font-size: 1.1rem; flex-shrink: 0;
}
.quote-meta strong { font-weight: 600; font-size: 0.95rem; display: block; }
.quote-meta span { font-size: 0.84rem; color: var(--slate); }
.dark .quote-meta span { color: var(--ivory-faint); }

/* -------------------- CTA BAND -------------------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1.2rem; }
.cta-band .lead { max-width: 50ch; margin: 0 auto 2.3rem; }
.cta-glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(181,137,76,0.16), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

/* -------------------- FOOTER -------------------- */
.footer { background: var(--midnight); color: var(--ivory); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand-word { color: var(--ivory); font-size: 1.7rem; }
.footer-brand p { color: var(--ivory-dim); font-size: 0.95rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brass-soft); margin-bottom: 1.3rem;
}
.footer-col a { display: block; color: var(--ivory-dim); font-size: 0.95rem; padding: 0.35rem 0; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; padding: 2rem 0; }
.footer-bottom p { color: var(--ivory-faint); font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: grid; place-items: center; transition: all 0.35s var(--ease);
}
.footer-social a:hover { border-color: var(--brass); background: var(--brass); }
.footer-social a:hover svg { stroke: var(--midnight); }
.footer-social svg { width: 17px; height: 17px; stroke: var(--ivory-dim); transition: stroke 0.35s var(--ease); }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,0.55);
  transition: transform 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }

/* -------------------- FORM -------------------- */
.form-wrap { background: var(--paper); border: 1px solid var(--line-light); border-radius: 4px; padding: clamp(1.8rem, 4vw, 3rem); }
.dark .form-wrap { background: var(--midnight-2); border-color: var(--line-dark); }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.5rem; color: var(--ink); }
.dark .field label { color: var(--ivory); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line-light); border-radius: 2px;
  padding: 0.85rem 1rem; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.dark .field input, .dark .field select, .dark .field textarea {
  background: var(--midnight); color: var(--ivory); border-color: var(--line-dark);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(181,137,76,0.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { 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' stroke='%23B5894C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-micro { text-align: center; font-size: 0.85rem; color: var(--slate); margin-top: 1.2rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.dark .form-micro { color: var(--ivory-faint); }
.form-micro svg { width: 14px; height: 14px; stroke: var(--brass); }

/* Confirmation */
.form-success { display: none; text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; }
.form-success.show { display: block; animation: fadeUp 0.7s var(--ease); }
.success-mark {
  width: 64px; height: 64px; margin: 0 auto 1.6rem; border-radius: 50%;
  border: 1.5px solid var(--brass); display: grid; place-items: center;
}
.success-mark svg { width: 30px; height: 30px; stroke: var(--brass); }
.form-success h3 { margin-bottom: 0.8rem; }
.form-success p { color: var(--slate); max-width: 40ch; margin: 0 auto; }
.dark .form-success p { color: var(--ivory-dim); }

/* -------------------- FOUNDER / ABOUT -------------------- */
.profile { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.profile-photo {
  aspect-ratio: 4/5; background: var(--midnight-2);
  border: 1px solid var(--line-light); border-radius: 4px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.profile-photo .ph-label { color: var(--ivory-faint); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 1rem; }
.profile-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(181,137,76,0.12));
}
.profile-school { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem; border: 1px solid var(--brass-line); border-radius: 100px; font-size: 0.82rem; font-weight: 600; color: var(--brass-deep); margin-bottom: 1.5rem; }
.profile-body h1 { margin-bottom: 0.4rem; }
.profile-role { font-size: 1.05rem; color: var(--brass-deep); font-weight: 600; margin-bottom: 1.8rem; }
.profile-body p { color: var(--slate); margin-bottom: 1.2rem; }
.profile-body .placeholder { color: var(--brass-deep); background: rgba(181,137,76,0.08); border-left: 2px solid var(--brass); padding: 0.6rem 1rem; font-style: italic; font-size: 0.95rem; display: block; margin: 1.2rem 0; border-radius: 0 2px 2px 0; }

/* -------------------- PAGE HEADER (interior pages) -------------------- */
.page-head { background: var(--midnight); color: var(--ivory); padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.page-head .hero-grid-lines { opacity: 0.35; }
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { margin: 1.4rem 0 1.2rem; max-width: 18ch; }
.page-head p { color: var(--ivory-dim); font-size: 1.15rem; max-width: 56ch; }

/* -------------------- BLOG -------------------- */
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-light); border-radius: 3px; overflow: hidden; transition: all 0.5s var(--ease); height: 100%; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(11,26,43,0.4); border-color: var(--brass-line); }
.post-thumb { aspect-ratio: 16/10; background: var(--midnight-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.post-thumb .pt-cat { position: absolute; top: 1rem; left: 1rem; background: var(--brass); color: var(--midnight); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 2px; z-index: 2; }
.post-thumb .pt-glyph { font-family: var(--serif); font-size: 4rem; color: var(--brass-line); }
.post-body { padding: clamp(1.4rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--slate-light); margin-bottom: 0.8rem; }
.post-card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; line-height: 1.18; }
.post-card p { color: var(--slate); font-size: 0.95rem; flex-grow: 1; }
.post-card .link-arrow { margin-top: 1.3rem; }

/* -------------------- TIER CARDS -------------------- */
.tier { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-light); border-radius: 4px; padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; transition: all 0.5s var(--ease); height: 100%; }
.tier.featured { background: var(--midnight); color: var(--ivory); border-color: var(--brass); }
.tier.featured h3, .tier.featured h4 { color: var(--ivory); }
.tier:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,26,43,0.5); }
.tier-badge { position: absolute; top: -1px; right: 1.6rem; background: var(--brass); color: var(--midnight); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: 0 0 3px 3px; }
.tier-name { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 0.5rem; }
.tier-for { font-size: 0.9rem; color: var(--slate); margin-bottom: 1.5rem; min-height: 2.7rem; }
.tier.featured .tier-for { color: var(--ivory-dim); }
.tier-price { font-family: var(--serif); font-size: 1.3rem; color: var(--brass-deep); padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-light); }
.tier.featured .tier-price { color: var(--brass-soft); border-color: var(--line-dark); }
.tier ul { display: flex; flex-direction: column; gap: 0.85rem; flex-grow: 1; margin-bottom: 1.8rem; }
.tier li { display: flex; gap: 0.7rem; font-size: 0.95rem; line-height: 1.45; align-items: flex-start; }
.tier li svg { flex-shrink: 0; width: 17px; height: 17px; stroke: var(--brass); margin-top: 0.2rem; }
.tier.featured li svg { stroke: var(--brass-soft); }

/* Service list (core services) */
.svc-list { columns: 2; column-gap: 3rem; }
.svc-list li { break-inside: avoid; padding: 0.9rem 0; border-bottom: 1px solid var(--line-light); display: flex; gap: 0.8rem; align-items: flex-start; }
.dark .svc-list li { border-color: var(--line-dark); }
.svc-list li .n { font-family: var(--serif); color: var(--brass-deep); font-size: 0.85rem; flex-shrink: 0; min-width: 1.8rem; }
.dark .svc-list li .n { color: var(--brass-soft); }
.svc-list li strong { font-weight: 600; display: block; font-size: 0.98rem; }
.svc-list li span.d { font-size: 0.88rem; color: var(--slate); }
.dark .svc-list li span.d { color: var(--ivory-faint); }

/* Principles (about) */
.principle { padding: clamp(1.8rem, 4vw, 2.6rem) 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.dark .principle { border-color: var(--line-dark); }
.principle:last-child { border-bottom: 1px solid var(--line-light); }
.dark .principle:last-child { border-color: var(--line-dark); }
.principle-mark { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); color: var(--brass); line-height: 1; }
.principle h3 { margin-bottom: 0.7rem; }
.principle p { color: var(--slate); max-width: 60ch; }
.dark .principle p { color: var(--ivory-dim); }

/* -------------------- SCROLL REVEAL -------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { position: relative; top: 0; max-width: 380px; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-col.us { border-left: none; border-top: 1px solid var(--brass-line); }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat:nth-child(2)::after, .stat:last-child::after { display: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .svc-list { columns: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .tier.featured { order: -1; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* -------------------- A11Y / MOTION -------------------- */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .redact::after { transform: scaleX(0) !important; }
}


/* ===================================================================
   PREMIUM LAYER
   =================================================================== */

/* Typographic refinement */
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .tier-name, .brand-word { text-wrap: balance; }
p, .lead { text-wrap: pretty; }
[data-count], .stat-figure { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Brass text selection */
::selection { background: var(--brass); color: var(--paper); }
::-moz-selection { background: var(--brass); color: var(--paper); }

/* Subtle custom scrollbar (desktop pointers only) */
@media (pointer:fine) {
  html { scrollbar-color: var(--brass-deep) var(--midnight); }
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--midnight); }
  ::-webkit-scrollbar-thumb { background: var(--brass-deep); border-radius: 10px; border: 3px solid var(--midnight); }
  ::-webkit-scrollbar-thumb:hover { background: var(--brass); }
}

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-soft)); transition: width .08s linear; pointer-events: none; }

/* Film-grain over dark sections — escapes the flat 'digital' look */
.hero, .page-head, .cta-band.dark, section.dark { position: relative; }
.hero::after, .page-head::after, .cta-band.dark::after, section.dark::after {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:1; opacity:.42;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size:160px 160px; mix-blend-mode:soft-light; }
.hero .container, .page-head .container, .cta-band .container, section.dark .container { position: relative; z-index: 3; }

/* Cross-page View Transitions (Chromium MPA; degrades to instant elsewhere) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtOut .26s ease both; }
  ::view-transition-new(root) { animation: vtIn .34s ease both; }
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(8px); } }

/* Sticky mobile action bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none;
  gap: .6rem; padding: .7rem .9rem; background: rgba(11,26,43,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark); }
.mobile-cta .btn { flex: 1; justify-content: center; }
.mobile-cta .wa-mini { flex: 0 0 auto; width: 48px; display: grid; place-items: center; border-radius: 8px; background: #25b157; }
.mobile-cta .wa-mini svg { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 66px; }
  body.no-mobile-cta { padding-bottom: 0; }
  body.no-mobile-cta .mobile-cta { display: none; }
}

/* FAQ accordion (native <details>, fully accessible) */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-light); padding: 1.15rem 0; }
.faq details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1.2rem; font-family: var(--serif); font-size: clamp(1.05rem,2vw,1.25rem); color: var(--ink); }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary .ind { flex: 0 0 auto; width: 20px; height: 20px; position: relative; transition: transform .35s var(--ease); }
.faq details summary .ind::before, .faq details summary .ind::after { content:""; position:absolute; background: var(--brass); border-radius: 2px; }
.faq details summary .ind::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq details summary .ind::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: opacity .35s var(--ease); }
.faq details[open] summary .ind { transform: rotate(180deg); }
.faq details[open] summary .ind::after { opacity: 0; }
.faq details .faq-a { color: var(--slate); margin-top: .85rem; max-width: 70ch; line-height: 1.7; font-size: .98rem; }
.faq details .faq-a a { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ===================================================================
   MOBILE HARDENING — phone-first polish (most visitors arrive via ads)
   =================================================================== */
@media (max-width: 760px) {
  /* Tighten the airy vertical rhythm so value isn't buried below dead space */
  :root { --section-y: clamp(3rem, 8vw, 4.25rem); --gutter: 1.4rem; }

  /* HERO: top-align instead of centring — fills the first screen with the pitch,
     not empty navy. The single biggest mobile fix. */
  .hero { min-height: auto; align-items: flex-start;
    padding-top: calc(var(--nav-h) + 1.05rem); padding-bottom: 2.4rem; }
  .hero-eyebrow { margin-bottom: 1rem; }
  .hero h1 { margin-bottom: 1.05rem; }
  .hero .lead { margin-bottom: 1.5rem; }
  .hero-scroll { display: none; }                 /* decorative; collided with sticky bar */
  .hero-actions { gap: .7rem; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* PAGE HEADS: same dead-space fix */
  .page-head { padding-top: calc(var(--nav-h) + 1.2rem); padding-bottom: clamp(2rem, 7vw, 2.75rem); }
  .page-head h1 { margin: .85rem 0 .95rem; }
  .page-head p { font-size: 1.05rem; }

  /* Thumb-friendly buttons + tighter heads */
  .btn { padding: .85rem 1.25rem; font-size: .95rem; }
  .section-head { margin-bottom: 1.9rem; }
  .section-head p { font-size: 1.02rem; }

  /* CTA bands a touch tighter on phones */
  .cta-band h2 { margin-bottom: .9rem; }
  .cta-band .lead { margin-bottom: 1.6rem; }
  .cta-band .btn, .cta-band a.btn { width: 100%; justify-content: center; }
}

/* Very small phones: keep the headline from dominating the screen */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(2.05rem, 11.5vw, 2.7rem); }
}

/* Sticky mobile bar: respect the iPhone home-indicator safe area */
.mobile-cta { padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.no-mobile-cta { padding-bottom: 0; }
}

/* Mobile-menu CTA must not inherit the huge menu-link font-size */
.mobile-menu .mm-cta {
  margin-top: 2rem; width: 100%;
  font-size: 1rem; justify-content: center;
  padding: 1rem 1.25rem; border-bottom: none; white-space: nowrap;
}
/* Hide the sticky action bar while the full-screen menu is open */
body.menu-open .mobile-cta { display: none; }

/* ===================================================================
   MOBILE PERFORMANCE — remove GPU-heavy effects that cause scroll jank
   on real phones (invisible in screenshots, very visible on a device)
   =================================================================== */
@media (max-width: 760px) {
  /* Film grain = SVG turbulence + soft-light blend repainting on scroll.
     Gorgeous on desktop, a stutter source on phones. Off for mobile. */
  .hero::after, .page-head::after, .cta-band.dark::after, section.dark::after { display: none !important; }

  /* backdrop-filter blur on fixed layers stutters during momentum scroll.
     Use solid, fully-opaque backgrounds instead — reliable and crisp. */
  .nav.scrolled { background: var(--ivory); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--line-light); }
  .mobile-cta { background: var(--midnight); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Page transitions: opacity-only crossfade (no transform → no jump/flash on mobile) */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtFadeOut .2s ease both; }
  ::view-transition-new(root) { animation: vtFadeIn .26s ease both; }
}
@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtFadeIn  { from { opacity: 0; } }
