@layer components {
  body.home .tc-site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 100;
    background: transparent;
  }

  body.home .tc-site-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgb(4 14 38 / .82), rgb(4 14 38 / .08));
    pointer-events: none;
  }

  .home-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 0 26px;
    overflow: hidden;
    color: #fff;
    background: var(--z-color-primary);
  }

  .home-hero-viewport {
    position: relative;
    min-height: 590px;
    overflow: hidden;
  }

  .home-hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
  }

  .home-hero-slide.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 590px;
    padding: 90px 20px 86px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(90deg, rgb(3 14 34 / .72), rgb(3 14 34 / .08) 92%);
  }

  .hero-eyebrow {
    margin: 0 0 8px;
    color: var(--z-color-accent);
    font-size: .85rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .home-hero-content h1,
  .home-hero-content h2 {
    max-width: 670px;
    color: inherit;
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .hero-text {
    max-width: 590px;
    margin: 10px 0 16px;
    color: rgb(255 255 255 / .9);
    line-height: 1.45;
  }

  .hero-cta {
    display: inline-flex;
    min-height: 50px;
    padding: 11px 20px;
    align-items: center;
    gap: 24px;
    border-radius: 999px;
    background: var(--z-color-accent);
    color: var(--z-color-navy);
    font-weight: 850;
    text-decoration: none;
  }

  .hero-cta:hover {
    color: var(--z-color-navy);
    background: #ffd45c;
    transform: translateY(-1px);
  }

  .home-hero-media {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    background: var(--z-color-primary);
  }

  .home-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(2 10 26 / .18), rgb(2 10 26 / .03) 55%, rgb(2 10 26 / .38));
  }

  .home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 44px;
    height: 54px;
    padding: 0;
    place-items: center;
    color: #fff;
    border: 1px solid rgb(255 255 255 / .45);
    border-radius: 999px;
    background: rgb(4 26 70 / .46);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
  }

  .hero-arrow--prev {
    left: 16px;
  }

  .hero-arrow--next {
    right: 16px;
  }

  .hero-dots {
    position: absolute;
    z-index: 5;
    bottom: 88px;
    left: 50%;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
  }

  .hero-dots button {
    width: 8px;
    min-height: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / .5);
  }

  .hero-dots button.is-active {
    width: 24px;
    border-radius: 999px;
    background: var(--z-color-accent);
  }

  .hero-category-cards {
    position: relative;
    z-index: 8;
    display: flex;
    gap: 18px;
    width: min(calc(100% - 48px), var(--z-container));
    margin: -72px auto 0;
    padding: 0 0 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-category-cards::-webkit-scrollbar {
    display: none;
  }

  .hero-category-card {
    display: flex;
    flex: 0 0 238px;
    min-height: 318px;
    padding: 14px;
    flex-direction: column;
    border-radius: 22px;
    color: var(--z-color-ink);
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform var(--z-transition);
  }

  .hero-category-card:hover {
    transform: translateY(-4px);
  }

  .hero-category-card--blue {
    background: #f0f3ff;
  }

  .hero-category-card--peach {
    background: #fff0e6;
  }

  .hero-category-card--mint {
    background: #edf8ef;
  }

  .hero-category-card__media {
    display: block;
    height: 226px;
    overflow: hidden;
    border-radius: 12px 12px 4px 4px;
    background: rgb(255 255 255 / .45);
  }

  .hero-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
  }

  .hero-category-card__label {
    display: flex;
    min-height: 64px;
    padding: 14px 2px 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-category-card__label strong {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .hero-category-card__label>span {
    font-size: 0;
  }

  .hero-category-card__label>span svg {
    display: block;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 767px) {
  @layer components {
    .home-hero-viewport {
      min-height: 590px;
    }

    .home-hero-media img {
      object-position: 63% center;
    }

    .hero-arrow {
      display: none;
    }

    .hero-dots {
      bottom: 88px;
    }

    .hero-category-cards {
      width: calc(100% - 20px);
      margin-top: -66px;
      gap: 12px;
    }

    .hero-category-card {
      flex-basis: min(64vw, 210px);
      min-height: 270px;
      padding: 12px;
      border-radius: 18px;
    }

    .hero-category-card__media {
      height: 188px;
    }

    .hero-category-card__label {
      min-height: 58px;
      padding-top: 11px;
    }
  }
}

@media (min-width:768px) {
  @layer components {
    .home-hero {
      padding-bottom: 34px;
    }

    .home-hero-viewport {
      min-height: 650px;
    }

    .home-hero-content {
      min-height: 650px;
      padding: 210px 42px 120px max(42px, calc((100vw - var(--z-container))/2));
      background: linear-gradient(90deg, rgb(3 14 34 / .72), rgb(3 14 34 / .25) 48%, rgb(3 14 34 / .04) 78%);
    }

    .hero-dots {
      bottom: 108px;
    }
  }
}

@media (min-width:1100px) {
  @layer components {

    .home-hero-viewport,
    .home-hero-content {
      min-height: 680px;
    }
  }
}

/* Desktop: contained editorial banner, matching the compact reference layout. */
@media (min-width: 900px) {
  @layer components {
    body.home .tc-site-header {
      position: relative;
      background: var(--z-color-primary);
    }

    body.home .tc-site-header::after {
      display: none;
    }

    .home-hero {
      padding: 32px 0 38px;
      background: #fff;
    }

    .home-hero-viewport {
      width: min(calc(100% - 64px), var(--z-container));
      min-height: 460px;
      margin-inline: auto;
      overflow: hidden;
      border-radius: 24px;
      background: #fff5e9;
      box-shadow: 0 12px 34px rgb(15 23 42 / .08);
    }

    .home-hero-slide,
    .home-hero-slide.is-active {
      min-height: 460px;
      background: #fff5e9;
    }

    .home-hero-content {
      width: 52%;
      min-height: 460px;
      padding: 58px clamp(42px, 5vw, 82px);
      justify-content: center;
      background: transparent;
      color: #123c2b;
    }

    .hero-eyebrow {
      margin-bottom: 12px;
      color: #315d48;
      font-size: 13px;
      letter-spacing: 0;
      text-transform: none;
    }

    .home-hero-content h1,
    .home-hero-content h2 {
      max-width: 570px;
      margin: 0;
      color: #123c2b;
      font-size: clamp(38px, 4.2vw, 66px);
      line-height: 1.03;
      letter-spacing: -.045em;
    }

    .hero-text {
      max-width: 510px;
      margin: 18px 0 24px;
      color: #496457;
      font-size: 16px;
      line-height: 1.55;
    }

    .hero-cta {
      min-height: 50px;
      padding: 12px 22px;
      gap: 30px;
      border-radius: 9px;
      background: #123c2b;
      color: #fff;
      font-size: 15px;
    }

    .hero-cta:hover {
      background: #092d1e;
      color: #fff;
    }

    .home-hero-media {
      inset: 0 0 0 auto;
      width: 51%;
      background: #f7eadb;
    }

    .home-hero-media::after {
      background: linear-gradient(90deg, #fff5e9 0, rgb(255 245 233 / .48) 12%, transparent 34%);
    }

    .home-hero-media img {
      object-fit: cover;
      object-position: center;
    }

    .hero-arrow {
      width: 40px;
      height: 40px;
      color: #123c2b;
      border-color: rgb(18 60 43 / .18);
      background: rgb(255 255 255 / .9);
      box-shadow: 0 5px 15px rgb(15 23 42 / .1);
      font-size: 27px;
    }

    .hero-arrow--prev {
      left: max(42px, calc((100vw - var(--z-container)) / 2 + 14px));
    }

    .hero-arrow--next {
      right: max(42px, calc((100vw - var(--z-container)) / 2 + 14px));
    }

    .hero-dots {
      bottom: 24px;
    }

    .hero-dots button {
      width: 9px;
      height: 9px;
      min-height: 9px;
      background: #c9cbd0;
    }

    .hero-dots button.is-active {
      width: 9px;
      background: var(--z-color-primary);
    }
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  @layer components {
    .home-hero-content {
      width: 57%;
      padding-inline: 46px;
    }

    .home-hero-media {
      width: 48%;
    }

    .home-hero-content h1,
    .home-hero-content h2 {
      font-size: clamp(36px, 4.6vw, 52px);
    }
  }
}

/* Shared reference composition: compact banner followed by category cards. */
@media (max-width: 899px) {
  @layer components {
    body.home .tc-site-header {
      position: relative;
      background: var(--z-color-primary);
    }

    body.home .tc-site-header::after {
      display: none;
    }

    .home-hero {
      padding: 3px 0 5px;
      background: #fff;
      color: #123c2b;
    }

    .home-hero-viewport {
      width: calc(100% - 20px);
      min-height: 238px;
      margin-inline: auto;
      overflow: hidden;
      border-radius: 18px;
      background: #fff5e9;
      box-shadow: 0 7px 20px rgb(15 23 42 / .07);
    }

    .home-hero-slide,
    .home-hero-slide.is-active {
      min-height: 238px;
      background: #fff5e9;
    }

    .home-hero-content {
      width: 57%;
      min-height: 238px;
      padding: 24px 8px 30px 20px;
      justify-content: center;
      background: transparent;
      color: #123c2b;
    }

    .hero-eyebrow {
      margin: 0 0 7px;
      color: #315d48;
      font-size: 10px;
      letter-spacing: 0;
      text-transform: none;
    }

    .home-hero-content h1,
    .home-hero-content h2 {
      max-width: 210px;
      margin: 0;
      color: #123c2b;
      font-size: clamp(25px, 7.4vw, 34px);
      line-height: 1.05;
      letter-spacing: -.04em;
    }

    .hero-text {
      display: none;
    }

    .hero-cta {
      min-height: 40px;
      margin-top: 16px;
      padding: 8px 13px;
      gap: 17px;
      border-radius: 8px;
      background: #123c2b;
      color: #fff;
      font-size: 12px;
    }

    .hero-cta:hover {
      color: #fff;
      background: #092d1e;
    }

    .home-hero-media {
      inset: 0 0 0 auto;
      width: 49%;
      background: #f7eadb;
    }

    .home-hero-media::after {
      background: linear-gradient(90deg, #fff5e9 0, rgb(255 245 233 / .45) 14%, transparent 38%);
    }

    .home-hero-media img {
      object-fit: cover;
      object-position: center;
    }

    .hero-arrow {
      display: none;
    }

    .hero-dots {
      bottom: 13px;
      left: 48%;
      gap: 7px;
    }

    .hero-dots button,
    .hero-dots button.is-active {
      width: 8px;
      height: 8px;
      min-height: 8px;
      border-radius: 50%;
      background: #c9cbd0;
    }

    .hero-dots button.is-active {
      background: var(--z-color-primary);
    }

    .hero-categories-heading {
      display: flex;
      width: calc(100% - 28px);
      margin: 9px auto;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .hero-categories-heading h2 {
      margin: 0;
      color: #101828;
      font-size: 14px;
      font-weight: 500 !important;
    }

    .hero-categories-heading a {
      color: var(--z-color-primary) !important;
      font-size: 12px;
      font-weight: 750;
      text-decoration: none;
      white-space: nowrap;
    }

    .hero-category-cards {
      width: calc(100% - 5px);
      margin: 0 auto;
      padding: 0 0 3px;
      gap: 5px;
    }

    .hero-category-card {
      flex: 0 0 calc((100% - 10px) / 3);
      min-height: 100px;
      padding: 8px;
      border-radius: 14px;
      box-shadow: none;
    }

    .hero-category-card__media {
      height: 94px;
      border-radius: 10px 10px 3px 3px;
    }

    .hero-category-card__media img {
      object-fit: cover;
    }

    .hero-category-card__label {
      min-height: 52px;
      padding: 8px 0 0;
      align-items: center;
      gap: 4px;
    }

    .hero-category-card__label strong {
      display: -webkit-box;
      min-width: 0;
      overflow: hidden;
      font-size: 15px;
      line-height: 1.16;
      overflow-wrap: anywhere;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .hero-category-card__label>span {
      display: grid;
      flex: 0 0 26px;
      width: 26px;
      height: 26px;
      place-items: center;
      border-radius: 50%;
      background: var(--z-color-primary);
      color: #fff !important;
      font-size: 0;
    }

    .hero-category-card__label>span svg {
      width: 14px;
      height: 14px;
    }
  }
}

@media (min-width: 900px) {
  @layer components {
    .hero-categories-heading {
      display: flex;
      width: min(calc(100% - 64px), var(--z-container));
      margin: 30px auto 18px;
      align-items: center;
      justify-content: space-between;
    }

    .hero-categories-heading h2 {
      margin: 0;
      color: #101828;
      font-size: 20px;
    }

    .hero-categories-heading a {
      color: var(--z-color-primary);
      font-size: 14px;
      font-weight: 750;
      text-decoration: none;
    }

    .hero-category-cards {
      margin-top: 0;
    }
  }
}

/* Final compact slider proportions shared by mobile and desktop. */
@layer components {
  .home-hero .hero-arrow {
    display: none !important;
  }
}

@media (max-width: 899px) {
  @layer components {

    .home-hero-viewport,
    .home-hero-slide,
    .home-hero-slide.is-active,
    .home-hero-content {
      height: 286px;
      min-height: 286px;
    }

    .home-hero-content {
      width: 64%;
      padding: 24px 8px 34px 24px;
    }

    .home-hero-content h1,
    .home-hero-content h2 {
      width: 100%;
      max-width: none;
      font-size: clamp(25px, 6.3vw, 31px);
      line-height: 1.03;
    }

    .home-hero-media {
      width: 54%;
    }

    .hero-cta {
      margin-top: 14px;
    }

    .hero-dots {
      bottom: 12px;
    }
  }
}

@media (min-width: 900px) {
  @layer components {
    .home-hero-viewport {
      width: calc(100% - clamp(80px, 8vw, 160px));
    }

    .hero-categories-heading,
    .hero-category-cards {
      width: calc(100% - clamp(80px, 8vw, 160px));
    }

    .home-hero-viewport,
    .home-hero-slide,
    .home-hero-slide.is-active,
    .home-hero-content {
      height: 390px;
      min-height: 390px;
    }

    .home-hero-content {
      width: 56%;
      padding: 42px clamp(38px, 4.5vw, 72px);
    }

    .home-hero-content h1,
    .home-hero-content h2 {
      width: 100%;
      max-width: none;
      font-size: clamp(38px, 3.45vw, 54px);
      line-height: 1.02;
    }

    .hero-text {
      margin: 13px 0 18px;
      font-size: 15px;
      line-height: 1.4;
    }

    .home-hero-media {
      width: 52%;
    }

    .hero-dots {
      bottom: 18px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  @layer components {
    .home-hero-slide {
      transition: none;
    }
  }
}