:root {
  --bg: #050506;
  --bg-2: #0b0b0d;
  --bg-3: #121216;
  --line: rgba(239, 236, 230, 0.1);
  --text: #efece6;
  --muted: #8f8b84;
  --gold: #c9b48a;
  --blue: #6ea8ff;
  --amber: #f0b429;
  --red: #e23d3d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
  mix-blend-mode: difference;
}

.cursor.hot {
  width: 44px;
  height: 44px;
  background: rgba(201, 180, 138, 0.12);
}

main,
.nav,
.footer,
.mobile-menu {
  position: relative;
  z-index: 2;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 7vw;
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.92), rgba(5, 5, 6, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.nav-mark img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover,
.footer-links a:hover,
.about-copy a:hover {
  color: var(--text);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.nav-cta {
  background: var(--text);
  color: #111;
  border-color: var(--text);
}

.btn-ghost {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 8px 7vw 28px;
  font-size: 22px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}

.hero {
  position: relative;
  padding: 8vh 7vw 0;
  min-height: calc(100vh - 72px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.els {
  display: inline-flex;
  gap: 3px;
}

.els i {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--muted);
  animation: els 1.2s infinite;
}

.els i:nth-child(1) {
  animation-name: els-blue;
}

.els i:nth-child(2) {
  animation-name: els-amber;
  animation-delay: 0.15s;
}

.els i:nth-child(3) {
  animation-name: els-red;
  animation-delay: 0.3s;
}

@keyframes els-blue {
  0%,
  55%,
  100% {
    background: #1c2433;
    box-shadow: none;
  }
  10%,
  25% {
    background: var(--blue);
    box-shadow: 0 0 10px var(--blue);
  }
}

@keyframes els-amber {
  0%,
  40%,
  100% {
    background: #2a2416;
    box-shadow: none;
  }
  45%,
  70% {
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
  }
}

@keyframes els-red {
  0%,
  20%,
  80%,
  100% {
    background: #2a1515;
    box-shadow: none;
  }
  25%,
  40% {
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
  }
}

.hero h1 {
  margin: 28px 0 0;
  max-width: 16ch;
}

.hero-small {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-name {
  display: block;
  margin-top: -0.12em;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(92px, 18vw, 220px);
  font-weight: 500;
  font-style: italic;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
}

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

.id-card {
  position: absolute;
  top: 10vh;
  right: 7vw;
  display: flex;
  gap: 14px;
  width: min(340px, 34vw);
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(16px);
}

.id-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.id-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.id-name strong {
  font-size: 18px;
  font-weight: 500;
}

.clan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.clan img {
  width: 14px;
  height: 14px;
}

.id-meta p {
  color: var(--muted);
  font-size: 13px;
}

.id-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.id-copy span {
  color: var(--gold);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 640px;
  margin-top: 72px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ridge {
  display: block;
  width: calc(100% + 14vw);
  margin-left: -7vw;
  height: 140px;
}

.ridge-fill {
  fill: #101114;
}

.ridge-snow {
  fill: none;
  stroke: rgba(239, 236, 230, 0.55);
  stroke-width: 3;
  stroke-linecap: round;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #08080a;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  padding: 16px 0;
  animation: ticker 28s linear infinite;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.marquee-track span + span::before {
  content: "·";
  margin-right: 48px;
  color: var(--gold);
}

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

section {
  padding: 110px 7vw;
}

.section-index {
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head p,
.contact-lead,
.about-copy p {
  max-width: 38rem;
  color: var(--muted);
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  font-size: 17px;
}

.about-copy a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 12px;
}

.facts dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts dd {
  margin-top: 4px;
  font-size: 16px;
}

.service-list,
.course-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-list li,
.course-list li {
  padding: 28px;
  background: var(--bg);
}

.svc-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--gold);
}

.service-list h3,
.course-list h3,
.piece h3,
.steps h3,
.contact-card strong {
  margin: 10px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
  font-style: italic;
}

.service-list p,
.course-list p,
.piece p,
.steps p {
  color: var(--muted);
  font-size: 15px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.piece {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.piece-lg {
  grid-column: span 4;
}

.piece-wide {
  grid-column: span 4;
}

.piece-art {
  position: relative;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(110, 168, 255, 0.08), transparent 45%),
    linear-gradient(#0d1016, #07080b);
}

.piece header,
.piece p {
  padding: 0 20px;
}

.piece header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}

.piece header span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.piece p {
  padding-bottom: 22px;
}

.vehicle,
.kit {
  position: absolute;
  inset: 12% 6% 8%;
  width: 88%;
  height: 80%;
}

.ground {
  fill: rgba(0, 0, 0, 0.45);
}

.body {
  stroke: rgba(239, 236, 230, 0.12);
  stroke-width: 1;
}

.sheriff-body {
  fill: #2f4a32;
}

.fire-body {
  fill: #b33a28;
}

.ghost-body {
  fill: #1a1d24;
}

.ems-body {
  fill: #ece8e2;
}

.glass {
  fill: rgba(150, 190, 230, 0.28);
}

.dark-glass {
  fill: rgba(20, 28, 40, 0.7);
}

.wheel {
  fill: #0b0c10;
  stroke: #2a2d34;
  stroke-width: 4;
}

.hub {
  fill: #3a3e46;
}

.bar {
  fill: #12151c;
}

.dim-bar {
  fill: #2a2e36;
}

.lamp {
  animation: lamp 1.1s infinite;
}

.lamp.blue {
  fill: var(--blue);
  animation-name: lamp-blue;
}

.lamp.amber {
  fill: var(--amber);
  animation-name: lamp-amber;
  animation-delay: 0.2s;
}

.lamp.red {
  fill: var(--red);
  animation-name: lamp-red;
  animation-delay: 0.35s;
}

@keyframes lamp-blue {
  0%,
  55%,
  100% {
    fill: #1a2a44;
  }
  8%,
  24% {
    fill: var(--blue);
  }
}

@keyframes lamp-amber {
  0%,
  40%,
  100% {
    fill: #3a2a10;
  }
  48%,
  70% {
    fill: var(--amber);
  }
}

@keyframes lamp-red {
  0%,
  30%,
  100% {
    fill: #3a1515;
  }
  34%,
  48% {
    fill: var(--red);
  }
}

.unit {
  fill: var(--gold);
  font-family: Outfit, sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
}

.ems-type {
  fill: #9a1f28;
}

.kit-art,
.still-art {
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 180, 138, 0.08), transparent 46%),
    linear-gradient(#10131a, #07080b);
}

.still-vehicle {
  inset: 8% 4% 0;
  width: 92%;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--gold);
}

.courses .btn {
  margin-top: 36px;
}

.contact {
  padding-bottom: 80px;
}

.contact h2 {
  font-size: clamp(56px, 10vw, 120px);
}

.contact-lead {
  margin: 20px 0 40px;
  font-size: 18px;
}

.contact-lead code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.7);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.contact-card span,
.contact-card em {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card strong {
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px 7vw 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.legal {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }

  .id-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 40px;
  }

  .about-grid,
  .section-head,
  .steps,
  .service-list,
  .course-list,
  .contact-grid,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .service-list,
  .course-list {
    grid-template-columns: 1fr;
  }

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

  .piece,
  .piece-lg,
  .piece-wide {
    grid-column: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

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