:root {
  color-scheme: dark;
  --bg: #050607;
  --ink: #f7f7f3;
  --muted: #b9c0c4;
  --panel: rgba(11, 13, 14, 0.76);
  --panel-strong: rgba(18, 20, 22, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent: #86f2ff;
  --accent-2: #f2f0e8;
  --accent-3: #7f8b91;
  --warm: #d8b46a;
  --radius: 8px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  font-family: "Avenir Next", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, rgba(134, 242, 255, 0.14), transparent 34rem),
    radial-gradient(circle at 12% 82%, rgba(216, 180, 106, 0.09), transparent 30rem),
    linear-gradient(180deg, #020303 0%, var(--bg) 44%, #090a0a 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

body.scarab {
  --accent: #f0f2f4;
  --accent-2: #a7b2ba;
  --accent-3: #7f6bff;
  --warm: #d9d0bf;
  background:
    radial-gradient(circle at 74% 16%, rgba(220, 220, 226, 0.16), transparent 26rem),
    radial-gradient(circle at 18% 78%, rgba(127, 107, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #020202 0%, #070706 48%, #0b0b0a 100%);
}

body.fortress {
  --accent: #fff0c7;
  --accent-2: #79e1d9;
  --accent-3: #b8c0c2;
  --warm: #f1b766;
  background:
    radial-gradient(circle at 78% 10%, rgba(255, 240, 199, 0.13), transparent 31rem),
    radial-gradient(circle at 16% 78%, rgba(121, 225, 217, 0.11), transparent 28rem),
    linear-gradient(180deg, #040403 0%, #080807 48%, #050606 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas,
video {
  display: block;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.66), transparent);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-solid {
  background: rgba(4, 5, 6, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  width: min(230px, 46vw);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.18));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 32px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.sound-toggle,
.ghost-button,
.solid-button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.84);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.sound-toggle::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.sound-toggle.is-playing::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.sound-toggle:hover,
.ghost-button:hover,
.solid-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.hero {
  position: relative;
  min-height: clamp(620px, 88svh, 840px);
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-media video,
.motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -4;
}

.hero-media img,
.hero-media video {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.12) brightness(0.72);
}

.hero-video {
  z-index: 1;
}

.hero-poster {
  z-index: 0;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-media::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 18% 16%, rgba(255, 184, 86, 0.12), transparent 23rem);
  mix-blend-mode: screen;
  opacity: 0.44;
}

.hero-media::after {
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.64) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 23%, transparent 72%, rgba(0, 0, 0, 0.42));
  opacity: 0.85;
}

.motion-canvas {
  z-index: -2;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.88));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 84px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: min(1120px, 100%);
  margin-bottom: 18px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 5.95rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.1);
}

.fortress .hero h1 {
  font-size: 5.15rem;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
}

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

.solid-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.solid-button {
  border-color: var(--accent);
  color: #030505;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.ghost-button {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.04);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 9, 0.88);
}

.stat {
  min-height: 122px;
  padding: 26px clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 9vw, 126px) 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: clamp(26px, 5vw, 82px);
  margin-bottom: 34px;
}

.section h2 {
  margin-bottom: 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 4.15rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-lede {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
}

.fleet-grid,
.robot-grid,
.feature-grid,
.route-grid,
.materials-grid {
  display: grid;
  gap: 14px;
}

.fleet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.robot-grid,
.feature-grid,
.materials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.craft-card,
.robot-card,
.feature-card,
.route-card,
.material-card,
.floor-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
}

.craft-card {
  min-height: 324px;
  padding: 18px;
}

.craft-card::after,
.robot-card::after,
.feature-card::after,
.route-card::after,
.material-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 32%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.craft-card:hover::after,
.robot-card:hover::after,
.feature-card:hover::after,
.route-card:hover::after,
.material-card:hover::after {
  opacity: 1;
}

.craft-visual {
  position: relative;
  height: 142px;
  margin-bottom: 18px;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 82%, rgba(134, 242, 255, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.22));
}

.craft-visual::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.craft-visual::after,
.robot-photo::after,
.feature-photo::after,
.floor-photo::after,
.robot-stage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%);
  mix-blend-mode: screen;
  opacity: 0.34;
}

.craft-image,
.robot-image,
.feature-photo img,
.floor-photo img,
.robot-stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.14) brightness(1.1);
  transform: scale(1.01);
  transition: transform 700ms ease, filter 700ms ease;
}

.craft-card:hover .craft-image,
.robot-card:hover .robot-image,
.feature-card:hover .feature-photo img,
.floor-item:hover .floor-photo img {
  transform: scale(1.07);
  filter: saturate(1.04) contrast(1.2) brightness(1.16);
}

.craft-kicker,
.card-kicker {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.craft-card h3,
.robot-card h3,
.feature-card h3,
.route-card h3,
.material-card h3 {
  margin: 9px 0 8px;
  font-size: 1.12rem;
  line-height: 1.1;
}

.craft-card p,
.robot-card p,
.feature-card p,
.route-card p,
.material-card p,
.floor-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.93rem;
}

.craft-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.split-band {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 7vw, 100px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.split-inner h2 {
  margin-bottom: 18px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.55rem;
  line-height: 1;
}

.split-inner p {
  color: rgba(255, 255, 255, 0.68);
}

.route-card,
.material-card,
.feature-card,
.robot-card {
  padding: 24px;
}

.route-card {
  min-height: 176px;
}

.route-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.6rem;
}

.material-card {
  min-height: 190px;
}

.material-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 74px;
  margin-bottom: 18px;
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 9px),
    #070808;
}

.material-card:nth-child(2)::before {
  background:
    radial-gradient(circle at 28% 35%, rgba(134, 242, 255, 0.26), transparent 9%),
    linear-gradient(135deg, rgba(255,255,255,0.24), transparent 44%),
    #060707;
}

.material-card:nth-child(3)::before {
  background:
    linear-gradient(135deg, rgba(216, 180, 106, 0.2), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 8px),
    #050606;
}

.robot-card,
.feature-card {
  min-height: 270px;
}

.scarab .robot-card {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    linear-gradient(135deg, rgba(127, 107, 255, 0.08), transparent 48%),
    var(--panel-strong);
}

.fortress .feature-card {
  min-height: 410px;
}

.robot-stage {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(56px, 7vw, 92px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.62fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.robot-stage-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.robot-stage-media::before,
.robot-photo::before,
.feature-photo::before,
.floor-photo::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -18%;
  right: -18%;
  height: 22%;
  top: -28%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(-8deg);
  animation: sensorSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.feature-photo::before,
.floor-photo::before {
  background: linear-gradient(180deg, transparent, rgba(255, 240, 199, 0.18), transparent);
  animation-duration: 7.2s;
}

.robot-stage-copy h2 {
  margin-bottom: 16px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.45rem;
  line-height: 0.98;
}

.robot-stage-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.02rem;
}

.robot-photo,
.feature-photo,
.floor-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050505;
}

.robot-photo {
  height: 210px;
  margin: -2px -2px 20px;
}

.robot-photo::before {
  animation-duration: 4.8s;
}

.feature-photo {
  height: 190px;
  margin-bottom: 20px;
}

.floor-photo {
  height: 116px;
  margin-bottom: 16px;
}

.fortress .floor-item {
  min-height: 310px;
}

.floor-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.floor-item {
  min-height: 170px;
  padding: 18px;
}

.floor-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer {
  padding: 44px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.footer span {
  color: var(--ink);
}

@keyframes sensorSweep {
  0%,
  22% {
    top: -32%;
    opacity: 0;
  }

  38% {
    opacity: 0.78;
  }

  74% {
    top: 114%;
    opacity: 0;
  }

  100% {
    top: 114%;
    opacity: 0;
  }
}

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

  .hero h1 {
    font-size: 4.1rem;
  }

  .fortress .hero h1 {
    font-size: 3.4rem;
  }

  .section h2 {
    font-size: 3.25rem;
  }

  .split-inner h2 {
    font-size: 2.95rem;
  }

  .robot-stage {
    grid-template-columns: 1fr;
  }

  .robot-stage-copy h2 {
    font-size: 2.95rem;
  }

  .site-nav {
    display: none;
  }

  .section-header,
  .split-inner {
    grid-template-columns: 1fr;
  }

  .fleet-grid,
  .robot-grid,
  .feature-grid,
  .materials-grid,
  .floor-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.72rem;
    letter-spacing: 0;
    width: min(210px, 54vw);
  }

  .sound-toggle {
    width: 42px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    color: transparent;
  }

  .sound-toggle::before {
    color: var(--ink);
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: 2.72rem;
  }

  .fortress .hero h1 {
    font-size: 2.1rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 2.35rem;
  }

  .split-inner h2 {
    font-size: 2.2rem;
  }

  .robot-stage-media {
    min-height: 260px;
  }

  .robot-stage-copy h2 {
    font-size: 2.2rem;
  }

  .robot-photo,
  .feature-photo {
    height: 180px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .solid-button,
  .ghost-button {
    width: 100%;
  }

  .stats-band,
  .fleet-grid,
  .robot-grid,
  .feature-grid,
  .route-grid,
  .materials-grid,
  .floor-plan {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 106px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-canvas {
    display: none;
  }

  .hero-video {
    display: none;
  }

  .robot-stage-media::before,
  .robot-photo::before,
  .feature-photo::before,
  .floor-photo::before {
    display: none;
  }
}
