/* ==========================================================================
   FTP STUNTS - core stylesheet
   Dark / gothic / neon-green, built around the FTP dagger logo.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --black:        #070707;
  --bg:           #0a0a0a;
  --bg-2:         #101010;
  --surface:      #161616;
  --surface-2:    #1d1d1d;
  --line:         #262626;

  --ink:          #f4f4f4;
  --muted:        #9a9a9a;
  --faint:        #6a6a6a;

  --green:        #35e23a;   /* brand neon green */
  --green-bright: #5cff5f;
  --green-deep:   #0e8f1e;
  --green-glow:   rgba(53, 226, 58, .45);

  --chrome-1:     #ffffff;
  --chrome-2:     #cfcfcf;
  --chrome-3:     #8f8f8f;

  --maxw:         1200px;
  --gap:          clamp(1rem, 3vw, 2rem);
  --radius:       4px;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gap);
}

section { position: relative; }

/* ---- Utility ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .8rem;
  color: var(--green);
  margin: 0 0 1rem;
  display: inline-block;
}
.eyebrow::before { content: '// '; color: var(--faint); }

.text-green { color: var(--green); }
.center { text-align: center; }

.section-pad { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Angular clip used to echo the logo's plate / dagger geometry */
.clip-angular {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: #052806;
  box-shadow: 0 0 0 rgba(53,226,58,0);
}
.btn-primary:hover {
  background: var(--green-bright);
  color: #052806;
  box-shadow: 0 8px 30px var(--green-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-yt {
  background: #ff0000;
  color: #fff;
}
.btn-yt:hover { background: #ff2626; color: #fff; box-shadow: 0 8px 30px rgba(255,0,0,.35); }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,7,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-logo .wordmark span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  color: var(--ink);
  padding: .5rem .9rem;
  border-radius: var(--radius);
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); }
.nav-links .btn { margin-left: .6rem; padding: .6rem 1.1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(53,226,58,.12), transparent 60%),
    linear-gradient(180deg, #0c0c0c 0%, #070707 100%);
}
/* subtle diagonal texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: var(--gap);
  padding-block: 3rem;
}
.hero-copy .tag {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green);
  font-size: .85rem;
  margin-bottom: 1.2rem;
}
.hero-copy h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .92;
  margin: 0 0 1.2rem;
  text-shadow: 0 0 40px rgba(0,0,0,.6);
}
.hero-copy h1 .or { color: var(--green); text-shadow: 0 0 30px var(--green-glow); }
.hero-copy p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-badge {
  position: relative;
  justify-self: center;
}
.hero-badge img {
  width: min(420px, 80%);
  margin-inline: auto;
  filter: drop-shadow(0 0 60px rgba(53,226,58,.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--faint);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .7rem;
}

/* ---- Hero with featured video ------------------------------------------- */
.hero-video { min-height: 0; }
.hero-video .hero-inner {
  display: block;
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.hero-head .tag {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green);
  font-size: .85rem;
  margin-bottom: 1rem;
}
.hero-head h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: .92;
  margin: 0;
  text-shadow: 0 0 40px rgba(0,0,0,.6);
}
.hero-head h1 .or { color: var(--green); text-shadow: 0 0 30px var(--green-glow); }
.hero-player {
  max-width: 960px;
  margin: 0 auto;
}
.hero-player .video-frame {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(53,226,58,.35), 0 30px 80px rgba(0,0,0,.6),
    0 0 70px rgba(53,226,58,.18);
}
.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 1.75rem auto 0;
}
.hero-video .hero-actions { justify-content: center; margin-top: 1.75rem; }

/* ---- Marquee strip ------------------------------------------------------ */
.strip {
  background: var(--green);
  color: #052806;
  overflow: hidden;
  border-block: 2px solid #052806;
}
.strip .track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding: .7rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  animation: marquee 22s linear infinite;
}
.strip .track span { display: inline-flex; align-items: center; gap: 3rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Featured video ----------------------------------------------------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* ---- Video grid --------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.video-card .video-frame { border: 0; border-radius: 0; box-shadow: none; }
.video-card .vc-body { padding: 1rem 1.15rem 1.25rem; }
.video-card h3 { font-size: 1.05rem; margin: 0; letter-spacing: .01em; }

/* ---- Crew cards --------------------------------------------------------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.rider {
  position: relative;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.rider::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.rider:hover { transform: translateY(-6px); border-color: #3a3a3a; }
.rider:hover::after { opacity: 1; }
.rider .mark {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.rider .mark img { max-height: 130px; width: auto; filter: invert(1); }
.rider h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.rider .role {
  color: var(--green);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  margin-bottom: 1rem;
}
.rider p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---- Feature / stat row ------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--green);
  line-height: 1;
}
.stat .label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--muted);
}

/* ---- CTA band ----------------------------------------------------------- */
.cta {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(53,226,58,.15), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta h2 { font-size: clamp(2rem, 6vw, 3.6rem); }
.cta p { color: var(--muted); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }

/* ---- Panel variant ------------------------------------------------------ */
.bg-panel { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---- Story split -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split .media {
  background: linear-gradient(135deg, #141414, #0a0a0a);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split .media img { max-height: 260px; width: auto; }

/* ---- Social links ------------------------------------------------------- */
.socials { display: flex; flex-wrap: wrap; gap: .75rem; }
.social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}
.social:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 70px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer-col h4 {
  font-size: .9rem;
  letter-spacing: .18em;
  color: var(--faint);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--ink); font-size: .95rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .85rem;
}

/* ---- Gallery (masonry) -------------------------------------------------- */
.gallery {
  column-count: 3;
  column-gap: 1rem;
}
.gallery-item {
  position: relative;
  display: block;
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease, filter .3s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-view {
  position: absolute;
  left: 1rem;
  bottom: .85rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: #052806;
  background: var(--green);
  padding: .35rem .7rem;
  border-radius: 3px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.gallery-item:hover .gallery-view { transform: none; opacity: 1; }

.gallery-empty {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.gallery-empty h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.gallery-empty p { color: var(--muted); margin-bottom: 1.5rem; }
.gallery-hint {
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--faint);
}
.gallery-hint code {
  background: var(--surface-2);
  padding: .15rem .45rem;
  border-radius: 3px;
  color: var(--green);
  font-size: .85em;
}

/* ---- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,5,.94);
  backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0,0,0,.7);
  border: 1px solid #2a2a2a;
}
.lightbox-caption {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .95rem;
  color: var(--ink);
}
.lightbox-count {
  font-size: .8rem;
  color: var(--faint);
  letter-spacing: .1em;
}
.lb-btn {
  position: absolute;
  background: rgba(20,20,20,.7);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lb-btn:hover { background: var(--green); color: #052806; border-color: var(--green); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); font-size: 1.9rem; }
.lb-prev { left: clamp(.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 520px) {
  .gallery { column-count: 1; }
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.3rem; }
}

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Page hero (interior) ---------------------------------------------- */
.page-hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem);
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(53,226,58,.1), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { order: -1; }
  .hero-badge img { width: min(300px, 70%); animation: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,10,10,.98);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1.25rem;
    transform: translateY(-120%);
    transition: transform .3s ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .9rem .5rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin: .75rem 0 0; justify-content: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

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