/* Homepage — What's New hero, About, Featured Music/Film */

/* One section per viewport */
html:has(body.home-page) {
  scroll-snap-type: y mandatory;
  /*
   * Let the browser's wheel/touch momentum do the moving. Combining smooth
   * scrolling with snapping adds a second easing pass to hash navigation.
   */
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.home-page) {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

body.home-page {
  --nav-float-offset: 0px;
  --home-snap-h: 100vh;
  --home-snap-h: 100dvh;
}

body.home-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  /* Match shared .navbar inset (8px + site gutter) so pills land in the same spot */
  padding: 8px var(--site-gutter);
  margin: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.12) 65%, transparent 100%);
  pointer-events: none;
}

body.home-page .navbar .navitems {
  pointer-events: auto;
}

/*
 * Homepage nav: same glass recipe as other pages. Accent channels are driven
 * by scroll progress in JS (clear at top → teal as the hero scrolls away).
 * Glass tokens live here so they re-resolve as accents change.
 */
body.home-page .navbar {
  /* Untinted resting state — JS lerps toward teal while scrolling */
  --accent-r: 220;
  --accent-g: 224;
  --accent-b: 222;
  --accent-deep-r: 16;
  --accent-deep-g: 18;
  --accent-deep-b: 18;
  --accent-glow-r: 255;
  --accent-glow-g: 255;
  --accent-glow-b: 255;
  --accent-bright-r: 255;
  --accent-bright-g: 255;
  --accent-bright-b: 255;
  --navicon-tint-r: 220;
  --navicon-tint-g: 224;
  --navicon-tint-b: 222;
  --glass-bg: linear-gradient(
    180deg,
    rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.16) 0%,
    rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.07) 40%,
    rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.10) 70%,
    rgba(0, 0, 0, 0.14) 100%
  );
  --glass-border: 1px solid rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.28);
  --glass-shadow:
    0 10px 40px rgba(0, 0, 0, 0.38),
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 0 22px rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.10),
    inset 0 1.5px 0 rgb(var(--accent-glow-r) var(--accent-glow-g) var(--accent-glow-b) / 0.42),
    inset 0 -2px 0 rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.28),
    inset 1.5px 0 0 rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.18),
    inset -1.5px 0 0 rgba(0, 0, 0, 0.16);
  --glass-shadow-lift:
    0 14px 44px rgba(0, 0, 0, 0.42),
    0 4px 0 rgba(0, 0, 0, 0.18),
    0 0 28px rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.14),
    inset 0 2px 0 rgb(var(--accent-glow-r) var(--accent-glow-g) var(--accent-glow-b) / 0.52),
    inset 0 -1px 0 rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.18),
    inset 1.5px 0 0 rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.22),
    inset -1.5px 0 0 rgba(0, 0, 0, 0.12);
  --glass-shadow-pressed:
    0 2px 12px rgba(0, 0, 0, 0.28),
    0 0 8px rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.06),
    inset 0 3px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.12),
    inset 2px 0 4px rgba(0, 0, 0, 0.2),
    inset -2px 0 4px rgba(0, 0, 0, 0.2);
}

/* Hero CTA + carousel arrows stay untinted (no scroll fade) */
body.home-page .whats-new-cta,
body.home-page .whats-new-nav-btn {
  --accent-r: 220;
  --accent-g: 224;
  --accent-b: 222;
  --accent-deep-r: 16;
  --accent-deep-g: 18;
  --accent-deep-b: 18;
  --accent-glow-r: 255;
  --accent-glow-g: 255;
  --accent-glow-b: 255;
  --accent-bright-r: 255;
  --accent-bright-g: 255;
  --accent-bright-b: 255;
  --glass-bg: linear-gradient(
    180deg,
    rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.16) 0%,
    rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.07) 40%,
    rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.10) 70%,
    rgba(0, 0, 0, 0.14) 100%
  );
  --glass-border: 1px solid rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.28);
  --glass-shadow:
    0 10px 40px rgba(0, 0, 0, 0.38),
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 0 22px rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.10),
    inset 0 1.5px 0 rgb(var(--accent-glow-r) var(--accent-glow-g) var(--accent-glow-b) / 0.42),
    inset 0 -2px 0 rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.28),
    inset 1.5px 0 0 rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.18),
    inset -1.5px 0 0 rgba(0, 0, 0, 0.16);
  --glass-shadow-lift:
    0 14px 44px rgba(0, 0, 0, 0.42),
    0 4px 0 rgba(0, 0, 0, 0.18),
    0 0 28px rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.14),
    inset 0 2px 0 rgb(var(--accent-glow-r) var(--accent-glow-g) var(--accent-glow-b) / 0.52),
    inset 0 -1px 0 rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.18),
    inset 1.5px 0 0 rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.22),
    inset -1.5px 0 0 rgba(0, 0, 0, 0.12);
  --glass-shadow-pressed:
    0 2px 12px rgba(0, 0, 0, 0.28),
    0 0 8px rgb(var(--accent-deep-r) var(--accent-deep-g) var(--accent-deep-b) / 0.06),
    inset 0 3px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgb(var(--accent-r) var(--accent-g) var(--accent-b) / 0.12),
    inset 2px 0 4px rgba(0, 0, 0, 0.2),
    inset -2px 0 4px rgba(0, 0, 0, 0.2);
}

body.home-page .header-chip {
  display: none !important;
}

.whats-new-hero {
  position: relative;
  height: var(--home-snap-h);
  min-height: var(--home-snap-h);
  max-height: var(--home-snap-h);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--main-text);
  isolation: isolate;
  margin-bottom: 0;
  scroll-snap-align: start;
  /* Fast wheel gestures can pass a panel instead of being trapped at each one. */
  scroll-snap-stop: normal;
  box-sizing: border-box;
}

/* Hero media fades to transparent into the page atmosphere */
.whats-new-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.85) 58%,
    rgba(0, 0, 0, 0.45) 74%,
    rgba(0, 0, 0, 0.15) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.85) 58%,
    rgba(0, 0, 0, 0.45) 74%,
    rgba(0, 0, 0, 0.15) 88%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.whats-new-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.whats-new-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.whats-new-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.whats-new-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 30%, transparent 55%, rgba(0, 0, 0, 0.2) 78%, transparent 100%);
  pointer-events: none;
}

.whats-new-content {
  position: relative;
  z-index: 3;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 var(--site-gutter) clamp(100px, 14vh, 160px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.whats-new-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.whats-new-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.whats-new-blurb {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(242, 244, 243, 0.88);
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Slide copy: fade + lift out, then in */
.whats-new-title,
.whats-new-blurb,
.whats-new-cta {
  will-change: opacity, transform;
}

/* First paint — same enter as slide swaps; brand included once via .is-load in HTML */
.whats-new-content.is-load .whats-new-brand {
  will-change: opacity, transform;
  animation: whats-new-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.whats-new-content.is-load .whats-new-title {
  animation: whats-new-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.whats-new-content.is-load .whats-new-blurb {
  animation: whats-new-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.whats-new-content.is-load .whats-new-cta {
  animation: whats-new-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.whats-new-content.is-leaving .whats-new-title,
.whats-new-content.is-leaving .whats-new-blurb,
.whats-new-content.is-leaving .whats-new-cta {
  animation: whats-new-copy-out 0.34s cubic-bezier(0.33, 0, 0.14, 1) forwards;
}

.whats-new-content.is-leaving .whats-new-blurb {
  animation-delay: 0.04s;
}

.whats-new-content.is-leaving .whats-new-cta {
  animation-delay: 0.08s;
}

.whats-new-content.is-entering .whats-new-title,
.whats-new-content.is-entering .whats-new-blurb,
.whats-new-content.is-entering .whats-new-cta {
  animation: whats-new-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.whats-new-content.is-entering .whats-new-blurb {
  animation-delay: 0.06s;
}

.whats-new-content.is-entering .whats-new-cta {
  animation-delay: 0.12s;
}

@keyframes whats-new-copy-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes whats-new-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whats-new-title,
  .whats-new-blurb,
  .whats-new-cta,
  .whats-new-content.is-load .whats-new-brand {
    will-change: auto;
  }

  .whats-new-content.is-load .whats-new-brand,
  .whats-new-content.is-load .whats-new-title,
  .whats-new-content.is-load .whats-new-blurb,
  .whats-new-content.is-load .whats-new-cta,
  .whats-new-content.is-leaving .whats-new-title,
  .whats-new-content.is-leaving .whats-new-blurb,
  .whats-new-content.is-leaving .whats-new-cta,
  .whats-new-content.is-entering .whats-new-title,
  .whats-new-content.is-entering .whats-new-blurb,
  .whats-new-content.is-entering .whats-new-cta {
    animation: none;
  }
}

/* Match contact CTAs; accents neutralized above keep it untinted on the hero */
.whats-new-cta {
  width: fit-content;
  margin-top: 0.35rem;
  flex: none;
}

.whats-new-controls {
  position: absolute;
  z-index: 3;
  left: var(--site-gutter);
  right: var(--site-gutter);
  bottom: clamp(28px, 5vh, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.whats-new-controls > * {
  pointer-events: auto;
}

.whats-new-nav-btn {
  overflow: hidden;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  color: var(--main-text);
  cursor: pointer;
  padding: 0;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.whats-new-nav-btn svg {
  width: 18px;
  height: 18px;
}

.whats-new-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.whats-new-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.22);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.whats-new-dots .dot.active {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.2);
}

.home-section {
  width: min(var(--site-max-width), 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) var(--site-gutter);
  height: var(--home-snap-h);
  min-height: var(--home-snap-h);
  max-height: var(--home-snap-h);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.whats-new-hero + .home-section {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

/* Last snap: featured film + footer as one panel */
.home-snap-end {
  height: var(--home-snap-h);
  min-height: var(--home-snap-h);
  max-height: var(--home-snap-h);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.home-snap-end .home-section {
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  overflow: visible;
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.home-snap-end footer {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 0.25rem;
}

.home-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--accent-glow-r) var(--accent-glow-g) var(--accent-glow-b) / 0.75);
  margin: 0 0 0.75rem;
}

.home-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  line-height: 1.05;
}

.home-section-copy {
  max-width: 40rem;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(232, 236, 234, 0.78);
}

.about-section {
  display: grid;
  gap: 2rem;
  align-content: center;
}

.about-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.about-carousel-track {
  position: absolute;
  inset: 0;
}

.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-slide.active {
  opacity: 1;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-carousel-btn {
  position: absolute;
  top: 50%;
  /* Use translate (not transform) so glass-press tilt/press doesn't drop centering */
  translate: 0 -50%;
  z-index: 2;
  overflow: hidden;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  color: var(--main-text);
  cursor: pointer;
  padding: 0;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.about-carousel-btn.prev { left: 12px; }
.about-carousel-btn.next { right: 12px; }

.about-carousel-btn svg {
  width: 18px;
  height: 18px;
}

.featured-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 820px) {
  .featured-split {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }
  .featured-split.is-flip .featured-media { order: 2; }
  .featured-split.is-flip .featured-copy { order: 1; }
}

.featured-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  aspect-ratio: 1;
  max-width: 420px;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-media.is-wide {
  aspect-ratio: 16 / 9;
  max-width: none;
}

.featured-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.featured-copy p {
  margin: 0 0 1.25rem;
  color: rgba(232, 236, 234, 0.78);
}

.featured-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* Match discography coverflow stream icons: bare circular glyphs, no glass chrome */
.featured-stream {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.featured-stream a {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  color: var(--main-text);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    transform var(--glass-press-duration, 0.18s) var(--glass-press-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow var(--glass-press-duration, 0.18s) var(--glass-press-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.2s ease;
}

.featured-stream a:hover,
.featured-stream a.is-proximity-hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.featured-stream a:active,
.featured-stream a.is-pressed {
  box-shadow: none;
}

.featured-stream img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.home-reveal {
  /* Visibility gated on the section; children carry the motion (hero-like) */
  opacity: 0;
}

.home-reveal > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  will-change: opacity, transform;
}

.home-reveal.is-in {
  opacity: 1;
}

.home-reveal.is-in > * {
  animation: home-reveal-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-reveal.is-in > *:nth-child(1) { animation-delay: 0s; }
.home-reveal.is-in > *:nth-child(2) { animation-delay: 0.07s; }
.home-reveal.is-in > *:nth-child(3) { animation-delay: 0.14s; }
.home-reveal.is-in > *:nth-child(4) { animation-delay: 0.21s; }
.home-reveal.is-in > *:nth-child(5) { animation-delay: 0.28s; }

@keyframes home-reveal-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal,
  .home-reveal > * {
    opacity: 1;
    transform: none;
    will-change: auto;
    animation: none;
  }
}

@media only screen and (max-width: 1030px) {
  body.home-page {
    /* Full viewport snap; panel padding reserves space under the floating nav */
    --home-snap-h: 100vh;
    --home-snap-h: 100dvh;
    --home-snap-pad-bottom: var(--bottom-nav-offset);
    /* Avoid double bottom offset — panels already pad for the nav */
    padding-bottom: 0;
  }

  body.home-page .navbar {
    display: none;
  }

  .whats-new-hero,
  .home-section,
  .home-snap-end {
    padding-bottom: var(--home-snap-pad-bottom);
  }

  .whats-new-content {
    /* Parent already reserves nav space; leave room for carousel controls only */
    padding-bottom: 56px;
    gap: 0.7rem;
  }

  .whats-new-brand {
    font-size: clamp(2.8rem, 13vw, 5.5rem);
  }

  .whats-new-title {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }

  .whats-new-blurb {
    font-size: 1rem;
    line-height: 1.4;
  }

  .whats-new-cta {
    margin-top: 0.25rem;
  }

  .whats-new-controls {
    bottom: calc(var(--home-snap-pad-bottom) + 10px);
  }

  .home-section {
    padding-top: 1.5rem;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
    justify-content: safe center;
    gap: 0.35rem;
  }

  .home-section-label {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
  }

  .home-section-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    margin-bottom: 0.85rem;
  }

  .home-section-copy {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .about-section {
    gap: 1.1rem;
    align-content: safe center;
    grid-template-rows: none;
    width: 100%;
  }

  .about-carousel {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    min-height: 0;
    margin-inline: 0;
  }

  .about-carousel-btn {
    width: 36px;
    height: 36px;
  }

  .about-carousel-btn.prev { left: 8px; }
  .about-carousel-btn.next { right: 8px; }

  .featured-split {
    gap: 1.15rem;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    align-content: center;
  }

  .featured-media {
    width: min(280px, 72vw);
    max-width: none;
    margin-inline: auto;
  }

  .featured-media.is-wide {
    width: 100%;
    max-width: none;
    max-height: none;
    height: clamp(180px, 36vh, 320px);
    aspect-ratio: auto;
    margin-inline: 0;
  }

  .featured-copy h3 {
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
    margin-bottom: 0.55rem;
  }

  .featured-copy p {
    font-size: 0.98rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  .home-snap-end .featured-copy p {
    -webkit-line-clamp: 3;
  }

  .featured-cta-row {
    gap: 0.55rem;
  }

  .home-snap-end {
    justify-content: stretch;
    gap: 0.5rem;
  }

  .home-snap-end .home-section {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
    justify-content: center;
    overflow: hidden;
  }

  .home-snap-end footer {
    padding-top: 0.15rem;
    padding-bottom: 0.4rem;
  }

  .home-snap-end .footer-inner {
    gap: 0.4rem;
  }

  .home-snap-end .footer-brand {
    font-size: 0.88rem;
  }

  .home-snap-end .footer-links {
    gap: 1rem;
    font-size: 0.8rem;
  }
}

/* Short phones: keep content readable without overflow */
@media only screen and (max-width: 1030px) and (max-height: 700px) {
  .home-section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .home-section-copy {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .about-section {
    gap: 0.75rem;
  }

  .featured-media {
    width: min(180px, 48vw);
  }

  .featured-media.is-wide {
    height: min(26vh, 190px);
  }

  .featured-copy p {
    -webkit-line-clamp: 3;
    margin-bottom: 0.65rem;
  }

  .home-snap-end .featured-copy p {
    -webkit-line-clamp: 2;
  }

  .whats-new-brand {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }

  .whats-new-content {
    padding-bottom: 48px;
    gap: 0.5rem;
  }
}
