:root {
  color-scheme: dark;
  --bg: #0f1110;
  --ink: #f7f2e8;
  --line: rgba(247, 242, 232, 0.14);
  --mint: #7af1bf;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TradeMarkerLight";
  src: url("assets/TradeMarker-Light.otf?v=js2-original2") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

.gold-filter-definitions {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

@font-face {
  font-family: "Matrixtype Display";
  src: url("assets/js2-panel/MatrixtypeDisplay.ttf") format("truetype");
  font-display: swap;
}

/* JS2 experimental vocoder panel, independently scrolling behind the title. */
.jukebox {
  --panel-ink: #e7dfce;
  position: relative;
  z-index: 9;
  width: min(620px, calc(100% - 40px));
  margin: 24px auto 48px;
}
.guitar-intro {
  position: relative;
  z-index: 0;
  margin-bottom: 28px;
  padding: 20px 24px;
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.guitar-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px;
  pointer-events: none;
  background: rgba(15, 17, 16, 0.64);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent),
    linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image:
    linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent),
    linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.guitar-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.guitar-intro p { margin: 0; }
.guitar-intro p + p { margin-top: 16px; }
.jukebox-body {
  padding: 20px 24px 16px;
  border: 1px solid #b39050;
  border-radius: 6px;
  color: var(--panel-ink);
  background: url("assets/js2-panel/panel-texture.png") 0 0 / 128px 128px,
    radial-gradient(76% 105% at 42% -28%, #c5a2640c, transparent 48%),
    linear-gradient(150deg, #242321 0%, #171918 52%, #0d1010 100%);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 1px 1px 0 #efd49a45, inset -1px -1px 0 #78582b80, 0 20px 50px #0008;
}
.jukebox-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 1024px) {
  .jukebox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
    width: min(1268px, calc(100% - 48px));
  }
  .guitar-intro { min-width: 0; margin-bottom: 0; }
}
.jukebox-console { min-width: 0; }
.jukebox-lcd-module {
  position: relative; width: 100%; margin: 0 auto; padding: 4px;
  border: 1px solid #ad8b4b80; border-radius: 3px;
  background: #121414;
  box-shadow: 0 2px 4px #0006;
}
.jukebox-display {
  position: relative; isolation: isolate; width: 100%; height: 160px;
  overflow: hidden; border-radius: 1px; background: #020406;
}
.jukebox-display > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.jukebox-lcd-source { z-index: 1; image-rendering: pixelated; }
.jukebox-lcd-output { z-index: 2; }
.jukebox-display::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(104deg, #e6f2f60a, transparent 20% 74%, #cee2e804), linear-gradient(180deg, #ecf6f805, transparent 25% 82%, #00000014); }
.jukebox-lcd-copy { display: flex; flex-direction: column; gap: 6px; padding: 8px; color: #76e0ff; font: 0.75rem monospace; }
.js .jukebox-lcd-copy, .jukebox-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.jukebox-controls { display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px 8px; border: 1px solid #b898593d; border-radius: 4px; background: #0b0d0c80; box-shadow: inset 1px 1px 0 #ffffff0e, inset -1px -1px 0 #0006; }
.jukebox-knob { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.jukebox-knob-face { position: relative; display: block; width: 40px; height: 40px; }
.jukebox-knob-face canvas { display: block; width: 100%; height: 100%; }
.jukebox-knob-face input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ns-resize; touch-action: none; }
.jukebox-knob:has(input:focus-visible) .jukebox-knob-label { text-decoration: underline; text-underline-offset: 3px; }
.jukebox-knob-face:has(input:disabled) { opacity: 0.5; }
.jukebox-knob-label { color: #d8c8a5; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
.jukebox-knob-value { color: #aea38d; font: 0.61rem ui-monospace, monospace; white-space: nowrap; }
.jukebox[data-knob-fallback="true"] .jukebox-knob-face input { opacity: 1; }
.jukebox-transport { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.jukebox-transport button, .jukebox-dock button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #b797586b; border-radius: 4px; background: linear-gradient(#34332e, #151817); color: #e5cc90; cursor: pointer; }
.jukebox-transport .jukebox-play { min-width: 92px; border-color: #c6a365; background: linear-gradient(#655232, #30291d); font-size: 0.72rem; }
.jukebox-transport svg, .jukebox-dock svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.jukebox-pause-icon { display: none; stroke-width: 4; }
[data-playing="true"] .jukebox-play-icon { display: none; }
[data-playing="true"] .jukebox-pause-icon { display: block; }
.jukebox-library { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; height: clamp(260px, 33svh, 360px); }
.jukebox-tracks { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #a58a54 #101312; padding: 4px 8px 4px 4px; border: 1px solid #aa8d5530; border-radius: 4px; background: #080b0b66; }
.jukebox-tracks::-webkit-scrollbar { width: 7px; }
.jukebox-tracks::-webkit-scrollbar-track { background: #101312; border-radius: 4px; }
.jukebox-tracks::-webkit-scrollbar-thumb { background: #a58a54; border-radius: 4px; }
.jukebox-track { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; min-height: 56px; min-width: 0; padding: 8px 12px; border: 1px solid #b596573d; border-radius: 3px; background: linear-gradient(#282a27, #151917); color: #e7dfce; text-align: left; cursor: pointer; }
.jukebox-track-number { flex: none; padding-right: 12px; border-right: 1px solid #b596573d; color: #bba779; font: 0.8rem ui-monospace, monospace; }
.jukebox-track-copy { display: grid; gap: 2px; overflow: hidden; }
.jukebox-track-copy strong { font-size: 0.78rem; font-weight: 500; line-height: 1.3; }
.jukebox-track-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.65rem; color: #b0a795; line-height: 1.3; }
.jukebox-track-light { flex: none; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #27291d; }
.jukebox-track[aria-pressed="true"] { border-color: #c3a26899; background: linear-gradient(#3b372a, #26261d); }
.jukebox-track[aria-pressed="true"] .jukebox-track-light { background: #60ff7a; box-shadow: 0 0 6px #60ff7a80; }
.jukebox-track:hover { filter: brightness(1.16); }
.jukebox button:focus-visible, .jukebox-tracks:focus-visible, .jukebox-dock button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.jukebox-dock { position: fixed; z-index: 30; bottom: 18px; left: 18px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 36px); padding: 7px 10px 7px 16px; border: 1px solid #b39050; border-radius: 6px; background: #151917f5; box-shadow: 0 5px 24px #0006; color: #e7dfce; }
.jukebox-dock-number { font: 0.72rem ui-monospace, monospace; color: var(--mint); }
.jukebox-dock-title { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
.jukebox-dock button { flex: none; }
.jukebox-controls[hidden], .jukebox-dock[hidden], #jukebox-audio[hidden], .jukebox-lcd-output[hidden] { display: none; }
#jukebox-audio { width: 100%; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .js .jukebox { position: absolute; top: max(120px, 17svh); left: 50%; margin: 0; transform: translate(-50%, var(--jukebox-y, 0px)); }
}
@media (max-width: 620px) {
  .jukebox { width: calc(100% - 28px); }
  .guitar-intro { padding: 16px 14px; }
  .jukebox-body { padding: 14px 14px 12px; }
  .jukebox-body { gap: 14px; }
  .jukebox-controls { grid-template-columns: 64px 1fr 64px; gap: 4px; padding: 8px 4px; }
  .jukebox-knob-label { font-size: 0.59rem; }
  .jukebox-knob-value { font-size: 0.5rem; }
  .jukebox-transport { display: grid; grid-template-columns: repeat(2, 44px); gap: 4px; }
  .jukebox-transport button { padding: 6px; }
  .jukebox-transport .jukebox-play { min-width: 44px; grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .jukebox-transport [data-jukebox-step="-1"] { grid-column: 1; grid-row: 2; }
  .jukebox-transport [data-jukebox-step="1"] { grid-column: 2; grid-row: 2; }
  .jukebox-play > span { display: none; }
  .jukebox-library { height: clamp(300px, 40svh, 380px); }
  @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    .js .jukebox { top: max(96px, 12svh); }
  }
}

main {
  position: relative;
}

.hero {
  position: relative;
  min-height: 84svh;
}

.hero-stage {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 17, 16, 0.92) 0%, rgba(15, 17, 16, 0.7) 38%, rgba(15, 17, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 17, 16, 0.9) 0%, rgba(15, 17, 16, 0) 45%),
    url("assets/jam-synth-2-hero.png?v=20260904-current-screen") center / cover no-repeat;
}

.hero-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg, var(--bg), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  inset: auto;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 20px;
  text-align: center;
}

.hero-lockup {
  display: inline-flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

h1 {
  position: relative;
  display: inline-grid;
  isolation: isolate;
  margin: 0;
  font-family: "TradeMarkerLight", ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, min(calc(9vw + 1rem), calc((100vw - 40px) / 7.15)), 9rem);
  letter-spacing: 0.01em;
  line-height: 0.92;
}

h1 > span {
  grid-area: 1 / 1;
}

.hero-tagline {
  width: 100vw;
  max-width: none;
  align-self: center;
  margin: clamp(12px, 2vw, 20px) 0 0;
  padding-inline: clamp(12px, 2vw, 28px);
  color: rgba(247, 242, 232, 0.92);
  font-size: clamp(0.9rem, 1.55vw, 1.25rem);
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-align: left;
}

.hero-tagline-track {
  display: block;
}

.hero-tagline-segment[aria-hidden="true"] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .js .hero {
    min-height: calc(100svh + var(--scene-scroll, 1380svh));
  }

  .js .hero-stage {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100svh;
    display: block;
  }

  .js .hero-inner {
    position: absolute;
    z-index: 10;
    inset: 0 0 auto;
    height: 100%;
    padding: clamp(28px, 6svh, 68px) 0 0;
    pointer-events: none;
  }

  .js .hero-lockup {
    transform: translate3d(0, var(--title-y, 0), 0);
    will-change: transform;
  }

  .js h1 {
    transform: scale(var(--title-scale, 0.56));
    transform-origin: center bottom;
    will-change: transform;
  }

  .js .hero-tagline {
    overflow: hidden;
  }

  .js .hero-tagline-track {
    display: flex;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    transform: translate3d(var(--tagline-x, 0px), 0, 0);
    will-change: transform;
  }

  .js .hero-tagline-segment {
    display: block;
    flex: none;
  }

  .js .hero-tagline-segment::after {
    content: "\00a0  • \00a0 ";
  }
}

.gold-title-depth {
  color: #895716;
  transform: translateY(0.015em);
  text-shadow:
    0 0.012em 0 #d7aa52,
    0 0.027em 0 #93601c,
    0 0.042em 0 #56310b,
    0 0.055em 0 #2c1805,
    0 0.08em 0.07em rgba(0, 0, 0, 0.72),
    0 0.16em 0.24em rgba(0, 0, 0, 0.65);
  pointer-events: none;
  user-select: none;
}

.gold-title-face {
  position: relative;
  color: #e9c46b;
}

.gold-title-reflection,
.gold-title-spark {
  display: none;
  pointer-events: none;
  user-select: none;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .gold-title-face {
    /* Narrow bright/dark reflections give polished metal its contrast. */
    background-image: linear-gradient(180deg,
      #fff5ce 0%, #efcf7d 15%, #d6a346 28%, #93601a 39%,
      #fff8d8 43%, #ffe7a1 48%, #c58b29 60%, #8d5714 73%,
      #d6a44d 86%, #fff0b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 0.006em rgba(255, 223, 147, 0.7);
    filter: drop-shadow(0 -0.009em 0 #fff4cd) drop-shadow(0 0.012em 0 #6d4210);
  }

}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .js .gold-title-reflection {
    position: relative;
    z-index: 1;
    display: block;
    background-image: linear-gradient(90deg,
      transparent calc(var(--gold-reflection-x, -15%) - 8%),
      rgba(255, 229, 145, 0.04) calc(var(--gold-reflection-x, -15%) - 6%),
      rgba(255, 245, 202, 0.38) calc(var(--gold-reflection-x, -15%) - 3.2%),
      rgba(255, 254, 232, 0.94) calc(var(--gold-reflection-x, -15%) - 0.8%),
      #fffef4 var(--gold-reflection-x, -15%),
      rgba(255, 248, 211, 0.72) calc(var(--gold-reflection-x, -15%) + 1.2%),
      rgba(255, 221, 117, 0.16) calc(var(--gold-reflection-x, -15%) + 4.2%),
      transparent calc(var(--gold-reflection-x, -15%) + 8%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 0.025em rgba(255, 240, 184, 0.42));
  }

  .js .gold-title-spark {
    position: relative;
    z-index: 2;
    display: block;
    background-image: radial-gradient(ellipse 0.065em 0.024em at var(--gold-reflection-x, -15%) 40%,
      #fff 0 34%, rgba(255, 254, 244, 0.98) 65%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: var(--gold-spark-opacity, 0);
    filter: url("#gold-glint-rays");
    transform: rotate(var(--gold-spark-rotation, -26deg));
    transform-origin: var(--gold-reflection-x, -15%) 40%;
  }
}

@media (forced-colors: active) {
  .gold-title-depth,
  .gold-title-reflection,
  .gold-title-spark {
    display: none;
  }

  .gold-title-face {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    -webkit-text-stroke: 0;
    filter: none;
  }
}

.panel-showcase {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(72, 83, 73, 0.16), transparent 54%),
    var(--bg);
}

.panel-showcase-stage {
  width: 100%;
}

.panel-showcase-viewport {
  width: 100%;
}

.panel-showcase-track {
  display: grid;
  gap: 28px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0;
}

.panel-card {
  display: grid;
  grid-template:
    "title copy" auto
    "visual copy" auto /
    minmax(0, 1040px) minmax(360px, 1fr);
  align-items: center;
  align-content: center;
  column-gap: clamp(20px, 2vw, 32px);
  row-gap: clamp(12px, 1.8svh, 18px);
  min-width: 0;
  padding: clamp(14px, 1.4vw, 20px);
  border-block: 1px solid var(--line);
  background: rgba(8, 10, 9, 0.72);
}

.panel-visual {
  grid-area: visual;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 1040px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  box-shadow:
    -1px -1px 0 rgba(224, 235, 255, 0.18),
    1px 1px 0 rgba(0, 0, 0, 0.82),
    0 5px 8px rgba(0, 0, 0, 0.46),
    0 18px 28px rgba(0, 0, 0, 0.5);
}

.panel-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 0 rgba(236, 243, 255, 0.22),
    inset -1px -1px 0 rgba(0, 0, 0, 0.78),
    inset 0 0 0 1px rgba(6, 9, 14, 0.38);
  pointer-events: none;
}

.panel-crop {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
  background: transparent;
}

.panel-card--half .panel-visual,
.panel-card--half .panel-crop,
.panel-card--half .panel-title {
  max-width: 683px;
}

.panel-card--half .panel-visual,
.panel-card--half .panel-title {
  margin-inline: auto;
}

.panel-pair {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  width: 100%;
  max-width: 1040px;
}

.panel-pair-item {
  min-width: 0;
  width: min(100%, 760px);
  margin-inline: auto;
  display: grid;
  gap: clamp(12px, 1.8svh, 18px);
}

.panel-pair .panel-title,
.panel-pair .panel-visual {
  grid-area: auto;
}

/* At 75% size and 2× density, each two-source-pixel grid cell spans exactly
   three device pixels at normal zoom in Quadroplate. Match Harmonizer's width
   above it, retaining both original images and their intrinsic aspect ratios. */
.panel-pair-item--harmonizer,
.panel-pair-item--quadroplate {
  width: min(100%, 1024.5px);
}

.panel-copy--pair {
  display: grid;
  gap: clamp(24px, 4svh, 40px);
}

.panel-copy {
  grid-area: copy;
  align-self: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-left: clamp(16px, 1.5vw, 24px);
  border-left: 1px solid rgba(122, 241, 191, 0.34);
  text-align: left;
}

.panel-type {
  display: block;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-title {
  grid-area: title;
  width: 100%;
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: left;
}

.panel-copy ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 0.42rem;
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  color: rgba(247, 242, 232, 0.82);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  line-height: 1.48;
}

.panel-copy li + li {
  margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .js .panel-showcase {
    position: absolute;
    inset: clamp(142px, 22svh, 208px) 0 clamp(16px, 3svh, 30px);
    min-height: 0;
    background: none;
    transform: translate3d(0, var(--carousel-y, 100svh), 0);
    visibility: hidden;
  }

  .js .panel-showcase-stage {
    height: 100%;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 0;
  }

  .js .panel-showcase-viewport {
    overflow: hidden;
  }

  .js .panel-showcase-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    margin: 0;
    padding: 0 16px;
    transform: translate3d(var(--panel-showcase-x, 0px), 0, 0);
    will-change: transform;
  }

  .js .panel-card {
    flex: 0 0 min(calc(100vw - 32px), 1700px);
    height: min(72svh, 680px);
  }

}

.scroll-product {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background:
    linear-gradient(180deg, #0f1110 0%, #1d211d 42%, #111412 100%),
    var(--bg);
}

.scroll-product-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template: auto / minmax(0, 1fr);
  align-items: start;
  padding: 0;
  overflow: visible;
}

.sequence-stage {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  align-self: start;
  min-width: 0;
  height: 100svh;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  align-items: center;
  align-content: center;
  overflow: visible;
  padding: 12px clamp(12px, 2vw, 40px);
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .js .scroll-product {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: none;
  }

  .js .scroll-product-layout {
    height: 100%;
  }

  .js .sequence-stage {
    --tablet-rest-y: -9svh;
    /* Leave room below the tablet for the title to settle. */
    transform: translate3d(0, calc(var(--tablet-rest-y) + var(--tablet-scene-y, 105svh)), 0);
  }

  .js .tablet-story {
    position: absolute;
    z-index: 3;
    top: 100%;
    left: 50%;
    width: min(52rem, calc(100% - 48px));
    transform: translate3d(-50%, var(--story-y, 0px), 0);
    pointer-events: none;
  }
}

.tablet-canvas {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin-left: auto;
  /* Render WebGL directly; CSS filters add an unnecessary rasterized layer. */
  opacity: 0;
  transition: opacity 240ms ease;
}

.webgl-ready .tablet-canvas {
  opacity: 1;
}

.webgl-ready .sequence-fallback {
  opacity: 0;
}

.sequence-frame {
  grid-area: 1 / 1;
  width: min(100%, 1516px);
  height: auto;
  max-height: 100%;
  align-self: center;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42));
}

.js .sequence-fallback {
  opacity: 0;
}

.js.webgl-failed .sequence-fallback {
  opacity: 1;
}

.tablet-screen-surface {
  grid-area: 1 / 1;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: clip;
  pointer-events: none;
}

.tablet-screen-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 771px;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  transform-origin: 0 0;
  visibility: hidden;
}

.tablet-screen-plane img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: fill;
  pointer-events: none;
}

.tablet-scroll-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
  /* Keep gestures in the parent page, above the composited media.
     No listeners: scrolling stays native. Controls sit above. */
}

.tablet-screen-plane video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: fill;
  pointer-events: none;
}

.tablet-screen-plane video[hidden] { display: none; }

.tablet-demo-controls {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  transform-origin: 0 0;
  backface-visibility: hidden;
  z-index: 2;
}

.tablet-demo-controls[hidden] { display: none; }

.tablet-demo-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--mint);
  cursor: pointer;
}

.tablet-demo-controls svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tablet-demo-controls button[data-playback-state="playing"] .play-icon,
.tablet-demo-controls button:not([data-playback-state="playing"]) .pause-icon {
  display: none;
}

.tablet-demo-controls button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero-stage {
    background-position: 58% center;
  }

  .hero-inner {
    padding: 104px 0 44px;
  }

  .panel-showcase-track {
    width: min(100% - 28px, 1120px);
  }

  .panel-card {
    grid-template:
      "title" auto
      "visual" auto
      "copy" auto /
      minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .panel-card--pair {
    grid-template:
      "pair" auto
      "copy" auto /
      minmax(0, 1fr);
  }

  .panel-pair {
    grid-area: pair;
  }

  .panel-copy {
    padding: 12px 0 0;
    border-top: 1px solid rgba(122, 241, 191, 0.34);
    border-left: 0;
  }

  .panel-title {
    font-size: clamp(1rem, 4vw, 1.35rem);
  }

  .panel-copy ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 1rem;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.36;
  }

  .panel-type {
    font-size: 0.62rem;
  }

  @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    .js .hero-inner {
      padding: clamp(24px, 5svh, 44px) 0 0;
    }

    .js .panel-showcase {
      inset: clamp(112px, 17svh, 150px) 0 clamp(12px, 2svh, 20px);
    }

    .js .panel-card {
      flex-basis: 94vw;
      height: min(70svh, 620px);
    }

    .js .sequence-stage {
      --tablet-rest-y: -6svh;
    }
  }

  .sequence-stage {
    padding: 12px;
  }

  .sequence-frame {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .panel-copy {
    padding: 14px 0 0;
  }

  .panel-copy ul {
    grid-template-columns: minmax(0, 1fr);
  }

  @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    .js .panel-card {
      height: min(76svh, 650px);
    }
  }
}

@media (max-height: 500px) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .js .hero-inner {
    padding-top: 16px;
  }

  .js .panel-showcase {
    inset: 116px 0 8px;
  }

  .js .panel-card {
    height: calc(100svh - 124px);
    gap: 8px;
    padding-block: 8px;
  }

  .js .panel-crop {
    max-height: max(80px, calc(100svh - 230px));
  }

  .js .panel-copy {
    padding-top: 6px;
  }

  .js .panel-title {
    font-size: clamp(0.8rem, 3svh, 1rem);
  }

  .js .panel-type {
    font-size: 0.5rem;
  }

  .js .panel-copy ul {
    row-gap: 0.15rem;
    font-size: clamp(0.55rem, 2.4svh, 0.7rem);
    line-height: 1.18;
  }

  .js .panel-card--pair .panel-crop {
    max-height: max(45px, calc((100svh - 200px) / 2));
  }
}
