body.home {
  overflow-x: hidden;
  overflow-x: clip;
}

.cw-home {
  background: var(--cw-white);
  color: var(--cw-text);
  font-family: var(--font-body);
  overflow-x: clip;
}

.cw-home h1,
.cw-home h2,
.cw-home h3 {
  margin: 0;
  font-weight: 400;
}

.cw-home p {
  margin: 0;
}

.cw-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 38px;
  padding: 10px 22px;
  border: 1px solid var(--cw-green-cta);
  background: var(--cw-green-cta);
  color: var(--cw-white);
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.cw-home-button:hover,
.cw-home-button:focus {
  background: var(--cw-green-hover);
  border-color: var(--cw-green-hover);
}

.cw-home-section-title {
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 1.05;
  color: var(--cw-green-heading);
  text-transform: uppercase;
}

/* Homepage v11 section marker shared by the five primary content sections. */
.cw-home-intro__text h2::before,
.cw-home-section-title::before {
  content: "";
  display: block;
  width: clamp(120px, 10vw, 168px);
  height: 6px;
  margin-bottom: clamp(24px, 2.25vw, 34px);
  background: var(--cw-light-evergreen);
}

@media (max-width: 767px) {
  .cw-home-intro__text h2::before,
  .cw-home-section-title::before {
    width: 92px;
    height: 4.5px;
    margin-bottom: 20px;
  }
}

.cw-home-section-text {
  max-width: 1110px;
  margin-top: 46px;
  color: var(--cw-text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.cw-home-species .cw-home-section-text {
  max-width: none;
}

.cw-home-hero {
  position: relative;
  min-height: 0;
  min-height: calc(100svh - 101px);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  contain: paint;
  background: var(--cw-dark-evergreen);
}

.cw-home-video-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--cw-dark-evergreen);
}

.cw-home-video-hero__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-home-video-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 38%), rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cw-home-hero__slide,
.cw-home-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.cw-home-hero__slide.is-active,
.cw-home-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cw-home-hero__image,
.cw-home-species__image,
.cw-home-gallery__image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cw-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 24, 0.16);
  pointer-events: none;
}

.cw-home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  color: var(--cw-white);
}

.cw-home-hero__content h1 {
  max-width: 820px;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

/* Admin-entered caption line breaks are intentional on desktop only. */
@media (max-width: 1024px) {
  .cw-home-hero__content h1 br {
    display: none;
  }
}

.cw-home-hero__arrow,
.cw-home-gallery__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.cw-home-hero__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-home-hero__arrow--prev,
.cw-home-gallery__arrow--prev {
  left: 34px;
}

.cw-home-hero__arrow--next,
.cw-home-gallery__arrow--next {
  right: 34px;
}

.cw-home-hero__arrow span,
.cw-home-gallery__arrow span {
  display: block;
  width: 24px;
  height: 24px;
  border-top: 3px solid var(--cw-white);
  border-left: 3px solid var(--cw-white);
}

.cw-home-hero__arrow--prev span,
.cw-home-gallery__arrow--prev span {
  transform: rotate(-45deg);
}

.cw-home-hero__arrow--next span,
.cw-home-gallery__arrow--next span {
  transform: rotate(135deg);
}

.cw-home-hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.cw-home-hero__dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--cw-white);
  opacity: 0.75;
}

.cw-home-hero__dots button.is-active {
  background: var(--cw-green-cta);
  opacity: 1;
}

.cw-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(48px, 10vw, 150px);
  align-items: center;
  padding: 92px 0 72px;
}

.cw-home-intro__text {
  max-width: 440px;
}

.cw-home-intro__text h2 {
  font-family: var(--font-body);
  font-size: 40px;
  line-height: 1.18;
  color: var(--cw-green-heading);
}

.cw-home-intro__body {
  margin-top: 34px;
  color: var(--cw-text-muted);
  font-size: 17px;
  line-height: 1.62;
}

.cw-home-intro__body p + p {
  margin-top: 18px;
}

.cw-home-intro .cw-home-button {
  margin-top: 28px;
}

.cw-home-intro__media {
  /* Keep the image width while cropping its former square height by 30%. */
  aspect-ratio: 10 / 7;
  overflow: hidden;
}

.cw-home-intro__image,
.cw-home-program-card__image,
.cw-home-finish-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cw-home-species {
  padding: 0 0 80px;
}

.cw-home-species__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 54px;
}

.cw-home-species__tab {
  position: relative;
  min-height: 62px;
  border: 0;
  background: var(--cw-white);
  color: var(--cw-text);
  font-family: var(--font-body);
  font-size: 22px;
  cursor: pointer;
}

.cw-home-species__tab + .cw-home-species__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--cw-black);
}

.cw-home-species__tab.is-active::before,
.cw-home-species__tab.is-active + .cw-home-species__tab::before {
  opacity: 0;
}

.cw-home-species__tab.is-active {
  background: var(--cw-home-species-accent, var(--cw-turquoise));
  color: var(--cw-white);
}

.cw-home-species__panels {
  position: relative;
  aspect-ratio: 21 / 7;
  overflow: hidden;
}

.cw-home-species__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cw-home-species__panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cw-home-species__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms ease;
}

.cw-home-species__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cw-home-species__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.23));
  pointer-events: none;
}

.cw-home-gallery__slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.cw-home-species__caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  bottom: auto;
  width: min(1200px, calc(100% - 180px));
  transform: translate(-50%, -50%);
  color: var(--cw-white);
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.cw-home-species__caption h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
}

.cw-home-species__caption p {
  max-width: 960px;
  margin: 14px auto 0;
  font-size: clamp(23px, 2.25vw, 38px);
  line-height: 1.2;
}

.cw-home-species__detail {
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  margin-top: 22px;
  padding: 12px 22px;
  border: 2px solid var(--cw-white);
  background: var(--cw-white);
  color: var(--cw-green-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 8px 22px rgba(0, 31, 24, 0.2);
}

.cw-home-species__detail:hover,
.cw-home-species__detail:focus-visible {
  border-color: var(--cw-light-evergreen);
  background: var(--cw-light-evergreen);
  color: var(--cw-dark-evergreen);
  text-decoration: none;
}

.cw-home-species__detail span {
  font-size: 22px;
  line-height: 0;
  transition: transform 160ms ease;
}

.cw-home-species__detail:hover span,
.cw-home-species__detail:focus-visible span {
  transform: translateX(3px);
}

.cw-home-species__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 54px;
  height: 70px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.cw-home-species__arrow--prev {
  left: 38px;
}

.cw-home-species__arrow--next {
  right: 38px;
}

.cw-home-species__arrow span {
  display: block;
  width: 30px;
  height: 30px;
  margin: auto;
  border-top: 2px solid var(--cw-white);
  border-right: 2px solid var(--cw-white);
}

.cw-home-species__arrow--prev span {
  transform: rotate(-135deg);
}

.cw-home-species__arrow--next span {
  transform: rotate(45deg);
}

.cw-home-species__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 13px;
  transform: translateX(-50%);
}

.cw-home-species__dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cw-white);
  cursor: pointer;
}

.cw-home-species__dots button.is-active {
  background: var(--cw-home-species-accent, var(--cw-teal));
}

.cw-home-finishes {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
  padding: 0 0 92px;
}

.cw-home-finishes__body {
  margin-top: 42px;
  color: var(--cw-text-muted);
  font-size: 17px;
  line-height: 1.55;
}

.cw-home-finishes__body ul {
  margin: 0;
  padding-left: 18px;
}

.cw-home-finishes__body li + li {
  margin-top: 12px;
}

.cw-home-finishes .cw-home-button {
  margin-top: 28px;
}

.cw-home-finishes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cw-home-finish-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cw-cinder);
}

.cw-home-finish-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56), transparent);
}

.cw-home-finish-card__label {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 13px;
  color: var(--cw-white);
}

.cw-home-finish-card__label h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.cw-home-finish-card__label p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.1;
}

.cw-home-gallery {
  padding-bottom: 92px;
}

.cw-home-gallery__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 58px;
}

.cw-home-gallery__heading a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--cw-green-primary);
  font-size: 20px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cw-home-gallery__heading span {
  font-size: 28px;
  line-height: 1;
}

.cw-home-gallery__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(620px, 68vh);
  overflow: hidden;
  background: var(--cw-cinder);
}

/* Product-led desktop banners use independent heights for their content needs. */
@media (min-width: 1025px) {
  .cw-home-gallery__slider {
    height: clamp(540px, 41.6667vw, 800px);
    max-height: none;
    aspect-ratio: auto;
  }

  /* Customer revision: 35% shorter than the previous 540–800px Species slider. */
  .cw-home-species__panels {
    height: clamp(351px, 27.0833vw, 520px);
    max-height: none;
    aspect-ratio: auto;
  }
}

.cw-home-gallery__caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  color: var(--cw-white);
}

.cw-home-gallery__caption h3 {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.15;
}

.cw-home-gallery__facts {
  max-width: 900px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.cw-home-gallery__facts div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
}

.cw-home-gallery__facts dt,
.cw-home-gallery__facts dd {
  margin: 0;
}

.cw-home-gallery__detail {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  margin-top: 18px;
  background: transparent;
  color: var(--cw-white);
  font-size: 15px;
  cursor: pointer;
}

.cw-home-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  background: var(--cw-color-surface);
}

.cw-home-gallery-modal.is-open {
  display: block;
}

body.cw-home-gallery-modal-open {
  overflow: hidden;
}

.cw-home-gallery-modal__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 88px 92px 72px;
}

.cw-home-gallery-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 72px;
  align-items: center;
  width: min(1560px, calc(100% - 100px));
  margin: auto;
}

.cw-home-gallery-modal__media {
  height: min(72vh, 760px);
  min-height: 420px;
}

.cw-home-gallery-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cw-home-gallery-modal__text > div {
  color: var(--cw-green-primary);
  font-size: 22px;
}

.cw-home-gallery-modal__text h2 {
  margin: 24px 0 44px;
  font-size: 38px;
  line-height: 1.15;
}

.cw-home-gallery-modal__text {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-right: 8px;
}

.cw-home-gallery-modal__text p {
  font-size: 21px;
  line-height: 1.45;
}

.cw-home-gallery-modal__facts {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
}

.cw-home-gallery-modal__facts > div {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 12px;
}

.cw-home-gallery-modal__facts > div[hidden] {
  display: none;
}

.cw-home-gallery-modal__facts dt,
.cw-home-gallery-modal__facts dd {
  margin: 0;
  color: var(--cw-color-text);
  font-size: 16px;
  line-height: 1.4;
}

.cw-home-gallery-modal__facts dt {
  font-weight: 700;
}

.cw-home-gallery-modal__description p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  white-space: pre-line;
}

.cw-home-gallery-modal__count {
  position: absolute;
  top: 18px;
  left: 28px;
}

.cw-home-gallery-modal__close,
.cw-home-gallery-modal__arrow {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cw-home-gallery-modal__close {
  top: 28px;
  right: 38px;
  width: 52px;
  height: 52px;
}

.cw-home-gallery-modal__close::before,
.cw-home-gallery-modal__close::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 4px;
  width: 46px;
  height: 2px;
  background: var(--cw-dark-moss);
}

.cw-home-gallery-modal__close::before {
  transform: rotate(45deg);
}

.cw-home-gallery-modal__close::after {
  transform: rotate(-45deg);
}

.cw-home-gallery-modal__arrow {
  top: 50%;
  width: 52px;
  height: 70px;
  transform: translateY(-50%);
}

.cw-home-gallery-modal__arrow--prev {
  left: 28px;
}

.cw-home-gallery-modal__arrow--next {
  right: 28px;
}

.cw-home-gallery-modal__arrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: auto;
  border-top: 2px solid var(--cw-dark-moss);
  border-right: 2px solid var(--cw-dark-moss);
}

.cw-home-gallery-modal__arrow--prev::before {
  transform: rotate(-135deg);
}

.cw-home-gallery-modal__arrow--next::before {
  transform: rotate(45deg);
}

.cw-home-programs {
  padding: 0 0 90px;
}

.cw-home-programs__slider {
  position: relative;
  margin-top: 54px;
}

.cw-home-programs__grid {
  display: flex;
  gap: clamp(48px, 8vw, 110px);
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cw-home-programs__grid::-webkit-scrollbar {
  display: none;
}

.cw-home-program-card {
  flex: 0 0 calc((100% - clamp(48px, 8vw, 110px)) / 2);
  min-width: 0;
  scroll-snap-align: start;
}

.cw-home-program-card__link {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cw-home-program-card h3 {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.22;
  color: var(--cw-green-heading);
  text-decoration: none;
  text-underline-offset: 7px;
}

.cw-home-program-card__link:hover h3,
.cw-home-program-card__link:focus-visible h3 {
  color: var(--cw-color-action);
  text-decoration: underline;
}

.cw-home-program-card__link:focus-visible {
  outline: 3px solid var(--cw-color-action);
  outline-offset: 6px;
}

.cw-home-program-card__body {
  margin-top: 26px;
  color: var(--cw-text-muted);
  font-size: 17px;
  line-height: 1.55;
}

.cw-home-program-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  overflow: hidden;
}

.cw-home-program-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

.cw-home-program-card__link:hover .cw-home-program-card__image,
.cw-home-program-card__link:focus-visible .cw-home-program-card__image {
  transform: scale(1.025);
}

.cw-home-programs__action {
  display: flex;
  justify-content: center;
  margin-top: 58px;
}

.cw-home-programs__arrow {
  position: absolute;
  z-index: 3;
  top: calc(50% + 86px);
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.cw-home-programs__arrow--prev {
  left: -88px;
}

.cw-home-programs__arrow--next {
  right: -88px;
}

.cw-home-programs__arrow span {
  display: block;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--cw-black);
  border-left: 2px solid var(--cw-black);
}

.cw-home-programs__arrow--prev span {
  transform: rotate(-45deg);
}

.cw-home-programs__arrow--next span {
  transform: rotate(135deg);
}

@media (min-width: 901px) {
  .cw-home-programs__slider.is-desktop-static .cw-home-programs__arrow {
    display: none;
  }
}

@media (max-width: 1439px) {
  .cw-home-section-title {
    font-size: 54px;
  }

  .cw-home-hero__content h1 {
    max-width: 760px;
    font-size: 56px;
  }

  .cw-home-intro {
    grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
    gap: clamp(44px, 7vw, 92px);
    padding: 82px 0 68px;
  }

  .cw-home-finishes {
    grid-template-columns: minmax(280px, 0.74fr) minmax(390px, 1fr);
    gap: clamp(40px, 6vw, 82px);
  }

  .cw-home-programs__grid {
    gap: 56px;
  }

  .cw-home-program-card {
    flex-basis: calc((100% - 56px) / 2);
  }

  .cw-home-programs__arrow--prev {
    left: -54px;
  }

  .cw-home-programs__arrow--next {
    right: -54px;
  }
}

@media (max-width: 1199px) {
  .cw-home-section-title {
    font-size: 48px;
  }

  .cw-home-section-text {
    margin-top: 34px;
  }

  .cw-home-hero {
    aspect-ratio: 16 / 7;
  }

  .cw-home-hero__content h1 {
    max-width: 680px;
    font-size: 48px;
  }

  .cw-home-hero__arrow,
  .cw-home-gallery__arrow,
  .cw-home-programs__arrow {
    width: 48px;
    height: 48px;
  }

  .cw-home-hero__arrow span,
  .cw-home-gallery__arrow span,
  .cw-home-programs__arrow span {
    width: 20px;
    height: 20px;
  }

  .cw-home-hero__arrow--prev,
  .cw-home-gallery__arrow--prev {
    left: 22px;
  }

  .cw-home-hero__arrow--next,
  .cw-home-gallery__arrow--next {
    right: 22px;
  }

  .cw-home-intro {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
    gap: 48px;
    padding: 72px 0 64px;
  }

  .cw-home-intro__text h2 {
    font-size: 34px;
  }

  .cw-home-intro__body,
  .cw-home-section-text,
  .cw-home-finishes__body,
  .cw-home-program-card__body {
    font-size: 16px;
  }

  .cw-home-species {
    padding-bottom: 68px;
  }

  .cw-home-species__tabs {
    margin-top: 42px;
  }

  .cw-home-species__tab {
    min-height: 58px;
    padding: 0 10px;
    font-size: 19px;
  }

  .cw-home-species__panels {
    aspect-ratio: 16 / 6;
  }

  .cw-home-species__caption {
    top: 50%;
    bottom: auto;
  }

  .cw-home-finishes {
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
    gap: 44px;
    padding-bottom: 76px;
  }

  .cw-home-finishes__grid {
    gap: 14px;
  }

  .cw-home-gallery {
    padding-bottom: 76px;
  }

  .cw-home-gallery__heading {
    padding-bottom: 44px;
  }

  .cw-home-programs {
    padding-bottom: 76px;
  }

  .cw-home-programs__slider {
    margin-top: 44px;
  }

  .cw-home-programs__arrow {
    top: calc(50% + 72px);
  }

  .cw-home-programs__arrow--prev {
    left: -28px;
  }

  .cw-home-programs__arrow--next {
    right: -28px;
  }
}

@media (min-width: 768px) {
  .cw-home-hero__content h1 {
    font-size: 42px;
  }

  .cw-home-section-title {
    font-size: 60px;
  }
}

@media (min-width: 1200px) {
  .cw-home-hero__content h1 {
    font-size: 64px;
  }

  .cw-home-section-title {
    font-size: 60px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .cw-home-hero__content h1 {
    font-size: 48px;
  }

  .cw-home-section-title {
    font-size: 48px;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .cw-home-hero__content h1 {
    font-size: 56px;
  }

  .cw-home-section-title {
    font-size: 54px;
  }
}

@media (min-width: 1920px) {
  .cw-home-hero__content h1 {
    font-size: 64px;
  }

  .cw-home-section-title {
    font-size: 60px;
  }

  .cw-home-button {
    min-height: 48px;
    padding-inline: 30px;
    font-size: 20px;
  }

  .cw-home-intro__text h2 {
    font-size: 40px;
  }

  .cw-home-intro__body,
  .cw-home-section-text,
  .cw-home-finishes__body,
  .cw-home-program-card__body {
    font-size: 20px;
  }

  .cw-home-species__tab {
    min-height: 72px;
    font-size: 22px;
  }

  .cw-home-species__caption h3 {
    font-size: 58px;
  }

  .cw-home-species__caption p {
    font-size: 38px;
  }

  .cw-home-program-card h3 {
    font-size: 28px;
  }

  .cw-home-gallery__caption h3 {
    font-size: 28px;
  }

  .cw-home-gallery__caption div,
  .cw-home-gallery__caption a {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .cw-home-gallery-modal__inner {
    padding: 84px 50px 56px;
  }

  .cw-home-gallery-modal__content {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .cw-home-gallery-modal__media {
    height: min(48vh, 460px);
    min-height: 260px;
  }

  .cw-home-gallery-modal__text h2 {
    margin: 12px 0 18px;
    font-size: 30px;
  }

  .cw-home-gallery-modal__text p {
    font-size: 17px;
  }

  .cw-home-gallery-modal__text {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .cw-home-gallery-modal__arrow--prev {
    left: 4px;
  }

  .cw-home-gallery-modal__arrow--next {
    right: 4px;
  }

  .cw-home-hero {
    aspect-ratio: 16 / 9;
  }

  .cw-home-intro,
  .cw-home-finishes {
    grid-template-columns: 1fr;
  }

  .cw-home-hero__content h1 {
    max-width: 620px;
    font-size: 42px;
  }

  .cw-home-program-card {
    flex-basis: 100%;
  }

  .cw-home-programs__arrow--prev {
    left: -18px;
  }

  .cw-home-programs__arrow--next {
    right: -18px;
  }

  .cw-home-intro {
    padding-top: 64px;
    padding-bottom: 58px;
    gap: 36px;
  }

  .cw-home-intro__text {
    max-width: none;
  }

  .cw-home-intro__media {
    /* Preserve the same 30% height reduction from the previous 4:3 frame. */
    aspect-ratio: 40 / 21;
  }

  .cw-home-species {
    padding-bottom: 58px;
  }

  .cw-home-species__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
  }

  .cw-home-species__panels {
    aspect-ratio: 16 / 9;
  }

  .cw-home-finishes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .cw-home-finishes,
  .cw-home-gallery,
  .cw-home-programs {
    padding-bottom: 64px;
  }

  .cw-home-gallery__caption {
    bottom: 38px;
  }
}

@media (max-width: 640px) {
  .cw-home-hero {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .cw-home-hero__content {
    align-items: center;
    padding: 34px 54px;
  }

  .cw-home-hero__content h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  .cw-home-hero__arrow,
  .cw-home-gallery__arrow {
    width: 42px;
    height: 42px;
  }

  .cw-home-hero__arrow--prev,
  .cw-home-gallery__arrow--prev {
    left: 12px;
  }

  .cw-home-hero__arrow--next,
  .cw-home-gallery__arrow--next {
    right: 12px;
  }

  .cw-home-section-title {
    font-size: 38px;
  }

  .cw-home-section-text {
    margin-top: 26px;
    line-height: 1.58;
  }

  .cw-home-intro {
    padding: 54px 0 52px;
    gap: 28px;
  }

  .cw-home-intro__text h2 {
    font-size: 30px;
  }

  .cw-home-intro__body,
  .cw-home-finishes__body {
    margin-top: 24px;
  }

  .cw-home-intro .cw-home-button,
  .cw-home-finishes .cw-home-button {
    margin-top: 24px;
  }

  .cw-home-button {
    min-width: 118px;
    min-height: 40px;
    padding: 10px 18px;
    font-size: 16px;
  }

  .cw-home-gallery__slider,
  .cw-home-program-card__media {
    aspect-ratio: 4 / 3;
  }

  .cw-home-species__tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cw-home-species__tabs::-webkit-scrollbar {
    display: none;
  }

  .cw-home-species__tab {
    flex: 0 0 168px;
    min-width: 0;
    min-height: 54px;
    scroll-snap-align: start;
    font-size: 18px;
  }

  .cw-home-species__panels {
    aspect-ratio: 4 / 3;
  }

  .cw-home-species__caption {
    top: 50%;
    bottom: auto;
    width: calc(100% - 72px);
  }

  .cw-home-species__caption h3 {
    font-size: 30px;
  }

  .cw-home-species__caption p {
    max-width: 280px;
    margin-top: 9px;
    font-size: 17px;
  }

  .cw-home-finishes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cw-home-finish-card__label {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cw-home-finish-card__label h3 {
    font-size: 13px;
  }

  .cw-home-finish-card__label p {
    font-size: 11px;
  }

  .cw-home-gallery__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 30px;
  }

  .cw-home-gallery__caption {
    bottom: 28px;
  }

  .cw-home-gallery__caption h3 {
    font-size: 20px;
  }

  .cw-home-gallery__caption div {
    max-width: 300px;
    font-size: 14px;
  }

  .cw-home-programs__grid {
    gap: 24px;
    padding-inline: 4px;
  }

  .cw-home-program-card {
    flex-basis: calc(100% - 8px);
  }

  .cw-home-program-card h3 {
    font-size: 20px;
  }

  .cw-home-program-card__body {
    margin-top: 18px;
  }

  .cw-home-program-card__media {
    margin-top: 22px;
  }

  .cw-home-programs__arrow {
    top: auto;
    bottom: -8px;
    width: 44px;
    height: 44px;
  }

  .cw-home-programs__arrow--prev {
    left: 0;
  }

  .cw-home-programs__arrow--next {
    right: 0;
  }

  .cw-home-programs__action {
    margin-top: 64px;
  }
}

@media (max-width: 480px) {
  .cw-home-section-title {
    font-size: 32px;
  }

  .cw-home-hero__content {
    padding-inline: 46px;
  }

  .cw-home-hero__content h1 {
    font-size: 29px;
  }

  .cw-home-hero__dots {
    bottom: 16px;
  }

  .cw-home-intro__text h2 {
    font-size: 27px;
  }

  .cw-home-species__tab {
    flex-basis: 150px;
    font-size: 16px;
  }

  .cw-home-species__caption h3 {
    font-size: 26px;
  }

  .cw-home-species__caption p {
    font-size: 15px;
  }

  .cw-home-gallery__caption div {
    display: none;
  }

  .cw-home-gallery__caption a {
    margin-top: 10px;
  }
}

@media (max-width: 380px) {
  .cw-home-hero__content h1 {
    font-size: 26px;
  }

  .cw-home-finishes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Match the mobile Species controls to the Gallery carousel controls. */
@media (max-width: 640px) {
  .cw-home-species__arrow {
    width: 42px;
    height: 42px;
  }

  .cw-home-species__arrow--prev {
    left: 12px;
  }

  .cw-home-species__arrow--next {
    right: 12px;
  }

  .cw-home-species__arrow span {
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--cw-white);
    border-right: 0;
    border-left: 3px solid var(--cw-white);
  }

  .cw-home-species__arrow--prev span {
    transform: rotate(-45deg);
  }

  .cw-home-species__arrow--next span {
    transform: rotate(135deg);
  }
}

/* Keep every full hero aligned to the visible viewport below the master header. */
.cw-home-hero {
  height: calc(100svh - var(--cw-site-header-height, 145px));
  min-height: 520px;
  aspect-ratio: auto;
}

@media (max-width: 960px) {
  .cw-home-hero {
    height: calc(100svh - var(--cw-site-header-height, 76px));
    min-height: 430px;
    aspect-ratio: auto;
  }
}

@media (max-width: 560px) {
  .cw-home-hero {
    height: calc(100svh - var(--cw-site-header-height, 68px));
    min-height: 360px;
    aspect-ratio: auto;
  }
}

/* Keep the Home reference caption inside the real viewport on narrow screens. */
.cw-home-hero__content {
  box-sizing: border-box;
  width: 100%;
}

.cw-home-hero__content h1 {
  width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 480px) {
  .cw-home-hero__content h1 {
    max-width: min(298px, calc(100vw - 92px));
  }
}

/* Approved hero-slider caption typography. */
.cw-home-hero__content {
  padding-inline: 90px;
}

.cw-home-hero__content h1 {
  max-width: 1400px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(58px, 5vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36);
}

@media (min-width: 1025px) {
  .cw-home-hero__content h1 {
    font-size: clamp(46px, 4vw, 77px);
  }
}

@media (max-width: 767px) {
  .cw-home-hero__content {
    padding-inline: 44px;
  }

  .cw-home-hero__content h1 {
    max-width: 640px;
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.08;
  }
}

@media (max-width: 480px) {
  .cw-home-hero__content h1 {
    max-width: calc(100vw - 76px);
    font-size: clamp(30px, 9vw, 38px);
  }
}

/* Homepage v11: keep all five section headings typographically consistent. */
.cw-home .cw-home-section-title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

@media (max-width: 1439px) {
  .cw-home .cw-home-section-title {
    font-size: 54px;
  }
}

@media (max-width: 1199px) {
  .cw-home .cw-home-section-title {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .cw-home .cw-home-section-title {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .cw-home .cw-home-section-title {
    font-size: 32px;
  }
}

/* Standardise the vertical rhythm between every Home section below the hero. */
.cw-home {
  --cw-home-section-space: clamp(72px, 6vw, 92px);
}

.cw-home > .cw-home-species,
.cw-home > .cw-home-intro,
.cw-home > .cw-home-finishes,
.cw-home > .cw-home-gallery,
.cw-home > .cw-home-programs {
  padding-top: var(--cw-home-section-space);
  padding-bottom: 0;
}

.cw-home > .cw-home-programs {
  padding-bottom: var(--cw-home-section-space);
}

/* Compact desktop: keep the two spaces around the final CTA equal and avoid
   stacking the full section gutter immediately above the footer. */
@media (min-width: 1025px) and (max-width: 1400px) {
  .cw-home > .cw-home-programs {
    padding-bottom: 48px;
  }

  .cw-home-programs__action {
    margin-top: 48px;
  }
}

/* Keep the Finishes heading on the same top rhythm as the full-width sections. */
.cw-home > .cw-home-finishes {
  align-items: start;
}

@media (max-width: 900px) {
  .cw-home {
    --cw-home-section-space: 64px;
  }
}

@media (max-width: 640px) {
  .cw-home {
    --cw-home-section-space: 54px;
  }
}
