/* ==========================================================
   FOUNDATION HOME LOANS — site stylesheet
   dark gradient panels, warm off-white body, gold as accent only
   gold is never structural: black and near-white do the work
   ----------------------------------------------------------
   Replaces the mockups' inline styles. Every value here came
   from assets/tokens.css or the measured mockups; nothing was
   re-invented. Load order: this file only. No !important.
   ========================================================== */

/* ================= TOKENS ================= */
:root{
  /* brand gold */
  --gold-hi:#EBCE97; --gold-mid:#C08B36; --gold-lo:#7A4A1E;
  --gold:#B8802C;                  /* flat gold: rules, underlines, icon strokes, masks.
                                      NON-TEXT ONLY — it is 3.1:1 on paper, which fails AA
                                      for anything under 24px. */
  --gold-text:#8A5F1F;             /* gold for TEXT on light surfaces — 5.6:1 on white */
  --gold-grad:linear-gradient(135deg,#EBCE97 0%,#C08B36 45%,#7A4A1E 100%);
  /* Known, accepted exception: white 14.5px labels on this ramp measure 3.2:1 at
     the gradient midpoint and 1.5:1 at the #EBCE97 highlight end, so they clear
     the 3:1 UI/large-text threshold but not 4.5:1 for normal-size text. Kept
     deliberately — it is the approved brand button. See README. */

  /* dark surfaces */
  --ink:#1A1815;                   /* warm near-black */
  --panel:#0D0C0B;                 /* header ground */
  --panel-grad:linear-gradient(150deg,#0B0A09 0%,#141110 42%,#3B2714 100%);
  --panel-alt:#161512;
  --line-dark:#26231F;
  --rule-dark:#4A453E;             /* ghost-button edge — NOT #26231F, invisible on the hero */

  /* light surfaces */
  --paper:#FCFBF9; --card:#FFFFFF; --line:#E6E3DD;
  --tint:#F6F3ED; --tint-line:#EAE3D5; --tint-gold:#FBF4E7;

  /* type on dark */
  --on-dark:#FFFFFF; --on-dark-mu:#A8A5A0; --on-dark-dim:#8A8A8A;
  --on-dark-fine:#918C84;          /* legal fine print — 5.3:1. Do not darken. */

  /* type on light */
  --on-light:#1A1815; --on-light-mu:#5B5852; --on-light-dim:#6F6D68;  /* was #8A8A8A = 3.45:1 */

  /* fields */
  --field-bg:#FBFAF8; --field-line:#DEDAD3; --field-ph:#9C978E;

  --font:'Archivo','Helvetica Neue',system-ui,-apple-system,sans-serif;

  /* type scale — the mockups' literal sizes, made fluid at the top end */
  --t-h1:clamp(34px,1.6rem + 2.4vw,50px);
  --t-h2:clamp(25px,1.35rem + 1.1vw,31px);
  --t-h3:clamp(19px,1.15rem + .35vw,23px);
  --t-card:17.5px; --t-body:15px; --t-sm:13.5px; --t-xs:12.5px;
  --t-fine:11px;                   /* consent + legal. Deliberately not 9.5px. */
  --t-micro:11.5px;

  /* geometry */
  --gutter:clamp(20px,5vw,80px);
  --stack:clamp(48px,7vw,72px);
  --wrap:1280px;
  --r:11px; --r-sm:7px; --r-lg:12px;
  --hdr-h:84px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);background:var(--paper);color:var(--on-light);
     -webkit-font-smoothing:antialiased;font-size:var(--t-body);line-height:1.6}
img,svg{max-width:100%}
img{height:auto}
a{color:var(--gold-text);text-decoration:none}
a:hover{color:#6E4A18}
/* blockquote and figure carry a UA margin of 1em 40px. Left in, it inset every
   review card 40px inside its grid track and turned the 20px gap into 100px. */
h1,h2,h3,h4,p,blockquote,figure,dl,dd{margin:0;text-wrap:pretty}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;top:0;z-index:200;background:#fff;color:var(--ink);
      padding:12px 18px;border-radius:0 0 var(--r-sm) 0;font-weight:600}
.skip:focus{left:0}

/* ================= LAYOUT PRIMITIVES ================= */
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.sec{padding:var(--stack) 0}
.sec-tight{padding:calc(var(--stack)*.62) 0}
.sec-head{display:flex;flex-direction:column;gap:13px;margin-bottom:34px}
.sec-head p{font-size:var(--t-body);line-height:1.7;max-width:620px;color:var(--on-light-mu)}

h1{font-size:var(--t-h1);line-height:1.09;font-weight:700;letter-spacing:-.022em}
h2{font-size:var(--t-h2);line-height:1.16;font-weight:700;letter-spacing:-.012em}
h3{font-size:var(--t-h3);font-weight:700;letter-spacing:-.01em}

/* the heading device: second phrase gold, on a gold underline */
.hl{color:var(--gold);border-bottom:3px solid var(--gold);padding-bottom:2px}
h1 .hl{border-bottom-width:4px;padding-bottom:4px}

.eyebrow{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;
  padding:7px 14px;border-radius:100px;border:1px solid #3A352E;
  font-size:var(--t-fine);letter-spacing:.1em;color:var(--gold);text-transform:uppercase}
.eyebrow-l{border-color:var(--tint-line);background:var(--tint-gold)}

/* dark panel, with a fine noise overlay so the large gradient can't band on 8-bit displays */
.panel{position:relative;overflow:hidden;background:var(--panel-grad);color:var(--on-dark)}
.panel::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E")}
.panel>*{position:relative;z-index:1}
.panel h1,.panel h2,.panel h3{color:var(--on-dark)}
.panel p{color:var(--on-dark-mu)}

/* page banner — gold accent bar left of the heading */
.banner{padding:calc(var(--stack)*.72) 0}
.banner .bar{display:flex;gap:18px;align-items:stretch}
.banner .bar::before{content:"";flex:0 0 4px;border-radius:2px;background:var(--gold-grad)}
.banner p{margin-top:11px;max-width:620px;font-size:var(--t-body);line-height:1.7}
.crumb{font-size:var(--t-xs);color:var(--on-dark-dim);margin-bottom:18px}
.crumb a{color:var(--on-dark-mu)}
.crumb a:hover{color:#fff}
.crumb span{padding:0 7px;color:#7A736A}

/* ================= BUTTONS ================= */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:48px;
  padding:0 26px;border-radius:var(--r-sm);font-family:inherit;font-size:14.5px;font-weight:600;
  letter-spacing:.02em;cursor:pointer;border:0;transition:filter .16s,transform .16s,background .16s;
  text-align:center;white-space:nowrap}
.btn-gold{background:var(--gold-grad);color:#fff}
.btn-gold:hover{filter:brightness(1.09);color:#fff}
.btn-ghost{background:transparent;color:#fff;border:1px solid var(--rule-dark)}
.btn-ghost:hover{background:rgba(255,255,255,.06);color:#fff;border-color:#6A6459}
.btn-ghost-l{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn-ghost-l:hover{background:var(--tint);color:var(--ink)}
.btn-lg{height:52px;padding:0 32px;font-size:15.5px}
.btn-block{width:100%}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}

/* ================= HEADER ================= */
.hdr{position:sticky;top:0;z-index:100;background:var(--panel);
     border-bottom:1px solid var(--line-dark)}
.hdr-in{height:var(--hdr-h);display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;flex-shrink:0}
.brand img{width:196px;display:block}
.hdr-l{display:flex;align-items:center;gap:42px;min-width:0}
.hdr-r{display:flex;align-items:center;gap:20px;flex-shrink:0}
.nav{display:flex;gap:22px;align-items:center}
.nav a{font-size:var(--t-xs);font-weight:500;color:#C9C5BD;white-space:nowrap;padding:6px 0;
       border-bottom:2px solid transparent}
.nav a:hover{color:#fff}
.nav a[aria-current="page"]{color:#fff;border-bottom-color:var(--gold)}
.hdr-tel{display:flex;align-items:center;gap:9px;font-size:var(--t-body);font-weight:600;
         color:#fff;letter-spacing:.01em;white-space:nowrap}
.hdr-tel:hover{color:#fff}
.hdr .btn{height:44px;padding:0 22px;font-size:13px}
.burger{display:none;width:44px;height:44px;align-items:center;justify-content:center;
  background:transparent;border:1px solid var(--line-dark);border-radius:var(--r-sm);cursor:pointer}
.burger span{display:block;width:18px;height:2px;background:#fff;position:relative}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:18px;height:2px;background:#fff}
.burger span::before{top:-6px}.burger span::after{top:6px}

/* landing-page chrome — logo + phone only, no nav, nothing competing with the form */
.lp-hdr{background:var(--panel);border-bottom:1px solid var(--line-dark)}
.lp-hdr .hdr-in{height:72px}
.lp-hdr .brand img{width:176px}

/* ================= CARDS ================= */
.grid{display:grid;gap:20px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);
      padding:26px 26px 28px;display:flex;flex-direction:column;gap:13px}
.card h3{font-size:var(--t-card);font-weight:600;letter-spacing:0;color:var(--ink)}
.card p{font-size:var(--t-sm);line-height:1.65;color:var(--on-light-mu)}
.tile{width:44px;height:44px;border-radius:9px;background:var(--tint-gold);
      display:grid;place-items:center;flex-shrink:0}
.facts{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:15px;
        border-top:1px solid var(--line)}
.fact{display:flex;gap:9px;align-items:flex-start;font-size:var(--t-xs);line-height:1.55;
      color:var(--on-light-mu)}
.fact svg{flex-shrink:0;margin-top:3px}

/* ================= STEPS ================= */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px}
.step{display:flex;flex-direction:column;gap:11px}
.step-n{display:flex;align-items:center;gap:12px}
.step-n b{width:34px;height:34px;border-radius:50%;background:var(--gold-grad);display:grid;
  place-items:center;font-size:14px;font-weight:700;color:#fff;flex-shrink:0}
.step-n i{height:1px;flex-grow:1;background:var(--line)}
.step h3{font-size:16.5px;font-weight:600}
.step p{font-size:var(--t-sm);line-height:1.65;color:var(--on-light-mu)}

/* ================= PROGRAM CHIPS ================= */
.chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.chip{display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--card);
  border:1px solid var(--line);border-radius:var(--r-sm);padding:16px 18px}
.chip b{font-size:14.5px;font-weight:600;color:var(--ink)}
.chip i{font-style:normal;font-size:var(--t-xs);color:var(--gold-text);font-weight:600;white-space:nowrap}

/* ================= CAROUSEL (testimonials + team) ================= */
.car{position:relative}
.car-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding:4px 0 8px;scrollbar-width:none;-ms-overflow-style:none}
.car-track::-webkit-scrollbar{display:none}
.car-track>*{scroll-snap-align:start;flex:0 0 auto}
.car-ui{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}
.dots{display:flex;gap:2px;flex-wrap:wrap;margin-left:-9px}
/* the visible dot is 8px; the tappable box around it is 26x40 so it clears a
   thumb on a phone without changing how the control looks */
.dots button{width:26px;height:40px;padding:0;border:0;cursor:pointer;background:none;
  display:grid;place-items:center}
.dots button::before{content:"";width:8px;height:8px;border-radius:50%;background:#D8D4CC;
  transition:background .16s,width .16s}
.dots button[aria-current="true"]::before{background:var(--gold);width:22px;border-radius:4px}
.arrows{display:flex;gap:8px}
.arrows button{width:40px;height:40px;border-radius:50%;background:var(--card);
  border:1px solid var(--line);display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.arrows button:hover{background:var(--tint)}
.arrows button:disabled{opacity:.35;cursor:default}

.quote{flex-basis:calc((100% - 40px) / 3);min-width:0;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:28px;display:flex;flex-direction:column;gap:15px}
.quote p{font-size:14.5px;line-height:1.7;color:var(--on-light-mu)}
.quote h2,.quote h3{color:var(--ink)}
.quote footer{display:flex;flex-direction:column;gap:3px;margin-top:auto;padding-top:15px;
  border-top:1px solid var(--line)}
.quote cite{font-style:normal;font-size:var(--t-sm);font-weight:600;color:var(--ink)}
.quote small{font-size:var(--t-fine);color:var(--on-light-dim)}
.rate{display:flex;gap:2px;color:var(--gold)}

.member{flex-basis:196px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.member img{width:100%;aspect-ratio:27/40;object-fit:cover;object-position:center top;display:block;
  background:var(--tint)}
.member-b{padding:16px 17px 18px;display:flex;flex-direction:column;gap:3px;flex-grow:1}
.member b{font-size:15px;font-weight:600;color:var(--ink);letter-spacing:-.01em}
.member .role{font-size:var(--t-xs);color:var(--on-light-mu);line-height:1.45}
.member .nmls{font-size:var(--t-fine);color:var(--on-light-dim);letter-spacing:.04em;margin-top:5px}
.member .cts{display:flex;flex-direction:column;gap:2px;margin-top:9px;padding-top:11px;
  border-top:1px solid var(--line);font-size:var(--t-fine)}
.member .cts a{color:var(--gold-text);word-break:break-word}

/* badge strip */
.badges{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.badges img{width:104px;height:auto}
.badges-d{gap:12px}
.badges-d img{width:auto;height:40px;background:#fff;border-radius:7px;padding:6px 9px}

/* ================= FORM ================= */
.form-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:32px;display:flex;flex-direction:column;gap:22px;box-shadow:0 30px 70px -40px rgba(10,9,8,.5)}
/* the form itself has to be a flex column too, or its children get no gap at all */
.form-card form{display:flex;flex-direction:column;gap:20px}
.form-card form>.consent{margin-top:2px}
.form-card h2{font-size:23px;font-weight:700;color:var(--ink)}
.form-card h3{color:var(--ink)}
.form-card p,.form-card .lede{font-size:var(--t-sm);line-height:1.6;color:var(--on-light-mu)}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.f{display:flex;flex-direction:column;gap:6px}
.f-full{grid-column:1/-1}
.f label{font-size:var(--t-xs);font-weight:600;color:var(--ink);letter-spacing:.01em}
.f .req{color:var(--gold-text)}
.f input,.f select,.f textarea{height:46px;padding:0 13px;font-family:inherit;font-size:14.5px;
  color:var(--ink);background:var(--field-bg);border:1px solid var(--field-line);
  border-radius:var(--r-sm);width:100%}
.f textarea{height:auto;padding:12px 13px;min-height:92px;resize:vertical;line-height:1.6}
.f input::placeholder{color:var(--field-ph)}
.f input:focus,.f select:focus,.f textarea:focus{border-color:var(--gold);background:#fff;
  outline:none;box-shadow:0 0 0 3px rgba(184,128,44,.13)}
.f input:user-invalid,.f select:user-invalid{border-color:#B4442C}
.err{font-size:var(--t-fine);color:#B4442C}
.err:empty{display:none}
.consent{display:flex;gap:9px;align-items:flex-start}
.consent input{width:15px;height:15px;flex-shrink:0;accent-color:var(--gold);cursor:pointer;
  /* centre it on the first line's box rather than its top edge */
  margin:calc((1.6em - 15px) / 2) 0 0}
.consent label{font-size:var(--t-fine);line-height:1.6;color:var(--on-light-mu);cursor:pointer;
  padding:3px 0}
.consent label b{color:var(--ink)}
.consent label a{text-decoration:underline;text-underline-offset:2px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-card form>.hp{position:absolute}
.form-fine{font-size:var(--t-fine);line-height:1.55;color:var(--on-light-dim)}
.form-ok{display:none;flex-direction:column;gap:12px;text-align:center;padding:14px 0}
.form-ok.on{display:flex}

/* ================= FOOTER ================= */
.ft{background:var(--ink);color:var(--on-dark);padding:56px 0 30px}
.ft-grid{display:grid;grid-template-columns:1.5fr repeat(4,minmax(0,1fr));gap:34px}
.ft-brand{display:flex;flex-direction:column;gap:14px}
.ft-brand img{width:210px}
.ft-brand p{font-size:var(--t-xs);line-height:1.65;color:var(--on-dark-mu);max-width:290px}
.ft-nmls{font-size:var(--t-fine);letter-spacing:.05em;color:var(--on-dark-fine)}
.ft-col h3{font-size:var(--t-fine);font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  color:#fff;margin-bottom:14px}
.ft-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.ft-col a,.ft-col span{font-size:var(--t-xs);color:var(--on-dark-mu);line-height:1.5}
.ft-col a:hover{color:#fff}
.ft-rule{height:1px;background:var(--line-dark);margin:38px 0 22px}
.ft-legal{font-size:var(--t-fine);line-height:1.7;color:var(--on-dark-fine);max-width:1000px;
  display:flex;flex-direction:column;gap:9px}
.ft-bot{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;
  margin-top:22px}
.ft-bot small{font-size:var(--t-fine);color:var(--on-dark-fine)}
.ft-soc{display:flex;gap:10px}
.ft-soc a{width:32px;height:32px;border-radius:50%;border:1px solid var(--line-dark);
  display:grid;place-items:center;color:var(--on-dark-mu)}
.ft-soc a:hover{color:#fff;border-color:var(--rule-dark)}

/* slim footer for the landing / funnel / thank-you pages */
.lp-ft{background:var(--ink);color:var(--on-dark-fine);padding:30px 0}
.lp-ft .nap{display:flex;gap:8px 26px;flex-wrap:wrap;font-size:var(--t-xs);color:var(--on-dark-mu);
  padding-bottom:16px;border-bottom:1px solid var(--line-dark);margin-bottom:16px}
.lp-ft .nap b{color:#fff;font-weight:600}
.lp-ft p{font-size:var(--t-fine);line-height:1.7;color:var(--on-dark-fine);margin-bottom:8px}
.lp-ft a{color:var(--on-dark-mu)}
.lp-ft a:hover{color:#fff}

/* ================= LEGAL PAGES ================= */
.legal{max-width:760px}
.legal .meta{font-size:var(--t-fine);letter-spacing:.06em;text-transform:uppercase;
  color:var(--on-light-dim);margin-bottom:26px}
.legal h2{font-size:20px;margin:38px 0 12px}
.legal h2:first-of-type{margin-top:0}
.legal p{font-size:14.5px;line-height:1.78;color:var(--on-light-mu);margin-bottom:14px}
.legal ul{margin:0 0 16px;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.legal li{font-size:14.5px;line-height:1.7;color:var(--on-light-mu)}
.legal .toc{background:var(--tint);border:1px solid var(--tint-line);border-radius:var(--r);
  padding:22px 24px;margin-bottom:34px}
.legal .toc h2{font-size:var(--t-fine);letter-spacing:.11em;text-transform:uppercase;
  color:var(--on-light-mu);margin:0 0 12px;font-weight:700}
.legal .toc ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.legal .toc a{font-size:var(--t-sm)}
.notice{background:var(--tint-gold);border:1px solid var(--tint-line);border-left:3px solid var(--gold);
  border-radius:var(--r-sm);padding:16px 18px;margin-bottom:30px;font-size:var(--t-sm);
  line-height:1.65;color:var(--on-light-mu)}
.notice b{color:var(--ink)}

/* ================= RESPONSIVE ================= */
@media(max-width:1080px){
  .ft-grid{grid-template-columns:1fr 1fr 1fr;gap:30px}
  .ft-brand{grid-column:1/-1}
}
@media(max-width:960px){
  .g4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav,.hdr-tel{display:none}
  .burger{display:flex}
  .hdr-l{gap:0}
  .nav.open{display:flex;position:absolute;left:0;right:0;top:var(--hdr-h);flex-direction:column;
    align-items:stretch;gap:0;background:var(--panel);border-bottom:1px solid var(--line-dark);
    padding:8px var(--gutter) 18px}
  .nav.open a{padding:13px 0;border-bottom:1px solid var(--line-dark);font-size:15px}
  .nav.open a[aria-current="page"]{border-bottom-color:var(--gold)}
}
@media(max-width:860px){
  .g3,.steps,.chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quote{flex-basis:min(82vw,392px)}
}
@media(max-width:640px){
  .g2,.g3,.g4,.steps,.chips{grid-template-columns:minmax(0,1fr)}
  .ft-grid{grid-template-columns:1fr 1fr}
  .form-card{padding:24px}
  .btn{width:100%}
  .btn-row{flex-direction:column}
  .hdr .btn{width:auto}
}
@media(max-width:460px){
  .ft-grid{grid-template-columns:1fr}
  .brand img{width:158px}
  .member{flex-basis:min(70vw,196px)}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
  .car-track{scroll-behavior:auto}
}

/* ==========================================================
   PAGE-SPECIFIC — appended so the port stays one stylesheet
   ========================================================== */

/* ================= HERO (home) ================= */
.hero{padding:calc(var(--stack)*1.02) 0 calc(var(--stack)*1.1)}
.hero-in{display:grid;grid-template-columns:1.08fr .92fr;gap:56px;align-items:center}
.hero-c{display:flex;flex-direction:column;gap:22px}
.hero-c p.lede{font-size:16px;line-height:1.7;max-width:500px;color:var(--on-dark-mu)}
.hero-fine{font-size:var(--t-micro);color:var(--on-dark-dim)}
.hero-fine a{color:var(--on-dark-mu);text-decoration:underline;text-underline-offset:2px}

/* ================= GET STARTED (lead capture) ================= */
.lp-hero{padding:calc(var(--stack)*.9) 0 calc(var(--stack)*1.05)}
.lp-in{display:grid;grid-template-columns:1.02fr .98fr;gap:52px;align-items:start}
.lp-c{display:flex;flex-direction:column;gap:22px}
.lp-c p.lede{font-size:16px;line-height:1.7;max-width:480px;color:var(--on-dark-mu)}
.lp-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.lp-list li{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;line-height:1.6;
  color:var(--on-dark-mu)}
.lp-list li svg{flex-shrink:0;margin-top:4px}
.lp-list b{color:#fff;font-weight:600}

/* ================= FUNNEL ================= */
.fn-body{background:var(--panel)}
.fn{position:relative;min-height:560px;display:flex;align-items:center;
  padding:clamp(38px,6vh,64px) 0 clamp(46px,7vh,72px);overflow:hidden}
/* mid-tone photo layer, then a 0.60 -> 0.80 dark-to-bronze wash. Higher and the photo vanishes. */
/* Source is 2.4:1, near the band's own aspect, so `cover` barely crops it and the
   treatment stays even at any width. image-set gives big monitors the 2400px file
   and leaves laptops on the 201 KB one. Light grayscale only — this photograph is
   warm and the warmth is what makes it sit with the gold. */
.fn-ph{position:absolute;inset:0;background-size:cover;background-position:center 45%;
  filter:grayscale(.18) contrast(.96);
  background-image:url("../img/photo/funnel-bg-1600.jpg");
  background-image:image-set(url("../img/photo/funnel-bg-1600.jpg") 1x,
                             url("../img/photo/funnel-bg-2400.jpg") 2x)}
/* 170deg is all but vertical, so the treatment is identical at every screen
   width — the old 118deg diagonal made the left edge dark and the right edge
   bronze, which looked like a bug on wide monitors. Density stays inside the
   0.60-0.86 band: above ~0.86 the photograph disappears entirely. */
.fn-wash{position:absolute;inset:0;
  background:linear-gradient(170deg,rgba(11,10,9,.85) 0%,rgba(20,17,16,.84) 52%,rgba(59,39,20,.83) 100%)}
.fn-in{position:relative;z-index:1;width:100%;max-width:680px;margin:0 auto}
.fn-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.fn-bar span{font-size:var(--t-fine);letter-spacing:.12em;text-transform:uppercase;
  color:var(--on-dark-fine)}
.fn-prog{height:4px;border-radius:2px;background:rgba(255,255,255,.13);overflow:hidden;
  margin-bottom:32px}
.fn-prog i{display:block;height:100%;border-radius:2px;background:var(--gold-grad);
  transition:width .32s ease}
.fn-step{display:none;flex-direction:column;gap:22px}
.fn-step.on{display:flex}
.fn-step h2{font-size:clamp(24px,1.3rem + 1.5vw,33px);line-height:1.18;color:#fff}
/* Lighter than --on-dark-mu on purpose. The wash's bronze end is higher-luminance
   than its near-black end, so it is the weakest point for small text over a bright
   pixel: the muted tone measured 3.36 there, this measures 4.8. Raising the wash
   opacity instead would have pushed past the 0.86 ceiling and killed the photo. */
.fn-step .sub{font-size:14.5px;line-height:1.65;color:#C9C5BD;max-width:520px}
.fn-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fn-opts.one{grid-template-columns:minmax(0,1fr)}
.fn-opt{display:flex;align-items:center;gap:13px;text-align:left;padding:17px 18px;
  background:rgba(11,10,9,.68);border:1px solid rgba(255,255,255,.24);border-radius:9px;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  color:#fff;font-family:inherit;font-size:15px;font-weight:500;cursor:pointer;
  transition:background .16s,border-color .16s}
.fn-opt:hover{background:rgba(11,10,9,.80);border-color:rgba(255,255,255,.42)}
.fn-opt[aria-pressed="true"]{background:rgba(59,39,20,.78);border-color:var(--gold-hi)}
.fn-opt i{font-style:normal;width:26px;height:26px;border-radius:6px;flex-shrink:0;
  background:rgba(255,255,255,.15);display:grid;place-items:center;font-size:var(--t-fine);
  font-weight:700;color:var(--gold-hi)}
.fn-opt em{font-style:normal;display:block;font-size:var(--t-fine);color:#D5D1C9;
  font-weight:400;margin-top:5px;line-height:1.4}
.fn-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fn-fields .f label{color:#fff}
.fn-fields .f input,.fn-fields .f select{background:rgba(11,10,9,.68);
  border-color:rgba(255,255,255,.22);color:#fff;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.fn-fields .f input::placeholder{color:#8A8A8A}
.fn-fields .f input:focus,.fn-fields .f select:focus{background:rgba(11,10,9,.84);
  border-color:var(--gold-hi);box-shadow:0 0 0 3px rgba(184,128,44,.28)}
.fn-fields .f select option{background:var(--panel-alt);color:#fff}
.fn-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:8px}
.fn-back{background:transparent;border:0;font-family:inherit;font-size:var(--t-sm);font-weight:600;
  color:var(--on-dark-mu);cursor:pointer;padding:10px 0;display:inline-flex;align-items:center;gap:7px}
.fn-back:hover{color:#fff}
.fn-back[hidden]{visibility:hidden;display:inline-flex}
.fn-fine{font-size:var(--t-fine);line-height:1.6;color:#C9C5BD;margin-top:6px}

/* ================= THANK YOU ================= */
.ty{padding:calc(var(--stack)*1.05) 0}
/* Wide enough for "Thank you - we've got it" to hold one line at the 50px h1;
   the paragraph is capped separately so its reading measure stays comfortable. */
.ty-in{max-width:800px;margin:0 auto;text-align:center;display:flex;flex-direction:column;
  gap:20px;align-items:center}
.ty-in h1{max-width:none}
.ty-in p.lede{max-width:620px}
.ty-ok{width:62px;height:62px;border-radius:50%;background:rgba(184,128,44,.14);
  border:1px solid rgba(184,128,44,.45);display:grid;place-items:center}
.ty-in p.lede{font-size:16px;line-height:1.72;color:var(--on-dark-mu)}
.ty-next{width:100%;text-align:left;background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.1);border-radius:var(--r-lg);padding:24px 26px;
  display:flex;flex-direction:column;gap:16px;margin-top:8px}
.ty-next h2{font-size:var(--t-fine);font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  color:var(--on-dark-mu)}
.ty-item{display:flex;gap:14px;align-items:flex-start}
.ty-item b{width:26px;height:26px;border-radius:50%;background:var(--gold-grad);flex-shrink:0;
  display:grid;place-items:center;font-size:var(--t-fine);font-weight:700;color:#fff}
.ty-item div{font-size:14px;line-height:1.6;color:var(--on-dark-mu)}
.ty-item strong{color:#fff;font-weight:600;display:block;margin-bottom:2px;font-size:14.5px}

@media(max-width:900px){
  .hero-in,.lp-in{grid-template-columns:minmax(0,1fr);gap:40px}
}
@media(max-width:560px){
  .fn-opts,.fn-fields{grid-template-columns:minmax(0,1fr)}
  .fn{min-height:0}
}

/* ================= MASKED TICKS =================
   The checklist tick appears ~60 times per page. As inline SVG that is ~60
   copies of the same path in the HTML; as a mask it is one gradient-free
   background and zero extra markup. Same for the funnel option ticks. */
.tick{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6'/%3E%3C/svg%3E");
  display:inline-block;width:14px;height:14px;flex-shrink:0;background:var(--gold);
  -webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.tick-lg{width:17px;height:17px}
.fact .tick{margin-top:3px}
.lp-list .tick{margin-top:4px}
.stars{display:inline-flex;gap:3px}
.stars i{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5 4.7 1.3 6.8L12 17.3 5.9 20.6 7.2 13.8l-5-4.7 6.9-.8z'/%3E%3C/svg%3E");
  width:13px;height:13px;background:var(--gold);
  -webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}

/* ================= PROGRAM DETAIL + TABLE ================= */
.prog{scroll-margin-top:calc(var(--hdr-h) + 20px)}
.prog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.prog-dp{flex-shrink:0;font-size:var(--t-fine);font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--gold-text);background:var(--tint-gold);
  border:1px solid var(--tint-line);border-radius:100px;padding:6px 12px;white-space:nowrap}
.tbl-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--card)}
table.tbl{width:100%;border-collapse:collapse;min-width:620px}
table.tbl th,table.tbl td{text-align:left;padding:14px 18px;font-size:var(--t-sm);
  border-bottom:1px solid var(--line);vertical-align:top}
table.tbl thead th{font-size:var(--t-fine);font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--on-light-mu);background:var(--tint);white-space:nowrap}
table.tbl tbody th{font-weight:600;color:var(--ink);white-space:nowrap}
table.tbl td{color:var(--on-light-mu)}
table.tbl tbody tr:last-child th,table.tbl tbody tr:last-child td{border-bottom:0}
/* Own class, not the hero card's .dp — sharing it meant this rule had to null out
   background/border/padding, which also killed the cell's own vertical padding and
   its border-bottom (the row divider). Inherit the td styling and only set type. */
table.tbl td.dp-cell{font-weight:700;color:var(--gold-text);white-space:nowrap}
.tbl-cap{font-size:var(--t-fine);line-height:1.6;color:var(--on-light-dim);margin-top:12px}

/* licensing panel */
.lic{background:var(--tint);border:1px solid var(--tint-line);border-radius:var(--r);padding:28px 30px;
  display:flex;flex-direction:column;gap:14px}
.lic h3{font-size:var(--t-fine);font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  color:var(--on-light-mu)}
.lic dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:9px 22px;font-size:var(--t-sm)}
.lic dt{font-weight:600;color:var(--ink);white-space:nowrap}
.lic dd{margin:0;color:var(--on-light-mu)}
@media(max-width:520px){.lic dl{grid-template-columns:1fr;gap:2px 0}
  .lic dd{margin-bottom:8px}}

/* ================= HERO MEDIA =================
   Real FHL photography from the install's media library. The hero photo is the
   LCP element, so it is preloaded with fetchpriority=high in functions.php and
   is never lazy. The floating card carries two verifiable facts about the firm rather than
   programme percentages, which are floors and not promises. */
.hero-media{position:relative;isolation:isolate}
.hero-media img{width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center 32%;
  border-radius:var(--r-lg);display:block;background:#2A251E}
.hero-stats{position:absolute;left:-20px;bottom:-22px;display:flex;gap:24px;
  background:rgba(11,10,9,.88);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r);padding:15px 20px;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* Capped so the two long labels wrap onto a second line. Without the cap each
   column sized to its label on one line and the card grew wider than the
   photograph it is supposed to sit inside. */
.hero-stats div{display:flex;flex-direction:column;gap:2px;max-width:122px}
/* nowrap matters here: each item is a flex column whose width comes from its
   widest non-wrapping child. The labels are nowrap, so without this the VALUE
   wrapped to fit the label — "IN & KY" broke across two lines because "LICENSED"
   is narrower than it is, while the two longer labels hid the problem. */
.hero-stats b{font-size:21px;font-weight:700;letter-spacing:-.015em;white-space:nowrap;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;line-height:1.15}
.hero-stats span{font-size:var(--t-fine);letter-spacing:.07em;text-transform:uppercase;
  color:var(--on-dark-mu);line-height:1.35}

/* a portrait photo alongside body copy (About, Programs) */
.media-side{border-radius:var(--r-lg);overflow:hidden;background:var(--tint)}
.media-side img{width:100%;height:auto;display:block}

.ft-eho{display:flex;align-items:center;gap:12px;margin-top:6px}
.ft-eho img{width:40px;height:auto;flex-shrink:0}
.ft-eho span{font-size:var(--t-fine);line-height:1.45;color:var(--on-dark-fine)}

@media(max-width:900px){
  .hero-stats{position:static;left:auto;bottom:auto;margin-top:14px;justify-content:space-between}
  .hero-media img{aspect-ratio:16/11}
}
/* Three nowrap labels need ~423px; the card is only as wide as the hero photo,
   which is 335px on a 375px screen. Left in a row the third stat was clipped
   out of sight (the card scrolled internally, so the page looked fine). Stack
   them into a two-column mini table instead. */
@media(max-width:560px){
  .hero-stats{flex-direction:column;gap:9px;justify-content:flex-start}
  .hero-stats div{flex-direction:row;align-items:baseline;gap:10px}
  .hero-stats div{max-width:none}
  .hero-stats b{font-size:18px;min-width:66px;white-space:nowrap}
}
@media(max-width:420px){
  .hero-stats{padding:13px 15px}
}

/* the step counter was the weakest line on the page — give it the muted tone
   rather than the fine-print tone */
.fn-bar span{color:#C9C5BD}

/* ================= SELECT CHEVRON =================
   The native arrow sits hard against the field's right edge with no way to
   nudge it, so swap it for our own and place it properly. Padding-right clears
   the glyph so a long option label can never collide with it. */
.f select{-webkit-appearance:none;appearance:none;padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1815' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 17px center;background-size:13px}
.f select::-ms-expand{display:none}

/* ================= MEDIA BAND =================
   A wide banner instead of a tall portrait: in a two-column section a 4:5
   portrait outweighs the copy beside it, while a ~2.2:1 band reads as support. */
.media-band{border-radius:var(--r-lg);overflow:hidden;background:var(--tint)}
.media-band img{width:100%;height:auto;display:block;aspect-ratio:1200/542;object-fit:cover}

/* ================= ABOUT: photo that fills its column =================
   The grid row stretches, so the photo matches whatever height the copy column
   ends up at — no guessing an aspect ratio that only works for one copy length. */
.media-fill{border-radius:var(--r-lg);overflow:hidden;background:var(--tint);min-height:320px}
.media-fill img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}
/* Below ~900px the copy column gets tall while the media column gets narrow, so
   filling the height turns a 1.3:1 photograph into a portrait slot — a punishing
   crop that also needs far more pixels than its width implies. Let it keep its
   own shape down there instead. */
@media(max-width:900px){
  .media-fill{min-height:0}
  .media-fill img{height:auto;aspect-ratio:1400/1080}
}

/* ================= OFFICE BAND ================= */
.office{background:var(--tint);border:1px solid var(--tint-line);border-radius:var(--r);
  padding:28px 30px}
/* The visible "OFFICE" label was redundant next to four labelled columns; the
   heading is kept for screen readers only, so it takes no vertical space. */
/* Equal 1fr tracks made the short Contact column trail a big hole before Hours.
   Content-sized columns with the leftover space spread between them keeps the
   visible gaps even regardless of how long each cell's text is. */
.office-grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px 44px}
.office-grid dl{margin:0;flex:0 1 auto;min-width:170px}
.office-grid dt{font-size:var(--t-fine);font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink);margin-bottom:7px}
.office-grid dd{margin:0;font-size:var(--t-sm);line-height:1.7;color:var(--on-light-mu)}
/* 4-up straight to 2-up. Left to itself the row wrapped 3+1 around 1024px,
   which stranded one cell on its own line with a 135px hole beside it. */
@media(max-width:1100px){
  .office-grid{justify-content:flex-start;gap:24px 48px}
  .office-grid dl{flex:0 1 calc(50% - 24px)}
}
@media(max-width:480px){
  .office-grid{gap:20px}
  .office-grid dl{flex:1 1 100%;min-width:0}
  .office{padding:24px 22px}
}

/* ================= FILL A TALL VIEWPORT =================
   Short pages left the body background showing below the footer on big screens.
   Sticky-footer flex pins the footer to the bottom; on the three landing pages
   the full-bleed panel takes the slack so it is the photograph/gradient that
   grows, not a strip of paper-coloured nothing. */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
/* Block themes wrap the whole template in div.wp-site-blocks, so <main> is a
   GRANDCHILD of body — targeting `body > main` silently matched nothing. The
   wrapper has to be the flex column that grows. */
body > .wp-site-blocks{flex:1 0 auto;display:flex;flex-direction:column;min-width:0}
.wp-site-blocks > main{flex:1 0 auto}

body.page-questions .wp-site-blocks > main,
body.page-thank-you .wp-site-blocks > main,
body.page-get-started .wp-site-blocks > main{display:flex;flex-direction:column}
body.page-questions .fn{flex:1 0 auto}
body.page-thank-you .ty,
body.page-get-started .lp-hero{flex:1 0 auto;display:flex;flex-direction:column;
  justify-content:center}
