/* ============================================================
   Marvel Mortgage — Design System
   Palette: Champagne Gold on Rich Black
   ============================================================ */

:root {
  --ink: #0b0a08;
  --ink-soft: #141210;
  --ink-raised: #1c1915;
  --line-dark: rgba(212, 184, 124, 0.18);
  --line-darker: rgba(212, 184, 124, 0.10);

  --gold: #d4b87c;
  --gold-bright: #e8d5a3;
  --gold-deep: #a8894e;
  --gold-grad: linear-gradient(135deg, #e8d5a3 0%, #d4b87c 45%, #b8945a 100%);

  --paper: #faf7f0;
  --paper-soft: #f3eee2;
  --cream-text: #f5f0e6;
  --muted-on-dark: rgba(245, 240, 230, 0.62);
  --muted-on-light: #6b6455;
  --ink-on-paper: #171410;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;

  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream-text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.display em {
  font-style: italic;
  font-weight: 300;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 16px;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted-on-dark);
  font-weight: 300;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.45s var(--ease-lux);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(212, 184, 124, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(212, 184, 124, 0.38);
}

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--cream-text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 184, 124, 0.06);
}

.btn .arrow { transition: transform 0.45s var(--ease-lux); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s var(--ease-lux), border-color 0.5s, padding 0.5s var(--ease-lux);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 10, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line-darker);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav.scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  background: rgba(212, 184, 124, 0.05);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--cream-text);
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted-on-dark);
  transition: color 0.3s;
  position: relative;
  padding: 6px 0;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-lux);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--gold-bright); }
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { width: 100%; }

.nav-links .btn { padding: 13px 26px; font-size: 11.5px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--gold);
  transition: all 0.35s var(--ease-lux);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 0 80px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -30%; right: -15%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(212, 184, 124, 0.14) 0%, rgba(212, 184, 124, 0.04) 40%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(212, 184, 124, 0.07) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(212,184,124,0.04) 1px, transparent 1px);
  background-size: clamp(80px, 12vw, 160px) 100%;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent);
}

.hero h1 {
  font-size: clamp(46px, 7.2vw, 96px);
  max-width: 12ch;
  margin: 28px 0 30px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 30px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 230, 0.4);
}

.hero-note strong { color: var(--gold); font-weight: 500; }

/* ---------- Ticker / marquee strip ---------- */

.ticker {
  border-top: 1px solid var(--line-darker);
  border-bottom: 1px solid var(--line-darker);
  overflow: hidden;
  padding: 18px 0;
  background: rgba(212, 184, 124, 0.025);
}

.ticker-track {
  display: flex;
  gap: 64px;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 64px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.45);
  white-space: nowrap;
}

.ticker-item::after {
  content: "✦";
  color: var(--gold);
  font-size: 10px;
}

/* Marquee tracks are cloned & measured by JS (initMarquee in main.js):
   it sets --marquee-shift to exactly one set-width, so the loop is
   seamless at any viewport width. */
.marquee-on {
  animation: marquee-scroll linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

/* ---------- Sections ---------- */

section { position: relative; }

.section-pad { padding: clamp(90px, 11vw, 150px) 0; }

.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  margin: 22px 0 20px;
  max-width: 18ch;
}

.section-head.centered { text-align: center; }
.section-head.centered h2, .section-head.centered .lede { margin-left: auto; margin-right: auto; }

/* ---------- Stats band ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line-darker);
  border-left: 1px solid var(--line-darker);
}

.stat-cell {
  border-right: 1px solid var(--line-darker);
  border-bottom: 1px solid var(--line-darker);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
  transition: background 0.5s var(--ease-lux);
}

.stat-cell:hover { background: rgba(212, 184, 124, 0.04); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 350;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ---------- Loan cards ---------- */

.loan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line-darker);
  border: 1px solid var(--line-darker);
}

.loan-card {
  background: var(--ink);
  padding: clamp(32px, 3.5vw, 48px);
  position: relative;
  transition: background 0.5s var(--ease-lux);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}

.loan-card:hover { background: var(--ink-soft); }

.loan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-lux);
}

.loan-card:hover::before { transform: scaleX(1); }

.loan-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-deep);
}

.loan-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--cream-text);
}

.loan-card p {
  font-size: 14.5px;
  color: var(--muted-on-dark);
  flex-grow: 1;
}

.loan-link {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.loan-link .arrow { transition: transform 0.4s var(--ease-lux); }
.loan-card:hover .loan-link .arrow { transform: translateX(6px); }

/* ---------- Process ---------- */

.light-section {
  background: var(--paper);
  color: var(--ink-on-paper);
}

.light-section .lede { color: var(--muted-on-light); }
.light-section .display em {
  background: linear-gradient(135deg, #a8894e, #8a6c35);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid rgba(23, 20, 16, 0.15);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -14px;
  left: 0;
  background: var(--paper);
  padding-right: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-deep);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 14.5px;
  color: var(--muted-on-light);
  line-height: 1.7;
}

/* ---------- Split feature (about preview) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
}

.portrait-frame .frame-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.5;
  transform: translate(20px, 20px);
  transition: transform 0.6s var(--ease-lux);
  z-index: 0;
}

.portrait-frame:hover .frame-border { transform: translate(12px, 12px); }

.portrait-ph {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--ink-raised) 0%, var(--ink-soft) 100%);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
}

.portrait-ph .ph-initials {
  width: 96px; height: 96px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  color: var(--gold);
}

.portrait-ph .ph-note {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.35);
}

.signature-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-darker);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.sig-item .sig-label {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.sig-item .sig-value {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--cream-text);
}

/* ---------- Testimonials ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

/* Slow-scrolling review marquee (home page) */
.reviews-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.reviews-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  width: max-content;
}

.reviews-marquee:hover .reviews-track,
.reviews-track:focus-within { animation-play-state: paused; }

.reviews-track .review-card {
  width: min(400px, 82vw);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee-on { animation: none; }
}

.review-card {
  border: 1px solid var(--line-darker);
  padding: clamp(30px, 3.5vw, 44px);
  background: rgba(212, 184, 124, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.5s, transform 0.5s var(--ease-lux);
}

.review-card:hover {
  border-color: var(--line-dark);
  transform: translateY(-4px);
}

.review-stars { color: var(--gold); letter-spacing: 4px; font-size: 14px; }

.review-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.5;
  color: var(--cream-text);
  flex-grow: 1;
}

.review-card cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ---------- CTA panel ---------- */

.cta-panel {
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,184,124,0.12), transparent 55%),
    var(--ink-soft);
  padding: clamp(56px, 8vw, 110px) clamp(28px, 6vw, 90px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel h2 {
  font-size: clamp(34px, 5vw, 64px);
  margin: 20px auto 24px;
  max-width: 16ch;
}

.cta-panel .lede { margin: 0 auto 40px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line-darker);
  padding: clamp(56px, 7vw, 90px) 0 40px;
  background: #080705;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: 56px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-col a, .footer-col li, .footer-col p {
  font-size: 14px;
  color: var(--muted-on-dark);
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--gold-bright); }

.footer-brand-blurb { margin-top: 18px; max-width: 34ch; font-size: 13.5px; line-height: 1.7; }

.compliance {
  border-top: 1px solid var(--line-darker);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compliance p {
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.38);
}

.compliance a { color: rgba(212, 184, 124, 0.7); }
.compliance a:hover { color: var(--gold-bright); }

.compliance-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.eho-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.45);
}

.eho-badge svg { flex-shrink: 0; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 190px 0 90px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  margin: 24px 0 22px;
  max-width: 14ch;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  max-width: 900px;
}

.team-card {
  border: 1px solid var(--line-darker);
  background: rgba(212,184,124,0.02);
  transition: border-color 0.5s;
}

.team-card:hover { border-color: var(--line-dark); }

.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--ink-raised), var(--ink-soft));
  border-bottom: 1px solid var(--line-darker);
  display: grid;
  place-items: center;
}

.team-photo .ph-initials {
  width: 84px; height: 84px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
}

.team-info { padding: 28px; }

.team-info h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
}

.team-info .team-role {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 8px 0 4px;
}

.team-info .team-nmls {
  font-size: 12.5px;
  color: rgba(245,240,230,0.4);
  margin-bottom: 14px;
}

.team-info p { font-size: 14px; color: var(--muted-on-dark); }

/* ---------- Prose / legal pages ---------- */

.prose {
  max-width: 760px;
  padding-bottom: clamp(90px, 10vw, 140px);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin: 48px 0 16px;
  color: var(--gold-bright);
}

.prose p, .prose li {
  font-size: 15.5px;
  color: var(--muted-on-dark);
  margin-bottom: 16px;
  line-height: 1.8;
}

.prose ul { padding-left: 22px; margin-bottom: 16px; }

.prose strong { color: var(--cream-text); font-weight: 500; }

.prose a { color: var(--gold); border-bottom: 1px solid rgba(212,184,124,0.3); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-darker);
}

.contact-row .c-label {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-row .c-value {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  color: var(--cream-text);
  transition: color 0.3s;
}

a.c-value:hover { color: var(--gold-bright); }

.contact-row .c-sub { font-size: 13px; color: rgba(245,240,230,0.4); }

/* ---------- Forms ---------- */

.form-card {
  border: 1px solid var(--line-dark);
  background: var(--ink-soft);
  padding: clamp(32px, 4vw, 56px);
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(212,184,124,0.03);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 16px 18px;
  color: var(--cream-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  transition: border-color 0.35s, background 0.35s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212,184,124,0.06);
}

.field input::placeholder, .field textarea::placeholder { color: rgba(245,240,230,0.28); }

.field select option { background: var(--ink-soft); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.consent-note {
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(245,240,230,0.38);
  margin-top: 20px;
}

/* ---------- Apply funnel ---------- */

.funnel-shell {
  max-width: 720px;
  margin: 0 auto;
}

.funnel-progress {
  height: 2px;
  background: var(--line-darker);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.funnel-progress-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--gold-grad);
  width: 0%;
  transition: width 0.6s var(--ease-lux);
}

.funnel-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.4);
  margin-bottom: 14px;
}

.funnel-step { display: none; animation: stepIn 0.55s var(--ease-lux); }
.funnel-step.active { display: block; }

/* fieldset/legend browser defaults draw a border box with the heading
   floated onto it — strip them so steps render as plain blocks */
fieldset.funnel-step { border: none; padding: 0; margin: 0; min-width: 0; }
.funnel-step legend { display: block; width: 100%; padding: 0; float: none; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.funnel-step h2 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 12px;
  text-align: center;
}

.funnel-step .step-sub {
  color: var(--muted-on-dark);
  font-size: 15px;
  margin-bottom: 36px;
  text-align: center;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 480px) {
  .choice-grid { grid-template-columns: 1fr; }
}

.choice {
  border: 1px solid var(--line-dark);
  background: rgba(212,184,124,0.02);
  border-radius: 2px;
  padding: 24px 22px;
  cursor: pointer;
  transition: all 0.35s var(--ease-lux);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--cream-text);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.choice small { font-size: 12.5px; color: rgba(245,240,230,0.45); }

.choice:hover {
  border-color: var(--gold);
  background: rgba(212,184,124,0.07);
  transform: translateY(-2px);
}

.choice.selected {
  border-color: var(--gold);
  background: rgba(212,184,124,0.1);
  box-shadow: 0 0 0 1px var(--gold);
}

.funnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  gap: 16px;
}

.funnel-back {
  background: none;
  border: none;
  color: rgba(245,240,230,0.45);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 0;
  transition: color 0.3s;
}

.funnel-back:hover { color: var(--gold-bright); }
.funnel-back[hidden] { visibility: hidden; }

.funnel-success {
  text-align: center;
  padding: 40px 0;
}

.funnel-success .success-mark {
  width: 88px; height: 88px;
  margin: 0 auto 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--gold);
  animation: stepIn 0.7s var(--ease-lux);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Skip link (a11y) ---------- */

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  font-size: 13px;
  border-radius: 2px;
  transition: top 0.3s;
}

.skip-link:focus { top: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait-frame { max-width: 420px; }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 340px);
    background: rgba(11, 10, 8, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 44px;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.55s var(--ease-lux);
    border-left: 1px solid var(--line-darker);
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 15px; }
  .nav-toggle { display: flex; z-index: 110; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
}
