@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&family=Space+Grotesk:wght@400;600&display=swap");

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --red: #e10600;
  --red-bright: #ff1f1f;
  --red-dim: rgba(225, 6, 0, 0.35);
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.4);
  --max: 1180px;
  --nav-h: 5rem;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

/* Atmosphere: faint slash grid + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(225, 6, 0, 0.12), transparent 55%),
    repeating-linear-gradient(
      -32deg,
      transparent,
      transparent 72px,
      rgba(255, 255, 255, 0.015) 72px,
      rgba(255, 255, 255, 0.015) 73px
    );
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--fg);
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--red-bright);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Progress / header —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  z-index: 60;
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

@media (max-width: 720px), (pointer: coarse) {
  .site-header {
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: none;
  }
}

#quote {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.92);
}

.site-header .inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: block;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.25s var(--ease);
}

.brand-logo:hover {
  transform: scale(1.03);
  color: inherit;
}

.brand-logo img {
  height: 2.65rem;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a:hover {
  color: var(--fg);
  opacity: 1;
}

.nav-item.has-sub {
  position: relative;
  /* Extend hit area toward the dropdown so the menu doesn’t vanish mid-mouse-travel */
  padding-bottom: 0.85rem;
  margin-bottom: -0.85rem;
}

.nav-sub-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.2rem 0;
  cursor: pointer;
  position: relative;
}

.nav-sub-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-item.has-sub:hover > .nav-sub-btn::after,
.nav-item.has-sub.is-open > .nav-sub-btn::after,
.nav-item.has-sub.is-current > .nav-sub-btn::after {
  transform: scaleX(1);
}

.nav-sub {
  list-style: none;
  margin: 0;
  /* Top padding bridges the gap under the label (keeps :hover alive) */
  padding: 0.7rem 0 0.45rem;
  min-width: 12.5rem;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.2rem);
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 40;
}

.nav-item.has-sub:hover > .nav-sub,
.nav-item.has-sub:focus-within > .nav-sub,
.nav-item.has-sub.is-open > .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Desktop dropdown centering — must NOT apply on mobile (was shifting submenu off-screen) */
@media (min-width: 901px) {
  .nav-item.has-sub:hover > .nav-sub,
  .nav-item.has-sub:focus-within > .nav-sub,
  .nav-item.has-sub.is-open > .nav-sub {
    transform: translateX(-50%) translateY(0);
  }
}

.nav-sub a {
  display: block;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  font-size: 0.88rem;
  color: #fff;
}

.nav-sub a::after {
  display: none;
}

.nav-sub a:hover,
.nav-sub a[aria-current="page"] {
  color: var(--red-bright);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #000;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-item.has-sub {
    display: block;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-sub-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.5rem;
  }

  .nav-sub-btn::after {
    display: none;
  }

  .nav-sub {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    margin: 0 0 0.15rem;
    padding: 0.2rem 0 0.35rem 0.85rem;
    border-left: 2px solid var(--red);
    margin-left: 1.5rem;
    margin-right: 1rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .nav-item.has-sub.is-open > .nav-sub {
    display: block;
  }

  /* Kill desktop centering transform — higher specificity than the shared open rule */
  .nav-item.has-sub:hover > .nav-sub,
  .nav-item.has-sub:focus-within > .nav-sub,
  .nav-item.has-sub.is-open > .nav-sub {
    transform: none;
    left: auto;
  }

  .nav-sub a,
  .nav-sub a:visited {
    padding: 0.55rem 0.85rem 0.55rem 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    opacity: 1;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 0;
  }

  .nav-sub li + li a {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-sub a:hover,
  .nav-sub a:focus,
  .nav-sub a[aria-current="page"] {
    color: var(--red-bright);
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0.5rem 0 2rem;
}

.tools-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(225, 6, 0, 0.08), transparent 55%);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

a.tools-card:hover {
  border-color: var(--red-dim);
  transform: translateY(-2px);
  color: inherit;
}

.tools-card h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.45rem;
}

.tools-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.tools-card .link-cta {
  margin-top: 0.25rem;
}

.tools-card-soon {
  opacity: 0.88;
}

@media (max-width: 720px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.turntable-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  gap: 1.5rem 1.75rem;
  padding: 0.25rem 0 3rem;
  align-items: start;
}

.turntable-stage-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.turntable-stage {
  position: relative;
  min-height: min(62vh, 560px);
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.turntable-stage.is-drop {
  outline: 2px solid var(--red-bright);
  outline-offset: -2px;
}

.turntable-stage.is-locked {
  cursor: default;
}

.turntable-stage.is-locked canvas {
  pointer-events: none;
}

.turntable-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(62vh, 560px);
  touch-action: none;
  background: #fff;
}

.turntable-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(225, 6, 0, 0.18), transparent 70%),
    rgba(12, 12, 12, 0.88);
  color: #f2f2f2;
  text-align: center;
}

.turntable-stage.is-loading .turntable-loader:not([hidden]) {
  display: flex;
}

.turntable-stage.is-loading .turntable-status {
  opacity: 0;
}

.turntable-loader-visual {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 0.25rem;
}

.turntable-loader-orbit,
.turntable-loader-disc,
.turntable-loader-core {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.turntable-loader-orbit {
  border: 2px dashed rgba(255, 255, 255, 0.28);
  animation: tt-loader-orbit 4.5s linear infinite;
}

.turntable-loader-disc {
  width: 3.35rem;
  height: 3.35rem;
  background:
    conic-gradient(from 210deg, #e10600 0 38%, #ff1f1f 38% 52%, #7a0400 52% 100%);
  box-shadow:
    0 0 0 3px rgba(225, 6, 0, 0.35),
    0 0 28px rgba(225, 6, 0, 0.45);
  animation: tt-loader-spin 0.85s linear infinite;
}

.turntable-loader-core {
  width: 0.85rem;
  height: 0.85rem;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.turntable-loader-label {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.turntable-loader-bar {
  width: min(16rem, 72%);
  height: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.turntable-loader-fill {
  display: block;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  animation: tt-loader-bar 1.05s ease-in-out infinite;
}

@keyframes tt-loader-bar {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(360%);
  }
}

@keyframes tt-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tt-loader-orbit {
  to {
    transform: rotate(-360deg);
  }
}

.turntable-orbit-hint {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: calc(100% - 9rem);
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  pointer-events: none;
}

.turntable-orbit-hint-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.turntable-stage.is-editing .turntable-orbit-hint:not([hidden]) {
  display: flex;
}

.turntable-orbit-icon {
  flex: 0 0 auto;
  color: #111;
  stroke-width: 2.1;
}

.turntable-stage-history {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: none;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.turntable-stage.is-editing .turntable-stage-history:not([hidden]) {
  display: inline-flex;
}

.turntable-stage-history .btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #fff;
  border-color: var(--red-bright);
  background: var(--red);
}

.turntable-stage-history .btn:hover:not(:disabled) {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #fff;
}

.turntable-stage-history .btn:disabled {
  opacity: 0.45;
  color: #fff;
}

.turntable-status {
  position: absolute;
  left: 1rem;
  right: 6.5rem;
  bottom: 1rem;
  margin: 0;
  pointer-events: none;
  color: #222;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
}

.turntable-stage-bar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(225, 6, 0, 0.06);
}

.turntable-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.turntable-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turntable-toggle-ui {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #2a2a2a;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.turntable-toggle-ui::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #ddd;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.turntable-toggle input:checked + .turntable-toggle-ui {
  background: var(--red);
  border-color: var(--red-bright);
}

.turntable-toggle input:checked + .turntable-toggle-ui::after {
  transform: translateX(1.15rem);
  background: #fff;
}

.turntable-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.turntable-toggle-text strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
}

.turntable-toggle-text small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.turntable-controls-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.turntable-toggle-hint {
  margin: 0;
  font-size: 0.82rem;
}

.turntable-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.turntable-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.turntable-steps li {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.turntable-steps li.is-active {
  color: var(--fg);
  border-color: var(--red-bright);
}

.turntable-steps li.is-done {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.35);
}

.turntable-steps li.is-skipped {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: default;
}

.turntable-step-panel {
  display: none;
}

.turntable-step-panel.is-active {
  display: block;
}

.turntable-step-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.turntable-help {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.turntable-tip {
  margin: -0.35rem 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

.turntable-tip.turntable-tip-em {
  color: var(--red-bright);
}

.turntable-privacy {
  margin: -0.55rem 0 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--red-bright);
}

.turntable-report-issues {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(225, 6, 0, 0.55);
  background: rgba(255, 255, 255, 0.94);
  color: #333;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.turntable-report-issues:hover {
  color: #fff;
  border-color: var(--red-bright);
  background: var(--red);
}

.turntable-nav .btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: #2a2a2a;
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}

.turntable-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.75rem;
}

.turntable-mode-toggle,
.turntable-highlight-toggle,
.turntable-history {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.turntable-mode-toggle .btn.is-active,
.turntable-highlight-toggle .btn.is-active {
  background: rgba(225, 6, 0, 0.22);
  border-color: var(--red-bright);
  color: var(--fg);
}

.turntable-highlight-toggle .btn[data-tt-highlight="green"].is-active {
  background: rgba(34, 197, 94, 0.22);
  border-color: #22c55e;
}

.turntable-axis-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.turntable-axis-toggle .btn {
  min-width: 2.5rem;
  justify-content: center;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  font-weight: 700;
}

.turntable-axis-toggle .btn[data-tt-axis-btn="x"] {
  color: #ff6b6b;
  border-color: rgba(225, 6, 0, 0.55);
}

.turntable-axis-toggle .btn[data-tt-axis-btn="x"].is-active {
  color: #fff;
  background: #e10600;
  border-color: #e10600;
}

.turntable-axis-toggle .btn[data-tt-axis-btn="y"] {
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.55);
}

.turntable-axis-toggle .btn[data-tt-axis-btn="y"].is-active {
  color: #0a0a0a;
  background: #22c55e;
  border-color: #22c55e;
}

.turntable-axis-toggle .btn[data-tt-axis-btn="z"] {
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.55);
}

.turntable-axis-toggle .btn[data-tt-axis-btn="z"].is-active {
  color: #fff;
  background: #3b82f6;
  border-color: #3b82f6;
}

.turntable-step-panel[data-tt-step="2"] .turntable-shaft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.turntable-mode-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.turntable-preset-hint {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.turntable-preset-hint.is-rce-note {
  color: var(--fg);
}

.turntable-preset-hint .turntable-note-em {
  color: var(--red-bright);
}

.turntable-preset-hint.is-rce-note code {
  color: inherit;
  font-size: 0.92em;
}

.turntable-rce-link-wrap {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.turntable-rce-link-wrap a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.turntable-rce-link-wrap a:hover {
  color: var(--fg);
}

.turntable-tip-jar-wrap {
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  animation: turntable-tip-soft 2.8s ease-in-out infinite;
}

.turntable-tip-jar-wrap a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.25s ease;
  animation: turntable-tip-link 2.8s ease-in-out infinite;
}

.turntable-tip-jar-wrap a:hover {
  color: var(--fg);
  animation: none;
}

@keyframes turntable-tip-soft {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes turntable-tip-link {
  0%,
  100% {
    color: var(--muted);
  }
  50% {
    color: var(--red-bright);
  }
}

@media (prefers-reduced-motion: reduce) {
  .turntable-tip-jar-wrap,
  .turntable-tip-jar-wrap a {
    animation: none;
  }
}

/* —— Tip jar (linked only from turntable export) —— */
.tip-jar-page .tip-jar-header .nav-toggle,
.tip-jar-page .tip-jar-header .nav-links {
  display: none;
}

.tip-jar {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.tip-jar-card {
  border: 1px solid var(--line);
  padding: 1.75rem 1.4rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(225, 6, 0, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.tip-jar-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tip-jar h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.tip-jar-lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tip-jar-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.tip-amt {
  min-width: 3.4rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.tip-amt:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.tip-amt.is-active {
  border-color: var(--red-bright);
  background: rgba(225, 6, 0, 0.18);
}

.tip-amt-custom {
  flex: 1 1 auto;
}

.tip-jar-custom,
.tip-jar-message {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.95rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tip-jar-message em {
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  opacity: 0.8;
}

.tip-jar-custom input,
.tip-jar-message textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg);
  background: #0a0a0a;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  resize: vertical;
}

.tip-jar-submit {
  width: 100%;
  justify-content: center;
}

.tip-jar-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  min-height: 1.3em;
}

.tip-jar-fine {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
}

.turntable-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.85rem;
  max-height: 5.5rem;
  overflow: auto;
}

.turntable-swatch {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  cursor: pointer;
}

.turntable-swatch:hover,
.turntable-swatch.is-active {
  outline: 2px solid rgba(225, 6, 0, 0.75);
  outline-offset: 1px;
}

.turntable-check-q {
  margin: 1rem 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.turntable-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.turntable-nav-stack {
  flex-direction: column;
  align-items: stretch;
}

.turntable-nav-stack .btn {
  justify-content: center;
  text-align: center;
}

.turntable-file-btn {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.turntable-file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.turntable-file-name {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  word-break: break-all;
}

.turntable-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.turntable-rpm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.7rem;
}

.turntable-rpm-field {
  margin: 0;
  flex: 0 0 auto;
}

.turntable-rpm-field input[type="number"] {
  width: 4.5rem;
  max-width: 4.5rem;
  padding: 0.45rem 0.4rem;
  text-align: center;
}

.turntable-rpm-note {
  margin: 0 0 0.35rem;
  flex: 1 1 8rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.turntable-field select,
.turntable-field input[type="number"] {
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg);
  background: #0a0a0a;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
}

.turntable-color-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.turntable-color-row input[type="color"] {
  width: 3rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.turntable-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.turntable-check[hidden] {
  display: none !important;
}

.turntable-export-status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .turntable-tool {
    grid-template-columns: 1fr;
  }

  .turntable-stage,
  .turntable-stage canvas {
    min-height: min(52vh, 420px);
  }
}

/* —— Layout —— */
.wrap {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.25rem 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

.title-underline {
  display: inline-block;
  border-bottom: 3px solid var(--fg);
  padding-bottom: 0.15rem;
  margin-bottom: 1.25rem;
}

.accent-heading {
  color: var(--red-bright);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin: 2.25rem 0 1.5rem;
  font-size: 1.05rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0 0 0.85rem;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--red-bright);
}

/* Back-link kickers: arrow instead of the red rule */
.kicker:has(a)::before {
  content: "←";
  width: auto;
  height: auto;
  background: none;
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--red-bright);
}

.kicker a {
  text-decoration: none;
}

.kicker a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* CTAs */
.link-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 0.2rem;
  background: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.link-cta:hover {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
  transform: translateX(2px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: var(--fg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--fg);
}

.btn-red:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: var(--fg);
}

/* —— Marquee ticker —— */
.ticker {
  border-block: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.7rem 0;
  animation: ticker 32s linear infinite;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.ticker-track .slash {
  color: var(--red-bright);
}

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

/* —— Home —— */
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
  padding: 1.25rem 0 1.75rem;
  min-height: 0;
}

.home-hero .hero-visual {
  position: relative;
}

.home-hero .hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(circle at 40% 40%, var(--red-dim), transparent 60%);
  z-index: -1;
  opacity: 0.7;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

.home-hero .hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

.home-hero .welcome {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1.15rem;
}

.offer-label {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.offer-list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.offer-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 2px;
  background: var(--red-bright);
  transform: skewX(-28deg);
}

.home-note {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 1rem 0 2rem;
}

.home-split .col {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 1rem 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}

.home-split a.col:hover {
  color: inherit;
  border-color: var(--red-bright);
  transform: translateY(-3px);
}

.home-split a.col:hover .link-cta {
  color: var(--red-bright);
}

.home-split .col:hover {
  border-color: var(--red-dim);
}

.home-split .col img {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 1000 / 595;
  height: auto;
  margin: 1rem auto 1.25rem;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-split .col p {
  max-width: 26rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .home-hero,
  .home-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }
}

/* Featured bot band */
.featured-bot {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid var(--line);
}

.featured-bot img {
  width: 100%;
  max-height: 20rem;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(225, 6, 0, 0.25));
  animation: float-soft 5.5s ease-in-out infinite;
}

.featured-bot .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 1.25rem 0 1.5rem;
}

.featured-bot .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
}

.featured-bot .stat span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 800px) {
  .featured-bot {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .featured-bot .stats {
    justify-content: center;
  }
}

/* —— Services —— */
.page-title {
  text-align: center;
  padding: 2.75rem 0 2rem;
}

.page-title .lede {
  margin-inline: auto;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  padding-bottom: 3rem;
}

@media (max-width: 1000px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Keep 2-up service cards on phones (see mobile density pass) */

.svc-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 0.5rem 1.25rem;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.svc-card:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-4px);
  color: inherit;
  opacity: 1;
}

.svc-card .thumb {
  aspect-ratio: 1;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--line);
}

.svc-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.svc-card:hover .thumb img {
  transform: scale(1.06);
}

.svc-card .thumb.contain img {
  object-fit: contain;
  padding: 0.5rem;
}

.svc-card h3 {
  display: inline-block;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 0.1rem;
  margin-bottom: 0.45rem;
  transition: border-color 0.2s var(--ease);
}

.svc-card:hover h3 {
  border-bottom-color: var(--red-bright);
}

.svc-card .price {
  font-family: var(--font-heading);
  color: var(--red-bright);
  margin: 0 0 0.65rem;
}

.svc-card p {
  margin: 0 auto 1rem;
  max-width: 16rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.svc-card .more {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* —— Service detail —— */
.service-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.service-hero .hero-img {
  display: block;
  width: min(100%, 920px);
  margin: 1.5rem auto;
  border: 1px solid var(--line);
  /* Match modeling banner proportions; crop taller heroes top/bottom */
  aspect-ratio: 1413 / 637;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.service-hero .hero-img--print-contrast {
  filter: contrast(1.14) brightness(1.03) saturate(1.06);
}

.service-hero .hero-img--seamless {
  border: none;
}

.service-hero .body-copy {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.service-hero .body-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.red-rule {
  border: none;
  border-top: 2px solid var(--red);
  margin: 2rem auto;
  width: min(100%, 900px);
}

/* —— How this service works —— */
.svc-process {
  padding: 0.5rem 0 0.25rem;
}

.svc-process > h2 {
  text-align: center;
  margin: 0 0 0.4rem;
}

.svc-process > .lede {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

.svc-process-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 48rem;
  display: grid;
  gap: 0;
}

.svc-process-list li {
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  gap: 0.85rem 1.15rem;
  padding: 0.95rem 0 1.45rem;
  border: none;
  align-items: start;
  position: relative;
}

.svc-process-list li:last-child {
  padding-bottom: 0.85rem;
}

/* Vertical guide through the icon column */
.svc-process-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 2.85rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22),
    rgba(225, 6, 0, 0.45) 55%,
    rgba(255, 255, 255, 0.1)
  );
}

/* Down-arrow on the guide between steps */
.svc-process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.08rem;
  bottom: 0.2rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--red-bright);
  border-bottom: 2px solid var(--red-bright);
  transform: rotate(45deg);
  animation: svc-flow-bob 2s var(--ease) infinite;
  z-index: 1;
}

@keyframes svc-flow-bob {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.75;
  }
  50% {
    transform: translateY(5px) rotate(45deg);
    opacity: 1;
  }
}

.svc-process-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.svc-process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.svc-process-list--viz {
  max-width: 48rem;
}

.svc-step-glyph {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  color: var(--red-bright);
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px var(--bg);
}

.svc-step-glyph svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

@media (max-width: 560px) {
  .svc-process-list li {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.7rem 0.85rem;
  }

  .svc-process-list li:not(:last-child)::before {
    left: 1.1rem;
    top: 2.35rem;
  }

  .svc-process-list li:not(:last-child)::after {
    left: 0.85rem;
  }

  .svc-step-glyph {
    width: 2.35rem;
    height: 2.35rem;
  }

  .svc-step-glyph svg {
    width: 1.3rem;
    height: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-process-list li:not(:last-child)::after {
    animation: none;
  }
}

/* —— Services chooser key —— */
.svc-chooser {
  padding: 0.25rem 0 2.5rem;
}

.svc-chooser > h2 {
  text-align: center;
  margin: 0 0 0.4rem;
}

.svc-chooser > .lede {
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 38rem;
}

.svc-chooser-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 48rem;
  display: grid;
  gap: 0.85rem;
}

.svc-chooser-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 0.65rem 1.25rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.svc-chooser-list li:first-child {
  border-top: 1px solid var(--line);
}

.svc-chooser-list .need {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.svc-chooser-list a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.svc-chooser-list a:hover {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
}

@media (max-width: 640px) {
  .svc-chooser-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.gallery figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color 0.25s var(--ease);
}

.gallery figure:hover {
  border-color: var(--red-bright);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery.contain figure {
  aspect-ratio: 4 / 3;
}

.gallery.contain img {
  object-fit: contain;
  padding: 0.35rem;
}

.gallery-more {
  display: none;
}

/* Mobile marquee scaffold (activated via JS) */
.gallery-marquee.is-marquee-active {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  margin: 0.85rem 0 1.15rem;
}

.gallery-marquee-row {
  overflow: hidden;
  width: 100%;
}

.gallery-marquee-track {
  display: flex;
  gap: 0.45rem;
  width: max-content;
  will-change: transform;
}

.gallery-marquee.is-marquee-active figure {
  flex: 0 0 min(42vw, 11.5rem);
  aspect-ratio: 4 / 3;
  margin: 0;
}

.gallery-marquee.is-marquee-active .gallery-marquee-row:nth-child(1) .gallery-marquee-track {
  animation: gallery-marquee-x 42s linear infinite;
}

.gallery-marquee.is-marquee-active .gallery-marquee-row:nth-child(2) .gallery-marquee-track {
  animation: gallery-marquee-x 52s linear infinite reverse;
  animation-delay: -8s;
}

.gallery-marquee.is-marquee-active .gallery-marquee-row:nth-child(3) .gallery-marquee-track {
  animation: gallery-marquee-x 48s linear infinite;
  animation-delay: -18s;
}

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

.section-views,
.cad-views {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

.cad-views-full {
  margin: 0;
  background: #111;
  border: 1px solid var(--line);
  cursor: default;
}

.cad-views-full img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0.75rem 0.75rem 0.35rem;
  pointer-events: none;
}

.cad-views figcaption {
  margin: 0;
  padding: 0.55rem 0.85rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cad-views-cuts-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.cad-views-cuts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cad-views-cuts-grid figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color 0.25s var(--ease);
}

.cad-views-cuts-grid figure:hover {
  border-color: var(--red-bright);
}

.cad-views-cuts-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  transition: transform 0.5s var(--ease);
}

.cad-views-cuts-grid figure:hover img {
  transform: scale(1.05);
}

/* CAD cuts stay 3-up on phones via the mobile density pass below */

.component-details {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  margin-top: 1.75rem;
  max-width: 42rem;
  margin-inline: auto;
}

.component-block {
  text-align: center;
}

.component-fig {
  position: relative;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  /* Size to the image — fixed aspect-ratio + object-fit letterboxing
     shifted hotspot % coords (especially on mobile). */
  display: block;
  overflow: hidden;
  cursor: default;
  pointer-events: none;
}

.component-fig.has-hotspots {
  pointer-events: auto;
}

.component-fig.has-hotspots img {
  pointer-events: none;
}

.component-hotspot-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.component-hotspot-hit {
  position: absolute;
  width: 2.1rem;
  height: 2.1rem;
  margin: -1.05rem 0 0 -1.05rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.component-hotspot-dot {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(225, 6, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.component-hotspot-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.component-hotspot-hit.is-paired .component-hotspot-dot,
.component-hotspot-hit:hover .component-hotspot-dot,
.component-hotspot-hit:focus-visible .component-hotspot-dot {
  background: var(--red-bright);
  transform: scale(1.45);
  box-shadow: 0 0 0 6px rgba(225, 6, 0, 0.22);
}

.component-hotspot-hit.is-paired .component-hotspot-tip,
.component-hotspot-hit:hover .component-hotspot-tip,
.component-hotspot-hit:focus-visible .component-hotspot-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.component-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin-inline: auto;
}

.component-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--fg);
}

.component-bom {
  display: grid;
  gap: 0;
  text-align: left;
  max-width: 28rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.35rem 0.85rem;
}

.component-bom .bom-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.15rem 0.85rem;
  align-items: baseline;
  padding: 0.28rem 0.2rem;
  border: 0;
  background: transparent;
  margin: 0;
  cursor: default;
  transition: background 0.18s var(--ease), outline-color 0.18s var(--ease);
}

.component-bom .bom-item + .bom-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.component-bom .bom-item.is-paired {
  background: rgba(225, 6, 0, 0.12);
  outline: 1px solid rgba(225, 6, 0, 0.45);
  outline-offset: -1px;
}

.component-bom .bom-item.is-paired dt {
  color: var(--red-bright);
}

.component-bom .bom-item dt {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
}

.component-bom .bom-item dd {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.catalog-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.catalog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.catalog-link:hover {
  border-color: var(--red-dim);
  background: rgba(225, 6, 0, 0.06);
  transform: translateY(-2px);
  color: inherit;
}

.catalog-row img,
.catalog-link img {
  height: 2.75rem;
  width: auto;
  filter: brightness(1.15);
  opacity: 0.9;
  transition: opacity 0.2s var(--ease);
}

.catalog-link:hover img {
  opacity: 1;
}

.cases {
  max-width: 48rem;
  margin: 0 auto;
  text-align: left;
}

.case {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.25s var(--ease);
}

.case:hover {
  padding-left: 0.5rem;
  border-left: 2px solid var(--red);
}

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

.case h3 {
  margin-bottom: 0.4rem;
}

.case p {
  margin: 0;
  color: var(--muted);
}

.ba-cases {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 2.75rem;
}

.ba-case {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.ba-case:first-of-type {
  border-top: 0;
  padding-top: 0.35rem;
}

.ba-case h3 {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 1.35rem;
}

.ba-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.ba-shots--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 34rem;
  margin-inline: auto;
}

.ba-shot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  overflow: visible;
  aspect-ratio: unset;
  border: none;
  background: transparent;
}

.ba-shot-frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.ba-shot img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.ba-shot--zoom-center img {
  object-position: center center;
  transform: scale(1.55);
  transform-origin: center center;
}

.ba-shot--zoom-right img {
  object-position: 82% 42%;
  transform: scale(1.7);
  transform-origin: 82% 42%;
}

.ba-shot--zoom-left img {
  object-position: 18% 42%;
  transform: scale(1.7);
  transform-origin: 18% 42%;
}

.ba-shot--contrast img {
  filter: contrast(1.18) saturate(1.06);
}

.ba-shot figcaption {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* —— Scanning gallery laser previews ——
   Empty photo slots + absolutely positioned canvases have no intrinsic width,
   so force full-width 3-stage rows (Original / Scan / Final). */
.scan-accuracy-note {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--red-bright);
  opacity: 1;
}

.scan-cases {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 3.25rem;
}

.re-cases {
  width: 100%;
  max-width: min(72rem, 100%);
  margin-inline: auto;
  display: grid;
  gap: 2.75rem;
}

.re-case {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.re-case:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.re-case h3 {
  text-align: left;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin: 0 0 0.85rem;
}

/* Live Squarespace pattern: [before][after][installed×2] | copy */
.re-case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(13rem, 0.7fr);
  gap: 1rem 1.35rem;
  align-items: center;
}

.re-cases .ba-shots {
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 0.65rem;
  align-items: start;
}

.re-cases .ba-shot-frame {
  aspect-ratio: unset;
  height: clamp(11rem, 20vw, 15.25rem);
  min-height: 0;
}

.re-case-body > p {
  margin: 0;
  max-width: none;
  text-align: left;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.re-case > p {
  margin: 0.15rem auto 0;
  max-width: 42rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.scan-case {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.scan-case h3 {
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 1rem;
}

.scan-cases .ba-shots {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.scan-cases .ba-shot-frame {
  aspect-ratio: 1;
  min-height: clamp(11rem, 22vw, 18rem);
}

.scan-tt-frame {
  background:
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(225, 6, 0, 0.1), transparent 68%),
    #070708;
}

.scan-turntable {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  pointer-events: none;
  touch-action: none;
}

.scan-turntable canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.scan-turntable.is-loading::after {
  content: "Loading scan…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.scan-tt-error {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.scan-photo-slot {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(225, 6, 0, 0.08), transparent 70%),
    var(--bg-elevated);
}

.scan-photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-photo-placeholder {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  pointer-events: none;
}

.scan-photo-slot.has-photo .scan-photo-placeholder {
  display: none;
}

.ba-case > p {
  margin: 0 auto;
  max-width: 40rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .ba-cases {
    gap: 2.15rem;
  }

  .ba-case h3 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
  }

  .ba-shots,
  .ba-shots--pair {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 1fr);
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    max-width: none;
    margin-inline: 0;
    padding-bottom: 0.45rem;
    -webkit-overflow-scrolling: touch;
  }

  .ba-shot {
    scroll-snap-align: center;
  }

  /* Scan gallery: compact 3-up on mobile (not giant swipe cards) */
  .scan-cases {
    gap: 1.75rem;
  }

  .scan-cases .ba-shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: unset;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0.4rem;
    padding-bottom: 0;
  }

  .scan-cases .ba-shot {
    scroll-snap-align: unset;
    min-width: 0;
  }

  .scan-cases .ba-shot-frame {
    aspect-ratio: 1;
    min-height: 0;
    width: 100%;
  }

  .scan-case h3 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
  }

  .scan-cases .ba-shot figcaption {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  /* Reverse-engineering gallery: stack copy under shots on small screens */
  .re-cases {
    gap: 1.75rem;
  }

  .re-case-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .re-cases .ba-shots {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0.4rem;
    padding-bottom: 0;
  }

  .re-cases .ba-shot {
    scroll-snap-align: unset;
    min-width: 0;
  }

  .re-cases .ba-shot-frame {
    aspect-ratio: unset;
    height: clamp(7.5rem, 28vw, 11rem);
    min-height: 0;
    width: 100%;
  }

  .re-case h3 {
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
  }

  .re-case-body > p {
    text-align: left;
    font-size: 0.92rem;
  }

  .re-cases .ba-shot figcaption {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .scan-accuracy-note {
    font-size: 0.82rem;
    margin-bottom: 1.15rem;
  }

  .ba-shot-frame {
    aspect-ratio: 4 / 3;
  }

  .ba-shot figcaption {
    font-size: 0.7rem;
  }

  .ba-case > p {
    text-align: left;
    font-size: 0.92rem;
    max-width: none;
  }
}

/* —— Combat —— */
.combat-hero-block {
  text-align: center;
  padding: 2rem 0 1rem;
}

.combat-hero-block .arena {
  width: min(100%, 960px);
  margin: 1.5rem auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.combat-hero-block .arena::after {
  content: "ROBOTRONICA 2025";
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.55rem;
  background: var(--red);
  color: #fff;
}

.combat-hero-block .arena img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 8;
  transition: transform 0.8s var(--ease);
}

.combat-hero-block .arena:hover img {
  transform: scale(1.03);
}

.robot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  text-align: center;
  padding: 1rem 0 3rem;
}

.robot-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 1rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.robot-card:hover {
  border-color: var(--red-dim);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(225, 6, 0, 0.12);
  color: inherit;
  opacity: 1;
}

.robot-card img {
  width: 100%;
  max-height: 13rem;
  object-fit: contain;
  margin: 0.75rem auto 1rem;
  transition: transform 0.45s var(--ease);
}

.robot-card:hover img {
  transform: scale(1.05) rotate(-1deg);
}

.robot-card .status {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid var(--red-dim);
  padding: 0.2rem 0.5rem;
}

.robot-card .status.retired {
  color: var(--muted);
  border-color: var(--line);
}

.robot-card h3 {
  margin: 0.65rem 0 0.35rem;
}

.robot-card p {
  margin: 0 auto 0.85rem;
  max-width: 18rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.robot-podiums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.robot-podium {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.robot-podium.place-1 {
  color: #e0c35a;
  border-color: rgba(224, 195, 90, 0.5);
  background: rgba(224, 195, 90, 0.08);
}

.robot-podium.place-2 {
  color: #d5dbe6;
  border-color: rgba(213, 219, 230, 0.45);
  background: rgba(213, 219, 230, 0.08);
}

.robot-podium.place-3 {
  color: #d4a574;
  border-color: rgba(212, 165, 116, 0.5);
  background: rgba(212, 165, 116, 0.08);
}

.robot-card .more {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* —— Robot detail —— */
.robot-page-hero {
  text-align: center;
  padding: 2.5rem 0 0;
  overflow: visible;
  position: relative;
}

.robot-page-hero .kicker,
.robot-page-hero h1,
.robot-page-hero .version {
  position: relative;
  z-index: 3;
}

.robot-page-hero .version {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.55);
}

.version-status {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.version-status.is-active {
  color: var(--red-bright);
  animation: version-status-glow 2.8s ease-in-out infinite;
}

.version-status.is-dev {
  color: #ffb347;
  animation: version-status-glow 3.2s ease-in-out infinite;
}

.version-status.is-retired {
  color: rgba(255, 255, 255, 0.62);
  animation: version-status-soft 4.2s ease-in-out infinite;
}

@keyframes version-status-glow {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 0.88;
    text-shadow: 0 0 14px rgba(255, 31, 31, 0.55);
  }
}

@keyframes version-status-soft {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.bot-hero-video,
.breakdown-video {
  position: relative;
  width: min(100%, 920px);
  margin: 0.65rem auto 2.25rem;
  background: #050505;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(225, 6, 0, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 7px rgba(0, 0, 0, 0.65),
    0 20px 48px rgba(0, 0, 0, 0.5);
  user-select: none;
  pointer-events: none;
}

/* Full-bleed stage on mobile; desktop sized just above the prose column */
.bot-hero-viewer {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Pull sky under the title — sit behind version + header */
  margin-top: calc(-1 * (var(--nav-h) + 4.35rem));
  /* Let the turntable sit under the next section's heading */
  margin-bottom: -8.5rem;
  aspect-ratio: 16 / 10;
  min-height: min(78vh, 820px);
  max-height: none;
  overflow: visible;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  user-select: none;
  pointer-events: none;
  touch-action: pan-y;
}

@media (min-width: 761px) {
  .bot-hero-viewer {
    /* Large viewport = room around the disc; camera zoom sets disc ≈ just wider than prose */
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Sit up behind version + header */
    margin-top: calc(-1 * (var(--nav-h) + 5.55rem));
    /* Fallback until bot-viewer.js syncs About to the projected disc bottom */
    margin-bottom: -7.75rem;
    min-height: min(70vh, 760px);
    max-height: min(78vh, 860px);
    aspect-ratio: 16 / 10;
  }

  .robot-page-hero + .wrap {
    padding-top: 0.55rem;
  }
}

.bot-hero-viewer::before,
.bot-hero-viewer::after {
  content: none;
}

/* Content after the hero sits above the 3D bleed */
.robot-page-hero + .wrap {
  position: relative;
  z-index: 2;
  padding-top: 1.25rem;
  background: transparent;
}

@media (min-width: 761px) {
  .robot-page-hero + .wrap {
    padding-top: 0.55rem;
  }
}

.breakdown-video {
  margin: 1.25rem auto 1rem;
  /* Size the frame to the video — avoid letterbox gaps from a forced ratio */
  aspect-ratio: auto;
  height: auto;
}

/* Soft letterbox + light side tint — videos only */
.bot-hero-video::before,
.breakdown-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 16%, transparent 84%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(90deg, rgba(225, 6, 0, 0.12) 0%, transparent 14%, transparent 86%, rgba(225, 6, 0, 0.1) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bot-hero-video::after,
.breakdown-video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}

.bot-hero-video video,
.breakdown-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #050505;
}

.breakdown-video video {
  height: auto;
}

.bot-hero-viewer canvas,
.bot-hero-viewer .bot-viewer-fallback-img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 58%;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  pointer-events: none;
  /* Soft sky fade only — keep full turntable disc visible (no L/R trim) */
  -webkit-mask-image: none;
  mask-image: none;
}

.bot-hero-viewer canvas {
  cursor: default;
}

.bot-viewer-status {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 0.28rem 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.bot-hero-viewer.is-ready .bot-viewer-status {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.8s;
}

.bot-hero-viewer.is-fallback .bot-viewer-status {
  opacity: 1;
}

.bot-hero-viewer.is-loading canvas {
  opacity: 0.2;
}

.bot-hero-viewer.is-loading::before {
  opacity: 0.55;
}

.robot-page-hero .fig-frame {
  background: #fff;
  width: min(100%, 920px);
  margin: 0 auto 2rem;
  padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(225, 6, 0, 0.15);
}

.robot-page-hero .fig-frame img {
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  margin-inline: auto;
}

.robot-page-hero .fig-plain {
  width: min(100%, 720px);
  margin: 0 auto 2rem;
}

.robot-page-hero .fig-plain img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 36px rgba(225, 6, 0, 0.2));
}

.prose {
  max-width: 48rem;
  margin: 0 auto;
  text-align: left;
  padding: 0 0 2rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-intro {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
  display: block;
  max-width: 54rem;
  margin-inline: auto;
}

.about-intro > .kicker {
  justify-content: flex-start;
}

.about-intro > h1 {
  margin-bottom: 0.85rem;
}

.about-intro-flow {
  min-width: 0;
}

.about-intro-flow > .lede {
  max-width: none;
  margin: 0 0 0.85rem;
}

.about-intro-prose {
  margin-top: 0;
  max-width: none;
  /* Keep line boxes wrapping around the floated portrait */
  overflow: visible;
}

.about-intro-prose p:first-child {
  margin-top: 0;
}

.about-hero-cta {
  clear: both;
  margin-top: 1.25rem;
}

/* Portrait floats top-left; body copy wraps beside it (desktop + mobile) */
.about-portrait {
  float: left;
  width: 15.5rem;
  max-width: 42%;
  margin: 0.1rem 1.4rem 0.75rem 0;
  display: block;
  shape-outside: margin-box;
}

.about-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(225, 6, 0, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.02);
}

.about-portrait figcaption {
  margin: 0.4rem 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.about-prose {
  padding: 0;
  margin: 0;
  max-width: none;
}

.about-prose p + p {
  margin-top: 0.75rem;
}

.about-capabilities,
.about-arena,
.about-press {
  padding: 1.35rem 0 0.35rem;
  max-width: 54rem;
  margin-inline: auto;
}

.about-cap-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 0.65rem;
}

.about-cap-list li {
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  line-height: 1.45;
}

.about-cap-list a {
  color: var(--fg);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.about-cap-list a:hover {
  color: var(--red-bright);
}

.about-cap-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.about-inline-link {
  margin: 1rem 0 0;
}

.about-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.about-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.about-links a {
  color: var(--fg);
  font-family: var(--font-heading);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.about-links a:hover {
  color: var(--red-bright);
}

.about-cta {
  padding: 2.25rem 0 3rem;
  max-width: 54rem;
  margin-inline: auto;
}

.about-cta-lede {
  max-width: 32rem;
  margin: 0.75rem auto 1.25rem;
}

.about-cta-row {
  justify-content: center;
}

.about-cta .email-line {
  margin-top: 1.25rem;
}

@media (max-width: 760px) {
  .about-intro {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .about-portrait {
    float: left;
    width: 48%;
    max-width: 48%;
    margin: 0.05rem 0.85rem 0.55rem 0;
    shape-outside: margin-box;
  }

  .about-portrait figcaption {
    font-size: 0.68rem;
  }

  .about-intro-flow > .lede {
    font-size: 1.02rem;
  }

  .about-hero-cta {
    clear: both;
    margin-top: 0.95rem;
  }

  .about-capabilities,
  .about-arena,
  .about-press {
    padding: 1.1rem 0 0.25rem;
  }

  .about-cap-list {
    gap: 0.55rem;
  }

  .about-cap-list li {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }

  .about-cap-note {
    font-size: 0.9rem;
  }

  .about-cta {
    padding: 1.75rem 0 2.5rem;
  }

  .about-hero-cta {
    flex-wrap: wrap;
  }

  .about-hero-cta .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .about-links li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* —— Google reviews (curated) —— */
.reviews-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.35rem;
}

.reviews-brand {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
}

.reviews-g-logo {
  flex: 0 0 auto;
  margin-bottom: 0.15rem;
}

.reviews-head h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.reviews-score-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.reviews-stars-google {
  color: #fbbc04;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.reviews-score-label {
  font-size: 0.82rem;
  max-width: 14rem;
  text-align: right;
}

.reviews-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.reviews-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.reviews-track.is-ready {
  animation: reviews-marquee 55s linear infinite;
}

.reviews-track.is-static,
.reviews-track.is-ready.is-static {
  animation: none !important;
  transform: none;
  will-change: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: auto;
  max-width: 100%;
}

.reviews-marquee:hover .reviews-track.is-ready:not(.is-static),
.reviews-marquee:focus-within .reviews-track.is-ready:not(.is-static) {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .reviews-track.is-ready {
    animation: none;
  }
  .reviews-marquee {
    overflow-x: auto;
  }
  .reviews-track {
    width: auto;
  }
}

.review-slide {
  flex: 0 0 min(320px, 78vw);
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 12.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.review-slide:hover {
  border-color: rgba(66, 133, 244, 0.55);
  transform: translateY(-2px);
}

.review-slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-slide-stars {
  color: #fbbc04;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  line-height: 1;
}

.review-slide-google {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-slide-photos {
  display: flex;
  gap: 0.4rem;
  margin: 0.15rem 0 0.1rem;
}

.review-slide-photos img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
}

.review-slide-text {
  margin: 0;
  color: #d6d6d6;
  font-size: 0.94rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-slide-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.86rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-slide-meta strong {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 0.9rem;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.15rem;
}

.reviews-google-btn {
  border-color: rgba(66, 133, 244, 0.45);
}

.reviews-google-btn:hover {
  border-color: #4285f4;
}

.record-board {
  max-width: 48rem;
  margin: 1.25rem auto 0;
}

.record-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.record-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-summary-pill .count {
  color: var(--fg);
  font-size: 1rem;
}

.record-summary-pill.place-1 { border-color: rgba(224, 195, 90, 0.45); color: #e0c35a; }
.record-summary-pill.place-2 { border-color: rgba(213, 219, 230, 0.4); color: #d5dbe6; }
.record-summary-pill.place-3 { border-color: rgba(212, 165, 116, 0.45); color: #d4a574; }

/* Medal / trophy marks for podium placements */
.medal {
  --medal-face: currentColor;
  --medal-ribbon: var(--red-bright);
  position: relative;
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 50% 55%, var(--medal-face) 0 58%, transparent 60%);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--medal-face) 70%, #000),
    0 0 0 1px color-mix(in srgb, var(--medal-face) 35%, transparent);
  vertical-align: -0.08em;
  animation: medal-shine 3.6s ease-in-out infinite;
}

.medal::before,
.medal::after {
  content: "";
  position: absolute;
  top: -0.28em;
  width: 0.28em;
  height: 0.38em;
  background: var(--medal-ribbon);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  opacity: 0.9;
}

.medal::before { left: 0.12em; transform: rotate(-18deg); }
.medal::after { right: 0.12em; transform: rotate(18deg); }

.place-1 .medal,
.podium-1 .medal { --medal-face: #e0c35a; }
.place-2 .medal,
.podium-2 .medal { --medal-face: #d5dbe6; }
.place-3 .medal,
.podium-3 .medal { --medal-face: #d4a574; }

@keyframes medal-shine {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.22); transform: scale(1.06); }
}

@keyframes podium-row-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .medal { animation: none; }
  .record-table tr.podium { animation: none; }
}

.record-year {
  margin: 0 0 1.75rem;
}

.record-year:last-child {
  margin-bottom: 0;
}

.record-year-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  text-align: center;
}

.record-table {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.record-table th,
.record-table td {
  text-align: left;
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.record-table tbody tr {
  transition: background 0.2s var(--ease);
}

.record-table tbody tr:hover {
  background: rgba(225, 6, 0, 0.06);
}

.record-table th {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.record-table tr.podium td {
  border-bottom-color: rgba(225, 6, 0, 0.22);
}

.record-table tr.podium-1 {
  background: linear-gradient(105deg, rgba(212, 175, 55, 0.28), transparent 55%, rgba(212, 175, 55, 0.12));
  background-size: 200% 100%;
  animation: podium-row-glow 5s ease-in-out infinite;
}

.record-table tr.podium-2 {
  background: linear-gradient(105deg, rgba(192, 198, 210, 0.26), transparent 55%, rgba(192, 198, 210, 0.1));
  background-size: 200% 100%;
  animation: podium-row-glow 5.5s ease-in-out infinite;
}

.record-table tr.podium-3 {
  background: linear-gradient(105deg, rgba(184, 115, 51, 0.28), transparent 55%, rgba(184, 115, 51, 0.12));
  background-size: 200% 100%;
  animation: podium-row-glow 6s ease-in-out infinite;
}

.record-table tr.podium:hover {
  background: rgba(225, 6, 0, 0.1);
  animation: none;
}

.podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.podium-1 .podium-badge {
  color: #e0c35a;
  border-color: rgba(224, 195, 90, 0.55);
  background: rgba(224, 195, 90, 0.1);
}

.podium-2 .podium-badge {
  color: #d5dbe6;
  border-color: rgba(213, 219, 230, 0.45);
  background: rgba(213, 219, 230, 0.08);
}

.podium-3 .podium-badge {
  color: #d4a574;
  border-color: rgba(212, 165, 116, 0.5);
  background: rgba(212, 165, 116, 0.1);
}

.podium-board {
  margin: 2.5rem auto 1rem;
  max-width: 56rem;
}

.podium-board-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.podium-board-head h2 {
  margin: 0.35rem 0 0.5rem;
}

.podium-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .podium-board-grid {
    grid-template-columns: 1fr;
  }
}

.podium-finish {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.podium-finish:hover {
  border-color: var(--red-bright);
  background: rgba(225, 6, 0, 0.06);
  transform: translateY(-2px);
}

.podium-finish-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  min-width: 3.25rem;
  text-align: center;
  line-height: 1.1;
}

.podium-finish-place .medal {
  width: 1.15rem;
  height: 1.15rem;
}

.podium-finish.place-1 .podium-finish-place { color: #e0c35a; }
.podium-finish.place-2 .podium-finish-place { color: #d5dbe6; }
.podium-finish.place-3 .podium-finish-place { color: #d4a574; }

.podium-finish.place-1 {
  background: linear-gradient(135deg, rgba(224, 195, 90, 0.22), transparent 58%);
  border-color: rgba(224, 195, 90, 0.45);
  box-shadow: 0 0 22px rgba(224, 195, 90, 0.22), inset 0 0 18px rgba(224, 195, 90, 0.08);
}
.podium-finish.place-2 {
  background: linear-gradient(135deg, rgba(213, 219, 230, 0.2), transparent 58%);
  border-color: rgba(213, 219, 230, 0.4);
  box-shadow: 0 0 22px rgba(213, 219, 230, 0.18), inset 0 0 18px rgba(213, 219, 230, 0.07);
}
.podium-finish.place-3 {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.22), transparent 58%);
  border-color: rgba(212, 165, 116, 0.45);
  box-shadow: 0 0 22px rgba(212, 165, 116, 0.2), inset 0 0 18px rgba(212, 165, 116, 0.08);
}

.podium-finish-bot {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
}

.podium-finish-event {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.podium-finish-result {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.bom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

.bom-item {
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.bom-item dt {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.bom-item dd {
  margin: 0.3rem 0 0;
}

/* —— Shop —— */
.shop-product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: start;
  padding: 0 0 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.shop-gallery {
  display: grid;
  gap: 0.75rem;
}

.shop-hero-fig {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.shop-hero-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #0a0a0a;
  transition: transform 0.45s var(--ease);
}

.shop-hero-fig:hover img {
  transform: scale(1.01);
}

.shop-status {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-wide-fig {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.shop-wide-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 3.4 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ease);
}

.shop-wide-fig:hover img {
  transform: scale(1.02);
}

.shop-copy .kicker {
  justify-content: flex-start;
  margin-bottom: 0.65rem;
}

.shop-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.shop-lede {
  margin: 0 0 1rem;
  max-width: 28rem;
}

.shop-stats {
  margin: 0 0 1.25rem;
}

.shop-copy > p {
  color: var(--muted);
  max-width: 34rem;
}

.shop-features-title {
  margin: 1.5rem 0 0.65rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.feature-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
}

.feature-list li {
  margin-bottom: 0.55rem;
}

.feature-list .usa {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-list .usa > span:nth-child(1) { color: #e10600; }
.feature-list .usa > span:nth-child(2) { color: #f5f7fa; }
.feature-list .usa > span:nth-child(3) { color: #3b5bdb; }

.shop-disclaimer {
  margin: 0 0 1.35rem;
  font-size: 0.85rem;
}

.shop-cta {
  margin-top: 0.25rem;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}

.shop-notify {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: min(100%, 22rem);
  flex: 1 1 18rem;
}

.shop-notify-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.shop-notify-row input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}

.shop-notify-row input[type="email"]:focus {
  outline: none;
  border-color: var(--red-bright);
}

.shop-notify-row .btn {
  flex: 0 0 auto;
}

.shop-notify-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shop-notify-status {
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.shop-notify-status.is-ok {
  color: #9ad29a;
}

.shop-notify-status.is-err {
  color: var(--red-bright);
}

.coming-soon {
  color: var(--red-bright);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  margin: 0 0 2rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

@media (max-width: 800px) {
  .shop-product {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .shop-copy .kicker,
  .shop-stats {
    justify-content: flex-start;
  }
}

/* —— Payments —— */
.pay-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.75rem;
  align-items: start;
  padding: 0 0 3.5rem;
}

.pay-copy .kicker {
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.pay-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.pay-copy p {
  color: var(--muted);
  max-width: 32rem;
}

.pay-form {
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(225, 6, 0, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.02);
  position: relative;
}

.pay-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.pay-form label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.pay-form .hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

.pay-form input,
.pay-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  background: #000;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font: inherit;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}

.pay-form input:focus,
.pay-form textarea:focus {
  outline: none;
  border-color: var(--red-bright);
}

.pay-form input.is-invalid,
.pay-form textarea.is-invalid,
.quote-form input.is-invalid,
.quote-form textarea.is-invalid,
.form-block input.is-invalid,
.form-block textarea.is-invalid,
.shop-notify input.is-invalid {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.35);
}

.field-error {
  margin: 0.35rem 0 0;
  color: #ff8a8a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none !important;
}

.pay-form .check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0;
  cursor: pointer;
}

.pay-form .check input {
  width: auto;
  accent-color: var(--red);
}

.pay-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.25rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.pay-total #total {
  color: var(--red-bright);
}

.pay-form .submit-wrap {
  text-align: center;
  margin-top: 0.5rem;
}

.pay-form .submit-wrap .btn {
  min-width: 12rem;
}

.pay-form .pay-notes {
  margin-top: 1rem;
}

@media (max-width: 800px) {
  .pay-layout {
    grid-template-columns: 1fr;
  }
}

/* —— Quote forms —— */
.quote-form {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  text-align: left;
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.quote-form label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  background: #000;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font: inherit;
  border-radius: 0;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--red-bright);
}

.quote-form .submit-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

.quote-form .submit-wrap .btn {
  min-width: 12rem;
  width: 100%;
  max-width: 18rem;
}

.quote-form .quote-status {
  margin-top: 0.85rem;
  min-height: 1.25rem;
}

.quote-hint {
  font-size: 0.85rem;
  margin: 0.65rem 0 0;
}

.quote-optional-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.quote-optional {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid var(--red-dim);
  vertical-align: 0.1em;
}

.quote-file-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.quote-file-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.quote-file-ext {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  min-width: 2.75rem;
}

.quote-file-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-file-remove {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1;
  font-size: 1.1rem;
  cursor: pointer;
}

.quote-file-remove:hover {
  border-color: var(--red-bright);
  color: var(--fg);
  background: rgba(225, 6, 0, 0.1);
}

.quote-file-picker {
  margin-top: 0.25rem;
}

.quote-file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.quote-file-btn input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quote-file-hint {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.model-preview,
.stl-preview {
  margin-top: 1rem;
  border: 1px solid rgba(225, 6, 0, 0.28);
  background: #050505;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.model-preview-stage {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(225, 6, 0, 0.16), transparent 70%),
    linear-gradient(180deg, #141414 0%, #070707 55%, #050505 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 27px,
      rgba(255, 255, 255, 0.03) 28px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      rgba(255, 255, 255, 0.03) 28px
    );
}

.model-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.55rem 0;
}

.model-preview-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-preview-tab:hover {
  border-color: var(--red-dim);
  color: var(--fg);
}

.model-preview-tab.is-active {
  border-color: var(--red-bright);
  color: var(--fg);
  background: rgba(225, 6, 0, 0.1);
}

.model-preview-tab.is-loading {
  opacity: 0.75;
}

.model-preview-tab.is-ready:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.22);
}

.model-preview canvas,
.stl-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.model-preview.is-loading canvas {
  opacity: 0.35;
  filter: grayscale(0.2);
}

.model-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(5, 5, 5, 0.72);
  z-index: 2;
  padding: 1rem;
  text-align: center;
}

.model-preview-loading[hidden] {
  display: none !important;
}

.model-preview-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: model-spin 0.8s linear infinite;
}

.model-preview-loading-text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9rem;
  color: var(--fg);
}

@keyframes model-spin {
  to {
    transform: rotate(360deg);
  }
}

.model-preview-label,
.stl-preview-label {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
}

/* —— Contact —— */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.75rem;
  align-items: start;
  padding: 0 0 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.contact-copy .kicker {
  justify-content: flex-start;
  margin-bottom: 0.65rem;
}

.contact-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.contact-copy > p {
  color: var(--muted);
  max-width: 32rem;
}

.contact-copy .email-line {
  margin: 1.15rem 0 1.5rem;
  font-size: 1.05rem;
}

.contact-copy .email-line a {
  color: var(--red-bright);
  text-decoration: none;
  font-weight: 600;
}

.contact-copy .email-line a:hover {
  text-decoration: underline;
}

.contact-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}

.contact-points li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0 0.85rem 0.9rem;
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.02);
}

.contact-points strong {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.contact-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-points a {
  color: var(--red-bright);
}

.contact-side-cta {
  margin-top: 0.25rem;
}

.contact-form-wrap {
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.contact-form-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.contact-form-lede {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .contact-form-wrap {
    padding: 1rem;
  }
}

.contact-block {
  max-width: 36rem;
  padding: 0 0 3.5rem;
}

.contact-block .email-line {
  margin: 0 0 1.75rem;
}

.form-block label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
}

.form-block input,
.form-block textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  background: #000;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font: inherit;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}

.form-block input:focus,
.form-block textarea:focus {
  outline: none;
  border-color: var(--red-bright);
}

.form-block textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-block .submit-wrap {
  margin-top: 1.25rem;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(88vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(225, 6, 0, 0.2);
  cursor: default;
}

.lightbox img.is-scan-frame {
  /* Same envelope as photos — square scan content fits via object-fit */
  width: auto;
  height: auto;
  max-width: min(88vw, 1100px);
  max-height: 86vh;
  background: #070708;
  object-fit: contain;
}

.lightbox-nav {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lightbox-nav:hover {
  border-color: var(--red-bright);
  background: rgba(225, 6, 0, 0.25);
}

.lightbox-prev { left: max(0.75rem, 2vw); }
.lightbox-next { right: max(0.75rem, 2vw); }

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

@media (max-width: 720px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 78vh;
  }

  .lightbox-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.55rem;
  }
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(225, 6, 0, 0.04));
}

.site-footer .inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.site-footer .brand img {
  height: 1.75rem;
  width: auto;
}

.site-footer .foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .foot-links a {
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
  padding: 0.25rem 0;
}

.site-footer .foot-links a:hover {
  color: var(--red-bright);
}

.site-footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.site-footer .copy-bar {
  width: min(100% - 3rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  /* Compact 2-col link columns; brand spans full width (see 720px block). */
  .site-footer .inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .inner > div:first-child {
    grid-column: 1 / -1;
  }
}

/* —— Motion —— */
@keyframes pulse-glow {
  from {
    opacity: 0.45;
    transform: scale(0.96);
  }
  to {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Low-end / Save-Data: keep one-shot reveals, drop continuous CSS motion */
html.perf-lite .home-hero .hero-visual::before,
html.perf-lite .featured-bot img,
html.perf-lite .ticker-track,
html.perf-lite .medal,
html.perf-lite .record-table tr.podium,
html.perf-lite .podium-finish,
html.perf-lite .reviews-track,
html.perf-lite .version-status {
  animation: none !important;
}

html.perf-lite .home-hero .hero-visual::before {
  opacity: 0.55;
}

html.perf-lite .featured-bot img {
  filter: drop-shadow(0 0 28px rgba(225, 6, 0, 0.2));
}

/* Pause expensive infinite animations while off-screen */
.is-anim-paused,
.is-anim-paused * {
  animation-play-state: paused !important;
}

.gallery,
.reviews-section,
.components-grid,
.record-board {
  content-visibility: auto;
  contain-intrinsic-size: 1px 480px;
}

/* —— Mobile-first density pass ——
   Phone layouts: tighter chrome, less vertical stack, swipe strips where useful.
   Desktop rules above stay the source of truth for wide viewports. */
body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header .inner {
    width: min(100% - 2rem, var(--max));
    min-height: 4.25rem;
    gap: 0.75rem;
  }

  .brand-logo img {
    height: 2.15rem;
  }

  .nav-links {
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links > li > a {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 4.25rem;
  }

  body {
    font-size: 0.98rem;
  }

  .wrap {
    width: min(100% - 1.75rem, var(--max));
  }

  .section {
    padding: 2.25rem 0;
  }

  .section-tight {
    padding: 1.25rem 0;
  }

  /* Beat common inline padding-bottom on bot/about/quote sections */
  .section-tight[style*="padding-bottom"],
  .about-cta[style*="padding-bottom"],
  .wrap[style*="padding-bottom"] {
    padding-bottom: 1.5rem !important;
  }

  h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    margin-bottom: 0.55rem;
  }

  h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 0.55rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .lede {
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
  }

  .page-title {
    padding: 1.5rem 0 1rem;
  }

  .page-title .lede {
    font-size: 0.95rem;
  }

  .accent-heading {
    margin: 1.15rem 0 0.75rem;
    font-size: 0.88rem;
  }

  .cta-row {
    gap: 0.65rem;
  }

  .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.82rem;
  }

  /* —— Home —— */
  .ticker {
    font-size: 0.72rem;
  }

  .home-hero {
    gap: 1.15rem;
    padding: 0.65rem 0 1rem;
  }

  .home-hero .hero-visual {
    order: -1;
    max-width: 16rem;
    margin-inline: auto;
  }

  .home-hero .hero-visual img {
    max-height: 32vh;
    margin-inline: auto;
  }

  .home-hero .hero-visual::before {
    inset: -4% -2%;
  }

  .home-hero .welcome {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    margin-bottom: 0.65rem;
    text-align: center;
  }

  .home-hero .kicker {
    justify-content: center;
  }

  .home-hero .offer-label,
  .home-hero .offer-list,
  .home-hero .home-note {
    text-align: left;
  }

  .offer-list {
    margin-bottom: 0.85rem;
  }

  .offer-list li {
    padding: 0.28rem 0 0.28rem 1.1rem;
    font-size: 0.92rem;
  }

  .home-note {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .home-hero .cta-row {
    justify-content: center;
    margin-top: 0.85rem;
  }

  .home-split {
    gap: 0.85rem;
    padding: 0.35rem 0 1.15rem;
  }

  .home-split .col {
    padding: 0.95rem 0.75rem 1.1rem;
  }

  .home-split .col img {
    max-width: 14rem;
    margin: 0.55rem auto 0.7rem;
  }

  .home-split .col p {
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-split .title-underline {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
  }

  .featured-bot {
    padding: 1.75rem 0 2rem;
    gap: 1rem;
  }

  .featured-bot img {
    max-height: 11rem;
  }

  .featured-bot .stats {
    gap: 0.55rem 1rem;
    margin: 0.65rem 0 0.85rem;
    justify-content: center;
  }

  .featured-bot .stat strong {
    font-size: 1.05rem;
  }

  /* —— Services —— */
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding-bottom: 1.75rem;
  }

  .svc-card {
    padding: 0.45rem 0.25rem 0.75rem;
  }

  .svc-card .thumb {
    aspect-ratio: 4 / 3;
    margin-bottom: 0.55rem;
  }

  .svc-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .svc-card p {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-hero {
    padding: 1.25rem 0 0.85rem;
  }

  .service-hero .hero-img {
    margin: 0.85rem auto;
    width: 100%;
    max-height: none;
  }

  .service-hero .body-copy {
    font-size: 0.95rem;
  }

  .red-rule {
    margin: 1rem auto;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0.85rem 0 1rem;
  }

  .gallery figure {
    aspect-ratio: 1;
  }

  .gallery.contain figure {
    aspect-ratio: 4 / 3;
  }

  .gallery figure.is-gallery-hidden {
    display: none;
  }

  .gallery-marquee.is-marquee-active + .gallery-more {
    display: none !important;
  }

  .gallery-more {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fg);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .gallery-more:hover {
    border-color: var(--red-bright);
    color: var(--red-bright);
  }

  .catalog-row {
    gap: 0.75rem;
    margin: 1rem 0;
  }

  .catalog-row img,
  .catalog-link img {
    height: 2.15rem;
  }

  .cases {
    margin-top: 0.5rem;
  }

  .case {
    padding: 0.95rem 0;
  }

  .case:hover {
    padding-left: 0;
    border-left: 0;
  }

  /* —— Combat —— */
  .combat-hero-block {
    padding: 1.15rem 0 0.35rem;
  }

  .combat-hero-block .arena {
    margin: 0.85rem auto;
  }

  .combat-hero-block .arena img {
    aspect-ratio: 16 / 10;
  }

  .combat-hero-block .arena::after {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.62rem;
    padding: 0.22rem 0.4rem;
  }

  .robot-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0 1.35rem;
  }

  .robot-card {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    text-align: left;
    padding: 0.75rem;
    align-items: start;
  }

  .robot-card .status {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .robot-card img {
    grid-column: 1;
    grid-row: 1 / span 4;
    max-height: 6.5rem;
    margin: 0;
    align-self: center;
  }

  .robot-card h3 {
    grid-column: 2;
    grid-row: 2;
    margin: 0.15rem 0 0;
  }

  .robot-card p {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .robot-podiums {
    grid-column: 2;
    grid-row: 4;
    justify-content: flex-start;
    margin: 0.25rem 0 0;
  }

  .robot-card .more {
    display: none;
  }

  .podium-board {
    margin: 1.5rem auto 0.5rem;
  }

  .podium-board-head p.muted {
    font-size: 0.88rem;
  }

  .podium-finish {
    padding: 0.7rem 0.75rem;
    gap: 0.65rem;
  }

  .podium-finish.place-1 {
    box-shadow: 0 0 28px rgba(224, 195, 90, 0.32), inset 0 0 20px rgba(224, 195, 90, 0.12);
  }
  .podium-finish.place-2 {
    box-shadow: 0 0 28px rgba(213, 219, 230, 0.28), inset 0 0 20px rgba(213, 219, 230, 0.1);
  }
  .podium-finish.place-3 {
    box-shadow: 0 0 28px rgba(212, 165, 116, 0.3), inset 0 0 20px rgba(212, 165, 116, 0.12);
  }

  .podium-finish-place {
    font-size: 1.1rem;
    min-width: 2.6rem;
  }

  .podium-finish-place .medal {
    width: 0.95rem;
    height: 0.95rem;
  }

  /* —— Bot pages —— */
  .robot-page-hero {
    padding: 1.15rem 0 0;
  }

  .robot-page-hero .version {
    /* Keep desktop-like air under the version so the mesh can't sit in the title */
    margin-bottom: 0.45rem;
  }

  .bot-hero-video,
  .breakdown-video {
    margin-bottom: 0.85rem;
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.35);
  }

  .bot-hero-video {
    aspect-ratio: 16 / 10;
  }

  .breakdown-video {
    aspect-ratio: auto;
    height: auto;
  }

  .bot-hero-viewer {
    /*
      Soften the upward pull vs. older mobile so the stage starts below the
      name/version. Bottom spacing is still owned by bot-viewer.js About-sync.
      Taller stage gives the wider edge-to-edge turntable room to sit.
    */
    margin-top: calc(-1 * (var(--nav-h) + 1.55rem));
    margin-bottom: -3rem;
    aspect-ratio: 1 / 0.82;
    min-height: min(36vh, 320px);
    max-height: min(44vh, 380px);
  }

  .robot-page-hero + .wrap {
    padding-top: 0.15rem;
  }

  .prose {
    font-size: 0.95rem;
  }

  .prose p {
    margin-bottom: 0.85rem;
  }

  .record-board {
    margin-top: 0.85rem;
  }

  .record-summary {
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .record-summary-pill {
    padding: 0.32rem 0.55rem;
    font-size: 0.7rem;
  }

  .record-year {
    margin-bottom: 1.15rem;
  }

  .record-year-label {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.45rem;
  }

  .record-table {
    font-size: 0.88rem;
  }

  .record-table thead {
    display: none;
  }

  .record-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }

  .record-table th,
  .record-table td {
    padding: 0;
    border-bottom: 0;
  }

  .record-table td:first-child {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .record-table td:last-child {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-align: right;
  }

  .podium-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.72rem;
  }

  /* Stronger podium wash on small screens (no side framing) */
  .record-table tr.podium-1,
  .record-table tr.podium-2,
  .record-table tr.podium-3 {
    background-size: 240% 100%;
  }

  .record-table tr.podium-1 {
    background: linear-gradient(105deg, rgba(212, 175, 55, 0.4), transparent 58%, rgba(212, 175, 55, 0.16));
  }

  .record-table tr.podium-2 {
    background: linear-gradient(105deg, rgba(192, 198, 210, 0.36), transparent 58%, rgba(192, 198, 210, 0.14));
  }

  .record-table tr.podium-3 {
    background: linear-gradient(105deg, rgba(184, 115, 51, 0.4), transparent 58%, rgba(184, 115, 51, 0.16));
  }

  .podium-badge {
    box-shadow: none;
  }

  .cad-views {
    gap: 0.95rem;
    margin-top: 0.85rem;
  }

  .cad-views-full img {
    aspect-ratio: 3 / 2;
    padding: 0.45rem 0.45rem 0.25rem;
  }

  .cad-views figcaption {
    padding: 0.4rem 0.55rem 0.55rem;
    font-size: 0.7rem;
  }

  .cad-views-cuts-label {
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
  }

  .cad-views-cuts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    max-width: none;
  }

  .cad-views-cuts-grid figure {
    aspect-ratio: 1;
  }

  .cad-views-cuts-grid img {
    padding: 0.2rem;
  }

  .component-details {
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .component-fig {
    padding: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .component-label {
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
  }

  .component-bom .bom-item {
    padding: 0.4rem 0.2rem;
  }

  .component-bom .bom-item dt {
    font-size: 0.68rem;
  }

  .component-bom .bom-item dd {
    font-size: 0.8rem;
  }

  /* —— About —— */
  .about-intro {
    padding-top: 1rem;
  }

  .about-portrait {
    width: 48%;
    max-width: 48%;
  }

  .about-cta .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta .btn {
    text-align: center;
  }

  /* —— Shop / pay / forms —— */
  .shop-product {
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    padding-top: 1.15rem;
  }

  .shop-status {
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.68rem;
  }

  .shop-copy h2 {
    font-size: 1.35rem;
  }

  .shop-features-title {
    margin-top: 1.15rem;
  }

  .contact-layout {
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    padding-top: 1.15rem;
  }

  .contact-form-wrap {
    padding: 1rem;
  }

  .contact-points li {
    padding: 0.7rem 0 0.7rem 0.75rem;
  }

  .pay-layout {
    gap: 1.35rem;
    padding-bottom: 2rem;
  }

  .pay-form,
  .quote-form {
    padding: 1rem;
    margin-top: 1rem;
  }

  .quote-form label,
  .pay-form label,
  .form-block label {
    margin: 0.55rem 0 0.2rem;
    font-size: 0.88rem;
  }

  .quote-form input,
  .quote-form textarea,
  .pay-form input,
  .form-block input,
  .form-block textarea {
    padding: 0.6rem 0.65rem;
    font-size: 1rem;
  }

  .form-block textarea,
  .quote-form textarea {
    min-height: 5.5rem;
  }

  .model-preview,
  .stl-preview {
    margin-top: 0.75rem;
  }

  .model-preview canvas,
  .stl-preview canvas {
    aspect-ratio: 4 / 3;
  }

  .model-preview-tabs {
    gap: 0.35rem;
  }

  .model-preview-tab {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }

  /* —— Reviews —— */
  .reviews-section {
    padding: 1.35rem 0;
  }

  .reviews-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .reviews-score {
    align-items: flex-start;
  }

  .reviews-score-label {
    text-align: left;
  }

  .review-slide {
    /* Keep a peek of the next card so it never reads as a single full-width review */
    flex: 0 0 min(220px, 68vw);
    min-height: 9.5rem;
    padding: 0.75rem 0.8rem;
  }

  /* —— Footer —— */
  .site-footer {
    margin-top: 1rem;
    padding: 1.25rem 0 0.85rem;
  }

  .site-footer .inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.1rem;
  }

  .site-footer .inner > div:first-child {
    grid-column: 1 / -1;
  }

  .site-footer .brand {
    margin-bottom: 0.3rem;
  }

  .site-footer .brand img {
    height: 1.45rem;
  }

  .site-footer .brand + .muted {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    max-width: none;
  }

  .site-footer h4 {
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
  }

  .site-footer .foot-links a {
    padding: 0.1rem 0;
    font-size: 0.82rem;
  }

  .site-footer .copy-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.85rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero .btn {
    text-align: center;
  }

  .component-bom .bom-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .component-bom .bom-item dd {
    text-align: left;
  }

  .robot-card {
    grid-template-columns: 5.25rem 1fr;
    column-gap: 0.65rem;
  }

  .robot-card img {
    max-height: 5.25rem;
  }
}

