/* =============================================================
   AirPods Pro — landing page
   Aesthetic: refined editorial dark, cinematic, Fraunces + Sora
   ============================================================= */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0c;
  --bg-card: #0f0f12;
  --ink: #f5f5f7;
  --ink-dim: #a8a8b0;
  --ink-soft: #6e6e76;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --pearl: #e7e2d6;
  --accent: #5ce0ff;   /* spatial audio cyan */
  --warn: #ff5c5c;

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;

  --t-fast: 220ms cubic-bezier(.2,.7,.2,1);
  --t-med: 480ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 900ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-variation-settings: "SOFT" 90, "opsz" 144; color: var(--pearl); }

::selection { background: var(--accent); color: #000; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 18px;
}
.eyebrow--dark { color: var(--ink-soft); }
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-dim);
  max-width: 52ch;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #000;
}
.btn--primary:hover { background: var(--pearl); transform: translateY(-1px); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--ink-dim); }
.btn--lg { padding: 18px 30px; font-size: 16px; }

/* ====================== NAV ====================== */
.nav {
  position: fixed;
  inset: 16px var(--gutter) auto var(--gutter);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  transition: background var(--t-med), border-color var(--t-med);
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.85);
  border-color: var(--line-strong);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pearl);
  box-shadow: 0 0 0 4px rgba(231,226,214,0.12);
}
.nav__links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.nav__links a { transition: color var(--t-fast); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: var(--ink); color: #000;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  transition: transform var(--t-fast), background var(--t-fast);
}
.nav__cta:hover { background: var(--pearl); transform: translateY(-1px); }

/* ====================== HERO ====================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("AirpodsBackgroundWide.png") center/cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
  z-index: -2;
}
@keyframes heroZoom { to { transform: scale(1.0); } }

.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.85) 100%);
  z-index: -1;
}

.hero__inner {
  text-align: center;
  padding: 140px var(--gutter) 100px;
  max-width: 1100px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: clamp(54px, 10vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 16px 0 28px;
}
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise var(--t-slow) forwards;
}
.hero__title .line:nth-child(1) { animation-delay: .15s; }
.hero__title .line:nth-child(2) { animation-delay: .35s; }
.hero__title .line:nth-child(3) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero__sub {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  opacity: 0;
  animation: rise var(--t-slow) .8s forwards;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise var(--t-slow) 1s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-dim);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; animation: rise var(--t-slow) 1.3s forwards;
}
.hero__scroll span {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--ink-dim));
  position: relative; overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute; top: -40%; left: 0;
  width: 100%; height: 40%;
  background: var(--ink);
  animation: scrollBlink 2.4s ease-in-out infinite;
}
@keyframes scrollBlink {
  0%   { transform: translateY(0); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}

/* ====================== MARQUEE ====================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #050507;
  overflow: hidden;
  padding: 22px 0;
}
.marquee__track {
  display: flex; gap: 28px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-variation-settings: "SOFT" 40, "opsz" 144;
  font-weight: 350;
  color: var(--ink-dim);
  white-space: nowrap;
  animation: scrollX 38s linear infinite;
}
.marquee__track span { letter-spacing: -0.01em; }
.marquee__track span:nth-child(even) { color: var(--ink-soft); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ====================== SOUND OF SCIENCE ====================== */
.sound {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.sound__copy h2 { margin-bottom: 26px; }
.sound__copy .lede { margin: 0 0 36px; }
.sound__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
}
.sound__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.sound__list li:last-child { border-bottom: 1px solid var(--line); }
.sound__list .num {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: 30px;
  color: var(--pearl);
  align-self: start;
  padding-top: 4px;
}
.sound__list .k {
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.sound__list .v {
  font-size: 14.5px; color: var(--ink-dim); line-height: 1.5;
}

.sound__video { margin: 0; }
.sound__videoFrame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0c 0%, #050505 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.sound__videoFrame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.sound__videoGrid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0/100% 25%,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0/25% 100%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .6;
}
.sound__videoCorners span {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--pearl);
}
.sound__videoCorners span:nth-child(1) { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.sound__videoCorners span:nth-child(2) { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.sound__videoCorners span:nth-child(3) { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.sound__videoCorners span:nth-child(4) { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.sound__video figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  font-size: 12px; color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.sound__video figcaption .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255,92,92,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,92,92,0.18); }
  50% { box-shadow: 0 0 0 7px rgba(255,92,92,0.08); }
}

/* ====================== ANC GRID ====================== */
.anc {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.anc__head { margin-bottom: 56px; }
.anc__head .display { max-width: 18ch; }

.anc__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.anc__card {
  position: relative;
  background: linear-gradient(160deg, #101013 0%, #07070a 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  overflow: hidden;
  min-height: 380px;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--t-med), border-color var(--t-med);
}
.anc__card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.anc__card--feature { grid-column: span 6; min-height: 460px; }
.anc__card--wide { grid-column: span 6; min-height: 360px; }
.anc__cardEy {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.anc__card h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 18ch;
}
.anc__card p {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 46ch;
  margin: 0;
}
.anc__card--feature h3 { max-width: 16ch; font-size: clamp(32px, 3.2vw, 56px); }

/* — ANC rings art — */
.anc__cardArt {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 70%;
  height: 70%;
  pointer-events: none;
}
.anc__cardArt--anc { right: -8%; bottom: -28%; width: 80%; height: 110%; }
.anc__cardArt--anc .ring {
  position: absolute; inset: 0; margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: ringPulse 6s ease-in-out infinite;
}
.anc__cardArt--anc .r1 { width: 100%; height: 100%; opacity: .15; }
.anc__cardArt--anc .r2 { width: 80%;  height: 80%;  opacity: .25; animation-delay: .3s; }
.anc__cardArt--anc .r3 { width: 60%;  height: 60%;  opacity: .4;  animation-delay: .6s; }
.anc__cardArt--anc .r4 { width: 40%;  height: 40%;  opacity: .55; animation-delay: .9s; }
.anc__cardArt--anc .r5 { width: 24%;  height: 24%;  opacity: .8;  animation-delay: 1.2s; border-color: var(--accent); }
.anc__cardArt--anc .pod {
  position: absolute; inset: 0; margin: auto;
  width: 14%; height: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #d2cdc0 55%, #6b6a64 100%);
  box-shadow: 0 0 80px rgba(92, 224, 255, 0.35);
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: var(--o, .3); }
  50%      { transform: scale(1.04); }
}

/* — Wave art — */
.anc__cardArt--wave {
  right: 0; bottom: 0; width: 100%; height: 55%;
}
.anc__cardArt--wave svg {
  width: 130%; height: 100%;
  position: absolute; left: -15%; bottom: 0;
}
.anc__cardArt--wave path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0.7;
  stroke-linecap: round;
}
.anc__cardArt--wave path:nth-child(2) { stroke: var(--pearl); opacity: .35; }
.anc__cardArt--wave path:nth-child(3) { stroke: var(--ink-soft); opacity: .5; }

/* — Bars art — */
.anc__cardArt--bars {
  right: 8%; bottom: 8%; width: 84%; height: 45%;
  display: flex; align-items: flex-end; gap: 6px;
}
.anc__cardArt--bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(92,224,255,0.15));
  height: var(--h);
  border-radius: 4px 4px 0 0;
  animation: barBreathe 2.4s ease-in-out infinite;
}
.anc__cardArt--bars span:nth-child(2n) { animation-delay: .2s; opacity: .7; }
.anc__cardArt--bars span:nth-child(3n) { animation-delay: .4s; opacity: .5; }
@keyframes barBreathe {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.6); }
}

/* — Isolation orb art — */
.anc__cardArt--iso { right: 5%; bottom: 5%; width: 45%; height: 90%; }
.iso-orb {
  position: absolute;
  inset: 0; margin: auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
  filter: blur(20px);
  opacity: 0.45;
  animation: orbFloat 6s ease-in-out infinite;
}
.iso-orb--2 {
  background: radial-gradient(circle at 70% 70%, var(--pearl), transparent 60%);
  animation-delay: 1.5s;
  width: 160px; height: 160px;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-20px) scale(1.08); }
}

/* ====================== HEALTH ====================== */
.health {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(92,224,255,0.06) 0%, transparent 70%),
    var(--bg);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.health__title { margin: 0 auto 60px; max-width: 16ch; }
.health__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.health__card {
  padding: 48px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  transition: border-color var(--t-med);
}
.health__card:hover { border-color: var(--accent); }
.health__num {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-size: clamp(56px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--pearl);
  margin-bottom: 22px;
}
.health__card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
  max-width: 28ch;
}

/* ====================== SPECS ====================== */
.specs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.specs__head { margin-bottom: 56px; max-width: 24ch; }
.specs__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.specs__grid li {
  padding: 36px 30px 36px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.specs__grid li:nth-child(3n) { border-right: 0; padding-right: 0; }
.specs__grid li:nth-child(n) { padding-left: 30px; }
.specs__grid li:nth-child(3n+1) { padding-left: 0; }
.specs__grid strong {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-size: clamp(50px, 5vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--pearl);
}
.specs__grid span {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 30ch;
  line-height: 1.55;
}

/* ====================== BUY ====================== */
.buy {
  position: relative;
  padding: clamp(100px, 16vw, 220px) var(--gutter);
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}
.buy::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 50% 100%, rgba(92,224,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.buy__inner { position: relative; max-width: 820px; margin: 0 auto; }
.buy__inner .display { font-size: clamp(56px, 9vw, 140px); margin-bottom: 24px; }
.buy__price {
  font-size: 15px; color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin: 0 0 36px;
}
.buy__price strong { color: var(--ink); font-weight: 500; font-size: 18px; }
.buy__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ====================== FOOTER ====================== */
.foot {
  border-top: 1px solid var(--line);
  padding: 30px var(--gutter);
  background: #050506;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.foot__row {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  letter-spacing: 0.02em;
}

/* ====================== REVEAL ON SCROLL ====================== */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--t-med), transform 1s var(--t-med);
}
.js-reveal.is-in {
  opacity: 1; transform: translateY(0);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .nav { inset: 12px 14px auto 14px; padding: 10px 14px; }
  .nav__links { display: none; }

  .sound {
    grid-template-columns: 1fr;
    padding-top: 80px; padding-bottom: 80px;
  }
  .sound__videoFrame { aspect-ratio: 4 / 5; }

  .anc__grid { grid-template-columns: 1fr; }
  .anc__card,
  .anc__card--feature,
  .anc__card--wide { grid-column: span 1; min-height: 360px; }
  .anc__card { padding: 28px; }

  .health__cards { grid-template-columns: 1fr; }

  .specs__grid { grid-template-columns: 1fr; }
  .specs__grid li,
  .specs__grid li:nth-child(3n),
  .specs__grid li:nth-child(3n+1) {
    padding: 28px 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(48px, 14vw, 88px); }
  .hero__inner { padding-top: 120px; padding-bottom: 90px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .btn--lg { padding: 15px 24px; font-size: 15px; }
  .nav__cta { padding: 8px 14px; font-size: 13px; }
  .anc__cardArt--anc .pod { box-shadow: 0 0 40px rgba(92, 224, 255, 0.25); }
  .marquee__track { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg { transform: scale(1); }
}
