/*
  HOWLING MAD MURDOCK // V0.1
  Shared visual system for every page.

  Homepage artwork:
  - assets/images/hero-concept.png is cropped inside .hero-stage.
  - The workshop-mounted tiger inside that concept is the only hero emblem.
  Full asset and crop notes live in assets/images/README.md.
*/

:root {
  color-scheme: dark;
  --ink: #08090a;
  --ink-soft: #0d0f10;
  --charcoal: #151719;
  --charcoal-light: #202326;
  --steel: #70767a;
  --steel-light: #a5aaab;
  --paper: #ece7dc;
  --paper-dim: #c2beb5;
  --orange: #d5622a;
  --orange-bright: #ef7b35;
  --orange-dark: #7a341a;
  --red: #8d211f;
  --line: rgba(213, 98, 42, 0.32);
  --line-steel: rgba(165, 170, 171, 0.17);
  --header-height: 78px;
  --content-width: 1220px;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Condensed", sans-serif;
  --sans: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
  --mono: "Cascadia Mono", "Lucida Console", Monaco, Consolas, monospace;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 18%, rgba(115, 47, 20, 0.14), transparent 28%),
    linear-gradient(180deg, #0b0c0d 0%, #090a0b 48%, #0c0d0e 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 110;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, 0.16) 0 0.5px, transparent 0.8px 3px),
    repeating-radial-gradient(circle at 78% 61%, rgba(255, 255, 255, 0.1) 0 0.5px, transparent 0.9px 4px);
  background-size: 7px 9px, 11px 13px;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section-shell {
  position: relative;
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

/* Environmental stage ---------------------------------------------------- */

.environment {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.environment::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background-position: center;
  background-size: cover;
  /* HERO GARAGE ART REPLACEMENT:
     background-image: linear-gradient(rgba(8,9,10,.44), rgba(8,9,10,.82)),
                       url("../images/hero-garage.webp");
     opacity: .42;
  */
}

.environment__grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(183, 188, 190, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 188, 190, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.cloud {
  position: absolute;
  top: -12%;
  left: -35%;
  width: 170%;
  height: 58%;
  opacity: 0.11;
  filter: blur(24px);
  will-change: transform;
}

.cloud--far {
  background:
    radial-gradient(ellipse at 18% 42%, rgba(125, 131, 135, 0.7) 0 7%, transparent 27%),
    radial-gradient(ellipse at 45% 32%, rgba(92, 98, 103, 0.6) 0 10%, transparent 30%),
    radial-gradient(ellipse at 78% 48%, rgba(113, 119, 123, 0.55) 0 7%, transparent 26%);
  animation: clouds-far 95s linear infinite alternate;
}

.cloud--near {
  top: 7%;
  opacity: 0.075;
  background:
    radial-gradient(ellipse at 26% 42%, rgba(185, 184, 178, 0.8) 0 5%, transparent 22%),
    radial-gradient(ellipse at 60% 28%, rgba(142, 145, 146, 0.75) 0 8%, transparent 28%),
    radial-gradient(ellipse at 90% 45%, rgba(160, 158, 152, 0.6) 0 6%, transparent 24%);
  animation: clouds-near 68s linear infinite alternate-reverse;
}

.storm-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 68% 8%, rgba(222, 226, 219, 0.27), transparent 38%);
  transition: opacity 90ms ease-out;
}

.lightning-primary .storm-light {
  opacity: 0.58;
}

.lightning-secondary .storm-light {
  opacity: 0.22;
}

.shop-glow {
  position: absolute;
  right: -5%;
  bottom: -12%;
  width: 58vw;
  height: 45vh;
  opacity: 0.28;
  background: radial-gradient(ellipse at bottom, rgba(204, 75, 24, 0.34), rgba(137, 46, 16, 0.08) 42%, transparent 68%);
  filter: blur(12px);
  animation: warm-flicker 14s steps(1, end) infinite;
}

.shop-pulse .shop-glow {
  opacity: 0.55;
  filter: blur(8px) brightness(1.35);
}

.dust-layer {
  position: absolute;
  right: -35%;
  bottom: -3%;
  width: 80%;
  height: 25%;
  opacity: 0.09;
  background:
    radial-gradient(ellipse at 10% 70%, rgba(201, 167, 125, 0.36), transparent 25%),
    radial-gradient(ellipse at 44% 58%, rgba(181, 144, 105, 0.28), transparent 31%),
    radial-gradient(ellipse at 80% 76%, rgba(195, 159, 115, 0.22), transparent 29%);
  filter: blur(18px);
}

.dust-passing .dust-layer {
  animation: dust-pass 14s ease-in-out 1;
}

.van-silhouette {
  position: absolute;
  right: max(2vw, calc((100vw - var(--content-width)) / 2 - 40px));
  bottom: 5.5vh;
  width: 200px;
  height: 92px;
  opacity: 0.34;
  filter: blur(0.2px);
}

.van-silhouette__body {
  position: absolute;
  inset: 18px 0 12px;
  border: 1px solid rgba(145, 149, 151, 0.18);
  border-radius: 12px 24px 5px 5px;
  background: linear-gradient(145deg, #101214, #050606 65%);
  clip-path: polygon(5% 10%, 65% 0, 92% 29%, 100% 76%, 94% 100%, 4% 100%, 0 74%);
}

.van-silhouette__stripe {
  position: absolute;
  top: 53px;
  left: 12px;
  width: 167px;
  height: 4px;
  opacity: 0.62;
  background: linear-gradient(90deg, transparent, #7d1d1b 18%, #9e2924 75%, transparent);
  transform: skewX(-22deg);
  transition: filter 350ms ease, opacity 350ms ease;
}

.van-silhouette__window {
  position: absolute;
  top: 27px;
  right: 24px;
  width: 46px;
  height: 20px;
  background: linear-gradient(135deg, #11171a, #07090a);
  clip-path: polygon(0 0, 68% 0, 100% 100%, 15% 100%);
}

.van-silhouette__wheel {
  position: absolute;
  bottom: 0;
  width: 31px;
  height: 31px;
  border: 6px solid #050606;
  border-radius: 50%;
  background: #26292b;
}

.van-silhouette__wheel--front { right: 26px; }
.van-silhouette__wheel--back { left: 27px; }

.van-reflection .van-silhouette__stripe {
  opacity: 1;
  filter: brightness(1.65) drop-shadow(0 0 8px rgba(191, 47, 39, 0.52));
}

.vhs-overlay {
  position: fixed;
  z-index: 105;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255, 255, 255, 0.035) 4px);
  background-size: 100% 4px;
}

.is-tracking .vhs-overlay::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 8%, rgba(230, 232, 222, 0.14) 10%, transparent 13%);
  animation: tracking-load 1s steps(5, end) 1;
}

@keyframes clouds-far { to { transform: translate3d(10%, 1%, 0); } }
@keyframes clouds-near { to { transform: translate3d(14%, -2%, 0); } }
@keyframes dust-pass {
  0% { opacity: 0; transform: translateX(0); }
  28% { opacity: 0.12; }
  75% { opacity: 0.08; }
  100% { opacity: 0; transform: translateX(-150%); }
}
@keyframes warm-flicker {
  0%, 18%, 20%, 64%, 66%, 100% { opacity: 0.28; }
  19%, 65% { opacity: 0.23; }
  42% { opacity: 0.3; }
}
@keyframes tracking-load {
  0% { transform: translateY(-35%); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(125%); opacity: 0; }
}

/* Shared header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding-inline: clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line-steel);
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(18px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 15vw;
  min-width: 140px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--orange));
}

.site-mark {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.site-mark__signal {
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(213, 98, 42, 0.5);
  transform: rotate(45deg);
}

.site-mark__suffix {
  color: var(--steel);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  gap: clamp(13px, 1.6vw, 27px);
  justify-content: center;
  align-items: center;
  padding-inline: 20px;
}

.primary-nav a {
  position: relative;
  padding-block: 9px;
  color: var(--steel-light);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.73vw, 0.7rem);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

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

.audio-control {
  min-height: 44px;
  padding: 7px 10px;
  color: var(--steel-light);
  border: 1px solid var(--line-steel);
  background: rgba(22, 24, 26, 0.7);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.audio-control span {
  margin-right: 4px;
  color: var(--orange);
}

.audio-control:hover {
  color: var(--paper);
  border-color: var(--orange-dark);
}

.menu-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 6px 9px;
  color: var(--paper);
  border: 1px solid var(--line-steel);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.menu-toggle__icon {
  display: grid;
  gap: 5px;
  margin-left: 10px;
}

.menu-toggle__icon i {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--orange);
  transition: transform 160ms ease;
}

/* Homepage hero ---------------------------------------------------------- */

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  grid-template-rows: 1fr auto;
  gap: 44px 7vw;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(64px, 8vw, 120px) 38px;
}

.hero::before {
  position: absolute;
  top: 8%;
  bottom: 11%;
  left: -18px;
  width: 1px;
  content: "";
  opacity: 0.5;
  background: linear-gradient(transparent, var(--orange), transparent);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--steel-light);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--orange-bright);
}

.eyebrow::before {
  width: 25px;
  height: 1px;
  content: "";
  background: var(--orange);
}

.hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(5.4rem, 10.5vw, 10.3rem);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 231, 220, 0.72);
}

.hero h1 span:nth-child(3) {
  color: var(--orange);
}

.hero__tagline {
  margin: 30px 0 4px;
  color: var(--paper);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hero__support {
  margin: 0;
  color: var(--steel-light);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.65;
}

.hero__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  min-width: 168px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--orange);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--ink);
  background: var(--orange);
}

.button--primary:hover {
  background: var(--orange-bright);
}

.button--ghost {
  color: var(--paper);
  border-color: var(--line-steel);
  background: rgba(20, 22, 24, 0.4);
}

.button--ghost:hover {
  border-color: var(--orange);
  background: rgba(213, 98, 42, 0.08);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.hero__visual::before {
  position: absolute;
  width: min(37vw, 490px);
  aspect-ratio: 1;
  content: "";
  opacity: 0.68;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 10deg, rgba(123, 126, 127, 0.04) 10deg 11deg);
  mask-image: radial-gradient(circle, black 0 48%, transparent 49%);
  animation: instrument-rotate 120s linear infinite;
}

@keyframes instrument-rotate { to { transform: rotate(1turn); } }

.emblem-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(32vw, 410px);
  aspect-ratio: 0.91;
  border: 1px solid var(--line-steel);
  background:
    linear-gradient(135deg, rgba(213, 98, 42, 0.07), transparent 42%),
    rgba(10, 11, 12, 0.65);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 21px 100%, 0 calc(100% - 21px));
}

.emblem-frame::before,
.emblem-frame::after {
  position: absolute;
  content: "";
}

.emblem-frame::before {
  inset: 22px;
  border: 1px solid rgba(213, 98, 42, 0.22);
  background: radial-gradient(circle, rgba(213, 98, 42, 0.06), transparent 62%);
}

.emblem-frame::after {
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  opacity: 0.3;
  background: linear-gradient(transparent, var(--steel), transparent);
}

.emblem-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(213, 98, 42, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, rgba(213, 98, 42, 0.07) 39% 40%, transparent 41%),
    repeating-conic-gradient(from 45deg, rgba(165, 170, 171, 0.07) 0deg 1deg, transparent 1deg 45deg);
}

.emblem-art__orbit {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(165, 170, 171, 0.28);
  border-radius: 50%;
}

.emblem-art__monogram {
  position: relative;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(236, 231, 220, 0.35);
}

.emblem-art__monogram::after {
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  height: 4px;
  content: "";
  background: var(--red);
  transform: skewX(-26deg);
}

.emblem-label,
.emblem-meta {
  position: absolute;
  z-index: 3;
  margin: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}

.emblem-label {
  bottom: 26px;
  left: 30px;
  color: var(--paper-dim);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.emblem-meta {
  right: 30px;
  bottom: 26px;
  color: var(--steel);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.corner {
  position: absolute;
  z-index: 5;
  width: 17px;
  height: 17px;
  border-color: var(--orange);
  opacity: 0.8;
}
.corner--tl { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.corner--tr { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.corner--bl { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.corner--br { right: 10px; bottom: 10px; border-right: 1px solid; border-bottom: 1px solid; }

.status-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 12px 18px;
  border-block: 1px solid var(--line-steel);
  background: linear-gradient(90deg, rgba(213, 98, 42, 0.08), transparent 56%);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-panel__light {
  width: 8px;
  height: 8px;
  background: var(--orange-bright);
  box-shadow: 0 0 10px rgba(239, 123, 53, 0.65);
}

.status-panel__label { color: var(--steel); }
.status-panel strong { color: var(--paper); font-weight: 700; }
.status-panel__code { color: var(--steel); font-size: 0.55rem; }

.hero__rail {
  position: absolute;
  right: -34px;
  top: 18%;
  display: flex;
  gap: 26px;
  color: rgba(165, 170, 171, 0.45);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* System cards ----------------------------------------------------------- */

.systems {
  padding-block: clamp(90px, 11vw, 150px);
}

.systems::before {
  position: absolute;
  top: 80px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--orange) 0 8%, var(--line-steel) 8% 100%);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.garage-note h2,
.placeholder-panel h1,
.error-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(3.4rem, 7vw, 6.2rem);
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--steel-light);
  font-size: 0.9rem;
  text-align: right;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-steel);
  border-left: 1px solid var(--line-steel);
}

.system-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 330px;
  padding: 19px 20px 17px;
  overflow: hidden;
  border-right: 1px solid var(--line-steel);
  border-bottom: 1px solid var(--line-steel);
  background: rgba(15, 17, 18, 0.72);
  text-decoration: none;
  transition: background-color 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.system-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background:
    linear-gradient(145deg, rgba(213, 98, 42, 0.16), transparent 50%),
    repeating-linear-gradient(-45deg, transparent 0 9px, rgba(213, 98, 42, 0.035) 9px 10px);
  transition: opacity 220ms ease;
}

.system-card:hover,
.system-card:focus-visible {
  z-index: 2;
  border-color: rgba(213, 98, 42, 0.5);
  background-color: rgba(23, 20, 18, 0.92);
}

.system-card:hover::before,
.system-card:focus-visible::before {
  opacity: 1;
}

.system-card--featured {
  grid-column: span 2;
  background:
    linear-gradient(120deg, rgba(213, 98, 42, 0.12), transparent 58%),
    rgba(15, 17, 18, 0.75);
}

.system-card__number,
.system-card__state,
.system-card__body,
.system-card__enter {
  position: relative;
  z-index: 2;
}

.system-card__number {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.system-card__state {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--orange-bright);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-card__state i {
  width: 5px;
  height: 5px;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.system-card__body {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-block: 28px;
}

.system-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 27px;
  color: var(--orange);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 1.15rem;
}

.system-card__body strong {
  margin-bottom: 9px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.system-card__body > span:not(.system-card__icon) {
  color: var(--steel-light);
  font-size: 0.82rem;
  line-height: 1.5;
}

.system-card__body > span:nth-last-child(1) {
  color: var(--paper-dim);
}

.system-card__enter {
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  color: var(--steel);
  border-top: 1px solid var(--line-steel);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.system-card__enter b {
  color: var(--orange);
  font-size: 0.9rem;
}

.system-card:hover .system-card__enter,
.system-card:focus-visible .system-card__enter {
  color: var(--paper);
}

/* Workshop note ---------------------------------------------------------- */

.garage-note {
  margin-bottom: clamp(90px, 10vw, 140px);
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line-steel);
  background:
    linear-gradient(135deg, rgba(213, 98, 42, 0.08), transparent 48%),
    rgba(12, 13, 14, 0.82);
}

.garage-note__stripe {
  position: absolute;
  top: 0;
  right: 0;
  width: 154px;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--orange-dark) 0 8px, transparent 8px 16px);
}

.garage-note__body {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 6vw;
  align-items: end;
}

.garage-note h2 {
  font-size: clamp(3.1rem, 6.6vw, 6rem);
  max-width: 590px;
}

.garage-note__body p {
  margin: 0 0 34px;
  max-width: 560px;
  color: var(--steel-light);
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
}

.garage-note__stamp {
  display: inline-block;
  padding: 9px 12px;
  color: var(--orange-bright);
  border: 1px solid var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Placeholder section pages -------------------------------------------- */

.placeholder-main,
.error-main {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 72px 90px;
}

.placeholder-panel,
.error-panel {
  position: relative;
  width: min(calc(100% - 48px), 960px);
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line-steel);
  background:
    linear-gradient(135deg, rgba(213, 98, 42, 0.09), transparent 45%),
    rgba(10, 11, 12, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.placeholder-panel::before,
.error-panel::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34%;
  height: 2px;
  content: "";
  background: var(--orange);
}

.placeholder-panel::after,
.error-panel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 140px;
  height: 20px;
  content: "";
  opacity: 0.55;
  background: repeating-linear-gradient(-45deg, var(--orange-dark) 0 7px, transparent 7px 14px);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
}

.node-id {
  margin: 0 0 28px;
  color: var(--orange-bright);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.placeholder-panel h1,
.error-panel h1 {
  max-width: 850px;
  font-size: clamp(4rem, 10vw, 8.5rem);
}

.error-panel h1 {
  color: var(--orange);
}

.placeholder-panel__lede,
.error-panel__lede {
  margin: 24px 0 12px;
  color: var(--paper);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
}

.placeholder-panel__copy,
.error-panel__copy {
  max-width: 650px;
  margin: 0;
  color: var(--steel-light);
  font-size: 1rem;
}

.placeholder-panel__unique {
  max-width: 720px;
  margin: 25px 0 0;
  padding-left: 17px;
  color: var(--paper-dim);
  border-left: 2px solid var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.placeholder-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.inline-status {
  display: flex;
  gap: 9px;
  align-items: center;
  width: fit-content;
  margin-top: 42px;
  color: var(--steel-light);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inline-status::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--orange);
  box-shadow: 0 0 9px rgba(213, 98, 42, 0.5);
}

.inline-status strong {
  color: var(--paper);
}

.section-index {
  position: absolute;
  top: 50%;
  right: 18px;
  color: rgba(165, 170, 171, 0.23);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  min-height: 100px;
  padding: 24px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line-steel);
  background: rgba(7, 8, 9, 0.84);
  font-family: var(--mono);
  text-transform: uppercase;
}

.site-footer__data {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  color: var(--steel);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

.site-footer__data strong {
  color: var(--paper-dim);
  font-weight: 400;
}

.site-footer > p {
  margin: 0;
  color: var(--paper);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.site-footer__year {
  color: var(--steel);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-align: right;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --header-height: 72px; }

  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .primary-nav {
    gap: 12px;
    justify-content: end;
  }

  .audio-control { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 30px 4vw;
  }

  .hero h1 { font-size: clamp(5rem, 10.4vw, 8rem); }
  .hero__visual { min-height: 400px; }
  .emblem-frame { width: min(34vw, 355px); }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 24px;
  }

  .menu-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 12px 24px 24px;
    visibility: hidden;
    border-bottom: 1px solid var(--line-steel);
    background: rgba(8, 9, 10, 0.98);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav a {
    min-height: 48px;
    padding: 15px 12px;
    border-bottom: 1px solid var(--line-steel);
    font-size: 0.68rem;
  }

  .primary-nav a:nth-child(odd) { border-right: 1px solid var(--line-steel); }
  .primary-nav a::after { display: none; }
  .audio-control { display: block; grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .hero__rail { display: none; }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.66fr);
    min-height: auto;
    padding-top: 78px;
  }

  .hero__visual { min-height: 355px; }
  .hero h1 { font-size: clamp(4.7rem, 11vw, 6.8rem); }
  .emblem-frame { width: min(34vw, 310px); }
  .emblem-meta { display: none; }
  .systems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-card--featured { grid-column: span 2; }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .section-shell { width: min(calc(100% - 32px), var(--content-width)); }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 64px 24px;
  }

  .hero__copy { order: 1; }
  .hero__visual { order: 2; min-height: 330px; margin-top: 22px; }
  .status-panel { order: 3; }
  .hero h1 { font-size: clamp(5rem, 22vw, 8.2rem); }
  .emblem-frame { width: min(100%, 360px); }
  .hero__rail { display: none; }
  .van-silhouette { right: -20px; opacity: 0.25; transform: scale(0.78); transform-origin: bottom right; }

  .status-panel {
    grid-template-columns: auto auto 1fr;
    margin-top: 18px;
  }

  .status-panel__code { display: none; }
  .systems { padding-block: 100px 90px; }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
    text-align: left;
  }

  .garage-note__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .garage-note__body p { margin-bottom: 25px; }
  .placeholder-main, .error-main { padding-block: 44px 70px; }
  .placeholder-panel, .error-panel { width: min(calc(100% - 32px), 960px); }
}

@media (max-width: 540px) {
  .site-header { min-height: 66px; }
  .site-mark__suffix { display: none; }
  .primary-nav { padding-inline: 16px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(4.6rem, 24vw, 7.2rem); }
  .hero__controls { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }

  .systems-grid {
    grid-template-columns: 1fr;
  }

  .system-card,
  .system-card--featured {
    grid-column: auto;
    min-height: 300px;
  }

  .section-heading h2 { font-size: 3.4rem; }
  .placeholder-panel h1, .error-panel h1 { font-size: clamp(3.5rem, 19vw, 5.6rem); }
  .placeholder-actions, .error-actions { display: grid; }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .site-footer__data { justify-content: center; }
  .site-footer > p { grid-column: auto; grid-row: auto; }
  .site-footer__year { text-align: center; }
  .section-index { display: none; }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .cloud,
  .hero-art__cloud,
  .hero-art__dust,
  .hero-art__shop-glow,
  .hero-art__van-reflection,
  .dust-layer,
  .shop-glow,
  .van-silhouette__stripe,
  .vhs-overlay::before,
  .hero__visual::before {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .environment,
  .vhs-overlay,
  body::before { display: none; }
  .hero h1 span:nth-child(2) { color: CanvasText; -webkit-text-stroke: 0; }
}

/* Homepage concept-art composition pass --------------------------------- */

.home-page {
  background:
    radial-gradient(circle at 72% 42%, rgba(126, 43, 15, 0.18), transparent 35%),
    linear-gradient(180deg, #090a0b 0%, #0b0c0d 44%, #070809 100%);
}

.home-page .environment::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 88% 46%, rgba(184, 62, 22, 0.16), transparent 24%),
    linear-gradient(180deg, transparent 0 52%, rgba(74, 28, 14, 0.12) 70%, transparent 88%);
}

.home-page .environment__grid { opacity: 0.15; }
.home-page .cloud--far { opacity: 0.18; }
.home-page .cloud--near { opacity: 0.1; }
.home-page .environment > .van-silhouette { display: none; }

.home-page .shop-glow {
  right: 4%;
  bottom: 4%;
  width: 62vw;
  height: 55vh;
  opacity: 0.34;
}

.home-page .hero {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(480px, 1.16fr);
  grid-template-rows: 1fr;
  gap: 0;
  align-items: center;
  width: min(calc(100% - 48px), 1380px);
  min-height: max(720px, calc(100svh - var(--header-height)));
  padding: 82px 34px 70px;
  overflow: hidden;
  border-right: 1px solid rgba(165, 170, 171, 0.13);
  border-left: 1px solid rgba(165, 170, 171, 0.13);
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(7, 8, 9, 0.77) 36%, rgba(7, 8, 9, 0.18) 67%, rgba(7, 8, 9, 0.26) 100%),
    linear-gradient(180deg, rgba(9, 10, 11, 0.15), rgba(5, 6, 7, 0.55));
}

.home-page .hero::before {
  z-index: 7;
  top: 70px;
  bottom: 70px;
  left: 14px;
  width: 8px;
  opacity: 0.45;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 6px, transparent 6px 12px);
}

.home-page .hero::after {
  position: absolute;
  z-index: 6;
  inset: 14px;
  content: "";
  pointer-events: none;
  border-top: 1px solid rgba(213, 98, 42, 0.2);
  border-bottom: 1px solid rgba(165, 170, 171, 0.12);
  clip-path: polygon(0 0, 22% 0, 22% 1px, 100% 1px, 100% 100%, 78% 100%, 78% calc(100% - 1px), 0 calc(100% - 1px));
}

.hero-stage {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 43%, rgba(191, 65, 24, 0.23), transparent 22%),
    linear-gradient(180deg, rgba(19, 23, 26, 0.68) 0%, rgba(17, 18, 19, 0.18) 48%, rgba(6, 7, 8, 0.82) 100%);
}

.hero-stage::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: 0.98;
  background-image: url("../images/hero-concept.png");
  background-position: 55% 42%;
  background-size: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.88);
  transform: scale(1.006);
}

.hero-stage::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 96% 62%, rgba(4, 5, 6, 0.98) 0 7%, rgba(4, 5, 6, 0.72) 9%, transparent 17%),
    linear-gradient(90deg, rgba(4, 5, 6, 0.99) 0%, rgba(4, 5, 6, 0.96) 24%, rgba(4, 5, 6, 0.7) 39%, rgba(4, 5, 6, 0.08) 58%, rgba(4, 5, 6, 0.16) 100%),
    linear-gradient(180deg, rgba(4, 5, 6, 0.98) 0%, rgba(4, 5, 6, 0.68) 11%, transparent 24%, transparent 61%, rgba(4, 5, 6, 0.38) 66%, rgba(4, 5, 6, 0.96) 73%, #040506 79%, #040506 100%);
}

.hero-art__cloud,
.hero-art__flash,
.hero-art__dust,
.hero-art__shop-glow,
.hero-art__van-reflection {
  position: absolute;
  display: block;
  pointer-events: none;
}

.hero-art__cloud {
  z-index: 2;
  top: -14%;
  left: -32%;
  width: 170%;
  height: 55%;
  opacity: 0.16;
  filter: blur(22px);
  will-change: transform;
}

.hero-art__cloud--far {
  background:
    radial-gradient(ellipse at 18% 42%, rgba(122, 130, 136, 0.72) 0 8%, transparent 28%),
    radial-gradient(ellipse at 47% 31%, rgba(87, 94, 101, 0.67) 0 11%, transparent 31%),
    radial-gradient(ellipse at 79% 45%, rgba(111, 117, 122, 0.62) 0 8%, transparent 28%);
  animation: clouds-far 110s linear infinite alternate;
}

.hero-art__cloud--near {
  top: 2%;
  opacity: 0.1;
  background:
    radial-gradient(ellipse at 25% 38%, rgba(180, 181, 177, 0.72) 0 6%, transparent 23%),
    radial-gradient(ellipse at 61% 27%, rgba(137, 141, 144, 0.7) 0 9%, transparent 29%),
    radial-gradient(ellipse at 90% 44%, rgba(157, 157, 153, 0.58) 0 7%, transparent 25%);
  animation: clouds-near 78s linear infinite alternate-reverse;
}

.hero-art__flash {
  z-index: 3;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 72% 10%, rgba(230, 233, 226, 0.4), transparent 42%);
  mix-blend-mode: screen;
  transition: opacity 90ms ease-out;
}

.lightning-primary .hero-art__flash { opacity: 0.58; }
.lightning-secondary .hero-art__flash { opacity: 0.24; }

.hero-art__dust {
  z-index: 3;
  right: -36%;
  bottom: 1%;
  width: 84%;
  height: 30%;
  opacity: 0.13;
  background:
    radial-gradient(ellipse at 12% 70%, rgba(207, 167, 118, 0.42), transparent 27%),
    radial-gradient(ellipse at 47% 58%, rgba(186, 144, 101, 0.34), transparent 33%),
    radial-gradient(ellipse at 82% 76%, rgba(198, 155, 109, 0.28), transparent 31%);
  filter: blur(20px);
}

.dust-passing .hero-art__dust { animation: dust-pass 14s ease-in-out 1; }

.hero-art__shop-glow {
  z-index: 3;
  right: 9%;
  bottom: 9%;
  width: 44%;
  height: 48%;
  opacity: 0.25;
  background: radial-gradient(ellipse at 64% 70%, rgba(238, 113, 43, 0.46), rgba(151, 49, 16, 0.11) 38%, transparent 68%);
  filter: blur(14px);
  animation: warm-flicker 16s steps(1, end) infinite;
  transition: opacity 140ms ease, filter 140ms ease;
}

.shop-pulse .hero-art__shop-glow {
  opacity: 0.48;
  filter: blur(10px) brightness(1.3);
}

.hero-art__van-reflection {
  z-index: 4;
  right: 1%;
  bottom: 4%;
  width: 42%;
  height: 31%;
  opacity: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(226, 184, 151, 0.17) 47%, transparent 65%);
  clip-path: polygon(4% 18%, 96% 0, 90% 82%, 8% 100%);
  transform: translateX(-42%) skewX(-7deg);
  transition: opacity 260ms ease, transform 760ms ease;
}

.van-reflection .hero-art__van-reflection {
  opacity: 0.72;
  transform: translateX(34%) skewX(-7deg);
}

.hero-stage__sunset {
  position: absolute;
  z-index: 1;
  top: 15%;
  right: -8%;
  width: 72%;
  height: 45%;
  opacity: 0.76;
  background:
    radial-gradient(ellipse at 84% 72%, rgba(225, 91, 35, 0.38), transparent 27%),
    linear-gradient(180deg, transparent, rgba(120, 39, 17, 0.18) 73%, rgba(230, 91, 32, 0.15));
  filter: blur(4px);
  transition: opacity 100ms ease, filter 100ms ease;
}

.lightning-primary .home-page .hero-stage__sunset {
  opacity: 1;
  filter: brightness(1.36) saturate(0.7);
}

.lightning-secondary .home-page .hero-stage__sunset {
  opacity: 0.9;
  filter: brightness(1.15) saturate(0.75);
}

.hero-stage__ridge {
  position: absolute;
  right: -4%;
  left: 34%;
  display: block;
  transform-origin: bottom;
}

.hero-stage__ridge--far {
  z-index: 1;
  bottom: 24%;
  height: 24%;
  opacity: 0.62;
  background: #101316;
  clip-path: polygon(0 75%, 8% 52%, 15% 61%, 23% 36%, 29% 50%, 38% 28%, 45% 55%, 56% 32%, 63% 49%, 71% 24%, 79% 46%, 86% 31%, 100% 57%, 100% 100%, 0 100%);
}

.hero-stage__ridge--near {
  z-index: 2;
  bottom: 12%;
  height: 28%;
  opacity: 0.94;
  background: linear-gradient(180deg, #111314, #08090a 68%);
  clip-path: polygon(0 70%, 7% 49%, 15% 62%, 22% 38%, 31% 66%, 41% 44%, 52% 65%, 62% 39%, 70% 56%, 82% 35%, 91% 52%, 100% 42%, 100% 100%, 0 100%);
}

.hero-stage__tower {
  position: absolute;
  z-index: 4;
  right: 53%;
  bottom: 17%;
  display: block;
  width: 82px;
  height: 280px;
  opacity: 0.67;
  border-right: 2px solid rgba(104, 106, 106, 0.45);
  border-left: 2px solid rgba(104, 106, 106, 0.45);
  background:
    linear-gradient(62deg, transparent 48%, rgba(112, 113, 112, 0.34) 49% 51%, transparent 52%) 0 0 / 100% 48px,
    linear-gradient(-62deg, transparent 48%, rgba(112, 113, 112, 0.34) 49% 51%, transparent 52%) 0 0 / 100% 48px;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}

.hero-stage__tower::before,
.hero-stage__tower::after {
  position: absolute;
  content: "";
  background: #0a0b0c;
}

.hero-stage__tower::before {
  top: 34px;
  left: -18px;
  width: 116px;
  height: 12px;
  border: 1px solid rgba(122, 124, 124, 0.36);
}

.hero-stage__tower::after {
  top: -52px;
  left: 39px;
  width: 2px;
  height: 74px;
  box-shadow: -12px 20px 0 -0.5px rgba(119, 121, 121, 0.62), 14px 28px 0 -0.5px rgba(119, 121, 121, 0.52);
}

.hero-stage__tower i {
  position: absolute;
  left: 50%;
  display: block;
  width: 44px;
  height: 2px;
  background: rgba(104, 106, 106, 0.42);
  transform: translateX(-50%);
}
.hero-stage__tower i:nth-child(1) { top: 92px; }
.hero-stage__tower i:nth-child(2) { top: 158px; }
.hero-stage__tower i:nth-child(3) { top: 222px; }

.hero-stage__antenna {
  position: absolute;
  z-index: 3;
  right: 33%;
  bottom: 30%;
  width: 3px;
  height: 205px;
  opacity: 0.42;
  background: #777a79;
  box-shadow: 18px 52px 0 -1px #777a79, 42px 13px 0 -1px #777a79;
}

.hero-stage__antenna::before,
.hero-stage__antenna::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(145, 148, 147, 0.38);
  border-radius: 50%;
}

.hero-stage__antenna::before { top: 18px; left: -17px; width: 36px; height: 12px; }
.hero-stage__antenna::after { top: 68px; left: 2px; width: 28px; height: 9px; }

.hero-stage__compound {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 14%;
  display: block;
  width: 47%;
  height: 55%;
  border: 1px solid rgba(105, 94, 84, 0.28);
  background:
    repeating-linear-gradient(90deg, rgba(115, 99, 84, 0.045) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(0deg, rgba(115, 99, 84, 0.045) 0 1px, transparent 1px 22px),
    linear-gradient(145deg, #181817, #0a0b0b 67%);
  clip-path: polygon(0 8%, 54% 0, 100% 17%, 100% 100%, 0 100%);
  box-shadow: -24px 28px 60px rgba(0, 0, 0, 0.62);
}

.hero-stage__roof {
  position: absolute;
  top: 7%;
  right: 0;
  left: 0;
  display: block;
  height: 2px;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, rgba(213, 98, 42, 0.68), transparent 82%);
  transform: rotate(1deg);
}

.hero-stage__door {
  position: absolute;
  right: 7%;
  bottom: 0;
  display: block;
  width: 45%;
  height: 58%;
  border: 7px solid #090a0a;
  border-bottom: 0;
  background:
    repeating-linear-gradient(0deg, rgba(164, 111, 75, 0.09) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #101111 0%, #15100d 52%, #21130d 100%);
  box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.74), 0 0 36px rgba(189, 72, 24, 0.12);
}

.hero-stage__door::before {
  position: absolute;
  right: 7%;
  bottom: 0;
  left: 7%;
  height: 38%;
  content: "";
  opacity: 0.62;
  background: radial-gradient(ellipse at bottom, rgba(237, 111, 44, 0.35), transparent 72%);
}

.hero-stage__shop-light {
  position: absolute;
  z-index: 2;
  bottom: 23%;
  display: block;
  width: 13px;
  height: 5px;
  opacity: 0.72;
  background: #e79151;
  box-shadow: 0 0 8px rgba(232, 119, 52, 0.58), 0 8px 18px rgba(232, 119, 52, 0.22);
  transition: opacity 140ms ease, filter 140ms ease;
}
.hero-stage__shop-light--one { right: 40%; }
.hero-stage__shop-light--two { right: 31%; }
.hero-stage__shop-light--three { right: 22%; }

.shop-pulse .home-page .hero-stage__shop-light {
  opacity: 1;
  filter: brightness(1.65);
  box-shadow: 0 0 12px rgba(243, 134, 68, 0.78), 0 12px 28px rgba(243, 134, 68, 0.3);
}

.hero-stage__ground {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 24%;
  height: 27%;
  background:
    linear-gradient(9deg, transparent 48%, rgba(133, 90, 63, 0.12) 49%, transparent 50%) 0 0 / 100px 34px,
    radial-gradient(ellipse at 76% 28%, rgba(197, 78, 31, 0.12), transparent 26%),
    linear-gradient(180deg, #0d0d0d, #080909);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%);
}

.hero-stage__foreground {
  position: absolute;
  z-index: 6;
  right: -3%;
  bottom: -5%;
  width: 62%;
  height: 20%;
  opacity: 0.38;
  background:
    radial-gradient(ellipse at 18% 80%, #020303 0 8%, transparent 9%),
    radial-gradient(ellipse at 46% 80%, #020303 0 11%, transparent 12%),
    radial-gradient(ellipse at 77% 86%, #020303 0 14%, transparent 15%);
  filter: blur(1px);
}

.home-page .hero__copy {
  z-index: 4;
  grid-column: 1;
  align-self: center;
  max-width: 620px;
  padding: 44px 0 18px 26px;
}

.home-page .hero__copy::after {
  position: absolute;
  z-index: -1;
  top: -8%;
  right: -22%;
  bottom: -10%;
  left: -12%;
  content: "";
  background: radial-gradient(ellipse at 32% 50%, rgba(4, 5, 6, 0.94), rgba(4, 5, 6, 0.68) 48%, transparent 74%);
  filter: blur(10px);
}

.home-page .hero .eyebrow {
  margin-bottom: 17px;
  color: #c5c0b6;
}

.home-page .hero h1 {
  position: relative;
  width: min-content;
  font-size: clamp(5.8rem, 8.8vw, 8.8rem);
  line-height: 0.74;
  letter-spacing: -0.035em;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.46));
}

.home-page .hero h1 span {
  display: block;
  width: fit-content;
  color: var(--paper);
  -webkit-text-stroke: 0;
  mask-image: repeating-linear-gradient(180deg, #000 0 8px, rgba(0, 0, 0, 0.74) 8px 9px, #000 9px 14px);
}

.home-page .hero h1 span:nth-child(2) {
  color: var(--paper);
  -webkit-text-stroke: 0;
}

.home-page .hero h1 span:nth-child(3) {
  color: #d9632b;
  text-shadow: 0 0 34px rgba(213, 98, 42, 0.1);
}

.home-page .hero__tagline {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 27px;
  color: var(--orange-bright);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  letter-spacing: 0.025em;
}

.home-page .hero__tagline::before {
  width: 24px;
  height: 2px;
  content: "";
  background: var(--orange);
}

.home-page .hero__support {
  margin-left: 37px;
  color: #aaa9a4;
}

.home-page .hero__controls {
  margin: 28px 0 0 37px;
}

.home-page .hero .button {
  min-width: 190px;
  min-height: 54px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.home-page .hero__visual {
  z-index: 2;
  align-self: stretch;
  min-height: 610px;
}

.home-page .hero__visual::before {
  width: min(45vw, 620px);
  opacity: 0.92;
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 14deg, rgba(213, 98, 42, 0.055) 14deg 15deg),
    radial-gradient(circle, transparent 0 52%, rgba(213, 98, 42, 0.08) 52.2% 52.6%, transparent 53%);
}

.home-page .emblem-frame {
  width: min(39vw, 530px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(7, 8, 9, 0.62) 0 54%, transparent 55%),
    repeating-conic-gradient(from -8deg, rgba(213, 98, 42, 0.14) 0 1deg, transparent 1deg 12deg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(213, 98, 42, 0.12);
  clip-path: none;
}

.home-page .emblem-frame::before {
  inset: 5%;
  border: 2px solid rgba(213, 98, 42, 0.4);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(236, 231, 220, 0.17) 0 0.5deg, transparent 0.5deg 10deg),
    radial-gradient(circle, rgba(20, 18, 15, 0.92) 0 59%, rgba(7, 8, 9, 0.95) 60%);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.84), 0 0 40px rgba(213, 98, 42, 0.08);
}

.home-page .emblem-frame::after {
  top: 11%;
  bottom: 11%;
  background: linear-gradient(transparent, rgba(236, 231, 220, 0.28), transparent);
}

.home-page .emblem-art {
  width: 74%;
  overflow: hidden;
  border: 2px solid rgba(213, 98, 42, 0.4);
  border-radius: 50%;
  background: #050606;
}

.home-page .emblem-art::before,
.home-page .emblem-art::after {
  content: none;
}

.emblem-art__image {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: contrast(1.06) saturate(0.92) brightness(0.88);
}

.home-page .emblem-art__orbit {
  z-index: 2;
  inset: 8%;
  border-color: rgba(236, 231, 220, 0.26);
}

.home-page .emblem-art__monogram {
  color: var(--paper);
  font-size: clamp(4.8rem, 7.4vw, 7.2rem);
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0;
  text-shadow: 0 4px 0 rgba(213, 98, 42, 0.32), 0 12px 28px rgba(0, 0, 0, 0.66);
}

.home-page .emblem-art__monogram::after {
  right: 14%;
  bottom: -6px;
  left: 14%;
  height: 3px;
}

.home-page .emblem-label {
  bottom: 35px;
  left: 50%;
  color: var(--paper);
  transform: translateX(-50%);
}

.home-page .emblem-meta {
  right: 50%;
  bottom: 18px;
  width: max-content;
  transform: translateX(50%);
}

.hero-van {
  position: absolute;
  z-index: 6;
  right: -2%;
  bottom: 15px;
  width: min(34vw, 455px);
  height: 205px;
  filter: drop-shadow(0 28px 25px rgba(0, 0, 0, 0.72));
  transform: perspective(900px) rotateY(-3deg);
  transform-origin: bottom right;
  /* VAN ART REPLACEMENT:
     background: url("../images/van.webp") right bottom / contain no-repeat;
     Then hide the CSS fallback with: .hero-van > span { display: none; }
  */
}

.hero-van::before {
  position: absolute;
  right: -5%;
  bottom: -7px;
  left: 1%;
  height: 25px;
  content: "";
  opacity: 0.6;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.84), transparent 72%);
  filter: blur(5px);
}

.hero-van::after {
  position: absolute;
  z-index: 8;
  inset: 19% 9% 25% 12%;
  content: "";
  opacity: 0;
  background: linear-gradient(108deg, transparent 32%, rgba(223, 181, 151, 0.13) 47%, transparent 62%);
  transform: translateX(-45%);
  transition: opacity 260ms ease, transform 700ms ease;
  clip-path: polygon(0 10%, 100% 0, 94% 100%, 8% 82%);
}

.van-reflection .hero-van::after {
  opacity: 0.72;
  transform: translateX(42%);
}

.hero-van__body {
  position: absolute;
  z-index: 2;
  inset: 45px 5px 35px 2px;
  display: block;
  border: 1px solid rgba(112, 116, 117, 0.42);
  border-radius: 17px 28px 8px 8px;
  background:
    linear-gradient(168deg, rgba(64, 70, 72, 0.42), transparent 24%),
    linear-gradient(180deg, #171a1b, #080a0b 69%, #050606);
  clip-path: polygon(3% 21%, 58% 5%, 78% 8%, 93% 30%, 100% 75%, 96% 100%, 2% 100%, 0 78%);
  box-shadow: inset 0 -20px 35px rgba(0, 0, 0, 0.72), inset 0 1px rgba(255, 255, 255, 0.06);
}

.hero-van__roof {
  position: absolute;
  z-index: 3;
  top: 34px;
  left: 20%;
  display: block;
  width: 61%;
  height: 24px;
  border-top: 2px solid rgba(90, 95, 96, 0.38);
  background: #101314;
  clip-path: polygon(5% 100%, 16% 0, 68% 0, 100% 100%);
}

.hero-van__roof::before {
  position: absolute;
  top: -8px;
  left: 15%;
  width: 64%;
  height: 5px;
  content: "";
  background: repeating-linear-gradient(90deg, #9a552e 0 7px, transparent 7px 17px);
  filter: drop-shadow(0 0 4px rgba(213, 98, 42, 0.32));
}

.hero-van__windshield,
.hero-van__side-window {
  position: absolute;
  z-index: 4;
  top: 64px;
  display: block;
  height: 43px;
  border: 1px solid rgba(116, 124, 126, 0.28);
  background: linear-gradient(145deg, rgba(74, 89, 94, 0.43), #080b0c 72%);
}

.hero-van__windshield {
  left: 7%;
  width: 24%;
  clip-path: polygon(19% 0, 100% 0, 88% 100%, 0 100%);
}

.hero-van__side-window {
  left: 33%;
  width: 29%;
  clip-path: polygon(5% 0, 93% 0, 100% 100%, 0 100%);
}

.hero-van__accent {
  position: absolute;
  z-index: 5;
  top: 99px;
  right: 2%;
  left: 8%;
  display: block;
  height: 12px;
  opacity: 0.78;
  background: linear-gradient(90deg, transparent, #5b1717 12%, #92241f 54%, #6f1918 88%, transparent);
  transform: skewY(-9deg);
  transition: filter 350ms ease, opacity 350ms ease;
}

.van-reflection .hero-van__accent {
  opacity: 1;
  filter: brightness(1.35) drop-shadow(0 0 8px rgba(150, 34, 29, 0.42));
}

.hero-van__bumper {
  position: absolute;
  z-index: 5;
  right: 1%;
  bottom: 35px;
  left: 2%;
  height: 7px;
  border: 1px solid rgba(115, 117, 116, 0.31);
  background: #080909;
}

.hero-van__wheel {
  position: absolute;
  z-index: 6;
  bottom: 15px;
  display: block;
  width: 55px;
  height: 55px;
  border: 9px solid #030404;
  border-radius: 50%;
  background: radial-gradient(circle, #414446 0 18%, #131516 19% 44%, #050606 45%);
  box-shadow: 0 0 0 2px #17191a;
}
.hero-van__wheel--front { right: 12%; }
.hero-van__wheel--back { left: 14%; }

.hero-van__lamp {
  position: absolute;
  z-index: 7;
  bottom: 73px;
  display: block;
  width: 9px;
  height: 7px;
  border-radius: 1px;
  background: #b88251;
  box-shadow: 0 0 9px rgba(213, 124, 58, 0.36);
}
.hero-van__lamp--left { left: 3%; }
.hero-van__lamp--right { right: 4%; background: #651918; box-shadow: 0 0 8px rgba(118, 24, 22, 0.42); }

.home-page .status-panel {
  position: absolute;
  z-index: 8;
  top: 29px;
  right: 28px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  width: min(330px, 32vw);
  min-height: 55px;
  padding: 11px 14px;
  border: 1px solid rgba(213, 98, 42, 0.3);
  background: rgba(7, 8, 9, 0.74);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  backdrop-filter: blur(8px);
}

.home-page .status-panel__code { display: none; }

.home-page .hero__rail {
  z-index: 8;
  right: 2px;
  top: 32%;
}

.home-page .systems {
  z-index: 4;
  width: min(calc(100% - 48px), 1380px);
  margin-top: 0;
  padding: 60px 22px clamp(100px, 9vw, 130px);
  border-right: 1px solid var(--line-steel);
  border-left: 1px solid var(--line-steel);
  background:
    radial-gradient(ellipse at 70% 0%, rgba(144, 51, 20, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.94), rgba(10, 11, 12, 0.78));
}

.home-page .systems::before {
  top: 0;
  right: 22px;
  left: 22px;
  background: linear-gradient(90deg, var(--orange) 0 9%, var(--line-steel) 9% 100%);
}

.home-page .systems::after {
  position: absolute;
  z-index: -1;
  top: -80px;
  right: -1px;
  left: -1px;
  height: 120px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 9, 0.96));
}

.home-page .section-heading {
  margin-bottom: 28px;
}

.home-page .section-heading h2 {
  font-size: clamp(3.2rem, 5.4vw, 5rem);
}

.home-page .systems-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #070809;
}

.home-page .system-card {
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(19, 20, 20, 0.34), rgba(7, 8, 9, 0.96) 79%),
    radial-gradient(circle at 68% 19%, rgba(148, 62, 28, 0.15), transparent 24%),
    linear-gradient(135deg, #151818, #090a0a);
}

.home-page .system-card::before {
  opacity: 0.62;
  background:
    linear-gradient(180deg, transparent 0 28%, rgba(5, 6, 7, 0.74) 73%),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(165, 170, 171, 0.03) 35px 36px),
    linear-gradient(145deg, rgba(213, 98, 42, 0.1), transparent 50%);
}

.home-page .system-card::after {
  position: absolute;
  z-index: 1;
  top: 16%;
  right: -8%;
  left: 34%;
  height: 34%;
  content: "";
  opacity: 0.34;
  border-top: 1px solid rgba(165, 170, 171, 0.18);
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(165, 170, 171, 0.11) 9% 11%, transparent 11% 21%, rgba(165, 170, 171, 0.08) 21% 24%, transparent 24%),
    linear-gradient(180deg, rgba(38, 39, 38, 0.5), rgba(7, 8, 9, 0.86));
  clip-path: polygon(0 34%, 22% 8%, 44% 30%, 65% 0, 100% 22%, 100% 100%, 0 100%);
}

.home-page .system-card:nth-child(3n)::after {
  top: 11%;
  left: 21%;
  clip-path: polygon(0 18%, 25% 0, 42% 36%, 70% 13%, 100% 42%, 100% 100%, 0 100%);
}

.home-page .system-card:nth-child(2n)::after {
  opacity: 0.26;
  background:
    repeating-linear-gradient(90deg, rgba(165, 170, 171, 0.1) 0 2px, transparent 2px 19px),
    linear-gradient(180deg, rgba(31, 34, 34, 0.5), rgba(7, 8, 9, 0.88));
}

.home-page .system-card--featured {
  background:
    linear-gradient(90deg, rgba(18, 19, 19, 0.3), rgba(7, 8, 9, 0.94) 78%),
    radial-gradient(circle at 75% 21%, rgba(187, 75, 31, 0.2), transparent 29%),
    linear-gradient(135deg, #191a19, #090a0a);
}

.home-page .system-card__icon {
  margin-bottom: 20px;
  background: rgba(7, 8, 9, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.home-page .system-card__body strong {
  font-size: clamp(2rem, 2.9vw, 2.8rem);
}

.home-page .system-card:hover,
.home-page .system-card:focus-visible {
  background-color: rgba(25, 20, 17, 0.98);
  box-shadow: inset 0 0 34px rgba(213, 98, 42, 0.06);
}

@media (max-width: 1180px) {
  .home-page .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
    padding-inline: 26px;
  }

  .home-page .hero h1 { font-size: clamp(5.3rem, 9vw, 7.2rem); }
  .home-page .emblem-frame { width: min(41vw, 470px); }
  .hero-van { width: min(37vw, 410px); }
  .home-page .systems-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .home-page .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.94fr);
    min-height: 760px;
    padding: 84px 20px 58px;
  }

  .home-page .hero__copy { padding-left: 12px; }
  .home-page .hero h1 { font-size: clamp(4.8rem, 10.8vw, 6.3rem); }
  .home-page .hero__support,
  .home-page .hero__controls { margin-left: 0; }
  .home-page .hero .button { min-width: 170px; }
  .home-page .hero__visual { min-height: 560px; }
  .home-page .emblem-frame { width: min(43vw, 390px); }
  .hero-van { right: -6%; width: min(42vw, 370px); height: 180px; }
  .home-page .status-panel { width: 290px; }
  .hero-stage::before {
    background-position: 58% 43%;
    filter: saturate(0.86) contrast(1.06) brightness(0.84);
  }
  .hero-stage__compound { right: -4%; width: 55%; }
  .home-page .systems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .system-card--featured { grid-column: span 2; }
}

@media (max-width: 700px) {
  .home-page .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100% - 24px), 1380px);
    min-height: 820px;
    padding: 72px 16px 36px;
  }

  .home-page .hero::before { top: 58px; bottom: 36px; left: 1px; width: 4px; }
  .home-page .hero::after { inset: 8px; }
  .home-page .hero__copy { order: 1; padding: 20px 0 0; }
  .home-page .hero__copy::after { right: -10%; left: -10%; }
  .home-page .hero h1 { font-size: clamp(4.65rem, 22.7vw, 7.2rem); }
  .home-page .hero__tagline { font-size: 0.98rem; }
  .home-page .hero__support { margin-left: 0; }
  .home-page .hero__controls { display: grid; grid-template-columns: 1fr; margin-left: 0; }
  .home-page .hero .button { width: 100%; }

  .home-page .status-panel {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: 100%;
    margin-top: clamp(118px, 30vw, 168px);
    clip-path: none;
  }

  .hero-stage::before {
    background-position: 65% 45%;
    background-size: auto 108%;
    filter: saturate(0.84) contrast(1.06) brightness(0.8);
  }

  .hero-stage::after {
    background:
      linear-gradient(90deg, rgba(4, 5, 6, 0.72), rgba(4, 5, 6, 0.2) 70%, rgba(4, 5, 6, 0.34)),
      linear-gradient(180deg, #040506 0%, rgba(4, 5, 6, 0.99) 16%, rgba(4, 5, 6, 0.78) 23%, transparent 34%, transparent 61%, rgba(4, 5, 6, 0.9) 69%, #040506 77%, #040506 100%);
  }

  .hero-art__shop-glow { right: -8%; bottom: 28%; width: 78%; height: 34%; }
  .hero-art__van-reflection { right: -22%; bottom: 28%; width: 78%; height: 19%; }

  .hero-stage__ridge { left: 0; }
  .hero-stage__tower { right: 66%; bottom: 20%; transform: scale(0.74); transform-origin: bottom; }
  .hero-stage__antenna { right: 17%; bottom: 32%; opacity: 0.25; }
  .hero-stage__compound { right: -22%; bottom: 13%; width: 92%; height: 44%; opacity: 0.72; }
  .hero-stage__ground { left: 0; height: 30%; }

  .home-page .systems {
    width: min(calc(100% - 24px), 1380px);
    padding-inline: 10px;
  }

  .home-page .systems::before { right: 10px; left: 10px; }
}

@media (max-width: 560px) {
  .home-page .hero { padding-top: 64px; }
  .home-page .hero h1 { font-size: clamp(4.45rem, 23.5vw, 6.4rem); }
  .home-page .status-panel { margin-top: clamp(104px, 28vw, 142px); }
  .home-page .systems-grid { grid-template-columns: 1fr; }
  .home-page .system-card,
  .home-page .system-card--featured { grid-column: auto; min-height: 280px; }
}

@media (max-width: 360px) {
  html,
  body { min-width: 0; }
}

@media (forced-colors: active) {
  .hero-stage,
  .hero-van { display: none; }
  .home-page .hero { background: Canvas; }
  .home-page .hero h1 span,
  .home-page .hero h1 span:nth-child(3) { color: CanvasText; }
}
