/* ============================================================
   AERA One — scroll-driven home page
   Premium minimal: lots of white, big type, restrained accents
   ============================================================ */

:root {
  /* Tweakable via the panel */
  --smoothness: 0.10;          /* lerp factor (lower = smoother) */
  --intensity: 1;              /* effect amplitude multiplier */

  /* Palette */
  --ink: #0a0a0a;
  --paper: #f6f5f2;
  --paper-2: #ecebe6;
  --muted: #76746e;
  --line: rgba(10,10,10,0.12);
  --accent: oklch(58% 0.14 38);     /* warm terracotta */

  /* Per-section dynamic vars (set by JS) */
  --p: 0;                       /* generic 0..1 */
  --hue: 38;

  --bezel: 1px solid var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, "Arial Nova", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

.serif {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Header
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.02em;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ============================================================
   Progress indicator (top thin bar + dots on right)
   ============================================================ */

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 90;
  transition: opacity 0.3s;
}
.progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: var(--ink);
  transform-origin: left;
}
.progress-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.3s;
}
.progress-dots .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(10,10,10,0.18);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.progress-dots .dot.active {
  background: var(--ink);
  transform: scale(1.6);
}

body.hide-progress .progress-bar,
body.hide-progress .progress-dots { opacity: 0; pointer-events: none; }

/* ============================================================
   Sections shared
   ============================================================ */

section {
  position: relative;
  width: 100%;
}

.full {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pin container: outer is tall, inner pins via sticky */
.pin-track { position: relative; }
.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-label {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 5;
}
.section-label-r {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 5;
  text-align: right;
}

/* ============================================================
   Product placeholder — abstract headphone silhouette
   Two earcups (circles) + a band (rounded rectangle)
   Animated via CSS vars set by JS
   ============================================================ */

.product {
  --rot: 0deg;
  --scale: 1;
  --tx: 0px;
  --ty: 0px;
  --tone: #0a0a0a;
  width: min(440px, 60vw);
  aspect-ratio: 1 / 1;
  position: relative;
  transform: translate(var(--tx), var(--ty)) scale(var(--scale)) rotate(var(--rot));
  transition: filter 0.4s ease;
  will-change: transform;
}

.product .cup {
  position: absolute;
  width: 38%;
  height: 78%;
  top: 11%;
  background: var(--tone);
  border-radius: 50% / 48%;
  box-shadow:
    inset 0 0 0 14px var(--tone),
    inset 0 0 0 18px rgba(255,255,255,0.06),
    0 30px 60px -20px rgba(0,0,0,0.35);
}
.product .cup.left { left: 4%; }
.product .cup.right { right: 4%; }
.product .cup::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50% / 46%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.12), transparent 55%),
    var(--tone);
  filter: brightness(0.78);
}
.product .band {
  position: absolute;
  left: 18%; right: 18%;
  top: 8%;
  height: 36%;
  border: 14px solid var(--tone);
  border-bottom: 0;
  border-radius: 200px 200px 0 0;
}

/* placeholder version (clearly a placeholder) */
.product.placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(10,10,10,0.04) 0 10px,
      transparent 10px 20px);
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   1. Hero — pin + word-by-word title + product entrance
   ============================================================ */

.hero {
  height: 220vh;     /* pin range */
}
.hero .pin-stage {
  background: var(--paper);
}
.hero-inner {
  position: relative;
  width: min(1280px, 92vw);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.hero-copy h1 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.hero-copy h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.5s, transform 0.5s;
  margin-right: 0.2em;
}
.hero-copy h1 .word.in { opacity: 1; transform: translateY(0); }
.hero-copy .kicker {
  margin-bottom: 28px;
}
.hero-copy .lede {
  margin-top: 32px;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s 0.2s, transform 0.6s 0.2s;
}
.hero-copy.in .lede { opacity: 1; transform: translateY(0); }

.hero-product {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.hero .product {
  /* JS drives --rot and --scale based on hero progress */
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: var(--hint-opacity, 1);
  transition: opacity 0.4s;
}
.scroll-hint .line {
  width: 1px;
  height: 36px;
  background: currentColor;
  animation: drop 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop {
  0%, 100% { transform: scaleY(0.2); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ============================================================
   2. Image sequence (simulated) — pin, rotate product 0..360
   ============================================================ */

.seq { height: 320vh; }
.seq .pin-stage {
  background: var(--ink);
  color: #fff;
}
.seq .product .cup,
.seq .product .band {
  --tone: #ffffff;
}
.seq .product .cup { background: #ffffff; box-shadow: inset 0 0 0 14px #fff, inset 0 0 0 18px rgba(0,0,0,0.06); }
.seq .product .band { border-color: #ffffff; }
.seq .product .cup::after { background: radial-gradient(circle at 35% 35%, rgba(0,0,0,0.18), transparent 55%), #fff; }

.seq-stage {
  width: min(1280px, 92vw);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 32px;
}
.seq-left, .seq-right {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.seq-left { color: rgba(255,255,255,0.55); }
.seq-right { color: rgba(255,255,255,0.55); text-align: right; }
.seq-counter {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-top: 18px;
  display: block;
  color: #fff;
}
.seq-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.seq-frame-note {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* ============================================================
   3. Pin + reveal features (product fixed, 3 text panels)
   ============================================================ */

.features { height: 360vh; }
.features .pin-stage { background: var(--paper-2); }
.features-stage {
  width: min(1280px, 92vw);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.features-product { display: flex; justify-content: center; }
.features-panels { position: relative; min-height: 320px; }
.feature-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-panel.in { opacity: 1; transform: translateY(0); }
.feature-panel .num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.feature-panel h2 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.feature-panel p {
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
  color: var(--muted);
}
.feature-pager {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.feature-pager .bar {
  width: 32px;
  height: 2px;
  background: rgba(10,10,10,0.15);
  position: relative;
  overflow: hidden;
}
.feature-pager .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(var(--bp, 0));
  transform-origin: left;
}

/* ============================================================
   4. Parallax multi-layer
   ============================================================ */

.parallax {
  height: 140vh;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.parallax-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.layer {
  position: absolute;
  will-change: transform;
}
.layer-bg {
  inset: -20% -10%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(10,10,10,0.04), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(10,10,10,0.03), transparent 50%);
  transform: translateY(calc(var(--py, 0) * -60px * var(--intensity)));
}
.layer-type {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(10,10,10,0.06);
  white-space: nowrap;
  transform: translateY(calc(var(--py, 0) * -180px * var(--intensity)));
  pointer-events: none;
}
.layer-product {
  z-index: 2;
  transform: translateY(calc(var(--py, 0) * -40px * var(--intensity)));
}
.layer-caption {
  z-index: 3;
  bottom: 8%;
  left: 50%;
  transform: translate(-50%, calc(var(--py, 0) * 30px * var(--intensity)));
  text-align: center;
  max-width: 38ch;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   5. Zoom — continuous zoom into a detail
   ============================================================ */

.zoom { height: 260vh; }
.zoom .pin-stage { background: #1a1a1a; color: #fff; overflow: hidden; }
.zoom-subject {
  width: min(800px, 80vw);
  aspect-ratio: 1 / 1;
  position: relative;
  --zs: 1;
  transform: scale(var(--zs));
  transition: filter 0.4s;
  will-change: transform;
}
.zoom-subject .surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.32), transparent 38%),
    radial-gradient(circle at 70% 75%, rgba(255,255,255,0.05), transparent 50%),
    radial-gradient(circle at 50% 50%, #2c2c2c, #0d0d0d 70%);
  box-shadow:
    0 60px 140px -20px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.zoom-subject .mesh {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 50%),
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,0.07) 0 1px,
      transparent 1px 6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.zoom-subject .ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
}

.zoom-copy {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 280px;
  opacity: var(--co, 0);
  transition: opacity 0.4s;
}
.zoom-copy h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 36px;
  margin-bottom: 14px;
}
.zoom-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   6. Color shift — palette cycles
   ============================================================ */

.colors { height: 360vh; }
.colors .pin-stage {
  background: var(--cbg, #f6f5f2);
  transition: background 0.6s ease;
}
.colors-stage {
  width: min(1280px, 92vw);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.colors .product .cup,
.colors .product .band { --tone: var(--ctone, #0a0a0a); }
.colors .product .cup { background: var(--ctone, #0a0a0a); box-shadow: inset 0 0 0 14px var(--ctone), inset 0 0 0 18px rgba(255,255,255,0.06); }
.colors .product .band { border-color: var(--ctone, #0a0a0a); }
.colors .product .cup::after {
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.12), transparent 55%), var(--ctone);
  filter: brightness(0.78);
}
.colors-info h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.colors-info .swatch-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.colors-info .swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s;
}
.colors-info .swatch.active { transform: scale(1.18); }
.colors-info .swatch.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.colors-info .name {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 22px;
  min-height: 1em;
}

/* ============================================================
   7. Horizontal scroll inside vertical scroll
   ============================================================ */

.hscroll { height: 320vh; }
.hscroll .pin-stage {
  background: var(--paper);
  display: block;
  overflow: hidden;
}
.hscroll-head {
  position: absolute;
  top: 12vh;
  left: 6vw;
  z-index: 3;
}
.hscroll-head h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hscroll-head p {
  margin-top: 14px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.hscroll-track {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 50vw;
  padding-right: 12vw;
  gap: 32px;
  transform: translateX(calc(var(--hx, 0) * -1px));
  will-change: transform;
}
.card {
  flex: 0 0 auto;
  width: 380px;
  height: 480px;
  background: #fff;
  border: var(--bezel);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.card .card-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.card h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.card .card-art {
  flex: 1;
  margin: 22px 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(10,10,10,0.05) 0 10px,
      transparent 10px 20px);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.card .card-art::after {
  content: attr(data-art);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* card variations for visual rhythm */
.card.dark { background: var(--ink); color: #fff; }
.card.dark .card-num, .card.dark p { color: rgba(255,255,255,0.55); }
.card.dark .card-art { background:
  repeating-linear-gradient(45deg,
    rgba(255,255,255,0.05) 0 10px,
    transparent 10px 20px); }
.card.dark .card-art::after { color: rgba(255,255,255,0.4); }
.card.tall { height: 540px; }
.card.short { height: 420px; }

/* ============================================================
   8. CTA / footer
   ============================================================ */

.cta {
  background: var(--paper);
  padding: 140px 32px 80px;
  text-align: center;
  border-top: var(--bezel);
}
.cta h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.cta-btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: transform 0.2s, opacity 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-sub {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  padding: 60px 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--bezel);
  font-size: 12px;
  color: var(--muted);
}
footer .links { display: flex; gap: 24px; }

/* ============================================================
   Tweaks panel
   ============================================================ */

#tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 280px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.3);
  padding: 0;
  font-size: 13px;
  display: none;
}
#tweaks.open { display: block; }
#tweaks header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}
#tweaks header button {
  font-size: 16px;
  opacity: 0.5;
}
#tweaks header button:hover { opacity: 1; }
#tweaks .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 18px; }
#tweaks .row { display: flex; flex-direction: column; gap: 6px; }
#tweaks .row label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
#tweaks .row label .val { font-family: ui-monospace, monospace; color: var(--ink); }
#tweaks input[type="range"] { width: 100%; accent-color: #0a0a0a; }
#tweaks .toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
#tweaks .switch {
  width: 36px; height: 20px;
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
#tweaks .switch::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.2s;
}
#tweaks .switch.on { background: #0a0a0a; }
#tweaks .switch.on::after { transform: translateX(16px); }

/* ============================================================
   MOBILE — stack columns, shorter pin tracks, smaller type
   The animation engine is unchanged; pin ranges shrink so the
   user doesn't have to scroll forever on a small screen.
   ============================================================ */

@media (max-width: 820px) {
  /* nav: hide middle links, keep logo + CTA */
  .nav { padding: 14px 18px; font-size: 12px; }
  .nav-links { display: none; }
  .nav-cta { padding: 7px 12px; font-size: 11px; }
  .nav-logo { font-size: 13px; letter-spacing: 0.16em; }

  /* progress dots smaller, off the right edge */
  .progress-dots { right: 12px; gap: 9px; }
  .progress-dots .dot { width: 4px; height: 4px; }

  /* product silhouette scales down */
  .product { width: min(280px, 70vw); }

  /* section labels smaller, less padding */
  .section-label, .section-label-r { top: 18px; }
  .section-label { left: 18px; }
  .section-label-r { right: 18px; }

  /* ---- 1. Hero ---- */
  .hero { height: 200vh; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    width: 100%;
    padding: 80px 22px 60px;
    align-content: center;
  }
  .hero-copy h1 {
    font-size: clamp(36px, 9.5vw, 56px);
    line-height: 0.98;
  }
  .hero-copy .lede { font-size: 14px; margin-top: 22px; }
  .hero-product { order: -1; height: auto; }
  .hero-product .product { width: min(220px, 55vw); }
  .scroll-hint { bottom: 18px; font-size: 9px; }
  .scroll-hint .line { height: 26px; }

  /* ---- 2. Image sequence ---- */
  .seq { height: 240vh; }
  .seq-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    width: 100%;
    padding: 70px 22px 70px;
  }
  .seq-left, .seq-right {
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
  }
  .seq-right { text-align: left; }
  .seq-counter { font-size: 9px; margin-top: 10px; }
  .seq-frame-note {
    font-size: 8px;
    bottom: -32px;
    white-space: normal;
    text-align: center;
    width: 90%;
  }

  /* ---- 3. Features ---- */
  .features { height: 280vh; }
  .features-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    width: 100%;
    padding: 60px 22px 90px;
    align-content: center;
  }
  .features-product .product { width: min(180px, 45vw); }
  .features-panels { min-height: 220px; }
  .feature-panel h2 {
    font-size: clamp(32px, 8vw, 44px);
    margin: 12px 0 14px;
  }
  .feature-panel p { font-size: 14px; }
  .feature-panel .num { font-size: 10px; }
  .feature-pager { bottom: 4%; }
  .feature-pager .bar { width: 24px; }

  /* ---- 4. Parallax ---- */
  .parallax { height: 120vh; }
  .layer-type { font-size: clamp(80px, 28vw, 160px); }
  .layer-caption { font-size: 13px; max-width: 32ch; padding: 0 22px; }

  /* ---- 5. Zoom ---- */
  .zoom { height: 220vh; }
  .zoom-subject { width: min(380px, 80vw); }
  .zoom-copy {
    left: 50%;
    bottom: 12%;
    top: auto;
    transform: translateX(-50%);
    text-align: center;
    max-width: 86vw;
    padding: 0 16px;
  }
  .zoom-copy h3 { font-size: 26px; margin-bottom: 8px; }
  .zoom-copy p { font-size: 13px; }

  /* ---- 6. Colors ---- */
  .colors { height: 280vh; }
  .colors-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    width: 100%;
    padding: 70px 22px 70px;
    align-content: center;
  }
  .colors-product .product { width: min(180px, 48vw); }
  .colors-info h2 {
    font-size: clamp(32px, 8vw, 44px);
    margin-bottom: 14px;
  }
  .colors-info p { font-size: 14px; }
  .colors-info .swatch { width: 26px; height: 26px; }

  /* ---- 7. Horizontal scroll ---- */
  .hscroll { height: 240vh; }
  .hscroll-head { top: 8vh; left: 22px; right: 22px; }
  .hscroll-head h2 { font-size: clamp(32px, 8vw, 48px); }
  .hscroll-head p { font-size: 13px; margin-top: 10px; }
  .hscroll-track {
    padding-left: 22px;
    padding-right: 22px;
    gap: 16px;
    align-items: flex-end;
    padding-bottom: 8vh;
  }
  .card {
    width: 240px;
    height: 320px;
    padding: 18px;
    border-radius: 3px;
  }
  .card.tall { height: 360px; }
  .card.short { height: 290px; }
  .card h3 { font-size: 22px; }
  .card p { font-size: 12px; }
  .card .card-num { font-size: 9px; }

  /* ---- CTA / footer ---- */
  .cta { padding: 90px 22px 60px; }
  .cta h2 { font-size: clamp(40px, 12vw, 80px); }
  .cta-btn { padding: 14px 26px; font-size: 13px; }
  .cta-sub { font-size: 12px; }
  footer {
    padding: 36px 22px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 11px;
  }
  footer .links { gap: 18px; flex-wrap: wrap; }

  /* ---- Tweaks panel ---- */
  #tweaks {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
  }
}

/* Tighter still for very small phones */
@media (max-width: 380px) {
  .hero-copy h1 { font-size: 34px; }
  .feature-panel h2,
  .colors-info h2,
  .hscroll-head h2 { font-size: 30px; }
  .card { width: 220px; height: 300px; }
}

/* Respect reduced-motion users — kill the heavy animations */
@media (prefers-reduced-motion: reduce) {
  .product, .zoom-subject, .layer, .hscroll-track {
    transition: none !important;
  }
  .scroll-hint .line { animation: none; }
}
