/* ==========================================================================
   CYROSONIC — v2 "PRESSING PLANT"
   Paper & ink poster aesthetic. Record-sleeve editorial.
   Type: Anton (poster) / Archivo (body) / Instrument Serif (asides) / Space Mono (labels)
   NO gradients. NO glass. NO glow. Hard shadows. Hairlines. Sharp corners.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper:      #F0EDE6;
  --paper-2:    #E7E2D6;
  --ink:        #131311;
  --ink-soft:   #55534B;
  --accent:     #FF4D00;

  --paper-soft: #B9B3A4;   /* soft text on ink sections */

  --line:       rgba(19, 19, 17, 0.16);
  --line-ink:   #131311;

  --f-display:  "Anton", "Archivo Black", Impact, sans-serif;
  --f-serif:    "Instrument Serif", Georgia, serif;
  --f-body:     "Archivo", "Helvetica Neue", sans-serif;
  --f-mono:     "Space Mono", "Courier New", monospace;

  --container:  1220px;
  --gutter:     clamp(20px, 4vw, 48px);

  --ease:       cubic-bezier(0.22, 0.68, 0.24, 1);
}

/* --------------------------------------------------------------------------
   1. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--accent); color: var(--ink); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 1px solid var(--line); }
::-webkit-scrollbar-thumb { background: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; color: var(--ink); }

/* faint paper grain — print texture, not digital gloss */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Utilities
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex-shrink: 0; }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section-head h2 {
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.94;
  letter-spacing: 0.005em;
  margin: 16px 0 14px;
}
.aside-note {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--ink);
}
.aside-note em { color: var(--accent); font-style: italic; }
.lede { font-family: var(--f-mono); font-size: 14px; line-height: 1.8; color: var(--ink-soft); max-width: 54ch; }

/* buttons — physical, press-down */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 2px solid var(--ink);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease),
              background 0.25s, color 0.25s;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--accent);
}
.btn-primary:hover  { transform: translate(2px, 2px);  box-shadow: 4px 4px 0 var(--accent); }
.btn-primary:active { transform: translate(6px, 6px);  box-shadow: 0 0 0 var(--accent); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.rv.on { opacity: 1; transform: none; }

/* equalizer bars — currentColor so context decides */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 13px; }
.eq i { width: 3px; background: currentColor; animation: eqb 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -0.9s; }
.eq i:nth-child(2) { height: 90%; animation-delay: -0.6s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -0.3s; }
.eq i:nth-child(4) { height: 100%; animation-delay: -0.1s; }
@keyframes eqb { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* rotated sticker tag */
.tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px 14px;
  transform: rotate(var(--tilt, -5deg));
  white-space: nowrap;
}
.tag.hot { background: var(--accent); }

/* --------------------------------------------------------------------------
   3. Loader — ⚠ LOADER SLOT: swap inner markup for your custom animation.
   -------------------------------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-label {
  font-family: var(--f-mono);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.loader-label::after {
  content: "▍";
  color: var(--accent);
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   4. Navigation — numbered index links, hard bottom rule
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 5px 0 rgba(19, 19, 17, 0.08); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; }
.brand-mark { width: 32px; height: 32px; color: var(--ink); }
.brand-name { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; counter-reset: nlink; }
.nav-links li { counter-increment: nlink; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::before {
  content: "0" counter(nlink);
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--accent);
  margin-right: 7px;
  vertical-align: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-cta { padding: 11px 20px; font-size: 12.5px; box-shadow: 4px 4px 0 var(--accent); }
.nav-cta:hover { transform: translate(1.5px, 1.5px); box-shadow: 2.5px 2.5px 0 var(--accent); }

.burger { display: none; flex-direction: column; gap: 6px; padding: 10px; z-index: 210; }
.burger span { width: 26px; height: 3px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mmenu.open { opacity: 1; visibility: visible; }
.mmenu ul { list-style: none; text-align: left; display: grid; gap: 4px; counter-reset: m; }
.mmenu li { counter-increment: m; }
.mmenu a {
  font-family: var(--f-display);
  font-size: clamp(34px, 8vw, 52px);
  text-transform: uppercase;
  padding: 8px 20px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  transition: color 0.25s, background 0.25s;
}
.mmenu a::before {
  content: "0" counter(m);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
}
.mmenu a:hover { background: var(--ink); color: var(--paper); }

/* menu header bar with explicit close (the burger sits behind the overlay) */
.mmenu-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 2px solid var(--ink);
}
.mmenu-bar span {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mmenu-close {
  width: 46px; height: 46px;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: 4px 4px 0 var(--accent);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.mmenu-close:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--accent); }
.mmenu-close svg { width: 18px; height: 18px; }
.mmenu ul { padding-top: 40px; }

/* waveform card — comfortable on small Android screens */
@media (max-width: 760px) {
  .stage-wave { padding: 4px; }
  .wavecard { width: 100%; padding: 7px 9px; gap: 8px; }
  .wave-play { width: 26px; height: 26px; }
}

/* --------------------------------------------------------------------------
   17. Cross-device polish — desktop / MacBook / Android / iPhone
   -------------------------------------------------------------------------- */
body { -webkit-tap-highlight-color: transparent; }        /* clean iOS taps  */

/* iOS: vh fallback first, svh where supported (dynamic toolbar) */
.hero { min-height: 100vh; min-height: 100svh; }

/* momentum + touch scrolling where it matters */
.gallery { -webkit-overflow-scrolling: touch; }

/* fullscreen menu: center when short, scroll when tall (landscape phones) */
.mmenu { overflow-y: auto; padding-bottom: 24px; }
.mmenu ul { margin: auto; padding-top: 110px; }

/* footer wordmark never overflows the tiniest screens */
.footer-word { overflow-wrap: break-word; }

/* two showcase phones never overflow narrow phones */
@media (max-width: 480px) {
  .duo .gphone { width: 52vw; }
  .duo .gphone + .gphone { margin-left: -40px; margin-top: 20px; }
}

/* hover effects stay on pointer devices — no sticky states on touch */
@media (hover: none) {
  .frow:hover { background: transparent; color: inherit; padding-left: clamp(10px, 1.5vw, 22px); }
  .frow:hover p { color: var(--ink-soft); }
  .dlrow:hover { background: transparent; padding-left: clamp(8px, 1.5vw, 20px); }
  .dlrow.soon { opacity: 0.42; }
  .gphone:hover { transform: rotate(var(--tilt, 0deg)); }
  .wavecard:hover { transform: none; box-shadow: 10px 10px 0 var(--accent); }
}

/* --------------------------------------------------------------------------
   18. Legal pages — visual rhythm (sections, fact boxes, lists) + credits
   -------------------------------------------------------------------------- */
.legal-article section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.legal-article section:first-child { border-top: 0; padding-top: 0; }
.legal-article strong { color: var(--ink); }
.legal-article p { max-width: 68ch; }

.legal-fact {
  border: 2px solid var(--ink);
  border-left: 10px solid var(--accent);
  background: var(--paper-2);
  padding: 18px 24px;
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 68ch;
}
.legal-fact b { color: var(--ink); }

.legal-article ul {
  list-style: none;
  margin: 16px 0;
  display: grid;
  gap: 10px;
  max-width: 62ch;
}
.legal-article ul li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}
.legal-article ul li::before {
  content: "■";
  font-size: 9px;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 7px;
}
.legal-article ul li b { color: var(--ink); }

/* footer credits */
.credits {
  border-top: 1px solid rgba(240, 237, 230, 0.2);
  padding: 26px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 44px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-soft);
}
.credits b { color: var(--accent); font-weight: 700; }

/* --------------------------------------------------------------------------
   19. Contact form polish — status strip, counter, sending cursor
   -------------------------------------------------------------------------- */
.form-status {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin: 0;
  padding: 12px 16px;
  border-left: 6px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink-soft);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok  { border-left-color: var(--ink); color: var(--ink); }
.form-status.bad { border-left-color: var(--accent); }

.msg-count {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 6px;
}

.btn .blink { animation: blinkc 0.8s steps(1) infinite; color: var(--accent); }
@keyframes blinkc { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   20. Contact form layout — tidy, capped, two-column name/email
   -------------------------------------------------------------------------- */
.form { max-width: 580px; }
.form-status { max-width: 580px; }
.form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form .row2 label { min-width: 0; }
@media (max-width: 620px) {
  .form .row2 { grid-template-columns: 1fr; gap: 20px; }
}

/* --------------------------------------------------------------------------
   21. Contact panel — the messaging card (contained, bordered, shadowed)
   -------------------------------------------------------------------------- */
.contact-panel {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 10px 10px 0 var(--accent);
  padding: clamp(20px, 4vw, 34px);
}
.contact-panel .form { max-width: none; }
.contact-panel .form-status { max-width: none; }
.contact-panel input,
.contact-panel textarea {
  background: var(--paper);
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Hero — poster type + spinning record
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  padding: 120px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow .eq { color: var(--accent); }

.hero h1 {
  font-size: clamp(76px, 13.5vw, 188px);
  line-height: 0.86;
  letter-spacing: 0.005em;
  margin: 26px 0 10px;
}
.hero h1 span { display: block; }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
}
@supports not (-webkit-text-stroke: 1px black) {
  .hero h1 .outline { color: var(--accent); }
}

.hero-aside {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 32px);
  margin-bottom: 26px;
}
.hero-aside em { color: var(--accent); }

.hero .sub {
  font-size: 17.5px;
  max-width: 480px;
  color: var(--ink-soft);
  margin-bottom: 38px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

/* the wave — compact player card, wavesurfer.js mount */
.stage-wave { position: relative; display: grid; place-items: center; padding: 30px; }
.wavecard {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(380px, 86vw);
  padding: 20px 22px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 10px 10px 0 var(--accent);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.wavecard:hover { transform: translate(3px, 3px); box-shadow: 7px 7px 0 var(--accent); }
.wave-play {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  background: var(--accent);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.wave-play svg { width: 18px; height: 18px; }
#hero-wave { flex: 1; min-width: 0; }
#hero-wave wave { display: block; cursor: crosshair; }

/* --------------------------------------------------------------------------
   6. Marquee — ink strip, poster type
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 2px solid var(--ink);
}
.mq-track { display: flex; width: max-content; animation: mq 26s linear infinite; }
.marquee:hover .mq-track { animation-duration: 9s; }
.mq-track span {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 20px;
}
.mq-track b { color: var(--accent); font-weight: 400; padding: 0 20px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   7. Features — the index table (rows, not cards)
   -------------------------------------------------------------------------- */
.features { padding: clamp(80px, 11vw, 140px) 0; border-bottom: 2px solid var(--ink); }

.findex { border-top: 2px solid var(--ink); }
.frow {
  display: grid;
  grid-template-columns: 76px 1.1fr 1fr 64px;
  align-items: center;
  gap: 24px;
  padding: 30px clamp(10px, 1.5vw, 22px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), color 0.3s, padding-left 0.35s var(--ease);
}
.frow:hover { background: var(--ink); color: var(--paper); padding-left: clamp(24px, 3vw, 44px); }

.frow .num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
}
.frow h3 {
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: inherit;
}
.frow p { font-size: 15px; color: var(--ink-soft); transition: color 0.3s; max-width: 44ch; }
.frow:hover p { color: var(--paper-soft); }

.frow .go {
  width: 34px; height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.frow .go svg { width: 16px; height: 16px; }
.frow:hover .go { transform: translateX(6px); background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* --------------------------------------------------------------------------
   8. Preview — inverted "Side B" section, paper phone, orange shadow
   -------------------------------------------------------------------------- */
.sec-ink { background: var(--ink); color: var(--paper); border-bottom: 2px solid var(--ink); }
.sec-ink .kicker { color: var(--paper-soft); }
.sec-ink .section-head h2 { color: var(--paper); }

.preview { padding: clamp(80px, 11vw, 140px) 0; }
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.preview .lede { color: var(--paper-soft); }
.preview .aside-note { color: var(--paper); }

.stage { position: relative; display: grid; place-items: center; perspective: 1100px; }
.tilt { transition: transform 0.2s ease-out; transform-style: preserve-3d; }

.phone {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  border: 3px solid #000;
  background: var(--paper);
  padding: 12px;
  box-shadow: 12px 12px 0 var(--accent);
}
.phone-notch {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 94px; height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #101012; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.screen-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 30px;
  color: var(--paper-soft);
}
.screen-slot .eq { color: var(--accent); height: 24px; }
.screen-slot .eq i { width: 5px; }
.screen-slot p {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 2.2;
}

/* tags on dark get paper borders */
.preview .tag { background: var(--ink); color: var(--paper); border-color: var(--paper); box-shadow: 4px 4px 0 var(--accent); }
.tag-ph-a { position: absolute; top: 10%; left: -4%; --tilt: -6deg; }
.tag-ph-b { position: absolute; bottom: 14%; right: -4%; --tilt: 3deg; }

/* --------------------------------------------------------------------------
   9. Download — big link rows, hover turns orange
   -------------------------------------------------------------------------- */
.download { padding: clamp(80px, 11vw, 140px) 0 clamp(100px, 12vw, 160px); border-bottom: 2px solid var(--ink); }

.dlrow {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  gap: 20px;
  border-top: 2px solid var(--ink);
  padding: 26px clamp(8px, 1.5vw, 20px);
  transition: background 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.dlrow:last-of-type { border-bottom: 2px solid var(--ink); }
.dlrow:hover { background: var(--accent); padding-left: clamp(22px, 3vw, 42px); }

.dl-name { font-family: var(--f-display); font-size: clamp(32px, 4.6vw, 58px); line-height: 1; text-transform: uppercase; }
.dl-sub {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}
.dlrow .go {
  width: 44px; height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.dlrow .go svg { width: 20px; height: 20px; }
.dlrow:hover .go { transform: translate(4px, -4px); background: var(--ink); color: var(--accent); }

/* --------------------------------------------------------------------------
   10. Footer — ink block with the giant wordmark
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--paper); padding: 0 0 30px; }

.footer-word {
  font-family: var(--f-display);
  font-size: clamp(58px, 13vw, 224px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--paper);
  text-align: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}
.footer-word em { font-style: normal; color: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding: clamp(50px, 6vw, 80px) 0 50px;
}
.footer .brand-name { color: var(--paper); }
.footer .brand-mark { color: var(--paper); }
.footer-tag { color: var(--paper-soft); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.footer-tag .aside-note { color: var(--paper); }

.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper-soft);
  color: var(--paper);
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.socials a:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-soft);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { color: var(--paper); font-size: 15px; border-bottom: 2px solid transparent; transition: color 0.25s, border-color 0.25s; }
.footer ul a:hover { color: var(--accent); border-color: var(--accent); }

.footer-base {
  border-top: 1px solid rgba(240, 237, 230, 0.2);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-soft);
}
.footer-base .eq { color: var(--accent); }
.footer-base a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   11. Legal pages
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 170px 0 54px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.page-hero h1 { font-size: clamp(46px, 8vw, 108px); line-height: 0.92; margin: 16px 0 14px; }
.page-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.legal-body { padding: 64px 0 110px; }
.legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }

.toc { position: sticky; top: 110px; }
.toc h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; border-top: 2px solid var(--ink); }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11px; color: var(--accent); padding-top: 2px; }
.toc a:hover, .toc a.active { color: var(--paper); background: var(--ink); }

.legal-article { max-width: 780px; }
.legal-article section { margin-bottom: 48px; scroll-margin-top: 120px; }
.legal-article h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-article h2 .num { font-family: var(--f-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.legal-article p { margin-bottom: 14px; color: var(--ink-soft); }

.legal-slot {
  border: 2px solid var(--ink);
  border-left: 8px solid var(--accent);
  background: var(--paper-2);
  padding: 22px 26px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-soft);
}
.legal-slot b { color: var(--ink); }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  padding: 160px 0 120px;
}
.contact-grid h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.92;
  margin: 16px 0 14px;
  text-transform: uppercase;
}

.form { display: grid; gap: 20px; }
.form label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
}
.form input, .form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 15px 18px;
  resize: vertical;
  transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.form input:focus, .form textarea:focus {
  outline: none;
  box-shadow: 5px 5px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.contact-aside { border: 2px solid var(--ink); background: var(--paper-2); padding: 34px; }
.contact-aside h3 { font-size: 26px; margin-bottom: 12px; }
.contact-aside > p { color: var(--ink-soft); font-size: 15.5px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 14px;
}
.contact-line svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stage-record { order: 2; margin-top: 20px; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-copy { order: 2; }
  .stage { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; padding-top: 130px; }
  .frow { grid-template-columns: 48px 1fr 48px; }
  .frow p { grid-column: 2 / 3; grid-row: 2; max-width: none; }
}
@media (max-width: 760px) {
  .nav-links, .nav .nav-cta { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  /* Compact on phones: two normal buttons centred under the headline, not
     two banners. Full-width shouty CTAs swallowed the hero on small screens. */
  .hero-ctas { gap: 10px; margin-bottom: 26px; justify-content: center; }
  .hero-ctas .btn {
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 13px 22px;
  }
  .hero-ctas .btn svg { width: 16px; height: 16px; }
  .tag-ph-a, .tag-ph-b { display: none; }
  .hero h1 { -webkit-text-stroke: 2px var(--ink); }
  .hero h1 .outline { -webkit-text-stroke: 2px var(--ink); }
}

/* --------------------------------------------------------------------------
   14. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   15. v2.1 — loader video, brand image, screenshot gallery, queued platforms
   -------------------------------------------------------------------------- */
#loader video { width: min(70vmin, 560px); display: block; }
/* v2.4: video loader retired — the authored vector splash now runs inside
   #loader (see assets/css/splash.css + assets/js/splash.js) */

.brand img { width: 34px; height: 34px; object-fit: contain; }
.footer .brand img { width: 32px; height: 32px; }

/* version card — the live release panel */
.versionsec { padding: clamp(80px, 11vw, 140px) 0; border-bottom: 2px solid var(--ink); }
.vercard {
  max-width: 560px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--accent);
  padding: 26px 26px 24px;
  display: grid;
  gap: 14px;
}
.ver-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.ver-name { font-family: var(--f-display); font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; line-height: 1; }
.ver-badge {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 2px solid var(--ink); padding: 5px 10px; white-space: nowrap;
}
.ver-notes { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.ver-sha {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-soft);
  word-break: break-all; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 10px 0;
}
.ver-dl { justify-self: start; }

/* screenshot gallery — Side B */.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 34px var(--gutter) 44px;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--accent); }
.gphone {
  position: relative;
  flex: 0 0 auto;
  width: min(252px, 66vw);
  scroll-snap-align: center;
  border: 3px solid #000;
  background: var(--paper);
  padding: 9px;
  border-radius: 36px;
  box-shadow: 10px 10px 0 var(--accent);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s var(--ease);
}
.gphone:hover { transform: rotate(0deg) translateY(-6px); }
.gphone img { width: 100%; border-radius: 28px; display: block; }
.gphone:nth-child(odd)  { --tilt: -1.7deg; }
.gphone:nth-child(even) { --tilt: 1.5deg; }
.gphone > .tag { position: absolute; top: -16px; left: 14px; z-index: 2; }

/* download rows — platforms in the queue */
.dlrow.soon { opacity: 0.42; cursor: default; }
.dlrow.soon:hover { background: transparent; padding-left: clamp(8px, 1.5vw, 20px); }
.dlrow.soon .go { border-style: dashed; }

/* --------------------------------------------------------------------------
   16. v2.3 — player/lyrics showcase, spec strip
   (account info is scrubbed at the pixel level in assets/images/screens/clean
    — no overlays, no tapes; images are edited directly)
   -------------------------------------------------------------------------- */

/* player & lyrics showcase */
.playersec { padding: clamp(80px, 11vw, 140px) 0; border-bottom: 2px solid var(--ink); }

.duo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 0 10px;
}
.stage-word {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-size: clamp(110px, 22vw, 300px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(19, 19, 17, 0.14);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .stage-word { color: rgba(19, 19, 17, 0.06); }
}
.duo .gphone { width: min(270px, 70vw); z-index: 1; }
.duo .gphone + .gphone {
  margin-left: clamp(-90px, -8vw, -40px);
  margin-top: 34px;
  --tilt: 2.5deg;
}

/* spec strip */
.speclist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
}
.speclist > div {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.speclist b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }

@media (max-width: 760px) {
  .speclist { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  /* Two phones side by side must never add up to more than the viewport:
     the old fixed 240px pair pushed the page wide between 480 and 520px and
     the whole document panned sideways into blank paper on phones. */
  .duo .gphone { width: min(240px, 46vw); }
  .duo .gphone + .gphone { margin-left: -34px; }
}
