/* Fifth Ave Capital — brand stylesheet.
 *
 * Re-expressed from the brand's delivered site (a React 18 / Vite / Tailwind
 * project; this repo has no build step and the application runs on the
 * shared vanilla engine). Tailwind utilities became the named classes below,
 * at the delivered sizes and breakpoints (sm 640px, lg 1024px). Its
 * vocabulary, kept distinct from the other brands on this box:
 *
 *   - INK, WHITE, WARM STONE and ONE ACCENT: near-black #111412 for text,
 *     primary buttons and the footer; warm greys #F6F5F2…#5C605B for panels
 *     and secondary text; a deep "Central Park" green #1F3B2D, used for one
 *     full band, icon discs and the form's selected states.
 *   - SERIF DISPLAY: Libre Caslon Display for large headlines, Libre Caslon
 *     Text for card titles and the one-line wordmark; Manrope for body.
 *   - NEW YORK PHOTOGRAPHY, full-bleed under every page's top band (Unsplash
 *     CDN, the delivery's own choice). Pill buttons, 12–16px card radii.
 *   - The header is transparent over each page's dark top band (.dark-top)
 *     and turns solid white once the page scrolls. /confirm renders
 *     .site-header/.header-inner/.logo/.nav/.nav-cta, so those names are
 *     fixed.
 *   - The engine's classes (faform-*, opt, inp, drop, legal, …) are at the
 *     bottom, in these tokens. .legal and .field are the engine's; the
 *     footer's fine print is .footer-fine.
 */
:root {
  --ink: #111412;
  --ink-soft: #2a2e2b;
  --white: #ffffff;
  --stone-50: #f6f5f2;
  --stone-100: #eeece7;
  --stone-200: #e2dfd8;
  --stone-300: #cfcbc2;
  --stone-500: #5c605b;
  --green: #1f3b2d;
  --green-900: #152a20;
  --green-600: #2e5240;
  --green-100: #e4ece6;
  --danger: #b3261e;
  --danger-bg: #fdf5f4;
  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --caslon: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 84rem;
  --gut: 20px;
}
@media (min-width: 640px) { :root { --gut: 32px; } }
@media (min-width: 1024px) { :root { --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6.5rem; }
html.menu-open { overflow: hidden; }
body { background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "kern"; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }
/* LOAD-BEARING. The engine hides the Back button, the file list, the submit
   progress bar and the held-value boxes with el.hidden, and an author
   `display:` rule silently beats the attribute. */
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip-link { position: absolute; left: -9999px; top: 16px; z-index: 60; background: var(--white); color: var(--ink); padding: 8px 16px; border-radius: 999px; }
.skip-link:focus { left: 16px; }
.i { width: 16px; height: 16px; flex: none; }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }
.display em { font-family: var(--caslon); font-style: italic; }
.h-section { font-size: 2.5rem; }
.lead { font-size: 1.075rem; line-height: 1.7; color: var(--stone-500); }
.lead > p + p { margin-top: 20px; }
.title-card { font-family: var(--caslon); font-weight: 400; line-height: 1.375; }
@media (min-width: 640px) {
  .h-section { font-size: 3.2rem; }
  .lead { font-size: 1.15rem; }
}
@media (min-width: 1024px) { .h-section { font-size: 3.6rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font-size: 0.95rem; font-weight: 500; line-height: 1; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--green); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-900); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--stone-100); }
.btn-outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--stone-200); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 0.9rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); transition: color .2s; }
.text-link:hover { color: var(--green); }
.text-link .i, .card-link .i { transition: transform .3s var(--ease); }
.text-link:hover .i { transform: translateX(4px); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; } }

/* ---------- Header (also rendered by /confirm) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); color: var(--ink); transition: background-color .3s, color .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.logo { flex: none; font-family: var(--caslon); font-size: 1.3rem; line-height: 1; letter-spacing: -0.01em; color: inherit; }
.logo-lg { font-size: 1.6rem; }
.nav { display: none; align-items: center; gap: 32px; margin-left: auto; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--stone-500); transition: color .2s; }
.nav a:hover, .nav a.nav-current { color: var(--ink); }
.nav .nav-apply { display: none; }
.nav a.nav-cta { padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--white); }
.nav a.nav-cta:hover { background: var(--green); color: var(--white); }
.header-cta { display: none; padding: 12px 20px; }
.burger { display: inline-flex; margin-right: -8px; padding: 8px; background: none; border: 0; color: inherit; cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
.burger .x, .site-header.is-open .burger svg:first-child { display: none; }
.site-header.is-open .burger .x { display: block; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: 16px; }
  .burger { display: none; }
}
/* /confirm's header has no burger: on small screens show only its CTA. */
@media (max-width: 1023px) {
  .site-header:not(:has(.burger)) .nav { display: flex; }
  .site-header:not(:has(.burger)) .nav a:not(.nav-cta) { display: none; }
}
/* Transparent over the dark photograph (or ink band) at the top of a page, until scrolled. */
body:has(main > .dark-top:first-child) .site-header:not(.scrolled):not(.is-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--white); }
body:has(main > .dark-top:first-child) .site-header:not(.scrolled):not(.is-open) .nav a { color: rgba(255,255,255,.75); }
body:has(main > .dark-top:first-child) .site-header:not(.scrolled):not(.is-open) .nav a:hover,
body:has(main > .dark-top:first-child) .site-header:not(.scrolled):not(.is-open) .nav a.nav-current { color: var(--white); }
body:has(main > .dark-top:first-child) .site-header:not(.scrolled):not(.is-open) .header-cta,
body:has(main > .dark-top:first-child) .site-header:not(.scrolled):not(.is-open) .nav a.nav-cta { background: var(--white); color: var(--ink); }
body:has(main > .dark-top:first-child) .site-header:not(.scrolled):not(.is-open) .header-cta:hover { background: var(--stone-100); }
main { display: block; padding-top: 72px; }
main:has(> .dark-top:first-child) { padding-top: 0; }
/* Mobile menu: full-screen white panel under the header bar. */
@media (max-width: 1023px) {
  .site-header.is-open { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 8px; position: fixed; inset: 72px 0 0 0; margin: 0; padding: 40px var(--gut) 40px; background: var(--white); overflow-y: auto; }
  .site-header.is-open .nav a { padding: 8px 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1.25; color: var(--ink); }
  .site-header.is-open .nav a.nav-current, .site-header.is-open .nav a:hover { color: var(--green); }
  .site-header.is-open .nav .nav-apply { display: inline-flex; margin-top: auto; padding: 16px 24px; font-family: var(--sans); font-size: 0.95rem; font-weight: 500; line-height: 1; color: var(--white); }
  .site-header.is-open .nav .nav-apply:hover { color: var(--white); }
}

/* ---------- Photographic top bands ---------- */
.dark-top { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: hero-settle 2.2s var(--ease) both; }
.shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.3), rgba(0,0,0,.35)); }
.hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hero .shade { background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.4), rgba(0,0,0,.35)); }
.hero .shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.2), transparent); }
.hero > .wrap { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding-top: 144px; padding-bottom: 56px; }
.hero h1 { max-width: 56rem; font-size: 2.9rem; animation-delay: .15s; }
.hero-lede { max-width: 36rem; margin-top: 28px; font-size: 1.075rem; line-height: 1.7; color: rgba(255,255,255,.8); }
.hero .hero-lede { animation-delay: .32s; }
.hero .hero-actions { animation-delay: .48s; }
.hero-tags { margin-top: 64px; font-size: 0.9rem; color: rgba(255,255,255,.65); animation-delay: .64s; }
.hero-tags span { margin: 0 10px; color: rgba(255,255,255,.35); }
.page-hero { display: flex; align-items: flex-end; min-height: 60vh; min-height: 60svh; }
.page-hero > .wrap { padding-top: 160px; padding-bottom: 56px; }
.page-hero h1 { max-width: 56rem; font-size: 3rem; animation-delay: .12s; }
.page-hero .hero-lede { max-width: 42rem; margin-top: 24px; animation-delay: .28s; }
/* Ink-only top band: 404, legal pages, /confirm. */
.ink-top { display: flex; align-items: flex-end; min-height: 44vh; }
.ink-top > .wrap { padding-top: 160px; padding-bottom: 56px; }
.ink-top h1 { font-size: 3rem; }
.ink-top .hero-lede { max-width: 36rem; margin-top: 24px; color: rgba(255,255,255,.75); }
.ink-top.tall { min-height: 80vh; min-height: 80svh; align-items: center; }
.ink-top.tall > .wrap { padding-bottom: 80px; }
@media (min-width: 640px) {
  .hero > .wrap { padding-bottom: 80px; }
  .hero h1 { font-size: 4.4rem; }
  .hero-lede { font-size: 1.15rem; }
  .hero-tags { margin-top: 96px; }
  .page-hero > .wrap, .ink-top > .wrap { padding-bottom: 80px; }
  .page-hero h1 { font-size: 4.4rem; }
  .ink-top h1 { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .hero > .wrap { padding-bottom: 96px; }
  .hero h1 { font-size: 5.6rem; }
  .page-hero { min-height: 66vh; }
  .page-hero h1 { font-size: 5.4rem; }
}

/* ---------- Bands ---------- */
.band { padding: 96px 0; background: var(--white); }
.band-stone { background: var(--stone-50); }
.band-green { background: var(--green); color: var(--white); }
.band-tight { padding-top: 0; }
@media (min-width: 640px) { .band { padding: 128px 0; } .band-tight { padding-top: 0; } }
@media (min-width: 1024px) { .band { padding: 160px 0; } .band-tight { padding-top: 0; } .band-detail { padding: 144px 0; } }

.grid-12 { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 80px; }
  .c5 { grid-column: span 5; } .c7 { grid-column: span 7; } .c4 { grid-column: span 4; } .c8 { grid-column: span 8; } .c6 { grid-column: span 6; }
  .c4-at9 { grid-column: 9 / span 4; } .c5-at8 { grid-column: 8 / span 5; }
  .items-center { align-items: center; } .items-end { align-items: end; }
}
.photo { overflow: hidden; border-radius: 12px; background: var(--stone-100); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.band-green .photo { background: var(--green-900); }
@media (min-width: 640px) { .photo.wide { aspect-ratio: 5 / 4; } }
@media (min-width: 1024px) { .photo.wide { aspect-ratio: 6 / 5; } }
.more { margin-top: 40px; }

/* Icon disc */
.disc { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--green-100); color: var(--green); }
.disc svg { width: 20px; height: 20px; }
.disc.lg { width: 48px; height: 48px; }
.disc.lg svg { width: 22px; height: 22px; }
.disc.on-green { background: rgba(255,255,255,.1); color: var(--white); }

/* Home: solution cards */
.cards { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 80px; } }
.card { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: 12px; background: var(--white); transition: box-shadow .3s; }
.card:hover { box-shadow: 0 12px 40px -12px rgba(17,20,18,.18); }
.card h3 { margin-top: 40px; font-size: 1.45rem; }
.card p { flex: 1; margin-top: 12px; font-size: .97rem; line-height: 1.7; color: var(--stone-500); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; font-size: .95rem; font-weight: 500; transition: color .2s; }
.card:hover .card-link { color: var(--green); }
.card:hover .card-link .i { transform: translateX(4px); }
@media (min-width: 1024px) { .card { padding: 32px; } }

/* Why us (green band) */
.values { display: grid; gap: 40px; margin-top: 48px; }
.values dt { margin-top: 20px; font-family: var(--caslon); font-size: 1.3rem; line-height: 1.375; }
.values dd { margin-top: 8px; font-size: .97rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.why-copy h2 { max-width: 36rem; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1024px) { .values { margin-top: 64px; } .why-copy { display: flex; flex-direction: column; justify-content: center; } }

/* Process */
.steps { display: grid; gap: 16px; margin-top: 56px; }
.steps li { display: flex; flex-direction: column; padding: 28px; border-radius: 12px; background: var(--stone-50); }
.steps .n { font-size: .9rem; font-weight: 600; color: var(--green); }
.steps h3 { margin-top: 32px; font-size: 1.5rem; }
.steps p { margin-top: 12px; font-size: .98rem; line-height: 1.7; color: var(--stone-500); }
.steps-cta { margin-top: 48px; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 80px; } .steps li { padding: 36px; } .steps h3 { margin-top: 56px; } }
.narrow { max-width: 48rem; }

/* Closing call to action (inset photograph) */
.closing { padding: 0 0 96px; background: var(--white); }
.closing.spaced { padding-top: 96px; }
.closing-box { position: relative; isolation: isolate; overflow: hidden; padding: 96px 24px; border-radius: 16px; background: var(--ink); color: var(--white); text-align: center; }
.closing-box .hero-img { animation: none; }
.closing-box .shade { background: rgba(0,0,0,.55); }
.closing-box h2 { max-width: 48rem; margin: 0 auto; font-size: 2.5rem; }
.closing-box p { max-width: 36rem; margin: 24px auto 0; font-size: 1.075rem; line-height: 1.7; color: rgba(255,255,255,.8); }
.closing-box .btn { margin-top: 40px; }
@media (min-width: 640px) { .closing { padding-bottom: 128px; } .closing.spaced { padding-top: 128px; } .closing-box { padding: 128px 48px; } .closing-box h2 { font-size: 3.4rem; } }
@media (min-width: 1024px) { .closing-box { padding: 160px 48px; } .closing-box h2 { font-size: 4rem; } }

/* Financing solutions: one panel per solution, addressable by #slug */
.panels { display: grid; gap: 16px; margin-top: 56px; }
.panel { display: grid; gap: 40px; padding: 28px; border-radius: 16px; background: var(--stone-50); }
.panel h3 { margin-top: 32px; font-size: 2.1rem; }
.panel > div > p { max-width: 32rem; margin-top: 20px; font-size: 1.05rem; line-height: 1.75; color: var(--stone-500); }
.panel h4 { font-size: .95rem; font-weight: 600; }
.uses { margin-top: 20px; }
.uses li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: rgba(17,20,18,.8); }
.uses li + li { margin-top: 14px; }
.uses svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }
.panel .text-link { margin-top: 36px; }
.fine-note { max-width: 48rem; margin-top: 40px; font-size: .88rem; line-height: 1.625; color: var(--stone-500); }
@media (min-width: 640px) { .panel { padding: 40px; } .panel h3 { font-size: 2.6rem; } }
@media (min-width: 1024px) {
  .panels { margin-top: 80px; }
  .panel { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; padding: 56px; }
  .panel > div:first-child { grid-column: span 6; }
  .panel > div:last-child { grid-column: 8 / span 5; padding-top: 80px; }
  .detail-head h2 { font-size: 3.4rem; }
  .detail-head .lead { padding-top: 12px; }
}
.detail-head h2 { font-size: 2.4rem; }
@media (min-width: 640px) { .detail-head h2 { font-size: 3rem; } }

/* Contact: introduction beside an application card */
.assure { margin-top: 40px; }
.assure li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.assure li + li { margin-top: 16px; }
.assure .tick { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--green-100); color: var(--green); }
.assure .tick svg { width: 15px; height: 15px; }
.contact-card { display: flex; flex-direction: column; justify-content: center; min-height: 420px; padding: 24px; border-radius: 16px; background: var(--stone-50); }
.contact-card h3 { font-size: 2.3rem; }
.contact-card p { max-width: 32rem; margin-top: 20px; font-size: 1.05rem; line-height: 1.75; color: var(--stone-500); }
.contact-card .hero-actions { margin-top: 40px; }
.contact-card .small { max-width: 26rem; margin-top: 28px; font-size: .82rem; line-height: 1.625; }
@media (min-width: 640px) { .contact-card { padding: 40px; } .contact-card h3 { font-size: 2.8rem; } }
@media (min-width: 1024px) { .contact-card { padding: 48px; } .sticky { position: sticky; top: 112px; } }
.contact-intro h2 { font-size: 2.3rem; }
.contact-intro .lead { margin-top: 24px; }
@media (min-width: 640px) { .contact-intro h2 { font-size: 2.8rem; } }

/* Legal pages */
.legal-rows { max-width: 54rem; }
.legal-rows .row { padding: 28px 0; border-top: 1px solid var(--stone-200); }
.legal-rows .row:last-child { border-bottom: 1px solid var(--stone-200); }
.legal-rows h2 { font-family: var(--caslon); font-size: 1.45rem; font-weight: 400; line-height: 1.375; }
.legal-rows p { margin-top: 8px; font-size: 1rem; line-height: 1.75; color: var(--stone-500); }
/* /confirm body */
.page-body p { max-width: 62ch; margin-bottom: 14px; font-size: 1.05rem; line-height: 1.75; color: var(--stone-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); }
.site-footer > .wrap { padding-top: 80px; padding-bottom: 40px; }
.foot { display: grid; gap: 56px; }
.foot-brand p { max-width: 24rem; margin-top: 24px; font-size: .95rem; line-height: 1.75; color: rgba(255,255,255,.6); }
.foot-brand .btn { margin-top: 32px; }
.foot-cols { display: grid; gap: 40px; }
.foot-cols h3 { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.45); }
.foot-cols ul { margin-top: 20px; }
.foot-cols li + li { margin-top: 12px; }
.foot-cols ul a { font-size: .95rem; color: rgba(255,255,255,.7); transition: color .2s; }
.foot-cols ul a:hover { color: var(--white); }
.foot-cols p { margin-top: 20px; font-size: .95rem; line-height: 1.625; color: rgba(255,255,255,.7); }
.foot-link { display: inline-block; margin-top: 16px; font-size: .95rem; font-weight: 500; }
.foot-link:hover { color: rgba(255,255,255,.8); }
.footer-fine { max-width: 48rem; margin-top: 80px; font-size: .82rem; line-height: 1.625; color: rgba(255,255,255,.45); }
.foot-base { display: flex; flex-direction: column-reverse; gap: 20px; margin-top: 32px; font-size: .85rem; color: rgba(255,255,255,.45); }
.foot-base a { color: rgba(255,255,255,.7); }
.foot-base a:hover { color: var(--white); }
.to-top { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: inherit; cursor: pointer; transition: color .2s; }
.to-top:hover { color: var(--white); }
.to-top .i { width: 14px; height: 14px; }
@media (min-width: 640px) {
  .site-footer > .wrap { padding-top: 96px; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-base { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .foot { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .foot-brand { grid-column: span 5; }
  .foot-cols { grid-column: span 7; }
}

/* ---------- Motion ---------- */
@keyframes hero-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up 1.1s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero-img, .fade-up, .faform-step.is-active { animation: none; }
}

/* ==========================================================
   The application (shared engine), in this brand's tokens
   ========================================================== */
.apply { display: grid; gap: 48px; align-items: start; }
.sub-display { font-size: 2.3rem; }
.next { margin-top: 32px; }
.next li { display: flex; flex-direction: column; padding: 20px 0; border-top: 1px solid var(--stone-200); }
.next li:last-child { border-bottom: 1px solid var(--stone-200); }
.next .n { font-size: .85rem; font-weight: 600; color: var(--green); }
.next b { margin-top: 8px; font-family: var(--caslon); font-size: 1.2rem; font-weight: 400; }
.next li > span:last-child { margin-top: 6px; font-size: .95rem; line-height: 1.65; color: var(--stone-500); }
.rail-fine { max-width: 30rem; margin-top: 24px; font-size: .85rem; line-height: 1.6; color: var(--stone-500); }
.rail-fine strong { color: var(--ink); font-weight: 600; }
.rail-fine a { color: var(--ink); text-decoration: underline; }
.form-card { overflow: hidden; border-radius: 16px; background: var(--stone-50); }
@media (min-width: 640px) { .sub-display { font-size: 2.8rem; } }
@media (min-width: 1024px) {
  .apply { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .apply-side { position: sticky; top: 112px; }
}

.welcome { display: none; margin: 24px 40px 0; padding: 24px; border-radius: 12px; background: var(--green-100); }
.welcome.is-active { display: block; }
.welcome-pill { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--green); color: var(--white); font-size: .78rem; font-weight: 600; }
.welcome-title { font-family: var(--caslon); font-size: 1.5rem; line-height: 1.25; }
.welcome-sub { margin-top: 6px; color: var(--stone-500); }

.rail-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 24px 40px 0; }
.rail-item { padding: 5px 12px; border-radius: 999px; background: var(--white); color: var(--stone-500); font-size: .8rem; font-weight: 500; }
.rail-item.is-current { background: var(--ink); color: var(--white); }
.rail-item.is-done { background: var(--green-100); color: var(--green); }

.faform-progress { display: flex; align-items: center; gap: 16px; padding: 20px 40px 0; }
.faform-bar { flex: 1; height: 4px; overflow: hidden; border-radius: 999px; background: var(--stone-200); }
.faform-fill { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--green); transition: width .4s var(--ease); }
.faform-count { font-size: .85rem; color: var(--stone-500); font-variant-numeric: tabular-nums; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.faform-step { display: none; min-width: 0; margin: 0; padding: 36px 40px 8px; border: 0; }
.faform-step.is-active { display: block; animation: step-in .45s var(--ease) both; }
.faform-tag { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--green); }
.faform-num { float: right; padding: 0; font-size: .85rem; color: var(--stone-500); }
.faform-step h3 { clear: both; margin: 14px 0 8px; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; }
.faform-help { margin: 0 0 24px; font-size: .97rem; line-height: 1.65; color: var(--stone-500); }
.faform-err { min-height: 20px; margin: 10px 0 0; font-size: .85rem; color: var(--danger); }
/* .faform-state is the SUBMITTING / SUCCESS panel, not a heading — it must be
   hidden until the engine activates it. */
.faform-state { display: none; padding: 64px 24px; text-align: center; }
.faform-state.is-active { display: block; }
.faform-state h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; line-height: 1.08; }
.faform-state p { max-width: 34rem; margin: 0 auto 28px; font-size: 1.05rem; line-height: 1.75; color: var(--stone-500); }
.faform-nav { display: flex; align-items: center; gap: 12px; padding: 16px 40px 36px; }
.faform-nav #fa-next { margin-left: auto; padding: 14px 28px; }
.hint { font-size: .85rem; color: var(--stone-500); }

/* Fields */
.field { margin-bottom: 18px; }
.lbl { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.inp { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--stone-200); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 1rem; outline: none; transition: border-color .2s; }
.inp:focus { border-color: var(--ink); }
.inp[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
select.inp { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23111412' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.inp[readonly], .inp.is-locked { background: var(--stone-100); color: var(--stone-500); }
.inp.is-held { border-color: var(--green-600); background: var(--green-100); }
.field-grid { display: grid; gap: 0 16px; }
.field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legal { margin-bottom: 16px; padding: 16px 18px; border-radius: 12px; background: var(--white); font-size: .85rem; line-height: 1.65; color: var(--stone-500); }

/* Options */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--stone-200); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.opt:hover { border-color: var(--stone-300); }
.opt input { position: absolute; width: 0; height: 0; opacity: 0; }
.opt:has(input:focus-visible) { outline: 2px solid var(--green-600); outline-offset: 2px; }
.opt:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.opt-key { display: grid; flex: 0 0 26px; height: 26px; place-items: center; border-radius: 999px; background: var(--stone-100); color: var(--stone-500); font-size: .78rem; font-weight: 600; }
.opt:has(input:checked) .opt-key { background: var(--green); color: var(--white); }
.opt-text { font-size: .97rem; font-weight: 500; color: var(--ink); }
.opt-note { display: block; font-size: .85rem; font-weight: 400; line-height: 1.5; color: var(--stone-500); }

/* Sliders. The engine writes the fill as --pct on the input. */
.slider-wrap { padding: 4px 0 2px; }
.slider-val { font-family: var(--serif); font-size: 3rem; line-height: 1.05; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.slider-cap { margin-left: 8px; font-size: .9rem; color: var(--stone-500); }
.slider { width: 100%; height: 28px; margin: 16px 0 6px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; outline: none; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--green) var(--pct, 35%), var(--stone-200) var(--pct, 35%)); }
.slider::-moz-range-track { height: 6px; border-radius: 999px; background: var(--stone-200); }
.slider::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--green); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 2px solid var(--green); border-radius: 999px; background: var(--white); box-shadow: 0 2px 8px rgba(17,20,18,.15); }
.slider::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--green); border-radius: 999px; background: var(--white); }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(46,82,64,.3); }
.slider-ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--stone-500); }

/* MCA rows */
.mca-rows { display: grid; gap: 8px; margin-bottom: 12px; }
.mca-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }

/* Uploads */
.drop { position: relative; display: block; padding: 32px; border: 1.5px dashed var(--stone-300); border-radius: 12px; background: var(--white); color: var(--stone-500); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-dragging { border-color: var(--green); background: var(--green-100); }
.drop.has-files { border-style: solid; }
.drop p { margin: 0 0 4px; color: var(--ink); }
.drop small { font-size: .85rem; }
.drop input[type="file"] { position: absolute; width: 0; height: 0; opacity: 0; }
.filelist { margin: 14px 0 0; padding: 0; }
.file-item { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; overflow: hidden; margin-bottom: 8px; padding: 12px 16px; border: 1px solid var(--stone-200); border-radius: 12px; background: var(--white); }
.file-name { overflow: hidden; font-size: .92rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: .8rem; color: var(--stone-500); }
.file-x { padding: 0 2px; border: 0; background: none; color: var(--stone-500); font-size: 18px; line-height: 1; cursor: pointer; }
.file-x:hover { color: var(--danger); }
.file-bar { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--stone-300); transition: width .2s ease; }
.file-item.is-done .file-bar { width: 100% !important; background: var(--green); }
.file-item.is-failed .file-bar { background: var(--danger); }
.upbar { overflow: hidden; max-width: 320px; height: 6px; margin: 12px auto; border-radius: 999px; background: var(--stone-200); }
.upbar > i { display: block; width: 0; height: 100%; background: var(--green); transition: width .2s ease; }

/* Held ("on file") */
.held-note { margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; background: var(--white); font-size: .92rem; color: var(--stone-500); }
.held-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--green); color: var(--white); font-size: .78rem; font-weight: 500; }
.keep-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .92rem; color: var(--stone-500); }
.keep-row input { width: 16px; height: 16px; accent-color: var(--green); }

/* Signature */
.sign-box { position: relative; padding: 14px; border: 1px solid var(--stone-200); border-radius: 12px; background: var(--white); }
.sign-pad { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; }
.sign-rule { display: block; margin: 0 14px; border-top: 1.5px dashed var(--stone-300); }
.sign-hint { position: absolute; left: 0; right: 0; top: 46%; color: var(--stone-500); font-size: .92rem; text-align: center; pointer-events: none; }
.sign-actions { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 16px; font-size: .92rem; color: var(--stone-500); }
.sign-clear { border: 0; background: none; color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: underline; cursor: pointer; }

/* Banner / submitting / success */
.banner { display: none; margin: 24px 40px 0; padding: 14px 16px; border-radius: 8px; font-size: .92rem; }
.banner.is-active { display: block; background: var(--danger-bg); color: var(--danger); }
.banner a { color: var(--danger); text-decoration: underline; }
.spinner { width: 40px; height: 40px; margin: 0 auto 18px; border: 3px solid var(--stone-200); border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 24px; }

@media (max-width: 640px) {
  .opts, .field-grid-2, .field-grid-3, .mca-row { grid-template-columns: 1fr; }
  .rail-list { padding: 20px 20px 0; }
  .faform-progress { padding: 16px 20px 0; }
  .faform-step { padding: 28px 20px 6px; }
  .faform-step h3 { font-size: 1.7rem; }
  .faform-nav { padding: 12px 20px 26px; }
  .faform-nav .hint { display: none; }
  .welcome, .banner { margin: 20px 20px 0; }
  .slider-val { font-size: 2.4rem; }
}
