/* ── Header ───────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgb(250 247 245 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.top__nav { display: flex; gap: 1.75rem; }
.top__cta { display: flex; align-items: center; gap: 1.1rem; }
.top__phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.top__phone svg { width: 1rem; height: 1rem; color: var(--red); }
@media (max-width: 960px) { .top__nav { display: none; } }
@media (max-width: 560px) {
  .top__phone span { display: none; }
  .top__phone { width: 2.6rem; height: 2.6rem; justify-content: center; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--field); }
  .brand__name small { display: none; }
  .brand__name { font-size: 0.98rem; }
}

/* ── Shared section rhythm ────────────────────────────────────────────────── */
section { padding-block: clamp(5.5rem, 12vw, 10rem); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 52ch; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  min-height: min(calc(100svh - 4.5rem - 4rem), 760px);
}
.hero__title { font-size: clamp(2.35rem, 3.8vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
@media (min-width: 901px) { .hero__title .line > span { white-space: nowrap; } }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; padding: 0; margin: 1.75rem 0 0; color: var(--ink-2); font-size: 0.95rem; font-weight: 550; }
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before { content: ""; width: 1rem; height: 1rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a51c30' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }

.hero__photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--surface); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__note {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; width: fit-content;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem; border-radius: 12px;
  background: var(--card); color: var(--ink); font-size: 0.95rem;
  box-shadow: 0 10px 30px -12px rgb(60 20 25 / 0.45);
}
.hero__note-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgb(31 107 69 / 0.15); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; }
  .hero__photo { aspect-ratio: 16 / 10; order: -1; }
  .hero__note { font-size: 0.85rem; padding: 0.55rem 0.8rem; left: 0.6rem; bottom: 0.6rem; }
  .hero__sub { margin-top: 1rem; }
  .hero__actions { margin-top: 1.5rem; }
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.how { background: var(--card); border-block: 1px solid var(--line); }
.steps { position: relative; list-style: none; padding: 0; margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
/* The connecting rule, drawn left to right when the section arrives */
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.45rem; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease-in-out);
}
.steps.is-in::before { transform: scaleX(1); }
.step { position: relative; }
.step__num {
  position: relative; display: inline-grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--red); color: var(--red);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 1.4rem; font-size: 1.35rem; letter-spacing: -0.015em; }
.step p { margin-top: 0.6rem; color: var(--ink-2); max-width: 34ch; }
.step__num, .step h3, .step p { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.steps.is-in .step__num, .steps.is-in .step h3, .steps.is-in .step p { opacity: 1; transform: none; }
/* each step lands as the rule reaches it */
.steps.is-in .step:nth-child(1) > * { transition-delay: 150ms; }
.steps.is-in .step:nth-child(2) > * { transition-delay: 500ms; }
.steps.is-in .step:nth-child(3) > * { transition-delay: 850ms; }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 2.25rem; padding-left: 0.1rem; }
  .steps::before { left: 1.45rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .steps.is-in::before { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 2.9rem 1fr; column-gap: 1.2rem; }
  .step h3 { margin-top: 0.35rem; grid-column: 2; }
  .step p { grid-column: 2; }
  .step__num { grid-row: span 2; }
}

/* ── Cover ────────────────────────────────────────────────────────────────── */
.cover__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cover__photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 5.6; background: var(--surface); }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; }
.cover__copy .lead { margin-top: 1.25rem; }
.cover__types { margin: 2.25rem 0 0; }
.cover__types > div { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.25rem; }
@media (min-width: 1200px) { .cover__types > div { grid-template-columns: 12rem 1fr; gap: 1rem; } }
.cover__types > div:last-child { border-bottom: 1px solid var(--line); }
.cover__types dt { font-weight: 700; }
.cover__types dd { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.also { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); }
.also p { font-size: 0.97rem; color: var(--ink-2); }
.also strong { color: var(--ink); }
@media (max-width: 900px) {
  .cover__grid { grid-template-columns: 1fr; }
  .cover__photo { aspect-ratio: 4 / 3; }
}

/* ── Why a broker (the dark band) ─────────────────────────────────────────── */
.why { background: var(--red-deep); color: var(--on-dark); }
.why ::selection { background: var(--on-dark); color: var(--red-deep); }
.why :focus-visible { outline-color: var(--on-dark); }
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why__title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; position: sticky; top: 7rem; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li { padding: 1.75rem 0; border-top: 1px solid rgb(248 239 237 / 0.2); }
.why__list li:last-child { border-bottom: 1px solid rgb(248 239 237 / 0.2); }
.why__list h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
.why__list p { margin-top: 0.5rem; color: var(--on-dark-2); max-width: 46ch; }
@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__title { position: static; }
}

/* ── About ────────────────────────────────────────────────────────────────── */
.about__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__portrait {
  aspect-ratio: 4 / 5; border-radius: 22px; background: var(--surface);
  display: grid; place-items: center; align-content: center; gap: 0.5rem;
  border: 1.5px dashed var(--field);
}
.about__portrait span { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 7vw, 5rem); color: var(--red); letter-spacing: -0.03em; }
.about__portrait small { color: var(--ink-2); font-size: 0.9rem; }
.about__copy .lead { margin-top: 1.25rem; }
.about__creds { margin-top: 1.5rem; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.about__creds:empty { display: none; }
@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 20rem; }
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { background: var(--card); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.75rem; padding: 1rem 0; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 1.1rem; height: 1.1rem; flex: none; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--red); border-radius: 2px; transition: transform 250ms var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
/* Height animates through grid rows, so the answer never pops in */
.qa__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-out); }
.qa__body > div { overflow: hidden; }
.qa__body p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 60ch; opacity: 0; transition: opacity 260ms ease; }
.qa.is-open .qa__body { grid-template-rows: 1fr; }
.qa.is-open .qa__body p { opacity: 1; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } }

/* ── Closing CTA ──────────────────────────────────────────────────────────── */
.close { background: var(--red); color: #fff8f7; padding-block: clamp(5rem, 10vw, 8rem); }
.close__inner { display: grid; justify-items: start; gap: 2.25rem; }
.close__title { font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1.03; letter-spacing: -0.035em; max-width: 20ch; }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.close__phone { font-weight: 600; color: #fff8f7; }
.close ::selection { background: #fff8f7; color: var(--red); }
.close :focus-visible { outline-color: #fff8f7; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #cfc3c3; padding-block: 3.5rem calc(3.5rem + env(safe-area-inset-bottom)); font-size: 0.95rem; }
.foot__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; }
.foot__name { color: var(--on-dark); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: start; }
.foot__links a { color: var(--on-dark); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__small { grid-column: 1 / -1; color: #a99c9c; font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid #3a3132; }
.foot :focus-visible { outline-color: var(--on-dark); }
@media (max-width: 700px) { .foot__inner { grid-template-columns: 1fr; } .foot { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); } }

/* ── Phone action bar ─────────────────────────────────────────────────────── */
.actionbar { display: none; }
@media (max-width: 700px) {
  .actionbar {
    position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); z-index: var(--z-bar);
    display: grid; grid-template-columns: auto auto 1fr; gap: 0.4rem; padding: 0.4rem;
    background: var(--ink); border-radius: 999px; box-shadow: 0 14px 40px -12px rgb(28 23 24 / 0.6);
    transform: translateY(calc(100% + 2rem)); transition: transform 380ms var(--ease-drawer, cubic-bezier(0.32, 0.72, 0, 1));
  }
  .actionbar.is-visible { transform: none; }
  .actionbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    min-height: 3rem; padding: 0 1rem; border-radius: 999px;
    color: var(--on-dark); text-decoration: none; font-weight: 650; font-size: 0.95rem;
  }
  .actionbar svg { width: 1.05rem; height: 1.05rem; }
  .actionbar__main { background: var(--red); color: #fff8f7 !important; }
  .actionbar :focus-visible { outline-color: var(--on-dark); }
}

/* ── Reveal system: each content type gets its own entrance ───────────────── */
/* Only armed when JS is running, so the page is complete without it. */
.js .hero__title .line > span { transform: translateY(105%); transition: transform 900ms var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.js.is-loaded .hero__title .line > span { transform: none; }

/* Section headings: the whole heading rises out of its own mask */
.mask { overflow: hidden; padding-bottom: 0.1em; }
.mask > span { display: inline-block; }
.js .mask > span { transform: translateY(102%); transition: transform 850ms var(--ease-out); }
.js .mask.is-in > span { transform: none; }

/* Body copy: a plain lift and fade, lighter than the headings, trailing them */
.js .reveal-copy { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out) 120ms, transform 700ms var(--ease-out) 120ms; }
.js .reveal-copy.is-in { opacity: 1; transform: none; }
.js .hero .reveal-copy { transition-delay: 350ms; }
.js .hero .hero__actions { transition-delay: 450ms; }
.js .hero .hero__facts { transition-delay: 550ms; }

/* Photography: fades in while the picture settles from a slight zoom */
.js .reveal-photo { opacity: 0; transition: opacity 900ms ease; }
.js .reveal-photo img { transform: scale(1.1); transition: transform 1600ms var(--ease-out); }
.js .reveal-photo.is-in { opacity: 1; }
.js .reveal-photo.is-in img { transform: none; }
.js .hero .reveal-photo { transition-delay: 150ms; }

/* List rows: staggered slide from the side, 60ms apart (delay set in JS) */
.js .reveal-row { opacity: 0; transform: translateX(-14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal-row.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .hero__title .line > span, .js .mask > span, .js .reveal-photo img { transform: none; transition: none; }
  .js .reveal-copy, .js .reveal-row { transform: none; transition: opacity 400ms ease; }
  .steps::before { transition: none; transform: none !important; }
  .step__num, .step h3, .step p { transform: none !important; transition: opacity 400ms ease !important; transition-delay: 0ms !important; }
  .actionbar { transition: none; }
  .qa__body { transition: none; }
}
