@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&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.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.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;
}

@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;
  }
}

/* —— 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);
}

/* 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;
  margin: 1rem auto 1.25rem;
  object-fit: contain;
}

.home-split .col p {
  max-width: 26rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
}

/* Process strip */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.process-step {
  padding: 1.25rem 1rem;
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.02);
}

.process-step .num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--red-bright);
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .home-hero,
  .home-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }
}

/* ≤720px process becomes a horizontal swipe strip (see mobile density pass below) */

/* 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 {
  width: min(100%, 920px);
  margin: 1.5rem auto;
  border: 1px solid var(--line);
}

.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);
}

.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;
}

.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);
}

/* —— 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 1.5rem;
}

.robot-page-hero .version {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}

.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);
  pointer-events: none;
  user-select: none;
}

.breakdown-video {
  margin: 1.25rem auto 1rem;
}

/* Soft letterbox + light side tint — no harsh burn / no zoom crop */
.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;
}

.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-hero {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.about-hero-copy {
  text-align: left;
}

.about-hero-copy .kicker {
  justify-content: flex-start;
}

.about-hero .lede {
  max-width: 36rem;
  margin: 0.85rem 0 0;
}

.about-linkedin {
  margin: 1.1rem 0 0;
}

.about-linkedin a {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.15rem;
}

.about-linkedin a:hover {
  color: var(--fg);
  border-bottom-color: var(--red);
}

.about-portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 340px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  aspect-ratio: 1;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding-bottom: 1rem;
}

.about-card .title-underline {
  margin-bottom: 1rem;
}

.about-fleet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  max-width: 52rem;
  margin: 0 auto;
}

.about-fleet-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(225, 6, 0, 0.08), rgba(255, 255, 255, 0.02));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.about-fleet-item:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.about-fleet-item strong {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.about-fleet-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.about-links {
  list-style: none;
  margin: 1.25rem auto 0;
  padding: 0;
  max-width: 42rem;
  display: grid;
  gap: 1rem;
}

.about-links li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.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);
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero-copy {
    text-align: center;
  }

  .about-hero-copy .kicker {
    justify-content: center;
  }

  .about-hero .lede {
    margin-inline: auto;
  }

  .about-portrait {
    justify-self: center;
    width: min(100%, 280px);
  }
}

/* —— 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-marquee:hover .reviews-track.is-ready,
.reviews-marquee:focus-within .reviews-track.is-ready {
  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.28);
}

.record-table tr.podium-1 {
  background: linear-gradient(105deg, rgba(212, 175, 55, 0.2), transparent 55%, rgba(212, 175, 55, 0.08));
  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.18), transparent 55%, rgba(192, 198, 210, 0.07));
  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.2), transparent 55%, rgba(184, 115, 51, 0.08));
  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);
}

.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.1), transparent 55%);
}
.podium-finish.place-2 {
  background: linear-gradient(135deg, rgba(213, 219, 230, 0.09), transparent 55%);
}
.podium-finish.place-3 {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), transparent 55%);
}

.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-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
  padding: 0 0 3.5rem;
}

.shop-images {
  display: grid;
  gap: 0.75rem;
}

.shop-images img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}

.shop-images img:hover {
  border-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;
  animation: pulse-text 2.4s ease-in-out infinite;
}

.feature-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.feature-list .usa {
  color: #4da3ff;
}

@media (max-width: 800px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

/* —— 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 .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(--muted);
  border: 1px solid var(--line);
  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-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(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(225, 6, 0, 0.2);
}

/* —— 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) {
  .site-footer .inner {
    grid-template-columns: 1fr;
  }
}

/* —— 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;
  }
}

/* —— 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 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;
  }

  /* Process: swipe strip instead of 4 stacked blocks */
  .process {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 0.65rem;
    padding: 1.15rem 0 1.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .process-step {
    flex: 0 0 min(72vw, 15.5rem);
    scroll-snap-align: start;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-left: 2px solid var(--red);
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
  }

  .process-step .num {
    margin-bottom: 0.35rem;
  }

  .process-step h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
  }

  .process-step p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
  }

  .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;
    max-height: 36vh;
    width: 100%;
    object-fit: cover;
  }

  .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-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 {
    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.5rem;
  }

  .robot-page-hero .version {
    margin-bottom: 0.75rem;
  }

  .bot-hero-video,
  .breakdown-video {
    margin-bottom: 0.85rem;
    aspect-ratio: 16 / 10;
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.35);
  }

  .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;
  }

  .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-hero {
    gap: 1.15rem;
    padding-top: 1.25rem;
  }

  .about-portrait {
    width: min(100%, 200px);
  }

  .about-grid {
    gap: 1rem;
  }

  .about-card {
    padding: 1rem;
  }

  .about-fleet {
    gap: 0.65rem;
  }

  .about-cta .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta .btn {
    text-align: center;
  }

  /* —— Shop / pay / forms —— */
  .shop-layout {
    gap: 1.25rem;
    padding-bottom: 1.75rem;
  }

  .shop-images img {
    margin-bottom: 0.65rem;
  }

  .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 {
    flex: 0 0 min(270px, 86vw);
    min-height: 10rem;
    padding: 0.85rem;
  }

  /* —— Footer —— */
  .site-footer {
    margin-top: 1rem;
    padding: 1.75rem 0 1.15rem;
  }

  .site-footer .inner {
    gap: 1.25rem;
  }

  .site-footer .copy-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
  }
}

@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;
  }

  .process-step {
    flex-basis: min(78vw, 14.5rem);
  }
}

