/* =========================================================================
   Buckeye Private Lending — marketing site
   Monochrome editorial: near-black/charcoal on white, one restrained gold accent.
   Type voices: Playfair Display (display serif) + Montserrat (geometric sans).
   Tokens are approximate per docs/brand-brief.md §8 — confirm before launch.
   ========================================================================= */

:root {
  --ink:        #1A1A1A;   /* primary text, logo */
  --charcoal:   #3A3A3A;   /* secondary text */
  --white:      #FFFFFF;
  --offwhite:   #FAF9F7;   /* subtle alt section background */
  --line:       #D9D9D9;   /* rules, dividers, borders */
  --muted:      #8A8A8A;   /* muted labels */
  --gold:       #B8985A;   /* single accent */
  --gold-soft:  #CDB587;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 2px;
  --header-h: 76px;
}

/* ---------------------------------------------------- reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }   /* honor the hidden attr even when a class sets display */
strong { font-weight: 600; }

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

/* accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0; top: -100%; z-index: 200;
  background: var(--ink); color: var(--white); padding: .65rem 1rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* shared accent / typographic devices */
.eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 1.1rem;
}
.eyebrow-light { color: var(--gold-soft); }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--gold); vertical-align: middle; margin-right: .7rem; }

.section-heading {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.01em;
  max-width: 18ch;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--charcoal); max-width: 60ch; margin-top: 1.1rem; }
.lead-serif { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.3; }
.muted-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 1.5rem; }
.gold { color: var(--gold); }
.gold-underline { position: relative; white-space: nowrap; }
.gold-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em;
  height: 4px; background: var(--gold);
}
.rule { height: 1px; background: var(--line); margin: clamp(2.5rem, 6vw, 4.5rem) 0 2.2rem; }
.placeholder { color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------- buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .95rem 1.9rem; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .6rem 1.2rem; font-size: .72rem; }
.btn-block { display: block; width: 100%; }

/* ---------------------------------------------------- header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 14px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 42px; color: var(--ink); flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; letter-spacing: .14em; font-size: 1.02rem; }
.brand-sub { font-weight: 500; letter-spacing: .32em; font-size: .55rem; color: var(--charcoal); margin-top: 3px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav-menu a { font-size: .82rem; font-weight: 500; letter-spacing: .03em; color: var(--charcoal); }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-menu .nav-cta-item a { color: var(--white); }
.nav-menu .nav-cta-item a:hover { color: var(--white); }

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

/* ---------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  /* warm wash fading to white at the fold, plus one restrained gold glow */
  background:
    radial-gradient(50% 45% at 86% 4%, rgba(184,152,90,.14), rgba(184,152,90,0) 70%),
    linear-gradient(180deg, #F3F1EC 0%, #FFFFFF 78%);
}
.hero::before { /* faint dot texture, masked so it's strongest up top and fades out */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(26,26,26,.05) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 75% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-heading {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.015em; margin: 0 0 1.6rem;
}
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--charcoal); max-width: 56ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.risk-note {
  font-size: .85rem; color: var(--muted); max-width: 62ch; line-height: 1.6;
  border-left: 2px solid var(--line); padding-left: 1rem; margin: 0;
}
.risk-note-light { color: rgba(255,255,255,.7); border-left-color: rgba(255,255,255,.25); margin-top: 2.5rem; }

/* ---------------------------------------------------- sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--offwhite); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-heading { color: var(--white); }

/* ---------------------------------------------------- cards grid */
.cards { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); }
.card-bordered { border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.card-bordered:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-kicker { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 .8rem; }
.card-stat { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.05; margin: 0 0 .9rem; font-weight: 600; }
.card-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 .55rem; }
.card-body { color: var(--charcoal); font-size: .95rem; margin: 0; }
/* Font Awesome Pro duotone-light icons, inlined as SVG and colored by layer */
.icon { display: inline-block; height: 40px; width: auto; margin-bottom: 1.2rem; }
.icon .fa-primary { fill: var(--ink); }
.icon .fa-secondary { fill: var(--gold); opacity: 1; }

/* ---------------------------------------------------- checklist */
.checklist { display: grid; gap: 1rem; max-width: 70ch; }
.checklist li { position: relative; padding-left: 2rem; color: var(--charcoal); }
.checklist li::before { /* small gold diamond — decorative marker, not an expand chevron */
  content: ""; position: absolute; left: 1px; top: .58em; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------------------------------------------------- steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2rem, 5vw, 3.5rem); counter-reset: step; }
.step { position: relative; }
.step-num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; margin-bottom: .4rem; }
.step-title { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; margin: 0 0 .6rem; }
.step-body { color: var(--charcoal); margin: 0; }

/* getting-started flow — numbered step diagram */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .5rem; }
.flow-step {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .9rem; padding: 0 .75rem;
}
.flow-step::after { /* connector line to the next step */
  content: ""; position: absolute; top: 22px; left: 50%; right: -50%;
  height: 2px; background: var(--line); z-index: 0;
}
.flow-step:last-child::after { display: none; }
.flow-dot {
  position: relative; z-index: 1; flex: none;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--gold); background: var(--white);
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
}
.flow-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.45rem); }

/* ---------------------------------------------------- roles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.role { background: var(--white); padding: 1.8rem 1.4rem; transition: background .2s ease; }
.role:hover { background: var(--offwhite); }
.role-icon {
  display: block; width: 28px; height: 28px; margin-bottom: 1.1rem;
  fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.role-who { display: block; font-weight: 600; margin-bottom: .3rem; }
.role-what { display: block; color: var(--charcoal); font-size: .92rem; }
.role-accent { background: var(--ink); }
.role-accent:hover { background: var(--ink); }
.role-accent .role-icon { stroke: var(--gold-soft); }
.role-accent .role-who { color: var(--white); }
.role-accent .role-what { color: var(--gold-soft); }

/* ---------------------------------------------------- pillars (dark section) */
.pillar { border-top: 2px solid var(--gold); padding-top: 1.4rem; }
.pillar-num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; margin: 0 0 .8rem; }
.pillar-title { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin: 0 0 .7rem; color: var(--white); }
.pillar-body { color: rgba(255,255,255,.78); margin: 0; }

/* ---------------------------------------------------- stats / track record */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.stat { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1; }
.stat-label { display: block; color: var(--charcoal); font-size: .9rem; margin-top: .6rem; }
.footnote { font-size: .82rem; color: var(--muted); margin-top: 1.2rem; }

/* ---------------------------------------------------- team bios */
.bio { display: flex; gap: 1.4rem; align-items: flex-start; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--white);
  font-family: var(--serif); font-size: 1.3rem; letter-spacing: .02em;
}
.bio-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 .25rem; }
.bio-role { color: var(--gold); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0 0 1rem; }
.bio-text { color: var(--charcoal); font-size: .95rem; }
.bio-contact { font-size: .9rem; margin: 0; }
.bio-contact a { font-weight: 500; }
.dot { color: var(--line); margin: 0 .4rem; }

/* ---------------------------------------------------- photography
   NOTE: the Team **headshots** now use these slots (grayscale, no gold wash).
   The larger lifestyle slots (Team band, Contact candid) are still pulled from
   the markup — retained for the real Fox-in-the-Snow shots to come; see
   docs/photo-shot-list.md.

   Monochrome / warm-duotone treatment keeps photos inside the palette.
   Real photos drop into these slots and inherit the toning automatically:
   shoot in B&W or warm low-saturation — grayscale + a faint gold multiply
   wash unify whatever lands in the frame. Slots are sized to fixed aspect
   ratios so any photo crops predictably (object-fit: cover). */
.photo-frame {
  position: relative; overflow: hidden; margin: 0;
  background: var(--offwhite); border-radius: var(--radius);
}
.photo-frame > .photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) contrast(1.03);
}
.photo-frame::after { /* warm gold wash + a soft floor vignette → duotone feel */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(155deg, rgba(184,152,90,.18), rgba(184,152,90,0) 55%),
    linear-gradient(0deg, rgba(26,26,26,.12), rgba(26,26,26,0) 42%);
  mix-blend-mode: multiply;
}
/* Opt-out: when an image is already color-graded in post, add `is-graded` to the
   frame so the CSS treatment doesn't double up. <figure class="...photo-frame is-graded"> */
.photo-frame.is-graded > .photo { filter: none; }
.photo-frame.is-graded::after { display: none; }

/* team — environmental two-shot band between the heading and the bios */
.team-band { aspect-ratio: 5 / 2; margin-top: clamp(2rem, 5vw, 3.2rem); }

/* team — headshots replace the monogram avatars (clean grayscale, no gold wash) */
.avatar-photo { width: 88px; height: 88px; border-radius: 50%; background: var(--offwhite); }
.avatar-photo::after { display: none; }

/* contact — candid conversation shot anchoring the intro column */
.contact-photo { aspect-ratio: 3 / 2; max-width: 460px; margin-top: 2.4rem; }

/* ---------------------------------------------------- contact */
.section-contact { background: var(--offwhite); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; }
.contact-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { font-family: var(--serif); font-size: 1.25rem; }

.lead-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .45rem; }
.optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B4322C; }
.field textarea { resize: vertical; }
.form-status { font-size: .9rem; margin: 1rem 0 0; min-height: 1.2em; }
.form-status.ok { color: #2E6B43; }
.form-status.err { color: #B4322C; }
.form-disclaimer { font-size: .78rem; color: var(--muted); margin: 1rem 0 0; line-height: 1.55; }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: progress; }

/* confirmation panel shown in place of the form after a successful send */
.form-sent {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem); align-self: start;
  display: flex; flex-direction: column; gap: .9rem;
}
.form-sent:focus { outline: none; }
.form-sent:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-sent-check { width: 52px; height: 52px; color: var(--gold); }
.form-sent-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin: 0; }
.form-sent-body { color: var(--charcoal); margin: 0; max-width: 46ch; }

/* ---------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 2rem; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-sub { color: rgba(255,255,255,.6); }
.footer-tag { font-size: .85rem; margin: 1rem 0 0; color: rgba(255,255,255,.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-content: start; }
.footer-nav a { color: rgba(255,255,255,.75); font-size: .85rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.disclosure { font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 95ch; }
.disclosure .placeholder { color: var(--gold-soft); }
.copyright { font-size: .78rem; color: rgba(255,255,255,.45); margin: 1.2rem 0 0; }

/* ---------------------------------------------------- responsive */
@media (max-width: 860px) {
  .cards-3, .steps, .stats, .roles { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem; box-shadow: 0 12px 24px rgba(0,0,0,.06);
    transform: translateY(-110%); transition: transform .26s ease; visibility: hidden;
  }
  .nav-menu.open { transform: translateY(0); visibility: visible; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: 1rem .25rem; font-size: .95rem; }
  .nav-menu .nav-cta-item { margin-top: .9rem; }
  .nav-menu .nav-cta-item a { display: inline-block; padding: .8rem 1.4rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-3, .cards-2, .steps, .stats { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .bio { flex-direction: column; gap: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  /* let section headlines run the full width instead of a narrow column */
  .section-heading { max-width: none; }
  /* stack the getting-started diagram vertically with a connecting line */
  .flow { grid-template-columns: 1fr; gap: .25rem; }
  .flow-step { flex-direction: row; align-items: center; text-align: left; gap: 1.1rem; padding: .55rem 0; }
  .flow-step::after { top: 50%; left: 21px; right: auto; width: 2px; height: 100%; }
  /* taller crop so the two-shot still reads on a phone (faces, not a sliver) */
  .team-band { aspect-ratio: 4 / 3; }
}
