/* Fast Financial — Elevation layer (art direction + motion)
 * Loaded AFTER site.css on every template. Pure enhancement: every page
 * renders complete and static without elevate.js. Anything kinetic is
 * double-gated behind html.elv (set by elevate.js) and prefers-reduced-motion.
 * Brand voice: modern fintech power — kinetic precision, data alive.
 */

/* ====================== 1 · Editorial type scale ====================== */
/* Oversized display headlines against the existing fine detail text. */
.hero h1 { font-size: clamp(3.2rem, 1.6rem + 5.8vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
.subhero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.3rem); line-height: 1.02; }
.sec-head h2 { font-size: clamp(2.05rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.05; }
.ff-cta h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem); }
.hero__lead, .subhero__lead { text-wrap: pretty; }

/* Precision tick before eyebrow labels — fine detail against big display type */
.ff-eyebrow::before {
  content: ""; display: inline-block; flex: none;
  width: 18px; height: 2px; border-radius: 1px;
  background: currentColor; opacity: 0.45;
  margin-right: 8px; vertical-align: middle;
}

/* ====================== 2 · Hero / subhero atmosphere ================= */
/* Layered depth: brand wash + a fading precision grid (charting paper). */
.hero::before { background:
  radial-gradient(58% 76% at 86% -12%, rgba(224, 22, 36, .09), transparent 62%),
  radial-gradient(46% 60% at 0% -6%, rgba(21, 112, 143, .06), transparent 60%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to bottom, var(--ff-ink-100) 1px, transparent 1px),
    linear-gradient(to right, var(--ff-ink-100) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 120% at 78% -12%, rgba(0, 0, 0, .5), transparent 70%);
  mask-image: radial-gradient(80% 120% at 78% -12%, rgba(0, 0, 0, .5), transparent 70%);
}
.hero__grid { z-index: 1; }

.subhero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to bottom, var(--ff-ink-100) 1px, transparent 1px),
    linear-gradient(to right, var(--ff-ink-100) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 110% at 92% -10%, rgba(0, 0, 0, .4), transparent 70%);
  mask-image: radial-gradient(60% 110% at 92% -10%, rgba(0, 0, 0, .4), transparent 70%);
}
.subhero__inner { z-index: 1; }

/* ====================== 3 · Snapshot card (hero media) ================ */
.snap {
  border-radius: calc(var(--radius-xl) + 4px);
  box-shadow: 0 0 0 1px rgba(10, 14, 20, .035), inset 0 1px 0 rgba(255, 255, 255, .85), var(--shadow-xl);
}
.snap__spark { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* bars rise like a live chart filling in */
  html.elv .snap__spark i { transform-origin: bottom; animation: elv-bar .85s var(--ease-out) both; }
  html.elv .snap__spark i:nth-child(1)  { animation-delay: .50s; }
  html.elv .snap__spark i:nth-child(2)  { animation-delay: .56s; }
  html.elv .snap__spark i:nth-child(3)  { animation-delay: .62s; }
  html.elv .snap__spark i:nth-child(4)  { animation-delay: .68s; }
  html.elv .snap__spark i:nth-child(5)  { animation-delay: .74s; }
  html.elv .snap__spark i:nth-child(6)  { animation-delay: .80s; }
  html.elv .snap__spark i:nth-child(7)  { animation-delay: .86s; }
  html.elv .snap__spark i:nth-child(8)  { animation-delay: .92s; }
  html.elv .snap__spark i:nth-child(9)  { animation-delay: .98s; }
  html.elv .snap__spark i:nth-child(10) { animation-delay: 1.04s; }
  /* periodic data-refresh sweep across the chart */
  html.elv .snap__spark::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .6) 50%, transparent 68%);
    animation: elv-scan 7.5s var(--ease-in-out) 3.4s infinite;
  }
}
@keyframes elv-bar { from { transform: scaleY(.06); } }
@keyframes elv-scan {
  0% { transform: translateX(-120%); }
  24% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* ====================== 4 · Buttons (CTA prominence) ================== */
.ff-btn--primary {
  position: relative; overflow: hidden;
  box-shadow: 0 14px 30px -10px rgba(224, 22, 36, .45), 0 2px 6px -2px rgba(224, 22, 36, .30);
}
.ff-btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .30) 50%, transparent 60%);
  transform: translateX(-130%);
}
.ff-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(224, 22, 36, .55), 0 3px 8px -2px rgba(224, 22, 36, .30);
}
.ff-btn--primary:hover::after { transform: translateX(130%); transition: transform .7s var(--ease-out); }

/* ====================== 5 · Cards & tables ============================ */
.ff-pathway::before { transition: height var(--dur-base) var(--ease-out); }
.ff-pathway:hover::before { height: 7px; }
.ff-pathway:hover { transform: translateY(-5px); }

.calc-card:hover, .art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.art-card__img { position: relative; overflow: hidden; }
.art-card__img::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(120deg, transparent 45%, rgba(255, 255, 255, .18) 55%, transparent 65%);
}
.art-card:hover .art-card__img::after { transform: translateX(130%); transition: transform .8s var(--ease-out); }

.review { transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.review:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.market__cell { transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.market__cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.ff-table tbody tr { transition: background var(--dur-fast) linear; }
.ff-table tbody tr:not([data-highlight="true"]):hover { background: var(--ff-ink-25); }

/* ====================== 6 · Process connector ========================= */
@media (min-width: 821px) {
  .step::after {
    content: ""; position: absolute; top: 21px; left: 56px; right: 12px; height: 2px;
    background: linear-gradient(90deg, var(--ff-ink-150), var(--ff-ink-100) 80%, transparent);
  }
  .step:last-child::after { display: none; }
}

/* ====================== 7 · Header depth on scroll ==================== */
.ff-header { transition: box-shadow .35s var(--ease-out), background .35s var(--ease-out); }
html.elv-scrolled .ff-header {
  background: color-mix(in srgb, var(--ff-white) 94%, transparent);
  box-shadow: 0 12px 32px -24px rgba(10, 14, 20, .40);
}

/* ====================== 8 · CTA section =============================== */
.ff-cta { box-shadow: var(--shadow-xl); }
.ff-cta::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 130% at 88% -10%, black, transparent 72%);
  mask-image: radial-gradient(70% 130% at 88% -10%, black, transparent 72%);
}
.ff-cta__inner { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.elv .ff-cta__glow { animation: elv-breathe 7s var(--ease-in-out) infinite alternate; }
}
@keyframes elv-breathe {
  from { opacity: .78; transform: scale(1); }
  to { opacity: 1; transform: scale(1.12); }
}

/* ====================== 9 · Scroll reveals ============================ */
/* Hidden states exist ONLY when elevate.js has confirmed IO support and
   motion is allowed (html.elv). No JS or reduced motion → fully static. */
@media (prefers-reduced-motion: no-preference) {
  html.elv [data-elv] { opacity: 0; transform: translateY(26px); }
  html.elv .snap[data-elv] { transform: translateY(34px) scale(.975); }
  html.elv .ff-cta[data-elv] { transform: translateY(30px) scale(.99); }
  html.elv [data-elv].elv-in {
    opacity: 1; transform: none;
    transition: opacity .8s var(--ease-out) var(--elv-d, 0ms),
                transform .8s var(--ease-out) var(--elv-d, 0ms);
  }

  /* Commissioned section photography settles into place instead of sharing
     the generic rise. The scale is deliberately slight so intrinsic crops and
     the established section rhythm do not change. */
  html.elv img.ff-section-image[data-elv],
  html.elv img.storyimg[data-elv],
  html.elv img.art-hero__cover[data-elv] {
    transform: translateY(18px) scale(1.03);
    transform-origin: 50% 50%;
  }
  html.elv img.ff-section-image[data-elv].elv-in,
  html.elv img.storyimg[data-elv].elv-in,
  html.elv img.art-hero__cover[data-elv].elv-in {
    transform: none;
  }
}
/* Mobile: shorter, cheaper variants */
@media (prefers-reduced-motion: no-preference) and (max-width: 820px) {
  html.elv [data-elv] { transform: translateY(14px); }
  html.elv .snap[data-elv] { transform: translateY(16px); }
  html.elv [data-elv].elv-in { transition-duration: .5s, .5s; }
  html.elv img.ff-section-image[data-elv],
  html.elv img.storyimg[data-elv],
  html.elv img.art-hero__cover[data-elv] { transform: translateY(10px) scale(1.03); }
  html.elv img.ff-section-image[data-elv].elv-in,
  html.elv img.storyimg[data-elv].elv-in,
  html.elv img.art-hero__cover[data-elv].elv-in { transform: none; }
}
/* Print: everything visible, no transforms */
@media print {
  html.elv [data-elv] { opacity: 1 !important; transform: none !important; }
  .elv-ratewire { display: none !important; }
}
/* Watchdog fallback: embeddings where CSS transitions/animations never
   advance (elevate.js adds .elv-static after probing) — show everything. */
html.elv-static [data-elv] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.elv-static .snap__spark i,
html.elv-static .snap__spark::after,
html.elv-static .ff-cta__glow,
html.elv-static .elv-ratewire .w-halo { animation: none !important; }
html.elv-static .snap__spark i { transform: none !important; }

/* ====================== 10 · Signature: the rate wire ================= */
/* A thin rate line drawn across the hero floor — the decision engine
   driving a rate down and to the right, ending in a live pulse. */
.elv-ratewire {
  position: absolute; left: 0; bottom: -2px; width: 100%; height: 56%;
  pointer-events: none; z-index: 0;
}
html.elv .hero .elv-ratewire { transform: translate3d(0, calc(var(--elv-py, 0) * 1px), 0); }
.elv-ratewire .w-area { opacity: 0; transition: opacity 1.6s var(--ease-out) .8s; }
.elv-ratewire.elv-draw .w-area { opacity: 1; }
.elv-ratewire .w-line { fill: none; stroke-width: 2; }
.elv-ratewire .w-dot { fill: var(--ff-red-500); opacity: 0; }
.elv-ratewire.elv-draw .w-dot { opacity: 1; }
.elv-ratewire .w-halo {
  fill: none; stroke: var(--ff-red-500); stroke-width: 2; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  html.elv .elv-ratewire.elv-settled .w-halo { animation: elv-halo 3s var(--ease-out) infinite; }
}
@keyframes elv-halo {
  0% { opacity: .5; transform: scale(.5); }
  70% { opacity: 0; transform: scale(2.4); }
  100% { opacity: 0; transform: scale(2.4); }
}
@media (max-width: 740px) { .elv-ratewire { display: none; } }

/* ====================== 11 · Premium interaction layer ================ */
/* Pointer-reactive depth on the key cards + magnetic CTAs + a cursor-follow
   gloss on the hero snapshot. All transform/opacity only, double-gated behind
   html.elv + reduced-motion, and desktop-only (elevate.js skips coarse pointers
   and narrow viewports). Idle state is identical to the static page. */

/* -- Arrow & icon micro-nudges (cheap, expected on a high-end CTA) -- */
@media (prefers-reduced-motion: no-preference) {
  .ff-btn svg { transition: transform .25s var(--ease-out); }
  .ff-btn:hover svg { transform: translateX(3px); }
  .ff-pathway__cta svg { transition: transform .3s var(--ease-out); }
  .ff-pathway:hover .ff-pathway__cta svg { transform: translateX(5px); }
  .calc-card__link { transition: transform .3s var(--ease-out); }
  .calc-card:hover .calc-card__link { transform: translateX(3px); }
  .ff-pathway__icon, .calc-card__icon { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
  .ff-pathway:hover .ff-pathway__icon,
  .calc-card:hover .calc-card__icon { transform: translateY(-3px) scale(1.07); }
}

/* -- Pointer tilt on pathway / calc / article cards + hero snapshot -- */
@media (prefers-reduced-motion: no-preference) and (min-width: 821px) {
  html.elv .elv-tilt {
    transition: transform .22s var(--ease-out), box-shadow .3s var(--ease-out);
    transform-origin: center;
  }
  html.elv .ff-pathway.elv-tilt:hover {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
    box-shadow: var(--shadow-xl);
  }
  html.elv .calc-card.elv-tilt:hover,
  html.elv .art-card.elv-tilt:hover {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
    box-shadow: var(--shadow-xl);
  }
  html.elv .snap.elv-tilt:hover {
    transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  }

  /* one-pass diagonal sheen on hover (same gloss language as the buttons) */
  .elv-sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
  .elv-sheen::before {
    content: ""; position: absolute; top: -30%; left: -65%; width: 42%; height: 160%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-12deg); opacity: 0;
  }
  html.elv .elv-tilt:hover .elv-sheen::before { animation: elv-cardsheen .9s var(--ease-out); }
  @keyframes elv-cardsheen {
    0% { left: -65%; opacity: 0; }
    25% { opacity: .85; }
    100% { left: 150%; opacity: 0; }
  }

  /* cursor-follow gloss on the hero snapshot (its showpiece moment) */
  .elv-gloss {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
    opacity: 0; transition: opacity .4s var(--ease-out); mix-blend-mode: soft-light;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), transparent 60%);
  }
  html.elv .snap.elv-tilt:hover .elv-gloss { opacity: 1; }
}

/* -- Magnetic primary/secondary CTAs (large buttons only) -- */
@media (prefers-reduced-motion: no-preference) and (min-width: 821px) {
  html.elv .ff-btn.elv-mag { transition: transform .18s var(--ease-out), box-shadow .3s var(--ease-out); }
  html.elv .ff-btn.elv-mag:hover { transform: translate3d(var(--mgx, 0), var(--mgy, 0), 0); }
}

/* -- Process connector lines wipe in as the steps reveal -- */
@media (prefers-reduced-motion: no-preference) and (min-width: 821px) {
  html.elv .step::after { transform: scaleX(0); transform-origin: left center; }
  html.elv .step.elv-in::after {
    transform: scaleX(1);
    transition: transform .7s var(--ease-out) calc(var(--elv-d, 0ms) + .22s);
  }
}

/* -- Eyebrow precision tick draws out as its block reveals -- */
@media (prefers-reduced-motion: no-preference) {
  html.elv [data-elv] .ff-eyebrow::before,
  html.elv .ff-eyebrow[data-elv]::before { width: 0; opacity: 0; }
  html.elv [data-elv].elv-in .ff-eyebrow::before,
  html.elv .ff-eyebrow[data-elv].elv-in::before {
    width: 18px; opacity: .45;
    transition: width .6s var(--ease-out) calc(var(--elv-d, 0ms) + .12s),
                opacity .6s ease calc(var(--elv-d, 0ms) + .12s);
  }
}

/* Static-fallback resets for the new reveal-gated states */
html.elv-static .step::after { transform: none !important; }
html.elv-static .ff-eyebrow::before { width: 18px !important; opacity: .45 !important; }
html.elv-static .elv-sheen, html.elv-static .elv-gloss { display: none !important; }

/* Section-heading rule sweeps in with the heading. It remains fully drawn in
   the no-JS and reduced-motion paths. */
.sec-head::after,
h2.sec-head::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 1.15rem;
  background: var(--brand);
  transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  html.elv .sec-head[data-elv]::after,
  html.elv h2.sec-head[data-elv]::after { transform: scaleX(0); }
  html.elv .sec-head[data-elv].elv-in::after,
  html.elv h2.sec-head[data-elv].elv-in::after {
    transform: scaleX(1);
    transition: transform .65s var(--ease-out) calc(var(--elv-d, 0ms) + .18s);
  }
}
html.elv-static .sec-head::after,
html.elv-static h2.sec-head::after { transform: none !important; transition: none !important; }

/* ====================== 12 · FF-DESIGN-1 surface overhaul ============ */
/* The page structure and copy remain intact. This layer gives the existing
   system a wider typographic register, tactile surfaces, and calmer rhythm. */

:root {
  --ff-paper: #fafbfc;
  --ff-paper-deep: #f1f4f7;
  --ff-slate: #2a3342;
  --ff-red-deep: #a40f1a;
  --section-y: clamp(5.25rem, 8vw, 8rem);
}

body {
  background: var(--ff-paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(224, 22, 36, .025), transparent 28rem),
    linear-gradient(rgba(42, 51, 66, .018) 1px, transparent 1px);
  background-size: auto, 100% 40px;
}

/* Keep iOS overscroll and the safe-area below the fixed mobile actions on the
   same dark surface as the document's final footer. The sticky-bar clearance
   belongs inside that footer, never as light body padding below it. */
html { background-color: var(--surface-ink, #0a0e14); }
body.page { padding-bottom: 0; }
.funnel-foot {
  background: var(--surface-ink, #0a0e14) !important;
  border-top-color: var(--border-on-ink) !important;
  padding-bottom: calc(var(--space-7) + env(safe-area-inset-bottom, 0px)) !important;
}
.funnel-foot .ff-footer__disclaimer { color: var(--ff-ink-400) !important; }

@media (max-width: 820px) {
  body.page { padding-bottom: 0 !important; }
  .ff-footer {
    padding-bottom: calc(var(--space-8) + 60px + env(safe-area-inset-bottom, 0px));
  }
}

/* Type has distinct jobs: Schibsted states, Newsreader explains, Hanken guides,
   IBM Plex Mono carries every number. */
.hero h1,
.subhero h1,
.cityhero h1,
.art-hero h1,
.funnel-wrap h1 { font-family: var(--font-display); }

.sec-head h2,
h2.sec-head,
.ff-cta h2,
.page-sections--about .creds h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.035em;
}

.sec-head h2,
h2.sec-head { font-size: clamp(2.35rem, 1.45rem + 2.8vw, 3.65rem); line-height: 1.02; }
.ff-cta h2 { font-size: clamp(2.45rem, 1.6rem + 2.8vw, 3.75rem); line-height: 1; }
.hero h1 { font-size: clamp(3.3rem, 1.55rem + 5.9vw, 5.4rem); }
.subhero h1 { font-size: clamp(2.8rem, 1.65rem + 4.5vw, 4.5rem); }
.hero__lead, .subhero__lead { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.35rem); }

.snap__rate b,
.snap__cell .v,
.ff-trust__value,
.ff-stat__value,
.market__v,
.ff-table__num,
.calc-input .val,
.result-big,
.legend__val,
.member__nmls,
.ff-figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.article,
.article p,
.article li { font-family: var(--font-serif); }
.article p, .article li { font-size: clamp(1.16rem, 1.08rem + .25vw, 1.3rem); }
.article h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); }
.article h3 { font-family: var(--font-sans); }
.review p { font-family: var(--font-serif); font-size: var(--text-lg); line-height: 1.52; }

/* Wide screens get a coordinated upper range. Floors match the old computed
   values at 1440px, while decorative figures stay below real headings. */
@media (min-width: 1440px) {
  .page-sections .hero h1 { font-size: clamp(5.4rem, calc(2.7rem + 3vw), 7rem); }
  .page-sections .subhero h1,
  .page-sections .cityhero h1,
  .page-sections .art-hero h1 { font-size: clamp(4.3rem, calc(2.5rem + 2vw), 6rem); }
  .page-sections .sec-head h2,
  .page-sections h2.sec-head { font-size: clamp(3.25rem, calc(.55rem + 3vw), 4.75rem); }
  .page-sections .hero__lead,
  .page-sections .subhero__lead { font-size: clamp(1.25rem, calc(.69rem + .62vw), 1.5rem); }
  .step__n,
  .market__v,
  .ff-stat__value { font-size: clamp(2.4rem, 1.8rem + .7vw, 3rem); }
}

/* Shader hosts. The static CSS layer is also the no-WebGL fallback. */
.hero--shader,
.subhero--shader,
.cityhero--shader,
.funnel-wrap--shader {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 82% 18%, rgba(224, 22, 36, .6), transparent 68%),
    radial-gradient(72% 90% at 55% 100%, rgba(42, 51, 66, .42), transparent 72%),
    #fafbfc;
}

.hero-shader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(102deg, rgba(250, 251, 252, .96) 0%, rgba(250, 251, 252, .84) 34%, rgba(250, 251, 252, .32) 64%, rgba(250, 251, 252, .08) 100%),
    radial-gradient(65% 94% at 18% 44%, rgba(250, 251, 252, .78), transparent 100%);
}

.hero-shader__renderer,
.hero-shader__canvas,
.hero-shader__static,
.hero-shader__canvas canvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.hero-shader__renderer { z-index: 1; }
.hero-shader__static--warp {
  background:
    radial-gradient(70% 92% at 82% 12%, rgba(224, 22, 36, .82), transparent 65%),
    radial-gradient(72% 95% at 58% 105%, rgba(42, 51, 66, .62), transparent 70%),
    radial-gradient(48% 70% at 100% 75%, rgba(164, 15, 26, .6), transparent 68%),
    #fafbfc;
}
.hero-shader__static--swirl {
  background:
    conic-gradient(from 205deg at 82% 48%, #fafbfc, #e01624, #a40f1a, #2a3342, #f1f4f7, #fafbfc);
}

@media (prefers-reduced-motion: reduce) {
  .hero-shader,
  .hero-shader * { animation: none !important; transition: none !important; }
}

/* Hero composition: atmosphere with anchored, readable content. */
.hero--shader {
  min-height: min(790px, calc(100svh - 74px));
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 7vw, 7rem);
  border-bottom: 1px solid rgba(42, 51, 66, .12);
}
.hero--shader::before,
.hero--shader::after { display: none; }
.hero--shader .hero__grid { z-index: 3; }
.hero--shader .hero__grid > :first-child { max-width: 47rem; }
.hero--shader h1 { max-width: 12ch; text-wrap: balance; }
.hero--shader .snap {
  transform: rotate(1.2deg);
  border-color: rgba(250, 251, 252, .7);
  box-shadow: 0 42px 90px -36px rgba(42, 51, 66, .65);
  background: rgba(250, 251, 252, .94);
  backdrop-filter: blur(12px);
}
.hero--shader .snap__head {
  background: #2a3342;
  border-bottom: 3px solid #e01624;
}

.subhero--shader {
  min-height: clamp(520px, 58vw, 670px);
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid rgba(42, 51, 66, .12);
}
.subhero--shader::before,
.subhero--shader::after { display: none; }
.subhero--shader .subhero__inner { z-index: 3; max-width: 76rem; }
.subhero--shader h1 { max-width: 12ch; }
.subhero--shader .subhero__lead { max-width: 40rem; }

.cityhero--shader {
  min-height: 590px;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) !important;
  background: #fafbfc !important;
  border: 1px solid rgba(42, 51, 66, .12);
  box-shadow: 0 36px 80px -54px rgba(42, 51, 66, .75);
}
.cityhero--shader::after { display: none !important; }
.cityhero--shader .cityhero__in { z-index: 3; max-width: 47rem; }
.cityhero--shader h1 { color: #11161f !important; max-width: 12ch; }
.cityhero--shader p { color: #2a3342 !important; max-width: 38rem; }
.cityhero--shader .ff-eyebrow { color: #a40f1a !important; }
.cityhero--shader .ff-btn--on-ink-secondary {
  color: #11161f;
  background: rgba(250, 251, 252, .72);
  border-color: rgba(42, 51, 66, .28);
}

.funnel-wrap--shader {
  min-height: 780px;
  padding: clamp(3rem, 5vw, 5rem);
  margin-block: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid rgba(42, 51, 66, .12);
  border-radius: 28px;
  box-shadow: 0 36px 90px -60px rgba(42, 51, 66, .7);
}
.funnel-wrap--shader .hero-shader { border-radius: inherit; }
.funnel-wrap--shader > :not(.hero-shader) { position: relative; z-index: 3; }
.funnel-wrap--shader .hero-shader::after {
  background: linear-gradient(100deg, rgba(250, 251, 252, .97) 0%, rgba(250, 251, 252, .9) 55%, rgba(250, 251, 252, .68) 100%);
}
.funnel-wrap--shader .segopt,
.funnel-wrap--shader .ff-card,
.funnel-wrap--shader .ff-embed { backdrop-filter: blur(14px); background-color: rgba(250, 251, 252, .86); }

/* Header and chrome feel less like a template rail. */
.ff-header {
  background: rgba(250, 251, 252, .88);
  border-bottom-color: rgba(42, 51, 66, .1);
  backdrop-filter: blur(18px) saturate(1.1);
}
.ff-header__inner { min-height: 74px; }
.ff-header__brand { flex: none; }  /* never let the header row shrink the logo to 0 (2026-08-16) */
.ff-header__brand img { height: 42px !important; width: auto !important; max-width: none !important; }
@media (max-width: 640px) { .ff-header__brand img { height: 34px !important; } }
.ff-header__nav a {
  letter-spacing: -.01em;
  text-underline-offset: 8px;
  transition: color .2s var(--ease-out), transform .2s var(--ease-out);
}
.ff-header__nav a:hover { transform: translateY(-1px); }

/* Section rhythm alternates paper depth rather than flat white/gray bands. */
.ff-section {
  position: relative;
  border-top: 1px solid rgba(42, 51, 66, .055);
}
.ff-section.bg-page {
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(224, 22, 36, .025), transparent 62%),
    #f1f4f7;
}
.sec-head { max-width: 54rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head p { max-width: 58ch; font-size: clamp(1.08rem, 1rem + .25vw, 1.22rem); }
.ff-eyebrow { font-family: var(--font-mono); font-weight: 600; }
.ff-eyebrow::before { width: 28px; height: 1px; opacity: .7; }

/* Four paths become a varied editorial set without changing order or copy. */
.page-sections--home #pathways .grid-4 {
  grid-template-columns: 1.15fr .85fr .85fr 1.15fr;
  gap: clamp(1rem, 1.7vw, 1.75rem);
}
.ff-pathway {
  min-height: 330px;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  border: 0;
  border-top: 4px solid var(--brand);
  border-radius: 8px 8px 24px 24px;
  box-shadow: 0 18px 50px -42px rgba(42, 51, 66, .75);
}
.ff-pathway--buy { background: var(--ff-buy-tint); border-top-color: var(--ff-buy); }
.ff-pathway--refi { background: var(--ff-refi-tint); border-top-color: var(--ff-refi); margin-top: 2.5rem; }
.ff-pathway--self { background: var(--ff-self-tint); border-top-color: var(--ff-self); margin-top: 2.5rem; }
.ff-pathway--inv { background: var(--ff-inv-tint); border-top-color: var(--ff-inv); }
.ff-pathway::before { display: none; }
.ff-pathway__icon { border-radius: 50%; background: rgba(250, 251, 252, .68) !important; }
.ff-pathway__title { font-family: var(--font-serif); font-size: clamp(1.65rem, 1.3rem + .65vw, 2.05rem); font-weight: 600; }
.ff-pathway__desc { font-size: var(--text-md); }

/* app/layout links the preserved legacy cascade after the Next stylesheet;
   keep the new surfaces authoritative without touching the rollback files. */
.page-sections .ff-pathway {
  min-height: 330px;
  border: 0;
  border-top: 4px solid var(--brand);
  border-radius: 8px 8px 24px 24px;
  padding: clamp(1.5rem, 2.2vw, 2rem);
}
.page-sections .ff-pathway--buy { background: var(--ff-buy-tint); border-top-color: var(--ff-buy); }
.page-sections .ff-pathway--refi { background: var(--ff-refi-tint); border-top-color: var(--ff-refi); }
.page-sections .ff-pathway--self { background: var(--ff-self-tint); border-top-color: var(--ff-self); }
.page-sections .ff-pathway--inv { background: var(--ff-inv-tint); border-top-color: var(--ff-inv); }

/* Process is a single-screen, ordinary-flow editorial timeline. */
.steps { gap: 0; border-block: 1px solid var(--border); }
.step {
  min-height: 300px;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--border);
  background: rgba(250, 251, 252, .5);
}
.step:last-child { border-right: 0; }
.step__n {
  width: auto;
  height: auto;
  display: block;
  color: #a40f1a;
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 400;
  line-height: .8;
}
.step h3 { font-family: var(--font-serif); font-size: clamp(1.45rem, 1.2rem + .5vw, 1.8rem); font-weight: 600; }
.step p { font-size: var(--text-md); max-width: 32ch; }
.page-sections .steps .step {
  min-height: 300px;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--border);
  background: rgba(250, 251, 252, .5);
}
.page-sections .steps .step:last-child { border-right: 0; }
.page-sections .steps .step__n {
  width: auto;
  height: auto;
  display: block;
  color: #a40f1a;
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 400;
  line-height: .8;
}
.page-sections .steps .step h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.2rem + .5vw, 1.8rem);
  font-weight: 600;
}

/* Data surfaces: fewer floating white cards, more integrated instruments. */
.calc-card {
  min-height: 300px;
  border: 0;
  border-radius: 8px 8px 22px 22px;
  background: #f1f4f7;
  box-shadow: inset 0 1px rgba(250, 251, 252, .9);
}
.calc-card:nth-child(even) { background: #fafbfc; border-top: 1px solid #cad2dc; }
.page-sections .calc-card {
  min-height: 300px;
  border: 0;
  border-radius: 8px 8px 22px 22px;
  background: #f1f4f7;
  box-shadow: inset 0 1px rgba(250, 251, 252, .9);
}
.page-sections .calc-card:nth-child(even) { background: #fafbfc; border-top: 1px solid #cad2dc; }
.calc-input { background: rgba(250, 251, 252, .74); border-color: rgba(42, 51, 66, .12); }
.ff-table-wrap { border-radius: 6px 6px 22px 22px; box-shadow: 0 26px 64px -54px rgba(42, 51, 66, .8); }
.market { gap: 0; border-block: 1px solid var(--border); }
.market__cell { border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; padding-block: 2.5rem; }
.market__cell:last-child { border-right: 0; }
.market__v { font-size: clamp(2rem, 2.4vw, 2.8rem); }
.snap { border-radius: 8px 8px 24px 24px; }

/* Commissioned section photography stays subordinate to the section it opens. */
.ff-section-image {
  display: block;
  width: 100%;
  height: clamp(210px, 27vw, 340px);
  object-fit: cover;
  border: 1px solid rgba(42, 51, 66, .12);
  border-radius: 8px 8px 24px 24px;
  box-shadow: 0 28px 64px -50px rgba(42, 51, 66, .8);
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}

/* Learning cards read like an editorial shelf while the commissioned imagery
   carries the first read. */
.art-card {
  border: 0;
  border-radius: 6px 6px 22px 22px;
  box-shadow: 0 22px 60px -50px rgba(42, 51, 66, .8);
}
.art-card__img { position: relative; overflow: hidden; }
img.art-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}
.art-card__img::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0 42%;
  border: 1px solid rgba(250, 251, 252, .52);
  border-bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(250, 251, 252, .38) 23px 24px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(250, 251, 252, .3) 31px 32px);
  transform: skewY(-4deg);
}
.art-card__img::after {
  content: "California / field note";
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  color: #fafbfc;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.art-card__img.a { background: linear-gradient(155deg, #f1f4f7 0 24%, #e01624 24% 28%, #a40f1a 28% 100%); }
.art-card__img.b { background: linear-gradient(155deg, #fafbfc 0 20%, #2a3342 20% 100%); }
.art-card__img.c { background: linear-gradient(155deg, #f1f4f7 0 24%, #a40f1a 24% 30%, #2a3342 30% 100%); }
.art-card h3 { font-family: var(--font-serif); font-size: clamp(1.3rem, 1.1rem + .4vw, 1.55rem); font-weight: 600; }

/* About and article placeholders use architecture/data language—never faces. */
.storyimg,
.art-hero__cover,
.member__photo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, transparent 0 28%, rgba(250, 251, 252, .3) 28% 29%, transparent 29%),
    linear-gradient(145deg, #2a3342, #a40f1a) !important;
}
.storyimg::after,
.art-hero__cover::after,
.member__photo::after {
  content: "";
  position: absolute;
  inset: 20% 10% 0 35%;
  border: 1px solid rgba(250, 251, 252, .5);
  background:
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(250, 251, 252, .32) 29px 30px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(250, 251, 252, .25) 39px 40px);
}
.member__photo { aspect-ratio: 4 / 5; border-radius: 4px 4px 18px 18px; }
.member__photo.g2, .member__photo.g4 { margin-top: 2rem; }
.byline__ava { background: #2a3342; border: 2px solid #f1f4f7; }
.art-hero { padding-top: clamp(3rem, 6vw, 6rem); }
.art-hero h1 { font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.art-hero__cover { border-radius: 6px 6px 28px 28px; box-shadow: 0 36px 70px -48px rgba(42, 51, 66, .8); }
img.storyimg,
img.art-hero__cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
img.storyimg { aspect-ratio: 4 / 3; }
img.art-hero__cover { aspect-ratio: 16 / 9; }
.reading { padding-top: clamp(3rem, 6vw, 5rem); }

/* Reviews feel like pulled correspondence, not interchangeable UI cards. */
.reviews { column-gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.review {
  border: 0;
  border-top: 1px solid var(--border-strong);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding-inline: 0;
}
.review__by b { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; }

/* Closing panels keep authority but gain a cut-paper edge and restrained glow. */
.ff-cta {
  border-radius: 8px 8px 32px 8px;
  background:
    linear-gradient(115deg, #0a0e14 0 62%, #11161f 62% 100%);
  box-shadow: 0 40px 80px -52px rgba(42, 51, 66, .9);
}
.ff-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, rgba(250, 251, 252, .025) 80px);
}
.ff-cta__glow { background: radial-gradient(circle, rgba(224, 22, 36, .5), transparent 64%); }
.ff-cta--coastline {
  background-image:
    linear-gradient(90deg, rgba(7, 11, 17, .96) 0%, rgba(7, 11, 17, .91) 45%, rgba(7, 11, 17, .66) 72%, rgba(7, 11, 17, .48) 100%),
    url('/assets/img/home-closing-coastline.webp');
  background-position: center;
  background-size: cover;
}
.ff-cta--coastline .ff-cta__inner { max-width: min(45%, 36rem); }
.ff-cta--coastline .ff-cta__glow { opacity: .34; }

@media (max-width: 980px) {
  .page-sections--home #pathways .grid-4 { grid-template-columns: 1fr 1fr; }
  .ff-pathway--refi, .ff-pathway--self { margin-top: 0; }
  .hero--shader { min-height: auto; }
  .hero--shader .snap { transform: none; }
}

@media (max-width: 820px) {
  :root { --section-y: clamp(4rem, 16vw, 6rem); }
  .hero--shader,
  .subhero--shader { min-height: auto; padding-block: 4rem; }
  .hero-shader::after {
    background:
      radial-gradient(145% 76% at 0% 9%, rgba(250, 251, 252, .97) 0%, rgba(250, 251, 252, .92) 48%, rgba(250, 251, 252, .58) 72%, transparent 100%),
      linear-gradient(180deg, rgba(250, 251, 252, .24) 0%, rgba(250, 251, 252, .1) 100%);
  }
  .subhero--shader .hero-shader::after,
  .cityhero--shader .hero-shader::after {
    background: linear-gradient(180deg, rgba(250, 251, 252, .9) 0%, rgba(250, 251, 252, .84) 72%, rgba(250, 251, 252, .2) 100%);
  }
  .hero--shader h1,
  .subhero--shader h1,
  .cityhero--shader h1 { max-width: 11ch; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: 0; }
  .page-sections .steps .step { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .page-sections .steps .step:last-child { border-bottom: 0; }
  .market { grid-template-columns: 1fr 1fr; }
  .market__cell:nth-child(2) { border-right: 0; }
  .market__cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .funnel-wrap--shader {
    overflow: visible;
    padding: 2rem var(--gutter) 7rem;
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
  }
  .funnel-wrap--shader .hero-shader { border-radius: 0; }
}

/* Sitewide tactile response. Reveal-tagged cards switch to the short
   interaction transition only after their entrance has completed. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ff-card,
  .ff-pathway,
  .calc-card,
  .art-card,
  .info,
  .segopt,
  .servicelink,
  .review,
  .member,
  .incard {
    transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease-out);
  }
  .ff-card:hover,
  .ff-pathway:hover,
  .calc-card:hover,
  .art-card:hover,
  .info:hover,
  .segopt:hover,
  .servicelink:hover,
  .review:hover,
  .member:hover,
  .incard:hover,
  html.elv [data-elv].elv-in.elv-settled:is(.ff-card, .ff-pathway, .calc-card, .art-card, .info, .segopt, .servicelink, .review, .member, .incard):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .ff-btn,
  button,
  .ff-sticky__btn { transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background-color .22s var(--ease-out); }
}

@media (prefers-reduced-motion: no-preference) {
  .ff-btn:active,
  button:active,
  .ff-sticky__btn:active,
  .ff-card:active,
  .ff-pathway:active,
  .calc-card:active,
  .art-card:active,
  .segopt:active,
  .servicelink:active {
    transform: translateY(1px) scale(.985) !important;
    transition-duration: .1s !important;
    transition-delay: 0s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-btn,
  button,
  .ff-sticky__btn,
  .ff-card,
  .ff-pathway,
  .calc-card,
  .art-card,
  .info,
  .segopt,
  .servicelink,
  .review,
  .member,
  .incard {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .page-sections--home #pathways .grid-4 { grid-template-columns: 1fr; }
  .ff-pathway { min-height: 0; }
  .page-sections .ff-pathway { min-height: 0; }
  .hero--shader { padding-top: 3.5rem; }
  .hero--shader .hero__grid { gap: 3rem; }
  .cityhero--shader { min-height: 560px; padding: 2rem !important; }
  .market { grid-template-columns: 1fr; }
  .market__cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .market__cell:nth-child(3) { border-bottom: 1px solid var(--border); }
  .member__photo.g2, .member__photo.g4 { margin-top: 0; }
  .ff-cta { padding: 2rem; }
  .ff-cta--coastline {
    background-image:
      linear-gradient(rgba(7, 11, 17, .88), rgba(7, 11, 17, .9)),
      url('/assets/img/home-closing-coastline.webp');
    background-position: 62% center;
  }
  .ff-cta--coastline .ff-cta__inner { max-width: 100%; }
}

/* ===== Press strip ("As Featured in") — replaces the fabricated-stats trust band ===== */
.pressband { padding: 1.6rem 0; border-block: 1px solid var(--line, #e5e8ec); background: var(--surface-2, #fafbfc); }
.pressband__inner { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 3rem); flex-wrap: wrap; justify-content: center; }
.pressband__label { font-family: var(--font-mono, monospace); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted, #5b6472); white-space: nowrap; }
.pressband__logos { display: flex; align-items: center; gap: clamp(1.4rem, 4.5vw, 3.2rem); flex-wrap: wrap; justify-content: center; }
.pressband__logos img { height: 26px; width: auto; filter: grayscale(1) opacity(.55); transition: filter .25s ease; }
.pressband__logos img:hover { filter: grayscale(0) opacity(1); }
@media (max-width: 720px) {
  .pressband__logos { gap: 1.1rem 1.6rem; }
  .pressband__logos img { height: 20px; }
}
