/* Keep the real window as the only scrolling ancestor of native sticky stages. */
html.cn-home-scroll { scroll-behavior: auto !important; }
html.cn-home-scroll.cn-menu-open,
html.cn-home-scroll.cn-menu-open body { overflow: hidden !important; }

/* Give the hero and statement consecutive full-screen stages with no overlap. */
.front-page .cn-hero {
  height: 100svh;
  margin-block: 0;
  padding-block: 0;
}
.front-page .cn-hero-top { font-weight: 500; }
.front-page .cn-reveal {
  min-height: 150svh;
  margin-block: 0;
  padding-block: 0;
  overflow: clip;
}
.front-page .cn-reveal-text {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
}
.front-page .cn-reveal-lines {
  width: min(100%, 1500px);
  text-align: center;
}
.front-page .cn-reveal-line { margin-left: 0; }

.front-page .accolades-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 32px;
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.front-page .accolades-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  min-height: 224px;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

/* Give every mark the same centered space without stretching its proportions. */
.front-page .accolades-img {
  display: grid;
  place-items: center;
  flex: 0 0 100px;
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.front-page .accolades-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* The Meta PNG's visible mark occupies only 304px of its 500px canvas. */
.front-page .accolades-img--meta img {
  transform: scale(1.64);
}

.front-page .accolades-text {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

.front-page .accolades-text h2 {
  margin: 0 0 16px;
  line-height: 1.2;
}

.front-page .accolades-text p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .front-page .accolades-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .front-page .accolades-card {
    gap: 16px;
    padding: 24px;
  }

  .front-page .accolades-img {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
  }
}

.front-page .testimonials-progress,
.front-page .testimonials-count,
.front-page .testimonials-playback { display: none; }

@media (max-width: 768px) {
  .front-page .testimonials-track { position: relative; margin: 0; }
  .front-page .testimonials-progress {
    display: block;
    height: 2px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(248, 244, 240, .18);
  }
  .front-page .testimonials-progress__fill {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #f29020, #ffc27b);
  }
  .front-page .testimonials-section .slider-arrows { align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
  .front-page .testimonials-count { display: block; margin-right: auto; color: rgba(248, 244, 240, .6); font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
  .front-page .testimonials-playback,
  .front-page .testimonials-section .arrow-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(248, 244, 240, .2);
    border-radius: 50%;
    background: rgba(248, 244, 240, .04);
    color: #f8f4f0;
    font: 26px/1 "Inter", "DM Sans", sans-serif;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }
  .front-page .testimonials-playback { font-size: 14px; }
  .front-page .testimonials-playback:hover,
  .front-page .testimonials-section .arrow-btn:hover { background: rgba(242, 144, 32, .12); border-color: #f29020; }
  .front-page .testimonials-playback:focus-visible,
  .front-page .testimonials-section .arrow-btn:focus-visible { outline: 2px solid #f29020; outline-offset: 4px; }
}

/* Only enhanced offscreen content starts hidden; each reveal runs once. */
.front-page .cn-home-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1),
              transform .55s cubic-bezier(.22, 1, .36, 1);
}
.front-page .cn-home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  /* The fixed hero logo uses -1; keep the glow behind it on phones. */
  body.home .cn-glow-layer { z-index: -2; }
  /* Address-bar motion must not move the hero or change the document height. */
  .front-page .cn-hero { height: 100svh; }
  .front-page .cn-reveal { min-height: 170svh; }
  .front-page .cn-hero-top { top: calc(50svh - 53px) !important; }
  .front-page #cn-hero-logo-wrap { top: calc(50svh + 18px); }
  .front-page .cn-reveal-lines.reveal-mobile { text-align: center; }
  .front-page .cn-morph-grid { padding-block: 5svh; }
  .front-page #cn-morph-video { min-height: 0; }
}

@media (max-width: 460px) {
  body.home .cn-bottombar { width: calc(100% - 24px); max-width: none; box-sizing: border-box; padding: 10px 12px; }
  body.home .cn-bottombar-containers { flex: 1; min-width: 0; }
  body.home .cn-bb-text-container { margin-left: 6px; }
  body.home .cn-bb-text { font-size: clamp(11px, 3.3vw, 14px); }
  body.home .cn-bb-chip { flex-shrink: 0; margin-left: 8px; gap: 6px; padding: 8px 10px; }
  body.home .cn-bb-chip-text { white-space: nowrap; font-size: 12px; }
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
  /* The radial gradients already have soft edges. Avoid two full-screen
     filtered backing surfaces during native mobile compositing. */
  body.home .cn-glow { filter: none; will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .front-page .cn-home-reveal { opacity: 1; transform: none; transition: none; }
  .front-page .cn-reveal-line { background-position-x: 0%; }
  .front-page .a-section-marquee-track,
  .front-page .wwd-marquee-track { animation: none; }
}

@media (prefers-reduced-motion: reduce), (min-width: 769px) and (hover: none), (min-width: 769px) and (pointer: coarse) {
  .front-page #horizontal { opacity: 1 !important; visibility: visible !important; }
  .front-page #horizontal .horizontal__content {
    width: min(100%, 1100px);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
    box-sizing: border-box;
  }
  .front-page #horizontal .horizontal__item { width: 100%; cursor: auto; }
  .front-page #horizontal .card_1 .horizontal__item { height: auto; }
  .front-page #horizontal .cn-feature-cards { display: contents; }
  .front-page #journey-morph-section, .front-page #cn-morph-video { height: auto; min-height: 0; }
  .front-page .cn-morph-grid { grid-template-columns: 1fr; padding: 40px 5vw; }
  .front-page .cn-morph-svg-wrapper, .front-page .journey-morph-wrapper { display: none; }
  .front-page .cn-morph-video-mobile, .front-page .journey-video-mobile { display: block !important; }
  .front-page .cn-morph-video-mobile { max-width: 700px; margin-inline: auto; }
  .front-page .journey-pin-container { height: auto; grid-template-columns: 1fr; padding: 40px 5vw; }
  .front-page .journey-intro-text { grid-column: 1 / -1; }
}

.front-page .wwd-marquee {
  margin-bottom: 100px;
}

@media (max-width: 768px){
  .front-page .wwd-marquee {
    margin-bottom: 50px;
  }
}