/* Kite Air 13 — landing styles */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-text);
  font-size: var(--t-body-sm);
  line-height: 1.47;
  letter-spacing: var(--tr-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--c-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); }
.skip:focus { top: 56px; }

.wrap { max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--band) 0; background: var(--c-paper); }
.band--gray { background: var(--c-canvas); }

/* ---- type ---- */
.section-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: var(--t-heading-lg); line-height: 1.05; letter-spacing: var(--tr-display);
  max-width: 18ch;
}
.section-title--sm { font-size: var(--t-heading); max-width: none; }
.sub-title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sub); line-height: 1.125; letter-spacing: 0.004em; }
.lead { margin-top: var(--s-24); max-width: 34em; font-size: var(--t-body); line-height: 1.38; letter-spacing: 0.011em; color: var(--c-mid); }
.statement {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(28px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.01em;
  max-width: 24ch;
}
.statement em { color: var(--c-ink); }

/* ---- controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--c-accent); color: #fff; font-size: var(--t-body-sm); line-height: 1.18;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: var(--c-accent-hover); }
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 5px 14px; font-size: 13px; }
.btn--lg { padding: 16px 32px; width: 100%; }
.btn--ghost { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.link { color: var(--c-accent-ink); font-size: var(--t-body-sm); }
.link::after { content: " ›"; display: inline-block; transition: transform 200ms var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover::after { transform: translateX(3px); }

/* ---- nav ---- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 44px;
  background: rgba(255, 255, 255, 0);
  transition: background 300ms var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 250, 252, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner {
  max-width: calc(var(--page) + var(--gutter) * 2); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav__brand svg { width: 16px; height: 16px; fill: var(--c-accent); }
.nav__links { display: flex; gap: 28px; font-size: 13px; color: var(--c-ink); }
.nav__links a { opacity: 0.8; transition: opacity 200ms; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a.is-active { font-weight: 600; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ==========================================================================
   HERO frame scroll
   ========================================================================== */
.hero { position: relative; height: 520vh; background: var(--c-paper); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { opacity: 0; transition: opacity 300ms; }
.hero.is-ready .hero__canvas { opacity: 1; }
@media (max-aspect-ratio: 6/5) { .hero__poster { object-fit: contain; } }

.hero__intro {
  position: absolute; left: 0; right: 0; top: clamp(64px, 9vh, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 var(--gutter);
  opacity: var(--intro-o, 1);
  transform: translateY(var(--intro-y, 0px));
}
.hero.is-past-intro .hero__intro { visibility: hidden; }
.hero__new { color: var(--c-accent-ink); font-size: var(--t-caption); font-weight: 500; }
.hero__name { margin-top: 2px; font-size: var(--t-body); font-weight: 600; letter-spacing: 0.011em; }
.hero__title {
  margin-top: 6px;
  font-family: var(--f-display); font-weight: 700;
  font-size: var(--t-display); line-height: 1.04; letter-spacing: var(--tr-display);
}
.hero__sub { margin-top: 12px; font-size: var(--t-body); line-height: 1.38; letter-spacing: 0.011em; color: var(--c-ink); }
.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.hero__price { margin-top: 12px; color: var(--c-mid); font-size: var(--t-body-sm); }

.hero__steps { position: absolute; left: 0; right: 0; top: clamp(96px, 15vh, 150px); pointer-events: none; }
.hero__step {
  position: absolute; left: 50%; top: 0; width: min(720px, calc(100% - var(--gutter) * 2));
  transform: translate(-50%, 20px);
  text-align: center; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(24px, 2.8vw, 40px); line-height: 1.12; letter-spacing: -0.005em;
  color: var(--c-mid);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), transform 700ms var(--ease-out), visibility 0s 500ms;
}
.hero__step b { color: var(--c-ink); font-weight: 600; }
.hero__step.is-active { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* ==========================================================================
   Highlights rail
   ========================================================================== */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 880px); gap: 20px;
  margin-top: var(--s-48);
  padding: 0 max(var(--gutter), calc((100vw - var(--page)) / 2)) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(var(--gutter), calc((100vw - var(--page)) / 2));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.hcard {
  position: relative; scroll-snap-align: start;
  height: min(72vh, 680px); border-radius: var(--r-card); overflow: hidden;
  background: var(--c-paper);
  display: flex; flex-direction: column;
}
.hcard__text { padding: 40px 40px 0; position: relative; z-index: 1; }
.hcard h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-body-lg); line-height: 1.14; letter-spacing: 0.007em; }
.hcard p { margin-top: 8px; max-width: 30em; color: var(--c-mid); }
.hcard img { margin-top: auto; width: 100%; height: 70%; object-fit: cover; }
.hcard--figure { justify-content: space-between; }
.hcard__big {
  padding: 0 40px 36px; margin-top: auto;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(120px, 20vw, 280px); line-height: 0.85; letter-spacing: -0.04em;
}
.hcard__big small { font-size: 0.22em; letter-spacing: 0; margin-left: 0.15em; color: var(--c-mid); font-weight: 600; }
.rail__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.dots { display: flex; gap: 7px; padding: 10px 14px; border-radius: var(--r-pill); background: var(--c-wash); }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-dot); transition: width 400ms var(--ease-out), background 300ms; }
.dots i.is-active { width: 40px; border-radius: 6px; background: var(--c-ink); }
.rail__arrows { display: flex; gap: 12px; }
.rail__arrows button {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-wash);
  display: grid; place-items: center; transition: background 200ms, transform 200ms;
}
.rail__arrows button:hover { background: #dcdce1; }
.rail__arrows button:active { transform: scale(0.94); }
.rail__arrows svg { width: 20px; height: 20px; fill: none; stroke: var(--c-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .rail { grid-auto-columns: 86vw; }
  .hcard { height: 560px; }
  .hcard__text { padding: 28px 28px 0; }
  .hcard__big { padding: 0 28px 28px; }
}

/* ==========================================================================
   Finishes
   ========================================================================== */
.finish {
  margin-top: var(--s-48);
  border-radius: var(--r-card); overflow: hidden;
  background: var(--finish);
  transition: background 700ms var(--ease);
}
.finish__stage { position: relative; aspect-ratio: 16 / 9; }
.finish__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 700ms var(--ease), transform 1100ms var(--ease-out);
}
.finish__stage img.is-active { opacity: 1; transform: none; }
.finish__picker { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 24px 32px; }
.finish__picker button, .buy__swatches label {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 200ms var(--ease);
}
.finish__picker button::after, .buy__swatches label::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-ink); opacity: 0; transition: opacity 200ms;
}
.finish__picker button[aria-checked="true"]::after, .buy__swatches label:has(input:checked)::after { opacity: 1; }
.finish__picker button:hover, .buy__swatches label:hover { transform: scale(1.08); }
.finish__name { min-width: 7em; margin-left: 12px; font-size: var(--t-body); font-weight: 600; letter-spacing: 0.011em; }
.finish[data-dark] .finish__name { color: #fff; }
.finish[data-dark] .finish__picker button::after { box-shadow: 0 0 0 2px #fff; }
@media (max-width: 760px) {
  .finish__stage { aspect-ratio: 4 / 3.2; }
  .finish__picker { flex-wrap: wrap; gap: 12px; }
  .finish__name { width: 100%; text-align: center; margin: 8px 0 0; }
}

/* ==========================================================================
   Design
   ========================================================================== */
.profile { margin-top: var(--s-80); overflow: hidden; background: var(--c-paper); }
.profile img { width: 112%; max-width: none; margin-left: -6%; transform: translateX(var(--profile-x, 0%)); will-change: transform; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: var(--s-48); }
.figures dt { font-family: var(--f-display); font-weight: 700; font-size: var(--t-heading); line-height: 1.05; letter-spacing: -0.01em; }
.figures dd { margin-top: 6px; color: var(--c-mid); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: var(--s-120); }
.duo__text p { margin: 16px 0 20px; color: var(--c-mid); max-width: 30em; }
.card-media { border-radius: var(--r-card); overflow: hidden; background: var(--c-paper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.duo__media { aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr; gap: 20px; }
  .duo { grid-template-columns: 1fr; gap: 32px; margin-top: var(--s-76); }
}

/* ==========================================================================
   Display
   ========================================================================== */
.display-shot { margin-top: var(--s-76); aspect-ratio: 16 / 10; background: var(--c-paper); }
.specs-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: var(--s-48); }
.specs-row dt { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.specs-row dd { margin-top: 4px; color: var(--c-mid); }
@media (max-width: 760px) { .specs-row { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* ==========================================================================
   Performance
   ========================================================================== */
.perf { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.perf__list { display: grid; gap: 4px; }
.perf__list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; align-items: baseline; padding: 22px 28px; background: var(--c-paper); border-radius: 18px; }
.perf__list b { font-family: var(--f-display); font-size: var(--t-body-lg); font-weight: 700; letter-spacing: -0.005em; }
.perf__list span { color: var(--c-mid); }
@media (max-width: 860px) {
  .perf { grid-template-columns: 1fr; gap: 40px; }
  .perf__list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Battery (scrubbed)
   ========================================================================== */
.battery { position: relative; height: 200vh; background: var(--c-paper); }
.battery__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--gutter);
}
.battery__label { font-size: var(--t-body); font-weight: 600; letter-spacing: 0.011em; }
.battery__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(140px, 26vw, 360px); line-height: 0.9; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.battery__num small { font-size: 0.16em; letter-spacing: -0.01em; margin-left: 0.2em; color: var(--c-mid); font-weight: 600; }
.battery__bar { width: min(560px, 80vw); height: 10px; margin-top: 28px; border-radius: 6px; background: var(--c-accent-tint); overflow: hidden; }
.battery__bar i { display: block; height: 100%; border-radius: 6px; background: var(--c-accent); transform-origin: left; transform: scaleX(var(--batt, 0)); }
.battery__note { margin-top: 28px; max-width: 30em; color: var(--c-mid); }

/* ==========================================================================
   Compare
   ========================================================================== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: var(--s-48); }
.model { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 28px 40px; border-radius: var(--r-card); background: var(--c-paper); }
.model img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.model__new { margin-top: 24px; color: var(--c-accent-ink); font-size: var(--t-caption); font-weight: 500; }
.model h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sub); line-height: 1.125; }
.model__price { margin: 8px 0 20px; color: var(--c-mid); }
.model dl { width: 100%; margin-top: 32px; display: grid; gap: 18px; }
.model dl div { display: flex; flex-direction: column; gap: 2px; }
.model dt { font-size: var(--t-caption); color: var(--c-mid); }
.model dd { font-size: var(--t-body-sm); font-weight: 600; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ==========================================================================
   Buy
   ========================================================================== */
.buy { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.buy__media { position: sticky; top: 72px; aspect-ratio: 4 / 3; background: var(--finish); transition: background 600ms var(--ease); }
.buy__media img { transition: opacity 300ms var(--ease); }
.buy__form { display: flex; flex-direction: column; gap: 32px; }
.buy__form legend { margin-bottom: 14px; font-size: var(--t-body-sm); font-weight: 600; }
.buy__form legend span { font-weight: 400; color: var(--c-mid); margin-left: 6px; }
.buy__swatches { display: flex; gap: 16px; padding-left: 4px; }
.buy__swatches label { cursor: pointer; }
.buy__swatches input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.buy__swatches label:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 7px; }
.buy__options { display: grid; gap: 12px; }
.buy__options label { cursor: pointer; }
.buy__options input { position: absolute; opacity: 0; pointer-events: none; }
.buy__options span {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--c-hair);
  font-weight: 600;
  transition: box-shadow 200ms var(--ease);
}
.buy__options small { font-size: var(--t-caption); font-weight: 400; color: var(--c-mid); }
.buy__options input:checked + span { box-shadow: inset 0 0 0 2px var(--c-accent); }
.buy__options input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.buy__total { padding-top: 8px; }
.buy__price { font-family: var(--f-display); font-weight: 700; font-size: var(--t-heading); line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.buy__meta { margin-top: 8px; font-size: var(--t-caption); color: var(--c-mid); }
@media (max-width: 860px) {
  .buy { grid-template-columns: 1fr; gap: 32px; }
  .buy__media { position: relative; top: 0; }
}

/* ---- footer ---- */
.footer { background: var(--c-canvas); padding: 40px 0 28px; font-size: 13px; line-height: 1.33; color: var(--c-mid); }
.footer p { max-width: 86ch; }
.footer p + p { margin-top: 10px; }
.footer .footer__row { max-width: none; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 18px !important; border-top: 1px solid var(--c-hair); }
.footer a { color: var(--c-accent-ink); }

/* ==========================================================================
   Motion
   ========================================================================== */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-split] .w > span { transform: translateY(110%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
  .js [data-split].is-in .w > span { transform: none; }
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__sub, .js .hero__actions, .js .hero__price, .js .hero__name, .js .hero__new {
    animation: rise 900ms var(--ease-out) both;
  }
  .js .hero__new { animation-delay: 0ms; }
  .js .hero__name { animation-delay: 60ms; }
  .js .hero__sub { animation-delay: 420ms; }
  .js .hero__actions { animation-delay: 520ms; }
  .js .hero__price { animation-delay: 600ms; }
  .js [data-scrub] .sw { color: var(--c-ink); opacity: calc(0.18 + var(--o, 0) * 0.82); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-aspect-ratio: 6/5) {
  .hero__poster { object-fit: cover; object-position: 50% 64%; transform: scale(1.5) translateY(-6%); transform-origin: 50% 70%; }
}

/* ---- Lenis (inertial scroll) ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
