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

:root {
  --background: #050505;
  --surface: #0c0c0c;
  --surface-soft: #141414;
  --text: #f2f0ea;
  --text-muted: #aaa49a;
  --text-dim: #716c64;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent-cyan: #8ee7ff;
  --accent-pink: #ff4fc3;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(142, 231, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #080808 0%, var(--background) 34rem);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

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

a:focus-visible,
button:focus-visible,
.project-card:focus-visible {
  outline: 1px solid var(--accent-cyan);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  color: var(--text);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(20px);
}

.wordmark {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 240, 234, 0.72);
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 92px var(--pad) 44px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.58) 38%, rgba(5, 5, 5, 0.12) 74%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, transparent 36%),
    url("video_frames/2_Neon_Nocturne.png") center / cover;
  transform: scale(1.02);
}

.hero::after {
  background: radial-gradient(circle at 78% 40%, transparent 0 10rem, rgba(5, 5, 5, 0.2) 24rem, rgba(5, 5, 5, 0.64) 100%);
  mix-blend-mode: multiply;
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.meta,
.filter-button,
.project-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-cyan);
  margin: 0 0 20px;
}

h1, h2, h3, p {
  margin-top: 0;
}

.hero h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 560px) auto;
  align-items: end;
  gap: 28px;
}

.hero-copy p {
  margin-bottom: 0;
  color: rgba(242, 240, 234, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
}

.button.secondary {
  background: transparent;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 64px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.hero-meta div {
  min-height: 86px;
  padding: 18px;
  background: rgba(5, 5, 5, 0.56);
}

.hero-meta span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: clamp(72px, 10vw, 144px) var(--pad);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-cyan);
}

.section-heading h2,
.about-copy h2,
.reel-copy h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p,
.about-copy p,
.reel-copy p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.project-card {
  position: relative;
  min-width: 0;
  color: var(--text);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}

.project-media.has-player {
  cursor: pointer;
}

.project-media img,
.project-media video,
.project-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-media img,
.project-media video {
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02);
  transform: scale(1.001);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 650ms ease;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.44));
  opacity: 0.6;
  transition: opacity 300ms ease;
}

.project-media iframe {
  z-index: 4;
}

.watch-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.7);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
  backdrop-filter: blur(14px);
}

.watch-button-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.project-card:hover .watch-button,
.watch-button:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.watch-button:hover {
  background: rgba(5, 5, 5, 0.9);
}

.project-card.has-embed .project-media {
  cursor: default;
}

.project-card.has-embed .project-media::after,
.project-card.has-embed .watch-button {
  display: none;
}

.project-card:hover .project-media img,
.project-card:hover .project-media video {
  transform: scale(1.012);
  filter: saturate(1.02) contrast(1.04);
}

.project-card:hover .project-media::after {
  opacity: 0.92;
}

.project-info {
  position: static;
  padding: 14px 0 0;
  z-index: 1;
}

.project-type {
  display: block;
  margin-bottom: 9px;
  color: rgba(242, 240, 234, 0.66);
}

.project-info h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 8px;
  color: rgba(242, 240, 234, 0.62);
}

.project-year {
  color: var(--text-dim);
}

.project-description {
  line-height: 1.5;
}

.project-runtime {
  grid-column: 2;
  width: fit-content;
  margin: 2px 0 8px;
  color: var(--text-dim);
}

.project-runtime::before {
  content: "Runtime ";
}

.youtube-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

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

.reel-section {
  padding-top: 0;
}

.reel-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  min-height: 520px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.reel-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px);
}

.reel-copy h2 {
  margin-bottom: 24px;
}

.reel-status {
  display: grid;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.reel-status strong {
  color: var(--text);
  font-weight: 500;
}

.reel-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  min-height: 100%;
  background: var(--line-soft);
  overflow: hidden;
}

.reel-strip img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.88);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.about-copy p {
  margin-top: 26px;
  max-width: 680px;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.about-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.about-list div {
  min-height: 112px;
  padding: 18px;
  background: var(--background);
}

.about-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-list strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 300;
}

.about-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-soft);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section {
  padding-top: clamp(56px, 8vw, 96px);
  background: #080808;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.36fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
}

.contact-grid h2 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 7.8rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: 0;
}

.contact-grid p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}

.contact-links {
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 160ms ease;
}

.contact-links a:hover {
  color: var(--text);
}

footer {
  padding: 24px var(--pad) 34px;
  background: #080808;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 980px) {
  .hero-copy,
  .section-heading,
  .reel-panel,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

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

  .reel-panel {
    min-height: auto;
  }

  .reel-strip {
    min-height: 460px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding-top: 16px;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    max-width: 230px;
    font-size: 0.64rem;
  }

  .hero {
    min-height: 96svh;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 6.8rem);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.44), rgba(5, 5, 5, 0.9) 78%),
      url("video_frames/2_Neon_Nocturne.png") 62% center / cover;
  }

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

  .watch-button {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .reel-strip {
    grid-template-columns: repeat(2, 1fr);
    min-height: 520px;
  }

  .about-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (hover: none) {
  .watch-button {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

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