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

:root {
  --color-bg: #0a0a0a;
  --color-text: #f5f5f0;
  --color-text-dim: #888;
  --color-accent: #c43a2a;
  --color-accent-hover: #e04a38;
  --color-surface: #141414;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  z-index: 100;
  mix-blend-mode: difference;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav__links a:hover {
  color: var(--color-accent-hover);
}

.nav__links a:hover::after {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 14rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: flex;
  justify-content: center;
}

.hero__char {
  display: inline-block;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  margin-top: var(--space-sm);
  color: var(--color-text-dim);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 1;
}

.hero__scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-text-dim);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ============================================
   SECTION HEADING
   ============================================ */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

/* ============================================
   WORK / PROJECTS
   ============================================ */
.work {
  padding: var(--space-2xl) var(--space-md);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
}

.work__item {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work__item--large {
  grid-column: span 8;
  grid-row: span 2;
}

.work__item--wide {
  grid-column: span 7;
}

.work__item-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
}

.work__item--large .work__item-media {
  aspect-ratio: 4 / 3;
}

.work__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work__item:hover .work__item-img {
  transform: scale(1.05);
}

.work__item-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work__item:hover .work__item-video {
  opacity: 1;
}

.work__item-info {
  padding: var(--space-sm) 0;
}

.work__item-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.work__item-category {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--space-2xl) var(--space-md);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about__image-wrap {
  overflow: hidden;
}

.about__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.6s ease;
}

.about__image-wrap:hover .about__image {
  filter: grayscale(0%);
}

.about__statement {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.about__bio {
  font-size: 1rem;
  color: var(--color-text-dim);
  line-height: 1.8;
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.contact__cta {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 12rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.contact__email {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  transition: color 0.3s ease;
  margin-top: var(--space-sm);
}

.contact__email:hover {
  color: var(--color-accent-hover);
}

.contact__socials {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.contact__social-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color 0.3s ease;
}

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

.contact__bottom {
  margin-top: var(--space-xl);
  font-size: 0.75rem;
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 0.4s; }

.reveal-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

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

  .work__item,
  .work__item--large,
  .work__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact__socials {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
