/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --surface: #111;
  --border: rgba(255,255,255,0.07);
  --text: #ffffff;
  --muted: #8a8580;
  --accent: #d4c5a9;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { overflow: hidden; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  cursor: crosshair;
  height: 100%;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===== ROAD BACKGROUND (parallax) ===== */
.road-bg {
  position: absolute;
  top: 0; left: 0;
  width: 300vw;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  display: flex;
  pointer-events: none;
}
.road-tile {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  background: url('../../public/hero.jpg') center/cover no-repeat;
}
.road-tile.mirrored {
  transform: scaleX(-1);
}
.road-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 300vw;
  background: rgba(8,8,8,0.65);
  pointer-events: none;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  pointer-events: none;
}
nav > * { pointer-events: all; }

.nav-logo-img { display: flex; align-items: center; }
.nav-logo-img img { height: 32px; width: auto; display: block; }

.nav-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.nav-dot.active {
  background: var(--text);
  border-color: var(--text);
  transform: scale(1.3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--text); }

/* ===== SCROLL CONTAINER ===== */
.scroll-container {
  display: flex;
  width: 300vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.panel {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.panel-inner {
  padding: 5rem 3rem 3rem;
  height: 100%;
  overflow-y: auto;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

/* ===== PANEL 0: HOME (Hero + About + Kit Slides) ===== */
.panel-home-inner {
  padding: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

.home-hero, .home-about, .kit-slide {
  scroll-snap-align: start;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 4rem;
  z-index: 2;
}
.home-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 35vh;
  background: linear-gradient(to bottom,
    rgba(8,8,8,0) 0%,
    rgba(8,8,8,0.35) 40%,
    rgba(8,8,8,0.85) 80%,
    var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content { position: relative; z-index: 3; }

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 11vw, 10rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.9), 0 0 80px rgba(0,0,0,0.5);
}
.hero-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.18);
}
.hero-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: 340px;
}

.scroll-hint {
  position: absolute;
  right: 3rem;
  bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
}
.hint-text {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hint-arrow {
  font-size: 18px;
  color: var(--text);
  animation: hintPulse 2s ease-in-out infinite;
}
.hint-arrow-down {
  animation-name: hintPulseDown;
}
@keyframes hintPulse {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(8px); opacity: 1; }
}
@keyframes hintPulseDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== HOME-ABOUT (second scroll into panel 0) ===== */
.home-about {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  padding: 6rem 3rem 4rem;
  overflow: hidden;
  isolation: isolate;
}
.home-about::before {
  /* pure black underlay */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  pointer-events: none;
  z-index: 0;
}
.home-about-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== KIT INTRO (bottom of About) ===== */
.kit-intro {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.kit-intro-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.kit-intro-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  animation: hintPulseDown 2s ease-in-out infinite;
}

/* ===== KIT SLIDES ===== */
.kit-slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  padding: 5rem 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.kit-slide::before {
  /* faint vertical accent line */
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 3rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  z-index: 0;
}
.kit-slide-meta {
  position: absolute;
  top: 5rem;
  right: 3rem;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.kit-slide-num { color: var(--accent); }
.kit-slide-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
}
.kit-slide-text { padding-left: 2rem; }
.kit-slide-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.kit-slide-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.9);
}
.kit-slide-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
}
.kit-slide-specs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  max-width: 420px;
}
.kit-slide-specs > div {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.kit-slide-specs strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text);
  min-width: 110px;
  flex-shrink: 0;
}
.kit-slide-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.kit-slide-image img {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.85));
  animation: kitFloat 6s ease-in-out infinite;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.kit-slide-image-tall img {
  max-height: 78vh;
}
@keyframes kitFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-18px) rotate(1.5deg); }
}

/* ===== DRONE STAGE WITH SPINNING PROPS ===== */
.drone-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 65vh;
  animation: kitFloat 6s ease-in-out infinite;
}
.drone-stage img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  animation: none !important;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.85));
}
.drone-props-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  filter: blur(0.5px);
}
.drone-props-svg .dp-spin {
  transform-origin: 0 0;
  animation: propSpin 0.09s linear infinite;
  will-change: transform;
}
@keyframes propSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.kit-slide-hint {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
}

/* ===== PANEL 1: WORK ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 15px rgba(0,0,0,0.8);
}
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
}
.filter-btn:hover { border-color: var(--muted); color: var(--text); }
.filter-btn.active { border-color: var(--text); color: var(--text); background: rgba(255,255,255,0.03); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--surface);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}
.gallery-item.hidden { display: none; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-label { opacity: 1; }
.gallery-item-label span { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.gallery-item-label small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* fade-in animation */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== ABOUT CONTENT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.4);
}
.about-title span {
  display: inline;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}
.about-body p {
  margin-bottom: 1rem;
  color: var(--muted);
  max-width: 480px;
}
.gear-list { margin-top: 2.5rem; }
.gear-header {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.gear-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.gear-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about-stats { padding-top: 1rem; }
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }

/* ===== PANEL 2: CONTACT ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.4);
}
.contact-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}
.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.contact-link:hover { color: var(--text); }
.contact-link-arrow { font-size: 16px; transition: transform 0.3s; }
.contact-link:hover .contact-link-arrow { transform: translate(3px, -3px); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0.8rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--muted); }
.contact-form textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-submit button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: none;
  padding: 0.9rem 2rem;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.3s;
}
.form-submit button:hover { opacity: 0.85; }
.form-status { font-size: 11px; color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.form-status.visible { opacity: 1; }
.form-status.ok { color: #7c9; }

/* ===== FOOTER ===== */
footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 3rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* ===== PANEL PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  transition: width 0.15s linear;
  width: 0%;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  html, body {
    overflow: visible;
    height: auto;
  }
  .scroll-container {
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
  }
  .panel {
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .road-bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    flex-direction: column;
  }
  .road-tile {
    width: 100vw;
    height: 100vh;
    height: 100svh;
  }
  .panel-home {
    /* mobile: panel expands to contain hero + about */
    height: auto;
  }
  .panel-home-inner {
    height: auto;
    overflow: visible;
  }
  .home-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 1.5rem 3rem;
  }
  .home-about {
    padding: 4rem 1.5rem 3rem;
    min-height: auto;
  }
  .panel-home-inner {
    scroll-snap-type: none;
  }
  .kit-intro {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .kit-slide {
    min-height: 100vh;
    min-height: 100svh;
    padding: 5rem 1.5rem 3rem;
  }
  .kit-slide::before { display: none; }
  .kit-slide-meta {
    top: 4.5rem;
    right: 1.5rem;
    gap: 1rem;
  }
  .kit-slide-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .kit-slide-text {
    padding-left: 0;
    order: 2;
  }
  .kit-slide-image {
    order: 1;
    min-height: 35vh;
  }
  .kit-slide-image img {
    max-height: 40vh;
  }
  .kit-slide-image-tall img {
    max-height: 50vh;
  }
  .kit-slide-title {
    font-size: clamp(2.2rem, 11vw, 4rem);
  }
  .kit-slide-specs { max-width: 100%; }
  .kit-slide-hint {
    right: 1.5rem;
    bottom: 2rem;
  }
  .panel-inner { padding: 4.5rem 1.5rem 3rem; }

  .road-tile {
    background-image: url('../../public/hero-mobile.jpg');
  }

  .scroll-hint { right: 1.5rem; bottom: 3rem; }
  .hint-arrow { animation-name: hintPulseDown; }
  .hint-text::after { content: none; }
  .hint-arrow::after { content: ''; }
  .scroll-hint .hint-arrow { display: inline-block; transform-origin: center; }

  nav { padding: 1rem 1.5rem; }
  .nav-dots { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 14px; letter-spacing: 0.22em; color: var(--text); }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  footer { padding: 1.5rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }
