/* ============================================================
   DealFlow Home Buyers — Black & Gold luxury theme
   Built around the official logo: gold house-and-key on black
   ============================================================ */

:root {
  --black: #0a0a0c;
  --coal: #121215;
  --coal-2: #17171c;
  --line: #26262c;
  --gold: #c9a227;
  --gold-light: #e9c767;
  --gold-pale: #f4e3ac;
  --gold-deep: #8c6d1f;
  --cream: #f4efe4;
  --muted: #a09a8d;
  --muted-dim: #6e6a60;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, "Segoe UI", sans-serif;
  --gold-grad: linear-gradient(120deg, #8c6d1f 0%, #c9a227 35%, #f4e3ac 50%, #c9a227 65%, #8c6d1f 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2c2c33; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

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

a { color: inherit; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold-grad);
}
.eyebrow.centered::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold-grad);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.section { padding: clamp(90px, 10vw, 150px) 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: 0.01em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; font-weight: 300; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 12, 0.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(201, 162, 39, 0.16);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 46px; height: auto; filter: drop-shadow(0 2px 10px rgba(201, 162, 39, 0.35)); }
.brand-text {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.brand-text small {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold-light);
}
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-grad);
  transition: width 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--cream); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold-light);
  border-radius: 8px;
  font-size: 1.25rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 38px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, background 0.5s, color 0.5s, border-color 0.5s;
}
.btn-gold {
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #0a0a0c;
  font-weight: 600;
}
.btn-gold:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.45);
}
.btn-ghost:hover {
  border-color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
  transform: translateY(-1px);
}
.btn-sm { padding: 12px 24px; font-size: 0.7rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 84px;
}
.hero-bg {
  position: absolute;
  inset: -6% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 18% 88%, rgba(201, 162, 39, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(10,10,12,0.6) 0%, rgba(10,10,12,0.5) 40%, rgba(10,10,12,0.95) 100%),
    linear-gradient(100deg, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0.28) 60%, rgba(10,10,12,0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 44px; }
.hero h1 {
  font-size: clamp(3.4rem, 8.6vw, 7.2rem);
  letter-spacing: 0.005em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: #cfc9ba;
  max-width: 560px;
  margin: 28px 0 42px;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }
.trust-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.trust-strip ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-pale);
  font-weight: 400;
}
.trust-strip li svg { flex: none; }
.scroll-hint {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 120px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: hintDrop 2.2s var(--ease) infinite;
}
@keyframes hintDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  background: #0d0d10;
  overflow: hidden;
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee-track span::after {
  content: "";
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--gold-deep);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 130px 1fr 1.4fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: baseline;
  padding: clamp(34px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.6s ease;
}
.step:hover { background-color: rgba(201, 162, 39, 0.035); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
}
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; }
.step p { color: var(--muted); font-size: 1.02rem; max-width: 52ch; }

/* ---------- Feature rows (alternating image/text) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: clamp(40px, 5vw, 70px) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .feature-media { order: 2; }
.feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.feature-media img {
  width: 100%;
  height: clamp(300px, 34vw, 480px);
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
  filter: saturate(0.92) contrast(1.04);
}
.feature-row:hover .feature-media img { transform: scale(1.04); }
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(10,10,12,0.55));
  pointer-events: none;
}
.feature-copy h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 18px; }
.feature-copy p { color: var(--muted); font-size: 1.05rem; }
.feature-copy p + p { margin-top: 16px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 860px; margin: 0 auto; }
.card {
  background: linear-gradient(180deg, var(--coal-2), var(--coal));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(201,162,39,0.4); box-shadow: 0 24px 50px rgba(0,0,0,0.5); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.card h3 { font-size: 1.45rem; margin-bottom: 12px; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.99rem; }

/* ---------- Pricing ---------- */
.price-card { text-align: left; display: flex; flex-direction: column; }
.price-card .plan {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 16px; font-weight: 500;
}
.price-card h3 { font-size: 1.7rem; margin-bottom: 8px; }
.price-card .price-line {
  font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; color: var(--gold-pale); margin: 12px 0 18px;
}
.price-card ul { list-style: none; margin-bottom: 30px; flex: 1; }
.price-card li {
  color: var(--muted); font-size: 0.98rem;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "";
  position: absolute; left: 2px; top: 17px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Forms ---------- */
.form-section { background: radial-gradient(900px 480px at 50% 0%, rgba(201,162,39,0.07), transparent 65%), var(--black); }
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, #141418, #101014);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 6px;
  padding: clamp(34px, 5vw, 60px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute; top: -1px; left: 8%; right: 8%; height: 1px;
  background: var(--gold-grad);
}
.form-row { margin-bottom: 22px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 15px 16px;
  background: #0d0d10;
  border: 1px solid #2b2b32;
  border-radius: 3px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input::placeholder, textarea::placeholder { color: var(--muted-dim); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a227' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
select option { background: #141418; }
textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 2px solid var(--gold-deep);
  padding: 4px 0 4px 16px;
  margin: 26px 0;
}
.form-note a { color: var(--gold-light); }
.form-success {
  display: none;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.06);
  border-radius: 4px;
  padding: 26px;
  margin-top: 22px;
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success h3 em { font-style: italic; }
.form-success p { color: var(--muted); font-size: 0.98rem; }
.form-success a { color: var(--gold-light); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 6px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-pale); }
.faq summary .faq-icon {
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.faq details[open] summary .faq-icon { transform: rotate(45deg); background: rgba(201,162,39,0.12); }
.faq details p { color: var(--muted); padding: 0 6px 30px; max-width: 62ch; font-size: 1.02rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  text-align: center;
  padding: clamp(110px, 12vw, 170px) 20px;
  overflow: hidden;
  border-top: 1px solid rgba(201,162,39,0.2);
  border-bottom: 1px solid rgba(201,162,39,0.2);
}
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-veil { position: absolute; inset: 0; background: rgba(8,8,10,0.82); }
.cta-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.cta-inner p { color: #cfc9ba; font-size: 1.1rem; margin-bottom: 38px; }
.cta-contact { margin-top: 26px; font-size: 0.95rem; color: var(--muted); letter-spacing: 0.06em; }
.cta-contact a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(201,162,39,0.4); }

/* ---------- Footer ---------- */
.site-footer {
  background: #070709;
  padding: clamp(70px, 8vw, 110px) 0 0;
  text-align: center;
}
.footer-logo { width: min(300px, 64vw); margin: 0 auto 50px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  padding-bottom: 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-grid p, .footer-grid li { color: var(--muted); font-size: 0.95rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { text-decoration: none; transition: color 0.3s; }
.footer-grid a:hover { color: var(--gold-pale); }
.footer-contact a { color: var(--gold-light); }
.disclaimer {
  border-top: 1px solid var(--line);
  padding: 26px 20px;
  font-size: 0.82rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
}
.footer-bottom { padding: 0 20px 34px; font-size: 0.8rem; color: var(--muted-dim); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-hint::after { animation: none; }
  .intro { opacity: 1; animation: none; }
  .hero-logo-wrap::before { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-media { order: 0; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .scroll-hint { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: rgba(10,10,12,0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 24px clamp(20px, 4vw, 48px) 34px;
    border-bottom: 1px solid rgba(201,162,39,0.2);
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 0.9rem; padding: 10px 0; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .trust-strip ul { justify-content: flex-start; }
}

/* ---------- Privacy policy ---------- */
.policy { max-width: 780px; }
.policy h3 { font-size: 1.45rem; margin: 2.4em 0 0.7em; color: var(--gold-pale); font-weight: 600; }
.policy p, .policy li { color: var(--muted); font-weight: 300; line-height: 1.8; font-size: 1.03rem; }
.policy p { margin-bottom: 1.1em; }
.policy ul { margin: 0.6em 0 1.2em 1.3em; }
.policy li { margin-bottom: 0.5em; }
.policy a { color: var(--gold-light); }
.policy .updated { font-size: 0.9rem; color: var(--muted-dim); }

/* ---------- Animated hero logo (mouse-tracked 3D tilt) ---------- */
.hero-logo-wrap { perspective: 1100px; display: flex; justify-content: center; margin-bottom: 2rem; }
.hero-logo { position: relative; width: min(470px, 82vw); transform-style: preserve-3d; will-change: transform; }
/* mp4 fallback has no alpha channel: blend its black away like before */
.hero-logo.is-fallback { mix-blend-mode: screen; }
.hero-logo video {
  display: block; width: 100%; height: auto; border-radius: 14px;
}
.hero-logo canvas {
  display: block; width: 100%; height: auto;
}
.hero-logo.is-fallback video {
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 42%, transparent 94%);
  mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 42%, transparent 94%);
}


/* ---------- 3D hero canvas ---------- */
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Cursor ambience: a whisper of warm light that follows the mouse ---------- */
.hero-ambience {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: screen; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(540px 540px at var(--ax, 50%) var(--ay, 32%),
    rgba(255, 214, 140, 0.10), rgba(255, 214, 140, 0.03) 45%, transparent 70%);
}
.hero-ambience.on { opacity: 1; }

/* ---------- Layered 3D hero: staged intro + mouse parallax ---------- */
.hero [data-depth] { will-change: translate; }
.intro { opacity: 0; }
.intro-logo { animation: logoIn 1.15s cubic-bezier(.22,.8,.3,1) .1s forwards; }
.intro-d1 { animation: riseIn .9s var(--ease) .38s forwards; }
.intro-d2 { animation: riseIn .9s var(--ease) .52s forwards; }
.intro-d3 { animation: riseIn .9s var(--ease) .68s forwards; }
.intro-d4 { animation: riseIn .9s var(--ease) .84s forwards; }
.intro-d5 { animation: fadeIn 1.2s ease 1.1s forwards; }
@keyframes logoIn {
  from { opacity: 0; transform: scale(.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* soft one-time gold bloom behind the logo as it lands */
.hero-logo-wrap { position: relative; }
.hero-logo-wrap::before {
  content: ""; position: absolute; inset: -18%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201,162,39,.20), transparent 70%);
  opacity: 0; animation: bloomIn 1.8s ease .15s forwards;
}
.hero-logo-wrap .hero-logo { z-index: 1; }
@keyframes bloomIn {
  0% { opacity: 0; transform: scale(.8); }
  45% { opacity: .8; }
  100% { opacity: .35; transform: scale(1.06); }
}

/* ---------- Form consent ---------- */
.form-consent { font-size: 0.78rem; color: var(--muted-dim); text-align: center; line-height: 1.65; max-width: 46ch; margin: 16px auto 0; }

/* Money-rain canvas (hero-fx.js): pointer-driven, non-interactive.
   Sits behind the headline text (z-index 1 vs .hero-inner's 2). */
.hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* Rain on/off toggle */
.rain-toggle {
  position: absolute; left: 18px; bottom: 18px; z-index: 7;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8c95a, #c9a227 60%, #9a7a1c);
  border: 1px solid rgba(232, 201, 90, 0.7);
  color: #141414; cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}
.rain-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.5); }
.rain-toggle[aria-pressed="false"] { opacity: 0.45; box-shadow: none; }
.rain-toggle[aria-pressed="false"]::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 2px; height: 125%; background: #9a9a9a; border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.rain-toggle[aria-pressed="false"]:hover { transform: none; }
@media (max-width: 640px) { .rain-toggle { left: 12px; bottom: 12px; width: 44px; height: 44px; } }

/* Aurelia chat widget */
#df-chat-root { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: inherit; }
.df-chat-fab {
  width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, #e8c95a, #c9a227 60%, #9a7a1c);
  color: #141414; border: 1px solid rgba(232, 201, 90, 0.7);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.df-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 162, 39, 0.5); }
.df-chat-open .df-chat-fab { transform: scale(0.92); }
.df-chat-panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(380px, calc(100vw - 40px)); height: min(540px, calc(100dvh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #101010; border: 1px solid rgba(201, 162, 39, 0.4); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}
.df-chat-panel[hidden] { display: none; }
.df-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 12px; background: #0a0a0a;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.df-chat-online { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; flex: none; }
.df-chat-names { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.df-chat-names strong { color: #e8d48a; font-size: 15px; }
.df-chat-names span { color: #8a8a8a; font-size: 11.5px; }
.df-chat-close { background: none; border: none; color: #8a8a8a; font-size: 24px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.df-chat-close:hover { color: #e8d48a; }
.df-chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.df-chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.df-chat-user { align-self: flex-end; background: #c9a227; color: #141414; border-bottom-right-radius: 4px; }
.df-chat-bot { align-self: flex-start; background: #1c1c1c; color: #e9e9e9; border: 1px solid rgba(201, 162, 39, 0.2); border-bottom-left-radius: 4px; }
.df-chat-typing { display: flex; gap: 5px; padding: 13px 15px; }
.df-chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #c9a227; animation: df-chat-blink 1.1s infinite; }
.df-chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.df-chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes df-chat-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.df-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(201, 162, 39, 0.25); background: #0a0a0a; }
.df-chat-input {
  flex: 1; background: #1c1c1c; border: 1px solid rgba(201, 162, 39, 0.3);
  color: #f0f0f0; border-radius: 999px; padding: 10px 15px; font-size: 14px; outline: none;
}
.df-chat-input:focus { border-color: #c9a227; }
.df-chat-send {
  background: #c9a227; color: #141414; border: none; border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.df-chat-send:disabled { opacity: 0.5; cursor: default; }
/* Aurelia avatar: portrait on the button, header, and her replies */
.df-chat-fab { overflow: hidden; padding: 0; }
.df-chat-fab-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.df-chat-fab-x { display: none; font-size: 32px; line-height: 1; color: #141414; }
.df-chat-open .df-chat-fab-avatar { display: none; }
.df-chat-open .df-chat-fab-x { display: block; }
.df-chat-avatar { position: relative; flex: none; width: 44px; height: 44px; }
.df-chat-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid rgba(201, 162, 39, 0.65); }
.df-chat-avatar .df-chat-online { position: absolute; right: 0; bottom: 0; border: 2px solid #0a0a0a; }
.df-chat-botrow { display: flex; gap: 8px; align-items: flex-end; align-self: flex-start; max-width: 88%; }
.df-chat-msg-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(201, 162, 39, 0.5); }
@media (max-width: 640px) { #df-chat-root { right: 14px; bottom: 14px; } }
