/* Shared styles for multimedia project pages (arturojreal.com/<slug>/).
   Pages are generated by tools/project-pages/build.mjs; see its README.
   Colors come from the page's theme variables, set in its <head>. */

  
:root {
  /* Shared palette */
  --bg:              #0a0a0a;
  --bg-card:         rgba(29, 27, 32, 0.6);
  --bg-card-hover:   rgba(40, 38, 43, 0.7);
  --text-primary:    #fffffc;
  --text-secondary:  #cbc3c0;
  --text-muted:      #9e9890;
  --border:          rgba(255,255,255,0.06);
  --radius-card:     1.5rem;
  --radius-pill:     9999px;
  --ease:            cubic-bezier(0.16, 1, 0.3, 1);

  /* Project theme: each page overrides these from its project.json "theme".
     The *-rgb forms are the same colors as "r, g, b" for use in rgba(). */
  --accent:          #E0302A;
  --accent-rgb:      224, 48, 42;
  --accent-hover:    var(--accent-hover);
  --accent-deep:     #a3201b;
  --accent-deep-rgb: 163, 32, 27;
  --accent-deeper:   #5a0f0c;
  --accent2:         #29D3E6;
  --accent2-rgb:     41, 211, 230;
  --blur-1:          rgba(var(--accent-rgb), 0.16);
  --blur-2:          rgba(var(--accent2-rgb), 0.10);
  --border-accent:   rgba(var(--accent-rgb), 0.2);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── GRAIN ──────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── BACKGROUND BLURS ───────────────────────────────────── */
.bg-blur {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}
.bg-blur-1 {
  width: 55vw; height: 55vw;
  top: -15%; right: -10%;
  background: var(--blur-1);
  opacity: 0.6;
}
.bg-blur-2 {
  width: 45vw; height: 45vw;
  bottom: -10%; left: -5%;
  background: var(--blur-2);
  opacity: 0.5;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
  margin-bottom: 64px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease);
}
.nav-back:hover { color: var(--text-primary); }
.nav-back svg { width: 16px; height: 16px; }

.nav-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  text-decoration: none;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  margin-bottom: 64px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 24px;
  background: rgba(var(--accent-rgb), 0.06);
}

.hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--accent);
  opacity: 0.8;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
}

/* ─── ASSET CAROUSEL ─────────────────────────────────────── */
/* One WebGL canvas sits over the scrolling track and draws every tile with a
   scissor rect. The tiles themselves are plain HTML, so scrolling, labels and
   touch handling stay native. */
.asset-strip {
  --tile: clamp(112px, 36vw, 200px);
  --fade-l: 0px;
  --fade-r: min(18%, 160px);
  --gutter: 24px;
  position: relative;
  /* Full-width band: break out of the 780px column to both window edges */
  width: 100vw;
  margin: 28px 0 36px calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  user-select: none;
  -webkit-user-select: none;
}
.asset-strip.can-scroll-left { --fade-l: min(10%, 120px); }
.asset-strip.at-end { --fade-r: 0px; }
.asset-strip[hidden], .asset-controls[hidden] { display: none; }
/* Shown once the carousel script has started (it needs three.js from the CDN) */
html:not(.carousel-ready) .asset-strip,
html:not(.carousel-ready) .asset-controls { display: none; }

.asset-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  outline: none;
}
.asset-track::-webkit-scrollbar { display: none; }
.asset-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }

.asset-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.asset-tile {
  flex: 0 0 var(--tile);
  scroll-snap-align: start;
  /* Native vertical page scroll and horizontal carousel swipe */
  touch-action: pan-x pan-y;
}

.asset-view {
  position: relative;
  width: var(--tile);
  aspect-ratio: 1;
  border-radius: 1rem;
  cursor: grab;
  transition: background 250ms var(--ease), box-shadow 250ms var(--ease);
}
.asset-view:active { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) {
  .asset-view:hover { background: rgba(29, 27, 32, 0.35); }
}

/* Tapped tile on touch: horizontal drags rotate the model instead of
   scrolling the carousel; vertical drags still scroll the page */
.asset-tile.is-active .asset-view {
  touch-action: pan-y;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.04);
}

.asset-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-top-color: rgba(var(--accent-rgb), 0.6);
  animation: spin 0.9s linear infinite;
}
.asset-tile.is-loaded .asset-spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.asset-label {
  margin-top: 8px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-muted);
}

/* Hint and arrows under the band, aligned with the text column */
.asset-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -20px 0 28px;
}
.asset-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 520px;
}
.asset-hint .hint-pointer { display: none; }
.asset-arrows {
  display: none;
  flex-shrink: 0;
  gap: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .asset-arrows { display: flex; }
  .asset-hint .hint-pointer { display: inline; }
  .asset-hint .hint-touch { display: none; }
}
.asset-arrow {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), opacity 200ms var(--ease);
}
.asset-arrow:hover { color: var(--text-primary); border-color: var(--border-accent); }
.asset-arrow:disabled { opacity: 0.3; cursor: default; }
.asset-arrow svg { width: 14px; height: 14px; }

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ─── CARD ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.how-section {
  margin-bottom: 48px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.how-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 28px 24px;
  transition: border-color 250ms var(--ease);
}
.how-item:hover { border-color: var(--border-accent); }

.how-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-deep);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.how-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.how-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── FEATURES ───────────────────────────────────────────── */
.features-section {
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 250ms var(--ease);
}
.feature-item:hover { border-color: var(--border-accent); }
.feature-body { padding: 20px 24px 24px; }

/* Clip or still across the top of each card */
.feature-media {
  aspect-ratio: 16 / 9;
  background: #050505;
  border-bottom: 1px solid var(--border);
}
.feature-media video,
.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.feature-link:hover { opacity: 0.8; }

.feature-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.feature-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 200ms var(--ease);
}
.feature-thumbs a:hover img { border-color: var(--border-accent); }

.section-intro {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 20px;
}

/* ─── BREAKDOWN ──────────────────────────────────────────── */
.breakdown-section, .audio-section, .tools-section { margin-bottom: 48px; }

.prompt-shared {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: rgba(255,255,255,0.02);
}
.prompt-shared summary,
.bd-prompt summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 16px;
  list-style-position: inside;
}
.prompt-shared summary:hover,
.bd-prompt summary:hover { color: var(--text-primary); }
.prompt-text,
.bd-prompt p {
  margin: 0;
  padding: 0 16px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.bd-list { display: flex; flex-direction: column; gap: 16px; }

.bd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 20px;
  transition: border-color 250ms var(--ease);
}
.bd-card:hover { border-color: var(--border-accent); }
.bd-card[hidden] { display: none; }

.bd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bd-head h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

.bd-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-tab {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  cursor: pointer;
}
.bd-tab[aria-selected="true"] { color: var(--accent); border-color: var(--border-accent); background: rgba(var(--accent-rgb), 0.06); }

.bd-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 10px;
}
.bd-arrow { color: var(--text-muted); opacity: 0.6; font-size: 14px; align-self: center; margin-bottom: 24px; }
.bd-step { margin: 0; }
.bd-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bd-concept .bd-frame { background: #d9d9d9; }
.bd-original .bd-frame { background: #2f3238; }
.bd-optimized .bd-frame { background: radial-gradient(circle at 50% 45%, #1d1b20 0%, #0d0c0f 75%); }
.bd-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bd-original .bd-frame img { object-fit: cover; }
.bd-viewer {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y; /* vertical swipes scroll the page; horizontal drags spin the model */
}
.bd-viewer:active { cursor: grabbing; }
.bd-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
}
.bd-wire {
  position: absolute;
  right: 8px; bottom: 8px;
  font: 600 10px/1 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(10,10,10,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 9px;
  cursor: pointer;
}
.bd-wire[aria-pressed="true"] { color: var(--accent2); border-color: rgba(var(--accent2-rgb), 0.35); }
.bd-step figcaption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}
.bd-step figcaption strong { color: var(--text-secondary); font-weight: 600; }

.bd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.bd-stat {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 10px 12px;
}
.bd-stat dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.bd-stat dd { font-size: 0.8125rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.bd-stat .bd-drop { color: var(--accent2); font-weight: 600; }

.bd-prompt {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.bd-prompt summary { padding-left: 0; padding-right: 0; }
.bd-prompt p { padding-left: 0; padding-right: 0; }
.bd-note { margin-top: 10px; font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

.bd-alts { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.bd-alts img {
  width: 56px; height: 56px;
  object-fit: contain;
  background: #d9d9d9;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.bd-alts span { font-size: 11px; color: var(--text-muted); }

.bd-more { margin-top: 16px; cursor: pointer; font-family: inherit; }

/* ─── VOICES AND SOUND ───────────────────────────────────── */
.audio-groups { display: flex; flex-direction: column; gap: 16px; }
.audio-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 18px 20px;
}
.audio-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.audio-group h3 { font-size: 0.9375rem; font-weight: 600; }
.audio-group-meta { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 2px; max-width: 520px; }
.audio-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.audio-filter input { accent-color: var(--accent); }

.audio-list { list-style: none; display: flex; flex-direction: column; }
.audio-row {
  --progress: 0%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(to right, rgba(var(--accent-rgb), 0.07) var(--progress), transparent var(--progress));
}
.audio-play {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
  cursor: pointer;
}
.audio-play svg { width: 12px; height: 12px; }
.audio-row.is-playing .audio-play { background: var(--accent); color: #0a0a0a; }
.audio-text { font-size: 0.875rem; color: var(--text-primary); line-height: 1.45; }
.audio-when { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.audio-tag {
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── MODEL TOOLS ────────────────────────────────────────── */
.tools-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.8; }
.tools-card strong { color: var(--text-primary); }
.tools-list { margin: 14px 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.tools-list li { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }
.tools-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--accent2);
}
.tools-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.tools-links .btn-ghost { padding: 10px 20px; font-size: 0.875rem; }
.tools-license { font-size: 12px; color: var(--text-muted); }

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

.feature-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-section {
  margin-bottom: 48px;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-card p:last-of-type { margin-bottom: 0; }

.about-card a,
.feature-body a,
.section-intro a,
.video-text a,
.trailer-caption a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  transition: border-color 150ms var(--ease), opacity 150ms var(--ease);
}
.about-card a:hover,
.feature-body a:hover,
.section-intro a:hover,
.video-text a:hover,
.trailer-caption a:hover { opacity: 0.8; border-color: var(--accent); }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  margin-bottom: 0;
}

.cta-card {
  text-align: center;
  padding: 56px 40px;
  background: linear-gradient(135deg, rgba(var(--accent-deep-rgb), 0.2) 0%, rgba(29,27,32,0.6) 60%);
  border-color: var(--border-accent);
}

.cta-card h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.cta-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--accent);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 12px 32px -6px rgba(var(--accent-rgb), 0.45);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px -6px rgba(var(--accent-rgb), 0.6);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  text-decoration: none;
  background: rgba(var(--accent-rgb), 0.06);
  transition: background 200ms var(--ease), transform 150ms var(--ease);
}
.btn-ghost:hover {
  background: rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
}
.btn-ghost svg { width: 14px; height: 14px; }

/* ─── DIVIDERS ───────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 56px 0;
}

/* ─── FADE IN ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
.fade-up:nth-child(5) { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; }
  .asset-spinner { animation-duration: 3s; }
}

/* The full jam name only just fits the eyebrow pill on the narrowest phones */
@media (max-width: 374px) {
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.07em; padding: 5px 12px; }
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-wrap { padding: 0 20px 64px; }
  nav { margin-bottom: 48px; }
  .hero-title { font-size: 3rem; }
  .asset-strip { --gutter: 20px; --fade-r: 22%; }
  .card { padding: 28px 24px; }
  .cta-card { padding: 40px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .bd-card { padding: 16px; }
  .bd-flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bd-arrow { display: none; }
  .bd-optimized { grid-column: 1 / -1; }
  .bd-optimized .bd-frame { aspect-ratio: 4 / 3; }
  .bd-stats { grid-template-columns: 1fr; }
  .audio-group { padding: 16px; }
  .audio-row { grid-template-columns: 32px 1fr; }
  .audio-tag { display: none; }
}
  

/* ─── GALLERY (generated pages) ─────────────────────────────── */
.gallery-section { margin-bottom: 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item { margin: 0; }
.gallery-item a { display: block; }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  transition: border-color 200ms var(--ease);
}
.gallery-item a:hover img { border-color: var(--border-accent); }
.gallery-item figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── TRAILER (generated pages) ─────────────────────────────── */
.trailer-section { margin-bottom: 48px; }
.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050505;
}
.trailer[data-youtube] { cursor: pointer; }
.trailer img, .trailer video, .trailer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.trailer-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 12px 32px -6px rgba(var(--accent-rgb), 0.5);
  transition: transform 200ms var(--ease);
}
.trailer-play svg { width: 28px; height: 28px; margin-left: 3px; }
.trailer[data-youtube]:hover .trailer-play,
.trailer[data-youtube]:focus-visible .trailer-play { transform: scale(1.08); }
.trailer-caption { margin-top: 10px; font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

/* ─── VIDEOS (generated pages) ──────────────────────────────── */
.videos-section { margin-bottom: 48px; }
.videos-section .section-intro { margin-bottom: 20px; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(var(--video-cols, 2), minmax(0, 1fr));
  gap: 28px 20px;
}
.video-item { min-width: 0; }
.video-meta { margin-top: 12px; }
.video-date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.video-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 6px;
}
.video-text { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.video-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.video-links a {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.video-links a:hover { border-color: var(--border-accent); color: var(--text-primary); }
.videos-grid .trailer-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.videos-grid .trailer-play svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .videos-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ─── TABLE OF CONTENTS (hero.contents) ─────────────────────── */
.toc {
  /* Overrides the page's general nav rule, which is for the top bar */
  display: block;
  padding: 0;
  margin: 36px 0 0;
}
.toc .section-label { margin-bottom: 12px; }
.toc-grid {
  display: grid;
  grid-template-columns: repeat(var(--toc-cols, 3), 1fr);
  gap: 10px;
}
.toc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 36px 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  text-decoration: none;
  transition: border-color 250ms var(--ease), background 250ms var(--ease), transform 200ms var(--ease);
}
.toc-item:hover,
.toc-item:focus-visible {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.toc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.toc-text { font-size: 0.75rem; line-height: 1.45; color: var(--text-muted); }
.toc-arrow {
  position: absolute;
  top: 15px; right: 14px;
  width: 13px; height: 13px;
  color: var(--accent);
  opacity: 0.8;
  transition: transform 200ms var(--ease);
}
.toc-item:hover .toc-arrow { transform: translateY(2px); }

/* Sections land a little below the top edge when jumped to */
.page-wrap > section[id] { scroll-margin-top: 24px; }

@media (max-width: 600px) {
  .toc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .toc-item { padding: 12px 30px 12px 12px; }
  .toc-arrow { top: 13px; right: 11px; }
}

/* ─── FEATURE GRID WIDTHS (features "columns") ──────────────── */
.features-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.features-grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 720px) {
  .features-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features-grid.cols-3,
  .features-grid.cols-auto { grid-template-columns: 1fr; }
}

/* ─── LIST (type "list") ────────────────────────────────────── */
.list-section { margin-bottom: 48px; }
.list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 200ms var(--ease);
}
.list-row:hover { border-color: var(--border-accent); }
.list-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.list-name { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); }
.list-note { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
@media (max-width: 600px) {
  .list-grid { grid-template-columns: 1fr; }
}

/* ─── CARD EXTRAS ───────────────────────────────────────────── */
/* "links": a divided row of small buttons (Terms, Privacy Policy) */
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.about-links .btn-ghost { padding: 10px 20px; font-size: 0.875rem; }
.about-card p code {
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ─── HERO EXTRAS ───────────────────────────────────────────── */
.hero-title .emoji { display: inline-block; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--badge);
  background: rgba(var(--badge-rgb), 0.08);
  border: 1px solid rgba(var(--badge-rgb), 0.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-top: 20px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--badge);
  box-shadow: 0 0 6px rgba(var(--badge-rgb), 0.7);
}
/* "disclaimer": a muted, divided note at the end of a card */
.about-card .disclaimer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* No subtitle: give the description the extra room under the title those pages had */
.hero-title + .hero-description { margin-top: 28px; } /* margins collapse: 28px total */
