/* ==========================================================================
   Chris & Kayvan — Team Site
   Typography: Playfair Display (headlines) + Montserrat (body/UI) — unchanged
   Palette: pulled directly from Chris's own real site, hysellhomes.com
   (fetched its stylesheet + a live screenshot rather than guessing): a
   near-black/white/gray base with a single deep plum accent (#340c3d,
   confirmed via hysellhomes.com's own CSS — the `.hysell-h`/`.hysell-points`
   heading classes), used there sparingly for headline emphasis only, never
   as a button or dark-section color. Same 11-variable structure as the
   KALEO version, values replaced.

   This plum is a much easier color to work with than KALEO's Glendora Tan:
   at ~16.6:1 on white it's safe as text everywhere on a *light* background,
   no separate "-deep" derivation needed for that direction. The one real
   gotcha (see "contrast fix" comments below): plum is nearly the same
   luminance as --ink, so it goes almost invisible as text/icon color on
   *dark* (--ink) backgrounds — hysellhomes.com sidesteps this by simply
   never putting the accent on a dark background at all (dark sections
   there are plain white-on-black, no color). Matched that pattern here:
   the handful of spots that used the accent as text/icon color on a dark
   --ink background now use --porcelain (white) instead, same as
   hysellhomes.com does — which also happens to fit "not a fan of colors"
   better than inventing a second, lighter accent shade would have.
   ========================================================================== */

:root {
  --porcelain: #ffffff;    /* hysellhomes.com base white */
  --porcelain-deep: #f6f6f6; /* hysellhomes.com secondary section background */
  --ink: #1b1b1b;           /* hysellhomes.com near-black — primary text, dark bg, button fill */
  --ink-soft: #333333;      /* hysellhomes.com secondary-heading gray */
  --ember: #340c3d;         /* hysellhomes.com's deep plum accent — 16.6:1 on --porcelain, light-bg text/borders/decoration */
  --ember-deep: #220820;    /* plum, darkened further — hover state on light backgrounds */
  --ember-tint: #f3e9f1;    /* pale plum wash, decorative light backgrounds only */
  --slate: #666666;         /* hysellhomes.com secondary text — 5.7:1 on --porcelain */
  --slate-light: #999999;   /* hysellhomes.com lighter gray — 6:1 on --ink; dark-background use only */
  --hairline: #eaeaea;      /* hysellhomes.com light divider gray */
  --hairline-dark: #3d3d3d; /* a step lighter than --ink, for visible dividers on dark sections */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1220px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--porcelain);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 88px; }

/* Pages with a sticky .step-progress bar need extra offset so a section's
   heading doesn't land underneath both the fixed header and the taller
   (icon + connecting-line) bar. ~68px header + ~153px bar. */
section[id].step-target { scroll-margin-top: 220px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ember);
}

/* Chris's source headshot is a wide crop with his face left-of-center;
   any square/near-square object-fit:cover of it needs this offset or
   default center-crop pushes his face out of frame. */
.crop-chris { object-position: 21% center; }

.section-dark .eyebrow { color: var(--porcelain); } /* contrast fix: plum is nearly invisible on --ink now, see palette note */
.section-dark .eyebrow::before { background: var(--porcelain); } /* contrast fix: same reason, the little dash before the label */

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--porcelain);
  padding: 0.9rem 1.4rem;
  z-index: 999;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  padding: 0.95rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--ink);
}

.wordmark img { height: 34px; width: auto; display: block; }
.wordmark .wordmark-amp { color: var(--ember-deep); }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav ul { display: flex; gap: 2.2rem; align-items: center; }

.main-nav a,
.main-nav .nav-link-button {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
}

.main-nav a::after,
.main-nav .nav-link-button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--ember);
  transition: width 0.35s var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .nav-link-button:hover::after,
.main-nav .nav-link-button:focus-visible::after { width: 100%; }

.main-nav .btn { padding: 0.7rem 1.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--porcelain);
    flex-direction: column;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
    pointer-events: none;
  }

  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 1.8rem; }
  .main-nav ul a, .main-nav ul .nav-link-button { font-size: 1rem; }
  .main-nav .btn { margin-top: 0.6rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1.5px solid currentColor;
  cursor: pointer;
  background: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn-primary {
  /* matches hysellhomes.com's own button: black fill, white text — the
     accent only shows up on hover, same restraint as the source site */
  color: var(--porcelain);
  background: var(--ink);
  border-color: var(--ink);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--ember);
  border-color: var(--ember);
}

.btn-outline-light {
  color: var(--porcelain);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: var(--porcelain);
  color: var(--ink);
  border-color: var(--porcelain);
}

.btn-outline-dark {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover, .btn-outline-dark:focus-visible {
  background: var(--ink);
  color: var(--porcelain);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(8.5rem, 18vh, 11rem) 0 clamp(4rem, 9vh, 6rem);
  overflow: hidden;
  background: var(--porcelain);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ember-tint) 0%, rgba(241, 222, 211, 0) 68%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-eyebrow { margin-bottom: 1.3rem; }

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  color: var(--ink);
  max-width: 15ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ember-deep); /* contrast fix: raw ember fails even the 3:1 large-text floor on white */
}

.hero-sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--slate);
  line-height: 1.7;
}

.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-tagline {
  margin-top: 2.2rem;
  font-size: 0.82rem;
  color: var(--slate); /* contrast fix: was slate-light, ~2.5:1 on this light bg */
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-duo {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
}

.hero-duo-photo {
  position: absolute;
  width: 66%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--porcelain);
  box-shadow: 0 18px 40px rgba(27, 27, 27, 0.14);
}

.hero-duo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-duo-photo.is-chris {
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-duo-photo.is-kayvan {
  bottom: 0;
  right: 0;
  z-index: 1;
  border-color: var(--ember-tint);
}

.hero-duo-ring {
  position: absolute;
  inset: 6%;
  border: 1.5px dashed var(--hairline-dark);
  border-radius: 50%;
  opacity: 0.5;
}

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .hero-duo { max-width: 300px; }
}

/* ---------- Section shell ---------- */
.section { padding: clamp(5rem, 12vh, 8.5rem) 0; }

.section-dark {
  background: var(--ink);
  color: var(--porcelain);
}

.section-tint { background: var(--porcelain-deep); }

.section-intro { max-width: 64ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-intro h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 0.7rem; }
.section-intro p { margin-top: 1.1rem; color: var(--slate); font-size: 1.03rem; max-width: 58ch; }
.section-dark .section-intro p { color: var(--slate-light); }

.section-intro.center { margin-inline: auto; text-align: center; }
.section-intro.center .eyebrow { justify-content: center; }
.section-intro.center p { margin-inline: auto; }

/* ---------- Why Us / strengths ---------- */
.strengths {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.strength-card {
  padding: clamp(2rem, 4vw, 2.6rem);
  background: var(--porcelain);
  border: 1px solid var(--hairline);
}

.strength-card .strength-tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-deep);
}

.strength-card h3 {
  margin-top: 0.9rem;
  font-size: 1.6rem;
}

.strength-card p {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.97rem;
}

.strength-card ul {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.strength-card li {
  padding-left: 1.3rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.strength-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 50%;
}

.strength-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--ember-deep); /* contrast fix */
}

.strengths-result {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.4rem) clamp(2rem, 4vw, 2.6rem);
  background: var(--ink);
  color: var(--porcelain);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.strengths-result p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  max-width: 60ch;
  line-height: 1.5;
}

.strengths-result p em { color: var(--porcelain); font-style: italic; } /* contrast fix: plum is nearly invisible on this dark --ink banner now */

@media (max-width: 860px) {
  .strengths { grid-template-columns: 1fr; }
  .strength-divider { padding: 0.5rem 0; }
}

/* ---------- Meet the team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}

.agent-card {
  display: block;
  background: var(--porcelain);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.agent-card:hover, .agent-card:focus-visible {
  box-shadow: 0 20px 44px rgba(27, 27, 27, 0.1);
  transform: translateY(-3px);
}

.agent-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.agent-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.agent-card:hover .agent-card-photo img { transform: scale(1.04); }

.agent-card-body { padding: clamp(1.6rem, 3vw, 2.1rem); }

.agent-card-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-deep);
}

.agent-card h3 { margin-top: 0.6rem; font-size: 1.6rem; }

.agent-card-lede {
  margin-top: 0.8rem;
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 42ch;
}

.agent-card-meta {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
}

.agent-card-dre {
  font-size: 0.76rem;
  color: var(--slate); /* contrast fix: was slate-light, ~2.5:1 on this light bg */
}

.agent-card-link {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.agent-card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.agent-card:hover .agent-card-link svg { transform: translateX(3px); }

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

/* ---------- Video / portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 3vw, 1.8rem);
}

.portfolio-card {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(155deg, var(--porcelain-deep), #e6ded0 60%, var(--porcelain-deep));
  border: 1px solid var(--hairline);
}

.portfolio-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.portfolio-card:hover .portfolio-card-thumb { transform: scale(1.05); }

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 27, 27, 0.78) 0%, rgba(27, 27, 27, 0.05) 45%, transparent 65%);
}

.portfolio-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.portfolio-card:hover .portfolio-card-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--ember);
  border-color: var(--ember);
}

.portfolio-card:hover .portfolio-card-play svg {
  fill: var(--porcelain); /* white reads correctly on this dark plum, unlike the lighter Tan it replaced */
}

.portfolio-card-play svg { width: 13px; height: 13px; fill: var(--porcelain); transform: translateX(1px); }

.portfolio-card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  z-index: 1;
}

.portfolio-card-name { font-family: var(--serif); font-size: 1.08rem; color: var(--porcelain); }

.portfolio-card-tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--porcelain);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.portfolio-follow {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.portfolio-note { font-size: 0.85rem; color: var(--slate-light); }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

.video-channels {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-dark);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.channel-card:hover, .channel-card:focus-visible {
  /* contrast fix: plum border on this dark --ink card was ~1:1, invisible */
  border-color: var(--porcelain);
  background: rgba(52, 12, 61, 0.18);
}

.channel-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--porcelain); /* white reads correctly on this dark plum, unlike the lighter Tan it replaced */
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-icon svg { width: 20px; height: 20px; }

.channel-copy-name { font-family: var(--serif); font-size: 1.1rem; color: var(--porcelain); }
.channel-copy-handle { margin-top: 0.2rem; font-size: 0.82rem; color: var(--slate-light); }

@media (max-width: 640px) { .video-channels { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--hairline); max-width: 80ch; }
.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-question {
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
}

.faq-question-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }

.faq-question-icon::before, .faq-question-icon::after {
  content: "";
  position: absolute;
  background: var(--ember);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.faq-question-icon::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-question-icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-question-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-question::-webkit-details-marker { display: none; }

.faq-answer { padding: 0 0 1.6rem; color: var(--slate); max-width: 68ch; }

.section-dark .faq-list { border-top-color: var(--hairline-dark); }
.section-dark .faq-item { border-bottom-color: var(--hairline-dark); }
.section-dark .faq-question { color: var(--porcelain); }
.section-dark .faq-answer { color: var(--slate-light); }
.section-dark .faq-question-icon::before,
.section-dark .faq-question-icon::after { background: var(--porcelain); } /* contrast fix: matches the other .section-dark overrides above, in case FAQ ever lands in a dark section */

/* ---------- Contact ---------- */
.about-heading { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 0.7rem; }
.about-copy { margin-top: 1.1rem; color: var(--slate); font-size: 1.02rem; max-width: 52ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-agents {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-agent-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--hairline);
  background: var(--porcelain);
}

.contact-agent-line img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-agent-line-name { font-family: var(--serif); font-size: 1.02rem; }
.contact-agent-line-role { font-size: 0.76rem; color: var(--slate); margin-top: 0.15rem; }
.contact-agent-line a { margin-left: auto; font-size: 0.82rem; font-weight: 700; color: var(--ember-deep); white-space: nowrap; }

.social-row {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

.social-row a {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  padding-bottom: 2px;
}

.social-row a:hover, .social-row a:focus-visible { color: var(--ember-deep); border-color: var(--ember); }

.contact-card {
  background: var(--ink);
  color: var(--porcelain);
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-card h3 { font-size: 1.55rem; }
.contact-card p { margin-top: 0.9rem; color: var(--slate-light); max-width: 40ch; }
.contact-card .btn { margin-top: 2rem; }

/* .btn-primary's default fill is --ink (matches hysellhomes.com's real
   button) — invisible on a .contact-card, which is always --ink itself.
   Flip it: porcelain by default so it actually reads as a button here,
   ember on hover/focus (same purple as everywhere else), porcelain text
   on top of that since ember is too dark for ink-colored text to stay
   legible. */
.contact-card .btn-primary {
  background: var(--porcelain);
  color: var(--ink);
  border-color: var(--porcelain);
}

.contact-card .btn-primary:hover,
.contact-card .btn-primary:focus-visible {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--porcelain);
}

/* An inline .contact-form embedded directly in a .contact-card (dark --ink
   background) needs the same dark-safe treatment as .landing-form-card:
   the form's default styles assume a light background. */
.contact-card .form-row input,
.contact-card .form-row textarea { border-bottom-color: var(--hairline-dark); color: var(--porcelain); }
.contact-card .form-row label { color: var(--slate-light); }
.contact-card .form-consent label { color: var(--slate-light); }
.contact-card .form-consent label a { color: var(--porcelain); }
.contact-card .form-status.is-success { color: #8fc9a3; }
.contact-card .form-status.is-error { color: #e2998c; }

/* Light, welcoming variant of .contact-card — used where a form should feel
   inviting and easy to fill out rather than serious/high-contrast (e.g. the
   final "Get Started" card on the first-time-buyer page). Overrides the
   base dark styling; sits centered and full-width-but-readable rather than
   squeezed into a narrow grid column. */
.contact-card-invite {
  background: var(--porcelain);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ember);
  box-shadow: 0 20px 44px rgba(27, 27, 27, 0.08);
  max-width: 44rem;
  margin: 0 auto;
}

.contact-card-invite p { color: var(--slate); }
.contact-card-invite h3 { color: var(--ink); }

.contact-card-invite .btn-primary {
  background: var(--ink);
  color: var(--porcelain);
  border-color: var(--ink);
}

.contact-card-invite .btn-primary:hover,
.contact-card-invite .btn-primary:focus-visible {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--porcelain);
}

.contact-card-invite .form-row input,
.contact-card-invite .form-row textarea { border-bottom-color: var(--hairline-dark); color: var(--ink); }
.contact-card-invite .form-row label { color: var(--slate); }
.contact-card-invite .form-consent label { color: var(--slate); }
.contact-card-invite .form-consent label a { color: var(--ink-soft); }
.contact-card-invite .form-status.is-success { color: #3f6b4f; }
.contact-card-invite .form-status.is-error { color: #a4433a; }

.link-button {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}

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

/* ---------- Contact modal ---------- */
dialog.contact-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0; border: none; padding: 0;
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--porcelain);
  color: var(--ink);
}

dialog.contact-modal::backdrop {
  background: rgba(27, 27, 27, 0.62);
  backdrop-filter: blur(2px);
}

.modal-inner { padding: clamp(2rem, 5vw, 3rem); position: relative; }

.modal-close {
  position: absolute;
  top: 1.3rem; right: 1.3rem;
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.modal-close:hover, .modal-close:focus-visible { background: var(--ink); color: var(--porcelain); }
.modal-inner h3 { font-size: 1.65rem; padding-right: 2rem; }
.modal-inner .eyebrow { margin-bottom: 0.6rem; }

.modal-recipient-toggle {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
}

.modal-recipient-toggle button {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--hairline-dark);
  background: none;
  color: var(--slate);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.modal-recipient-toggle button[aria-pressed="true"] {
  border-color: var(--ember);
  color: var(--ink);
  background: var(--ember-tint);
}

/* ---------- Down-payment path toggle (first-time-home-buyers page) ----------
   Same segmented-button pattern as .modal-recipient-toggle above, but this
   one lives on a dark (--section-dark) background, where raw --ember text/
   borders are nearly invisible against --ink (see the palette note at the
   top of this file) — so the active/hover states use --porcelain instead
   of the ember/ember-tint the modal toggle uses on its light background. */
.path-toggle-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.9rem;
}

.path-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.6rem;
}

.path-toggle button {
  flex: 1 1 200px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--hairline-dark);
  background: none;
  color: var(--slate-light);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.path-toggle button:hover,
.path-toggle button:focus-visible {
  border-color: var(--porcelain);
  color: var(--porcelain);
}

.path-toggle button[aria-pressed="true"] {
  border-color: var(--porcelain);
  color: var(--porcelain);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .path-toggle { flex-direction: column; }
  .path-toggle button { flex: 1 1 auto; }
}

.modal-call-line {
  margin: 1.3rem 0 1.7rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.modal-call-eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.modal-call-phone {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  color: var(--ink-soft);
}

.modal-call-phone a,
.tel-shimmer {
  font-weight: 500;
  color: var(--ember-deep);
  /* contrast fix: shimmer alternates ember-deep/ink instead of ember-deep/ember
     — raw ember as the text-fill color at 50% would dip to ~2:1 mid-animation */
  background-image: linear-gradient(100deg, var(--ember-deep) 42%, var(--ink) 50%, var(--ember-deep) 58%);
  background-size: 260% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 15% { background-position: 200% 0; }
  85%, 100% { background-position: -200% 0; }
}

/* .tel-shimmer: the same attention-drawing shimmer as the contact modal's
   "Call or text anytime" line, reusable outside the modal (e.g. the
   first-time-buyer page's "Get Started" section). */

.contact-form { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }

.form-row input, .form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 0.2rem;
  border: none;
  border-bottom: 1.5px solid var(--hairline-dark);
  background: transparent;
  color: var(--ink);
  resize: none;
  transition: border-color 0.3s var(--ease);
}

.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--ember); }

.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) { border-color: #a4433a; }

.form-consent { display: flex; align-items: flex-start; gap: 0.7rem; }
.form-consent input[type="checkbox"] { margin-top: 0.2rem; width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--ember); }
.form-consent label { font-size: 0.74rem; line-height: 1.55; color: var(--slate); text-transform: none; letter-spacing: normal; }
.form-consent label a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--hairline-dark); }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 0.85rem; margin-top: -0.3rem; min-height: 1.2em; }
.form-status.is-success { color: #3f6b4f; }
.form-status.is-error { color: #a4433a; }

/* ---------- Footer: KALEO brokerage nod ---------- */
.footer-kaleo-row {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-kaleo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--porcelain);
  padding: 0.45rem 0.8rem;
  border-radius: 3px;
}

.footer-kaleo-chip img {
  height: 20px;
  width: auto;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--slate-light); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}

.footer-brand .wordmark { color: var(--porcelain); }
.footer-brand .wordmark .wordmark-amp { color: var(--porcelain); } /* contrast fix: plum on this dark footer is nearly invisible now */

.footer-tagline { margin-top: 1rem; font-size: 0.92rem; color: var(--slate-light); max-width: 32ch; }

.footer-social { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-social a {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--slate-light);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-social a:hover, .footer-social a:focus-visible { color: var(--porcelain); border-color: var(--porcelain); } /* contrast fix */

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 700;
}

.footer-col ul, .footer-col address { margin-top: 1.2rem; font-style: normal; }
.footer-col li + li { margin-top: 0.7rem; }

.footer-col a, .footer-col .link-button {
  font-size: 0.88rem;
  color: var(--porcelain);
  opacity: 0.86;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.footer-col a:hover, .footer-col a:focus-visible,
.footer-col .link-button:hover, .footer-col .link-button:focus-visible {
  opacity: 1;
  color: var(--porcelain); /* contrast fix: plum is nearly invisible on this dark footer now */
  text-decoration: underline;
  text-decoration-color: var(--porcelain);
}

.footer-eho {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--slate-light);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.footer-eho svg { flex-shrink: 0; width: 26px; height: 26px; }

.footer-divider { margin-top: clamp(3rem, 6vw, 4rem); border: none; border-top: 1px solid var(--hairline-dark); }

.footer-bottom {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--slate);
}

.footer-legal-text { margin-top: 1.6rem; font-size: 0.76rem; line-height: 1.7; color: var(--slate); max-width: 92ch; }
.footer-bottom a { color: var(--slate-light); }
.footer-bottom a:hover { color: var(--porcelain); } /* contrast fix */

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; } }

/* ---------- Content / legal / profile pages ---------- */
.page-hero { padding: clamp(9rem, 16vh, 11rem) 0 clamp(2.5rem, 6vw, 3.5rem); }
.page-hero .eyebrow { display: inline-flex; }
.page-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin-top: 0.8rem; }
.page-hero p { margin-top: 1rem; color: var(--slate); max-width: 56ch; }

.page-content { padding-bottom: clamp(4rem, 8vw, 6rem); }
.page-content .container { max-width: 780px; }
.page-content h2 { font-size: 1.5rem; margin-top: 2.6rem; margin-bottom: 0.9rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--ink-soft); max-width: 68ch; }
.page-content p + p { margin-top: 1.1rem; }
.page-content ul { margin-top: 1.1rem; padding-left: 1.3rem; list-style: disc; color: var(--ink-soft); max-width: 68ch; }
.page-content ul li + li { margin-top: 0.5rem; }
.page-content a { color: var(--ember-deep); text-decoration: underline; text-decoration-color: var(--ember-tint); }
.page-content a:hover, .page-content a:focus-visible { text-decoration-color: var(--ember); }
.page-updated { margin-top: 2rem; font-size: 0.8rem; color: var(--slate); }

/* Individual agent profile pages */
.profile-hero {
  padding: clamp(8.5rem, 18vh, 11rem) 0 clamp(3.5rem, 8vh, 5rem);
  background: var(--porcelain-deep);
}

.profile-hero .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.profile-photo-wrap { position: relative; }

.profile-photo-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-photo-frame {
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.profile-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-deep);
}

.profile-title { margin-top: 0.7rem; font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.profile-lede { margin-top: 1.1rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); max-width: 38ch; }

.profile-facts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
}

.profile-facts dt { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.profile-facts dd { font-family: var(--serif); font-size: 1.2rem; margin-top: 0.35rem; }

.profile-cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .profile-hero .container { grid-template-columns: 1fr; }
  .profile-facts { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

.profile-body p { color: var(--ink-soft); max-width: 68ch; font-size: 1.02rem; }
.profile-body p + p { margin-top: 1.2rem; }

.specialty-tags { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.specialty-tags span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}

.back-to-team {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate); /* contrast fix: was slate-light, ~2.5:1 on this light bg */
}
.back-to-team:hover { color: var(--ember-deep); } /* contrast fix */
.back-to-team svg { width: 14px; height: 14px; }

/* ---------- Two-column media + content (first-time-buyer page etc.) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-media { position: relative; }

.about-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.about-media-wrap { position: relative; }

.about-media-frame {
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.section:not(.section-dark) .about-media-frame,
.section-tint .about-media-frame {
  border-color: rgba(27, 27, 27, 0.15);
}

/* Text-over-photo caption, used on .about-media images and the full-width
   banner below. A bottom scrim keeps porcelain text legible regardless of
   what's in the photo underneath. */
.media-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.3rem;
  background: linear-gradient(180deg, rgba(27, 27, 27, 0) 58%, rgba(27, 27, 27, 0.68) 100%);
  pointer-events: none;
}

.media-caption-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--porcelain);
}

.banner-media { position: relative; }

.banner-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.banner-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(27, 27, 27, 0) 45%, rgba(27, 27, 27, 0.6) 100%);
  pointer-events: none;
}

.banner-caption-eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--porcelain);
  opacity: 0.85;
}

.banner-caption-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  color: var(--porcelain);
  margin-top: 0.4rem;
  max-width: 24ch;
}

.about-facts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
}

.about-facts.stat-row-long { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-dark .about-facts { border-top-color: var(--hairline-dark); }

.about-fact dt { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.section-dark .about-fact dt { color: var(--slate-light); }
.about-fact dd { font-family: var(--serif); font-size: 1.2rem; margin-top: 0.35rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .about-facts.stat-row-long { grid-template-columns: 1fr; }
}

/* ---------- Content lists (numbered process steps, eligibility lists) ---------- */
.section-list {
  margin-top: 1.2rem;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.section-dark .section-list { color: var(--slate-light); }
.section-dark .section-list li::marker { color: var(--slate-light); } /* contrast fix: plum markers were ~1:1 on this dark background */

.section-list li { list-style: disc; }
.section-list.list-decimal li { list-style: decimal; }
.section-list li + li { margin-top: 0.7rem; }
.section-list li::marker { color: var(--ember); }

/* ---------- Step progress bar ---------- */
.step-progress {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  padding: 1.5rem 0 1.3rem;
}

.step-progress-heading {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.step-progress-heading .eyebrow { margin: 0; }

.step-progress-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink-soft);
}

.step-progress-track-wrap { position: relative; }

.step-progress-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 4px;
  scroll-snap-type: x proximity;
}

.step-progress-track::-webkit-scrollbar { display: none; }

.step-progress-link { scroll-snap-align: start; }

/* Edge fades signal there's more to scroll to on narrow screens, where the
   track doesn't show all 6 steps at once and has no visible scrollbar
   (scrollbar-width: none above) to hint at that otherwise. JS toggles
   .is-visible on whichever side still has content to scroll toward. */
.step-progress-fade {
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.step-progress-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.step-progress-fade-right {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.step-progress-fade.is-visible { opacity: 1; }

/* Connecting line running through every node's center — a single element
   spans the full scrollable width so it stays continuous even on mobile,
   and sits behind the (opaque) nodes via z-index rather than needing a
   separate segment between each pair of steps. */
.step-progress-line {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 24px;
  height: 1px;
  background: var(--hairline-dark);
  opacity: 0.45;
  z-index: 0;
}

.step-progress-link {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.4rem;
}

.step-progress-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 1.5px solid var(--hairline-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step-progress-node svg {
  width: 19px;
  height: 19px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s var(--ease);
}

.step-progress-num {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ember);
}

.step-progress-text {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.3;
  transition: color 0.3s var(--ease);
}

.step-progress-link:hover .step-progress-node,
.step-progress-link:focus-visible .step-progress-node {
  border-color: var(--ember);
}

.step-progress-link:hover .step-progress-text,
.step-progress-link:focus-visible .step-progress-text {
  color: var(--ink);
}

.step-progress-link.is-active .step-progress-node {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.06);
}

.step-progress-link.is-active .step-progress-node svg { stroke: var(--porcelain); } /* contrast fix: plum icon on this ink-filled node was ~1:1 */
.step-progress-link.is-active .step-progress-text { color: var(--ink); }

@media (max-width: 700px) {
  .step-progress { padding: 1.3rem 0 1.1rem; }
  .step-progress-link { width: 110px; }
  .step-progress-node { width: 42px; height: 42px; }
  .step-progress-node svg { width: 17px; height: 17px; }
  .step-progress-line { top: 21px; }
  .step-progress-text { font-size: 0.7rem; }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7rem, 16vh, 9rem) var(--gutter) 4rem;
}

.error-content { text-align: center; max-width: 46rem; }
.error-code { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ember-deep); }
.error-title { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 0.9rem; }
.error-sub { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); max-width: 42ch; margin-inline: auto; }
.error-copy { margin-top: 1.2rem; color: var(--slate); max-width: 44ch; margin-inline: auto; }
.error-actions { margin-top: 2.6rem; display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Landing page (campaign template) ---------- */
.landing-header { padding: 1.4rem 0; }
.landing-header .container { display: flex; align-items: center; justify-content: space-between; }

.landing-hero { padding: clamp(3rem, 8vh, 5rem) 0 clamp(3.5rem, 8vh, 5rem); }
.landing-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink); /* contrast fix: safer margin than ember-deep-on-tint (~4.5:1, borderline) */
  background: var(--ember-tint);
  padding: 0.5rem 0.9rem;
}

.landing-title { margin-top: 1.2rem; font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; }
.landing-title em { font-style: italic; color: var(--ember-deep); } /* contrast fix */
.landing-sub { margin-top: 1.3rem; font-size: 1.08rem; color: var(--slate); max-width: 46ch; line-height: 1.7; }

.landing-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.landing-points li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; color: var(--ink-soft); }
.landing-points li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; color: var(--ember-deep); } /* contrast fix */

.landing-form-card {
  background: var(--ink);
  color: var(--porcelain);
  padding: clamp(2rem, 4vw, 2.6rem);
  position: sticky;
  top: 6rem;
}

.landing-form-card .eyebrow::before { background: var(--porcelain); } /* contrast fix: plum dash on this dark card was ~1:1 */
.landing-form-card h2 { font-size: 1.5rem; }
.landing-form-card > p { margin-top: 0.7rem; color: var(--slate-light); font-size: 0.92rem; }
.landing-form-card .contact-form { margin-top: 1.6rem; }
.landing-form-card .form-row input,
.landing-form-card .form-row textarea { border-bottom-color: var(--hairline-dark); color: var(--porcelain); }
.landing-form-card .form-row label { color: var(--slate-light); }

.landing-trust {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-content: space-between;
}

.landing-trust-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.85rem; color: var(--slate); }
.landing-trust-item svg { width: 20px; height: 20px; color: var(--ember-deep); flex-shrink: 0; } /* contrast fix */

@media (max-width: 900px) {
  .landing-hero .container { grid-template-columns: 1fr; }
  .landing-form-card { position: static; }
}

.landing-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--hairline);
}
.landing-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.landing-footer p { font-size: 0.76rem; color: var(--slate); max-width: 70ch; line-height: 1.6; }
