/* ═══════════════════════════════════════════════════════════════════════════
   iPhone 18 Pro — Apple India
   Design system & stylesheet
   ---------------------------------------------------------------------------
   00  Tokens
   01  Reset & base
   02  Typography primitives
   03  Layout primitives
   04  Buttons, links, form controls
   05  Preloader
   06  Global navigation
   07  Search
   08  Local (section) navigation
   09  Marquee ribbon
   10  Hero
   11  Section head / lockup / eyebrow
   12  Rail — horizontal snap gallery
   13  Cards
   14  AIO
   15  Product viewer
   16  Figure
   17  Aperture + iris
   18  Cinema
   19  Battery + stats
   20  Chip stage
   21  Vapour chamber
   22  Upgrader
   23  Siri hero
   24  Tech specs
   25  Environment / values
   26  Footer
   27  Sticky buy bar
   28  Film modal
   29  Motion utilities
   30  Responsive
   31  Reduced motion & print
   ═══════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════ 00 · TOKENS ════════════════════════════════ */
:root {
  /* Surfaces */
  --c-black:      #000000;
  --c-bg:         #000000;
  --c-bg-alt:     #0a0a0c;
  --c-surface:    #121214;
  --c-surface-2:  #1c1c1f;
  --c-line:       rgba(255, 255, 255, .12);
  --c-line-soft:  rgba(255, 255, 255, .07);

  /* Text */
  --c-text:       #f5f5f7;
  --c-text-dim:   #a1a1a6;
  --c-text-mute:  #86868b;
  --c-ink:        #1d1d1f;
  --c-ink-dim:    #6e6e73;
  --c-ink-line:   #d2d2d7;

  /* Accents */
  --c-blue:       #2997ff;
  --c-blue-deep:  #0071e3;
  --c-orange:     #f56300;
  --c-purple:     #bf5af2;
  --c-green:      #30d158;
  --c-amber:      #ff9f0a;
  --c-pink:       #ff6482;
  --c-cyan:       #64d2ff;
  --c-red:        #ff453a;
  --accent:       var(--c-blue);

  /* Type */
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro Text",
          "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --font-num: "SF Pro Display", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --t-hero:    clamp(2.75rem, 8.2vw, 6rem);
  --t-xxl:     clamp(2.25rem, 6.4vw, 5rem);
  --t-xl:      clamp(1.875rem, 4.4vw, 3.5rem);
  --t-h2:      clamp(2rem, 5vw, 4rem);
  --t-h3:      clamp(1.25rem, 2vw, 1.75rem);
  --t-callout: clamp(1.3125rem, 2.3vw, 1.75rem);
  --t-body:    clamp(1.0625rem, 1.35vw, 1.3125rem);
  --t-sm:      clamp(0.9375rem, 1.05vw, 1.0625rem);
  --t-xs:      0.8125rem;
  --t-eyebrow: clamp(1.0625rem, 1.4vw, 1.3125rem);

  /* Rhythm */
  --wrap:       1280px;
  --wrap-narrow: 880px;
  --gut:        clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:      clamp(4.5rem, 10vw, 9rem);
  --radius:     clamp(1rem, 1.8vw, 1.5rem);
  --radius-sm:  0.75rem;
  --radius-pill: 980px;

  --gnav-h: 48px;
  --lnav-h: 52px;
  --buybar-h: 64px;
  --ribbon-pad: .7rem;

  /* Motion */
  --ease:      cubic-bezier(.28, .11, .32, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur:       .6s;

  --shadow-lift: 0 24px 60px -18px rgba(0, 0, 0, .75),
                 0 4px 14px -6px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ════════════════════════════ 01 · RESET & BASE ═══════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gnav-h) + var(--lnav-h) + 12px);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.47;
  letter-spacing: .011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; border-style: none; }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea {
  font: inherit; color: inherit; margin: 0;
  letter-spacing: inherit;
}
button { background: none; border: 0; padding: 0; cursor: pointer; }

sup { font-size: .62em; vertical-align: super; line-height: 0; }

::selection { background: var(--c-blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  transform: translateY(-160%);
  background: var(--c-text); color: var(--c-ink);
  padding: .7rem 1.1rem; border-radius: var(--radius-pill);
  font-size: var(--t-sm); font-weight: 600; text-decoration: none;
  transition: transform .25s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); text-decoration: none; }

/* ════════════════════════════ 02 · TYPOGRAPHY ════════════════════════════ */
.hl {
  color: var(--accent);
  font-weight: inherit;
}
.hl--green { color: var(--c-green); }
.hl--blue  { color: var(--c-blue); }
.hl--amber { color: var(--c-amber); }

.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: .002em;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: .35em;
}
.eyebrow--hero { color: var(--c-text); opacity: .82; }

em { font-style: normal; font-weight: 600; }

/* ════════════════════════════ 03 · LAYOUT ════════════════════════════════ */
.wrap {
  width: min(100% - (var(--gut) * 2), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { --wrap: var(--wrap-narrow); }

.section {
  position: relative;
  padding-block: var(--sec-y);
  isolation: isolate;
}
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem) var(--sec-y); }
.section--dark { background: var(--c-bg); }
.section--alt  { background: var(--c-bg-alt); }

/* Section accents */
#upgrade      { --accent: var(--c-orange); }
#design       { --accent: var(--c-blue); }
#cameras      { --accent: var(--c-purple); }
#video        { --accent: var(--c-amber); }
#battery      { --accent: var(--c-green); }
#performance  { --accent: var(--c-red); }
#siri         { --accent: var(--c-cyan); }
#ios          { --accent: var(--c-blue); }
#accessories  { --accent: var(--c-pink); }
#buy          { --accent: var(--c-blue); }
#specs        { --accent: var(--c-text-dim); }
#environment  { --accent: var(--c-green); }
#values       { --accent: var(--c-purple); }

/* Grid */
.grid { display: grid; gap: clamp(1.25rem, 2.2vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* ════════════════════════════ 04 · CONTROLS ══════════════════════════════ */
.btn {
  --btn-bg: var(--c-blue-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .72rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--t-sm); font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              transform .22s var(--ease), border-color .22s var(--ease);
}
.btn--primary { background: var(--btn-bg); color: #fff; }
.btn--primary:hover { background: #0077ed; text-decoration: none; }
.btn--primary:active { transform: scale(.97); }
.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--c-text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.btn--sm { min-height: 34px; padding: .35rem 1.05rem; font-size: var(--t-xs); }
.btn__play { width: 11px; height: 12px; fill: currentColor; }

.link {
  color: var(--c-blue);
  font-size: var(--t-sm);
  font-weight: 400;
  display: inline-flex; align-items: center; gap: .45rem;
  background: none;
}
.link:hover { text-decoration: underline; }
/* Keep the play-link on the 24px minimum target grid (WCAG 2.5.8). */
.link--play { min-height: 24px; }
.link--play svg { width: 10px; fill: var(--c-blue); }

/* Select pill */
.select { position: relative; display: inline-block; }
.select__el {
  -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, .1);
  color: var(--c-text);
  border: 0; border-radius: var(--radius-pill);
  padding: .6rem 2.4rem .6rem 1.15rem;
  font-size: var(--t-sm); font-weight: 500;
  cursor: pointer; min-width: 190px;
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: background-color .2s var(--ease);
}
.select__el:hover { background: rgba(255, 255, 255, .17); }
.select__el option { background: #1c1c1f; color: #f5f5f7; }
.select__chev {
  position: absolute; right: .95rem; top: 50%;
  width: 12px; height: 8px; margin-top: -4px;
  color: var(--c-text-dim); pointer-events: none;
}

/* ════════════════════════════ 05 · PRELOADER ════════════════════════════ */
.preloader {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  background: #000;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 1.6rem; }
.preloader__mark { width: 17px; height: 52px; fill: #f5f5f7; }
.preloader__bar {
  width: 148px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .16); overflow: hidden;
}
.preloader__fill {
  display: block; height: 100%; width: 0%;
  background: var(--c-text);
  transition: width .18s linear;
}
.preloader__pct {
  font-size: .75rem; font-weight: 500; color: var(--c-text-mute);
  font-variant-numeric: tabular-nums; letter-spacing: .06em;
}

/* ════════════════════════════ 06 · GLOBAL NAV ═══════════════════════════ */
.gnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--gnav-h);
  background: rgba(10, 10, 12, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.gnav.is-stuck { background: rgba(10, 10, 12, .86); border-bottom-color: var(--c-line-soft); }
.gnav__list {
  height: 100%; max-width: 1024px; margin-inline: auto;
  padding-inline: clamp(.5rem, 3vw, 1.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: .25rem;
}
/* The <li> wrapper is what the link's height:100% resolves against, so the
   items have to stretch to the full bar height or the tap target collapses
   to the text line box. */
.gnav__list > li { align-self: stretch; display: flex; }
.gnav__link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 100%; padding-inline: clamp(.4rem, 1.1vw, .95rem);
  color: rgba(245, 245, 247, .88);
  font-size: clamp(.72rem, 1.5vw, .8125rem);
  font-weight: 400; letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .2s var(--ease), opacity .2s var(--ease);
  opacity: .88;
}
.gnav__link:hover { color: #fff; opacity: 1; text-decoration: none; }
.gnav__link--apple svg { width: 14px; height: 42px; fill: currentColor; }
.gnav__link--buy { font-weight: 500; }
.gnav__icon svg { width: 14px; height: 42px; fill: currentColor; }

/* Burger — two bars that morph into a cross while the sheet is open. */
.gnav__burger-wrap { display: none; }
.gnav__burger { cursor: pointer; }
.gnav__burger-box {
  display: grid; gap: 5px; width: 16px;
  justify-items: center;
}
.gnav__burger-box span {
  display: block; width: 16px; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: transform .32s var(--ease-out), opacity .2s var(--ease);
}
.gnav__burger[aria-expanded="true"] .gnav__burger-box span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.gnav__burger[aria-expanded="true"] .gnav__burger-box span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ═══════════════════════════ 06b · MOBILE SHEET ═══════════════════════ */
.navsheet {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(8, 8, 10, .96);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  padding: calc(var(--gnav-h) + 1.5rem) var(--gut) 2rem;
  overflow-y: auto;
  animation: dropIn .3s var(--ease-out);
}
.navsheet__panel { width: min(100%, 420px); margin-inline: auto; }
.navsheet__list { list-style: none; margin: 0; padding: 0; }
.navsheet__list li { border-bottom: 1px solid var(--c-line-soft); }
.navsheet__list a {
  display: flex; align-items: center;
  min-height: 52px;
  font-size: clamp(1.15rem, 5.2vw, 1.5rem);
  font-weight: 600; letter-spacing: -.015em;
  color: var(--c-text);
}
.navsheet__list a:hover { color: var(--c-blue); text-decoration: none; }

.gnav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  width: 100%; background: transparent;
}
.gnav__progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
}

/* ════════════════════════════ 07 · SEARCH ═══════════════════════════════ */
.search-panel {
  position: fixed; top: var(--gnav-h); left: 0; right: 0; z-index: 880;
  background: rgba(14, 14, 16, .92);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--c-line-soft);
  padding: 1.1rem var(--gut) 1.4rem;
  animation: dropIn .28s var(--ease-out);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } }
.search-panel__inner {
  width: min(100%, 680px); margin-inline: auto;
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255, 255, 255, .07);
  border-radius: var(--radius-pill);
  padding: .1rem .5rem .1rem 1rem;
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.search-panel__icon { width: 17px; height: 17px; fill: var(--c-text-mute); flex: none; }
.search-panel__inner input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  padding: .8rem 0; font-size: var(--t-sm); color: var(--c-text);
}
.search-panel__inner input::placeholder { color: var(--c-text-mute); }
.search-panel__inner input::-webkit-search-cancel-button { display: none; }
.search-panel__kbd {
  flex: none; font-size: .68rem; font-family: inherit;
  color: var(--c-text-mute); background: rgba(255, 255, 255, .09);
  padding: .25rem .5rem; border-radius: 5px;
}
.search-panel__results {
  width: min(100%, 680px); margin: .9rem auto 0;
  max-height: min(52vh, 420px); overflow-y: auto;
  display: grid; gap: .15rem;
}
.search-panel__results:empty { display: none; }
.search-hit {
  display: block; width: 100%; text-align: left;
  padding: .6rem .85rem; border-radius: 10px;
  color: var(--c-text); font-size: var(--t-sm);
  cursor: pointer; transition: background-color .15s var(--ease);
}
.search-hit:hover, .search-hit.is-active { background: rgba(255, 255, 255, .1); text-decoration: none; }
.search-hit small {
  display: block; color: var(--c-text-mute); font-size: .75rem; margin-top: .1rem;
}
.search-empty { padding: .8rem .85rem; color: var(--c-text-mute); font-size: var(--t-sm); }

/* ════════════════════════════ 08 · LOCAL NAV ════════════════════════════ */
.lnav {
  position: fixed; top: var(--gnav-h); left: 0; right: 0; z-index: 850;
  height: var(--lnav-h);
  background: rgba(10, 10, 12, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-line-soft);
  transform: translateY(-102%);
  transition: transform .45s var(--ease-out);
}
.lnav.is-visible { transform: translateY(0); }
.lnav__inner {
  height: 100%; max-width: 1024px; margin-inline: auto;
  padding-inline: var(--gut);
  display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem);
}
.lnav__title {
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.01em;
  color: var(--c-text); white-space: nowrap; flex: none;
}
.lnav__tabs {
  display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.5rem);
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
}
.lnav__tabs::-webkit-scrollbar { display: none; }
.lnav__tab {
  position: relative;
  font-size: clamp(.72rem, 1.2vw, .8125rem);
  color: var(--c-text-dim); white-space: nowrap;
  padding-block: .35rem; padding-inline: .1rem;
  transition: color .2s var(--ease);
}
.lnav__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--c-text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.lnav__tab:hover { color: var(--c-text); text-decoration: none; }
.lnav__tab.is-active { color: var(--c-text); }
.lnav__tab.is-active::after { transform: scaleX(1); }

/* ════════════════════════════ 09 · RIBBON ═══════════════════════════════ */
.ribbon {
  position: absolute; top: var(--gnav-h); left: 0; right: 0; z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--c-line-soft);
  background: color-mix(in srgb, var(--c-bg-alt) 62%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding-block: var(--ribbon-pad);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ribbon__track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  animation: slide 38s linear infinite;
  will-change: transform;
}
.ribbon__track span {
  font-size: clamp(.72rem, 1.2vw, .875rem); font-weight: 500;
  color: var(--c-text-dim); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.ribbon__track i { width: 4px; height: 4px; border-radius: 50%; background: var(--c-text-mute); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ════════════════════════════ 10 · HERO ═════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: calc(var(--gnav-h) + 2.6rem) var(--gut) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  will-change: transform, opacity;
}
.hero__img--a { animation: heroA 22s var(--ease-in-out) infinite alternate; }
.hero__img--b { opacity: 0; animation: heroB 22s var(--ease-in-out) infinite alternate; }
@keyframes heroA { 0%,12% { opacity: 1; } 46%,100% { opacity: 0; } }
@keyframes heroB { 0%,12% { opacity: 0; } 46%,100% { opacity: 1; } }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 78% at 50% 108%, rgba(0,0,0,.94) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,0) 74%),
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.12) 34%, rgba(0,0,0,.86) 100%);
}

.hero__content { position: relative; max-width: 60ch; }
.hero__title {
  font-size: var(--t-hero);
  font-weight: 600; letter-spacing: -.017em; line-height: .98;
  margin-block: .12em .18em;
  text-wrap: balance;
}
.hero__tagline {
  font-size: var(--t-callout);
  font-weight: 500; letter-spacing: .002em;
  color: var(--c-text-dim);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  text-wrap: balance;
}
.hero__stats {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 640px;
}
.hero__stats li { border-top: 1px solid var(--c-line); padding-top: .8rem; }
.hero__stats strong {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__stats span {
  display: block; margin-top: .4rem;
  font-size: var(--t-xs); line-height: 1.35; color: var(--c-text-dim);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__price {
  margin-top: 1.1rem;
  font-size: var(--t-xs); color: var(--c-text-mute);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(1.25rem, 3vh, 2rem);
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: .55rem;
  color: var(--c-text-dim);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero__scroll:hover { color: var(--c-text); text-decoration: none; }
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, currentColor, transparent);
  transform-origin: top;
  animation: dropLine 2.4s var(--ease-in-out) infinite;
}
@keyframes dropLine {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(40px); opacity: 0; }
}

/* ═══════════════════ 11 · SECTION HEAD / LOCKUP ═════════════════════════ */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.section-head--center {
  flex-direction: column; align-items: center; text-align: center;
}
.section-head__title {
  font-size: var(--t-h2);
  font-weight: 600; letter-spacing: -.014em; line-height: 1.06;
  text-wrap: balance;
  max-width: 22ch;
}
.section-head--center .section-head__title { max-width: 26ch; }
.section-head__sub { color: var(--c-text-dim); font-size: var(--t-sm); margin-top: .6rem; }
.section-head__aside { display: flex; align-items: center; gap: 1.25rem; }
.section-head__aside .link:not(.link--play) { display: none; }

.lockup { max-width: 62rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.lockup--center { text-align: center; margin-inline: auto; }
.lockup__title {
  font-size: var(--t-xxl);
  font-weight: 600; letter-spacing: -.012em; line-height: 1.02;
  text-wrap: balance;
}
.lockup__title--sm { font-size: var(--t-xl); line-height: 1.06; }
.lockup__copy {
  margin-top: 1.15rem;
  font-size: var(--t-body);
  color: var(--c-text-dim);
  text-wrap: pretty;
  max-width: 62ch;
}
.lockup--center .lockup__copy { margin-inline: auto; }
.lockup__copy--narrow { max-width: 54ch; }
.lockup__copy strong { color: var(--c-text); font-weight: 600; }
.lockup__cta { margin-top: 1.75rem; }

.lockup__title--gradient {
  background: linear-gradient(100deg, #f5f5f7 0%, #ff9f0a 22%, #ff375f 40%,
              #bf5af2 58%, #64d2ff 76%, #f5f5f7 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 9s linear infinite;
}
@keyframes gradShift { to { background-position: 260% 0; } }

.figure { margin: 0; }
.figure img {
  width: 100%; border-radius: var(--radius);
  background: var(--c-surface);
}
.figure figcaption {
  margin-top: 1rem; text-align: center;
  font-size: var(--t-sm); color: var(--c-text-dim);
  text-wrap: pretty;
}
.figure__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.5rem;
}
.figure__stats span { font-size: var(--t-sm); color: var(--c-text-dim); }
.figure__stats strong {
  color: var(--c-text); font-weight: 600;
  font-family: var(--font-num); margin-right: .25em;
}

/* ═══════════════════════ 12 · RAIL (h-gallery) ═════════════════════════ */
.rail {
  position: relative;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }
.rail__track {
  display: flex; align-items: stretch; gap: clamp(.9rem, 1.6vw, 1.5rem);
  width: max-content;
  padding-inline: var(--gut);
  padding-block: .35rem 1rem;
}
.rail__item {
  flex: 0 0 auto;
  width: clamp(258px, 40vw, 420px);
  scroll-snap-align: center;
}
.rail__item--wide { width: clamp(320px, 56vw, 620px); }

.rail__nav {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1.25rem;
}
.rail__arrow {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.rail__arrow svg { width: 8px; height: 13px; fill: currentColor; }
.rail__arrow:hover { background: rgba(255, 255, 255, .18); }
.rail__arrow[disabled] { opacity: .28; pointer-events: none; }
.rail__dots { display: flex; align-items: center; }
/* The visible dot is a pseudo-element so the button itself can carry a
   24px hit area (WCAG 2.5.8) without changing the visual rhythm. */
.rail__dot {
  position: relative;
  display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0;
  border: 0; background: none;
  cursor: pointer;
}
.rail__dot::after {
  content: ""; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-text-mute);
  transition: width .3s var(--ease-out), background-color .3s var(--ease);
}
.rail__dot:hover::after { background: var(--c-text-dim); }
.rail__dot.is-active::after { width: 20px; border-radius: 3px; background: var(--c-text); }

/* ════════════════════════════ 13 · CARDS ════════════════════════════════ */

/* Tilt base — 3D response driven by --mx / --my */
[data-tilt] {
  --mx: 0; --my: 0; --lift: 0;
  height: 100%;
  transform:
    perspective(1100px)
    rotateX(calc(var(--my) * -4.5deg))
    rotateY(calc(var(--mx) *  5.5deg))
    translateZ(calc(var(--lift) * 1px));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
[data-tilt]:hover { --lift: 8; }
@media (hover: hover) and (pointer: fine) {
  [data-tilt]:hover { box-shadow: var(--shadow-lift); }
}

/* — Highlights card (image + overlay copy) — */
.card-media {
  position: relative; height: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
}
.card-media__media { position: relative; aspect-ratio: 4 / 5; }
.card-media__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
}
.card-media__img2 { opacity: 0; }
[data-tilt]:hover .card-media__media img { transform: scale(1.045); }
[data-tilt]:hover .card-media__img2 { opacity: 1; }
.card-media__copy {
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  font-size: var(--t-callout);
  font-weight: 600; letter-spacing: .002em; line-height: 1.19;
  text-wrap: pretty;
}
.card-media__copy sup { color: var(--c-text-mute); }

/* — Tile card (media + text below) — */
.card-tile {
  height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
  transition: box-shadow .4s var(--ease);
}
.card-tile__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-surface-2); }
.card-tile--tall .card-tile__media { aspect-ratio: 3 / 4; }
.card-tile__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
}
.card-tile__img2 { opacity: 0; }
[data-tilt]:hover .card-tile__media img { transform: scale(1.05); }
[data-tilt]:hover .card-tile__img2 { opacity: 1; }
.card-tile__title,
.card-tile__copy { padding-inline: clamp(1.1rem, 2vw, 1.5rem); }
.card-tile__title {
  margin-top: 1.15rem;
  font-size: var(--t-h3); font-weight: 600;
  letter-spacing: -.008em; line-height: 1.18;
  text-wrap: balance;
}
.card-tile__copy {
  margin: .5rem 0 clamp(1.1rem, 2vw, 1.5rem);
  font-size: var(--t-sm); line-height: 1.42;
  color: var(--c-text-dim);
  text-wrap: pretty;
}

/* — Tilt card (grid, no clip) — */
.card-tilt {
  height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
}
.card-tilt__media {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--c-surface-2);
}
.card-tilt__media--4x3 { aspect-ratio: 4 / 3; }
.card-tilt__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .9s var(--ease), transform 1.2s var(--ease-out);
}
.card-tilt__img2 { opacity: 0; }
[data-tilt]:hover .card-tilt__media img { transform: scale(1.05); }
[data-tilt]:hover .card-tilt__img2 { opacity: 1; }
.card-tilt__title {
  margin: 1.25rem clamp(1.1rem, 2vw, 1.5rem) 0;
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -.008em;
  line-height: 1.18; text-wrap: balance;
}
.card-tilt__copy {
  margin: .5rem clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.6rem);
  font-size: var(--t-sm); line-height: 1.42; color: var(--c-text-dim);
  text-wrap: pretty;
}

/* — Icon card — */
.card-icon {
  height: 100%;
  display: flex; flex-direction: column; gap: .85rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
  text-align: center; align-items: center;
}
.card-icon--lg { padding-block: clamp(1.75rem, 3vw, 2.5rem); gap: 1.1rem; }
.card-icon__icon {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.card-icon--lg .card-icon__icon { width: 72px; height: 72px; }
.card-icon__icon img { width: 68%; height: 68%; object-fit: contain; }
.card-icon__title {
  font-size: var(--t-callout); font-weight: 600;
  letter-spacing: .002em; line-height: 1.2; text-wrap: balance;
}
.card-icon--lg .card-icon__title { font-size: var(--t-h3); }
.card-icon__copy { font-size: var(--t-sm); color: var(--c-text-dim); text-wrap: pretty; }

/* — Feature card (connectivity) — */
.card-feature {
  height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
}
.card-feature__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); }
.card-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
[data-tilt]:hover .card-feature__media img { transform: scale(1.05); }
.card-feature__title {
  margin: 1.25rem clamp(1.1rem, 2vw, 1.5rem) 0;
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -.008em;
}
.card-feature__copy {
  margin: .5rem clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.6rem);
  font-size: var(--t-sm); line-height: 1.42; color: var(--c-text-dim); text-wrap: pretty;
}

/* ════════════════════════════ 14 · AIO ═════════════════════════════════ */
.aio { border-radius: var(--radius); overflow: hidden; background: var(--c-surface); }
.aio img { width: 100%; object-fit: cover; }

/* ════════════════════════════ 15 · VIEWER ═════════════════════════════ */
.viewer { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.viewer__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--c-surface) 0%, #050506 70%);
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  isolation: isolate;
}
.viewer__glow {
  position: absolute; inset: -20%;
  background: radial-gradient(46% 40% at 50% 62%,
              color-mix(in oklab, var(--finish, #7a2436) 78%, transparent) 0%,
              transparent 72%);
  filter: blur(34px);
  opacity: .55;
  transition: background .8s var(--ease);
  z-index: -1;
  will-change: background;
}
.viewer__img {
  width: min(100%, 720px); height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .65));
  transition: opacity .45s var(--ease), transform .8s var(--ease-out);
}
.viewer__img.is-swapping { opacity: 0; transform: scale(.965) translateY(10px); }
.viewer__shine {
  position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .13) 47%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}
.viewer__stage:hover .viewer__shine { animation: shine 1.5s var(--ease-out); }
@keyframes shine { to { transform: translateX(120%); } }

.viewer__controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.swatches { display: flex; align-items: center; gap: .8rem; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 1px 4px rgba(0, 0, 0, .6);
  position: relative;
  transition: transform .3s var(--ease-out);
}
.swatch::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%; border: 1.5px solid var(--c-text);
  opacity: 0; transform: scale(.8);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active::after { opacity: 1; transform: scale(1); }
.swatches__name {
  margin-left: .35rem;
  font-size: var(--t-sm); color: var(--c-text-dim);
  min-width: 6ch;
}
.sizes {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.size {
  padding: .45rem 1.1rem; border-radius: var(--radius-pill);
  font-size: var(--t-xs); font-weight: 500; color: var(--c-text-dim);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.size.is-active { background: var(--c-text); color: var(--c-ink); }

/* ════════════════════════════ 16 · FIGURE extras ════════════════════════ */
.figure--flush img { border-radius: var(--radius); }

/* ════════════════════════ 17 · APERTURE + IRIS ══════════════════════════ */
.aperture {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.aperture__iris {
  position: sticky; top: calc(var(--gnav-h) + var(--lnav-h) + 2rem);
  display: grid; justify-items: center; gap: 1rem;
}
.iris { width: 100%; max-width: 250px; overflow: visible; }
.aperture__readout {
  font-family: var(--font-num);
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.aperture__panel { min-width: 0; }

.tabnav {
  position: relative;
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--c-line);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 100%; overflow-x: auto;
  scrollbar-width: none;
}
.tabnav::-webkit-scrollbar { display: none; }
.tabnav__tab {
  position: relative; z-index: 1;
  padding: .55rem 1.15rem; border-radius: var(--radius-pill);
  font-size: var(--t-xs); font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-dim); white-space: nowrap;
  transition: color .3s var(--ease);
}
.tabnav__tab[aria-selected="true"] { color: var(--c-ink); }
.tabnav__indicator {
  position: absolute; top: 3px; left: 0; height: calc(100% - 6px);
  border-radius: var(--radius-pill); background: var(--c-text);
  transition: transform .42s var(--ease-out), width .42s var(--ease-out);
  will-change: transform, width;
}

.aperture__stage {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
}
.aperture__frame { position: relative; aspect-ratio: 16 / 10; }
.aperture__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity .8s var(--ease), transform 1.5s var(--ease-out);
}
.aperture__frame img.is-active { opacity: 1; transform: scale(1); }

.aperture__captions { padding: clamp(1.25rem, 2.4vw, 1.9rem); }
.aperture__caption h3 {
  font-size: var(--t-callout); font-weight: 600; letter-spacing: .002em;
  margin-bottom: .5rem;
}
.aperture__caption h3 em { color: var(--c-text); }
.aperture__caption h3 .hl { color: var(--accent); }
.aperture__caption p {
  font-size: var(--t-sm); color: var(--c-text-dim);
  max-width: 56ch; text-wrap: pretty;
}
.aperture__caption { animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ════════════════════════════ 18 · CINEMA ══════════════════════════════ */
.section--cinema { padding-bottom: 0; }
.cinema {
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 440px;
  display: grid; place-items: center;
  isolation: isolate;
}
.cinema img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  animation: kenburns 26s var(--ease-in-out) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.18) translate3d(-1.5%, -1.8%, 0); }
}
.cinema__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,.75) 100%);
}
.cinema__lockup { position: relative; margin: 0; text-align: center; }
.cinema__lockup .lockup__title { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.cinema__lockup .eyebrow { color: #fff; opacity: .8; }

/* ════════════════════════ 19 · BATTERY + STATS ═════════════════════════ */
.battery {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.battery__media {
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
}
.battery__media img { width: 100%; object-fit: cover; }
.battery__stats { display: grid; gap: 1.5rem; }
.stat { border-top: 1px solid var(--c-line); padding-top: 1.1rem; }
.stat__num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600; letter-spacing: -.025em; line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; margin-top: .5rem;
  font-size: var(--t-sm); color: var(--c-text-dim);
  max-width: 34ch; text-wrap: pretty;
}
.battery__list { display: grid; gap: .65rem; margin-top: .5rem; }
.battery__list li {
  position: relative; padding-left: 1.4rem;
  font-size: var(--t-sm); color: var(--c-text-dim);
}
.battery__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ════════════════════════════ 20 · CHIP STAGE ══════════════════════════ */
.chip-stage {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9;
  background: radial-gradient(90% 120% at 50% 0%, #16161a 0%, #050506 72%);
  display: grid; place-items: center;
  isolation: isolate;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.chip-stage__media { position: absolute; inset: 0; }
.chip-stage__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  animation: chipCross 14s var(--ease-in-out) infinite;
}
.chip-stage__img--b { animation-delay: 7s; }
@keyframes chipCross {
  0%, 42%   { opacity: 1; }
  50%, 92%  { opacity: 0; }
  100%      { opacity: 1; }
}
.chip-stage__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(72% 72% at 50% 50%, #000 0%, transparent 78%);
  pointer-events: none;
}

/* ════════════════════════════ 21 · VAPOUR ══════════════════════════════ */
.vapor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.vapor__media {
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
}
.vapor__media img { width: 100%; object-fit: cover; }
.vapor__title {
  font-size: var(--t-xl); font-weight: 600; letter-spacing: -.012em;
  line-height: 1.06; margin-bottom: 1.1rem; text-wrap: balance;
}
.vapor__copy { color: var(--c-text-dim); text-wrap: pretty; }
.vapor__copy strong { color: var(--c-text); }
.vapor__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem; margin-top: 1.75rem;
}
.vapor__list li {
  border-top: 1px solid var(--c-line); padding-top: .8rem;
  font-size: var(--t-xs); color: var(--c-text-dim);
}
.vapor__list strong {
  display: block; font-family: var(--font-num);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--c-text); margin-bottom: .15rem;
}

/* ════════════════════════════ 22 · UPGRADER ════════════════════════════ */
.upgrader {
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
  padding: clamp(1.5rem, 3.5vw, 3rem);
}
.upgrader__head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.upgrader__title {
  font-size: var(--t-h2); font-weight: 600; letter-spacing: -.014em;
  line-height: 1.06; text-wrap: balance;
}
.upgrader__picker {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
}
.upgrader__label { font-size: var(--t-xs); color: var(--c-text-mute); max-width: 30ch; }
.upgrader__sub {
  margin-top: 1.25rem; font-size: var(--t-callout);
  font-weight: 500; letter-spacing: .002em; color: var(--c-text-dim);
}
.upgrader__sub strong { color: var(--c-text); font-weight: 600; }

.upgrader__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.15rem);
}
.upgrader__item {
  grid-column: span 2;
  display: flex; flex-direction: column;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
  transition: box-shadow .4s var(--ease);
}
.upgrader__item--wide { grid-column: span 6; }
.upgrader__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-surface-2); }
.upgrader__item--wide .upgrader__media { aspect-ratio: 21 / 9; }
.upgrader__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
[data-tilt]:hover .upgrader__media img { transform: scale(1.05); }
.upgrader__copy {
  padding: 1rem clamp(.9rem, 1.6vw, 1.25rem) clamp(1rem, 1.8vw, 1.35rem);
  font-size: var(--t-sm); line-height: 1.35; color: var(--c-text);
  text-wrap: pretty;
}
.upgrader__copy .hl {
  font-family: var(--font-num); font-weight: 600; color: var(--accent);
}

/* ════════════════════════════ 23 · SIRI HERO ═══════════════════════════ */
.siri-hero { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.siri-hero__media {
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface);
}
.siri-hero__media img { width: 100%; object-fit: cover; aspect-ratio: 21 / 9; }

/* ════════════════════════════ 24 · SPECS ═══════════════════════════════ */
.specs {
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  box-shadow: inset 0 0 0 1px var(--c-line-soft);
  overflow: hidden;
}
.specs__models {
  display: flex; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid var(--c-line-soft);
}
.specs__model {
  flex: 1; padding: .85rem 1rem; border-radius: var(--radius-pill);
  font-size: var(--t-sm); font-weight: 500; color: var(--c-text-dim);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.specs__model.is-active { background: var(--c-text); color: var(--c-ink); }

.spec { border-bottom: 1px solid var(--c-line-soft); }
.spec:last-child { border-bottom: 0; }
.spec__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem clamp(1.1rem, 2.4vw, 1.85rem);
  cursor: pointer; list-style: none;
  font-size: var(--t-body); font-weight: 600; letter-spacing: -.006em;
  transition: color .2s var(--ease);
}
.spec__head::-webkit-details-marker { display: none; }
.spec__head:hover { color: var(--accent); }
.spec__icon {
  position: relative; width: 11px; height: 11px; flex: none;
}
.spec__icon::before, .spec__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: currentColor; border-radius: 2px;
  transform: translateY(-50%);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease);
}
.spec__icon::after { transform: translateY(-50%) rotate(90deg); }
.spec[open] .spec__icon::after { transform: translateY(-50%) rotate(0); opacity: 0; }
.spec__panel { padding: 0 clamp(1.1rem, 2.4vw, 1.85rem) 1.5rem; }
.spec__rows { display: grid; gap: .1rem; }
.spec__row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: .5rem 1.5rem;
  padding-block: .7rem;
  border-top: 1px solid var(--c-line-soft);
  font-size: var(--t-sm);
}
.spec__k { color: var(--c-text-mute); }
.spec__v { color: var(--c-text); text-wrap: pretty; }

/* ═══════════════════════ 25 · ENV / VALUES (shared) ═════════════════════ */
#environment, #values {
  border-top: 1px solid var(--c-line-soft);
}

/* ════════════════════════════ 26 · FOOTER ═════════════════════════════ */
.footer {
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-bg-alt);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 2.75rem);
  font-size: var(--t-xs);
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.75rem 1rem;
  padding-bottom: 1.75rem;
}
.footer__h {
  font-size: var(--t-xs); font-weight: 600; color: var(--c-text);
  margin-bottom: .7rem;
}
.footer__col li { margin-bottom: .45rem; }
/* inline-block + padding lifts each footer link onto the 24px minimum
   target grid without changing the type size or column rhythm. */
.footer__col a {
  display: inline-block;
  padding-block: .22rem;
  color: var(--c-text-dim);
}
.footer__col a:hover { color: var(--c-text); }

.footer__shop {
  padding-block: 1.25rem;
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-text-dim);
}
.footer__shop-copy { margin-bottom: .3rem; }
/* Inline prose links: keep them on the 24px target grid too. */
.footer__shop-copy a { display: inline-block; padding-block: .22rem; }

.footer__legal {
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-text-mute);
}
.footer__legal-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.5rem; margin-bottom: 1rem;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.footer__legal-links a {
  display: inline-block;
  padding-block: .22rem;
  color: var(--c-text-dim);
}
.footer__legal-links a:hover { color: var(--c-text); }
.footer__footnotes {
  display: grid; gap: .5rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.footer__note {
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-soft);
  line-height: 1.5;
}

/* ═══════════════════════ 27 · STICKY BUY BAR ═══════════════════════════ */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  background: rgba(12, 12, 14, .82);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid var(--c-line-soft);
  transform: translateY(100%);
  transition: transform .45s var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.buybar.is-visible { transform: translateY(0); }
.buybar__inner {
  max-width: 1024px; margin-inline: auto;
  min-height: var(--buybar-h);
  padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.buybar__info { min-width: 0; display: grid; gap: .1rem; }
.buybar__name {
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buybar__meta { font-size: .72rem; color: var(--c-text-mute); }
.buybar__actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.buybar__price {
  font-size: var(--t-sm); font-weight: 500; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.buybar__price small { display: block; font-size: .68rem; color: var(--c-text-mute); font-weight: 400; }

/* ════════════════════════════ 28 · FILM MODAL ══════════════════════════ */
.film {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: clamp(.75rem, 3vw, 2.5rem);
}
.film[hidden] { display: none; }
.film__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.film__frame {
  position: relative;
  width: min(100%, 1180px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
  animation: filmIn .5s var(--ease-out);
}
@keyframes filmIn { from { opacity: 0; transform: scale(.96) translateY(14px); } }
.film__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: min(74vh, 720px);
  overflow: hidden;
}
.film__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity .9s var(--ease), transform 7s linear;
}
.film__stage img.is-active { opacity: 1; transform: scale(1.11); }
.film__grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%);
}
.film__caption {
  position: absolute; left: clamp(1.25rem, 4vw, 3rem); bottom: clamp(1.25rem, 4vw, 2.5rem);
  right: clamp(1.25rem, 4vw, 3rem);
}
.film__kicker {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .7);
  margin-bottom: .4rem;
}
.film__line {
  font-size: clamp(1.25rem, 3.2vw, 2.25rem); font-weight: 600;
  letter-spacing: -.014em; line-height: 1.14; color: #fff;
  text-wrap: balance;
  min-height: 1.14em;
}
.film__line.is-in { animation: fadeUp .6s var(--ease-out); }

.film__close {
  position: absolute; top: .75rem; right: .75rem; z-index: 3;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: background-color .2s var(--ease);
}
.film__close:hover { background: rgba(0, 0, 0, .75); }
.film__close svg { width: 13px; height: 13px; }

.film__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem clamp(1rem, 3vw, 1.5rem);
  background: rgba(0, 0, 0, .5);
}
.film__btn {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s var(--ease);
}
.film__btn:hover { background: rgba(255, 255, 255, .24); }
.film__btn svg { width: 13px; height: 15px; fill: currentColor; }
.film__playicon { display: none; }
.film__btn.is-paused .film__pause { display: none; }
.film__btn.is-paused .film__playicon { display: block; }
.film__progress {
  flex: 1; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .2); overflow: hidden;
}
.film__progress span {
  display: block; height: 100%; width: 0;
  background: #fff; border-radius: 3px;
}
.film__time {
  font-size: .72rem; color: rgba(255, 255, 255, .75);
  font-variant-numeric: tabular-nums; flex: none;
}

/* ════════════════════════ 29 · MOTION UTILITIES ═════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal-group].is-in > * { opacity: 1; transform: none; }

html.no-js [data-reveal],
html.no-js [data-reveal-group] > * { opacity: 1; transform: none; }
html.no-js .preloader { display: none; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ════════════════════════ 30 · RESPONSIVE ═════════════════════════════ */
@media (max-width: 1180px) {
  .aperture { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .iris { max-width: 190px; }
}

@media (max-width: 980px) {
  :root { --lnav-h: 48px; }
  .gnav__list { max-width: none; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .gnav__list::-webkit-scrollbar { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .battery, .vapor { grid-template-columns: minmax(0, 1fr); }
  .cinema { aspect-ratio: 4 / 5; min-height: 0; }
  .siri-hero__media img { aspect-ratio: 4 / 3; }
  .upgrader__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .upgrader__item { grid-column: span 2; }
  .upgrader__item--wide { grid-column: span 4; }
}

@media (max-width: 860px) {
  .aperture {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .aperture__iris { position: static; margin-bottom: .5rem; }
  .aperture__panel { width: 100%; }
  .rail__item { width: clamp(240px, 74vw, 330px); }
  .rail__item--wide { width: clamp(260px, 84vw, 420px); }
}

@media (max-width: 860px) {
  /* The desktop link row needs ~900px to sit on one line without clipping.
     Below that the secondary links move into the sheet and the burger
     takes their place in the bar. */
  .gnav__item--secondary { display: none; }
  .gnav__burger-wrap { display: flex; }
  .gnav__list { gap: 0; }
}

@media (max-width: 720px) {
  :root { --gnav-h: 46px; --gut: 1.15rem; }
  .grid--3, .grid--tiles { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 92svh; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__scroll { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; text-align: center; }
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .upgrader__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upgrader__item, .upgrader__item--wide { grid-column: span 2; }
  .upgrader__item--wide .upgrader__media { aspect-ratio: 16 / 10; }
  .specs__models { flex-direction: column; }
  .chip-stage { aspect-ratio: 4 / 3; }
  .viewer__stage { aspect-ratio: 4 / 5; }
  .aperture__frame { aspect-ratio: 4 / 3; }
  .footer__legal-row { flex-direction: column; align-items: flex-start; }
  .buybar__meta { display: none; }
  .buybar__price small { display: none; }
  .film__stage { max-height: 62vh; }
}

@media (max-width: 460px) {
  .hero__stats { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { flex: 1 1 auto; }
  .rail__item { width: 82vw; }
  .vapor__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Coarse pointers: no tilt, no drag cursor */
@media (hover: none), (pointer: coarse) {
  [data-tilt] { transform: none !important; }
  .rail { cursor: auto; }
  .swatch:hover, .size:hover { transform: none; }
}

/* ══════════════════════ 31 · REDUCED MOTION / PRINT ═════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .hero__img--a, .hero__img--b,
  .cinema img, .chip-stage__img { animation: none; opacity: 1; }
  .hero__img--b, .chip-stage__img--b { display: none; }
  .film__stage img.is-active { transform: none; }
  .hero__scroll-line { animation: none; }
}

@media print {
  .gnav, .lnav, .ribbon, .buybar, .preloader, .film, .navsheet,
  .hero__scroll, .rail__nav, .search-panel { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}
