/* ───────────────── Jazz Dogs ───────────────── */
:root {
  --ink: #0b0a08;
  --ink-2: #13110d;
  --ink-3: #1c1913;
  --gold: #d4a64a;
  --gold-hi: #f0cf86;
  --cream: #f1e6cf;
  --paper: #ece0c6;
  --muted: #958a73;
  --wine: #7a2232;
  --line: rgba(212, 166, 74, 0.22);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1200px;
  /* dog artwork */
  --dog-fill: #17140f;
  --dog-line: var(--gold);
  --suit: #0f0d0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 72px;
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
em { font-style: italic; color: var(--gold-hi); }
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ── SVG dog styles (inherit into <use>) ── */
.suit { fill: var(--suit); stroke: var(--dog-line); stroke-width: 2.5; }
.head, .ear, .muzzle { fill: var(--dog-fill); stroke: var(--dog-line); stroke-width: 2.5; }
.shirt { fill: var(--cream); }
.tie, .nose, .shade { fill: var(--dog-line); }
.line { fill: none; stroke: var(--dog-line); stroke-width: 2.5; stroke-linecap: round; }
.hat { fill: var(--ink); stroke: var(--dog-line); stroke-width: 2.5; stroke-linejoin: round; }
.band { fill: var(--wine); }
.bubble { fill: var(--gold-hi); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--gold);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
  background: transparent; color: var(--gold-hi);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost:hover { background: rgba(212,166,74,.12); }
.btn-lg { padding: 15px 26px; font-size: 13px; }
.btn-sm { padding: 7px 12px; font-size: 11px; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(11,10,8,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 14px;
  transform: rotate(45deg);
}
.brand-mark { font-size: 0; position: relative; }
.brand-mark::after { content: "JD"; font-size: 13px; transform: rotate(-45deg); font-family: var(--serif); font-weight: 800; }
.brand-word { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.brand-word em { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .1em; margin-left: 4px; color: var(--gold); }
.nav { display: flex; gap: 26px; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--gold-hi); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--cream); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; cursor: pointer; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 65px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding: 60px clamp(16px, 5vw, 64px) 140px;
  max-width: 1440px; margin: 0 auto;
}
.sunburst {
  position: absolute; width: 1600px; height: 1600px; right: -520px; top: 50%; margin-top: -800px; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(212,166,74,.09) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%);
  animation: spin 160s linear infinite;
}
.spot {
  position: absolute; top: -10%; width: 40vw; height: 130%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(240,207,134,.16), transparent 80%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0; filter: blur(6px);
}
.spot-l { right: 28%; animation: sway 9s ease-in-out infinite alternate; }
.spot-r { right: 0; animation: sway 11s ease-in-out infinite alternate-reverse; }
.titlecard { color: var(--gold); margin-bottom: 18px; }
.titlecard span { color: var(--muted); margin: 0 4px; }
.titlecard [data-timecode] { color: var(--cream); margin: 0; }
.hero-title { font-weight: 900; line-height: .82; letter-spacing: -.03em; font-size: clamp(88px, 14vw, 210px); }
.hero-title span { display: block; }
.ht-2 { font-style: italic; font-weight: 500; color: var(--gold); padding-left: .45em; }
.hero-sub { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; margin: 28px 0 32px; max-width: 28ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ca-box {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(19,17,13,.7);
}
.ca-box .label { color: var(--muted); }
.ca-box code, .console-ca code { font-family: var(--mono); font-size: 13px; color: var(--cream); word-break: break-all; }

.hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; height: min(560px, 62vh); }
.hero-dogs { position: relative; z-index: 2; width: 100%; max-width: 620px; max-height: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(212,166,74,.18)); animation: bob 5s ease-in-out infinite; }
.stage-floor { position: absolute; bottom: -10px; left: 5%; right: 5%; height: 40px; background: radial-gradient(ellipse, rgba(212,166,74,.35), transparent 70%); filter: blur(8px); }
.hero-stage figcaption { position: absolute; bottom: -44px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 11px; }
.hero-stage figcaption em { text-transform: none; font-family: var(--serif); font-size: 14px; letter-spacing: 0; }
.motion-btn { position: absolute; top: 24px; right: clamp(16px, 5vw, 64px); background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 10px; }
.motion-btn:hover { color: var(--gold-hi); }

.status-strip {
  position: absolute; left: clamp(16px, 5vw, 64px); right: clamp(16px, 5vw, 64px); bottom: 28px;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.status-strip div { padding: 14px 12px; border-right: 1px solid var(--line); }
.status-strip div:last-child { border-right: 0; }
.status-strip dt { color: var(--muted); font-size: 10px; }
.status-strip dd { color: var(--cream); font-size: 13px; margin-top: 4px; }
.live-dot::before, .dot { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; animation: pulse 1.6s ease-in-out infinite; }

/* ── Marquee ── */

/* ── Sections ── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) clamp(16px, 4vw, 40px); }
.sec-head { margin-bottom: 56px; }
.sec-num { color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.sec-num::after { content: ""; height: 1px; width: 80px; background: var(--line); }
.sec-head h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.sec-head h2 em { font-weight: 400; }
h3 { font-weight: 700; line-height: 1.15; }

/* Lore */
.lore-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.lore-copy p { margin-bottom: 20px; font-size: 20px; max-width: 60ch; }
.dropcap::first-letter { float: left; font-size: 5.2em; line-height: .8; padding: 6px 12px 0 0; color: var(--gold); font-weight: 900; }
sup a { color: var(--gold); text-decoration: none; font-family: var(--mono); font-size: 11px; margin-left: 2px; }
.pullquote { position: sticky; top: 110px; border-left: 2px solid var(--gold); padding: 8px 0 8px 32px; }
.pullquote p { font-size: clamp(44px, 5.5vw, 72px); font-style: italic; line-height: 1.02; color: var(--gold-hi); }
.pullquote footer { color: var(--muted); margin-top: 18px; }
.lore-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 80px; }
.card, .life, .step, .phase {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  transition: border-color .3s, transform .3s;
}
.card:hover, .life:hover, .step:hover, .phase:hover { border-color: rgba(212,166,74,.6); transform: translateY(-3px); }
.card-tag { color: var(--gold); font-size: 11px; margin-bottom: 14px; }
.card h3 { font-size: 26px; margin-bottom: 8px; }
.card p:last-child { color: var(--muted); }

/* Plates */
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plate-frame {
  position: relative; aspect-ratio: 4 / 5; display: grid; place-items: end center; overflow: hidden;
  border: 1px solid var(--line); border-radius: 4px; margin-bottom: 22px; padding-top: 40px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(240,207,134,.18), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink));
  box-shadow: inset 0 0 0 8px var(--ink), inset 0 0 0 9px var(--line);
}
.plate-frame .dog { width: 80%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.plate:hover .plate-frame .dog { transform: translateY(-8px) scale(1.03); }
.plate-tc { position: absolute; top: 20px; left: 22px; color: var(--muted); font-size: 10px; }
.plate h3 { font-size: 44px; font-weight: 800; line-height: 1; }
.plate-role { color: var(--gold); margin: 8px 0 18px; }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 10px; }
.spec dd { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.fig { margin-top: 14px; font-style: italic; color: var(--muted); font-size: 15px; }

.dual { margin-top: 100px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 70px); text-align: center; flex-wrap: wrap; }
.dual-name { white-space: nowrap; font-size: clamp(34px, 5.4vw, 80px); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.dual div:last-child .dual-name { font-style: italic; font-weight: 500; color: var(--gold); }
.dual-amp { font-size: clamp(60px, 9vw, 120px); font-style: italic; color: var(--wine); line-height: 1; }

/* Dossier (paper) */
.dossier { max-width: none; background: var(--paper); color: var(--ink); position: relative; }
.dossier::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 20%, transparent 40%, rgba(120,80,20,.14)); }
.dossier-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.dossier .sec-num { color: var(--wine); }
.dossier .sec-num::after { background: rgba(11,10,8,.25); }
.dossier em { color: var(--wine); }
.minutes { list-style: none; border-top: 2px solid var(--ink); max-width: 820px; }
.minutes li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(11,10,8,.2); font-size: 21px; }
.minutes li span { color: var(--wine); padding-top: 6px; }
.minutes strong { font-weight: 800; }
.stamp {
  position: absolute; right: 2%; top: 46%;
  font-family: var(--mono); font-weight: 700; text-transform: uppercase; text-align: center; letter-spacing: .2em; line-height: 1.4;
  color: var(--wine); border: 3px double var(--wine); padding: 14px 22px; font-size: 18px; transform: rotate(-12deg); opacity: .75;
}

/* Jazz life */
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.life { display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; position: relative; overflow: hidden; }
.life h3 { font-size: 28px; }
.life p:not(.card-tag) { color: var(--muted); margin-top: 10px; }
.life.big { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; min-height: 0; background: linear-gradient(120deg, var(--ink-2), #1d160b); }
.life.big h3 { font-size: clamp(28px, 3.4vw, 44px); max-width: 22ch; }
.vinyl { width: 200px; flex: none; animation: spin 6s linear infinite; }
.v-disc { fill: #050504; stroke: var(--line); }
.v-groove { fill: none; stroke: rgba(240,207,134,.12); }
.v-label { fill: var(--wine); }
.v-text { fill: var(--gold-hi); font-family: var(--serif); font-weight: 800; font-size: 13px; letter-spacing: 2px; }
.v-hole { fill: var(--ink); }
.glass { position: absolute; top: 24px; right: 24px; width: 50px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { display: flex; flex-direction: column; }
.step-glyph { font-size: 44px; font-style: italic; color: var(--gold); line-height: 1; margin-bottom: 30px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step-foot { margin-top: auto; padding-top: 22px; color: var(--gold) !important; font-size: 10px !important; border-top: 1px solid var(--line); margin-top: 24px; }

/* Console */
.console { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--ink-2); }
.console-bar { display: flex; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; background: var(--ink-3); }
.console-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.console-ca { padding: 36px; border-right: 1px solid var(--line); }
.console-ca .label { color: var(--muted); margin-bottom: 14px; }
.console-ca code { display: block; font-size: 18px; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 22px; }
.console-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.console-metrics { display: grid; grid-template-columns: 1fr 1fr; }
.console-metrics div { padding: 22px 26px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.console-metrics div:nth-child(2n) { border-right: 0; }
.console-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.console-metrics dt { color: var(--muted); font-size: 10px; }
.console-metrics dd { font-size: 20px; color: var(--cream); margin-top: 6px; }
.sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.phase h3 { font-size: 28px; margin-bottom: 8px; }
.phase p:last-child { color: var(--muted); }
.phase.is-current { border-color: var(--gold); background: linear-gradient(160deg, rgba(212,166,74,.14), var(--ink-2) 60%); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 22px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 64ch; }
.refs { margin-top: 64px; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 2; }
.refs li:target { color: var(--gold-hi); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 80px clamp(16px, 4vw, 40px) 40px; max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-sign { font-size: clamp(48px, 8vw, 110px); font-style: italic; color: var(--gold); line-height: 1; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--gold-hi); }
.disclaimer { font-size: 14px; color: var(--muted); max-width: 90ch; line-height: 1.7; }
.footer-small { margin-top: 28px; color: #5d5647; font-size: 10px; }

/* Dock */
.dock {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  background: rgba(19,17,13,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  font-size: 11px; white-space: nowrap;
  transition: opacity .3s, translate .3s;
}
.dock.is-hidden { opacity: 0; translate: 0 20px; pointer-events: none; }
.dock-ca { color: var(--muted); margin-right: 6px; }
.dock-ca span { color: var(--cream); }

.toast {
  position: fixed; left: 50%; bottom: 82px; transform: translate(-50%, 20px); z-index: 70;
  background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 10px; font-size: 11px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center; white-space: normal;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.no-motion *, .no-motion *::before, .no-motion *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 65px 0 auto 0; flex-direction: column; gap: 0; padding: 10px 20px 20px;
    background: var(--ink); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .menu-btn { display: inline-block; }
  .top-actions [data-copy-ca] { display: none; }
  .hero { grid-template-columns: 1fr; padding-bottom: 200px; }
  .hero-stage { height: 380px; }
  .status-strip { grid-template-columns: repeat(3, 1fr); }
  .status-strip div:nth-child(3) { border-right: 0; }
  .status-strip div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .lore-grid { grid-template-columns: 1fr; gap: 40px; }
  .pullquote { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .console-body { grid-template-columns: 1fr; }
  .console-ca { border-right: 0; border-bottom: 1px solid var(--line); }
  .stamp { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .brand-word em { display: none; }
  .lore-cards, .plates, .life-grid, .steps, .sequence { grid-template-columns: 1fr; }
  .life.big { flex-direction: column; align-items: flex-start; }
  .vinyl { width: 140px; }
  .minutes li { grid-template-columns: 1fr; gap: 4px; }
  .console-ca { padding: 24px; }
  .motion-btn { top: 12px; }
  .dock { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .dock [data-link="chartUrl"] { display: none; }
}
.faq code, details code { font-family: var(--mono); font-size: 13px; color: var(--gold-hi); word-break: break-all; }
