.hero {
  --hero-bg: #f9f4ec;
  --hero-ink: #171716;
  --hero-muted: #55514c;
  --hero-accent: var(--wine);
  --header-ink: #171716;
  --header-line: rgba(44, 36, 29, 0.14);
  --header-panel: #f9f4ec;
  --header-button-line: rgba(159, 23, 56, 0.68);
  --header-button-ink: var(--wine-dark);
  --header-button-hover: rgba(159, 23, 56, 0.06);
  --primary-bg: var(--wine-dark);
  --primary-bg-hover: #651020;
  --primary-ink: #fffaf3;
  --primary-focus: var(--gold);
  --secondary-ink: var(--wine-dark);
  --secondary-line: rgba(120, 17, 39, 0.45);
  --control-bg: #f9f4ec;
  --control-ink: var(--wine-dark);
  --control-line: rgba(120, 17, 39, 0.26);
  --hero-stage-height: clamp(592px, 42vw, 720px);
  --hero-autoplay-duration: 7000ms;
  --focus-color: var(--wine);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--hero-bg);
  color: var(--hero-ink);
  transition: background-color 560ms ease, color 560ms ease;
}

.hero[data-theme="dark"] {
  color-scheme: dark;
  --hero-bg: #070706;
  --hero-ink: #f5f0e8;
  --hero-muted: #d0c9bf;
  --hero-accent: var(--gold-soft);
  --header-ink: #f5f0e8;
  --header-line: rgba(255, 255, 255, 0.15);
  --header-panel: #121210;
  --header-button-line: rgba(182, 139, 79, 0.72);
  --header-button-ink: var(--gold-soft);
  --header-button-hover: rgba(182, 139, 79, 0.09);
  --primary-bg: var(--gold-soft);
  --primary-bg-hover: #c8a66f;
  --primary-ink: #17130e;
  --primary-focus: #fff6df;
  --secondary-ink: var(--gold-soft);
  --secondary-line: rgba(214, 189, 145, 0.48);
  --control-bg: #151411;
  --control-ink: var(--gold-soft);
  --control-line: rgba(214, 189, 145, 0.3);
  --focus-color: var(--gold-soft);
}

.hero[data-active-slide="2"] {
  --hero-bg: #f7ede3;
  --header-panel: #f7ede3;
}

.hero__viewport {
  display: grid;
  min-height: var(--hero-stage-height);
  touch-action: pan-y;
}

.hero-slide {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: var(--hero-stage-height);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 560ms;
}

.hero-slide--light {
  background: #f9f4ec;
}

.hero-slide--dark {
  background: #070706;
}

.hero-slide--steps {
  background: #f7ede3;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: var(--hero-stage-height);
  padding-block: clamp(28px, 3vw, 52px) 88px;
}

.hero-slide__content {
  width: min(47%, 760px);
  min-width: 0;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
}

.hero-slide.is-active .hero-slide__content {
  transform: translateY(0);
  opacity: 1;
}

.hero-slide__art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide__art picture {
  position: absolute;
  inset: 0;
}

.hero-slide__art img {
  position: absolute;
  right: -0.5%;
  bottom: 0;
  width: auto;
  max-width: none;
  height: 104%;
  transform: translateX(18px);
  opacity: 0;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 540ms ease;
}

.hero-slide--steps .hero-slide__art img {
  right: -3%;
  height: 100%;
}

.hero-slide.is-active .hero-slide__art img {
  transform: translateX(0);
  opacity: 1;
}

.hero-slide__eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 clamp(16px, 1.7vw, 24px);
  color: var(--hero-accent);
  font-size: clamp(0.73rem, 0.74vw, 0.81rem);
  font-weight: 750;
  letter-spacing: 0.115em;
  line-height: 1.35;
  text-transform: uppercase;
}

/*
 * 6-6B.6 visual mash: fragment font-size spans must recompute letter-spacing
 * from their own font (parent -0.044em is inherited as absolute px).
 */
.hero-slide__title span[data-edit-span][style*="font-size"] {
  letter-spacing: -0.044em;
}

.hero-slide__title {
  max-width: 790px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 4.7vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.044em;
  line-height: 0.92;
  text-wrap: balance;
}

/* Decorative brand accent only — not every <em>/<i> (editor italic is neutral <i>). */
.hero-slide__title em.text-accent,
.hero-slide__title .text-accent {
  display: block;
  color: var(--hero-accent);
  font-weight: 400;
}

.hero-slide__title i {
  font-style: italic;
  color: inherit;
  font-weight: inherit;
  display: inline;
}

.hero-slide__lead {
  max-width: 610px;
  margin: clamp(20px, 2.1vw, 30px) 0 0;
  color: var(--hero-muted);
  font-size: clamp(1.02rem, 1.18vw, 1.18rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 2vw, 30px);
  align-items: center;
  margin-top: clamp(24px, 2.5vw, 34px);
}

.trust-list,
.outcome-list {
  padding: 0;
  list-style: none;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  max-width: 680px;
  margin: clamp(26px, 2.8vw, 38px) 0 0;
}

.trust-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--hero-ink);
  font-size: clamp(0.82rem, 0.85vw, 0.92rem);
  font-weight: 540;
  line-height: 1.3;
}

.trust-list__icon,
.outcome-list svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--hero-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.outcome-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 680px;
  margin: clamp(28px, 3vw, 42px) 0 0;
}

.outcome-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.04rem, 1.25vw, 1.22rem);
  line-height: 1.2;
}

.outcome-list svg {
  width: 40px;
  height: 40px;
  stroke: var(--wine);
}

.hero-controls {
  position: absolute;
  z-index: 12;
  bottom: 22px;
  left: 50%;
  display: none;
  grid-template-columns: 44px 132px 44px 44px;
  gap: 0;
  align-items: center;
  width: 264px;
  height: 46px;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--control-bg);
  box-shadow: 0 8px 24px rgba(30, 24, 18, 0.08);
  color: var(--control-ink);
  transition: color 560ms ease, background-color 560ms ease, border-color 560ms ease;
}

.hero.is-enhanced .hero-controls {
  display: grid;
}

.hero-controls button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.hero-controls__arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.hero-controls__steps {
  display: grid;
  grid-template-columns: repeat(3, 44px);
}

.hero-controls__steps button span {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  overflow: hidden;
  border-radius: 1px;
  transition: width 220ms ease;
}

.hero-controls__steps button span::before,
.hero-controls__steps button span::after {
  position: absolute;
  inset: 0;
  content: "";
  transform-origin: left;
  border-radius: inherit;
  background: currentColor;
}

.hero-controls__steps button span::before {
  opacity: 0.28;
}

.hero-controls__steps button span::after {
  transform: scaleX(0);
  opacity: 0;
}

.hero-controls__steps button[aria-current="true"] span {
  width: 22px;
}

.hero.is-autoplaying .hero-controls__steps button[aria-current="true"] span::after {
  animation: hero-autoplay-progress var(--hero-autoplay-duration) linear forwards;
  opacity: 0.78;
}

.hero-controls__autoplay {
  border-left: 1px solid var(--control-line) !important;
}

.hero-controls__autoplay svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hero-controls__autoplay svg[hidden] {
  display: none;
}

.hero-controls__autoplay:disabled {
  cursor: default;
  opacity: 0.46;
}

@keyframes hero-autoplay-progress {
  to {
    transform: scaleX(1);
  }
}

@media (hover: hover) {
  .hero-controls [data-slider-prev]:hover svg {
    transform: translateX(-2px);
  }

  .hero-controls [data-slider-next]:hover svg {
    transform: translateX(2px);
  }

  .hero-controls__steps button:hover span::before {
    opacity: 0.62;
  }
}

@media (max-width: 1220px) {
  .hero-slide__content {
    width: 48%;
  }

  .hero-slide__title {
    font-size: clamp(3.05rem, 4.7vw, 3.75rem);
  }

  .hero-slide__lead {
    font-size: 1rem;
  }

  .trust-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    font-size: 0.82rem;
  }

  .trust-list__icon {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 981px) and (max-width: 1120px) and (max-height: 650px) {
  .hero {
    --hero-stage-height: 520px;
  }

  .hero-slide__inner {
    padding-block: 22px 66px;
  }

  .hero-slide__content {
    width: 49%;
  }

  .hero-slide__eyebrow {
    margin-bottom: 14px;
  }

  .hero-slide__title {
    font-size: 3.05rem;
  }

  .hero-slide__lead {
    margin-top: 18px;
    line-height: 1.45;
  }

  .hero-slide__actions {
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 18px;
  }

  .hero-slide__actions .button {
    gap: 12px;
    min-height: 52px;
    padding-inline: 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .hero-slide__actions .text-link {
    gap: 10px;
    min-height: 48px;
    font-size: 15px;
    white-space: nowrap;
  }

  .trust-list {
    margin-top: 18px;
  }
}

@media (max-width: 980px) {
  .hero {
    --hero-stage-height: auto;
  }

  .hero__viewport {
    position: relative;
    display: grid;
    min-height: 0;
  }

  .hero-slide {
    display: grid;
    grid-template-rows: auto clamp(360px, 45vw, 430px);
    width: 100%;
    min-height: 0;
  }

  .hero-slide__inner {
    grid-row: 1;
    min-height: 0;
    padding-block: clamp(36px, 5vw, 58px) 30px;
  }

  .hero-slide__content {
    width: min(760px, 100%);
  }

  .hero-slide__title {
    max-width: 760px;
    font-size: clamp(3.25rem, 7vw, 4.2rem);
  }

  .hero-slide__lead {
    max-width: 690px;
    font-size: clamp(1rem, 2vw, 1.08rem);
  }

  .hero-slide__art {
    position: relative;
    grid-row: 2;
    height: auto;
    min-height: 0;
  }

  .hero-slide__art img {
    right: -26px;
    height: 104%;
  }

  .hero-slide--steps .hero-slide__art img {
    right: -44px;
    height: 100%;
  }

  .hero-controls {
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    --hero-mobile-stage: clamp(700px, calc(100svh - 67px), 820px);
    --hero-stage-height: var(--hero-mobile-stage);
  }

  .hero__viewport {
    min-height: var(--hero-mobile-stage);
  }

  .hero-slide {
    display: block;
    min-height: var(--hero-mobile-stage);
  }

  .hero-slide::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
  }

  .hero-slide--light::after {
    background: linear-gradient(
      180deg,
      rgba(249, 244, 236, 0.99) 0%,
      rgba(249, 244, 236, 0.97) 44%,
      rgba(249, 244, 236, 0.87) 60%,
      rgba(249, 244, 236, 0.56) 75%,
      rgba(249, 244, 236, 0.12) 100%
    );
  }

  .hero-slide--dark::after {
    background: linear-gradient(
      180deg,
      rgba(7, 7, 6, 0.99) 0%,
      rgba(7, 7, 6, 0.96) 44%,
      rgba(7, 7, 6, 0.82) 61%,
      rgba(7, 7, 6, 0.5) 76%,
      rgba(7, 7, 6, 0.1) 100%
    );
  }

  .hero-slide--steps::after {
    background: linear-gradient(
      180deg,
      rgba(247, 237, 227, 0.99) 0%,
      rgba(247, 237, 227, 0.96) 42%,
      rgba(247, 237, 227, 0.82) 58%,
      rgba(247, 237, 227, 0.48) 74%,
      rgba(247, 237, 227, 0.1) 100%
    );
  }

  .hero-slide__inner {
    grid-row: auto;
    align-items: flex-start;
    min-height: var(--hero-mobile-stage);
    padding-block: 24px 94px;
  }

  .hero-slide__content {
    width: 100%;
  }

  .hero-slide__title {
    font-size: clamp(2.62rem, 11.4vw, 2.92rem);
    line-height: 0.94;
  }

  .hero-slide__eyebrow {
    gap: 7px;
    margin-bottom: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.095em;
  }

  .hero-slide__lead {
    margin-top: 17px;
    font-size: 0.98rem;
    line-height: 1.44;
  }

  .hero-slide__actions {
    display: grid;
    gap: 7px;
    margin-top: 20px;
  }

  .hero-slide__actions .button,
  .hero-slide__actions .text-link {
    width: 100%;
  }

  .hero-slide__actions .text-link {
    padding-inline: 4px;
  }

  .trust-list,
  .outcome-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
    margin-top: 16px;
  }

  .trust-list li,
  .outcome-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    align-content: start;
    align-items: start;
    justify-items: start;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .trust-list__icon,
  .outcome-list svg {
    width: 27px;
    height: 27px;
  }

  .trust-list li span,
  .outcome-list li span {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    letter-spacing: -0.012em;
  }

  .hero-slide__art {
    position: absolute;
    inset: 0;
    grid-row: auto;
    height: auto;
    min-height: 0;
  }

  .hero-slide__art img {
    right: -150px;
    bottom: -4px;
    height: 62%;
  }

  .hero-slide--steps .hero-slide__art img {
    right: -104px;
    bottom: -3px;
    height: 60%;
  }

  .hero-controls {
    bottom: 16px;
    left: 16px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero-slide,
  .hero-slide__content,
  .hero-slide__art img,
  .hero-controls,
  .hero-controls__arrow svg,
  .hero-controls__steps button span {
    transition: none;
  }

  .hero-controls__steps button span::after {
    animation: none !important;
  }

  .hero-slide__content,
  .hero-slide__art img {
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero-controls,
  .button,
  .menu-toggle {
    forced-color-adjust: auto;
  }
}
