/* ========================================
   GLOBAL
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ========================================
   FILM GRAIN OVERLAY
   ======================================== */

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ========================================
   SKIP LINK
   ======================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-sm);
  z-index: var(--z-modal);
  text-decoration: underline;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   TOP BAR (Headshot + Logo)
   ======================================== */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--gutter);
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.top-bar__headshot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: border-color var(--duration-base) var(--ease-out-expo);
}

.top-bar__headshot:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.top-bar__name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-white);
}

/* ========================================
   HERO - FULL BLEED VIDEO
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-bg video,
.hero__video-bg .video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Unmute button */
.unmute-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--duration-base), border-color var(--duration-base);
}

.unmute-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.unmute-btn svg {
  width: 18px;
  height: 18px;
}

/* Gradient overlay on video */
.hero__video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-bg) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, transparent 30%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) var(--space-3xl);
}

.hero__headline {
  font-family: var(--font-headline);
  font-size: var(--text-display);
  font-weight: var(--weight-black);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  max-width: 900px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(40px);
  animation: hero-rise 1s var(--ease-out-expo) 0.3s forwards;
}

.hero__headline span {
  color: var(--color-accent);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 1s var(--ease-out-expo) 0.6s forwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 1s var(--ease-out-expo) 0.9s forwards;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-out-expo),
    color var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo),
    transform var(--duration-base) var(--ease-out-expo);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.btn--secondary:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ========================================
   DIVIDER
   ======================================== */

.divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ========================================
   STATEMENT SECTION
   ======================================== */

.statement {
  padding: var(--space-3xl) var(--gutter);
  display: flex;
  justify-content: center;
}

.statement__inner {
  max-width: var(--max-width-content);
  width: 100%;
}

.statement__text {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-secondary);
}

.statement__text strong {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

/* ========================================
   METRICS BAR
   ======================================== */

.metrics {
  padding: var(--space-2xl) var(--gutter);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.metric {
  text-align: center;
}

.metric__value {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: var(--space-2xl) var(--gutter);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer__name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
}

.footer__copyright {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration-base);
}

.footer__link:hover {
  color: var(--color-text);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition:
    color var(--duration-base),
    border-color var(--duration-base),
    transform var(--duration-base);
}

.social-link:hover {
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .hero__content {
    padding-bottom: var(--space-2xl);
  }

  .hero__headline {
    font-size: clamp(2.5rem, 2rem + 4vw, 4rem);
  }

  .top-bar__name {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__left {
    align-items: center;
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .metrics__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .hero__headline,
  .hero__sub,
  .hero__cta {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
  body {
    color: black;
    background: white;
  }

  body::after {
    display: none;
  }

  .hero {
    min-height: auto;
    height: auto;
  }

  .hero__video-bg {
    display: none;
  }

  .top-bar {
    position: static;
    mix-blend-mode: normal;
  }
}
