:root {
  --ink: #f5f5f7;
  --muted: #9b9ba1;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(22, 22, 24, 0.72);
  --accent: #8ea6ff;
  --bg: #050505;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 48% -16%, rgba(87, 101, 164, 0.16), transparent 36rem),
    var(--bg);
}

body.player-open { overflow: hidden; }

button, a { color: inherit; }

button { font: inherit; }

a { text-decoration: none; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(120, 145, 255, 0.1), transparent 66%);
  transition: opacity 500ms ease;
}

.site-header {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background 400ms ease, border-color 400ms ease, backdrop-filter 400ms ease;
}

.site-header.scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(20px) saturate(130%);
}

.brand, nav, .sound-toggle {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 0.7rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset -3px 0 0 var(--accent);
}

nav { gap: clamp(1rem, 3vw, 2.5rem); }

.nav-link, .sound-toggle {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.82rem;
  color: #d7d7db;
}

.sound-toggle { gap: 0.5rem; padding: 0.25rem; }

.sound-bars { display: flex; align-items: center; gap: 2px; height: 0.8rem; }
.sound-bars i { width: 1px; height: 30%; background: currentColor; transition: height 250ms ease; }
.sound-toggle[aria-pressed="false"] .sound-bars i:nth-child(1) { height: 55%; animation: bar 850ms infinite alternate; }
.sound-toggle[aria-pressed="false"] .sound-bars i:nth-child(2) { height: 95%; animation: bar 700ms 100ms infinite alternate; }
.sound-toggle[aria-pressed="false"] .sound-bars i:nth-child(3) { height: 70%; animation: bar 900ms 200ms infinite alternate; }
@keyframes bar { to { height: 22%; } }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 7rem 1.25rem 4rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(to bottom, transparent 70%, var(--bg));
}

.hero-film {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(0.8) contrast(1.08);
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: linear-gradient(180deg, rgba(5,5,5,.32), rgba(5,5,5,.08) 45%, rgba(5,5,5,.9));
}

.hero-copy {
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 11.5rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 660;
}

.hero-note {
  margin: 2rem 0 0;
  color: #c8c8cc;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
}

.hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
  will-change: transform;
}

.orb-a {
  width: min(56vw, 44rem);
  aspect-ratio: 1;
  top: 5%;
  left: 6%;
  opacity: 0.24;
  background: radial-gradient(circle at 64% 35%, #8c9fff 0, #454a79 22%, #12131b 64%, transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate;
}

.orb-b {
  width: min(48vw, 38rem);
  aspect-ratio: 1;
  right: 5%;
  bottom: 3%;
  opacity: 0.2;
  background: radial-gradient(circle at 30% 38%, #d8a8ff 0, #633d75 24%, #121016 60%, transparent 70%);
  animation: breathe 11s 1s ease-in-out infinite alternate-reverse;
}

@keyframes breathe {
  from { transform: scale(0.94) translate3d(-2%, 1%, 0); }
  to { transform: scale(1.08) translate3d(3%, -2%, 0); }
}

.showreel {
  position: absolute;
  z-index: 3;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem 0.75rem 0.78rem;
  color: #0a0a0a;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 620;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.showreel-icon {
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #101012;
  position: relative;
}

.showreel-icon::after {
  content: "";
  position: absolute;
  left: 56%; top: 50%;
  transform: translate(-50%, -50%);
  border-left: 5px solid white;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.scroll-hint {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #77777e;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.scroll-hint span {
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(to bottom, transparent, #9b9ba1);
  animation: scrollline 1.8s ease-in-out infinite;
}

@keyframes scrollline { 50% { transform: scaleY(0.45); transform-origin: bottom; } }

.work-section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 4rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 92rem;
  margin: 0 auto 2.5rem;
}

.section-heading .eyebrow { margin-bottom: 0.8rem; }

h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 620;
}

.work-count { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; }

.work-grid {
  max-width: 92rem;
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(18rem, 47vw, 46rem);
  gap: clamp(0.9rem, 2vw, 1.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}

.work-card {
  position: relative;
  min-height: clamp(21rem, 36vw, 34rem);
  overflow: hidden;
  border-radius: clamp(1.2rem, 2.4vw, 2.2rem);
  cursor: pointer;
  background: #141416;
  transform-style: preserve-3d;
  isolation: isolate;
  scroll-snap-align: start;
}

.work-visual {
  position: absolute;
  inset: -3%;
  z-index: -2;
  transition: transform 900ms cubic-bezier(.2,.8,.2,1), filter 500ms ease;
  background-size: cover;
  background-position: center;
}

.work-card:hover .work-visual { transform: scale(1.045); filter: saturate(1.16); }

.work-preview {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease;
}

.work-preview.ready { opacity: 1; }

.visual-1 { background: radial-gradient(circle at 68% 33%, #f5a3c8 0, #8a526f 16%, transparent 38%), radial-gradient(circle at 30% 75%, #6f89ee 0, #303d78 24%, #0f1016 64%); }
.visual-2 { background: radial-gradient(circle at 48% 22%, #e9c38b 0, #745b3c 21%, transparent 45%), linear-gradient(155deg, #26221c 0, #070707 66%); }
.visual-3 { background: radial-gradient(ellipse at 28% 45%, #6598f6 0, #293f70 17%, transparent 43%), radial-gradient(ellipse at 74% 60%, #e2b4ff 0, #59406d 18%, transparent 46%), #0a0b0e; }

.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent 56%);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: inherit;
}

.work-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  transform: translateZ(24px);
}

.work-index { display: block; margin-bottom: 0.7rem; color: #bebec4; font-size: .72rem; letter-spacing: .16em; }
.work-title { margin: 0; font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -.035em; font-weight: 580; }
.work-subtitle { margin: .65rem 0 0; color: #c4c4c8; font-size: .88rem; }

.work-play {
  width: clamp(3rem, 5vw, 4.2rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  margin-left: 1rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(15,15,17,.28);
  backdrop-filter: blur(12px);
  transition: background 250ms ease, color 250ms ease, transform 450ms cubic-bezier(.2,.8,.2,1);
}

.work-card:hover .work-play { background: white; color: black; transform: rotate(90deg); }
.work-play::after { content: "+"; font-size: 1.35rem; font-weight: 300; }

.closing {
  max-width: 92rem;
  min-height: 58vh;
  margin: 0 auto;
  padding: 6rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.closing p { margin: 0 0 2.5rem; font-size: clamp(3.4rem, 9vw, 8rem); letter-spacing: -.065em; line-height: .92; }

.back-top {
  padding: .85rem 1.2rem;
  color: #d6d6da;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.6rem clamp(1.25rem, 4vw, 4rem) 2rem;
  color: #77777d;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .72rem;
  letter-spacing: .1em;
}

.player {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 500ms ease, visibility 500ms;
}

.player[aria-hidden="false"] { visibility: visible; opacity: 1; }
.player-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(24px); }

.player-shell {
  position: relative;
  width: min(92vw, 82rem);
  transform: translateY(2rem) scale(.97);
  transition: transform 600ms cubic-bezier(.16,1,.3,1);
}

.player[aria-hidden="false"] .player-shell { transform: none; }

.player-topbar, .player-meta { display: flex; align-items: center; justify-content: space-between; }
.player-topbar { margin-bottom: 1rem; }
.player-topbar h2 { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.player-index, .player-meta { color: #a6a6ab; font-size: .72rem; letter-spacing: .13em; }
.player-index { display: block; margin-bottom: .35rem; }

.player-close {
  position: relative;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  cursor: pointer;
}

.player-close span { position: absolute; left: 50%; top: 50%; width: 1rem; height: 1px; background: white; }
.player-close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.player-close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

.player-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(1rem, 2vw, 1.8rem);
  background: #111;
  box-shadow: 0 3rem 8rem rgba(0,0,0,.65);
}

#video { width: 100%; height: 100%; object-fit: contain; display: none; background: #000; }

.placeholder-reel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #22283e, #08090d 64%);
}

.placeholder-reel p { position: absolute; bottom: 8%; color: rgba(255,255,255,.6); font-size: .75rem; letter-spacing: .16em; }
.reel-light { position: absolute; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(147,167,255,.5), transparent 66%); animation: reel 5s ease-in-out infinite alternate; }
.reel-count { position: relative; font-size: clamp(7rem, 23vw, 18rem); font-weight: 700; letter-spacing: -.09em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.34); }
@keyframes reel { to { transform: translate3d(28%, -12%, 0) scale(1.3); filter: hue-rotate(45deg); } }

.player-meta { padding-top: 1rem; }

.reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity 850ms ease, transform 850ms cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { padding: 1rem 1.15rem; }
  .nav-link { display: none; }
  .hero { min-height: 92svh; }
  h1 { font-size: clamp(4rem, 21vw, 7rem); max-width: 6ch; }
  .showreel { bottom: 12%; }
  .scroll-hint { display: none; }
  .work-section { padding-top: 4.5rem; }
  .work-grid { grid-auto-columns: 84vw; }
  .work-card { min-height: 66vw; }
  .work-content { padding: 1.3rem; }
  .work-subtitle { font-size: .8rem; }
  .closing { min-height: 48vh; }
  .player { place-items: center; }
  .player-shell { width: 94vw; }
  footer { padding-bottom: 1.5rem; }
}

@media (pointer: coarse) { .cursor-glow { display: none; } }

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