.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  color: #06101a;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.home {
  background:
    radial-gradient(circle at 8% 34%, rgba(0, 168, 255, .08), transparent 28rem),
    var(--night);
}

.home-header {
  position: absolute;
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.home-header.is-scrolled {
  position: fixed;
  background: rgba(5, 10, 16, .88);
  backdrop-filter: blur(18px);
}

.home-nav { gap: 24px; }
.home-nav a { white-space: nowrap; }

.nav-toggle { display: none; }

.home-hero {
  position: relative;
  min-height: max(780px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: #02060a;
}

.home-hero__slides,
.home-hero__slide,
.home-hero__slide picture,
.home-hero__slide img,
.home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__slide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 1000ms cubic-bezier(.2, .7, .2, 1), visibility 700ms;
}

.home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.home-hero__slide img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-hero__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 6, 10, .2) 0%, transparent 36%, rgba(2, 6, 10, .18) 52%, rgba(2, 6, 10, .96) 90%),
    linear-gradient(90deg, rgba(2, 6, 10, .38), transparent 44%);
  pointer-events: none;
}

.home-hero__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(42px, 7vw, 96px);
  left: 0;
  animation: hero-in 700ms 120ms both cubic-bezier(.2, .7, .2, 1);
}

.home-hero__content h1 {
  max-width: 590px;
  margin-bottom: 14px;
  font-size: clamp(2.6rem, 4.1vw, 4.35rem);
}

.home-hero__content > p:not(.hero-kicker, .microcopy) {
  max-width: 530px;
  margin-bottom: 25px;
  color: #ced8e4;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
}

.hero-kicker {
  margin-bottom: 13px;
  color: var(--accent-bright);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.carousel-controls {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 10, 16, .55);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 160ms ease, transform 160ms ease;
}

.carousel-controls > button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }

.carousel-dots { display: flex; gap: 7px; }
.carousel-dots button {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
}
.carousel-dots button.is-active { background: var(--accent-bright); }

.home-intro { padding-bottom: clamp(70px, 8vw, 110px); }
.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: end;
}
.home-intro .section__intro { margin-bottom: 0; }
.home-intro__copy { padding-bottom: 8px; }
.home-intro__copy p { color: var(--muted); font-size: 1.1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: .88rem;
  font-weight: 700;
  text-decoration-color: rgba(34, 214, 238, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.text-link span { color: var(--accent-bright); transition: transform 160ms ease; }
.text-link:hover span { transform: translate(2px, -2px); }

.chapters { border-top: 1px solid var(--line); }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  min-height: 670px;
  border-bottom: 1px solid var(--line);
}
.chapter--reverse { grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); }
.chapter--reverse .chapter__media { order: 2; }
.chapter__media {
  position: relative;
  display: grid;
  min-height: 610px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle, rgba(0, 168, 255, .2), transparent 58%),
    #080e16;
}
.chapter__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  content: "";
  pointer-events: none;
}
.chapter__media img {
  width: min(88%, 980px);
  max-height: 76%;
  border-radius: clamp(16px, 2.2vw, 30px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, .55);
  object-fit: contain;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}
.chapter:hover .chapter__media img { transform: scale(1.018); }
.chapter--portrait .chapter__media img { width: min(40%, 410px); max-height: 82%; }

.screen-collage {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(94%, 1040px);
  height: clamp(320px, 42vw, 560px);
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.screen-collage img {
  width: auto;
  max-width: none;
  max-height: none;
  border-radius: clamp(12px, 1.7vw, 24px);
  object-fit: contain;
}

.screen-collage--dashboard .screen-collage__wide {
  width: 82%;
  margin-right: 11%;
}

.screen-collage--dashboard .screen-collage__phone {
  position: absolute;
  z-index: 2;
  right: 1%;
  height: 92%;
}

.screen-collage--audio .screen-collage__phone,
.screen-collage--places .screen-collage__phone { height: 82%; }
.screen-collage--audio .screen-collage__phone:nth-child(2),
.screen-collage--places .screen-collage__phone:nth-child(2) { height: 92%; }

.screen-collage--shortcuts .screen-collage__wide {
  width: 82%;
  margin-left: 14%;
}

.screen-collage--shortcuts .screen-collage__phone {
  position: absolute;
  z-index: 2;
  left: 1%;
  height: 92%;
}

.screen-collage--themes .screen-collage__phone { height: 92%; }
.chapter__copy {
  display: flex;
  max-width: 650px;
  flex-direction: column;
  align-self: center;
  padding: clamp(64px, 8vw, 128px);
}
.chapter__copy h2 { font-size: clamp(2.25rem, 4.1vw, 4.4rem); }
.chapter__copy p { color: var(--muted); font-size: 1.08rem; }
.chapter__copy .text-link { margin-top: 12px; align-self: flex-start; }
.chapter__number {
  margin-bottom: 28px;
  color: var(--accent-bright);
  font-size: .75rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.current-ui { overflow: hidden; }
.gallery-rail {
  display: flex;
  gap: 18px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2)) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(34, 214, 238, .5) transparent;
}
.gallery-shot {
  display: flex;
  width: min(74vw, 840px);
  min-width: min(74vw, 840px);
  margin: 0;
  flex-direction: column;
  scroll-snap-align: center;
}
.gallery-shot--portrait { width: min(35vw, 420px); min-width: min(35vw, 420px); }
.gallery-shot img {
  width: 100%;
  aspect-ratio: 1.78 / 1;
  border-radius: 20px;
  background: #0a111a;
  object-fit: contain;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .36);
}
.gallery-shot--portrait img { aspect-ratio: 9 / 16; }
.gallery-shot figcaption { padding: 13px 4px 0; color: var(--muted); font-size: .78rem; }

.audiences { padding: clamp(90px, 12vw, 160px) 0; }
.audience-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.audience-link {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: white;
  text-decoration: none;
}
.audience-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 10, .96), transparent 63%);
}
.audience-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.audience-link:hover img { transform: scale(1.025); }
.audience-link > span {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 24px;
}
.audience-link small { grid-column: 1 / -1; color: var(--accent-bright); font-size: .73rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.audience-link strong { max-width: 520px; font-size: clamp(1.5rem, 2.4vw, 2.5rem); line-height: 1.02; letter-spacing: -.04em; }
.audience-link b { color: var(--accent-bright); font-size: 1.4rem; font-weight: 400; transition: transform 160ms ease; }
.audience-link:hover b { transform: translate(3px, -3px); }

.video-story__grid { display: grid; grid-template-columns: minmax(300px, .68fr) minmax(0, 1.32fr); gap: clamp(44px, 8vw, 110px); align-items: center; }
.video-story .section__intro { margin-bottom: 0; }
.video-preview { position: relative; display: block; overflow: hidden; border-radius: 24px; color: white; }
.video-preview::after { position: absolute; inset: 0; content: ""; background: rgba(2, 6, 10, .2); transition: background 180ms ease; }
.video-preview:hover::after { background: rgba(2, 6, 10, .08); }
.video-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.video-preview:hover img { transform: scale(1.02); }
.play-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(5, 10, 16, .66);
  place-items: center;
  padding-left: 4px;
  backdrop-filter: blur(14px);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease;
}
.video-preview:hover .play-button { background: var(--accent); color: #00101a; transform: translate(-50%, -50%) scale(1.06); }

.proof { padding: clamp(90px, 12vw, 160px) 0; }
.proof__heading { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; align-items: start; }
.proof__heading .eyebrow { margin-top: 10px; }
.proof__heading h2 { max-width: 820px; }
.quote-list { margin-top: 50px; border-top: 1px solid var(--line); }
.quote-list blockquote {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, .5fr);
  gap: 42px;
  margin: 0;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.quote-list p { max-width: 840px; margin: 0; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.35; letter-spacing: -.025em; }
.quote-list cite { align-self: end; color: var(--muted); font-size: .78rem; font-style: normal; text-align: right; }

.home-faq a { color: white; text-underline-offset: 4px; }
.faq-help { margin-top: 28px; color: var(--muted); font-size: .88rem; }

.popular-posts { padding: clamp(90px, 12vw, 160px) 0; }
.post-list { border-top: 1px solid var(--line); }
.post-link {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 170px;
  gap: 26px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: white;
  text-decoration: none;
}
.post-link img { width: 150px; height: 130px; object-fit: cover; filter: saturate(.82); transition: filter 180ms ease, transform 180ms ease; }
.post-link:hover img { filter: saturate(1); transform: scale(1.02); }
.post-link span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 30px; }
.post-link small { grid-column: 1 / -1; align-self: end; color: var(--accent-bright); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.post-link strong { align-self: start; font-size: clamp(1.4rem, 2.5vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; }
.post-link em { color: var(--muted); font-size: .8rem; font-style: normal; }
.posts-action { margin-top: 38px; }

@media (max-width: 1080px) {
  .home-nav { gap: 16px; }
  .home-nav a { font-size: .8rem; }
  .chapter__copy { padding: clamp(54px, 6vw, 82px); }
}

@media (max-width: 900px) {
  .home-header,
  .home-header.is-scrolled {
    position: absolute;
    background: rgba(5, 10, 16, .9);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .home-header.is-scrolled { position: fixed; }
  body.nav-open .home-header { position: fixed; background: #050a10; }
  .nav-toggle {
    position: relative;
    z-index: 12;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px 9px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(5, 10, 16, .58);
    cursor: pointer;
    place-content: center;
    gap: 6px;
    backdrop-filter: blur(12px);
  }
  .nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; background: white; transition: transform 180ms ease; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .home-nav {
    position: fixed;
    z-index: 11;
    inset: 0;
    display: flex;
    width: 100vw;
    min-height: 100svh;
    height: 100dvh;
    padding: 110px 24px 40px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #050a10;
    opacity: 0;
    overscroll-behavior: contain;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .home-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .home-nav > a:not(.button), .home-nav .button {
    display: flex;
    min-height: 58px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: white;
    font-size: 1.1rem;
  }
  .home-nav .button { width: 100%; margin-top: 24px; justify-content: center; border-bottom: 0; color: #00101a; }
  .home-nav .app-store-link {
    min-height: 0;
    margin-top: 24px;
    align-self: flex-start;
    border-bottom: 0;
  }
  .home-nav .app-store-link img { width: 168px; }
  body.nav-open { overflow: hidden; }

  .home-hero { min-height: 900px; }
  .home-hero__slide img { object-fit: cover; object-position: center; }
  .home-hero__shade { background: linear-gradient(180deg, rgba(2, 6, 10, .08), rgba(2, 6, 10, .28) 43%, rgba(2, 6, 10, .98) 76%); }
  .home-hero__content { bottom: 48px; }
  .home-hero__content h1 { max-width: 560px; font-size: clamp(3rem, 8.5vw, 4.4rem); }
  .carousel-controls { right: 24px; bottom: 48px; }
  .home-hero__content .hero__actions, .home-hero__content .microcopy { max-width: calc(100% - 180px); }

  .home-intro__grid { grid-template-columns: 1fr; gap: 38px; }
  .chapter, .chapter--reverse { grid-template-columns: 1fr; min-height: 0; }
  .chapter--reverse .chapter__media { order: 0; }
  .chapter__media { min-height: 58vw; }
  .screen-collage { height: clamp(320px, 48vw, 460px); }
  .chapter__copy { max-width: 760px; padding: 70px 24px 90px; }
  .chapter--portrait .chapter__media { min-height: 760px; }
  .chapter--portrait .chapter__media img { width: min(42%, 360px); }
  .audience-links { grid-template-columns: 1fr; }
  .audience-link { min-height: 520px; }
  .video-story__grid { grid-template-columns: 1fr; }
  .proof__heading { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 620px) {
  .home-hero { min-height: 820px; }
  .home-hero__slide img { height: 41%; object-fit: cover; object-position: center 58%; background: #02060a; }
  .home-hero__shade { background: linear-gradient(180deg, rgba(2, 6, 10, .2) 0%, transparent 23%, rgba(2, 6, 10, .96) 44%, #02060a 100%); }
  .home-hero__content { bottom: 100px; }
  .home-hero__content h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .home-hero__content > p:not(.hero-kicker, .microcopy) { font-size: 1rem; }
  .home-hero__content .hero__actions, .home-hero__content .microcopy { max-width: none; }
  .carousel-controls { right: auto; bottom: 30px; left: 16px; }
  .home-hero__content .button { width: 100%; }
  .home-hero__content .app-store-link { width: 100%; justify-content: flex-start; }
  .home-hero__content .app-store-link img { width: 190px; }
  .carousel-controls { gap: 6px; }
  .carousel-controls > button { width: 38px; height: 38px; }
  .carousel-dots { gap: 5px; }
  .carousel-dots button { width: 18px; }

  .chapter__media { min-height: 420px; }
  .chapter__media img { width: 92%; max-height: 82%; border-radius: 12px; }
  .screen-collage img { width: auto; max-height: none; }
  .screen-collage { width: 98%; height: 350px; gap: 7px; }
  .screen-collage--dashboard .screen-collage__wide { width: 90%; margin-right: 6%; }
  .screen-collage--dashboard .screen-collage__phone { right: 0; height: 78%; }
  .screen-collage--audio .screen-collage__phone,
  .screen-collage--places .screen-collage__phone { height: 68%; }
  .screen-collage--audio .screen-collage__phone:nth-child(2),
  .screen-collage--places .screen-collage__phone:nth-child(2) { height: 78%; }
  .screen-collage--shortcuts .screen-collage__wide { width: 90%; margin-left: 8%; }
  .screen-collage--shortcuts .screen-collage__phone { left: 0; height: 80%; }
  .screen-collage--themes .screen-collage__phone { height: 80%; }
  .chapter--portrait .chapter__media { min-height: 610px; }
  .chapter--portrait .chapter__media img { width: min(68%, 330px); }
  .chapter__copy { padding: 54px 16px 72px; }
  .gallery-shot { width: 88vw; min-width: 88vw; }
  .gallery-shot--portrait { width: 72vw; min-width: 72vw; }
  .audience-link { min-height: 430px; }
  .audience-link > span { right: 20px; bottom: 22px; left: 20px; }
  .play-button { width: 62px; height: 62px; }
  .quote-list blockquote { grid-template-columns: 1fr; gap: 18px; }
  .quote-list cite { text-align: left; }
  .post-link { grid-template-columns: 92px 1fr; min-height: 132px; gap: 16px; }
  .post-link img { width: 92px; height: 92px; }
  .post-link span { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
  .post-link small { align-self: flex-start; }
  .post-link strong { font-size: 1.2rem; }
  .post-link em { display: none; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide { transition: none; transform: none; }
  .chapter:hover .chapter__media img,
  .audience-link:hover img,
  .video-preview:hover img { transform: none; }
}
