/* Layout: dark private-bank page on a 12-col grid; Alaskan topographic contours drawn in WebGL behind the hero,
   type set like a financial journal, one champagne-gold accent reserved for actions and index marks. */
:root {
  --bg: #0A0C0F;
  --surface: #11151A;
  --surface-2: #161B21;
  --line: #222830;
  --fg: #ECE6DC;
  --muted: #9A948A;
  --dim: #5E6168;
  --accent: #C8A76A;
  --accent-deep: #8C7448;
  --on-accent: #14110B;

  --f-display: "Libre Caslon Display", "Big Caslon", "Iowan Old Style", Georgia, serif;
  --f-body: "Geist", "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1320px;
  --s-xs: clamp(.72rem, .7rem + .1vw, .78rem);
  --s-sm: clamp(.86rem, .83rem + .15vw, .94rem);
  --s-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --s-1: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --s-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --s-3: clamp(2.3rem, 1.6rem + 3vw, 4.2rem);
  --s-4: clamp(2.8rem, 1.6rem + 5.2vw, 6.4rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: var(--s-0); line-height: 1.6; font-weight: 380;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; font-feature-settings: "tnum"; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; color: var(--muted); margin: 0; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--s-3); }
em { font-style: italic; color: var(--accent); }
p { margin: 0; }
.muted { color: var(--muted); }
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; transform-origin: left; }

/* Buttons */
.btn {
  --pad: .95em 1.5em;
  position: relative; display: inline-flex; align-items: center; gap: .8em;
  padding: var(--pad); font: 500 var(--s-sm)/1 var(--f-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 1px solid var(--accent); color: var(--on-accent);
  background: var(--accent); overflow: hidden; isolation: isolate; transition: color .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--fg); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 28%, transparent); }
.btn--ghost::after { background: var(--accent); }
.btn--ghost:hover { color: var(--on-accent); border-color: var(--accent); }
.btn svg { width: 1em; height: 1em; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Progress + nav */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 60; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-size: 1.32rem; letter-spacing: .01em; }
.brand__team { color: var(--muted); margin-top: 3px; font-size: .64rem; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: var(--s-sm); color: var(--muted); position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { --pad: .75em 1.15em; }
@media (max-width: 900px) { .nav__links { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__gl { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 70% at 70% 45%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--bg); }
.hero__gl canvas { width: 100% !important; height: 100% !important; display: block; }
.hero::after { /* fade into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: end; gap: clamp(16px, 3vw, 48px); padding-top: 156px; }
.hero__copy { align-self: center; display: grid; gap: clamp(22px, 2.6vw, 34px); padding-bottom: clamp(40px, 8vh, 96px); min-width: 0; }
.hero__title { font-size: var(--s-4); }
.hero__title .hl { display: block; }
.hero__lede { max-width: 54ch; color: var(--muted); font-size: var(--s-1); line-height: 1.5; font-weight: 330; }
.hero__lede strong { color: var(--fg); font-weight: 450; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__portrait { position: relative; align-self: end; justify-self: center; width: min(100%, 560px); margin-bottom: -1px; }
.hero__portrait img { width: 100%; height: auto; filter: contrast(1.04) saturate(.94); }
.hero__portrait::before { /* rim glow behind the cutout */
  content: ""; position: absolute; inset: 8% 4% 0; z-index: -1;
  background: radial-gradient(50% 45% at 50% 38%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  filter: blur(10px);
}
.hero__tag {
  position: absolute; left: -6%; bottom: 18%; display: grid; gap: 4px;
  padding: 14px 18px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero__tag b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .01em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.hero__meta span { white-space: nowrap; }
.hero__foot { border-top: 1px solid var(--line); }
.hero__foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.coords { color: var(--dim); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 136px; }
  .hero__copy { padding-bottom: 8px; }
  .hero__portrait { width: min(88%, 420px); }
  .hero__tag { left: 0; bottom: 12%; }
  .coords { display: none; }
}

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; padding-block: 22px; }
.ticker__item { font-family: var(--f-display); font-size: var(--s-2); white-space: nowrap; color: var(--fg); }
.ticker__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 45%, transparent); }
.ticker__dot { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }

/* Pillars */
.pillars__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.pillars__head p { max-width: 46ch; justify-self: end; color: var(--muted); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: clamp(28px, 3vw, 44px) clamp(0px, 2vw, 32px) 8px 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pillar + .pillar { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.4vw, 36px); }
.pillar h3 { font-size: var(--s-2); }
.pillar p { color: var(--muted); max-width: 38ch; }
.pillar .mono { color: var(--accent); }
@media (max-width: 860px) {
  .pillars__head { grid-template-columns: 1fr; }
  .pillars__head p { justify-self: start; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* Programs */
.programs { background: linear-gradient(to bottom, var(--bg), var(--surface) 12%, var(--surface) 88%, var(--bg)); }
.programs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.programs__aside { position: sticky; top: 112px; display: grid; gap: 28px; }
.programs__aside h2 { font-size: var(--s-3); }
.programs__aside > p { color: var(--muted); max-width: 36ch; }
.cats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cats li { border-bottom: 1px solid var(--line); }
.cats a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; text-decoration: none; color: var(--muted); transition: color .3s, padding .4s var(--ease); }
.cats a .mono { color: var(--dim); transition: color .3s; }
.cats a:hover, .cats a.is-active { color: var(--fg); padding-left: 10px; }
.cats a.is-active .mono { color: var(--accent); }
.cat { scroll-margin-top: 100px; }
.cat + .cat { margin-top: clamp(64px, 8vw, 112px); }
.cat__head { display: grid; gap: 10px; margin-bottom: 18px; }
.cat__head h3 { font-size: var(--s-2); }
.cat__head p { color: var(--muted); max-width: 56ch; }
.prog {
  position: relative; display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 5.8fr); gap: 8px 32px;
  padding: 26px 0 26px; border-top: 1px solid var(--line);
}
.prog::before { /* gold rule that draws on hover */
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.prog:hover::before { transform: scaleX(1); }
.prog h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--s-1); line-height: 1.2; transition: transform .5s var(--ease); }
.prog:hover h4 { transform: translateX(8px); }
.prog__for { color: var(--accent); margin-top: 8px; display: block; }
.prog p { color: var(--muted); font-size: var(--s-sm); line-height: 1.65; }
.programs__note { margin-top: 40px; color: var(--dim); font-size: var(--s-xs); max-width: 70ch; }
@media (max-width: 960px) {
  .programs__grid { grid-template-columns: 1fr; }
  .programs__aside { position: static; }
  .prog { grid-template-columns: 1fr; }
}

/* Process */
.process { overflow: hidden; }
.process__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(36px, 5vw, 64px); padding-block: clamp(80px, 10vw, 120px); }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.process__head p { max-width: 40ch; color: var(--muted); }
.process__rail { position: relative; height: 1px; background: var(--line); margin-inline: var(--gutter); }
.process__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.steps { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; }
.step {
  width: clamp(280px, 30vw, 400px); flex: none; min-height: 300px; display: grid; align-content: space-between; gap: 40px;
  padding: clamp(24px, 2.4vw, 36px); background: var(--surface); border: 1px solid var(--line); position: relative;
}
.step__no { font-family: var(--f-display); font-size: clamp(3.4rem, 2.4rem + 3vw, 5.6rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.step h3 { font-size: var(--s-1); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 900px) {
  .process__pin { min-height: 0; }
  .steps { width: auto; flex-direction: column; }
  .step { width: auto; min-height: 0; }
  .process__rail { display: none; }
}

/* Calculator */
.calc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.calc__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.calc__head p { color: var(--muted); max-width: 46ch; justify-self: end; }
.fields { display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { color: var(--muted); }
.field output, .field .val { font-family: var(--f-mono); font-size: var(--s-sm); font-variant-numeric: tabular-nums; color: var(--fg); }
.num {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg);
  font: 400 var(--s-1)/1.3 var(--f-mono); font-variant-numeric: tabular-nums; padding: 6px 0 10px; border-radius: 0;
  transition: border-color .3s;
}
.num:focus { outline: none; border-color: var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6.5px; background: var(--bg); border: 1.5px solid var(--accent); transform: rotate(45deg); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--bg); border: 1.5px solid var(--accent); border-radius: 0; transform: rotate(45deg); }
.terms { display: flex; gap: 8px; }
.terms label { flex: 1; }
.terms input { position: absolute; opacity: 0; pointer-events: none; }
.terms span { display: block; text-align: center; padding: 10px 0; border: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--s-sm); color: var(--muted); cursor: pointer; transition: all .3s; }
.terms input:checked + span { border-color: var(--accent); color: var(--fg); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.terms input:focus-visible + span { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.result { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); display: grid; gap: 28px; position: sticky; top: 112px; }
.result__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.result__big { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 5.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.result__big small { font-family: var(--f-body); font-size: var(--s-sm); color: var(--muted); margin-left: 8px; }
.donut { width: clamp(110px, 12vw, 150px); height: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 10; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: var(--s-sm); }
.legend li span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.legend i { width: 9px; height: 9px; transform: rotate(45deg); }
.legend li.total { color: var(--fg); font-weight: 500; }
.result__fine { color: var(--dim); font-size: var(--s-xs); line-height: 1.6; }
@media (max-width: 960px) {
  .calc__head, .calc__grid { grid-template-columns: 1fr; }
  .calc__head p { justify-self: start; }
  .result { position: static; }
}

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.about__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--bg)); border: 1px solid var(--line); max-width: 100%; }
.about__photo img { position: absolute; left: -2%; top: -3%; width: 104%; height: auto; max-width: none; }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 55%, transparent), transparent 40%); pointer-events: none; }
.about__photo .mono { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: var(--fg); }
.about__copy { display: grid; gap: 26px; min-width: 0; }
.about__copy h2 { font-size: var(--s-3); }
.about__copy > p { color: var(--muted); max-width: 58ch; font-size: var(--s-1); line-height: 1.55; font-weight: 330; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; font-family: var(--f-display); font-size: var(--s-1); }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__photo { max-width: 460px; } }

/* Reviews */
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.review { border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 26px; align-content: space-between; min-height: 280px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: var(--s-1); line-height: 1.35; color: var(--muted); }
.review figcaption { display: grid; gap: 4px; }
.review figcaption span:first-child { color: var(--fg); }
.placeholder-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 6px 10px; }
.reviews__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } .review { min-height: 0; } }

/* Contact */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 90%; z-index: -1; background: radial-gradient(50% 50% at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.contact__title { font-size: var(--s-4); max-width: 14ch; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 8px; }
.form label > span { color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg);
  font: 400 var(--s-0)/1.4 var(--f-body); padding: 8px 0 12px; border-radius: 0; transition: border-color .3s;
}
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 6px top 55%, right 0 top 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { background: var(--surface); color: var(--fg); }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__done { grid-column: 1 / -1; padding: 22px 24px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.direct { display: grid; gap: 0; border-top: 1px solid var(--line); }
.direct > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.direct dt { color: var(--dim); }
.direct dd { margin: 0; font-family: var(--f-display); font-size: var(--s-2); line-height: 1.15; user-select: all; overflow-wrap: anywhere; }
.direct dd a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.direct dd a:hover { background-size: 100% 1px; }
@media (max-width: 900px) { .contact__grid, .form { grid-template-columns: 1fr; } }

/* Social links */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font: 400 var(--s-sm)/1 var(--f-body); transition: border-color .3s, color .3s; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 18px; height: 18px; flex: none; }
.direct dd.direct__social { font: inherit; user-select: auto; padding-top: 4px; }
.direct .social a { background: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 56px 40px; color: var(--muted); font-size: var(--s-sm); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__top h4 { margin: 0 0 12px; color: var(--fg); font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.footer__top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__top a { text-decoration: none; }
.footer__top a:hover { color: var(--fg); }
.footer__word { font-family: var(--f-display); font-size: clamp(3rem, 1rem + 9vw, 10rem); line-height: .9; color: var(--fg); letter-spacing: -.02em; margin: 40px 0 28px; overflow: hidden; }
.footer__word span { display: inline-block; }
.legal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; color: var(--dim); font-size: var(--s-xs); line-height: 1.7; }
.eho { width: 44px; height: auto; color: var(--muted); }
.legal p + p { margin-top: 8px; }
.legal a { color: var(--muted); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

/* Motion helpers */
/* Word masks for the slide-up reveal. The padding gives italic overhangs and descenders room inside the mask;
   the matching negative margins keep word spacing and line height unchanged. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .16em .2em .08em; margin: -.06em -.16em -.2em -.08em; }
.w > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Loan Finder ---------- */
.phero--compact { padding-top: clamp(140px, 13vw, 170px); padding-bottom: clamp(28px, 3vw, 40px); }
.phero--compact h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); max-width: none; }
.phero--compact .phero__in { gap: 16px; }
.finder-sec { padding-block: 0 clamp(80px, 10vw, 140px); }
.finder { max-width: 880px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 130px; }
.finder__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.finder__top .mono { color: var(--muted); }
.finder__bar { height: 2px; background: var(--line); }
.finder__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.flink { background: none; border: 0; padding: 6px 0; color: var(--muted); font: 400 var(--s-sm)/1 var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: color .3s; }
.flink:hover { color: var(--fg); }
#finder-stage { padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px) clamp(32px, 4vw, 56px); min-height: 420px; }
.fstep { display: grid; gap: 14px; }
.fstep__q { font-size: var(--s-2); outline: none; }
.fstep__hint { color: var(--muted); max-width: 58ch; }
.fopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.fopt { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 64px; padding: 16px 18px; text-align: left; cursor: pointer;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); font: 400 var(--s-0)/1.35 var(--f-body); transition: border-color .3s, background-color .3s, color .3s; }
.fopt svg { width: 16px; height: 16px; flex: none; color: var(--dim); transition: color .3s, transform .4s var(--ease); }
.fopt:hover, .fopt.is-picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.fopt:hover svg, .fopt.is-picked svg { color: var(--accent); transform: translateX(3px); }
.fform { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.fform .full, .fform__row, .fform > .ferr, .fform > .fsafe { grid-column: 1 / -1; }
.fform label { display: grid; gap: 8px; min-width: 0; }
.fform label > span.mono { color: var(--muted); }
.fform input:not([type=radio]):not([type=checkbox]), .fform select, .fform textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--fg);
  font: 400 var(--s-0)/1.4 var(--f-body); padding: 8px 0 12px; transition: border-color .3s; }
.fform .num { font: 400 var(--s-1)/1.3 var(--f-mono); }
.fform select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.fform select option { background: var(--surface); color: var(--fg); }
.fform textarea { resize: vertical; min-height: 90px; }
.fform input:focus, .fform select:focus, .fform textarea:focus { outline: none; border-color: var(--accent); }
.fform__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.fpref { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fpref legend { color: var(--muted); margin-bottom: 10px; padding: 0; }
.fpref label { display: block; }
.fpref input { position: absolute; opacity: 0; pointer-events: none; }
.fpref span { display: block; padding: 10px 18px; border: 1px solid var(--line); cursor: pointer; transition: all .3s; font-size: var(--s-sm); }
.fpref input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.fpref input:focus-visible + span { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.fconsent { grid-template-columns: 20px 1fr !important; align-items: start; color: var(--muted); font-size: var(--s-sm); line-height: 1.5; cursor: pointer; }
.fconsent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.ferr { color: var(--accent); min-height: 1em; margin: 0; }
.fsafe { color: var(--dim); font-size: var(--s-xs); line-height: 1.6; margin: 4px 0 0; }
.matches { display: grid; gap: 14px; margin-top: 18px; }
.match { display: grid; gap: 12px; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); background: var(--bg); }
.match--top { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.match__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.match__head > .mono:first-child { color: var(--accent); }
.match h3 { font-size: var(--s-2); }
.match .checks { border-top: 0; }
.match .checks li { padding: 10px 0; }
.match .prog__go { grid-column: auto; }
.match:hover .prog__go { color: var(--accent); }
.cost { color: var(--muted); padding: 5px 9px; border: 1px solid var(--line); }
.cost--1, .cost--2 { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ftip { color: var(--muted); font-size: var(--s-sm); }
.ftip b { color: var(--fg); font-weight: 500; }
.fstatus { padding: 16px 18px; border: 1px solid var(--line); font-size: var(--s-sm); line-height: 1.55; margin-top: 4px; }
.fstatus.is-ok { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fstatus b { font-weight: 500; }
.fstatus a { color: var(--accent); }
.finder-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.finder-cta p { color: var(--muted); font-size: var(--s-sm); max-width: 34ch; }
@media (max-width: 720px) {
  .fopts, .fform { grid-template-columns: 1fr; }
  .fopt { min-height: 56px; }
}

/* ---------- Quick contact: top bar (in the header) ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; font-size: .68rem; }
.topbar__msg { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.topbar__msg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.topbar__links { display: flex; gap: clamp(14px, 2.4vw, 28px); }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--fg); transition: color .3s; white-space: nowrap; }
.topbar__links a:hover { color: var(--accent); }
.topbar__links svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .topbar__msg { display: none; }
  .topbar__in { justify-content: center; }
}
@media (max-width: 380px) { .topbar__links a + a { display: none; } }

/* ---------- Quick contact: floating button (desktop) / bottom bar (phones), built by site.js ---------- */
.quick { position: fixed; z-index: 45; right: clamp(16px, 2.4vw, 32px); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px; padding: 8px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  transform: translateY(140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.quick.is-on { transform: none; opacity: 1; }
.quick__who { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 2px; }
.quick__who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: var(--surface-2); }
.quick__who span { display: grid; line-height: 1.2; font-size: .8rem; }
.quick__who b { font-weight: 500; }
.quick__who small { color: var(--muted); font-size: .7rem; }
.quick a.qbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; text-decoration: none; font: 500 .8rem/1 var(--f-body); color: var(--fg); border: 1px solid var(--line); transition: border-color .3s, color .3s, background-color .3s; }
.quick a.qbtn:hover { border-color: var(--accent); color: var(--accent); }
.quick a.qbtn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.quick a.qbtn--primary:hover { background: var(--fg); border-color: var(--fg); color: var(--on-accent); }
.quick svg { width: 15px; height: 15px; flex: none; }
.quick .qbtn.only-phone { display: none; }
@media (max-width: 720px) {
  .quick { left: 0; right: 0; bottom: 0; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; box-shadow: none; }
  .quick__who, .quick .qbtn.only-desk { display: none; }
  .quick .qbtn.only-phone { display: inline-flex; }
  .quick a.qbtn { flex: 1; padding: 13px 8px; }
  body.has-quick .footer { padding-bottom: 96px; }
}

/* ---------- Program rows on the home page link to detail pages ---------- */
a.prog { text-decoration: none; color: inherit; }
.prog__go { grid-column: 2; justify-self: start; color: var(--dim); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; transition: color .3s, gap .4s var(--ease); }
.prog__go svg { width: 1.1em; height: 1.1em; flex: none; }
.prog:hover .prog__go, .prog:focus-visible .prog__go { color: var(--accent); gap: 14px; }
@media (max-width: 960px) { .prog__go { grid-column: 1; } }

/* ---------- Program detail pages ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(160px, 18vw, 220px); padding-bottom: clamp(64px, 9vw, 120px); }
.phero .hero__gl { position: absolute; inset: 0; z-index: -2; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }
.phero__in { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { color: var(--dim); }
.phero h1 { font-size: clamp(2.9rem, 1.2rem + 6.6vw, 8rem); line-height: .98; max-width: 15ch; }
.phero__lede { max-width: 52ch; font-size: var(--s-1); line-height: 1.5; color: var(--muted); font-weight: 330; }
.phero__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid var(--line); color: var(--fg); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tag::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }

.pbody { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.pbody__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.glance { position: sticky; top: 112px; display: grid; gap: 22px; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); }
.glance dl { margin: 0; display: grid; }
.glance dl div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.glance dt { color: var(--dim); }
.glance dd { margin: 0; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.3; }
.glance .btn { justify-content: space-between; }
.glance__lo { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.glance__lo img { width: 56px; height: 56px; flex: none; object-fit: cover; object-position: 50% 6%; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.glance__lo p { font-size: var(--s-sm); color: var(--muted); line-height: 1.45; }
.glance__lo a { color: var(--fg); text-decoration: none; }
.glance__lo a:hover { color: var(--accent); }

.prose { display: grid; gap: clamp(56px, 7vw, 96px); min-width: 0; }
.prose > section { display: grid; gap: 22px; scroll-margin-top: 110px; }
.prose h2 { font-size: var(--s-2); }
.prose .lead { font-size: var(--s-1); line-height: 1.6; font-weight: 330; max-width: 62ch; }
.checks, .docs, .notes { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.checks li::before { content: ""; width: 8px; height: 8px; margin-top: .6em; background: var(--accent); transform: rotate(45deg); }
.docs { counter-reset: doc; }
.docs li { counter-increment: doc; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.docs li::before { content: counter(doc, decimal-leading-zero); padding-top: .35em; font-family: var(--f-mono); font-size: var(--s-xs); color: var(--accent); }
.notes li { position: relative; padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 12px; height: 1px; background: var(--accent); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--f-display); font-size: var(--s-1); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; margin-top: .4em; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent); transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { color: var(--muted); max-width: 62ch; padding-bottom: 24px; }

.related { padding-block: clamp(70px, 9vw, 130px); background: var(--surface); border-block: 1px solid var(--line); }
.related__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.rcard { position: relative; display: grid; align-content: space-between; gap: 28px; min-height: 230px; padding: clamp(22px, 2.4vw, 32px); text-decoration: none; background: var(--bg); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s; }
.rcard::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.rcard:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.rcard:hover::before { transform: scaleX(1); }
.rcard h3 { font-size: var(--s-2); }
.rcard p { color: var(--muted); font-size: var(--s-sm); margin-top: 10px; }
.rcard .prog__go { grid-column: auto; }
.rcard:hover .prog__go { color: var(--accent); gap: 14px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.pager a { display: grid; gap: 8px; padding-block: clamp(30px, 4vw, 56px); text-decoration: none; min-width: 0; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.pager .mono { color: var(--dim); }
.pager b { font-family: var(--f-display); font-weight: 400; font-size: var(--s-2); line-height: 1.15; transition: color .3s; }
.pager a:hover b { color: var(--accent); }

.band { padding-block: clamp(80px, 11vw, 160px); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: auto -10% -50% -10%; height: 100%; z-index: -1; background: radial-gradient(50% 50% at 50% 100%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%); }
.band__in { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: var(--s-3); max-width: 16ch; }
.band__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .pbody__grid { grid-template-columns: 1fr; }
  .glance { position: static; }
  .related__grid { grid-template-columns: 1fr; }
  .rcard { min-height: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { text-align: left; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
