:root {
  --bg: #0D0D0D;
  --fg: #FFFFFF;
  --silver: #C0C0C0;
}

* { -webkit-font-smoothing: antialiased; }

html, body {
  background: var(--bg);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--fg);
  font-weight: 300;
}

.font-display {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.italic-serif {
  font-family: 'Fraunces', 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: #0D0D0D;
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); }
  20% { transform: translate(-15%,5%); }
  30% { transform: translate(7%,-25%); }
  40% { transform: translate(-5%,25%); }
  50% { transform: translate(-15%,10%); }
  60% { transform: translate(15%,0); }
  70% { transform: translate(0,15%); }
  80% { transform: translate(3%,35%); }
  90% { transform: translate(-10%,10%); }
}

.grain-overlay-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.scroll-indicator {
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

.hero-line { display: block; }

input::placeholder {
  letter-spacing: 0.1em;
  font-weight: 300;
}

::selection {
  background: white;
  color: black;
}

.phase-sticky {
  width: 100%;
}

.phase-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: opacity, transform;
}

.phase-layer[data-phase="0"] { opacity: 1; }

.prog-dot {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  transition: background 0.4s ease;
}
.prog-dot.active {
  background: rgba(255,255,255,1);
}

#phase-stack {
  height: 550vh;
}

.cap-card h3 {
  font-stretch: expanded;
}

.hero-logo-mark img {
  filter: invert(1);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 80%;
  max-width: 420px;
}
.preloader-logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.preloader-logo {
  width: 120px;
  height: auto;
  display: block;
  filter: invert(1);
}
.preloader-mask {
  position: absolute;
  inset: 0;
  background: #0D0D0D;
  transform-origin: bottom;
  transform: scaleY(1);
  will-change: transform;
}
.preloader-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.6;
  font-family: 'Inter', sans-serif;
}
.preloader-percent {
  font-variant-numeric: tabular-nums;
}
.preloader-bar {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.2s ease;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform, width, height;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.7);
  transition: width 0.35s cubic-bezier(0.2,0.8,0.2,1), height 0.35s cubic-bezier(0.2,0.8,0.2,1), border-color 0.3s ease, opacity 0.3s ease;
}
.cursor-ring.cursor-hover {
  width: 70px;
  height: 70px;
  border-color: rgba(255,255,255,0.9);
}
.cursor-dot.cursor-hover {
  width: 3px;
  height: 3px;
  opacity: 0.6;
}

[data-magnetic] {
  display: inline-flex;
  will-change: transform;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (max-width: 768px) {
  .video-bg iframe {
    width: 250vh;
    height: 140vh;
    min-width: 250vh;
  }

  #phase-stack { height: auto; }
  .phase-sticky {
    position: relative !important;
    height: auto !important;
  }
  .phase-layer {
    position: relative !important;
    opacity: 1 !important;
    height: 100vh;
    transform: none !important;
    scroll-snap-align: start;
  }
  #phase-stack {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .phase-progress { display: none; }

  .cap-horizontal-wrap {
    height: auto !important;
    overflow: visible !important;
  }
  .cap-track {
    flex-direction: column !important;
    height: auto !important;
    transform: none !important;
  }
  .cap-card {
    width: 100vw !important;
    height: 100vh !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  body { touch-action: pan-y; }
}

button { font-weight: 400; }

a { -webkit-tap-highlight-color: transparent; }
