:root {
  --bg: #0a0a0a;
  --fg: #f2f0ea;
  --dim: #8a8780;
  --line: #2a2a2a;
  --acid: #ff5b14;  /* main accent (orange) */
  --hot: #8b5cff;   /* secondary accent (purple) */
  --display: "Anton", Impact, sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
video { display: block; }
::selection { background: var(--acid); color: #000; }
body.lock { overflow: hidden; }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--acid); }
.stroke { color: transparent; -webkit-text-stroke: 2px var(--fg); }
.hl { background: var(--acid); color: #000; padding: 0 .2em; font-style: italic; }
.hl-box { background: var(--hot); color: var(--bg); padding: 0 .12em; display: inline-block; transform: rotate(-3deg); }

/* film grain */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-5%,3%)} 66%{transform:translate(4%,-4%)} 100%{transform:translate(-2%,5%)} }

/* custom cursor (pointer devices only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: var(--acid); color: #000; display: grid; place-items: center;
  font: 700 12px var(--mono); letter-spacing: .1em; transform: scale(0); transition: transform .25s cubic-bezier(.2,.9,.3,1.4); }
.cursor.is-on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad); mix-blend-mode: difference; }
.nav__logo { font: 28px var(--display); letter-spacing: .02em; }
.nav__logo em { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.nav__links { display: flex; gap: clamp(14px, 2.5vw, 36px); font: 500 14px var(--body); text-transform: uppercase; letter-spacing: .04em; }
.nav__links i { font: 10px var(--mono); vertical-align: super; margin-right: 4px; opacity: .6; font-style: normal; }
.nav__links a:hover { text-decoration: line-through; }
@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } }

/* HERO */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__stage { position: absolute; inset: 0; background: #000; }
.hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; transform: scale(1.06); }
.hero__vid.is-on { opacity: 1; animation: push 4.5s linear forwards; }
@keyframes push { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, transparent 30%, transparent 50%, rgba(10,10,10,.9) 100%); }
.hero__meta { position: absolute; top: 80px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 16px;
  font: 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 640px) { .hero__clip { display: none; } .hero__meta span { white-space: nowrap; } }
.rec { color: var(--hot); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero__now b { color: var(--acid); font-weight: 700; }
.hero__now i { font-style: normal; opacity: .7; }
.hero__lede { position: relative; max-width: 30ch; margin: 0 var(--pad) 8px; font: 500 clamp(18px, 2vw, 26px)/1.25 var(--body); }
.hero__title { position: relative; display: flex; font: clamp(110px, 25.5vw, 520px)/.8 var(--display); letter-spacing: -.01em;
  margin: 0 calc(var(--pad) - .04em) -.04em; white-space: nowrap; mix-blend-mode: difference; }
.hero__title .stroke { -webkit-text-stroke-width: clamp(2px, .35vw, 6px); }
.hero__bar { position: relative; height: 4px; background: rgba(255,255,255,.12); }
.hero__bar i { position: absolute; inset: 0; background: var(--acid); transform-origin: left; transform: scaleX(0); }
.hero.is-link { cursor: pointer; }

/* MARQUEE */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--acid); color: #000; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font: clamp(28px, 4vw, 56px)/1 var(--display); text-transform: uppercase; padding: 0 .4em; white-space: nowrap; }
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px #000; }
.marquee__track span::after { content: "✳"; margin-left: .8em; font-size: .6em; vertical-align: middle; -webkit-text-stroke: 0; color: #000; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(80px, 12vw, 160px) var(--pad) 40px; }
.section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 40px; margin-bottom: clamp(32px, 5vw, 64px); }
.section__head .kicker { grid-column: 1 / -1; }
.section__head h2 { font: clamp(72px, 13vw, 220px)/.85 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.section__head .amp { color: var(--acid); font-style: italic; }
.section__note { max-width: 32ch; color: var(--dim); font-size: 15px; line-height: 1.45; padding-bottom: 1em; }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }

/* WORK INDEX */
.index { list-style: none; border-top: 1px solid var(--line); counter-reset: n; }
.index li { position: relative; border-bottom: 1px solid var(--line); }
.index button { width: 100%; display: grid; grid-template-columns: 70px 1fr auto 60px; align-items: center; gap: 20px; text-align: left;
  padding: clamp(14px, 2vw, 22px) 0; transition: padding .35s cubic-bezier(.2,.8,.2,1), color .2s; position: relative; z-index: 1; }
.index li::before { content: ""; position: absolute; inset: 0; background: var(--acid); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.index li:hover::before, .index li:focus-within::before { transform: scaleY(1); }
.index li:hover button, .index li:focus-within button { color: #000; padding-left: 20px; }
.index .n { font: 13px var(--mono); opacity: .6; }
.index .name { font: clamp(34px, 6vw, 92px)/.95 var(--display); text-transform: uppercase; }
.index .tag { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.index .cnt { font: 12px var(--mono); text-align: right; padding-right: 6px; opacity: .7; }
.index .thumb { display: none; }
@media (max-width: 760px) {
  .index button { grid-template-columns: 1fr 96px; gap: 6px 14px; }
  .index .n, .index .cnt { display: none; }
  .index .tag { grid-row: 2; text-align: left; }
  .index .thumb { display: block; grid-row: 1 / 3; grid-column: 2; width: 96px; aspect-ratio: 1; object-fit: cover; }
}

/* floating preview */
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(260px, 30vw, 460px); pointer-events: none;
  transform: translate(-50%, -50%) scale(.6) rotate(-4deg); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.3,1.2); }
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.peek video { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #111; outline: 3px solid var(--acid); outline-offset: -3px; }
@media (hover: none) { .peek { display: none; } }

/* tiles (logos / lab / project grid) */
.tile { position: relative; overflow: hidden; background: #111; cursor: pointer; display: block; width: 100%; }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.tile img { position: absolute; inset: 0; }
.tile video { position: relative; opacity: 0; transition: opacity .3s, transform .6s cubic-bezier(.2,.8,.2,1); }
.tile.is-playing video { opacity: 1; }
.tile:hover video, .tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; display: flex; justify-content: space-between; gap: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tile figcaption b { font: 22px/1 var(--display); letter-spacing: .01em; }
.tile .sound { position: absolute; top: 10px; right: 10px; font: 10px var(--mono); background: var(--acid); color: #000; padding: 3px 6px; }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 4px; }
.logos .tile { aspect-ratio: 16/9; }
.logos .tile figcaption { padding-top: 24px; }
.section--logos { background: #000; }

.lab { columns: 4 260px; column-gap: 12px; }
.lab .tile { break-inside: avoid; margin-bottom: 12px; }
.lab .tile:nth-child(3n+2) { rotate: .8deg; }
.lab .tile:nth-child(5n+1) { rotate: -.8deg; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 80px; }
.services__item { padding: 32px var(--pad); border-right: 1px solid var(--line); display: grid; gap: 10px; }
.services__item:last-child { border-right: 0; }
.services__item b { font: clamp(36px, 4vw, 64px)/1 var(--display); text-transform: uppercase; }
.services__item:hover b { color: var(--acid); }
.services__item span { color: var(--dim); font-size: 15px; line-height: 1.4; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr 1fr; } .services__item:nth-child(2) { border-right: 0; } .services__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* CONTACT */
.contact { padding: clamp(100px, 14vw, 200px) var(--pad) 60px; display: grid; gap: 30px; }
.contact__big { display: grid; font: clamp(60px, 12.5vw, 220px)/.86 var(--display); text-transform: uppercase; }
.contact__big em { font-style: normal; color: var(--acid); }
.contact__big:hover span:first-child { color: transparent; -webkit-text-stroke: 2px var(--fg); }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__links a { border: 1px solid var(--fg); border-radius: 99px; padding: 12px 22px; font: 14px var(--mono); transition: background .2s, color .2s; }
.contact__links a:hover { background: var(--acid); border-color: var(--acid); color: #000; }

.foot { display: flex; justify-content: space-between; padding: 24px var(--pad); border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); text-transform: uppercase; }

/* PROJECT OVERLAY */
.proj { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; padding: 0 var(--pad) 60px;
  clip-path: inset(100% 0 0 0); transition: clip-path .6s cubic-bezier(.7,0,.2,1); visibility: hidden; }
.proj.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.proj__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: var(--bg); }
.proj__close { font: 700 13px var(--mono); letter-spacing: .1em; padding: 10px 16px; background: var(--acid); color: #000; }
.proj__close:hover { background: var(--hot); }
.proj__title { font: clamp(64px, 12vw, 200px)/.85 var(--display); text-transform: uppercase; margin: 10px 0 40px; }
.proj__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: start; }
.proj__grid .tile { grid-column: span 6; }
.proj__grid .tile.v { grid-column: span 3; }
.proj__grid .tile.first { grid-column: 1 / -1; }
.proj__grid .tile.first.v { grid-column: span 4; }
@media (max-width: 760px) { .proj__grid .tile, .proj__grid .tile.v, .proj__grid .tile.first.v { grid-column: span 12; } .proj__grid .tile.v { grid-column: span 6; } }

/* PLAYER */
.player { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s; }
.player.is-open { opacity: 1; visibility: visible; }
.player video { max-width: 92vw; max-height: 82vh; background: #000; }
.player__cap { position: absolute; bottom: 24px; left: var(--pad); font: 13px var(--mono); text-transform: uppercase; display: flex; gap: 14px; }
.player__cap b { color: var(--acid); }
.player__cap i { font-style: normal; opacity: .7; }
.player__btn, .player__close { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; font-size: 22px; border: 1px solid var(--fg); border-radius: 50%; transition: background .2s, color .2s; }
.player__btn:hover, .player__close:hover { background: var(--acid); color: #000; border-color: var(--acid); }
.player__prev { left: var(--pad); top: 50%; translate: 0 -50%; }
.player__next { right: var(--pad); top: 50%; translate: 0 -50%; }
.player__close { top: 20px; right: var(--pad); }
@media (max-width: 760px) { .player__btn { top: auto; bottom: 64px; translate: none; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
