:root {
  --bg: #080808;
  --charcoal: #1B1A18;
  --accent: #B18A4A;
  --accent-soft: #D5B06B;
  --accent-highlight: #F1D28A;
  --ivory: #E7E1D5;
  --text-2: #8A8478;
  --text-3: #4A4640;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ===== HERO ===== */
.wd-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
}
.wd-hero-spacer {
  height: 100vh;
  position: relative;
  pointer-events: none;
}
.wd-hero-video, .wd-hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
}
.wd-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.3);
  transition: background 0.8s ease;
}
.wd-hero-overlay.dimmed {
  background: rgba(8,8,8,0.65);
}
.wd-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.wd-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.wd-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
}
.wd-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(160,180,210,0.6);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.wd-hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 7.5vw, 76px);
  color: #e8edf4;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-shadow: 0 0 60px rgba(140,170,220,0.12);
}
.wd-hero-sub {
  font-size: 16px;
  color: rgba(180,190,210,0.7);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
  text-shadow: 0 0 24px rgba(140,170,220,0.15), 0 0 60px rgba(140,170,220,0.06);
}
.wd-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.wd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: radial-gradient(circle at 50% 50%, rgba(140,170,220,0.08) 0%, transparent 70%);
  background-size: 100% 100%;
  color: rgba(200,215,240,0.9);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 48px;
  border: 1px solid rgba(140,170,220,0.2);
  min-height: 48px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-size 0.5s ease, border-color 0.4s, box-shadow 0.4s, color 0.4s, transform 0.3s;
}
.wd-btn-primary:hover {
  background-size: 300% 300%;
  border-color: rgba(160,190,230,0.45);
  color: #e8edf4;
  box-shadow: 0 0 30px rgba(140,170,220,0.15), 0 0 60px rgba(140,170,220,0.06);
  transform: translateY(-2px);
}
.wd-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(177,138,74,0.3);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.3s;
  min-height: 44px;
}
.wd-btn-ghost:hover {
  border-color: rgba(213,176,107,0.6);
  color: var(--accent-highlight);
  box-shadow: 0 0 20px rgba(177,138,74,0.15);
}

.wd-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wd-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.wd-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(177,138,74,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ===== SCROLL SCRUB ===== */
.wd-scrub-wrapper {
  position: relative;
  height: 300vh;
  z-index: 1;
  margin-top: -100vh;
}
.wd-scrub-frost {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 20;
  backdrop-filter: blur(0px);
  background: rgba(8,8,8,0);
  margin-bottom: -100vh;
  display: none;
}
.wd-scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.wd-scrub-sticky.visible {
  opacity: 1;
}
.wd-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.05);
  z-index: 10;
}
.wd-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(177,138,74,0.5);
  transition: width 0.1s;
}
.wd-nav-dots {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.wd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(177,138,74,0.4);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.wd-dot.active {
  background: var(--accent);
  border-color: var(--accent-soft);
  box-shadow: 0 0 8px rgba(177,138,74,0.4);
}
.wd-niche-counter {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  z-index: 10;
}
.wd-letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 12%;
  z-index: 5;
}
.wd-letterbox-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.7), transparent);
}
.wd-letterbox-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.7), transparent);
}

.wd-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.wd-frame.active {
  opacity: 1;
  z-index: 2;
}
.wd-frame.prev {
  opacity: 1;
  z-index: 1;
}
/* Text from the previous niche floats over the current canvas at idle */
.wd-frame.text-overlay {
  opacity: 1 !important;
  z-index: 3 !important;
  pointer-events: none;
  transition: none !important;
}
.wd-frame.text-overlay .wd-frame-canvas,
.wd-frame.text-overlay .wd-frame-bg {
  opacity: 0 !important;
  transition: none !important;
}
.wd-frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.wd-frame-bg {
  position: absolute;
  inset: 0;
}
.wd-frame-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.wd-frame-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(177,138,74,0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.wd-frame-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--ivory);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.wd-frame-content--stacked {
  text-align: left;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0;
}
.wd-stacked-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.wd-stacked-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--ivory);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wd-stacked-word.visible {
  opacity: 1;
  transform: translateY(0);
}
.wd-frame-feature {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.15em;
}
.wd-frame-feature--bright {
  color: var(--accent-highlight);
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(241,210,138,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wd-frame-feature--bright.visible {
  opacity: 1;
  transform: translateY(0);
}
.wd-frame-feature--cool {
  color: #7ac4e6;
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(122,196,230,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wd-frame-feature--cool.visible {
  opacity: 1;
  transform: translateY(0);
}
.wd-frame-feature--energy {
  color: #e05cff;
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(224,92,255,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wd-frame-feature--energy.visible {
  opacity: 1;
  transform: translateY(0);
}
#wdFrame3 .wd-stacked-word {
  color: #1a1a1a;
  text-shadow: 0 2px 10px rgba(255,255,255,0.6);
}
.wd-frame-feature--rugged {
  color: #c47a1a;
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(232,164,74,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wd-frame-feature--rugged.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CTA ===== */
.wd-cta {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 80px 24px;
}
.wd-cta-content {
  text-align: center;
  max-width: 560px;
}
.wd-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(177,138,74,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.wd-cta-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--ivory);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.wd-cta-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
}
.wd-cta-submit {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 16px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #8A6A3D);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(213,176,107,0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  min-height: 44px;
  white-space: nowrap;
}
.wd-cta-submit:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(177,138,74,0.3);
}
.wd-cta-fine {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.wd-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg);
}
.wd-back {
  color: var(--accent);
  transition: color 0.2s;
}
.wd-back:hover { color: var(--accent-highlight); }

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .wd-hero { height: 100svh; }
  .wd-hero-content { padding: 0 20px; }
  .wd-hero-eyebrow { font-size: 9px; margin-bottom: 16px; letter-spacing: 0.25em; }
  .wd-hero-headline { font-size: clamp(28px, 9vw, 44px); margin-bottom: 14px; }
  .wd-hero-sub { font-size: 14px; margin-bottom: 28px; }
  .wd-hero-btns { flex-direction: column; align-items: center; gap: 12px; }
  .wd-btn-primary, .wd-btn-ghost { padding: 12px 24px; font-size: 11px; }
  .wd-scroll-hint { bottom: 24px; }

  .wd-nav-dots { left: 12px; }
  .wd-niche-counter { right: 12px; top: 16px; }
  .wd-letterbox { height: 8%; }
  .wd-frame-label { font-size: 10px; margin-bottom: 12px; }
  .wd-frame-title { font-size: clamp(20px, 7vw, 32px); margin-bottom: 12px; }
  .wd-frame-feature { font-size: 11px; letter-spacing: 0.1em; }
  .wd-frame-content { padding: 0 20px; }
  .wd-frame-content--stacked { text-align: center; right: auto; left: 50%; transform: translate(-50%, -50%); }
  .wd-frame-canvas { object-position: 30% center; }
  .wd-stacked-word { font-size: clamp(24px, 8vw, 36px); }

  .wd-footer { flex-direction: column; gap: 8px; text-align: center; padding: 24px; }
}
