/* ==========================================================================
   NOVA X1 — Section 3 (pre-order) + footer
   Loaded BEFORE the inline <style> in index.html, so anything the inline sheet
   defines still wins on a collision. Every selector here is namespaced to this
   section, so there is nothing to collide with.
   ========================================================================== */

:root {
  --glass: rgba(255, 255, 255, 0.62);        /* light glass, per the reference */
  --glass-edge: rgba(255, 0, 89, 0.22);
  --footer-ink: rgba(17, 17, 17, 0.55);
}

/* ---------- section 3 ---------- */

.reserve2 {
  position: relative;
  z-index: 20;                               /* same stacking rule as .specs2:
                                                these panels scroll over the fixed hero */
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  padding: 6rem var(--grid-margin);
  overflow: hidden;
}

/* The glow the card's backdrop-filter actually blurs. Without something behind
   it, blur(20px) over a flat fill is a no-op. */
.reserve2::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(70rem, 120%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
              rgba(255, 0, 89, 0.13) 0%,
              rgba(255, 0, 89, 0.05) 38%,
              transparent 68%);
  pointer-events: none;
}

.reserve2__card {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 3.4rem;
  text-align: center;

  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 0, 89, 0.05),
              0 0 60px rgba(255, 0, 89, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.reserve2__title {
  margin: 0 0 1.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.034em;
  color: var(--text);
}

.reserve2__sub {
  margin: 0 auto 2.6rem;
  max-width: 44ch;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--text-muted);
}

.reserve2__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.reserve2__amount {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.reserve2__badge {
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
  padding: 0 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);       /* black pill, white type - the reference's badge */
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reserve2__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reserve2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.6rem;
  padding: 0 2.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  letter-spacing: -0.011em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 220ms ease, box-shadow 220ms ease,
              border-color 220ms ease, color 220ms ease;
}

.reserve2__btn--primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #ffffff;                            /* white text on the pink fill */
  font-weight: 500;
}

.reserve2__btn--primary:hover {
  box-shadow: 0 0 28px rgba(255, 0, 89, 0.34);
}

.reserve2__btn--ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text);
}

.reserve2__btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 0, 89, 0.05);
}

.reserve2__btn:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* ---------- footer ---------- */

.footer2 {
  position: relative;
  z-index: 20;
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  padding: 1.8rem var(--grid-margin);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;

  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-ink);
}

.footer2__links {
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer2 a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer2 a:hover { color: var(--ink); }
.footer2 a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.footer2__audio {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer2__audio:hover { color: var(--ink); border-color: var(--glass-edge); }
.footer2__audio:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.footer2__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 180ms ease, background-color 180ms ease,
              box-shadow 180ms ease;
}

.footer2__audio[aria-pressed="true"] { color: var(--ink); }

.footer2__audio[aria-pressed="true"] .footer2__dot {
  opacity: 1;
  background: var(--ink);
  box-shadow: 0 0 8px rgba(255, 0, 89, 0.55);
}

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .reserve2 { padding: 4.5rem var(--grid-margin); }
  .reserve2__card { padding: 3rem 2rem; }
}

@media (max-width: 699px) {
  .reserve2 { padding: 3.5rem var(--grid-margin); }
  .reserve2__card { padding: 2.4rem 1.4rem; }
  .reserve2__sub { font-size: 1.05rem; margin-bottom: 2rem; }

  .reserve2__cta { flex-direction: column; align-items: stretch; }
  .reserve2__btn { width: 100%; min-height: 48px; }

  .footer2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    text-align: left;
  }
  .footer2__links { flex-wrap: wrap; gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reserve2__btn, .footer2 a, .footer2__audio, .footer2__dot { transition: none; }
}

/* Safari on older iOS has no backdrop-filter: fall back to an opaque card so the
   text never lands on a half-transparent panel over live video. */
@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .reserve2__card { background: rgba(255, 255, 255, 0.96); }
}


/* ==========================================================================
   SECTION 2 — scroll choreography
   .has-reveal is added by JS, so the hidden state only exists when something
   is there to undo it. Transform + opacity only: nothing here touches layout.
   ========================================================================== */

.specs2__media { --parallax: 0px; }

/* Slightly oversized so the parallax shift never exposes an edge inside the
   figure's overflow: hidden. */
.specs2__img {
  transform: translate3d(0, var(--parallax), 0) scale(1.06);
  will-change: transform;
}

/* ---- plate, eyebrow, headline ---- */

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.has-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.has-reveal .specs2__media[data-reveal] { transform: translateY(28px) scale(0.985); }
.has-reveal .specs2__media[data-reveal].is-in { transform: none; }

/* The headline trails the eyebrow slightly, so the pair reads as one gesture
   rather than two things landing together. */
.has-reveal .specs2__title[data-reveal] { transition-delay: 90ms; }

/* ---- spec rows: the divider draws, then the text rises behind it ---- */

/* The real borders step aside for lines we can animate. */
.has-reveal .specs2__list { border-top-color: transparent; }
.has-reveal .specs2__item { border-bottom-color: transparent; position: relative; }

.has-reveal .specs2__item::before,
.has-reveal .specs2__item:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.has-reveal .specs2__item::before { top: 0; }
.has-reveal .specs2__item:last-child::after { bottom: 0; }

.has-reveal .specs2__item.is-in::before,
.has-reveal .specs2__item.is-in:last-child::after { transform: scaleX(1); }

.has-reveal .specs2__item .specs2__name,
.has-reveal .specs2__item .specs2__desc {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

/* Text follows the line, description a beat behind its own heading. */
.has-reveal .specs2__item .specs2__name { transition-delay: 110ms; }
.has-reveal .specs2__item .specs2__desc { transition-delay: 180ms; }

.has-reveal .specs2__item.is-in .specs2__name,
.has-reveal .specs2__item.is-in .specs2__desc {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .specs2__img { transform: none; }
  .has-reveal [data-reveal],
  .has-reveal .specs2__item .specs2__name,
  .has-reveal .specs2__item .specs2__desc {
    opacity: 1; transform: none; transition: none;
  }
  .has-reveal .specs2__item::before,
  .has-reveal .specs2__item:last-child::after { transform: scaleX(1); transition: none; }
}

/* ==========================================================================
   SHOP — sticky product header, product block, gallery
   Everything below the hero lives in .shop so the header has a container to
   stick within: it appears as the white sections arrive and leaves with them,
   instead of covering the hero's own wordmark.
   ========================================================================== */

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

.shop {
  position: relative;
  z-index: 20;
  background: var(--panel);
}

/* ---------- sticky header ---------- */

.pheader {
  position: sticky;
  top: 0;
  z-index: 30;

  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.1rem var(--grid-margin);

  background: var(--panel);
  border-bottom: 1px solid var(--hairline);

  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.pheader__id { display: flex; align-items: center; gap: 0.7rem; }
.pheader__name { font-weight: 600; }
.pheader__star { color: var(--ink); font-size: 0.85em; }
.pheader__cat { opacity: 0.55; }

.pheader__variant { display: flex; align-items: center; gap: 0.7rem; opacity: 0.85; }

.pheader__swatch {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #d9dee6 42%, #9aa4b2 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.14);
}

.pheader__dots { display: flex; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pheader__dots li {
  width: 8px; height: 8px;
  background: rgba(17, 17, 17, 0.22);
}
.pheader__dots li.is-active { background: var(--text); }

.pheader__collection {
  margin: 0 0 0 auto;
  text-align: right;
  line-height: 1.35;
  opacity: 0.75;
}

/* ---------- product block ---------- */

.product {
  padding: 5rem var(--grid-margin) 6rem;
  border-top: 1px solid var(--hairline);
  color: var(--text);
  overflow: hidden;   /* the peek image runs past the right edge by design - clip it
                         here, or it widens the document and adds a horizontal scrollbar */
}

.product__top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2.1fr 1fr;
  gap: var(--grid-gutter);
  align-items: start;
}

.product__meta { font-size: 1.05rem; line-height: 1.5; }
.product__price { margin: 0; }
.product__stock { margin: 0; opacity: 0.55; }

/* The stage is the middle column; the peek image is parked in the right one,
   cropped by the section edge the way the reference carousel does. */
.product__stage { position: relative; margin: 0; grid-column: 2; }
.product__shot { display: block; width: 100%; height: auto; }

/* Bounded to the stage's own height and cropped: left to its natural 4:5 it ran
   down the page and sat on top of the fine-print column. */
.product__peek {
  position: absolute;
  top: 8%;
  left: calc(100% + var(--grid-gutter));
  width: 62%;
  height: 84%;
  object-fit: cover;
  opacity: 0.9;
  pointer-events: none;
}

.product__cta {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 2.4rem 0 0;
}

.product__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.8rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--text);
  transition: background-color 200ms ease, color 200ms ease;
}

.product__btn--ghost { background: transparent; color: var(--text); }
.product__btn--ghost:hover { background: var(--text); color: #ffffff; }

.product__btn--solid { background: var(--text); color: #ffffff; }
.product__btn--solid:hover { background: var(--ink); border-color: var(--ink); }

.product__btn:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.product__base {
  display: grid;
  grid-template-columns: 1fr 2.1fr 1fr;
  gap: var(--grid-gutter);
  margin-top: 5rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

.product__blurb { margin: 0; max-width: 30ch; }

.product__spec { margin: 0; padding: 0; list-style: none; }
.product__spec li { min-height: 1.45em; }   /* the blank line is a deliberate spacer */

.product__fine {
  margin: 0;
  text-align: right;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- gallery ---------- */

.gallery { padding: 0 var(--grid-margin) 6rem; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 7 / 6;      /* the source ratio, so nothing is cropped away */
  object-fit: cover;
  background: var(--surface-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .pheader { gap: 1.1rem; font-size: 0.72rem; }
  .pheader__cat, .pheader__variant span:last-child { display: none; }

  .product { padding: 3.5rem var(--grid-margin) 4.5rem; }
  .product__top { grid-template-columns: 1fr; }
  .product__stage { grid-column: 1; }
  .product__peek { display: none; }        /* no room for the carousel peek */
  .product__meta { display: flex; gap: 1.2rem; margin-bottom: 1.2rem; }

  .product__base { grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
  .product__fine { text-align: left; }

  .gallery { padding-bottom: 4.5rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid li:last-child { grid-column: 1 / -1; }
  .gallery__grid li:last-child img { aspect-ratio: 16 / 9; }
}

@media (max-width: 699px) {
  .pheader { gap: 0.9rem; padding: 0.9rem var(--grid-margin); }
  .pheader__dots { display: none; }

  .product__cta { flex-direction: column; }
  .product__btn { width: 100%; }

  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid li:last-child img { aspect-ratio: 7 / 6; }
}

/* Gallery tiles rise a little further, and the product stage does not scale -
   it holds an absolutely positioned peek image that must stay registered to it. */
.has-reveal .gallery__grid li[data-reveal] { transform: translateY(34px); }
.has-reveal .gallery__grid li[data-reveal].is-in { transform: none; }
