:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #b7b3aa;
  --paper: #0c0c0e;
  --panel: #15161a;
  --line: rgba(246, 241, 232, 0.18);
  --lime: #a8ff3e;
  --pink: #ff4fd8;
  --orange: #ff9d2f;
  --blue: #46a7ff;
  --red: #ff4f4f;
  --max: 1180px;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  overflow-x: hidden;
}

body.chaos {
  animation: body-jolt 0.16s steps(2) infinite;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

button,
input {
  font: inherit;
}

::selection {
  color: #050506;
  background: var(--lime);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, transparent 0 9px, #fff 10px 11px);
  mix-blend-mode: overlay;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-dot {
  position: fixed;
  z-index: 60;
  width: 16px;
  height: 16px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--pink), var(--orange));
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 24px), var(--max));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 12, 14, 0.72);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark,
.site-header nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-mark {
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

.brand-sigil {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #050506;
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.76rem;
}

.site-header nav a {
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button,
.magnetic-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--ink);
  background: transparent;
}

.button-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #050506;
  background: var(--orange);
  border-radius: 50%;
  font-weight: 950;
}

.section-band {
  position: relative;
  z-index: 2;
  padding: 110px max(20px, calc((100vw - var(--max)) / 2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 34px;
  min-height: 100vh;
  align-items: center;
  padding-top: 130px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kinetic-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.01em;
  margin: 0;
  max-width: 920px;
  font-size: clamp(4.2rem, 11vw, 10.8rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: lowercase;
}

.kinetic-title span {
  display: inline-block;
  font-weight: 950;
  text-shadow: 0 0 28px rgba(168, 255, 62, 0.18);
  animation: letter-pop 3.8s cubic-bezier(.2,.8,.2,1) infinite;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.kinetic-title span:nth-child(3n) {
  color: var(--pink);
}

.kinetic-title span:nth-child(4n) {
  color: var(--orange);
}

.kinetic-title span:nth-child(5n) {
  color: var(--blue);
}

.hero-line {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.hero-line strong {
  color: var(--ink);
}

.hero-actions {
  margin-top: 30px;
}

.magnetic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.magnetic-link.primary {
  color: #050506;
  border-color: transparent;
  background: var(--lime);
}

.magnetic-link.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.magnetic-link:hover,
.magnetic-link:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
  border-color: var(--lime);
}

.hero-machine {
  position: relative;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(70, 167, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 30px 90px rgba(0,0,0,0.36);
}

.speed-readout {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  width: 150px;
  padding: 14px;
  border: 1px solid rgba(168, 255, 62, 0.4);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.38);
}

.speed-readout span {
  color: var(--lime);
  font-size: 2.5rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.speed-readout small {
  color: var(--muted);
}

.bike-svg {
  width: 100%;
  height: 100%;
  min-height: 480px;
  filter: url("#jolt");
}

.blueprint-grid path,
.wheel path,
.bike-frame path,
.annotations path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blueprint-grid {
  color: rgba(246, 241, 232, 0.1);
}

.wheel {
  color: var(--ink);
  transform-origin: center;
  animation: wheel-spin 2.8s linear infinite;
}

.wheel circle {
  fill: rgba(255, 255, 255, 0.02);
  stroke: currentColor;
  stroke-width: 5;
}

.wheel path {
  stroke-width: 2;
  opacity: 0.8;
}

.bike-frame {
  color: var(--lime);
}

.bike-frame path {
  stroke-width: 9;
}

.bike-frame .shock {
  color: var(--pink);
  stroke-dasharray: 12 10;
  animation: dash 1.2s linear infinite;
}

.bike-frame .alt {
  color: var(--orange);
  animation-duration: 0.9s;
}

.annotations {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
}

.annotations path {
  stroke-width: 2;
}

.annotations text {
  fill: currentColor;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #070708;
}

.ticker div {
  display: flex;
  width: max-content;
  gap: 24px;
  padding: 13px 0;
  animation: marquee 26s linear infinite;
}

.ticker span {
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: "/";
  margin-left: 24px;
  color: var(--pink);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.proof {
  background: #101114;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-card,
.cv-card,
.antics-post,
.mould-output {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.proof-card {
  min-height: 260px;
  padding: 22px;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.proof-card.big {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(168, 255, 62, 0.16), rgba(255, 79, 216, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.proof-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  border-color: rgba(168, 255, 62, 0.5);
}

.proof-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #050506;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 950;
}

.proof-card h3,
.cv-card h3,
.antics-post h3,
.mould-output h3 {
  margin: 24px 0 10px;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1;
}

.proof-card p,
.cv-card p,
.antics-post p,
.mould-output p,
.timeline-list p {
  color: var(--muted);
  line-height: 1.55;
}

.proof-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--lime);
  font-weight: 850;
}

.mould {
  background:
    linear-gradient(90deg, rgba(255, 79, 216, 0.07), transparent 48%),
    #09090b;
}

.mould-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mould-tile {
  min-height: 150px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mould-tile span {
  display: block;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 950;
}

.mould-tile small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.mould-tile.active,
.mould-tile:hover {
  color: #050506;
  border-color: transparent;
  background: var(--lime);
  transform: translateY(-6px);
}

.mould-tile.active small,
.mould-tile:hover small {
  color: rgba(5, 5, 6, 0.7);
}

.mould-output {
  margin-top: 14px;
  padding: 26px;
}

.output-kicker {
  margin: 0;
  color: var(--orange) !important;
  font-weight: 900;
  text-transform: uppercase;
}

.cv {
  background: #14100d;
}

.cv-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  min-height: 380px;
}

.cv-card {
  min-height: 320px;
  padding: 20px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cv-card:active {
  cursor: grabbing;
}

.cv-card.dragging {
  z-index: 10;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.cv-card span {
  display: inline-block;
  padding: 7px 9px;
  border-radius: 999px;
  color: #050506;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.accent-lime { border-top: 5px solid var(--lime); }
.accent-pink { border-top: 5px solid var(--pink); }
.accent-orange { border-top: 5px solid var(--orange); }
.accent-blue { border-top: 5px solid var(--blue); }
.accent-white { border-top: 5px solid var(--ink); }

.timeline {
  background: #070809;
}

.timeline-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 140px minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-list time {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.timeline-list strong {
  font-size: 1.18rem;
}

.timeline-list p {
  margin: 0;
}

.lab {
  background:
    linear-gradient(180deg, rgba(70, 167, 255, 0.08), transparent 70%),
    #0d1015;
}

.lab-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.lab-visual,
.lab-controls {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.lab-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

.track-line {
  position: absolute;
  inset: 54% -10% auto;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 36px, transparent 36px 58px);
  transform: rotate(-6deg);
  opacity: 0.32;
}

.vehicle {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 250px;
  height: 96px;
  transform: translate(-50%, -50%) rotate(var(--yaw, -8deg));
  transition: transform 220ms ease;
}

.vehicle .body,
.vehicle .wing,
.vehicle .wheel {
  position: absolute;
  display: block;
}

.vehicle .body {
  left: 24px;
  top: 28px;
  width: 190px;
  height: 42px;
  clip-path: polygon(0 60%, 18% 20%, 72% 10%, 100% 54%, 88% 100%, 8% 100%);
  background: var(--lime);
}

.vehicle .wing {
  left: 146px;
  top: 8px;
  width: 84px;
  height: 15px;
  background: var(--pink);
  transform: rotate(7deg);
}

.vehicle .wheel {
  top: 58px;
  width: 42px;
  height: 42px;
  border: 7px solid var(--ink);
  border-radius: 50%;
  background: #050506;
  animation: wheel-spin 0.8s linear infinite;
}

.vehicle .wheel-a { left: 42px; }
.vehicle .wheel-b { right: 38px; }

.telemetry {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.telemetry span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(0, 0, 0, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.lab-controls {
  display: grid;
  gap: 22px;
  align-content: center;
  padding: 22px;
}

.lab-controls label {
  display: grid;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.lab-controls input {
  width: 100%;
  accent-color: var(--lime);
}

.antics {
  background: #110d13;
}

.antics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 12px;
}

.antics-post {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.12), rgba(255,255,255,0.025)),
    repeating-linear-gradient(45deg, rgba(168,255,62,0.14) 0 2px, transparent 2px 12px);
  transition: transform 200ms ease, filter 200ms ease;
}

.antics-post:nth-child(2) {
  background:
    linear-gradient(150deg, rgba(255,79,216,0.22), rgba(255,255,255,0.025)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.13) 0 2px, transparent 2px 14px);
}

.antics-post:nth-child(3) {
  background:
    linear-gradient(150deg, rgba(70,167,255,0.22), rgba(255,157,47,0.13)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.11) 0 1px, transparent 1px 16px);
}

.antics-post.tall {
  grid-row: span 2;
}

.antics-post.wide {
  grid-column: span 2;
}

.antics-post:hover {
  transform: scale(1.025) rotate(-1deg);
  filter: saturate(1.25);
}

.antics-post span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.sources {
  background: #090b0d;
}

.source-list {
  display: grid;
  gap: 10px;
  max-width: 850px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.source-list a {
  color: var(--ink);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  min-height: 65vh;
  background:
    linear-gradient(90deg, rgba(168,255,62,0.11), transparent 45%),
    linear-gradient(180deg, transparent, rgba(255,79,216,0.08)),
    #0c0c0e;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) rotate(0.5deg);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

@keyframes letter-pop {
  0%, 72%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  8% {
    transform: translateY(-0.11em) rotate(-2deg) scale(1.03);
  }
  14% {
    transform: translateY(0.04em) rotate(1.2deg) scale(0.98);
  }
}

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

@keyframes dash {
  to { stroke-dashoffset: -44; }
}

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

@keyframes body-jolt {
  50% { transform: translateX(1px); }
}

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

  .site-header nav {
    display: none;
  }

  .hero,
  .lab-shell,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-machine {
    min-height: 420px;
  }

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

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

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

@media (max-width: 680px) {
  .cursor-dot {
    display: none;
  }

  .section-band {
    padding: 82px 16px;
  }

  .hero {
    padding-top: 112px;
  }

  .brand-mark span:last-child,
  .button-label {
    display: none;
  }

  .proof-grid,
  .mould-stage,
  .cv-board,
  .antics-grid {
    grid-template-columns: 1fr;
  }

  .proof-card.big,
  .antics-post.wide,
  .antics-post.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cv-card {
    min-height: 240px;
  }

  .speed-readout {
    width: 126px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #particle-canvas,
  .cursor-dot {
    display: none;
  }
}
