/* ==========================================================================
   SonikBox - "Signal & Night" design system

   Two typefaces carry the whole system on purpose: Fraunces (display) is
   the only place the page gets emotional - headlines only, never labels or
   body copy. IBM Plex Mono carries everything else - paragraphs, labels,
   data, controls - so the page reads like a session log/studio rider next
   to a handful of large, warm headline moments. Orange is fill, never
   type: it shows up as a highlighter behind headline text, a nameplate
   chip, a patch-light mark, or one full-bleed closing section - never as
   colored letters.
   ========================================================================== */

:root {
  color-scheme: dark;

  --orange: #ff5500;
  --orange-hover: #ff6b1f;
  --orange-dim: #b33c00;

  /* Warm near-black/near-white - never pure #000/#fff. */
  --bg: #0b0a08;
  --bg-raised: #151310;
  --ink: #f4efe6;
  --ink-dim: #a89f92;
  --ink-faint: #6f6862;
  --line: rgba(244, 239, 230, 0.14);
  --line-strong: rgba(244, 239, 230, 0.3);

  --nav-height: 76px;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --fs-micro: 11px;
  --fs-label: 12px;
  --fs-spec: 13px;
  --fs-body: 16px;
  --fs-h3: 15px;
  --fs-h2: clamp(28px, 4.4vw, 42px);
  --fs-h1: clamp(32px, 6vw, 64px);

  --tap: 44px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--orange) var(--bg-raised);
  scrollbar-width: thin;
}

section[id],
#top {
  scroll-margin-top: calc(var(--nav-height) + var(--space-4));
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-raised);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border: 2px solid var(--bg-raised);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  min-width: 0;
}

@media (min-width: 700px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.hero-grid > *,
.hubs > *,
.hub-list > *,
.quote-grid > *,
.module-rows > *,
.finale-grid > *,
.hub-toggle > * {
  min-width: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 2000;
  background: var(--orange);
  color: var(--bg);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

/* ---------------------------------------------------------------------
   Shared marks: the LED status dot and the VU meter - carried over as the
   page's one recurring "alive" motif, used sparingly (hero, hub rows,
   summary panel, finale) rather than stamped on every card.
   --------------------------------------------------------------------- */

.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee08a;
  box-shadow: 0 0 6px 1px rgba(78, 224, 138, 0.65);
  flex: 0 0 auto;
}

.vu-meter {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.vu-meter span {
  width: 4px;
  background: var(--orange);
  opacity: 0.35;
}

.vu-meter span:nth-child(1) { height: 40%; }
.vu-meter span:nth-child(2) { height: 100%; opacity: 0.9; }
.vu-meter span:nth-child(3) { height: 70%; opacity: 0.6; }
.vu-meter span:nth-child(4) { height: 55%; opacity: 0.45; }

.vu-meter--dark span {
  background: var(--bg);
}

/* Small mono tag lines carrying the settled "// Label" copy - composed
   differently per section (standalone above a block in Hubs, folded as a
   second line inside the heading in Specs/Estimator) so the same device
   doesn't repeat identically at every section break. */
.tag-note {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-spec);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin: 0 0 var(--space-4);
}

.tag-note--inline {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-label);
}

/* ---------------------------------------------------------------------
   Buttons - sharp-edged on purpose (flight-case hardware, not rounded
   software chrome); every pressable gets scale feedback on :active.
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-icon {
  width: 10px;
  height: 12px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--orange);
  color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--orange-hover);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    border-color: var(--orange);
  }
}

.btn-dark {
  background: var(--bg);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover {
    background: var(--bg-raised);
  }
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.cta-address {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--fs-spec);
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .cta-address:hover {
    color: var(--ink);
    border-bottom-color: var(--line-strong);
  }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 10, 8, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--nav-height);
}

.logo {
  text-decoration: none;
  flex: 0 0 auto;
}

.logo-word {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.logo-word .mark {
  background: var(--orange);
  color: var(--bg);
  padding: 2px 6px;
  margin-left: 2px;
}

.site-nav nav {
  display: none;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.nav-toggle:active {
  transform: scale(0.94);
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 0 auto;
  width: 20px;
  background: var(--ink);
}

.nav-panel {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-panel.is-open {
  display: block;
}

.nav-panel .nav-links {
  flex-direction: column;
  gap: 0;
  padding: var(--space-2) var(--space-5);
}

.nav-panel .nav-links a {
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .site-nav nav {
    display: block;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-panel {
    display: none !important;
  }
}

/* ==========================================================================
   Hero - full-bleed photo on one edge, no frame; one orchestrated entrance.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-copy {
  padding: var(--space-16) 0 var(--space-12);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: 0 0 var(--space-8);
}

.hub-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-title {
  font-size: var(--fs-h1);
  overflow: hidden;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: hero-reveal 700ms var(--ease-out) forwards;
}

.hero-line:nth-child(2) {
  animation-delay: 90ms;
  margin-top: 0.08em;
}

@keyframes hero-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fill {
  display: inline;
  background: var(--orange);
  color: var(--bg);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lede {
  max-width: 52ch;
  margin: var(--space-8) 0 0;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
}

.hero-media {
  position: relative;
  min-height: 320px;
  opacity: 0;
  transform: scale(1.03);
  animation: hero-media-reveal 900ms var(--ease-out) 120ms forwards;
}

@keyframes hero-media-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-media .hero-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 8, 0) 40%, rgba(11, 10, 8, 0.92) 100%);
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  border-top: 1px solid var(--line);
}

.hero-caption-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--space-2);
}

.hero-caption-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.hero-caption-body {
  max-width: 40ch;
  font-size: var(--fs-spec);
  color: var(--ink-dim);
  margin: 0;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100svh - var(--nav-height));
  }

  .hero-copy {
    display: flex;
    align-items: center;
    padding: var(--space-16) 0;
  }

  .hero-copy .container {
    padding-right: var(--space-10);
  }

  .hero-media {
    min-height: 0;
  }
}

@media (min-width: 1200px) {
  .hero-copy .container {
    padding-left: var(--space-10);
    padding-right: var(--space-16);
  }
}

/* ==========================================================================
   Hubs - full-bleed photo band beside a plain document-style list.
   ========================================================================== */

.hubs {
  display: grid;
  grid-template-columns: 1fr;
}

.hubs-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hubs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hubs-copy {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--line);
}

.hubs-lede {
  max-width: 56ch;
  margin: var(--space-5) 0 var(--space-10);
  font-size: var(--fs-body);
  color: var(--ink-dim);
}

.hub-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.hub-row {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}

.hub-row dt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.hub-row dd {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-dim);
}

@media (min-width: 860px) {
  .hubs {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .hubs-media {
    aspect-ratio: auto;
  }

  .hubs-copy {
    border-top: none;
    border-left: 1px solid var(--line);
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   Specs - the Studio Rider. A continuous document, not a card grid.
   ========================================================================== */

.rider {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--line);
}

.print-only {
  display: none;
}

.rider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.rider-lede {
  max-width: 56ch;
  margin: var(--space-4) 0 0;
  color: var(--ink-dim);
}

.rider-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.rider-index {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-spec);
}

.rider-index a {
  text-decoration: none;
  color: var(--ink-faint);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .rider-index a:hover {
    color: var(--ink);
    border-bottom-color: var(--line-strong);
  }
}

.module-list {
  display: flex;
  flex-direction: column;
}

.module {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line);
}

.module:last-child {
  border-bottom: 1px solid var(--line);
}

.module h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 var(--space-5);
}

.module-mark {
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex: 0 0 auto;
}

.module-rows {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.module-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-spec);
}

.module-row:first-child {
  border-top: none;
}

.module-row dt {
  color: var(--ink-faint);
}

.module-row dd {
  margin: 0;
  color: var(--ink);
}

.module-row-stacked dt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.row-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}

.row-tag-addon {
  border-color: var(--orange-dim);
  color: var(--orange);
}

.addon-line {
  display: block;
}

.addon-price {
  color: var(--ink);
  font-weight: 600;
}

.addon-note {
  color: var(--ink-faint);
  font-size: var(--fs-micro);
}

@media (min-width: 700px) {
  .module-row {
    grid-template-columns: minmax(0, 30ch) minmax(0, 1fr);
  }

  /* Module 05's synth/drum/DJ rows pair a label with a status tag; the
     longer labels ("Drum Machines & Pads") don't fit the 30ch label track
     alongside a tag, so these rows go full-width instead of sharing that
     column with the plain label/value rows above them. */
  .module-row-stacked {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .rider-body {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .rider-index {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-8));
    align-self: start;
    padding-top: var(--space-2);
  }
}

/* ==========================================================================
   Estimator - the quote slip.
   ========================================================================== */

.quote-section {
  padding: var(--space-16) 0 var(--space-24);
  border-top: 1px solid var(--line);
}

.quote-lede {
  max-width: 56ch;
  margin: var(--space-4) 0 0;
  color: var(--ink-dim);
}

.quote-head {
  margin-bottom: var(--space-10);
}

.quote-panel {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--space-10);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.field-label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hub-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
}

.hub-toggle button {
  padding: var(--space-4);
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.hub-toggle button:first-child {
  border-right: 1px solid var(--line-strong);
}

.hub-toggle button:active {
  transform: scale(0.98);
}

.hub-toggle button[aria-pressed="true"] {
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
}

.range-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  height: 3px;
  background: linear-gradient(to right, var(--orange) var(--range-fill, 0%), var(--line-strong) var(--range-fill, 0%));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--ink);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--orange);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
  height: 3px;
  background: var(--line-strong);
}

input[type="range"]::-moz-range-progress {
  height: 3px;
  background: var(--orange);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--ink);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--orange);
  cursor: pointer;
}

.range-value {
  flex: 0 0 auto;
  min-width: 6ch;
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: var(--tap);
  padding: 0 var(--space-10) 0 var(--space-4);
  background-color: var(--bg-raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23f4efe6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-spec);
}

.addons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.addon-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: var(--fs-spec);
  color: var(--ink-dim);
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.addon-option:active {
  transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .addon-option:hover {
    border-color: var(--line-strong);
  }
}

.addon-option input {
  margin-top: 3px;
  accent-color: var(--orange);
  flex: 0 0 auto;
}

.addon-name {
  color: var(--ink);
  font-weight: 600;
}

.quote-summary {
  background: var(--bg-raised);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-self: start;
}

.quote-summary-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.quote-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-spec);
}

.quote-line > span:first-child {
  color: var(--ink-faint);
}

.quote-line > span:last-child {
  color: var(--ink);
  font-weight: 600;
}

.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}

.quote-total .label {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.quote-total .value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--orange);
}

.mobile-total-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-raised);
  border-top: 1px solid var(--line-strong);
  transform: translateY(100%);
  transition: transform 220ms var(--ease-out);
}

.mobile-total-bar.is-visible {
  transform: translateY(0);
}

.mobile-total-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mobile-total-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--orange);
}

@media (min-width: 860px) {
  .quote-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .mobile-total-bar {
    display: none;
  }
}

/* ==========================================================================
   Finale - the one place the page goes fully orange.
   ========================================================================== */

.finale {
  background: var(--orange);
  color: var(--bg);
  padding: var(--space-16) 0;
}

.finale-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-10);
}

.finale-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 10, 8, 0.7);
  margin: 0 0 var(--space-4);
}

.finale h2 {
  color: var(--bg);
}

.finale-lede {
  max-width: 52ch;
  margin: var(--space-5) 0 0;
  color: rgba(11, 10, 8, 0.82);
}

.finale-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.finale .cta-address {
  color: rgba(11, 10, 8, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  .finale .cta-address:hover {
    color: var(--bg);
    border-bottom-color: rgba(11, 10, 8, 0.5);
  }
}

.finale-meter {
  display: none;
}

@media (min-width: 860px) {
  .finale-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .finale-meter {
    display: flex;
    justify-content: flex-end;
  }

  .finale-meter .vu-meter {
    height: 96px;
    gap: 10px;
  }

  .finale-meter .vu-meter span {
    width: 14px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-12) 0 var(--space-16);
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  font-size: var(--fs-h2);
}

.site-footer p {
  max-width: 60ch;
  margin-top: var(--space-4);
  color: var(--ink-dim);
}

.footer-contact {
  font-size: var(--fs-spec);
}

.copyright {
  margin-top: var(--space-10);
  font-size: var(--fs-micro);
  color: var(--ink-faint);
}

/* ==========================================================================
   Scroll reveal - section-level entrances only, gated by js/main.js
   confirming IntersectionObserver support and no prefers-reduced-motion.
   Without the .js-reveal ancestor class, .reveal does nothing, so a failed
   script never leaves content stuck invisible.
   ========================================================================== */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.js-reveal .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-property: color, background-color, border-color, opacity !important;
    scroll-behavior: auto !important;
  }

  .btn:active,
  .hub-toggle button:active,
  .addon-option:active,
  .nav-toggle:active,
  input[type="range"]:active::-webkit-slider-thumb {
    transform: none !important;
  }

  .hero-line,
  .hero-media {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Print stylesheet - "Print Studio Rider"
   ========================================================================== */

@page {
  margin: 14mm;
}

@media print {
  .site-nav,
  .hero,
  .hubs,
  .quote-section,
  .finale,
  .site-footer,
  .version-switch {
    display: none !important;
  }

  .no-print {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .rider {
    padding: 0;
    border: none;
  }

  .rider-head {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .print-title {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.02em;
  }

  .print-subtitle {
    font-size: 12px;
    color: #555;
    margin-bottom: var(--space-6);
    font-weight: normal;
  }

  .rider-body {
    display: block;
  }

  .module {
    break-inside: avoid;
    page-break-inside: avoid;
    border-top: 1px solid #999;
  }

  .module:last-child {
    border-bottom: 1px solid #999;
  }

  .module h3 {
    color: #000 !important;
  }

  .module-mark {
    background: #000 !important;
  }

  .module-row {
    grid-template-columns: minmax(0, 30ch) minmax(0, 1fr);
    border-top-color: #ccc;
  }

  .module-row-stacked {
    grid-template-columns: 1fr;
  }

  .module-row dt {
    color: #444;
  }

  .module-row dd {
    color: #000;
  }

  .row-tag {
    border-color: #999;
    color: #000 !important;
  }

  .addon-price {
    color: #000;
  }

  .addon-note {
    color: #444;
  }

  h2, h3 {
    color: #000 !important;
  }
}

/* ==========================================================================
   Design preview toggle - temporary, for client review of Design A vs
   Design B. Remove this block plus the <div class="version-switch"> markup
   in version-b.html (and index.html's mirror of both) once the captain has
   picked a direction.
   ========================================================================== */

.version-switch {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-3));
  right: var(--space-4);
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  max-width: calc(100vw - var(--space-8));
  padding: var(--space-2) var(--space-4);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
}

.version-switch-label {
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.version-switch-option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.version-switch-option.is-current {
  background: var(--orange);
  color: var(--bg);
  border-color: var(--orange);
}

.version-switch-note {
  font-weight: 400;
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .version-switch-option:not(.is-current):hover {
    border-color: var(--orange);
  }
}

@media (max-width: 859px) {
  /* A compact corner badge rather than a full-width strip: it stays fixed
     while the page scrolls, so a wide banner would spend several lines
     sitting over whatever body copy happens to scroll underneath it. */
  .version-switch {
    padding: var(--space-1) var(--space-2);
  }

  .version-switch-label,
  .version-switch-note {
    display: none;
  }

  .version-switch-option {
    padding: var(--space-1) var(--space-2);
  }
}
