@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg: #000000;
  --ink: #ffffff;
  --dim: #7a7a7a;
  --line: #1c1c1c;
  --accent: #ff2d20;
  --accent2: #00e5ff;
  --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

main, header, footer, nav { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: clamp(.6rem, 1.6vw, 1.6rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }

.nav__links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .95rem;
  letter-spacing: .16em;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1rem, 5vw, 4rem) 6rem;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

.eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .4em;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 13rem);
  line-height: .82;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  display: block;
}
.hero h1 .fill { display: block; }
.hero h1 .red { color: var(--accent); }

.hero p {
  margin-top: 2rem;
  max-width: 46ch;
  color: var(--dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* ---------- scroll indicator ---------- */
.scroll-ind {
  position: fixed;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .7rem;
  letter-spacing: .35em;
  color: var(--dim);
  transition: opacity .4s;
}
.scroll-ind__track {
  width: 1px;
  height: 46px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-ind__track::after {
  content: '';
  position: absolute;
  top: -46px; left: 0;
  width: 1px; height: 46px;
  background: var(--accent);
  animation: drop 1.9s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes drop { to { top: 46px; } }
.scroll-ind.hidden { opacity: 0; }

/* progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 60;
}

/* ---------- parallax sections ---------- */
.band {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) clamp(1rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.band__ghost {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 22vw, 20rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px #141414;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
  text-align: center;
  will-change: transform;
}

h2.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 2rem;
}
h2.section-title em { font-style: normal; color: var(--accent); }

h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  max-width: 60ch;
  color: #cfcfcf;
}

.muted { color: var(--dim); }

/* ---------- grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}

.cell {
  background: var(--bg);
  padding: 2rem 1.6rem;
  transition: background .25s, transform .25s;
}
.cell:hover { background: #0a0a0a; }
.cell .num {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--accent);
  letter-spacing: .2em;
  font-size: .8rem;
}
.cell p { color: var(--dim); font-size: .95rem; margin-top: .4rem; }

/* route cards on home */
.routes { margin-top: 3rem; border-top: 1px solid var(--line); }
.route {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) .4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .3s, background .3s;
}
.route:hover { padding-left: 1.6rem; background: #080808; }
.route__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.route:hover .route__name { color: var(--accent); }
.route__desc { color: var(--dim); font-size: .9rem; text-align: right; max-width: 34ch; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stat b {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
}
.stat span { color: var(--dim); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

/* tag list */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tag {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .14em;
  font-size: .85rem;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  color: var(--dim);
}
.tag:hover { border-color: var(--accent); color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 4rem clamp(1rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-end;
}
footer .big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px var(--dim);
  text-transform: uppercase;
}
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer small { color: #444; letter-spacing: .1em; }

.back {
  display: inline-block;
  margin-top: 2rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .2em;
  color: var(--dim);
  text-decoration: none;
}
.back:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
