/*
  Shared design language for every interior "world" page (machine hubs,
  category pages, about, latest drops, neural seq, support, contact).
  Loads on top of am-design-system-2026.css (tokens, header, footer,
  kicker/action/text-link primitives) and am-home-2026.css (the .am-product
  card system, reused here so featured products look identical to Home).
  This file only adds what those two don't already cover: the interior
  hero, a bento feature block, a compatibility logo marquee, and a
  lightweight product-list section wrapper.
*/

/* ---------- Interior hero ---------- */

.am-world-hero {
  position: relative;
  min-height: 78dvh;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: var(--am-black);
}

.am-world-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  clip-path: inset(0);
  will-change: clip-path;
}

.am-world-hero-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0) translateY(-5%) scale(1.06);
  will-change: transform;
}

.am-world-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.15) 0%, rgba(8, 9, 8, 0.2) 40%, rgba(8, 9, 8, 0.97) 100%),
    linear-gradient(90deg, rgba(8, 9, 8, 0.92) 0%, rgba(8, 9, 8, 0.42) 46%, rgba(8, 9, 8, 0.05) 78%);
}

.am-world-hero-inner {
  position: relative;
  display: grid;
  gap: 26px;
  max-width: 62ch;
  padding: 168px 0 76px;
}

.am-world-hero-inner h1 {
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  font-weight: 500;
  line-height: 0.92;
  text-wrap: balance;
}

.am-world-hero-inner p {
  max-width: 56ch;
  color: var(--am-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.am-world-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
}

/* ---------- Bento feature (one product singled out) ---------- */

.am-world-bento {
  padding: var(--am-section-pad, 120px) 0;
  border-top: 1px solid var(--am-line);
  background: #0d100e;
}

.am-world-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.am-world-bento-media {
  position: relative;
  overflow: hidden;
  background: var(--am-panel);
}

.am-world-bento-media img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 700ms var(--am-ease);
}

.am-world-bento-media:hover img {
  transform: scale(1.09);
}

.am-world-bento-copy h2 {
  margin: 0.3em 0 0.2em;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  font-weight: 500;
  line-height: 0.92;
  text-wrap: balance;
}

.am-world-bento-copy > p {
  max-width: 58ch;
  color: var(--am-muted);
  line-height: 1.6;
}

.am-world-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.am-world-facts span {
  padding: 9px 14px;
  border: 1px solid var(--am-line);
  color: rgba(239, 237, 231, 0.8);
  font-family: "AM Mono", monospace;
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  .am-world-bento-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product list section (reuses .am-product from Home) ---------- */

.am-world-products {
  padding: var(--am-section-pad, 120px) 0;
}

.am-world-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
}

@media (max-width: 1180px) {
  .am-world-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .am-world-products-grid { grid-template-columns: 1fr; }
}

.am-world-products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--am-line);
}

.am-world-products-status {
  margin: 0;
  color: rgba(239, 237, 231, 0.5);
  font-family: "AM Mono", monospace;
  font-size: 0.66rem;
}

.am-world-products-toolbar .am-text-link {
  flex: 0 0 auto;
}

/* ---------- Compact fact cards (About "producer-led" style rows) ---------- */

.am-world-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}

.am-world-cards article,
.am-world-cards a {
  display: block;
  min-width: 0;
  padding: clamp(20px, 4vw, 46px);
  background: var(--am-black);
  transition: background-color 320ms var(--am-ease);
}

.am-world-cards a {
  position: relative;
}

.am-world-cards a:hover {
  background: #101210;
}

.am-world-cards a::after {
  content: "↗";
  position: absolute;
  top: clamp(30px, 4vw, 46px);
  right: clamp(30px, 4vw, 46px);
  color: var(--am-muted);
  transition: transform 260ms var(--am-ease);
}

.am-world-cards a:hover::after {
  transform: translate(3px, -3px);
}

.am-world-cards h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 500;
  overflow-wrap: break-word;
}

.am-world-cards p {
  margin: 0;
  color: var(--am-muted);
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (max-width: 760px) {
  .am-world-cards { grid-template-columns: 1fr; }
}

/* Four-column variant (used by denser fact rows) needs its own step-down —
   an inline style would beat this media query on specificity, so it is
   always applied as a class instead of an inline grid-template-columns. */
.am-world-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .am-world-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .am-world-cards--4 { grid-template-columns: 1fr; }
}

/* ---------- Compatibility logo marquee ---------- */

.am-logo-marquee {
  overflow: hidden;
  padding: 56px 0;
  border-top: 1px solid var(--am-line);
  border-bottom: 1px solid var(--am-line);
  background: var(--am-black);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.am-logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  width: max-content;
  animation: am-marquee 32s linear infinite;
}

.am-logo-marquee-track img {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.5;
}

@keyframes am-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .am-logo-marquee-track { animation: none; }
}

/* ---------- Breadcrumb-style kicker link back to a parent world ---------- */

.am-world-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(239, 237, 231, 0.56);
  font-family: "AM Mono", monospace;
  font-size: 0.66rem;
}

/* ---------- Section heading reused across interior pages ---------- */

.am-world-page .am-section-heading h2 {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
}

@media (max-width: 760px) {
  .am-world-hero-inner { padding: 128px 0 56px; }
  .am-world-bento,
  .am-world-products {
    padding: 84px 0 96px;
  }
}

/* ---------- Support / documentation components ---------- */

.am-quick-nav {
  position: sticky;
  top: var(--am-header-height);
  z-index: 20;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--am-line);
  background: rgba(8, 9, 8, 0.92);
  backdrop-filter: blur(14px);
}

.am-quick-nav::-webkit-scrollbar { display: none; }

.am-quick-nav-inner {
  display: flex;
  width: max-content;
  min-width: 100%;
}

.am-quick-nav a {
  flex: 0 0 auto;
  padding: 18px 20px;
  border-right: 1px solid var(--am-line);
  color: var(--am-muted);
  font-family: "AM Mono", monospace;
  font-size: 0.66rem;
  transition: color 220ms var(--am-ease);
}

.am-quick-nav a:hover { color: var(--am-paper); }

.am-diagnostic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}

.am-diagnostic > div {
  min-height: 180px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: var(--am-black);
}

.am-diagnostic strong {
  font-family: "AM Mono", monospace;
  font-size: 0.68rem;
  color: var(--am-red);
}

.am-diagnostic span {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.am-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}

.am-platforms > div {
  padding: clamp(26px, 4vw, 44px);
  background: var(--am-black);
}

.am-platforms h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 500;
}

.am-platforms ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-platforms li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--am-line);
  color: rgba(239, 237, 231, 0.8);
  line-height: 1.55;
}

.am-platforms li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--am-red);
}

.am-delivery {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}

.am-delivery > div {
  padding: clamp(28px, 5vw, 52px);
  background: var(--am-black);
}

.am-delivery h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  margin: 0 0 18px;
}

.am-delivery img {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0;
  background: #0b0b0b;
}

.am-sequence {
  counter-reset: am-step;
  margin-top: 20px;
}

.am-sequence p {
  counter-increment: am-step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--am-line);
  color: rgba(239, 237, 231, 0.8);
  line-height: 1.55;
}

.am-sequence p::before {
  content: counter(am-step, decimal-leading-zero);
  color: var(--am-red);
  font-family: "AM Mono", monospace;
  font-size: 0.68rem;
}

.am-notice {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--am-panel);
  color: rgba(239, 237, 231, 0.85);
  line-height: 1.6;
}

.am-notice strong { color: var(--am-red); }

.am-policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 74ch;
}

.am-policy-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--am-line);
  color: rgba(239, 237, 231, 0.8);
  line-height: 1.55;
}

.am-policy-list li:last-child { border-bottom: 1px solid var(--am-line); }

.am-policy-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 6px;
  height: 6px;
  background: var(--am-red);
}

.am-contact-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}

.am-contact-gate > div {
  padding: clamp(30px, 5vw, 54px);
  background: var(--am-black);
}

.am-required-data {
  font-family: "AM Mono", monospace;
  font-size: 0.76rem;
}

.am-required-data span {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--am-line);
  color: rgba(239, 237, 231, 0.8);
}

.am-required-data b {
  display: inline-block;
  width: 28px;
  color: var(--am-red);
}

@media (max-width: 900px) {
  .am-diagnostic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-platforms,
  .am-delivery,
  .am-contact-gate {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .am-diagnostic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Contact form ---------- */

.am-contact-form {
  display: grid;
  gap: 18px;
}

.am-contact-form label {
  display: grid;
  gap: 8px;
  font-family: "AM Mono", monospace;
  font-size: 0.66rem;
  color: var(--am-muted);
}

.am-contact-form input,
.am-contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--am-line);
  background: var(--am-panel);
  color: var(--am-paper);
  font-family: "AM Grotesk", sans-serif;
  font-size: 0.95rem;
}

.am-contact-form textarea { min-height: 140px; resize: vertical; }

.am-contact-form input:focus,
.am-contact-form textarea:focus {
  outline: none;
  border-color: var(--am-paper);
}

.am-contact-form button {
  justify-self: start;
}

.am-contact-form .am-form-status {
  min-height: 1.2em;
  color: var(--am-muted);
  font-family: "AM Mono", monospace;
  font-size: 0.68rem;
}

.am-contact-channels {
  display: grid;
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
  margin-top: 28px;
}

.am-contact-channels a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--am-black);
  transition: background-color 260ms var(--am-ease);
}

.am-contact-channels a:hover { background: #101210; }

.am-contact-channels b {
  font-family: "AM Mono", monospace;
  font-size: 0.66rem;
  color: var(--am-muted);
  font-weight: 400;
}

.am-contact-channels span { font-size: 0.92rem; }

/* =========================================================================
   VOLTRA — flagship software product page. Same tokens, grain, header,
   footer and motion system as Home; these components exist only because
   a synth interface needs bigger image grids, a real audio deck and an
   image gallery that Home's own components don't cover.
   ========================================================================= */

/* Sound Map: four real screenshots standing in for four sound categories —
   never a generic icon or gradient blob. Natural aspect ratio per image
   (no object-fit: cover) since these are dense control panels, not photos;
   cropping one destroys the thing it's supposed to prove. */
.am-sound-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}

.am-sound-map-card {
  display: flex;
  flex-direction: column;
  background: var(--am-black);
  transition: background-color 320ms var(--am-ease);
}

.am-sound-map-card:hover {
  background: #101210;
}

.am-sound-map-card figure {
  margin: 0;
  overflow: hidden;
  background: #050605;
  border-bottom: 1px solid var(--am-line);
}

.am-sound-map-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--am-ease);
}

.am-sound-map-card:hover img {
  transform: scale(1.035);
}

.am-sound-map-copy {
  padding: clamp(24px, 3vw, 34px);
}

.am-sound-map-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 500;
}

.am-sound-map-card p {
  margin: 0;
  color: var(--am-muted);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .am-sound-map-grid { grid-template-columns: 1fr; }
}

/* Voltra's hero is stacked, not side-by-side: headline first, then the
   complete instrument screenshot at its real proportions immediately
   below. A framed panel forced the image into a fixed box last round and
   ended up cropping the synth — nothing here ever constrains an image's
   height, so nothing is ever cut off. */
.am-voltra-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--am-black);
  padding: 148px max(32px, calc((100vw - var(--am-shell)) / 2 + 32px)) 0;
}

.am-voltra-hero-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.am-voltra-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.38);
  transform: translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0) scale(1.04);
}

.am-voltra-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 8, 0.3) 0%, rgba(8, 9, 8, 0.55) 55%, rgba(8, 9, 8, 0.98) 100%);
}

.am-voltra-hero-copy {
  position: relative;
  display: grid;
  gap: 20px;
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.am-voltra-wordmark {
  line-height: 0;
}

.am-voltra-wordmark img {
  display: block;
  width: clamp(220px, 30vw, 420px);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

.am-voltra-hero-copy p {
  max-width: 52ch;
  color: var(--am-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.am-voltra-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.am-voltra-hero-facts span {
  padding: 9px 14px;
  border: 1px solid var(--am-line);
  color: rgba(239, 237, 231, 0.82);
  font-family: "AM Mono", monospace;
  font-size: 0.68rem;
}

.am-voltra-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}

.am-voltra-hero-panel {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.am-voltra-hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--am-line);
  background: var(--am-panel);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.55);
}

.am-voltra-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.am-voltra-hero-strip {
  display: flex;
  gap: 1px;
  margin-top: 1px;
  background: var(--am-line);
}

.am-voltra-hero-strip div {
  flex: 1;
  padding: 16px 18px;
  background: var(--am-black);
}

.am-voltra-hero-strip dt {
  margin: 0 0 6px;
  font-family: "AM Mono", monospace;
  font-size: 0.6rem;
  color: var(--am-muted);
}

.am-voltra-hero-strip dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .am-voltra-hero {
    padding-top: 120px;
  }
  .am-voltra-hero-strip {
    flex-wrap: wrap;
  }
  .am-voltra-hero-strip div {
    flex: 1 1 50%;
  }
}

/* ---- Statement / manifesto ---- */

.am-statement {
  padding: 96px 0;
  background: var(--am-black);
  border-top: 1px solid var(--am-line);
}

.am-statement p {
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  text-align: center;
  color: var(--am-paper);
}

/* ---- Feature media: one full screenshot, then supporting crops ----
   Every source image here comes from a real, differently-cropped
   screenshot — a 6:1 oscillator strip next to a near-square Resonator
   shot. Forcing them into equal-height cells with object-fit: cover
   crops the actual UI out of frame, which is exactly wrong for "this is
   the real interface" screenshots. Nothing below ever crops: each image
   keeps its own width:100% / height:auto, so it is always shown whole. */

.am-feature-primary {
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--am-panel);
  border: 1px solid var(--am-line);
}

.am-feature-primary img {
  display: block;
  width: 100%;
  height: auto;
}

.am-feature-primary figcaption {
  padding: 16px 18px;
  color: var(--am-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  border-top: 1px solid var(--am-line);
}

.am-feature-details {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.am-feature-details figure {
  margin: 0;
  overflow: hidden;
  background: var(--am-panel);
  border: 1px solid var(--am-line);
}

.am-feature-details img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--am-ease);
}

.am-feature-details figure:hover img {
  transform: scale(1.025);
}

.am-feature-details figcaption {
  padding: 13px 15px;
  color: var(--am-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  border-top: 1px solid var(--am-line);
}

@media (max-width: 760px) {
  .am-feature-details {
    grid-template-columns: 1fr;
  }
}

/* ---- Stat grid (numeric facts) ---- */

.am-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
  margin-top: 26px;
}

.am-stat-grid > div {
  padding: 22px 22px 20px;
  background: var(--am-black);
}

.am-stat-grid dt {
  margin: 0 0 8px;
  font-family: "AM Mono", monospace;
  font-size: 0.62rem;
  color: var(--am-muted);
}

.am-stat-grid dd {
  margin: 0;
  font-family: "AM Display", "AM Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .am-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Skin rack ---- */

.am-skin-rack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.am-skin-card {
  display: grid;
  gap: 14px;
}

.am-skin-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--am-panel);
  border: 1px solid var(--am-line);
}

.am-skin-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--am-ease);
}

.am-skin-card:hover img {
  transform: scale(1.035);
}

.am-skin-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.am-skin-card p {
  margin-top: 6px;
  color: var(--am-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .am-skin-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Gallery ---- */

.am-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.am-gallery-viewer {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #050605;
  border: 1px solid var(--am-line);
}

.am-gallery-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 260ms var(--am-ease), transform 260ms var(--am-ease);
}

.am-gallery-controls {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.am-gallery-controls button {
  padding: 12px 14px;
  border: 1px solid var(--am-line);
  background: var(--am-black);
  color: rgba(239, 237, 231, 0.6);
  font-family: "AM Mono", monospace;
  font-size: 0.66rem;
  text-align: left;
  cursor: pointer;
  transition: color 220ms var(--am-ease), border-color 220ms var(--am-ease), background-color 220ms var(--am-ease);
}

.am-gallery-controls button:hover,
.am-gallery-controls button.is-active {
  color: var(--am-paper);
  border-color: var(--am-red);
  background: #101210;
}

@media (max-width: 900px) {
  .am-gallery-layout { grid-template-columns: 1fr; }
  .am-gallery-controls { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Audio deck ---- */

.am-audio-deck {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  background: var(--am-line);
  border: 1px solid var(--am-line);
}

.am-deck-main {
  padding: clamp(20px, 3vw, 30px);
  background: var(--am-black);
  display: grid;
  gap: 18px;
  align-content: start;
}

.am-deck-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.am-deck-label {
  display: block;
  margin-bottom: 4px;
  font-family: "AM Mono", monospace;
  font-size: 0.6rem;
  color: var(--am-muted);
}

.am-deck-topline h3 {
  font-size: 1.3rem;
  font-weight: 500;
}

.am-deck-clock {
  display: flex;
  gap: 6px;
  font-family: "AM Mono", monospace;
  font-size: 0.72rem;
  color: var(--am-muted);
  white-space: nowrap;
}

.am-wave-shell {
  position: relative;
  width: 100%;
  height: 160px;
  padding: 0;
  border: 1px solid var(--am-line);
  background: var(--am-panel);
  cursor: pointer;
  overflow: hidden;
}

.am-wave-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.am-wave-loading {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: "AM Mono", monospace;
  font-size: 0.6rem;
  color: rgba(239, 237, 231, 0.5);
  pointer-events: none;
}

.am-deck-controls {
  display: flex;
  gap: 10px;
}

.am-deck-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--am-line);
  background: transparent;
  color: var(--am-paper);
  font-family: "AM Mono", monospace;
  font-size: 0.68rem;
  cursor: pointer;
  transition: border-color 220ms var(--am-ease), background-color 220ms var(--am-ease), color 220ms var(--am-ease);
}

.am-deck-button:hover {
  border-color: var(--am-paper);
}

.am-deck-play {
  flex: 1;
  background: var(--am-red);
  border-color: var(--am-red);
  color: #fff;
  font-weight: 600;
}

.am-deck-play:hover {
  background: transparent;
  color: var(--am-red);
}

.am-demo-playlist {
  max-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--am-black);
}

.am-demo-track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--am-line);
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(239, 237, 231, 0.7);
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms var(--am-ease), color 200ms var(--am-ease), border-color 200ms var(--am-ease);
}

.am-demo-track:hover {
  background: #101210;
  color: var(--am-paper);
}

.am-demo-track.is-active {
  background: #101210;
  color: var(--am-paper);
  border-left-color: var(--am-red);
}

.am-track-index {
  font-family: "AM Mono", monospace;
  font-size: 0.62rem;
  color: var(--am-muted);
}

.am-track-title {
  display: block;
  font-size: 0.85rem;
}

.am-track-type {
  display: block;
  margin-top: 2px;
  font-family: "AM Mono", monospace;
  font-size: 0.58rem;
  color: var(--am-muted);
}

.am-track-time {
  font-family: "AM Mono", monospace;
  font-size: 0.58rem;
  color: var(--am-muted);
}

@media (max-width: 900px) {
  .am-audio-deck { grid-template-columns: 1fr; }
}

/* ---- Inline-embed video grid ---- */

.am-video-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 26px);
}

.am-video-embed-card {
  display: grid;
  gap: 16px;
}

.am-video-embed {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}

.am-video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.08) brightness(0.85);
  transition: transform 650ms var(--am-ease), filter 650ms var(--am-ease);
}

.am-video-embed:hover img {
  transform: scale(1.05);
  filter: saturate(0.85) contrast(1.02) brightness(0.95);
}

.am-video-embed-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.am-video-embed-play span {
  min-width: 60px;
  min-height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 237, 231, 0.4);
  border-radius: 50%;
  background: rgba(8, 9, 8, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: "AM Mono", monospace;
  font-size: 0.6rem;
}

.am-video-embed-shell {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
}

.am-video-embed-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.am-video-embed-copy small {
  font-family: "AM Mono", monospace;
  font-size: 0.62rem;
  color: var(--am-muted);
}

.am-video-embed-copy strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.05rem;
  font-weight: 500;
}

.am-video-embed-copy p {
  margin: 0;
  color: var(--am-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .am-video-embed-grid { grid-template-columns: 1fr; }
}
