/*
Theme Name: Simple Student Bills
Author: Simple Student Bills
Description: Starter theme for the Simple Student Bills WordPress website.
Version: 0.1.8
Text Domain: simple-student-bills
*/

:root {
  --ssb-bg: rgb(242, 242, 243);
  --ssb-surface: #ffffff;
  --ssb-text: #1f1c18;
  --ssb-muted: #6f6a61;
  --ssb-accent: #0f6a5c;
  --ssb-accent-dark: #0b4e44;
  --ssb-border: #dfd9ce;
  --ssb-header-height: 74px;
  --ssb-announcement-height: 2.25rem;
  --ssb-nav-red: #f0492f;
  --ssb-nav-ink: #1f2746;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ssb-bg);
  color: var(--ssb-text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  padding-top: calc(var(--ssb-header-height) + var(--ssb-announcement-height));
}

main > section[id] {
  scroll-margin-top: calc(var(--ssb-header-height) + 2rem);
}

a {
  color: var(--ssb-accent);
}

a:hover {
  color: var(--ssb-accent-dark);
}

/* Announcement Banner */
.announcement-banner {
  background: var(--ssb-nav-red);
  color: white;
  padding: 0 1rem;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--ssb-announcement-height);
  z-index: 1001;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s ease;
}

.announcement-banner:hover {
  background: #c13621;
  color: white;
}

.announcement-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  transition: transform 0.2s ease;
}

.announcement-banner__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.announcement-banner:hover .announcement-banner__content {
  transform: translateY(-4px);
}

.announcement-banner__icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.announcement-banner__copy strong {
  font-weight: 700;
}

.announcement-banner__more {
  display: none;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-weight: 400;
  white-space: nowrap;
}

.announcement-banner__arrow {
  transition: transform 0.2s ease;
}

.announcement-banner:hover .announcement-banner__arrow {
  transform: translateX(3px);
}



@media (max-width: 768px) {
  :root {
    --ssb-announcement-height: 2.15rem;
  }

  .announcement-banner {
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }

  .announcement-banner__content {
    gap: 0.35rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* ≤700px: simplify to emoji + Price Guarantee + Read more button */
@media (max-width: 700px) {
  .announcement-banner__detail {
    display: none;
  }

  .announcement-banner__content {
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .announcement-banner__more {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  :root {
    --ssb-announcement-height: 1.85rem;
  }

  .announcement-banner {
    padding: 0 0.6rem;
    font-size: 0.75rem;
  }
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--ssb-surface);
}

.site-footer {
  background: #1c1c1c;
  border-top: none;
  color: #c8c8c8;
}

.site-header {
  position: fixed;
  top: var(--ssb-announcement-height);
  left: 0;
  width: 100%;
  z-index: 1000;
}



.site-header .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-footer .container {
  padding: 0;
}

.main-nav {
  min-height: var(--ssb-header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(0.6rem, 1.5vw, 1.25rem);
  padding: 0.45rem clamp(0.9rem, 2.5vw, 2rem);
}

.brand {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.nav-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 1.75rem);
  line-height: 1.05;
}

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

.nav-brand a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 0.45rem;
  color: var(--ssb-nav-red);
  white-space: nowrap;
}

.nav-brand-mark {
  display: block;
  width: 1.15em;
  height: 1.15em;
  align-self: center;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-brand span {
  display: block;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.4vw, 1.6rem);
  flex-wrap: wrap;
}

.nav-links li:nth-child(1) { --nav-highlight: rgb(255, 230, 243); }
.nav-links li:nth-child(2) { --nav-highlight: rgb(230, 243, 255); }
.nav-links li:nth-child(3) { --nav-highlight: rgb(243, 230, 255); }
.nav-links li:nth-child(4) { --nav-highlight: rgb(255, 243, 220); }
.nav-links li:nth-child(5) { --nav-highlight: rgb(230, 255, 238); }
.nav-links li:nth-child(6) { --nav-highlight: rgb(230, 255, 255); }

.nav-links a {
  color: var(--ssb-nav-ink);
  text-decoration: none;
  font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem);
  font-weight: 500;
  padding: 0.2em 0.5em;
  position: relative;
  z-index: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

.nav-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-highlight);
  transform-origin: left;
  animation: nav-highlight-in 0.8s ease forwards;
  z-index: -1;
}

@keyframes nav-highlight-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.nav-links a {
  color: #11182f;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.8vw, 0.7rem);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.55rem, 0.45rem + 0.4vw, 0.72rem) clamp(0.8rem, 0.55rem + 1.4vw, 1.5rem);
  border: 0.5px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.nav-button-contact {
  color: var(--ssb-nav-ink);
  border-color: #c8ccd8;
  background: #fff;
  font-weight: 600;
}

.nav-button-contact:hover {
  color: #11182f;
  border-color: #c2c6d7;
  background: #f7f8fc;
}

.nav-button-demo {
  color: #fff;
  border-color: var(--ssb-nav-red);
  background: var(--ssb-nav-red);
}

.nav-button-demo:hover {
  color: #fff;
  border-color: #d53f28;
  background: #d53f28;
}

/* ── Shared CTA button style ──────────────────── */
.hp-hero__cta,
.hp-offers__cta,
.hp-steps__cta,
.hp-guarantee__cta,
.hp-proof__cta-top,
.hp-about__cta,
.hp-faqs__cta-top,
.cta-quote__btn {
  font-size: 1.1rem;
  padding: 0.9rem 2.4rem;
  border-radius: 0;
  letter-spacing: 0.02em;
  /* Floor the tap-target/visual size so the responsive down-steps below
     can't shrink the buttons past a comfortable minimum on smaller screens. */
  min-height: 2.75rem;
}

/* Phones: trim the generous desktop padding so the buttons sit at the
   ~44px target-size standard rather than above it. Font stays at 1.1rem
   (legible) and the min-height: 2.75rem (44px) floor above guarantees the
   minimum tap target even as padding shrinks. */
@media (max-width: 600px) {
  .hp-hero__cta,
  .hp-offers__cta,
  .hp-steps__cta,
  .hp-guarantee__cta,
  .hp-proof__cta-top,
  .hp-about__cta,
  .hp-faqs__cta-top,
  .cta-quote__btn {
    padding: 0.7rem 1.6rem;
  }
}

.site-main {
  padding: 3rem 0;
}

/* Hide page content during scroll-restoration to prevent flash on reload */
.ssb-restore-scroll {
  background: var(--ssb-surface);
}

.ssb-restore-scroll main {
  visibility: hidden;
}

/* ── Homepage hero ─────────────────────────────── */
.hp-hero {
  display: grid;
  grid-template-rows: auto auto;
  background: var(--ssb-bg);
  overflow: hidden;
  max-width: 100vw;
}

.hp-hero__text {
  text-align: center;
  padding: clamp(1.2rem, 0.5rem + 2vw, 2.4rem) 4% clamp(0.6rem, 0.3rem + 1vw, 1.2rem);
}

.hp-hero__banner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.52em;
  padding: 0.31em 0.5em 0.31em 0.37em;
  margin: 0 auto 1.5rem;
  max-width: 100%;
  border: 1px solid transparent;
  background-color: rgb(255, 255, 255);
  color: var(--ssb-nav-ink);
  text-decoration: none;
  font-size: clamp(0.55rem, 2.7vw, 0.92rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  outline: 1px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-hero__banner-tag {
  display: inline-block;
  padding: 0.33em 0.67em;
  background: rgb(230, 255, 217);
  color: #23482d;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.hp-hero__banner-copy {
  font-weight: 600;
}

.hp-hero__banner-cta {
  font-weight: 400;
}

.hp-hero__banner-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 0.22em;
  background: rgb(230, 255, 217);
  color: #2f6b35;
  line-height: 1;
  font-weight: 700;
  font-size: 1.1em;
}

.hp-hero__banner:hover,
.hp-hero__banner:focus-visible {
  color: var(--ssb-nav-ink);
  text-decoration: none;
  outline-color: rgb(149, 255, 111);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hp-hero__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  color: var(--ssb-nav-ink);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.5rem auto clamp(0.6rem, 1.5vw, 1.25rem);
  padding: 0 0.4rem;
  width: min(92vw, 26ch);
}

.hp-hero__title-rotator {
  display: inline-block;
  transition: opacity 0.4s ease;
  color: var(--ssb-nav-red);
}

.hp-hero__title-rotator.is-fading {
  opacity: 0;
}

.hp-hero__desc {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  margin: 0 auto clamp(1rem, 2vw, 2rem);
  max-width: 48ch;
  font-weight: 500;
}

/* hp-hero__cta – visual props via shared CTA rule */

.hp-hero__visual {
  --hp-slide-index: 0;
  --hp-hero-scale: 1;
  --hp-hero-natural-height: clamp(340px, 38vw, 560px);
  position: relative;
  overflow: hidden;
  padding-inline: 0;
  width: 100%;
  max-width: 100%;
  height: calc(var(--hp-hero-natural-height) * var(--hp-hero-scale));
}

.hp-hero__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--hp-slide-index) * -100%), 0, 0);
  transition: transform 850ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hp-hero__slides--no-transition {
  transition: none;
}

.hp-hero__visual[data-single-slide="true"] .hp-hero__slides {
  transition: none;
}

.hp-hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.hp-hero__slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hp-hero-natural-height);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  transform-origin: center bottom;
  scale: var(--hp-hero-scale);
  pointer-events: none;
}

.hp-hero__slide-content * {
  pointer-events: none;
}

.hp-hero__grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  background-image:
    linear-gradient(to right, var(--hp-grid-line, #1398e9) 0 3px, transparent 3px),
    linear-gradient(to bottom, var(--hp-grid-line, #1398e9) 0 3px, transparent 3px);
}

.hp-hero__grid-square {
  background-color: transparent;
  transition: background-color 0s ease 1s;
  margin: 3px 0 0 3px;
}

.hp-hero__grid-square:hover {
  background-color: white;
  transition: background-color 0s ease 0s;
}

.hp-hero__grid--one {
  height: min(100%, clamp(355px, 47vw, 600px));
  background-color: rgb(106,190,75);
  --hp-grid-line: rgb(10,152, 255);
  background-size: 78px 58px;
  grid-template-columns: repeat(auto-fill, 78px);
  grid-auto-rows: 58px;
  clip-path: polygon(
    0 64%,
    7% 64%,
    7% 45%,
    19% 45%,
    19% 26%,
    34% 26%,
    34% 8%,
    58% 8%,
    58% 22%,
    74% 22%,
    74% 40%,
    91% 40%,
    91% 64%,
    100% 64%,
    100% 100%,
    0 100%
  );
}

.hp-hero__grid--two {
  height: min(100%, clamp(335px, 45vw, 570px));
  background-color: rgb(255,181,223);
  --hp-grid-line: rgb(255,250,185);
  background-size: 90px 60px;
  grid-template-columns: repeat(auto-fill, 90px);
  grid-auto-rows: 60px;
  clip-path: polygon(
    0 70%,
    9% 70%,
    9% 50%,
    22% 50%,
    22% 30%,
    38% 30%,
    38% 12%,
    59% 12%,
    59% 25%,
    77% 25%,
    77% 43%,
    91% 43%,
    91% 68%,
    100% 68%,
    100% 100%,
    0 100%
  );
}

.hp-hero__grid--three {
  height: min(100%, clamp(365px, 48vw, 620px));
  background-color: rgb(133,204,255);
  --hp-grid-line: rgb(211,255,195);
  background-size: 72px 52px;
  grid-template-columns: repeat(auto-fill, 72px);
  grid-auto-rows: 52px;
  clip-path: polygon(
    0 66%,
    6% 66%,
    6% 46%,
    17% 46%,
    17% 30%,
    30% 30%,
    30% 10%,
    49% 10%,
    49% 20%,
    67% 20%,
    67% 36%,
    83% 36%,
    83% 54%,
    95% 54%,
    95% 66%,
    100% 66%,
    100% 100%,
    0 100%
  );
}

/* Grid build-from-left animation — triggered by .is-active on the slide */
.hp-hero__slide.is-active .hp-hero__grid--one {
  animation: gridBuildOne 1.2s steps(4, jump-start) both;
}
.hp-hero__slide.is-active .hp-hero__grid--two {
  animation: gridBuildTwo 1.2s steps(4, jump-start) both;
}
.hp-hero__slide.is-active .hp-hero__grid--three {
  animation: gridBuildThree 1.2s steps(4, jump-start) both;
}

.hp-hero__img {
  position: relative;
  z-index: 2;
  width: auto;
  height: min(100%, clamp(360px, 42vw, 640px));
  max-height: 100%;
  max-width: min(95%, 760px);
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(clamp(0px, 2vw, 30px)) translateY(0.35rem);
  pointer-events: none;
}

.hp-hero__slide.is-active .hp-hero__img {
  animation: heroImgEntrance 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s forwards;
}

.hp-hero__slide--two .hp-hero__img {
  height: clamp(350px, 41vw, 620px);
}

.hp-hero__slide--three .hp-hero__img {
  height: clamp(355px, 42vw, 630px);
}

/* =========================================================
   Hero slide — fact cards, stat boxes & decorative shapes
   ========================================================= */

.hp-hero__fact-card {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 43%;
  transform: translateX(-132%);
  background: #ffffff;
  border-radius: 16px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.16);
  border: 0.5rem solid rgb(239, 239, 255);
  max-width: 440px;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  /* Floor is divided by the hero scale so the card never *renders* below 1rem
     (rendered size = font-size * var(--hp-hero-scale)); keeps it readable. */
  font-size: clamp(calc(1rem / var(--hp-hero-scale)), 0.55rem + 1.55vw, 2rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.hp-hero__fact-card-logo {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  align-self: flex-start;
}

.hp-hero__stat {
  position: absolute;
  z-index: 1;
  left: 50%;
  right: auto;
  bottom: 55%;
  transform: translateX(62%);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  min-width: 255px;
  pointer-events: none;
}

.hp-hero__stat-label {
  font-size: 1.03rem;
  font-weight: 700;
  padding: 0.62rem 1.1rem;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  clip-path: inset(0 100% 0 0);
}

.hp-hero__stat-value {
  font-size: 5.2rem;
  font-weight: 900;
  padding: 0.05rem 1.1rem 0.25rem;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  clip-path: inset(0 100% 0 0);
}

.hp-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* --- Slide three (blue grid) --- */
.hp-hero__fact-card--s3 { bottom: 43%; transform: translateX(-170%) translateY(600px); }
.hp-hero__stat--s3 {
  bottom: 54%;
  transform: translateX(22%) translateY(50%);
  overflow: visible;
  border-radius: 0;
  gap: 0;
}
.hp-hero__stat--s3 .hp-hero__stat-value {
  order: -1;
  background: rgb(150, 255, 111);
  color: rgb(33, 122, 0);
  align-self: flex-end;
  padding: 0.2rem 1rem 0.35rem;
  position: relative;
  z-index: 2;
  margin-bottom: -55px;
  margin-right: 10px;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 4.8rem;
  line-height: 1.1;
  min-width: 4ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hp-hero__stat--s3 .hp-hero__stat-label {
  background: rgb(27,73,25);
  color: rgb(210, 255, 193);
  padding-left: 10rem;
  padding-top: 4rem;
  padding-right: 1rem;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 240px;
  line-height: 1.1;
}

.hp-deco--s3-circles {
  bottom: 6%;
  left: 40%;
  transform: translateX(-178%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #0b2068;
  box-shadow: 108px 30px 0 0 #0b2068, 54px 92px 0 0 #0b2068;
}

.hp-deco--s3-strip-a {
  bottom: 26%;
  left: 50%;
  width: 330px;
  height: 72px;
  background: #ffe340;
  transform: translateX(45%) rotate(28deg);
}

.hp-deco--s3-strip-b {
  bottom: 16%;
  left: 50%;
  width: 250px;
  height: 72px;
  background: #0b2068;
  transform: translateX(58%) rotate(28deg);
}

/* --- Slide two (pink grid) --- */
.hp-hero__fact-card--s2 { bottom: 42%; transform: translateX(-160%) translateY(600px); }
.hp-hero__stat--s2 {
  bottom: 37%;
  transform: translateX(10%);
  overflow: visible;
  border-radius: 0;
  gap: 0;
  color: rgb(255, 179, 222);
}
.hp-hero__stat--s2 .hp-hero__stat-value {
  order: -1;
  background: rgb(250, 64, 39);
  color: rgb(255, 179, 222);
  align-self: flex-end;
  padding: 0.2rem 1rem 0.35rem;
  position: relative;
  z-index: 2;
  margin-bottom: -55px;
  margin-right: 10px;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 4.8rem;
  line-height: 1.1;
  min-width: 5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hp-hero__stat--s2 .hp-hero__stat-label {
  background: rgb(84, 36, 28);
  color: rgb(255, 179, 163);
  padding-left: 15rem;
  padding-top: 4rem;
  padding-right: 1rem;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 240px;
  line-height: 1.1;
}

.hp-deco--s2-bar-a {
  bottom: 0;
  left: calc(50% - 410px);
  width: 32px;
  height: 150px;
  background: #7a6200;
}

.hp-deco--s2-bar-b {
  bottom: 0;
  left: calc(50% - 350px);
  width: 32px;
  height: 220px;
  background: #7a6200;
}

.hp-deco--s2-bar-c {
  bottom: 0;
  left: calc(50% - 290px);
  width: 32px;
  height: 300px;
  background: #7a6200;
}

.hp-deco--s2-circles {
  bottom: 8%;
  left: 50%;
  transform: translateX(80%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #f05470;
  box-shadow: -120px 36px 0 0 #f05470, -60px 96px 0 0 #f05470;
}

.hp-deco--s2-shape {
  bottom: 22%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: rgba(255, 100, 180, 0.6);
  transform: translateX(-56%) rotate(25deg);
}

.hp-deco--s2-rects {
  left: 50%;
  transform: translateX(-70%) rotate(0deg);
  display: flex;
  flex-direction: column;
  gap: 60px;
  bottom: 7%;
}

.hp-deco--s2-rects span {
  display: block;
  width: 900px;
  height: 42px;
  background: rgb(255, 140, 0);
}

.hp-deco--s2-stack {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 980px;
  height: 140px;
  background: rgb(255,235,68);
  z-index: 2;
  opacity: 0;
}

.hp-deco--s2-stack .hp-deco__circle {
  position: absolute;
  top: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgb(175, 166, 7);
  transform: scale(0);
  opacity: 0;
}
.hp-deco--s2-stack .hp-deco__circle:nth-child(1) { left: 0; }
.hp-deco--s2-stack .hp-deco__circle:nth-child(2) { left: 140px; }
.hp-deco--s2-stack .hp-deco__circle:nth-child(3) { left: 280px; }
.hp-deco--s2-stack .hp-deco__circle:nth-child(4) { left: 420px; }
.hp-deco--s2-stack .hp-deco__circle:nth-child(5) { left: 560px; }
.hp-deco--s2-stack .hp-deco__circle:nth-child(6) { left: 700px; }
.hp-deco--s2-stack .hp-deco__circle:nth-child(7) { left: 840px; }

/* --- Slide one (green grid) --- */
.hp-hero__fact-card--s1 { bottom: 40%; transform: translateX(calc(-138% - 600px)) translateY(600px); }
.hp-hero__stat--s1 {
  bottom: 52%;
  transform: translateX(10%);
  overflow: visible;
  border-radius: 0;
  gap: 0;
}
.hp-hero__stat--s1 .hp-hero__stat-value {
  order: -1;
  background: rgb(1,67,211);
  color: rgb(129,203,255);
  align-self: flex-end;
  padding: 0.2rem 1rem 0.35rem;
  position: relative;
  z-index: 2;
  margin-bottom: -55px;
  margin-right: 10px;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.1;
}
.hp-hero__stat--s1 .hp-hero__stat-label {
  background: rgb(0,20,80);
  color: rgb(129,203,255);
  padding-left: 10rem;
  padding-top: 4rem;
  padding-right: 1rem;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 240px;
  line-height: 1.1;
}

.hp-deco--s1-stack {
  bottom: 0;
  left: 50%;
  transform: translateX(350%);
  width: auto;
  height: 560px;
  max-height: 100%;
  aspect-ratio: 1 / 4;
  background: rgb(160, 254, 125);
  opacity: 0;
}

.hp-deco--s1-stack .hp-deco__circle {
  position: absolute;
  left: 0;
  width: auto;
  height: 25%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(44, 135, 14);
  transform: scale(0);
  opacity: 0;
}
.hp-deco--s1-stack .hp-deco__circle:nth-child(1) { top: 0; }
.hp-deco--s1-stack .hp-deco__circle:nth-child(2) { top: 25%; }
.hp-deco--s1-stack .hp-deco__circle:nth-child(3) { top: 50%; }
.hp-deco--s1-stack .hp-deco__circle:nth-child(4) { top: 75%; }

.hp-deco--s1-circles {
  bottom: 6%;
  left: 50%;
  transform: translateX(-182%);
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: #1a4d25;
  box-shadow: 100px 30px 0 0 #1a4d25, 50px 92px 0 0 #1a4d25;
}

.hp-deco--s1-strip-a {
  bottom: 28%;
  left: 50%;
  width: 320px;
  height: 70px;
  background: #0a98ff;
  transform: translateX(44%) rotate(-28deg);
}

.hp-deco--s1-strip-b {
  bottom: 18%;
  left: 50%;
  width: 240px;
  height: 70px;
  background: #1a4d25;
  transform: translateX(57%) rotate(-28deg);
}

.hp-deco--s1-rects {
  left: 50%;
  transform: translateX(40%) rotate(45deg);
  display: flex;
  gap: 60px;
}

.hp-deco--s1-rects span {
  display: block;
  width: 32px;
  height: 350px;
  background: rgb(0, 149, 255);
}

.hp-deco--s1-wedge {
  bottom: -5%;
  left: 50%;
  transform: translateX(-125%) rotate(135deg);
  width: 360px;
  height: 440px;
  background: rgb(247, 106, 197);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.hp-deco--s2-wedge {
  bottom: -10%;
  left: 50%;
  transform: translateX(35%) rotate(-135deg);
  width: 360px;
  height: 440px;
  background: rgb(255, 246, 211);
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
}

/* Slide 2 z-layers: wedge behind rects behind stack.
   Everything in front of grid, img on top of all. */
.hp-hero__slide--two .hp-deco--s2-rects   { z-index: 1; }
.hp-hero__slide--two .hp-deco--s2-wedge   { z-index: 2; }
.hp-hero__slide--two .hp-deco--s2-stack   { z-index: 3; }
.hp-hero__slide--two .hp-hero__fact-card   { z-index: 7; }
.hp-hero__slide--two .hp-hero__stat        { z-index: 5; }
.hp-hero__slide--two .hp-hero__img         { z-index: 6; }

/* Slide 3 z-layers: decos stack in load order, img & fact-card on top. */
.hp-hero__slide--three .hp-deco--s3-rects   { z-index: 1; }
.hp-hero__slide--three .hp-deco--s3-rects-b  { z-index: 2; }
.hp-hero__slide--three .hp-deco--s3-wedge    { z-index: 3; }
.hp-hero__slide--three .hp-deco--s3-stack    { z-index: 4; }
.hp-hero__slide--three .hp-hero__fact-card    { z-index: 7; }
.hp-hero__slide--three .hp-hero__stat         { z-index: 5; }
.hp-hero__slide--three .hp-hero__img          { z-index: 6; }

/* --- Slide three deco items --- */
.hp-deco--s3-stack {
  bottom: -5%;
  left: 50%;
  transform: translateX(-100%) rotate(30deg);
  width: 640px;
  height: 160px;
  background: rgb(149, 250, 125);
  z-index: 2;
  opacity: 0;
}

.hp-deco--s3-stack .hp-deco__circle {
  position: absolute;
  top: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgb(43, 135, 12);
  transform: scale(0);
  opacity: 0;
}
.hp-deco--s3-stack .hp-deco__circle:nth-child(1) { left: 0; }
.hp-deco--s3-stack .hp-deco__circle:nth-child(2) { left: 160px; }
.hp-deco--s3-stack .hp-deco__circle:nth-child(3) { left: 320px; }
.hp-deco--s3-stack .hp-deco__circle:nth-child(4) { left: 480px; }

.hp-deco--s3-rects {
  left: 50%;
  transform: translateX(-20%) rotate(0deg);
  display: flex;
  flex-direction: column;
  gap: 0px;
  
}

.hp-deco--s3-rects span {
  display: block;
  width: 600px;
  height: 54px;
  background: rgb(0, 149, 255);
}

.hp-deco--s3-rects span:nth-child(1) {
  width: 400px;
}

.hp-deco--s3-rects span:nth-child(2) {
  width: 480px;
}

.hp-deco--s3-rects span:nth-child(3) {
  width: 560px;
}

.hp-deco--s3-rects-b {
  left: 54%;
  transform: translateX(-20%) rotate(-35deg);
  display: flex;
  flex-direction: column;
  gap: 60px;
  bottom: -5%;
}

.hp-deco--s3-rects-b span {
  display: block;
  width: 380px;
  height: 56px;
  background: rgb(255, 241, 52);
}

.hp-deco--s3-wedge {
  /* bottom: -10%; */
  left: 50%;
  transform: translateX(-100%) rotate(145deg);
  width: 360px;
  height: 440px;
  background: rgb(249, 250, 220);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

/* --- Rect grow animations --- */
/* --- Stack loading animations (background reveals left-to-right, then wobble rotates) --- */
@keyframes factCardFlyInS1 {
  0%   { transform: translateX(calc(-138% - 600px)) translateY(600px); }
  100% { transform: translateX(-145%) translateY(0); }
}

@keyframes factCardFlyInS2 {
  0%   { transform: translateX(-160%) translateY(600px); }
  100% { transform: translateX(-160%) translateY(0); }
}

@keyframes factCardFlyInS3 {
  0%   { transform: translateX(-170%) translateY(600px); }
  100% { transform: translateX(-170%) translateY(0); }
}

@keyframes s1StackIn {
  0%   { opacity: 1; clip-path: inset(100% 0 0 0); transform: translateX(350%); }
  100% { opacity: 1; clip-path: inset(0 0 0 0);    transform: translateX(350%); }
}

@keyframes s1StackWobble {
  0%   { transform: translateX(350%) rotate(0); }
  25%  { transform: translateX(350%) rotate(-0.5deg); }
  50%  { transform: translateX(350%) rotate(0.3deg); }
  75%  { transform: translateX(350%) rotate(-0.12deg); }
  100% { transform: translateX(350%) rotate(0); }
}

@keyframes s2StackIn {
  0%   { opacity: 1; clip-path: inset(0 100% 0 0); transform: translateX(-50%); }
  100% { opacity: 1; clip-path: inset(0 0 0 0);    transform: translateX(-50%); }
}

@keyframes s2StackWobble {
  0%   { transform: translateX(-50%) rotate(0); }
  25%  { transform: translateX(-50%) rotate(-0.5deg); }
  50%  { transform: translateX(-50%) rotate(0.3deg); }
  75%  { transform: translateX(-50%) rotate(-0.12deg); }
  100% { transform: translateX(-50%) rotate(0); }
}

@keyframes s3StackIn {
  0%   { opacity: 1; clip-path: inset(0 0 0 100%); transform: translateX(-100%) rotate(30deg); }
  100% { opacity: 1; clip-path: inset(0 0 0 0);    transform: translateX(-100%) rotate(30deg); }
}

@keyframes s3StackWobble {
  0%   { transform: translateX(-100%) rotate(30deg); }
  25%  { transform: translateX(-100%) rotate(29.5deg); }
  50%  { transform: translateX(-100%) rotate(30.3deg); }
  75%  { transform: translateX(-100%) rotate(29.88deg); }
  100% { transform: translateX(-100%) rotate(30deg); }
}

/* ── Grid build-from-left keyframes ─────────────── */
@keyframes gridBuildOne {
  0% {
    clip-path: polygon(
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%
    );
  }
  25% {
    clip-path: polygon(
      0 64%, 7% 64%, 7% 45%, 19% 45%,
      19% 100%, 19% 100%, 19% 100%, 19% 100%,
      19% 100%, 19% 100%, 19% 100%, 19% 100%,
      19% 100%, 19% 100%, 19% 100%, 0 100%
    );
  }
  50% {
    clip-path: polygon(
      0 64%, 7% 64%, 7% 45%, 19% 45%,
      19% 26%, 34% 26%, 34% 8%, 58% 8%,
      58% 100%, 58% 100%, 58% 100%, 58% 100%,
      58% 100%, 58% 100%, 58% 100%, 0 100%
    );
  }
  75% {
    clip-path: polygon(
      0 64%, 7% 64%, 7% 45%, 19% 45%,
      19% 26%, 34% 26%, 34% 8%, 58% 8%,
      58% 22%, 74% 22%, 74% 40%, 91% 40%,
      91% 100%, 91% 100%, 91% 100%, 0 100%
    );
  }
  100% {
    clip-path: polygon(
      0 64%, 7% 64%, 7% 45%, 19% 45%,
      19% 26%, 34% 26%, 34% 8%, 58% 8%,
      58% 22%, 74% 22%, 74% 40%, 91% 40%,
      91% 64%, 100% 64%, 100% 100%, 0 100%
    );
  }
}

@keyframes gridBuildTwo {
  0% {
    clip-path: polygon(
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%
    );
  }
  25% {
    clip-path: polygon(
      0 70%, 9% 70%, 9% 50%, 22% 50%,
      22% 100%, 22% 100%, 22% 100%, 22% 100%,
      22% 100%, 22% 100%, 22% 100%, 22% 100%,
      22% 100%, 22% 100%, 22% 100%, 0 100%
    );
  }
  50% {
    clip-path: polygon(
      0 70%, 9% 70%, 9% 50%, 22% 50%,
      22% 30%, 38% 30%, 38% 12%, 59% 12%,
      59% 100%, 59% 100%, 59% 100%, 59% 100%,
      59% 100%, 59% 100%, 59% 100%, 0 100%
    );
  }
  75% {
    clip-path: polygon(
      0 70%, 9% 70%, 9% 50%, 22% 50%,
      22% 30%, 38% 30%, 38% 12%, 59% 12%,
      59% 25%, 77% 25%, 77% 43%, 91% 43%,
      91% 100%, 91% 100%, 91% 100%, 0 100%
    );
  }
  100% {
    clip-path: polygon(
      0 70%, 9% 70%, 9% 50%, 22% 50%,
      22% 30%, 38% 30%, 38% 12%, 59% 12%,
      59% 25%, 77% 25%, 77% 43%, 91% 43%,
      91% 68%, 100% 68%, 100% 100%, 0 100%
    );
  }
}

@keyframes gridBuildThree {
  0% {
    clip-path: polygon(
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%, 0 100%, 0 100%,
      0 100%, 0 100%
    );
  }
  25% {
    clip-path: polygon(
      0 66%, 6% 66%, 6% 46%, 17% 46%,
      17% 100%, 17% 100%, 17% 100%, 17% 100%,
      17% 100%, 17% 100%, 17% 100%, 17% 100%,
      17% 100%, 17% 100%, 17% 100%, 17% 100%,
      17% 100%, 0 100%
    );
  }
  50% {
    clip-path: polygon(
      0 66%, 6% 66%, 6% 46%, 17% 46%,
      17% 30%, 30% 30%, 30% 10%, 49% 10%,
      49% 100%, 49% 100%, 49% 100%, 49% 100%,
      49% 100%, 49% 100%, 49% 100%, 49% 100%,
      49% 100%, 0 100%
    );
  }
  75% {
    clip-path: polygon(
      0 66%, 6% 66%, 6% 46%, 17% 46%,
      17% 30%, 30% 30%, 30% 10%, 49% 10%,
      49% 20%, 67% 20%, 67% 36%, 83% 36%,
      83% 100%, 83% 100%, 83% 100%, 83% 100%,
      83% 100%, 0 100%
    );
  }
  100% {
    clip-path: polygon(
      0 66%, 6% 66%, 6% 46%, 17% 46%,
      17% 30%, 30% 30%, 30% 10%, 49% 10%,
      49% 20%, 67% 20%, 67% 36%, 83% 36%,
      83% 54%, 95% 54%, 95% 66%, 100% 66%,
      100% 100%, 0 100%
    );
  }
}

@keyframes heroImgEntrance {
  0%   { transform: translateX(30px) translateY(0.35rem); }
  100% { transform: translateX(0) translateY(0.35rem); }
}

@keyframes circlePopIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Animate stacks when slide is active — background sweeps left-to-right, then wobble */
.hp-hero__slide.is-active .hp-hero__fact-card--s1 {
  animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.hp-hero__slide.is-active .hp-hero__fact-card--s2 {
  animation: factCardFlyInS2 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.hp-hero__slide.is-active .hp-hero__fact-card--s3 {
  animation: factCardFlyInS3 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.hp-hero__slide.is-active .hp-deco--s1-stack {
  animation: s1StackIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
             s1StackWobble 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hp-hero__slide.is-active .hp-deco--s2-stack {
  animation: s2StackIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
             s2StackWobble 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 2.35s forwards;
}
.hp-hero__slide.is-active .hp-deco--s3-stack {
  animation: s3StackIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
             s3StackWobble 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 1.9s forwards;
}

/* Circles pop in one by one — delayed until after background reveal finishes */
.hp-hero__slide.is-active [class*="hp-deco--"][class*="-stack"] .hp-deco__circle {
  animation: circlePopIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hp-hero__slide.is-active .hp-deco--s1-stack .hp-deco__circle:nth-child(4) { animation-delay: 1.50s; }
.hp-hero__slide.is-active .hp-deco--s1-stack .hp-deco__circle:nth-child(3) { animation-delay: 1.65s; }
.hp-hero__slide.is-active .hp-deco--s1-stack .hp-deco__circle:nth-child(2) { animation-delay: 1.80s; }
.hp-hero__slide.is-active .hp-deco--s1-stack .hp-deco__circle:nth-child(1) { animation-delay: 1.95s; }

/* s2 circle timing (unchanged) */
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(1) { animation-delay: 0.90s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(2) { animation-delay: 1.05s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(3) { animation-delay: 1.20s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(4) { animation-delay: 1.35s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(5) { animation-delay: 1.50s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(6) { animation-delay: 1.65s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(7) { animation-delay: 1.80s; }

/* s3 circle timing — after s3StackIn finishes at 2.4s */
.hp-hero__slide.is-active .hp-deco--s3-stack .hp-deco__circle:nth-child(4) { animation-delay: 2.50s; }
.hp-hero__slide.is-active .hp-deco--s3-stack .hp-deco__circle:nth-child(3) { animation-delay: 2.65s; }
.hp-hero__slide.is-active .hp-deco--s3-stack .hp-deco__circle:nth-child(2) { animation-delay: 2.80s; }
.hp-hero__slide.is-active .hp-deco--s3-stack .hp-deco__circle:nth-child(1) { animation-delay: 2.95s; }

@keyframes rectReveal {
  to { visibility: visible; }
}

@keyframes rectGrowX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes rectGrowY {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Horizontal bars (s3, s3-b): grow from left */
.hp-deco--s3-rects span,
.hp-deco--s3-rects-b span {
  transform: scaleX(0);
  transform-origin: left center;
}

/* s2-rects: hidden by default, revealed one by one */
.hp-deco--s2-rects span {
  visibility: hidden;
}

/* Vertical bars (s1): grow from bottom */
.hp-deco--s1-rects span {
  transform: scaleY(0);
  transform-origin: center bottom;
}

/* Animate when slide is active */
.hp-hero__slide.is-active .hp-deco--s3-rects span,
.hp-hero__slide.is-active .hp-deco--s3-rects-b span {
  animation: rectGrowX 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Stagger s3 deco entrance: rects → rects-b → wedge → stack
   Each group starts ~50% through the previous animation for overlap.
   rectGrowX = 1.2s, wedgeGrow = 1.2s, s3StackIn = 0.8s */
.hp-hero__slide.is-active .hp-deco--s3-rects span:nth-child(1) { animation-delay: 0s; }
.hp-hero__slide.is-active .hp-deco--s3-rects span:nth-child(2) { animation-delay: 0.1s; }
.hp-hero__slide.is-active .hp-deco--s3-rects span:nth-child(3) { animation-delay: 0.2s; }
.hp-hero__slide.is-active .hp-deco--s3-rects-b span:nth-child(1) { animation-delay: 0.5s; }
.hp-hero__slide.is-active .hp-deco--s3-rects-b span:nth-child(2) { animation-delay: 0.6s; }
.hp-hero__slide.is-active .hp-deco--s3-rects-b span:nth-child(3) { animation-delay: 0.7s; }
.hp-hero__slide.is-active .hp-deco--s3-stack {
  animation-delay: 1.6s, 3.0s;
}

.hp-hero__slide.is-active .hp-deco--s2-rects span {
  animation: rectReveal 0s forwards;
}

.hp-hero__slide.is-active .hp-deco--s1-rects span {
  animation: rectGrowY 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Stagger s1 deco entrance: rects → wedge → stack */
.hp-hero__slide.is-active .hp-deco--s1-stack {
  animation-delay: 0.6s, 2.5s;
}

/* Stagger s2 deco entrance: rects (bottom-up) → stack */
.hp-hero__slide.is-active .hp-deco--s2-rects span:nth-child(3) {
  animation-delay: 0.3s;
}
.hp-hero__slide.is-active .hp-deco--s2-rects span:nth-child(2) {
  animation-delay: 0.5s;
}
.hp-hero__slide.is-active .hp-deco--s2-rects span:nth-child(1) {
  animation-delay: 0.7s;
}
.hp-hero__slide.is-active .hp-deco--s2-stack {
  animation-delay: 0.6s, 2.95s;
}
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(1) { animation-delay: 1.50s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(2) { animation-delay: 1.65s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(3) { animation-delay: 1.80s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(4) { animation-delay: 1.95s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(5) { animation-delay: 2.10s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(6) { animation-delay: 2.25s; }
.hp-hero__slide.is-active .hp-deco--s2-stack .hp-deco__circle:nth-child(7) { animation-delay: 2.40s; }

/* --- Wedge grow animation (narrow top → wide bottom) --- */
@keyframes wedgeGrow {
  from { clip-path: polygon(15% 0%, 85% 0%, 85% 0%, 15% 0%); }
  to   { clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%); }
}

/* Default: collapsed at narrow edge */
[class*="hp-deco--"][class*="-wedge"] {
  clip-path: polygon(15% 0%, 85% 0%, 85% 0%, 15% 0%);
}

/* Animate when slide is active */
.hp-hero__slide.is-active [class*="hp-deco--"][class*="-wedge"] {
  animation: wedgeGrow 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hp-hero__slide.is-active .hp-deco--s1-wedge[class*="hp-deco--"] {
  animation: wedgeGrow 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}
.hp-hero__slide.is-active .hp-deco--s3-wedge[class*="hp-deco--"] {
  animation: wedgeGrow 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 1.1s forwards;
}

/* --- Stat label / value staggered left-to-right reveal --- */
@keyframes statRevealLTR {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.hp-hero__slide.is-active .hp-hero__stat-label {
  animation: statRevealLTR 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.hp-hero__slide.is-active .hp-hero__stat-value {
  animation: statRevealLTR 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 1s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__slides {
    transition: none;
  }
  .hp-hero__slide.is-active [class*="hp-deco--"][class*="-rects"] span {
    animation: none;
    transform: none;
  }
  .hp-hero__slide.is-active [class*="hp-deco--"][class*="-wedge"] {
    animation: none;
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  }
  .hp-hero__slide.is-active [class*="hp-deco--"][class*="-stack"] {
    animation: none;
    opacity: 1;
    clip-path: none;
  }
  .hp-hero__slide.is-active [class*="hp-deco--"][class*="-stack"] .hp-deco__circle {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: none;
    transform: translateX(-138%);
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s2 {
    animation: none;
    transform: translateX(-160%);
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s3 {
    animation: none;
    transform: translateX(-170%);
  }
  .hp-hero__stat-label,
  .hp-hero__stat-value {
    clip-path: none;
  }
  .hp-hero__slide.is-active .hp-hero__stat-label,
  .hp-hero__slide.is-active .hp-hero__stat-value {
    animation: none;
  }
  .hp-hero__slide.is-active .hp-hero__grid {
    animation: none;
  }
}

/* ── Custom fact-card s1 position at 1000px breakpoint ───────────── */
@media (max-width: 1000px) {
  .hp-hero__fact-card--s1 {
    bottom: 40%;
    transform: translateX(calc(-138% - 600px)) translateY(600px);
  }
  @keyframes factCardFlyInS1 {
    0%   { transform: translateX(calc(-138% - 600px)) translateY(600px); }
    100% { transform: translateX(-135%) translateY(0); }
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
  }
  .hp-deco--s1-wedge {
    bottom: -10%;
    left: 60%;
    transform: translateX(-125%) rotate(135deg) scale(0.9);
  }

  .hp-deco--s1-stack {
    left: 45%;
  }
}

/* ── Slide 3 tweaks at 1600px ───────────── */
@media (max-width: 1700px) {
  .hp-hero__fact-card--s3 {
    transform: translateX(-160%) translateY(600px);
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-160%) translateY(600px); }
    100% { transform: translateX(-160%) translateY(0); }
  }
}

@media (max-width: 1600px) {
  .hp-hero__fact-card--s3 {
    transform: translateX(-160%) translateY(600px);
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-160%) translateY(600px); }
    100% { transform: translateX(-160%) translateY(0); }
  }
}

@media (max-width: 1500px) {
  .hp-hero__fact-card--s3 {
    transform: translateX(-150%) translateY(600px);
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-150%) translateY(600px); }
    100% { transform: translateX(-150%) translateY(0); }
  }
}

@media (max-width: 1400px) {
  .hp-deco--s3-stack {
    width: 560px;
    height: 140px;
  }
  .hp-deco--s3-stack .hp-deco__circle {
    width: 140px;
    height: 140px;
  }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(2) { left: 140px; }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(3) { left: 280px; }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(4) { left: 420px; }
}

@media (max-width: 1300px) {
  .hp-deco--s3-wedge {
    width: 320px;
    height: 390px;
  }
}

@media (max-width: 1200px) {
  .hp-hero__stat--s3 {
    left: 48%;
    bottom: 48%;
  }
  .hp-hero__stat--s3 .hp-hero__stat-value {
    width: 4ch;
    box-sizing: content-box;
    padding-right: 2rem;
  }
}

@media (max-width: 1100px) {
  .hp-hero__fact-card--s3 {
    transform: translateX(-150%) translateY(600px);
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-150%) translateY(600px); }
    100% { transform: translateX(-150%) translateY(0); }
  }
}

@media (max-width: 1000px) {
  .hp-hero__slide--three .hp-hero__img {
    height: clamp(400px, 48vw, 630px);
  }
}

@media (max-width: 800px) {
  .hp-deco--s3-stack {
    width: 400px;
    height: 100px;
    bottom: 0%;
    left: 40%;
  }
  .hp-deco--s3-stack .hp-deco__circle {
    width: 100px;
    height: 100px;
  }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(2) { left: 100px; }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(3) { left: 200px; }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(4) { left: 300px; }

  .hp-deco--s3-rects span                { width: 400px; }
  .hp-deco--s3-rects span:nth-child(1)   { width: 260px; }
  .hp-deco--s3-rects span:nth-child(2)   { width: 320px; }
  .hp-deco--s3-rects span:nth-child(3)   { width: 370px; }

  .hp-deco--s3-rects-b span              { width: 240px; }

  .hp-deco--s3-wedge {
    width: 220px;
    height: 270px;
  }

  .hp-hero__fact-card--s3 {
    max-width: 280px;
    padding: 0.4rem 0.6rem;
    transform: translateX(-160%) translateY(0);
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-160%) translateY(600px); }
    100% { transform: translateX(-160%) translateY(0); }
  }
  .hp-hero__stat--s3 {
    left: 43%;
    bottom: 65%;
  }

  .hp-hero__stat--s3 .hp-hero__stat-value {
    font-size: 3rem;
    margin-bottom: -34px;
    padding: 0.15rem 0.7rem 0.25rem;
  }
  .hp-hero__stat--s3 .hp-hero__stat-label {
    font-size: 0.9rem;
    padding-left: 6rem;
    padding-top: 2.5rem;
    padding-right: 0.7rem;
    min-width: 160px;
  }
}

@media (max-width: 700px) {
  .hp-deco--s3-stack {
    width: 300px;
    height: 75px;
  }
  .hp-deco--s3-stack .hp-deco__circle {
    width: 75px;
    height: 75px;
  }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(2) { left: 75px; }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(3) { left: 150px; }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(4) { left: 225px; }

  .hp-deco--s3-rects-b span {
    height: 32px;
  }

  .hp-deco--s3-rects span                { width: 300px; }
  .hp-deco--s3-rects span:nth-child(1)   { width: 200px; }
  .hp-deco--s3-rects span:nth-child(2)   { width: 240px; }
  .hp-deco--s3-rects span:nth-child(3)   { width: 280px; }

  .hp-deco--s3-rects span {
    height: 40px;
  }
}

@media (max-width: 600px) {
  .hp-deco--s3-rects {
    left: 45%;
  }

  .hp-deco--s3-rects-b span { width: 180px; }

  .hp-deco--s3-wedge {
    width: 160px;
    height: 200px;
  }

  .hp-deco--s3-stack {
    left: 50%;
  }

  .hp-hero__stat--s3 {
    left: 40%;
  }

  .hp-hero__fact-card--s3 {
    max-width: 300px;
    padding: 0.35rem 0.55rem;
    transform: translateX(-152%) translateY(600px);
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-152%) translateY(600px); }
    100% { transform: translateX(-152%) translateY(0); }
  }

  .hp-hero__grid--one   { background-size: 26px 20px; grid-template-columns: repeat(auto-fill, 26px); grid-auto-rows: 20px; }
  .hp-hero__grid--two   { background-size: 28px 20px; grid-template-columns: repeat(auto-fill, 28px); grid-auto-rows: 20px; }
  .hp-hero__grid--three { background-size: 24px 18px; grid-template-columns: repeat(auto-fill, 24px); grid-auto-rows: 18px; }
}

@media (max-width: 500px) {
  .hp-hero__fact-card {
    display: none;
  }

  .hp-deco--s3-stack { width: 225px; }
  .hp-deco--s3-stack .hp-deco__circle:nth-child(4) { display: none; }
  .hp-deco--s3-stack {
    left: 40%;
  }

  .hp-deco--s3-rects span                { width: 230px; height: 32px; }
  .hp-deco--s3-rects span:nth-child(1)   { width: 150px; }
  .hp-deco--s3-rects span:nth-child(2)   { width: 185px; }
  .hp-deco--s3-rects span:nth-child(3)   { width: 215px; }

  .hp-deco--s3-rects-b span { height: 26px; }

  .hp-hero__stat--s3 {
    min-width: 0;
    width: max-content;
    left: 47%;
  }
  .hp-hero__stat--s3 .hp-hero__stat-value {
    font-size: 2.25rem;
    margin-bottom: -26px;
    margin-right: 6px;
    padding: 0.1rem 0.55rem 0.2rem;
  }
  .hp-hero__stat--s3 .hp-hero__stat-label {
    font-size: 0.75rem;
    padding-left: 4rem;
    padding-top: 2rem;
    padding-right: 0.45rem;
    padding-bottom: 0.4rem;
    min-width: 0;
    width: max-content;
    align-self: flex-start;
  }

  .hp-hero__fact-card--s3 {
    width: 280px;
    max-width: 280px;
    padding: 0.14rem 0.42rem;
    line-height: 1.05;
    left: 37%;
    bottom: 56%;
    transform: translateX(-115%) translateY(600px);
  }
  .hp-hero__fact-card--s3 span {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-115%) translateY(600px); }
    100% { transform: translateX(-115%) translateY(0); }
  }

  .hp-hero__grid--one   { background-size: 20px 16px; grid-template-columns: repeat(auto-fill, 20px); grid-auto-rows: 16px; }
  .hp-hero__grid--two   { background-size: 22px 16px; grid-template-columns: repeat(auto-fill, 22px); grid-auto-rows: 16px; }
  .hp-hero__grid--three { background-size: 18px 14px; grid-template-columns: repeat(auto-fill, 18px); grid-auto-rows: 14px; }
}

@media (max-width: 400px) {
  .hp-deco--s3-rects-b { gap: 36px; }
  .hp-deco--s3-rects-b span { height: 20px; }
}

/* ── Slide 2 tweaks at 1500px ───────────── */
@media (max-width: 1500px) {
  .hp-hero__fact-card--s2 {
    max-width: 360px;
    transform: translateX(-180%) translateY(600px);
  }
  @keyframes factCardFlyInS2 {
    0%   { transform: translateX(-180%) translateY(600px); }
    100% { transform: translateX(-180%) translateY(0); }
  }
}

@media (max-width: 1100px) {
  .hp-hero__fact-card--s2 {
    transform: translateX(-170%) translateY(600px);
  }
  @keyframes factCardFlyInS2 {
    0%   { transform: translateX(-170%) translateY(600px); }
    100% { transform: translateX(-170%) translateY(0); }
  }
  .hp-deco--s2-rects {
  left: 70%;
  }
}

@media (max-width: 900px) {
  .hp-deco--s2-wedge {
    width: 310px;
    height: 380px;
  }
  .hp-deco--s2-stack {
    width: 700px;
    height: 100px;
  }
  .hp-deco--s2-stack .hp-deco__circle {
    width: 100px;
    height: 100px;
  }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(2) { left: 100px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(3) { left: 200px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(4) { left: 300px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(5) { left: 400px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(6) { left: 500px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(7) { left: 600px; }
  
  .hp-deco--s2-rects span {
    width: 600px;
    left: 60%;
  }
  .hp-hero__fact-card--s2 {
    transform: translateX(-160%) translateY(600px);
  }

  @keyframes factCardFlyInS2 {
    0%   { transform: translateX(-160%) translateY(600px); }
    100% { transform: translateX(-160%) translateY(0); }
  }
}

@media (max-width: 800px) {
  .hp-hero__fact-card--s2 {
    max-width: 280px;
    padding: 0.4rem 0.6rem;
    border-width: 0.4rem;
    gap: 0.5rem;
    transform: translateX(-160%) translateY(600px);
  }
  .hp-hero__fact-card--s2 .hp-hero__fact-card-logo {
    width: 1.4rem;
    height: 1.4rem;
  }
  @keyframes factCardFlyInS2 {
    0%   { transform: translateX(-160%) translateY(600px); }
    100% { transform: translateX(-168%) translateY(0); }
  }
  .hp-hero__stat--s2 {
    transform: translateX(0);
  }
  .hp-hero__stat--s2 .hp-hero__stat-value {
    /* Fixed width sized to the final "2000+" (tabular-nums) so the box never
       grows as the count crosses from 3 to 4 digits. Matches the ≤400 rule. */
    min-width: 5ch;
    width: 5ch;
    box-sizing: content-box;
  }
  .hp-hero__stat--s2 .hp-hero__stat-label {
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .hp-deco--s2-wedge {
    width: 300px;
    height: 370px;
    left: 40%;
  }
}

@media (max-width: 600px) {
  .hp-hero__fact-card--s2 {
    max-width: 320px;
    padding: 0.35rem 0.55rem;
    border-width: 0.35rem;
    gap: 0.4rem;
    transform: translateX(-150%) translateY(600px);
  }
  .hp-hero__fact-card--s2 .hp-hero__fact-card-logo {
    width: 1.2rem;
    height: 1.2rem;
  }
  @keyframes factCardFlyInS2 {
    0%   { transform: translateX(-150%) translateY(600px); }
    100% { transform: translateX(-150%) translateY(0); }
  }
  .hp-hero__stat--s2 {
    transform: translateX(0);
    left: 55%;
  }
  .hp-hero__stat--s2 .hp-hero__stat-value {
    font-size: 3.2rem;
    margin-bottom: -36px;
    padding: 0.15rem 0.7rem 0.25rem;
    min-width: 4ch;
  }
  .hp-hero__stat--s2 .hp-hero__stat-label {
    padding-left: 0.9rem;
    padding-top: 2.6rem;
    padding-right: 0.9rem;
    font-size: 0.95rem;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
    text-align: right;
  }
  .hp-deco--s2-stack {
    width: 595px;
    height: 85px;
  }
  .hp-deco--s2-stack .hp-deco__circle {
    width: 85px;
    height: 85px;
  }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(1) { left: 0; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(2) { left: 85px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(3) { left: 170px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(4) { left: 255px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(5) { left: 340px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(6) { left: 425px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(7) { left: 510px; }
  .hp-deco--s2-rects span {
    height: 32px;
  }
  .hp-deco--s2-rects {
    gap: 50px;
    bottom: 0%;
    left: 75%;
  }
  .hp-deco--s2-wedge {
    width: 220px;
    height: 270px;
    left: 55%;
  }
  .hp-hero__grid--one  { background-size: 32px 24px; grid-template-columns: repeat(auto-fill, 32px); grid-auto-rows: 24px; }
  .hp-hero__grid--two  { background-size: 36px 24px; grid-template-columns: repeat(auto-fill, 36px); grid-auto-rows: 24px; }
  .hp-hero__grid--three { background-size: 30px 22px; grid-template-columns: repeat(auto-fill, 30px); grid-auto-rows: 22px; }
}

@media (max-width: 500px) {
  .hp-hero__fact-card--s2 {
    max-width: 250px;
    padding: 0.3rem 0.45rem;
    border-width: 0.3rem;
    gap: 0.35rem;
    line-height: 1.05;
    transform: translateX(-155%) translateY(600px);
  }
  .hp-hero__fact-card--s2 .hp-hero__fact-card-logo {
    width: 1rem;
    height: 1rem;
  }
  @keyframes factCardFlyInS2 {
    0%   { transform: translateX(-155%) translateY(600px); }
    100% { transform: translateX(-155%) translateY(0); }
  }
  .hp-hero__stat--s2 {
    transform: translateX(0);
    left: 50%;
  }
  .hp-hero__stat--s2 .hp-hero__stat-value {
    font-size: 2.6rem;
    margin-bottom: -28px;
    padding: 0.12rem 0.55rem 0.2rem;
    min-width: 4ch;
  }
  .hp-hero__stat--s2 .hp-hero__stat-label {
    padding-left: 0.7rem;
    padding-top: 2.1rem;
    padding-right: 0.7rem;
    font-size: 0.8rem;
  }
  .hp-deco--s2-wedge {
    width: 170px;
    height: 210px;
    left: 55%;
  }
  .hp-deco--s2-rects {
    gap: 38px;
    left: 60%;
    bottom: 15%;
  }
  .hp-deco--s2-rects span {
    width: 340px;
    height: 22px;
  }
  .hp-deco--s2-stack {
    width: 420px;
    height: 60px;
  }
  .hp-deco--s2-stack .hp-deco__circle {
    width: 60px;
    height: 60px;
  }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(1) { left: 0; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(2) { left: 60px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(3) { left: 120px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(4) { left: 180px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(5) { left: 240px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(6) { left: 300px; }
  .hp-deco--s2-stack .hp-deco__circle:nth-child(7) { left: 360px; }
}

@media (max-width: 400px) {
  .hp-hero__stat--s2 {
    left: 43%;
  }
  .hp-hero__stat--s3 {
    left: 44%;
    bottom: 60%;
  }
  .hp-hero__stat--s2 .hp-hero__stat-value {
    font-size: 2.3rem;
    margin-bottom: -26px;
    padding: 0.08rem 0.4rem 0.15rem;
    min-width: 5ch;
    width: 5ch;
    box-sizing: content-box;
  }
  .hp-hero__stat--s2 .hp-hero__stat-label {
    padding-left: 3rem;
    padding-top: 1.85rem;
    padding-right: 2rem;
    font-size: 0.75rem;
    min-width: 0;
    width: fit-content;
    align-self: flex-end;
    margin-right: 0rem;
  }
  .hp-hero__fact-card--s2 {
    max-width: 240px;
    padding: 0.25rem 0.4rem;
    border-width: 0.25rem;
    gap: 0.3rem;
    bottom: 50%;
    left: 51%;
  }
  .hp-hero__fact-card--s2 .hp-hero__fact-card-logo {
    width: 0.85rem;
    height: 0.85rem;
  }
  .hp-deco--s2-wedge {
    left: 45%;
  }
  .hp-deco--s2-rects {
    left: 70%;
    bottom: 0%;
  }
  .hp-hero__grid--one  { background-size: 22px 16px; grid-template-columns: repeat(auto-fill, 22px); grid-auto-rows: 16px; }
  .hp-hero__grid--two  { background-size: 24px 16px; grid-template-columns: repeat(auto-fill, 24px); grid-auto-rows: 16px; }
  .hp-hero__grid--three { background-size: 20px 14px; grid-template-columns: repeat(auto-fill, 20px); grid-auto-rows: 14px; }
}

@media (max-width: 300px) {
  .hp-hero__stat--s2 {
    left: 35%;
    bottom: 50%;
  }
}

/* ── Hero down-step for large desktops (1301–1700px) ───────────── */
@media (max-width: 1700px) and (min-width: 1301px) {
  .hp-hero__visual {
    --hp-hero-scale: 0.85;
    --hp-hero-natural-height: clamp(340px, 39vw, 560px);
  }

  .hp-hero__text {
    padding: clamp(1rem, 0.43rem + 1.7vw, 2.04rem) 4% clamp(0.51rem, 0.26rem + 0.85vw, 1.02rem);
  }
  .hp-hero__title {
    font-size: clamp(2.3rem, 4.9vw, 3.4rem);
    margin: 0.43rem auto clamp(0.51rem, 1.28vw, 1.06rem);
  }
  .hp-hero__desc {
    font-size: 0.98rem;
    margin: 0 auto clamp(0.85rem, 1.7vw, 1.7rem);
  }
  .hp-hero__banner {
    font-size: clamp(0.55rem, 2.7vw, 0.86rem);
    margin: 0 auto 1.27rem;
  }
  .hp-hero__cta {
    font-size: 1rem;
    padding: 0.77rem 2.05rem;
  }

  .hp-hero__grid--one   { background-size: 68px 51px; grid-template-columns: repeat(auto-fill, 68px); grid-auto-rows: 51px; }
  .hp-hero__grid--two   { background-size: 78px 53px; grid-template-columns: repeat(auto-fill, 78px); grid-auto-rows: 53px; }
  .hp-hero__grid--three { background-size: 62px 45px; grid-template-columns: repeat(auto-fill, 62px); grid-auto-rows: 45px; }
}

/* ── Hero down-step for small desktops (1101–1300px) ───────────── */
@media (max-width: 1300px) and (min-width: 1101px){
  .hp-hero__visual {
    --hp-hero-scale: 0.78;
    --hp-hero-natural-height: clamp(340px, 40vw, 560px);
  }

  .hp-hero__text {
    padding: clamp(0.9rem, 0.4rem + 1.5vw, 1.8rem) 4% clamp(0.46rem, 0.24rem + 0.75vw, 0.9rem);
  }
  .hp-hero__title {
    font-size: clamp(2.1rem, 4.4vw, 3.05rem);
    margin: 0.4rem auto clamp(0.46rem, 1.15vw, 0.95rem);
  }
  .hp-hero__desc {
    font-size: 0.92rem;
    margin: 0 auto clamp(0.76rem, 1.5vw, 1.5rem);
  }
  .hp-hero__banner {
    font-size: clamp(0.55rem, 2.5vw, 0.82rem);
    margin: 0 auto 1.1rem;
  }
  .hp-hero__cta {
    font-size: 1rem;
    padding: 0.7rem 1.85rem;
  }

  .hp-hero__grid--one  { background-size: 66px 50px; grid-template-columns: repeat(auto-fill, 66px); grid-auto-rows: 50px; }
  .hp-hero__grid--two  { background-size: 76px 52px; grid-template-columns: repeat(auto-fill, 76px); grid-auto-rows: 52px; }
  .hp-hero__grid--three { background-size: 62px 46px; grid-template-columns: repeat(auto-fill, 62px); grid-auto-rows: 46px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hp-hero__visual {
    --hp-hero-scale: 0.74;
    --hp-hero-natural-height: clamp(340px, 42vw, 520px);
  }

  .hp-hero__text {
    padding: clamp(0.8rem, 0.38rem + 1.3vw, 1.6rem) 4% clamp(0.42rem, 0.22rem + 0.7vw, 0.82rem);
  }
  .hp-hero__title {
    font-size: clamp(2.4rem, 4.9vw, 3.3rem);
    margin: 0.4rem auto clamp(0.42rem, 1.05vw, 0.85rem);
  }
  .hp-hero__desc {
    font-size: 1rem;
    margin: 0 auto clamp(0.7rem, 1.4vw, 1.35rem);
  }
  .hp-hero__banner {
    margin: 0 auto 1rem;
  }
  .hp-hero__cta {
    font-size: 1rem;
    padding: 0.64rem 1.65rem;
  }

  .hp-hero__fact-card {
    font-size: clamp(1.8rem, 0.7rem + 2vw, 2.2rem);
  }

  .hp-hero__grid--one  { background-size: 58px 44px; grid-template-columns: repeat(auto-fill, 58px); grid-auto-rows: 44px; }
  .hp-hero__grid--two  { background-size: 66px 44px; grid-template-columns: repeat(auto-fill, 66px); grid-auto-rows: 44px; }
  .hp-hero__grid--three { background-size: 54px 40px; grid-template-columns: repeat(auto-fill, 54px); grid-auto-rows: 40px; }
}

@media (max-width: 900px) {
  .hp-hero__visual {
    --hp-hero-scale: 0.70;
    --hp-hero-natural-height: clamp(340px, 46vw, 520px);
  }

  .hp-hero__grid--one  { background-size: 48px 36px; grid-template-columns: repeat(auto-fill, 48px); grid-auto-rows: 36px; }
  .hp-hero__grid--two  { background-size: 54px 36px; grid-template-columns: repeat(auto-fill, 54px); grid-auto-rows: 36px; }
  .hp-hero__grid--three { background-size: 44px 32px; grid-template-columns: repeat(auto-fill, 44px); grid-auto-rows: 32px; }
}

/* 601–900: nudge the s3 card. Scoped above 600 so the ≤600 position wins. */
@media (max-width: 900px) and (min-width: 601px) {
  .hp-hero__fact-card--s3 {
    transform: translateX(-165%) translateY(600px);
  }
  @keyframes factCardFlyInS3 {
    0%   { transform: translateX(-165%) translateY(600px); }
    100% { transform: translateX(-165%) translateY(0); }
  }
}

/* 701–900: narrow the s3 card so the fact wraps to 3 lines.
   Scoped above 700 so the ≤700/≤500 tuned widths are untouched. */
@media (max-width: 900px) and (min-width: 701px) {
  .hp-hero__fact-card--s3 {
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .hp-hero__slide--one .hp-hero__img {
    height: clamp(410px, 48vw, 700px);
  }
  .hp-hero__slide--one .hp-deco--s1-stack {
    height: 420px;
    left: 50%;
  }
  .hp-hero__stat--s1 {
    bottom: 40%;
    left: 49%;
  }
  .hp-hero__fact-card--s1 {
    bottom: 33%;
    transform: translateX(calc(-138% - 600px)) translateY(600px);
  }
  @keyframes factCardFlyInS1 {
    0%   { transform: translateX(calc(-138% - 600px)) translateY(600px); }
    100% { transform: translateX(-135%) translateY(0); }
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
  }
}

@media (max-width: 800px) {
  .hp-hero__slide--one .hp-deco--s1-stack {
    height: 400px;
    left: 51%;
  }
  .hp-hero__slide--one .hp-deco--s1-wedge {
    transform: translateX(-125%) rotate(135deg) scale(0.7);
    bottom: -18%;
    left: 65%;
  }
  .hp-hero__stat--s1 .hp-hero__stat-value {
    font-size: 4rem;
    margin-bottom: -42px;
  }
  .hp-hero__stat--s1 .hp-hero__stat-label {
    padding-left: 8rem;
    padding-top: 3rem;
    min-width: 200px;
  }
  .hp-hero__fact-card--s1 {
    bottom: 33%;
    max-width: 360px;
    transform: translateX(calc(-138% - 600px)) translateY(600px);
  }
  @keyframes factCardFlyInS1 {
    0%   { transform: translateX(calc(-138% - 600px)) translateY(600px); }
    100% { transform: translateX(-135%) translateY(0); }
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
  }

  .hp-deco--s1-rects {
    left: 40%;
  }
}

@media (max-width: 700px) {
  .hp-hero__slide--one .hp-deco--s1-stack {
    height: 350px;
    left: 55%;
  }
  .hp-hero__fact-card--s1 {
        bottom: 33%;
    transform: translateX(calc(-138% - 600px)) translateY(600px);
    min-width: 325px;
  }
  @keyframes factCardFlyInS1 {
    0%   { transform: translateX(calc(-138% - 600px)) translateY(600px); }
    100% { transform: translateX(-141%) translateY(0); }
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
  }
  .hp-deco--s1-rects span {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .hp-hero__banner {
    font-size: clamp(0.5rem, 2.4vw, 0.82rem);
    gap: 0.4em;
    padding: 0.18em 0.45em 0.18em 0.32em;
    outline-offset: 2px;
  }

  .hp-hero__banner-copy {
    display: none;
  }

  .hp-deco--s1-rects span {
    height: 250px;
  }
  .hp-deco--s1-rects {
    left: 25%;
  }
  .hp-hero__slide--one .hp-deco--s1-stack {
    height: 300px;
    left: 50%;
  }
  .hp-hero__slide--one .hp-deco--s1-wedge {
    transform: translateX(-105%) rotate(135deg) scale(0.55);
    bottom: -35%;
  }
  .hp-hero__fact-card--s1 {
    bottom: 45%;
    min-width: 240px;
    max-width: 320px;
    padding: 0.4rem 0.55rem;
    border-radius: 12px;
    border-width: 0.35rem;
    gap: 0.5rem;
  }
  .hp-hero__fact-card--s1 .hp-hero__fact-card-logo {
    width: 1.4rem;
    height: 1.4rem;
  }
  @keyframes factCardFlyInS1 {
    0%   { transform: translateX(calc(-138% - 600px)) translateY(600px); }
    100% { transform: translateX(-150%) translateY(0); }
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
  }
  .hp-hero__stat--s1 {
    min-width: 200px;
    bottom: 47%;
    left: 48%;
  }
  .hp-hero__stat--s1 .hp-hero__stat-value {
    font-size: 3rem;
    margin-bottom: -32px;
    padding: 0.15rem 0.7rem 0.25rem;
  }
  .hp-hero__stat--s1 .hp-hero__stat-label {
    font-size: 0.95rem;
    padding-left: 6rem;
    padding-top: 2.2rem;
    padding-right: 0.75rem;
    min-width: 170px;
  }
}

@media (max-width: 500px) {
  .hp-deco--s1-rects span {
    height: 200px;
  }
  .hp-deco--s1-rects {
    left: 20%;
  }
  .hp-hero__slide--one .hp-deco--s1-stack {
    height: 240px;
    left: 50%;
  }
  .hp-hero__slide--one .hp-deco--s1-wedge {
    transform: translateX(-90%) rotate(135deg) scale(0.45);
    bottom: -45%;
  }
  .hp-hero__fact-card--s1 {
    bottom: 45%;
    min-width: 200px;
    max-width: 270px;
    padding: 0.3rem 0.45rem;
    border-radius: 10px;
    border-width: 0.3rem;
    gap: 0.4rem;
  }
  .hp-hero__fact-card--s1 .hp-hero__fact-card-logo {
    width: 1.15rem;
    height: 1.15rem;
  }
  @keyframes factCardFlyInS1 {
    0%   { transform: translateX(calc(-138% - 600px)) translateY(600px); }
    100% { transform: translateX(-150%) translateY(0); }
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
  }
  .hp-hero__stat--s1 {
    min-width: 170px;
  }
  .hp-hero__stat--s1 .hp-hero__stat-value {
    font-size: 2.4rem;
    margin-bottom: -26px;
    padding: 0.1rem 0.55rem 0.2rem;
  }
  .hp-hero__stat--s1 .hp-hero__stat-label {
    font-size: 0.8rem;
    padding-left: 4.8rem;
    padding-top: 1.8rem;
    padding-right: 0.6rem;
    min-width: 140px;
  }
  .hp-hero__grid--one {
    background-size: 32px 24px;
    grid-template-columns: repeat(auto-fill, 32px);
    grid-auto-rows: 24px;
  }
}

@media (max-width: 400px) {
  .hp-deco--s1-rects span {
    height: 150px;
    width: 20px;
  }
  .hp-deco--s1-rects {
    left: 35%;
    gap: 36px;
  }
  .hp-hero__slide--one .hp-deco--s1-stack {
    /* height: 180px;
    left: 50%; */
    display: none;
  }
  .hp-hero__slide--one .hp-deco--s1-wedge {
    transform: translateX(-90%) rotate(135deg) scale(0.35);
    bottom: -50%;
  }
  .hp-hero__fact-card--s1 {
    bottom: 50%;
    min-width: 150px;
    max-width: 200px;
    padding: 0.22rem 0.35rem;
    border-radius: 8px;
    border-width: 0.22rem;
    gap: 0.3rem;
  }
  .hp-hero__fact-card--s1 .hp-hero__fact-card-logo {
    width: 0.9rem;
    height: 0.9rem;
  }
  @keyframes factCardFlyInS1 {
    0%   { transform: translateX(calc(-138% - 450px)) translateY(450px); }
    100% { transform: translateX(-150%) translateY(0); }
  }
  .hp-hero__slide.is-active .hp-hero__fact-card--s1 {
    animation: factCardFlyInS1 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
  }
  .hp-hero__stat--s1 {
    min-width: 170px;
    bottom: 40%;
    left: 52%;
  }
  .hp-hero__stat--s1 .hp-hero__stat-value {
    font-size: 2.3rem;
    margin-bottom: -26px;
    padding: 0.08rem 0.4rem 0.15rem;
  }
  .hp-hero__stat--s1 .hp-hero__stat-label {
    font-size: 0.78rem;
    padding-left: 3.6rem;
    padding-top: 1.75rem;
    padding-right: 0.45rem;
    min-width: 150px;
  }
  .hp-hero__grid--one {
    background-size: 14px 10px;
    grid-template-columns: repeat(auto-fill, 14px);
    grid-auto-rows: 10px;
  }
}

@media (max-width: 768px) {
  .hp-hero__text {
    padding: clamp(1.4rem, 0.5rem + 2.5vw, 2.4rem) 4% clamp(1rem, 0.4rem + 1.5vw, 1.6rem);
  }

  .hp-hero__title {
    font-size: clamp(2.25rem, 9.2vw, 3.6rem);
    margin-bottom: 0.8rem;
  }

  .hp-hero__banner {
    margin-bottom: 1rem;
  }

  .hp-hero__visual {
    --hp-hero-scale: 0.62;
    --hp-hero-natural-height: clamp(280px, 64vw, 430px);
    min-height: 0;
    padding-inline: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hp-hero__slide {
    height: 100%;
  }

  .hp-hero__grid--one {
    height: min(100%, clamp(280px, 66vw, 420px));
    background-size: 56px 42px;
    grid-template-columns: repeat(auto-fill, 56px);
    grid-auto-rows: 42px;
  }

  .hp-hero__grid--two {
    height: min(100%, clamp(270px, 64vw, 400px));
    background-size: 62px 42px;
    grid-template-columns: repeat(auto-fill, 62px);
    grid-auto-rows: 42px;
  }

  .hp-hero__grid--three {
    height: min(100%, clamp(285px, 67vw, 430px));
    background-size: 54px 40px;
    grid-template-columns: repeat(auto-fill, 54px);
    grid-auto-rows: 40px;
  }

  .hp-hero__img {
    height: min(100%, clamp(270px, 64vw, 430px));
    max-width: 100%;
  }
}

/* Tighten vertical spacing once the banner collapses to the tag + "Learn more" (copy hidden ≤600px). Placed after the 768px block so it wins on source order. */
@media (max-width: 600px) {
  .hp-hero__text {
    padding-top: clamp(0.8rem, 0.4rem + 1.5vw, 1.4rem);
  }

  /* Match the space below the banner to the space above it. The title's
     0.5rem top margin is removed so the banner's margin-bottom is the only
     gap below, mirroring the text padding-top above. */
  .hp-hero__banner {
    margin-bottom: clamp(0.8rem, 0.4rem + 1.5vw, 1.4rem);
  }

  .hp-hero__title {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .hp-hero__grid--one {
    background-size: 40px 30px;
    grid-template-columns: repeat(auto-fill, 40px);
    grid-auto-rows: 30px;
  }

  .hp-hero__grid--two {
    background-size: 44px 30px;
    grid-template-columns: repeat(auto-fill, 44px);
    grid-auto-rows: 30px;
  }

  .hp-hero__grid--three {
    background-size: 38px 28px;
    grid-template-columns: repeat(auto-fill, 38px);
    grid-auto-rows: 28px;
  }
}

@media (max-width: 400px) {
  .hp-hero__banner {
    font-size: clamp(0.5rem, 2.55vw, 0.7rem);
    gap: 0.35em;
    padding: 0.28em 0.42em 0.28em 0.32em;
  }

  .hp-hero__banner-tag {
    padding: 0.3em 0.55em;
  }

  .hp-hero__banner-arrow {
    min-width: 1.2em;
    height: 1.2em;
  }

  .hp-hero__grid--three {
    background-size: 24px 18px;
    grid-template-columns: repeat(auto-fill, 24px);
    grid-auto-rows: 18px;
  }
}

.home-section {
  padding: 3rem 0;
}

.content-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--ssb-border);
  background: var(--ssb-surface);
}

.entry-title {
  margin: 0 0 0.5rem;
}

.entry-title a {
  text-decoration: none;
}

@media (max-width: 640px) {
  /* Brand mark scales up slightly relative to the (shrinking) brand
     text on small screens; absolute size still trends downward.
     Everything else for this breakpoint is handled by the hamburger
     nav rules further down (≤1440 / ≤700 / ≤640 / ≤480 / ≤380). */
  .nav-brand-mark {
    width: 1.25em;
    height: 1.25em;
  }
}

/* ── Scrolling logo banner ─────────────────────── */
.hp-logo-banner {
  background: var(--ssb-surface);
  padding-top: 2.5rem;
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.hp-logo-banner__heading {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
  color: var(--ssb-nav-ink);
}

.hp-logo-banner__track {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hp-logo-banner__scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 11vw, 10rem);
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}

.hp-logo-banner__logo {
  height: clamp(50px, 3vw + 30px, 70px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.hp-logo-banner__logo[src*="tv-licensing"] {
  height: clamp(32px, 1.9vw + 20px, 45px);
}

@media (max-width: 1100px) {
  .hp-logo-banner__scroll {
    gap: clamp(2rem, 8vw, 6.5rem);
  }
}

@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-logo-banner__scroll {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: auto;
    padding: 0 2rem;
  }
}

/* ── What we offer section ─────────────────────── */
.hp-offers {
  background: var(--ssb-surface);
  padding-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
}

.hp-offers__inner {
  width: min(1550px, 92%);
  margin: 0 auto;
  text-align: center;
}

.hp-offers__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssb-nav-ink);
  background: rgb(255, 230, 243);
  padding: 0.15em 0.4em;
  margin: 0 0 0.8rem;
}

.hp-offers__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.12;
  margin: 0 0 1.1rem;
}

.hp-offers__desc {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 auto 3rem;
}

.hp-offers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 170px auto;
  column-gap: 1.4rem;
  row-gap: 0;
  margin-bottom: 3rem;
}

.hp-offers__card {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  /* Use the card's own (zero) row gap for the section rows, instead of
     inheriting the grid's row-gap. At the <=1200px breakpoint the grid sets
     row-gap to space the two ROWS of cards apart; without this, that gap is
     also inserted between each card's title/visual/bottom sections. */
  row-gap: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* NOTE: do NOT set container-type here. This element is a subgrid
     (grid-template-rows: subgrid). In Chrome, putting container-type on a
     subgrid item applies size containment that stops its contents from
     contributing to the shared parent rows, so cards no longer line up
     (Safari tolerates it). The container query lives on
     .hp-offers__card-title instead, which keeps cqi title sizing working. */
}

.hp-offers__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* -- Card colour themes (applied to whole card as base) -- */
.hp-offers__card--energy  { --card-bg: #e6ffd9; --card-grid: #c7ffb3; --card-foot: #e6ffd9;}
.hp-offers__card--water   { --card-bg: #ffe8e2; --card-grid: #ffcdc4; --card-foot: #ffe8e2;}
.hp-offers__card--broadband { --card-bg: #ceebff; --card-grid: #97cdff; --card-foot: #ceebff;}
.hp-offers__card--tv      { --card-bg: #f0e8ff; --card-grid: #deccff; --card-foot: #f0e8ff;}

/* -- "Always included" badge on the energy card -- */
.hp-offers__card--energy {
  --energy-ring: #2ecc71;
  overflow: visible;
}

.hp-offers__card-header {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
}

.hp-offers__card-header .hp-offers__card-title {
  padding-bottom: 0;
}

.hp-offers__card-badge {
  align-self: center;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgb(255, 243, 220);
  color: var(--ssb-nav-ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.hp-offers__card:hover .hp-offers__card-badge {
  transform: scale(1.08);
}

.hp-offers__card-badge::before {
  content: "★";
  font-size: 0.7rem;
  line-height: 1;
  color: #d4a017;
}

/* -- Section 1: title header (solid colour, no hatching) -- */
.hp-offers__card-title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  color: var(--ssb-nav-ink);
  font-weight: 700;
  margin: 0;
  padding-left: 0.5rem;
  padding-bottom: 1.9rem;
  background: var(--card-bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  /* Query container for the title text below. Lives here (a normal grid
     item) rather than on .hp-offers__card so subgrid row sharing keeps
     working in Chrome. The h3 stretches to the card width, so cqi on its
     child resolves against the card width as before. */
  container-type: inline-size;
}

/* Scale title to card width so it always fits on one line. cqi must be on a
   descendant of the container (.hp-offers__card-title), not the container
   itself. */
.hp-offers__card-title-text {
  font-size: min(1.75rem, 9.5cqi);
}

/* -- Section 2: visual area (hatched grid) -- */
.hp-offers__card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 1.4rem;
  background-color: var(--card-bg);
  background-image:
    linear-gradient(to right, var(--card-grid) 2px, transparent 2px),
    linear-gradient(to bottom, var(--card-grid) 2px, transparent 2px);
  background-size: 22px 22px;
  background-repeat: round;
  box-shadow: inset -2px -2px 0 0 var(--card-grid);
}

.hp-offers__card-icon {
  width: 90px;
  height: 90px;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.hp-offers__card:hover .hp-offers__card-icon {
  transform: scale(1.2);
}

/* -- Section 3: text footer (lighter solid bg) -- */
.hp-offers__card-bottom {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 0.75rem 0.75rem;
  background: var(--card-foot);
}

.hp-offers__card-desc {
  font-size: 1rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
  /* Reserve a small line floor so every card's desc has a
     consistent baseline without leaving a big empty gap above
     the text when the copy only spans one or two lines. */
  min-height: calc(1.6em * 2);
}

/* hp-offers__cta – visual props via shared CTA rule */

@media (max-width: 1200px) {
  .hp-offers__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 170px auto auto 170px auto;
    row-gap: 1.4rem;
  }
}

@media (max-width: 720px) {
  .hp-offers {
    padding: 3rem 0;
  }

  .hp-offers__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 1.4rem;
  }

  .hp-offers__card {
    grid-row: span 3;
  }
}

/* ── How it works section ──────────────────────── */
.hp-steps {
  --step-line-width: 2px;
  padding-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
  background: var(--ssb-surface);
}

.hp-steps__inner {
  /* Match the "Why Students Choose Us" (.hp-proof__inner) gutter */
  width: min(1300px, 94%);
  margin: 0 auto;
}

/* Header — sits above the step list, centred */
.hp-steps__header {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  padding: 0 1.2rem;
  text-align: center;
}

.hp-steps__kicker {
  display: block;
  width: fit-content;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssb-nav-ink);
  background: var(--active-kicker-bg, rgb(230, 243, 255));
  padding: 0.15em 0.4em;
  margin: 0 auto 2.5rem;
  transition: background 0.4s ease;
}

.hp-steps__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hp-steps__desc {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* Single-column body: header above, centred step list below */
.hp-steps__body {
  --steps-max: 860px; /* width shared by the step column and active band; content stays left-aligned within it */
  --steps-pad: 1.25rem; /* breathing room around the step content */
  display: flex;
  flex-direction: column;
  position: relative; /* stacking context for the ::before active-row band */
  --active-step-bg: rgb(206, 235, 255); /* default matches step 1; updated by JS */
  --step-line-inactive: rgba(31, 39, 70, 0.2); /* muted nav-ink (#1f2746) — lighter than the greyed-out text so lines read as subtle dividers */
}

/* Active-row band: matches the trimmed step-column width, centred, at the
   height of the active item. top/height are set as CSS custom properties
   updated by JS on each step change. */
.hp-steps__body::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(var(--steps-max), 100%) - var(--steps-pad) * 2);
  top: var(--band-top, 0px);
  height: var(--band-height, 0px);
  background-color: var(--band-bg, transparent);
  transition: background-color 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

/* Step list column — trimmed and centred */
.hp-steps__left {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--steps-max);
  align-self: center;
  padding-inline: var(--steps-pad);
}

/* ── Step list ── */
.hp-steps__list {
  display: flex;
  flex-direction: column;
  border-bottom: var(--step-line-width) solid var(--step-line-inactive);
  transition: border-color 0.3s ease;
}

/* Bottom edge only takes the active colour when the last step is active */
.hp-steps__list:has(.hp-steps__item--active:last-child) {
  border-bottom-color: var(--active-step-bg);
}

/* ── Individual step item ── */

/* Colour variables per step */
.hp-steps__item:nth-child(1) { --step-bg: rgb(206,235,255); --step-color: #4a1a1a; --step-grid: rgb(128,203,255); --step-bar: rgb(0, 149, 255); --step-highlight: rgb(128, 203, 255); }
.hp-steps__item:nth-child(2) { --step-bg: rgb(255, 247, 245); --step-color: #0b2068; --step-grid: rgba(255, 179, 163); --step-bar: rgb(250,64,39); --step-highlight: rgb(255, 232, 226); }
.hp-steps__item:nth-child(3) { --step-bg: rgb(255,230,243); --step-color: #1a4d25; --step-grid: rgb(255,230,243); --step-bar: rgb(255,127,200); --step-highlight: rgb(255,179,222); }
.hp-steps__item:nth-child(4) { --step-bg: rgb(230,255,217); --step-color: #5a4b00; --step-grid: rgba(210,255,193);   --step-bar: rgb(68,255,0); --step-highlight: rgb(149,255,111); }
.hp-steps__item:nth-child(5) { --step-bg: rgb(255, 253, 217); --step-color: #0f4a3a; --step-grid: rgb(255,253,217);  --step-bar: rgb(255,246,125); --step-highlight: rgb(255,246,125); }

.hp-steps__item {
  /* color: var(--step-color); */
  position: relative;
  background: transparent;
  transition: transform 0.2s ease;
  cursor: pointer;
}

/* Lift only inactive steps on hover. The active step doesn't respond to clicks,
   and lifting it shifts the JS-positioned active band off its progress bar,
   leaving the loading bar running over white when a step is clicked. */
.hp-steps__item:not(.hp-steps__item--active):hover {
  transform: translateY(-4px);
}

/* Full-width top line across the step list — greyed out by default,
   like the inactive step title/number/text. */
.hp-steps__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--step-line-width);
  background: var(--step-line-inactive);
  transition: background 0.3s ease;
  pointer-events: none;
}

/* Only the active step's bounding lines take the colour: its own top line… */
.hp-steps__item--active::before {
  background: var(--active-step-bg);
}

/* …and its bottom line (the next item's top line). */
.hp-steps__item--active + .hp-steps__item::before {
  background: var(--active-step-bg);
}

/* Keep grid lines in place when item lifts on hover */
.hp-steps__item:not(.hp-steps__item--active):hover::before {
  transform: translateY(4px);
}

/* Active item: background is painted by the ::before band on .hp-steps__body (see above).
   The item itself stays transparent so the band shows through. */
.hp-steps__item--active {
  background-color: transparent;
  transition: background-color 0.3s ease;
  cursor: default;
}

/* ── Trigger button (always visible row) ── */
.hp-steps__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.8rem 2rem 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform 0.25s ease;
}

.hp-steps__item:hover .hp-steps__trigger {
  /* hover lift now handled on .hp-steps__item */
}

.hp-steps__trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.hp-steps__number {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
  color: var(--ssb-nav-ink);
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.hp-steps__item--active .hp-steps__number {
  opacity: 1;
}

.hp-steps__item-title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ssb-nav-ink);
  margin: 0;
  line-height: 1.2;
  opacity: 0.5;
  transition: opacity 0.25s ease, font-size 0.3s ease;
}

.hp-steps__item--active .hp-steps__item-title {
  font-size: 1.3rem;
  opacity: 1;
}

/* ── Expandable body ── */
.hp-steps__expand {
  display: grid;
  grid-template-rows: 1fr; /* always expanded — every step's content stays open */
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}

.hp-steps__item--active .hp-steps__expand {
  grid-template-rows: 1fr;
}

.hp-steps__expand > * {
  overflow: hidden;
}

.hp-steps__item-desc {
  font-size: 1rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 0 1.2rem;
  opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hp-steps__item--active .hp-steps__item-desc {
  opacity: 1;
}

.hp-steps__item:hover .hp-steps__item-desc {
  /* hover lift now handled on .hp-steps__item */
}

/* ── Read-more link ── */
.hp-steps__read-more {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ssb-nav-ink);
  text-decoration: none;
  background: var(--step-highlight);
  padding: 0.2em 0.5em;
  width: fit-content;
  margin-bottom: 1.2rem;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  transform-origin: right center;
}

.hp-steps__item--active .hp-steps__read-more {
  display: inline-flex;
}

.hp-steps__item:hover .hp-steps__read-more {
  opacity: 0.85;
  transform: scale(1.06);
}

.hp-steps__read-more:hover {
  opacity: 0.85;
  transform: scale(1.06);
  /* color: var(--step-bar); */
}

/* ── Progress bar — runs along the bottom edge of the active step ── */
.hp-steps__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

/* Keep progress bar in place when item lifts on hover */
.hp-steps__item:not(.hp-steps__item--active):hover .hp-steps__progress {
  transform: translateY(4px);
}

.hp-steps__item--active .hp-steps__progress {
  opacity: 1;
}

.hp-steps__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--step-bar);
  transition: width linear;
}

/* ── Footer CTA ── */
.hp-steps__footer {
  margin-top: 3rem;
  text-align: center;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hp-steps__trigger {
    padding: 1.1rem 1rem;
  }

  .hp-steps__expand {
    padding: 0 1rem;
  }

  .hp-steps__item-title {
    font-size: 1rem;
  }

  .hp-steps__item--active .hp-steps__item-title {
    font-size: 1.1rem;
  }
}

/* ── Price guarantee section ───────────────────── */
.hp-guarantee {
  padding-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
  background: var(--ssb-surface);
  overflow: hidden;
}

.hp-guarantee__wrap {
  --bg-scale: 1;
  position: relative;
  width: fit-content;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.hp-guarantee__bg,
.hp-guarantee__content {
  grid-area: 1 / 1;
}

.hp-guarantee__bg {
  width: calc(100% * var(--bg-scale));
  height: calc(100% * var(--bg-scale));
  object-fit: contain;
  object-position: center;
  justify-self: center;
  align-self: center;
  pointer-events: none;
  transition: transform 0.6s ease;
}

.hp-guarantee__wrap:hover .hp-guarantee__bg {
  transform: scale(1.03) translateY(-4px);
}

.hp-guarantee__wrap.is-visible .hp-guarantee__bg {
  transform: scale(1.03) translateY(-4px);
}

.hp-guarantee__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
  width: clamp(300px, 60vw, 680px);
}

.hp-guarantee__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssb-nav-ink);
  background: rgb(243, 230, 255);
  padding: 0.15em 0.4em;
  margin: 0 0 0.8rem;
}

.hp-guarantee__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  white-space: nowrap;
}

.hp-guarantee__desc {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 auto 1.2rem;
}

/* hp-guarantee__cta – visual props via shared CTA rule */

@media (max-width: 900px) {
  .hp-guarantee__wrap {
    --bg-scale: 1.1;
  }
}

@media (max-width: 600px) {
  /* Let the card grow to the same 94% width the other sections use,
     instead of staying pinned at the 300px clamp floor */
  .hp-guarantee__content {
    width: min(680px, 94vw);
    padding: 3rem 0;
  }
}

/* ── Proof / bento grid ───────────────────────────── */

.hp-proof {
  background: var(--ssb-surface);
  padding-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
}

.hp-proof__inner {
  width: min(1300px, 94%);
  margin: 0 auto;
  text-align: center;
}

.hp-proof__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssb-nav-ink);
  background: rgb(255, 243, 220);
  padding: 0.15em 0.4em;
  margin: 0 0 0.8rem;
}

.hp-proof__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.12;
  margin: 0 0 1.1rem;
}

.hp-proof__desc {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 auto 3rem;
}

.hp-proof__cta-top {
  margin-top: 3rem;
}

.hp-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  text-align: left;
}

/* ── Card base ── */
.hp-proof__card {
  position: relative;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 240px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.25s ease;
  cursor: pointer;
  container-type: inline-size;
}

.hp-proof__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  filter: brightness(0.93);
}

.hp-proof__card--wide {
  grid-column: span 2;
}

/* ── Stat cards ── */
.hp-proof__stat-value {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.1;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid currentColor;
  opacity: 1;
}

.hp-proof__card--stat .hp-proof__stat-value {
  border-bottom-color: rgba(0, 0, 0, 0.15);
  /* Scale stat heading to card width so it always fits on one line */
  font-size: min(1.95rem, 11cqi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  display: block;
}

.hp-proof__star {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -0.15em;
}

.hp-proof__stat-label {
  font-size: 1.1rem;
  color: var(--ssb-text);
  line-height: 1.6;
  font-weight: 500;
}

/* ── Review cards ── */
.hp-proof__quote {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ssb-text);
  line-height: 1.6;
  font-weight: 500;
}

.hp-proof__card--review {
  background-color: rgb(249, 249, 249);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  min-height: 0;
  overflow: hidden;
}

.hp-proof__card--review .hp-proof__quote {
  padding: 0;
}

.hp-proof__card--review .hp-proof__reviewer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hp-proof__card--review .hp-proof__reviewer-name {
  font-weight: 700;
  font-size: 0.85rem;
  background: #fff;
  padding: 0.3rem 0.5rem;
  align-self: flex-start;
}

.hp-proof__card--review .hp-proof__reviewer-detail {
  font-size: 0.75rem;
  opacity: 1;
  background: rgb(2, 9, 61);
  color: #fff;
  padding: 0.3rem 0.5rem;
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* ── Card colour themes ── */
.hp-proof__card--green {
  background: rgb(230, 255, 217);
  --proof-highlight: rgb(149,255,111);
  color: var(--ssb-nav-ink);
}

.hp-proof__card--blue {
  background: rgb(206, 235, 255);
  --proof-highlight: rgb(128,203,255);
  color: var(--ssb-nav-ink);
}

.hp-proof__card--pink {
  background: rgb(255, 230, 243);
  --proof-highlight: rgb(255,179,222);
  color: var(--ssb-nav-ink);
}

.hp-proof__card--yellow {
  background: rgb(255, 251, 183);
  --proof-highlight: rgb(255,246,125);
  color: var(--ssb-nav-ink);
}

.hp-proof__card--peach {
  background: #fef1e8;
  --proof-highlight: rgb(255,210,198);
  color: var(--ssb-nav-ink);
}

.hp-proof__card--lilac {
  background: #ece4f8;
  --proof-highlight: rgb(225,210,245);
  color: var(--ssb-nav-ink);
}

.hp-proof__card--mint {
  background: #d4f4e8;
  --proof-highlight: rgb(160,240,210);
  color: var(--ssb-nav-ink);
}

/* ── Proof responsive ── */
/* Shorten cards as the 4-col grid is compressed so they don't get too elongated */
@media (max-width: 1400px) and (min-width: 1201px) {
  .hp-proof__card {
    min-height: clamp(200px, calc(200px + (100vw - 1200px) * 0.2), 240px);
  }
}

@media (max-width: 1200px) {
  .hp-proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-proof__card--wide {
    grid-column: span 2;
  }

  .hp-proof__card--review {
    min-height: 240px;
  }

  /* Pull the pink + yellow stat row in front of the second review card */
  .hp-proof__grid > :nth-child(5),
  .hp-proof__grid > :nth-child(6) {
    order: 1;
  }
  .hp-proof__grid > :nth-child(4) {
    order: 2;
  }
  .hp-proof__grid > :nth-child(n+7) {
    order: 3;
  }
}

@media (max-width: 540px) {
  .hp-proof {
    padding: 3rem 0;
  }

  .hp-proof__grid {
    grid-template-columns: 1fr;
  }

  .hp-proof__card--wide {
    grid-column: span 1;
  }

  .hp-proof__card--review {
    min-height: 0;
  }

  .hp-proof__card--stat {
    min-height: 0;
    height: auto;
    padding-bottom: 3.5rem;
  }

  .hp-proof__card--stat .hp-proof__stat-value {
    font-size: 1.95rem;
  }

  .hp-proof__card--stat .hp-proof__stat-label {
    margin-bottom: 1.5rem;
  }

  .hp-proof__card--review .hp-proof__quote {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ── FAQs section ─────────────────────────────────── */

.hp-faqs {
  background: var(--ssb-surface);
  padding-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
}

.hp-faqs__inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}

.hp-faqs__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssb-nav-ink);
  background: rgb(230, 255, 255);
  padding: 0.15em 0.4em;
  margin: 0 0 0.8rem;
}

.hp-faqs__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.12;
  margin: 0 0 1.4rem;
}

.hp-faqs__desc {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 auto 1.4rem;
}

.hp-faqs__cta-top {
  margin-top: 2.8rem;
}

.hp-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* ── Individual FAQ item ── */
.hp-faq {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hp-faq:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hp-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1rem;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.hp-faq__question > span:first-child {
  display: inline-block;
}

.hp-faq__question::-webkit-details-marker {
  display: none;
}

.hp-faq__question::marker {
  content: "";
}

.hp-faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.hp-faq__icon::before,
.hp-faq__icon::after {
  content: "";
  position: absolute;
  background: rgb(0, 6, 61);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.hp-faq__icon::before {
  top: 50%;
  left: 15%;
  width: 70%;
  height: 2px;
  transform: translateY(-50%);
}

.hp-faq__icon::after {
  top: 15%;
  left: 50%;
  width: 2px;
  height: 70%;
  transform: translateX(-50%);
}

.hp-faq[open] .hp-faq__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.hp-faq__answer {
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin: 0 1rem;
  padding: 1.2rem 0;
  font-size: 1rem;
  color: var(--ssb-text);
  line-height: 1.6;
  font-weight: 500;
}

.hp-faq__answer p {
  margin: 0;
  color: var(--ssb-nav-ink);
}

/* ── FAQ colour themes ── */
.hp-faq--green {
  background: rgb(230,255,217);
  --faq-highlight: rgb(149,255,111);
  color: var(--ssb-nav-ink);
}

.hp-faq--blue {
  background: rgb(206,235,255);
  --faq-highlight: rgb(128,203,255);
  color: var(--ssb-nav-ink);
}

.hp-faq--pink {
  background: rgb(255,230,243);
  --faq-highlight: rgb(255,179,222);
  color: var(--ssb-nav-ink);
}

.hp-faq--yellow {
  background: rgb(231,227,247);
  --faq-highlight: rgb(210,200,240);
  color: var(--ssb-nav-ink);
}

.hp-faq--lilac {
  background: rgb(255,232,226);
  --faq-highlight: rgb(255,210,198);
  color: var(--ssb-nav-ink);
}

.hp-faq--peach {
  background: rgb(255,253,217);
  --faq-highlight: rgb(255,246,125);
  color: var(--ssb-nav-ink);
}

@media (max-width: 540px) {
  .hp-faqs {
    padding: 3rem 0;
  }

  .hp-faq__question {
    font-size: 1.05rem;
    padding: 1.1rem 1.25rem;
  }
}

/* ── About Us section ─────────────────────────────── */

.hp-about {
  padding-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
  background: var(--ssb-surface);
}

.hp-about__inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}

.hp-about__kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssb-nav-ink);
  background: rgb(230, 255, 238);
  padding: 0.15em 0.4em;
  margin: 0 0 0.8rem;
}

.hp-about__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.1;
  margin: 0 auto 1.2rem;
  max-width: 22ch;
}

.hp-about__desc {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

/* ── Tabs row ── */
.hp-about__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.hp-about__tab {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 1rem;
  border: none;
  border-radius: 0;
  background: rgb(237, 237, 237);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ssb-nav-ink);
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hp-about__tab:hover {
  border-color: var(--ssb-nav-ink);
}

.hp-about__tab--active {
  border-color: var(--ssb-nav-ink);
  color: var(--ssb-nav-ink);
}

.hp-about__tab--active[data-about-tab="mission"] {
  background: rgb(150, 255, 112);
}
.hp-about__tab--active[data-about-tab="team"] {
  background: rgb(255, 128, 201);
}
.hp-about__tab--active[data-about-tab="values"] {
  background: rgb(10, 151, 255);
}
.hp-about__tab--active[data-about-tab="support"] {
  background: rgb(250, 238, 58);
}

/* ── Visual composition wrap ── */
.hp-about__visual-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;

  /* ── Per-tab colour tokens (grid bg + deco/accent) ── */
  --tab-mission-grid: rgb(210, 255, 193);
  --tab-mission-deco: rgb(150, 255, 112);
  --tab-team-grid:    rgb(255, 230, 243);
  --tab-team-deco:    rgb(255, 128, 201);
  --tab-values-grid:  rgb(206, 235, 255);
  --tab-values-deco:  rgb(10, 151, 255);
  --tab-support-grid: rgb(255, 253, 217);
  --tab-support-deco: rgb(250, 238, 58);

  --deco-color: var(--tab-mission-deco);
}

/* ── Visual panels ── */
.hp-about__visual-list {
  width: 100%;
}

.hp-about__visual-item {
  display: none;
  flex-direction: column;
  align-items: center;
}

.hp-about__visual-item--active {
  display: flex;
}

/* ── Coloured background block (square-ish, clean top, cut bottom & sides) ── */
.hp-about__visual-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 68%);
  height: 460px;
  z-index: 0;
  overflow: hidden;
  background-image:
    linear-gradient(to right, var(--about-grid-line) 0 3px, transparent 3px),
    linear-gradient(to bottom, var(--about-grid-line) 0 3px, transparent 3px);
  background-size: 10% 10%;
  clip-path: polygon(
    0 10%,
    20% 10%,
    20% 0,
    80% 0,
    80% 10%,
    100% 10%,
    100% 30%,
    90% 30%,
    90% 50%,
    100% 50%,
    100% 90%,
    80% 90%,
    80% 100%,
    20% 100%,
    20% 90%,
    0 90%,
    0 50%,
    10% 50%,
    10% 30%,
    0 30%
  );
}

/* Green — grid-aligned corner cuts + side bites */
.hp-about__visual-bg--green {
  background-color: var(--tab-mission-grid);
  --about-grid-line: rgba(255, 255, 255, 0.45);
}

/* Pink — grid-aligned corners + deep bottom-right step */
.hp-about__visual-bg--pink {
  background-color: var(--tab-team-grid);
  --about-grid-line: rgba(255, 255, 255, 0.45);
  clip-path: polygon(
    0 10%,
    20% 10%,
    20% 0,
    80% 0,
    80% 10%,
    100% 10%,
    100% 30%,
    90% 30%,
    90% 50%,
    100% 50%,
    100% 60%,
    60% 60%,
    60% 100%,
    20% 100%,
    20% 90%,
    0 90%
  );
}

/* Blue — grid-aligned corners + bottom notch + left bite */
.hp-about__visual-bg--blue {
  background-color: var(--tab-values-grid);
  --about-grid-line: rgba(255, 255, 255, 0.45);
  clip-path: polygon(
    0 10%,
    20% 10%,
    20% 0,
    80% 0,
    80% 10%,
    100% 10%,
    100% 70%,
    90% 70%,
    90% 100%,
    60% 100%,
    60% 90%,
    40% 90%,
    40% 100%,
    20% 100%,
    20% 90%,
    0 90%,
    0 50%,
    10% 50%,
    10% 30%,
    0 30%
  );
}

/* Yellow — grid-aligned corners + side bites */
.hp-about__visual-bg--yellow {
  background-color: var(--tab-support-grid);
  --about-grid-line: rgba(255, 255, 255, 0.45);
  clip-path: polygon(
    0 10%,
    20% 10%,
    20% 0,
    80% 0,
    80% 10%,
    100% 10%,
    100% 30%,
    90% 30%,
    90% 50%,
    100% 50%,
    100% 90%,
    80% 90%,
    80% 100%,
    20% 100%,
    20% 90%,
    0 90%,
    0 70%,
    10% 70%,
    10% 50%,
    0 50%
  );
}

/* ── Tagline — sits above the top of the stepped bg and the visual image ── */
.hp-about__visual-bg-header {
  position: relative;
  z-index: 4;
  order: -1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 380px;
  margin: 0 auto 1rem;
  padding-top: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1.5px solid var(--ssb-nav-ink);
  overflow: visible;
}

/* Reserve enough vertical room so the 440px stepped bg never reaches above
   the bg-header. bg-header is the first flex child, so a tall enough item
   keeps the absolute bg's top edge below the header. */
.hp-about__visual-item--active {
  min-height: calc(460px + 5rem);
  justify-content: flex-start;
}

.hp-about__visual-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ssb-nav-ink);
  margin: 0;
  line-height: 1.35;
}

.hp-about__cta {
  margin-top: 3rem;
}

/* ── Central person image ── */
.hp-about__visual-img {
  position: relative;
  z-index: 2;
  width: min(360px, 52%);
  flex-shrink: 0;
}

.hp-about__visual-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

/* ── Info card (fact-card style) ── */
.hp-about__visual-card {
  position: absolute;
  z-index: 5;
  width: min(340px, 90%);
  margin: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hp-about__visual-card-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.16);
  border: 0.5rem solid rgb(239, 239, 255);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.25s ease;
  cursor: pointer;
}

.hp-about__visual-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hp-about__visual-card-logo {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
}

.hp-about__visual-card-title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--ssb-nav-ink);
}

.hp-about__visual-card-text {
  font-size: 0.9rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
  width: 100%;
  padding-left: calc(1.8rem + 0.75rem);
  text-align: left;
}

.hp-about__visual-card [data-tab-content] {
  display: none;
}

.hp-about__visual-wrap[data-active-tab="mission"] .hp-about__visual-card [data-tab-content="mission"],
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__visual-card [data-tab-content="team"],
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__visual-card [data-tab-content="values"],
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__visual-card [data-tab-content="support"] {
  display: block;
}

/* ── Floating cursor badges ── */
.hp-about__cursor {
  padding: 0.2rem 0.5rem;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 6;
  opacity: 1;
  transition: opacity 0.4s ease, top 0.5s ease, bottom 0.5s ease, left 0.5s ease, right 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
}

.hp-about__cursor:hover {
  transform: translateY(-4px);
}

.hp-about__cursor--active {
  opacity: 1;
  color: #000;
}

.hp-about__cursor--active .hp-about__cursor-label {
  color: #000;
}

.hp-about__cursor-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}

.hp-about__cursor-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}

.hp-about__cursor:hover .hp-about__cursor-label {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hp-about__cursor:hover .hp-about__cursor-avatar {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hp-about__cursor-label--green  { background: rgb(150, 255, 112); }
.hp-about__cursor-label--pink   { background: rgb(255, 128, 201); }
.hp-about__cursor-label--blue   { background: rgb(10, 151, 255); }
.hp-about__cursor-label--yellow { background: rgb(250, 238, 58); }

/* Cursor positions — placed around the visual avoiding overlap */
.hp-about__cursor--1 { top: 25%; left: 14%; }
.hp-about__cursor--2 { bottom: 5%; left: 30%; }
.hp-about__cursor--3 { top: 18%; right: 20%; }
.hp-about__cursor--4 { bottom: 12%; right: 14%; }

/* ── Cursor positions per active tab ── */

/* Team */
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--1 { top: 35%; left: 12%; }
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--2 { bottom: 22%; left: 22%; }
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--3 { top: 12%; right: 20%; }
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--4 { bottom: 8%; right: 22%; }

/* Values */
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--1 { top: 50%; left: 12%; }
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--2 { bottom: 8%; left: 26%; }
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--3 { top: 25%; right: 20%; }
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 { bottom: 22%; right: 16%; }

/* Support */
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--1 { top: 22%; left: 20%; }
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--2 { bottom: 8%; left: 28%; }
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--3 { top: 25%; right: 16%; }
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--4 { bottom: 8%; right: 24%; }

/* ── Scattered grid / cross decorations ── */
.hp-about__deco {
  position: absolute;
  pointer-events: none;
  z-index: 4; /* Above grid/bg, below main image/card */
  transition: top 0.5s ease, bottom 0.5s ease, left 0.5s ease, right 0.5s ease;
}

.hp-about__deco--grid-1 {
  top: 22%;
  left: 26%;
  width: 80px;
  height: 80px;
  background-image:
    linear-gradient(to right, var(--deco-color) 2.5px, transparent 2.5px),
    linear-gradient(to bottom, var(--deco-color) 2.5px, transparent 2.5px);
  background-size: 16px 16px;
  background-position: 6.75px 6.75px;
  opacity: 0.55;
  overflow: hidden;
}

.hp-about__deco--grid-3 {
  top: 80%;
  left: 58%;
  width: 48px;
  height: 64px;
  background-image:
    linear-gradient(to right, var(--deco-color) 2.5px, transparent 2.5px),
    linear-gradient(to bottom, var(--deco-color) 2.5px, transparent 2.5px);
  background-size: 16px 16px;
  background-position: 6.75px 6.75px;
  opacity: 0.55;
}

.hp-about__deco--grid-4 {
  top: 30%;
  right: 18%;
  width: 48px;
  height: 64px;
  background-image:
    linear-gradient(to right, var(--deco-color) 2.5px, transparent 2.5px),
    linear-gradient(to bottom, var(--deco-color) 2.5px, transparent 2.5px);
  background-size: 16px 16px;
  background-position: 6.75px 6.75px;
  opacity: 0.55;
}

.hp-about__deco--dots {
  top: 45%;
  right: 28%;
  width: 48px;
  height: 48px;
  background-image: radial-gradient(circle, var(--deco-color) 3px, transparent 3px);
  background-size: 12px 12px;
  background-position: 0 0;
  opacity: 0.55;
}

/* ── Deco positions per active tab ── */

/* Team */
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-1 {
  top: 32%;
  left: 26%;
}
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-3 {
  top: 72%;
  left: 64%;
}
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-4 {
  top: 22%;
  right: 34%;
}
.hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--dots {
  top: 82%;
  right: 62%;
}

/* Values */
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-1 {
  top: 65%;
  left: 22%;
}
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-3 {
  top: 85%;
  left: 50%;
}
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-4 {
  top: 22%;
  right: 32%;
}
.hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--dots {
  top: 50%;
  right: 30%;
}

/* Support */
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-1 {
  top: 35%;
  left: 28%;
}
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-3 {
  top: 62%;
  left: 24%;
}
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-4 {
  top: 22%;
  right: 28%;
}
.hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--dots {
  top: 48%;
  right: 22%;
}


/* ── Visual-card position (desktop) — centered in wrap ── */
@media (min-width: 769px) {
  .hp-about__visual-card {
    position: absolute;
    z-index: 5;
    width: clamp(280px, 32%, 340px);
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ── hp-about responsive (≤1200px) ────────────────── */

@media (max-width: 1200px) {
  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--3 {
    top: 15%;
    right: 14%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--1 {
    top: 45%;
    left: 4%;
  }
}

/* ── hp-about responsive (≤1050px) ────────────────── */

@media (max-width: 1050px) {
  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--3 {
    top: 24%;
    right: 13%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--dots {
    top: 50%;
    right: 22%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--3 {
    top: 35%;
    right: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--2 {
    bottom: 1%;
    left: 20%;
  }
}

/* ── hp-about responsive (≤1000px) ────────────────── */

@media (max-width: 1000px) {
  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--1 {
    top: 45%;
    left: 4%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--3 {
    top: 20%;
    right: 14%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-4 {
    top: 23%;
    right: 30%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--3 {
    top: 30%;
    right: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--dots {
    top: 42%;
    right: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-3 {
    top: 62%;
    left: 10%;
  }
}

/* ── hp-about responsive (≤950px) ────────────────── */

@media (max-width: 950px) {
  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__cursor--2 {
    bottom: 20%;
    left: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__cursor--3 {
    top: 20%;
    right: 16%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-1 {
    top: 40%;
    left: 7%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-3 {
    left: 30%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--dots {
    top: 80%;
    right: 30%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-4 {
    top: 70%;
    right: 7%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--3 {
    top: 24%;
    right: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 {
    bottom: 18%;
    right: 7%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--dots {
    top: 38%;
    right: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-1 {
    top: 33%;
    left: 20%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--2 {
    bottom: 7%;
    left: 20%;
  }
}

/* ── hp-about responsive (≤850px) — card flows below image + grid ── */

@media (max-width: 850px) {
  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__cursor--4 {
    bottom: 35%;
    right: 0%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__cursor--2 {
    bottom: 25%;
    left: 8%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-3 {
    left: 18%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--dots {
    top: 30%;
    right: 20%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--1 {
    top: 45%;
    left: 0%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--2 {
    bottom: 18%;
    left: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--3 {
    top: 30%;
    right: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--4 {
    bottom: 34%;
    right: 0%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-3 {
    top: 75%;
    left: 80%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-4 {
    top: 18%;
    right: 26%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--dots {
    top: 85%;
    right: 85%;
  }


  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 {
    bottom: 25%;
    right: 3%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--2 {
    bottom: 77%;
    left: 20%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-3 {
    top: 35%;
    left: 25%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--4 {
    bottom: 20%;
    right: -1%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--2 {
    bottom: 7%;
    left: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-1 {
    top: 33%;
    left: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--dots {
    top: 45%;
    right: 15%;
  }
}

@media (max-width: 750px) {
  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-3 {
    left: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--2 {
    bottom: 18%;
    left: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--4 {
    bottom: 34%;
    right: -1%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-3 {
    top: 75%;
    left: 85%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--3 {
    top: 35%;
    right: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--3 {
    top: 24%;
    right: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 {
    bottom: 25%;
    right: 0%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--3 {
    top: 35%;
    right: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--dots {
    top: 55%;
    right: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--4 {
    bottom: 25%;
    right: -1%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--2 {
    bottom: 13%;
    left: 2%;
  }
}

/* ── hp-about responsive (≤768px) — card flows below image + grid ── */

@media (max-width: 768px) {
  .hp-about__visual-wrap {
    padding-bottom: 0;
  }
}

@media (max-width: 715px) {
  .hp-about__visual-wrap .hp-about__visual-bg {
    bottom: calc((715px - 100vw) * 0.5);
    height: calc(440px - (715px - 100vw) * 0.5);
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--3 {
    top: 35%;
    right: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--2 {
    bottom: 18%;
    left: 2%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-1 {
    top: 25%;
    left: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--2 {
    bottom: 77%;
    left: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-1 {
    top: 65%;
    left: 3%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 {
    bottom: 30%;
    right: 0%;
  }
}

@media (max-width: 650px) {
  .hp-about__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
  }

  .hp-about__tab {
    justify-content: center;
    width: 100%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--1 {
    top: 45%;
    left: -2%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--2 {
    bottom: 23%;
    left: 2%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--4 {
    bottom: 34%;
    right: -3%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 {
    bottom: 25%;
    right: 0%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-3 {
    top: 35%;
    left: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--dots {
    top: 50%;
    right: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--2 {
    bottom: 13%;
    left: -2%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-1 {
    top: 33%;
    left: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--3 {
    top: 40%;
    right: 5%;
  }
}

@media (max-width: 625px) {
  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-3 {
    left: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__cursor--2 {
    bottom: 30%;
    left: 2%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--2 {
    bottom: 23%;
    left: -1%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--4 {
    bottom: 34%;
    right: -4%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--4 {
    bottom: 28%;
    right: -1%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor--2 {
    bottom: 43%;
    left: -2%;
  }
}

@media (max-width: 575px) {
  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--1 {
    top: 35%;
    left: -2%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor--4 {
    bottom: 34%;
    right: -5%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--2 {
    bottom: 72%;
    left: 3%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 {
    bottom: 25%;
    right: -2%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-4 {
    top: 33%;
    right: 20%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--dots {
    top: 55%;
    right: 10%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-1 {
    top: 65%;
    left: 0%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor--4 {
    bottom: 27%;
    right: -2%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-3 {
    top: 55%;
    left: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--grid-1 {
    top: 25%;
    left: 10%;
  }
}

@media (max-width: 550px) {
  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__cursor,
  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__cursor,
  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__cursor,
  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__cursor {
    display: none;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-1 {
    top: 25%;
    left: 7%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-3 {
    left: 10%;
    top: 60%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-4 {
    top: 60%;
    right: 3%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-3 {
    top: 75%;
    left: 90%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--dots {
    top: 65%;
    right: 85%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-1 {
    top: 65%;
    left: -1%;
  }
}

@media (max-width: 525px) {
  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-1 {
    top: 15%;
    left: 7%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-3 {
    left: 10%;
    top: 50%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-4 {
    top: 55%;
    right: 3%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--dots {
    top: 30%;
    right: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-3 {
    top: 60%;
    left: 80%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-1 {
    top: 55%;
    left: -1%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-3 {
    top: 25%;
    left: 15%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--dots {
    top: 55%;
    right: 5%;
  }

  .hp-about__visual-wrap[data-active-tab="values"] .hp-about__deco--grid-1 {
    top: 47%;
    left: -1%;
  }

  .hp-about__visual-wrap[data-active-tab="support"] .hp-about__deco--dots {
    top: 45%;
    right: 15%;
  }
}

@media (max-width: 450px) {
  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-3 {
    left: 0%;
    top: 50%;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-1 {
    top: 25%;
    left: 3%;
    width: 50px;
    height: 50px;
  }

  .hp-about__visual-wrap[data-active-tab="mission"] .hp-about__deco--grid-4 {
    top: 50%;
    right: 3%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-4 {
    top: 23%;
    right: 26%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--dots {
    top: 55%;
    right: 85%;
  }

  .hp-about__visual-wrap[data-active-tab="team"] .hp-about__deco--grid-3 {
    top: 55%;
    left: 80%;
  }
}

/* ── Get-a-Quote CTA banner ───────────────────────── */

.cta-quote {
  background: var(--ssb-surface);
  overflow: hidden;
  position: relative;
  container-type: size;
  /* Height scales so inner width (257.13cqh + 1rem) just fits viewport.
     Scaling kicks in the instant content would otherwise overflow (~2330px),
     and caps at 900px above that. */
  height: clamp(420px, calc((100vw - 1rem) / 2.5713), 900px);
}

.cta-quote__inner {
  position: relative;
  /* Total content span: circles (100cqh*8/7) + gap (1rem) + image (100cqh*1357/950) */
  width: calc(257.13cqh + 1rem);
  margin-left: 50%;
  transform: translateX(-50%);
  height: 100%;
}

/* ── Circle cross pattern ─────────────────────────── */

.cta-circles {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 0;
  height: 100%;
  aspect-ratio: 8 / 7;
}

.cta-circles span {
  width: 100%;
  aspect-ratio: 1;
  background: rgb(243, 243, 243);
  align-self: center;
  justify-self: center;
  position: relative;
}

.cta-circles span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgb(16, 58, 2);
}

.cta-circles .cta-circle--xs {
  display: none;
}

/* ── CTA content ──────────────────────────────────── */

.cta-quote__content {
  position: absolute;
  z-index: 2;
  padding: clamp(1.5rem, 5.3cqh, 3rem) clamp(1.75rem, 6.2cqh, 3.5rem) clamp(1.5rem, 5.3cqh, 3rem) 0;
  max-width: min(750px, 83cqh);
  /* Row 5 top = 4/7 from top; midpoint between top and row 5 = 2/7 from top = 5/7 from bottom.
     translateY(50%) shifts down by half its own height to vertically centre at that midpoint. */
  bottom: calc(100cqh * 5 / 7);
  transform: translateY(50%);
  left:   calc(57.14cqh + 4rem); /* 4/7 of height  + gap right of col 4 */
}

.cta-quote__content::before {
  content: "";
  position: absolute;
  inset: clamp(-1rem, -1.8cqh, -0.5rem) clamp(1.5rem, 5.3cqh, 3rem) clamp(-1rem, -1.8cqh, -0.5rem) clamp(-1rem, -1.8cqh, -0.5rem);
  z-index: -1;
  background: rgba(255, 255, 255, 1);
  /* filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1)); */
  /* Stepped polygon: trimmed top-right & bottom-right */
  clip-path: polygon(
    /* top edge – step in at top-right */
    0% 0%, 90% 0%, 90% 8%, 100% 8%,
    /* right edge – full until bottom area */
    100% 60%, 90% 60%, 90% 70%,
    /* bottom-right cutout */
    80% 70%, 80% 80%,
    70% 80%, 70% 100%,
    /* bottom edge back to left */
    0% 100%
  );
}

.cta-quote__kicker {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssb-nav-ink);
  background: rgb(255, 248, 220);
  padding: 0.15em 0.4em;
  margin: 0 0 0.8rem;
}

.cta-quote__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.2rem, 7.1cqh, 4rem);
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.08;
  margin: 0 0 clamp(1rem, 3.5cqh, 2rem);
}

.cta-quote__desc {
  font-size: clamp(0.95rem, 2.05cqh, 1.15rem);
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 0 clamp(1rem, 3.5cqh, 2rem);
}

/* ── Right-hand image ─────────────────────────────── */

.cta-quote__image {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Place immediately after the circles grid (which has aspect-ratio 8/7,
     so its width = height × 8/7) plus a small gap */
  left: calc(100cqh * 8 / 7 + 1rem);
}

.cta-quote__image img {
  height: 100%;
  width: auto;
  display: block;
}

/* cta-quote__btn – visual props via shared CTA rule */

/* ── CTA responsive ───────────────────────────────── */

@media (max-width: 1800px) {
  .cta-quote__content::before {
    inset: clamp(-0.5rem, -0.9cqh, -0.25rem) clamp(1.5rem, 5.3cqh, 3rem) clamp(-1rem, -1.8cqh, -0.5rem) clamp(-1rem, -1.8cqh, -0.5rem);
    clip-path: polygon(
      /* top edge – step in at top-right */
      0% 0%, 95% 0%, 95% 5%, 100% 5%,
      /* right edge – full until bottom-right stepped cutout */
      100% 65%, 85% 65%, 85% 82%,
      70% 82%, 70% 100%,
      /* bottom edge back to left */
      0% 100%
    );
  }
}

@media (max-width: 1900px) and (min-width: 1600px) {
  .cta-quote__image {
    left: auto;
    right: clamp(-60px, calc((100vw - 1900px) * 60 / 620), 0px);
  }
}

@media (max-width: 1600px) {
  .cta-circles {
    /* Slide circles 5px left across 1600→1440 so they're already in motion
       by the time the content's vertical interpolation kicks in at 1440.
       Y shifts down at the same rate as before, but is capped at one row
       (100cqh/7) so the cta-circle--xs--top (translated -100%) aligns with
       the top of the image once the xs circles have been added. */
    transform: translateX(calc(-35px - clamp(0px, (1600px - 100vw) * 5 / 160, 5px)))
               translateY(clamp(0cqh, calc((100cqh * 5 / 7 - 50cqh) * (1600px - 100vw) / 250px), calc(100cqh / 7)));
  }

  .cta-quote {
    overflow: hidden;
  }

  .cta-quote__content {
    transform: translateX(clamp(-65px, calc(-40px + (100vw - 1600px) / 10), -40px)) translateY(50%);
    /* Min mirrors the circles' capped shift: circles_translateY + content_bottom
       stays constant at 100cqh*5/7, so capping circles at 100cqh/7 caps content at 100cqh*4/7. */
    bottom: clamp(calc(100cqh * 4 / 7), calc(50cqh + (100cqh * 5 / 7 - 50cqh) * (100vw - 1350px) / 250px), calc(100cqh * 5 / 7));
  }

  .cta-quote__image {
    left: auto;
    right: calc(-300px * 60 / 620);
  }

  .cta-quote__content::before {
    inset: clamp(-1rem, -1.8cqh, -0.5rem) clamp(-1.25rem, -3cqh, -0.5rem) clamp(1rem, 3cqh, 2rem) clamp(-1rem, -1.8cqh, -0.5rem);
    clip-path: polygon(
      /* top edge – step in at top-right */
      0% 0%, 97% 0%, 97% 4%, 100% 4%,
      /* right edge – full until bottom-right stepped cutout */
      100% 60%, 92% 60%, 92% 75%,
      77% 75%, 77% 90%,
      62% 90%, 62% 100%,
      /* bottom edge back to left */
      0% 100%
    );
  }
}

@media (max-width: 1440px) {
  .cta-circles .cta-circle--xs {
    display: block;
  }

  .cta-circles .cta-circle--xs--top {
    transform: translateY(-100%);
  }
}

@media (max-width: 1255px) {
  .cta-circles {
    display: none;
  }

  .cta-quote__inner {
    /* Re-centre on the visible content+image group (circles hidden).
       Group span: content_left (100cqh*4/7 + 4rem − 150px) → image_right (≈257.13cqh + 1rem).
       Group centre is 100cqh*2/7 + 2rem − 75px right of inner centre, so shift inner left by that. */
    transform: translateX(calc(-50% - 100cqh * 2 / 7 - 2rem + 75px));
  }

  .cta-quote__content {
    max-width: none;
    width: 520px;
    /* Vertically centre on the image (full container height). */
    bottom: 50cqh;
    transform: translateX(-150px) translateY(50%);
  }

  .cta-quote__content::before {
    inset: clamp(-1rem, -1.8cqh, -0.5rem) 1rem clamp(1rem, 3cqh, 2rem) clamp(-1rem, -1.8cqh, -0.5rem);
    clip-path: polygon(
      0% 0%, 98% 0%, 98% 4%, 100% 4%,
      100% 65%, 95% 65%, 95% 78%,
      85% 78%, 85% 92%,
      72% 92%, 72% 100%,
      0% 100%
    );
  }
}

@media (max-width: 1200px) {
  .cta-quote {
    height: auto;
    container-type: normal;
  }

  .cta-quote__image {
    display: none;
  }

  .cta-quote__inner {
    width: 100%;
    margin-left: 0;
    transform: none;
    height: auto;
    padding: clamp(3.5rem, calc(2rem + 4vw), 6rem) 1rem;
  }

  .cta-quote__content {
    position: relative;
    inset: auto;
    transform: none;
    margin: 0 auto;
    width: min(520px, 100%);
    max-width: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-quote__content::before {
    display: none;
  }

  .cta-quote__kicker {
    display: inline-block;
  }

  .cta-quote__title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .cta-quote__desc {
    max-width: none;
  }
}

/* ── Footer ───────────────────────────────────────── */

.footer-container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.footer-main {
  padding: 4rem 0 3rem;
}

.footer-main .footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.footer-cta {
  margin-top: 1.5rem;
  font-size: 1rem;
  min-width: 11rem;
  text-align: center;
}

.footer-cta + .footer-cta {
  margin-top: 0.6rem;
}

.footer-heading {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid rgba(255, 255, 255, 1);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #c8c8c8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-main {
  background-image: url('content/images/footer_background.png');
  background-repeat: repeat;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0 0.5rem;
}

.footer-bottom .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-bottom__brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.footer-bottom__logo {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
}

.footer-bottom__name {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ssb-nav-red);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  color: #ffffff;
  transition: color 0.2s;
  display: inline-flex;
}

.footer-social a:hover {
  color: #c8c8c8;
}

.footer-bottom__legal {
  background-color: #262627;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 16px;
  color: #FFFFFF;
  opacity: 0.6;
}

.footer-bottom__legal span {
  color: #FFFFFF;
  opacity: 0.6;
}

.footer-bottom__legal .footer-bottom__legal-home span {
  opacity: 1;
}

.footer-bottom__legal a {
  color: #FFFFFF;
  opacity: 0.6;
  text-decoration: none;
}

.footer-bottom__legal a:hover {
  color: #ffffff;
}

.footer-bottom__company {
  margin-top: 1.25rem;
  font-size: 16px;
  color: #FFFFFF;
  opacity: 0.6;
  text-align: center;
}

.footer-bottom__company p {
  margin: 0;
}

@media (max-width: 768px) {
  .footer-main .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom__legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

/* ==========================================================================
   Standalone Quote Page (no nav / no footer)
   ========================================================================== */
.quote-page-body {
  padding-top: 0;
  background: var(--ssb-surface);
}

.quote-page-body .announcement-banner + .quote-page {
  margin-top: 1.5rem;
}

.quote-page {
  padding: 2.5rem 1rem;
  display: flex;
  justify-content: center;
  background: var(--ssb-surface);
}

.quote-page__inner {
  width: auto;
  min-width: 320px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--ssb-surface);
  border: 1px solid var(--ssb-border);
  border-radius: 0;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 28px rgba(31, 28, 24, 0.04);
}

.quote-page__inner > * + * {
  margin-top: 2.5rem;
}

.quote-page__brand {
  justify-self: start;
  max-width: 100%;
  margin: 0;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(0.9rem, 2.4vw, 1.75rem);
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
}

.quote-page__brand a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 0.45rem;
  color: var(--ssb-nav-red);
  text-decoration: none;
  white-space: nowrap;
}

.quote-page__brand span {
  white-space: nowrap;
}

.quote-page__inner > .quote-page__brand + .quote-step__header {
  margin-top: 1rem;
}

/* Screen-reader-only utility (used for "current step") */
.quote-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Title ───────────────────────────────────── */
.quote-step__header {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.quote-step__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ssb-nav-ink);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 auto clamp(0.6rem, 1.5vw, 1.25rem);
  padding: 0;
  width: min(92vw, 26ch);
}

.quote-step__subtitle {
  font-size: 1.15rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  max-width: 52ch;
  margin: 0 auto 0rem;
}

/* ── Step circles ────────────────────────────── */
.quote-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  margin: 0.75rem auto 0;
}

.quote-steps__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.quote-steps__circle {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  background: #ece6d8;
  border: 2px solid #ece6d8;
  /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
}

.quote-steps__item.is-active .quote-steps__circle {
  background: var(--ssb-nav-red);
  border-color: var(--ssb-nav-red);
  color: #fff;
  /* box-shadow: 0 6px 18px rgba(240, 73, 47, 0.3); */
  /* transform: translateY(-1px); */
}

.quote-steps__label {
  display: none;
}

/* ── Price summary ───────────────────────────── */
.quote-price {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0 0.5rem;
}

.quote-price--inline {
  gap: 0.15rem;
  padding: 0.1rem 0.5rem 0;
  margin-top: 0.5rem;
  /* background: rgb(240, 232, 255); */
  /* border: 1px solid #f1d6cc; */
  color: var(--ssb-nav-ink);
}

.quote-form__step-intro:has(.quote-price--inline) {
  margin-bottom: 0.75rem;
}

.quote-price--inline .quote-price__amount {
  font-size: clamp(3rem, 7.5vw, 4.25rem);
}

.quote-price--inline .quote-price__label {
  font-size: 0.78rem;
}

.quote-price--inline .quote-price__meta {
  font-size: 0.9rem;
  line-height: 1.35;
}

.quote-price__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  background: rgb(255, 243, 220);
  color: var(--ssb-nav-ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  white-space: nowrap;
}

.quote-price__badge-icon {
  font-size: 0.7rem;
  line-height: 1;
  color: #d4a017;
}

.quote-price[hidden] {
  display: none;
}

.quote-price__label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ssb-nav-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-price__amount {
  margin: 0;
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-weight: 700;
  color: var(--ssb-nav-red);
  font-size: clamp(3.6rem, 9vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
}

.quote-price__currency {
  font-size: 0.55em;
  font-weight: 600;
  margin-right: 0.08em;
}

.quote-price__meta {
  margin: 0;
  color: var(--ssb-nav-ink);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

.quote-price__flex-note {
  margin: 0.35rem 0 0;
  color: var(--ssb-nav-ink);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.45;
}

.quote-price__flex-note[hidden] {
  display: none;
}

.quote-price__flex-note strong {
  color: var(--ssb-nav-red);
}

.quote-review__price-flex {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ssb-nav-ink);
}

.quote-review__price-flex[hidden] {
  display: none;
}

/* ── Price match promise ─────────────────────── */
.quote-promise {
  width: 100%;
  background: #ffe8e2;
  /* border: 1px solid #f4d9b6; */
  border-radius: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.quote-page__inner > .quote-promise {
  margin-top: 1.85rem;
}

.quote-page__inner > .quote-promise + * {
  margin-top: 1.1rem;
}

.quote-promise__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-right: 0.4rem;
}

.quote-promise__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.quote-promise__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ssb-nav-ink);
  margin: 0 auto 0.75rem;
  padding-bottom: 0.5rem;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.quote-promise__desc {
  margin: 0 0 1rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
}

.quote-promise__contacts {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.quote-promise__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  /* font-size: 1.15rem; */
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
}

.quote-promise__contact:hover {
  text-decoration: none;
  color: var(--ssb-nav-ink);
}

.quote-promise__contact-icon {
  font-size: 1rem;
}

/* ── Form card ───────────────────────────────── */
.quote-card {
  width: 100%;
  text-align: left;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quote-form__step > .quote-form__row,
.quote-form__step > .quote-form__field,
.quote-form__step > .quote-form__included {
  margin-bottom: 1.1rem;
}

.quote-form__step > .quote-form__included {
  margin-bottom: 0.4rem;
}

.quote-form__step > .quote-form__included:last-of-type {
  margin-bottom: 1.1rem;
}

.quote-form__step-intro {
  text-align: center;
  margin-bottom: 1.25rem;
}

.quote-form__step-title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.9vw, 2rem);
  font-weight: 650;
  color: var(--ssb-nav-ink);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.quote-form__step-text {
  font-size: 1.05rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  margin: 0 auto;
  max-width: 48ch;
}

.quote-form__step-text--wide {
  max-width: 72ch;
}

.quote-form__step-text a {
  color: var(--ssb-nav-red);
  font-weight: 600;
}

.quote-form__step-text a:hover {
  color: var(--ssb-nav-red);
  text-decoration: underline;
}

.quote-form__step-text a.quote-form__inline-link,
.quote-form__step-text a.quote-form__inline-link:hover {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ssb-nav-red);
  text-decoration: underline;
}

.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.quote-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quote-form__row > .quote-form__field:nth-child(1) { --nav-highlight: rgb(255, 230, 243); }
.quote-form__row > .quote-form__field:nth-child(2) { --nav-highlight: rgb(230, 243, 255); }

.quote-form__step > .quote-form__field:nth-child(4n+1 of .quote-form__field),
.quote-tenant__body > .quote-form__field:nth-child(4n+1 of .quote-form__field) { --nav-highlight: rgb(255, 230, 243); }
.quote-form__step > .quote-form__field:nth-child(4n+2 of .quote-form__field),
.quote-tenant__body > .quote-form__field:nth-child(4n+2 of .quote-form__field) { --nav-highlight: rgb(230, 243, 255); }
.quote-form__step > .quote-form__field:nth-child(4n+3 of .quote-form__field),
.quote-tenant__body > .quote-form__field:nth-child(4n+3 of .quote-form__field) { --nav-highlight: rgb(230, 255, 238); }
.quote-form__step > .quote-form__field:nth-child(4n of .quote-form__field),
.quote-tenant__body > .quote-form__field:nth-child(4n of .quote-form__field)   { --nav-highlight: rgb(255, 243, 220); }

.quote-form__row ~ .quote-form__field:nth-child(4n+1 of .quote-form__field) { --nav-highlight: rgb(230, 255, 238); }
.quote-form__row ~ .quote-form__field:nth-child(4n+2 of .quote-form__field) { --nav-highlight: rgb(255, 243, 220); }
.quote-form__row ~ .quote-form__field:nth-child(4n+3 of .quote-form__field) { --nav-highlight: rgb(255, 230, 243); }
.quote-form__row ~ .quote-form__field:nth-child(4n of .quote-form__field)   { --nav-highlight: rgb(230, 243, 255); }

.quote-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ssb-nav-ink);
  align-self: flex-start;
  padding: 0.2em 0.5em;
  position: relative;
  z-index: 0;
}

.quote-form__label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-highlight);
  transform-origin: left;
  animation: nav-highlight-in 0.8s ease forwards;
  z-index: -1;
}

.quote-form__input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ssb-nav-ink);
  background: #fff;
  border: 2px solid var(--nav-highlight);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-form__input:hover,
.quote-form__input:focus {
  border: 3px solid var(--nav-highlight);
  padding: calc(0.75rem - 1px) calc(0.9rem - 1px);
}

select.quote-form__input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%231f1c18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.quote-form__input:focus {
  outline: none;
  box-shadow: none;
}

.quote-form__field--check {
  margin-top: 0.25rem;
}

.quote-form__step[data-step="1"] .quote-form__field--check .quote-form__check,
.quote-form__step[data-step="4"] .quote-form__field--check .quote-form__check {
  justify-content: center;
}

.quote-form__check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ssb-nav-ink);
  line-height: 1.4;
}

.quote-form__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--ssb-border);
  border-radius: 0;
  background: #fff;
  flex: 0 0 auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-form__checkbox:checked {
  background: var(--ssb-nav-red);
  border-color: var(--ssb-nav-red);
}

.quote-form__checkbox:checked::after {
  content: "";
  width: 0.3rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.quote-form__checkbox:focus-visible {
  outline: 2px solid var(--ssb-nav-red);
  outline-offset: 2px;
}

.quote-form__check-text a {
  color: inherit;
  text-decoration: underline;
}

.quote-form__check-text a:hover {
  color: inherit;
}

.quote-form__included {
  --ssb-included-border: #c7e39a;
  --ssb-included-bg: rgb(230, 255, 238);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: calc(0.9rem - 1px) calc(1rem - 1px);
  background: var(--ssb-included-bg);
  border: 2px solid var(--ssb-included-border);
  color: var(--ssb-nav-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-form__included:hover {
  border-width: 3px;
  padding: calc(0.9rem - 2px) calc(1rem - 2px);
}

.quote-form__included-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}

.quote-form__included-label {
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1 auto;
}

.quote-form__included-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgb(255, 243, 220);
  color: var(--ssb-nav-ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  white-space: nowrap;
}

.quote-form__included-badge::before {
  content: "★";
  font-size: 0.7rem;
  line-height: 1;
  color: #d4a017;
}

.quote-form__included--toggle {
  --ssb-included-border: #e9c97a;
  --ssb-included-bg: rgb(255, 243, 220);
  cursor: pointer;
}

.quote-form__included--tv {
  --ssb-included-border: #b9d8f2;
  --ssb-included-bg: rgb(230, 243, 255);
}

.quote-form__included-checkbox {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--ssb-included-border);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  margin: 0;
  position: relative;
}

.quote-form__included-checkbox:checked {
  background: var(--ssb-included-border);
  border-color: var(--ssb-included-border);
}

.quote-form__included-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0.3rem;
  height: 0.6rem;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.quote-form__included-checkbox:focus-visible {
  outline: 2px solid var(--ssb-accent);
  outline-offset: 2px;
}

.quote-form__included--stack {
  --ssb-included-border: #e9bff1;
  --ssb-included-bg: rgb(255, 230, 243);
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.quote-form__included-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.quote-form__included-note {
  margin: 0 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ssb-nav-ink);
  line-height: 1.6;
  font-weight: 500;
  font-size: 0.85rem;
}

.quote-form__included--stack .quote-form__included-note {
  margin-top: -0.4rem;
}

.quote-form__included-note--flex {
  margin: 0.5rem 0 0;
  align-items: flex-start;
}

.quote-form__included-note[hidden] {
  display: none;
}

.quote-form__included-note-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

.quote-form__included-note-icon::before {
  content: "i";
  transform: translateY(0.08em);
}

.quote-form__included-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.quote-form__included-option {
  position: relative;
  display: flex;
  cursor: pointer;
}

.quote-form__included-option > .quote-form__included-option-label {
  flex: 1;
}

.quote-form__included-option-input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.quote-form__included-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(0.55rem - 1px) calc(0.4rem - 1px);
  background: #fff;
  border: 2px solid var(--ssb-included-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ssb-nav-ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 2.5rem;
}

.quote-form__included-option:hover .quote-form__included-option-label {
  border-width: 3px;
  padding: calc(0.55rem - 2px) calc(0.4rem - 2px);
}

.quote-form__included-option-input:focus-visible + .quote-form__included-option-label {
  outline: 2px solid var(--ssb-accent);
  outline-offset: 2px;
}

.quote-form__included-option-input:checked + .quote-form__included-option-label {
  background: var(--ssb-included-border);
}

@media (max-width: 560px) {
  .quote-form__included-options {
    grid-template-columns: 1fr;
  }
}

.quote-form__segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 30rem) {
  .quote-form__segmented {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quote-form__segment {
  position: relative;
  display: block;
  cursor: pointer;
}

.quote-form__segment-input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.quote-form__segment-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ssb-nav-ink);
  background: #fff;
  border: 2px solid var(--nav-highlight);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.quote-form__segment:hover .quote-form__segment-label {
  border: 3px solid var(--nav-highlight);
  padding: calc(0.75rem - 1px) calc(0.9rem - 1px);
}

.quote-form__segment-input:focus-visible + .quote-form__segment-label {
  outline: none;
  border-color: var(--nav-highlight);
  box-shadow: 0 0 0 3px var(--nav-highlight);
}

.quote-form__segment-input:checked + .quote-form__segment-label {
  background: var(--nav-highlight);
  border-color: var(--nav-highlight);
  color: var(--ssb-nav-ink);
}

.quote-form__stepper {
  display: grid;
  grid-template-columns: 3.25rem 4rem 3.25rem;
  align-items: stretch;
  justify-content: start;
}

.quote-form__stepper-btn {
  font: inherit;
  line-height: 1;
  color: transparent;
  background: #fff;
  border: 2px solid var(--nav-highlight);
  cursor: pointer;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.quote-form__stepper-btn::before,
.quote-form__stepper-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--nav-highlight);
  transition: width 0.15s ease, height 0.15s ease;
}

.quote-form__stepper-btn::before {
  width: 1rem;
  height: 2px;
}

.quote-form__stepper-btn[data-stepper-action="increment"]::after {
  width: 2px;
  height: 1rem;
}

.quote-form__stepper-btn:hover:not(:disabled),
.quote-form__stepper-btn:focus-visible {
  outline: none;
  border: 3px solid var(--nav-highlight);
  box-shadow: none;
  z-index: 1;
}

.quote-form__stepper-btn:hover:not(:disabled)::before,
.quote-form__stepper-btn:focus-visible::before {
  height: 3px;
}

.quote-form__stepper-btn[data-stepper-action="increment"]:hover:not(:disabled)::after,
.quote-form__stepper-btn[data-stepper-action="increment"]:focus-visible::after {
  width: 3px;
}

.quote-form__stepper-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.quote-form__stepper-input.quote-form__input {
  text-align: center;
  font-weight: 600;
  border-left: none;
  border-right: none;
  background: #fff;
  cursor: default;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quote-form__stepper-input.quote-form__input::-webkit-outer-spin-button,
.quote-form__stepper-input.quote-form__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quote-form__stepper-input.quote-form__input:focus {
  box-shadow: none;
  border-color: var(--nav-highlight);
}

.quote-review {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 1rem;
  padding: 0.1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quote-review__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  align-items: baseline;
}

.quote-review > .quote-review__row:nth-child(4n+1) { --nav-highlight: rgb(255, 230, 243); }
.quote-review > .quote-review__row:nth-child(4n+2) { --nav-highlight: rgb(230, 243, 255); }
.quote-review > .quote-review__row:nth-child(4n+3) { --nav-highlight: rgb(230, 255, 238); }
.quote-review > .quote-review__row:nth-child(4n)   { --nav-highlight: rgb(255, 243, 220); }

.quote-review__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ssb-nav-ink);
  line-height: 1.3;
  margin: 0;
  justify-self: start;
  padding: 0.2em 0.5em;
  position: relative;
  z-index: 0;
}

.quote-review__label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-highlight);
  transform-origin: left;
  animation: nav-highlight-in 0.8s ease forwards;
  z-index: -1;
}

.quote-review__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ssb-nav-ink);
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.quote-review__utilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quote-review__utility {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.quote-review__utility-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.quote-review__utility-label {
  font-size: 0.95rem;
  color: var(--ssb-nav-ink);
}

.quote-review__row--price {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.quote-review__value--price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quote-review__price {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ssb-nav-red);
  line-height: 1;
}

.quote-review__price-meta {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ssb-nav-ink);
}

.quote-review__price-badge {
  margin-left: auto;
  margin-bottom: 0;
}

.quote-review__disclaimer {
  color: var(--ssb-nav-ink);
  line-height: 1.5;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  text-align: center;
}

@media (max-width: 640px) {
  .quote-review__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
  }

  .quote-review__row--price {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .quote-review__price-badge {
    margin-left: 0;
  }
}

.quote-tenants {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.quote-tenant {
  border: 1px solid var(--ssb-border);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.quote-tenant[open] {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.quote-tenant__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
  color: var(--ssb-nav-ink);
  font-weight: 600;
}

.quote-tenant__summary::-webkit-details-marker {
  display: none;
}

.quote-tenant__summary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.quote-tenant__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #ece6d8;
  color: var(--ssb-nav-ink);
  font-size: 0.85rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.quote-tenant--you .quote-tenant__index {
  background: var(--ssb-nav-red);
  color: #fff;
}

.quote-tenant__summary-label {
  flex: 1 1 auto;
  font-size: 1rem;
}

.quote-tenant__chevron {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--ssb-nav-ink);
  border-bottom: 2px solid var(--ssb-nav-ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 0.15rem;
  opacity: 0.6;
}

.quote-tenant[open] .quote-tenant__chevron {
  transform: rotate(-135deg);
}

.quote-tenant__body {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.quote-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.quote-form__actions--stack {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.quote-form__back-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.quote-form__back:hover .quote-form__back-arrow {
  transform: translateX(-3px);
}

.quote-form__back.quote-form__back {
  background: transparent;
  border-color: transparent;
  color: var(--ssb-nav-ink, #4a5168);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  width: auto;
  max-width: none;
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

.quote-form__back.quote-form__back:hover {
  background: transparent;
  border-color: transparent;
  color: var(--ssb-nav-ink, #11182f);
  opacity: 1;
  transform: none;
  text-decoration-color: currentColor;
}

.quote-form__next {
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.quote-form__next:hover {
  transform: translateY(-1px);
}

.quote-form__next-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.quote-form__next:hover .quote-form__next-arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .quote-page {
    padding: 1.5rem 1rem 3rem;
  }

  .quote-page__inner {
    padding: 1.25rem 0.75rem;
    border-radius: 0;
  }

  .quote-page__brand {
    font-size: clamp(0.9rem, 5.5vw, 1.9rem);
  }

  .quote-step__title {
    font-size: clamp(2.25rem, 9.2vw, 3.6rem);
    margin-bottom: 0.8rem;
  }

  .quote-form__row {
    grid-template-columns: 1fr;
  }

  .quote-steps {
    gap: 0;
  }

  .quote-steps__circle {
    width: 18px;
    height: 18px;
  }

  .quote-promise {
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 0.8rem;
  }
}

/* ── Legal pages (Privacy Policy, Terms, etc.) ─── */
.legal-page {
  background: var(--ssb-surface);
}

.legal-page__content {
  color: var(--ssb-text);
}

.legal-page__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ssb-border);
}

.legal-page__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ssb-nav-ink);
  font-weight: 700;
}

.legal-page__entity {
  margin: 0 0 0.5rem;
  color: var(--ssb-nav-red);
  font-weight: 600;
  line-height: 1.5;
}

.legal-page__updated {
  margin: 0;
  color: var(--ssb-muted);
  font-size: 0.95rem;
}

.legal-page__content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ssb-text);
}

.legal-page__content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.075rem;
  color: var(--ssb-text);
}

.legal-page__content p {
  margin: 0 0 1rem;
}

.legal-page__content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.legal-page__content li {
  margin-bottom: 0.4rem;
}

.legal-page__content li::marker {
  color: var(--ssb-nav-red);
}

.legal-page__content a {
  color: var(--ssb-nav-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}

.legal-page__content a:hover,
.legal-page__content a:focus-visible {
  color: #c13621;
  text-decoration-thickness: 2px;
}

@media (max-width: 600px) {
  .legal-page__content h2 {
    font-size: 1.2rem;
  }
}

/* ── Legal page — print / save as PDF ─── */
@media print {
  /* Strip site chrome so only the document itself prints */
  .announcement-banner,
  .site-header,
  .cta-quote,
  .site-footer,
  .nav-menu-toggle {
    display: none !important;
  }

  /* Plain black-on-white for clean, ink-friendly output */
  html,
  body,
  .legal-page {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.4;
  }

  /* Use the full page width — drop the centred container constraint */
  .legal-page__content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #000 !important;
  }

  .legal-page__header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #000;
  }

  .legal-page__title {
    color: #000 !important;
    font-size: 20pt;
  }

  .legal-page__entity,
  .legal-page__updated {
    color: #000 !important;
  }

  .legal-page__content h2,
  .legal-page__content h3 {
    color: #000 !important;
    /* Keep a heading on the same page as the text that follows it */
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Don't split headings or list items across a page break */
  .legal-page__content h2,
  .legal-page__content h3,
  .legal-page__content li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .legal-page__content a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* Spell out external link destinations, which are lost on paper */
  .legal-page__content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  @page {
    margin: 1.6cm;
  }
}

/* ── Contact Us page ─── */
.contact-page {
  background: var(--ssb-surface);
  padding-bottom: 4rem;
}

.contact-page__inner {
  padding-top: 1rem;
}

.contact-page__header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ssb-border);
}

.contact-page__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ssb-nav-ink);
  font-weight: 700;
}

.contact-page__subtitle {
  margin: 0;
  color: var(--ssb-nav-ink);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
  max-width: 60ch;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.4rem;
  background: var(--ssb-surface);
  border: 1px solid var(--ssb-border);
  border-radius: 0;
  text-decoration: none;
  color: var(--ssb-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 39, 70, 0.08);
  border-color: #c8ccd8;
  color: var(--ssb-text);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 73, 47, 0.1);
  color: var(--ssb-nav-red);
  margin-bottom: 0.4rem;
}

.contact-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ssb-muted);
}

.contact-card__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.2;
  word-break: break-word;
}

.contact-card__hint {
  font-size: 0.9rem;
  color: var(--ssb-muted);
}

.contact-whatsapp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  background: #f7f8fc;
  border: 1px solid var(--ssb-border);
  border-radius: 0;
}

.contact-whatsapp__intro {
  min-width: 0;
}

.contact-whatsapp__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--ssb-nav-ink);
}

.contact-whatsapp__desc {
  margin: 0;
  color: var(--ssb-nav-ink);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
}

.contact-whatsapp__desc strong {
  color: var(--ssb-text);
}

/* Inline WhatsApp chat (page-flow imitation of the floating widget) */
.wa-inline {
  width: 100%;
  max-width: 320px;
  justify-self: end;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #e5ddd5;
}

.wa-inline__header {
  background: linear-gradient(135deg, #25D366 0%, #22c55e 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-inline__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-inline__header-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.wa-inline__body {
  background: #e5ddd5;
  padding: 12px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-inline__bubble {
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 0 10px 10px 10px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.wa-inline__bubble--hidden {
  display: none;
}

.wa-inline__bubble--reveal {
  display: block;
  animation: waInlineBubbleIn 0.3s ease forwards;
}

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

.wa-inline__typing {
  display: none;
  align-items: center;
  gap: 5px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.wa-inline__typing--visible {
  display: flex;
}

.wa-inline__dot {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: waInlineDot 1.4s ease-in-out infinite;
}

.wa-inline__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.wa-inline__dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waInlineDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-4px); }
}

.wa-inline__footer {
  background: #e5ddd5;
  padding: 0 18px 18px;
  display: flex;
  justify-content: flex-end;
}

.wa-inline__open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.wa-inline__open-btn:hover {
  background-color: #1fb855;
  color: #fff;
  transform: scale(1.04);
}

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

  .contact-whatsapp {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }

  .wa-inline {
    justify-self: stretch;
    max-width: none;
  }
}

/* ============================================================
   Responsive refinements — keep layout, scaling, and positioning
   coherent across small / medium / large screens.
   ============================================================ */

/* Nav — slightly smaller nav items below 1200px so the 3-column
   layout has more breathing room before it collapses at 1000px. */
@media (max-width: 1200px) {
  .nav-links a {
    font-size: clamp(0.86rem, 0.8rem + 0.25vw, 0.98rem);
    padding: 0.18em 0.42em;
  }

  /* Scoped to the header nav buttons only — these shrink so the primary nav
     fits at ≤1200px. Left unscoped, the shared .nav-button class would also
     pull the homepage section CTAs down to ~0.85rem (illegible). */
  .nav-actions .nav-button {
    font-size: clamp(0.85rem, 0.82rem + 0.18vw, 0.95rem);
    padding: clamp(0.5rem, 0.42rem + 0.35vw, 0.66rem) clamp(0.7rem, 0.5rem + 1.2vw, 1.3rem);
  }
}

/* Nav — slightly tighter spacing in the 1001-1100px band so the
   3-column layout doesn't crowd before it collapses at 1000px. */
@media (max-width: 1100px) and (min-width: 1001px) {
  .main-nav {
    column-gap: 0.6rem;
    padding: 0.6rem 1rem;
  }

  .nav-links {
    gap: 0.55rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }
}

/* Hero — guard against text overflow on very narrow phones. */
@media (max-width: 360px) {
  .hp-hero__title {
    width: 100%;
    padding: 0 0.25rem;
    font-size: clamp(1.95rem, 9.2vw, 2.5rem);
  }

  .hp-hero__desc {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

/* Guarantee — let the content claim more of the viewport on
   narrower screens so copy doesn't wrap awkwardly. Background
   scales up from 1.2 @ 750px to 3.5 @ 335px.

   NOTE: --bg-scale must be a plain <number> here. It used to be derived
   from the viewport with calc((325000px / 100vw) * (1px / 100vw) + 0.62),
   but dividing a length by a length is invalid CSS — Chrome rejected the
   whole declaration, which made .hp-guarantee__bg fall back to width:auto
   (the SVG's ~1033px intrinsic size). That fixed size then grew the
   fit-content wrap past the viewport, so the panel ran off the right.
   Safari tolerated the division, which is why it only broke in Chrome.
   With a unitless scale, .hp-guarantee__bg keeps its percentage width
   (calc(100% * scale)), so it stays centered and clipped instead. CSS
   can't compute a unitless number from vw, so we step the scale by width. */
@media (max-width: 750px) {
  .hp-guarantee__wrap {
    --bg-scale: 1.2;
  }

  .hp-guarantee__content {
    width: min(90vw, 680px);
  }
}

@media (max-width: 600px) {
  .hp-guarantee__wrap {
    --bg-scale: 1.5;
  }
}

@media (max-width: 500px) {
  .hp-guarantee__wrap {
    --bg-scale: 1.9;
  }
}

@media (max-width: 430px) {
  .hp-guarantee__wrap {
    --bg-scale: 2.4;
  }
}

@media (max-width: 375px) {
  .hp-guarantee__wrap {
    --bg-scale: 2.9;
  }
}

@media (max-width: 335px) {
  .hp-guarantee__wrap {
    --bg-scale: 3.5;
  }
}

/* Guarantee — allow the title to wrap on narrow screens so it
   doesn't force horizontal overflow. */
@media (max-width: 480px) {
  .hp-guarantee__title {
    white-space: normal;
  }
}

/* Footer — keep CTA buttons fluid so they don't blow out the
   2-column tablet layout at 481-768px. */
@media (max-width: 768px) {
  .footer-cta {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Footer-bottom — center social/legal cleanly on small screens. */
@media (max-width: 480px) {
  .footer-bottom__right {
    align-items: center;
    width: 100%;
  }

  .footer-bottom__legal {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    padding: 0.4rem 0.75rem;
    gap: 0.75rem;
  }
}

/* Prevent any stray horizontal scroll caused by absolutely
   positioned hero decoration overflow at edge-case widths.
   Applied to body only (not html) so sticky positioning still
   works. */
body {
  overflow-x: clip;
}

/* ── Collapsible nav (≤1440px) ──────────────────
   At the 1440px breakpoint the inline nav-links no longer fit
   alongside the brand and actions, so they collapse into a
   dropdown panel toggled by the hamburger button placed to the
   right of nav-actions. */
.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  background: #fff;
  border: 0.5px solid #c8ccd8;
  border-radius: 0;
  color: var(--ssb-nav-ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-menu-toggle:hover {
  background: #f7f8fc;
  border-color: #c2c6d7;
}

.nav-menu-toggle__icon,
.nav-menu-toggle__icon::before,
.nav-menu-toggle__icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.15s ease, background 0.15s ease;
}

.nav-menu-toggle__icon {
  position: relative;
}

.nav-menu-toggle__icon::before,
.nav-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-menu-toggle__icon::before { top: -7px; }
.nav-menu-toggle__icon::after  { top:  7px; }

.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon {
  background: transparent;
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 1440px) {
  :root {
    --ssb-header-height: 64px;
    --ssb-announcement-height: 2rem;
  }

  .announcement-banner:hover .announcement-banner__content {
    transform: none;
  }

  .main-nav {
    position: relative;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand actions toggle";
    row-gap: 0;
    column-gap: clamp(0.4rem, 1vw, 0.9rem);
    padding: 0.55rem clamp(0.9rem, 2.5vw, 1.5rem);
  }

  .nav-brand   { grid-area: brand;   justify-self: start; }
  .nav-actions { grid-area: actions; justify-self: end;   }

  .nav-menu-toggle {
    grid-area: toggle;
    display: inline-flex;
  }

  .nav-links {
    grid-area: unset;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0.4rem clamp(0.9rem, 2.5vw, 1.5rem) 0.9rem;
    background: var(--ssb-surface, #fff);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 50;
  }

  .nav-links.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: inline-block;
    width: auto;
    margin: 0.35rem 0;
    padding: 0.2em 0.5em;
    white-space: normal;
  }

  .nav-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  }

  .nav-links a::before {
    animation: none;
    transform: scaleX(0);
  }

  .nav-links.is-open a::before {
    animation: nav-highlight-in 0.8s ease forwards;
  }
}

/* ── ≤1200px: trim the header bar (item sizes unchanged — those are
   reduced separately in the refinements block above). Must sit after
   the ≤1440 rule so it wins the cascade. Only the bar's min-height
   and its own vertical padding shrink; the brand/logo/buttons/toggle
   keep their sizes and just sit in a shorter bar. */
@media (max-width: 1200px) {
  :root {
    --ssb-header-height: 52px;
  }

  .main-nav {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

/* ── ≤700px: actions move into the dropdown ──────
   nav-menu.js relocates .nav-actions into .nav-links
   (wrapped in .nav-actions-item) so the Contact and
   Quote buttons appear at the bottom of the dropdown
   panel rather than the header bar. */
@media (max-width: 700px) {
  .main-nav {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas: "brand";
  }

  .nav-brand {
    grid-area: brand;
    justify-self: center;
    text-align: center;
    font-size: clamp(1.3rem, 3.6vw, 1.85rem);
    min-width: 0;
    max-width: 100%;
  }

  .nav-menu-toggle {
    position: absolute;
    top: 50%;
    right: clamp(0.6rem, 2.5vw, 1.5rem);
    transform: translateY(-50%);
    width: clamp(1.9rem, 7vw, 2.6rem);
    height: clamp(1.9rem, 7vw, 2.6rem);
  }

  .nav-menu-toggle__icon,
  .nav-menu-toggle__icon::before,
  .nav-menu-toggle__icon::after {
    width: clamp(15px, 4.5vw, 22px);
  }

  .nav-menu-toggle__icon::before { top: clamp(-7px, -1.6vw, -5px); }
  .nav-menu-toggle__icon::after  { top: clamp(5px, 1.6vw, 7px); }

  .nav-menu-toggle {
    justify-self: end;
  }

  .nav-actions-item {
    grid-area: unset;
    list-style: none;
    width: 100%;
    margin: 0.5rem 0 0;
    padding: 0.6rem 0 0.1rem;
    border-top: 1px solid #e5e7eb;
  }

  .nav-links .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    grid-template-columns: none;
    justify-self: stretch;
  }

  .nav-links .nav-actions .nav-button {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .nav-links .nav-actions .nav-button-contact {
    display: inline-flex;
  }

  .nav-links .nav-actions .nav-button {
    margin: 0;
  }

  .nav-links .nav-actions .nav-button::before {
    content: none;
  }

  .nav-links .nav-actions .nav-button:hover {
    transform: none;
    box-shadow: none;
  }

  .nav-links .nav-actions .nav-button-contact,
  .nav-links .nav-actions .nav-button-contact:hover {
    color: var(--ssb-nav-ink);
  }

  .nav-links .nav-actions .nav-button-demo,
  .nav-links .nav-actions .nav-button-demo:hover {
    color: #fff;
  }
}

@media (max-width: 640px) {
  .nav-actions .nav-button {
    width: auto;
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav-actions .nav-button-contact {
    display: none;
  }
}

/* ── ≤380px: split brand and toggle into two grid columns so the
   centered brand from the ≤700px rule can't slide under the
   absolute-positioned hamburger on very narrow screens (~300px). */
@media (max-width: 380px) {
  :root {
    /* header-height inherits 58px from the ≤1200 rule — re-stating
       64px here would bounce the bar back up on tiny screens. */
    --ssb-announcement-height: 1.7rem;
  }

  .announcement-banner {
    padding: 0 0.6rem;
    font-size: 0.7rem;
  }

  .announcement-banner__icon {
    font-size: 0.85rem;
  }

  .main-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    column-gap: 0.5rem;
    align-items: center;
    padding: 0.45rem clamp(0.6rem, 2.5vw, 1rem);
  }

  .nav-brand {
    grid-area: brand;
    justify-self: start;
    align-self: center;
    text-align: left;
    font-size: clamp(1rem, 5.6vw, 1.55rem);
    min-width: 0;
    margin: 0;
  }

  .nav-menu-toggle {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    grid-area: toggle;
    justify-self: end;
    align-self: center;
  }
}

/* ── 404 / Not Found page ─── */
.not-found-page {
  background: var(--ssb-surface);
  padding-bottom: 4rem;
}

.not-found-page__inner {
  padding-top: 1rem;
}

.not-found-page__hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--ssb-border);
  margin-bottom: 3rem;
}

.not-found-page__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ssb-nav-red);
}

.not-found-page__code {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  margin: 0 0 1.5rem;
  font-size: clamp(7rem, 22vw, 14rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ssb-nav-ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1.5vw, 0.75rem);
}

.not-found-page__digit {
  display: inline-block;
}

.not-found-page__zero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: rgba(240, 73, 47, 0.1);
  border: 0.06em solid rgba(240, 73, 47, 0.25);
  position: relative;
  top: -0.04em;
}

.not-found-page__zero img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}

.not-found-page__title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ssb-nav-ink);
  font-weight: 700;
}

.not-found-page__subtitle {
  margin: 0 auto 2rem;
  max-width: 56ch;
  color: var(--ssb-nav-ink);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

.not-found-page__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.not-found-page__cta {
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  letter-spacing: 0.02em;
}

.not-found-page__suggestions-title {
  font-family: "Iowan Old Style", "Times New Roman", serif;
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ssb-nav-ink);
  font-weight: 700;
}

.not-found-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.not-found-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.4rem;
  background: var(--ssb-surface);
  border: 1px solid var(--ssb-border);
  border-radius: 0;
  text-decoration: none;
  color: var(--ssb-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.not-found-card:hover,
.not-found-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 39, 70, 0.08);
  border-color: #c8ccd8;
  color: var(--ssb-text);
}

.not-found-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 73, 47, 0.1);
  color: var(--ssb-nav-red);
  margin-bottom: 0.4rem;
}

.not-found-card__label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ssb-nav-ink);
  line-height: 1.2;
}

.not-found-card__hint {
  font-size: 0.95rem;
  color: var(--ssb-muted);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .not-found-page__hero {
    padding: 1.5rem 0 2rem;
    margin-bottom: 2rem;
  }

  .not-found-page__grid {
    grid-template-columns: 1fr;
  }

  .not-found-page__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .not-found-page__cta {
    width: 100%;
  }
}
