/* ============================================================
   1LXRD — Design tokens
   ============================================================ */
:root{
  --void: #0B0C14;
  --void-2: #10121C;
  --void-rgb: 11,12,20;
  --panel: #171A26;
  --panel-2: #1E2233;
  --ink: #F2F4FA;
  --muted: #99A2B8;
  --muted-dim: #5B6379;
  --line: rgba(242,244,250,0.09);

  --accent: #3D7DFF;         /* primary electric blue */
  --accent-soft: rgba(61,125,255,0.4);
  --accent-2: #5EC8FF;       /* bright sky-blue, secondary */
  --accent-2-soft: rgba(94,200,255,0.4);
  --accent-3: #6C6BFF;       /* indigo-blue, gradient variety only */
  --accent-warm: #FF6B4A;    /* coral — the one "human hand" accent, used sparingly */
  --accent-warm-soft: rgba(255,107,74,0.35);
  --cobalt: var(--accent);   /* legacy alias */

  --glass-bg: rgba(255,255,255,0.05);
  --glass-bg-strong: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.18);
  --glass-highlight: rgba(255,255,255,0.4);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: clamp(2.5rem, 5vw, 4rem);
  --space-xl: clamp(4rem, 8vw, 6.5rem);

  --section-pad: clamp(2.5rem, 6vw, 5rem);

  color-scheme: dark;
}

/* ============================================================
   Light theme — same token names, inverted surface/ink values.
   Accent colors stay identical across themes: they're the brand,
   not the mode. Video players (hero, work, process cards) keep
   their dark chrome in both themes, same as any video player UI.
   ============================================================ */
html[data-theme="light"]{
  --void: #F6F4EF;
  --void-2: #ECE8DF;
  --void-rgb: 246,244,239;
  --panel: #FFFFFF;
  --panel-2: #EDE9E0;
  --ink: #15161D;
  --muted: #565C70;
  --muted-dim: #7B8194;
  --line: rgba(21,22,29,0.10);

  --glass-bg: rgba(21,22,29,0.035);
  --glass-bg-strong: rgba(255,255,255,0.6);
  --glass-border: rgba(21,22,29,0.12);
  --glass-highlight: rgba(255,255,255,0.9);

  color-scheme: light;
}

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

@property --angle{
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

html{ scroll-behavior: auto; background: var(--void); scrollbar-width: none; }
html::-webkit-scrollbar{ display:none; }
body::-webkit-scrollbar{ display:none; }

body{
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a, button{ -webkit-tap-highlight-color: transparent; }

@media (hover: none) and (pointer: coarse){
  body{ cursor: auto; }
}

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

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

ul{ list-style:none; }

button{ font-family: inherit; }

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

.grain{
  position: fixed; inset:0; z-index: 500; pointer-events:none;
  opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Aurora - ambient colour wash behind the glass
   ============================================================ */
.aurora{
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}

.aurora span{
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  will-change: transform;
}

.aurora span:nth-child(1){
  width: 55vw; height: 55vw; top: -18%; left: -14%;
  background: var(--accent);
  animation: auroraFloat 20s ease-in-out infinite;
}
.aurora span:nth-child(2){
  width: 50vw; height: 50vw; bottom: -20%; right: -12%;
  background: var(--accent-2);
  opacity: 0.32;
  animation: auroraFloat 24s ease-in-out infinite reverse;
}
.aurora span:nth-child(3){
  width: 36vw; height: 36vw; top: 42%; left: 55%;
  background: var(--accent-3);
  opacity: 0.22;
  animation: auroraFloat 28s ease-in-out infinite;
}

@keyframes auroraFloat{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(6%, 8%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce){
  .aurora span{ animation: none !important; }
}

html[data-theme="light"] .aurora span:nth-child(1){ opacity: 0.16; }
html[data-theme="light"] .aurora span:nth-child(2){ opacity: 0.13; }
html[data-theme="light"] .aurora span:nth-child(3){ opacity: 0.10; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ============================================================
   Glassmorphism utility - used everywhere, on purpose
   ============================================================ */
.glass{
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 30px rgba(6,7,12,0.25);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}

.glass::before{
  content:"";
  position:absolute; inset:0; z-index:0;
  opacity:0; pointer-events:none;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.22), transparent 70%);
  transition: opacity 0.4s ease;
}
.glass:hover::before{ opacity:1; }

.glass::after{
  content:"";
  position:absolute; top:0; left:-150%; width:60%; height:100%; z-index:0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events:none;
}
.glass:hover::after{ left: 150%; }

.glass > *{ position: relative; z-index: 1; }

.glass:hover{
  background: var(--glass-bg-strong);
  border-color: var(--accent-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 40px var(--accent-soft);
}

.magnetic{ transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }

/* ============================================================
   Custom cursor - trailing ring, adaptive-contrast blend
   ============================================================ */
.cursor{
  position: fixed; top:0; left:0; z-index: 600;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot{
  position:absolute; top:0; left:0;
  width:7px; height:7px; border-radius:50%;
  background: #fff;
}

.cursor__ring{
  position:absolute; top:0; left:0;
  width:38px; height:38px; border-radius:50%;
  border: 1px solid #fff;
  transition: width 0.35s cubic-bezier(.2,.7,.2,1), height 0.35s cubic-bezier(.2,.7,.2,1);
}

.cursor__label{
  position:absolute; top:0; left:0;
  font-family: var(--font-mono); font-size:0.6rem;
  letter-spacing:0.08em; text-transform:uppercase;
  color:#fff; white-space:nowrap;
  opacity:0; transition: opacity 0.25s ease;
}

.cursor.is-hovering .cursor__ring{ width:68px; height:68px; }
.cursor.is-hovering .cursor__label{ opacity:1; }

@media (hover: none) and (pointer: coarse){
  .cursor{ display:none; }
}

/* Touch targets need to be ≥44px — the mute button reads fine small
   visually, so keep its icon/visual size and just grow the hit area */
@media (hover: none) and (pointer: coarse){
  .video-card__mute{
    width: 44px; height: 44px;
    top: 0.6rem; right: 0.6rem;
  }
}

/* ============================================================
   Custom scrollbar - replaces the native bar, on-brand gradient thumb
   ============================================================ */
.custom-scrollbar{
  position: fixed; top:0; right:0; width:6px; height:100svh; z-index: 450;
  padding: 6px 0;
}

.custom-scrollbar__track{
  position: relative; width:100%; height:100%;
  background: var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.custom-scrollbar__thumb{
  position: absolute; top:0; left:0; width:100%; height: 80px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 10px var(--accent-soft);
  cursor: grab;
  transition: box-shadow 0.3s ease, width 0.25s ease, left 0.25s ease;
}

.custom-scrollbar__thumb:hover,
.custom-scrollbar__thumb.is-dragging{
  width: 9px; left: -1.5px;
  box-shadow: 0 0 16px var(--accent-2-soft);
}

.custom-scrollbar__thumb:active{ cursor: grabbing; }

@media (hover: none) and (pointer: coarse){
  .custom-scrollbar{ display:none; }
  html, body{ scrollbar-width: auto; }
  html::-webkit-scrollbar, body::-webkit-scrollbar{ display: initial; }
}

/* ============================================================
   Timeline scrubber - tick marks, grow when active
   ============================================================ */
.scrubber{
  position: fixed;
  right: clamp(1.25rem, 2.5vw, 2.25rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
}

.scrubber__ticks{
  display:flex; flex-direction:column; gap: 1.15rem; align-items:flex-end;
}

.scrubber__ticks li{ display:flex; align-items:center; gap:0.6rem; cursor:pointer; }

.tick{
  display:block;
  width: 14px; height: 2px;
  background: var(--muted-dim);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(.2,.7,.2,1), background 0.35s ease, box-shadow 0.35s ease;
}

.scrubber__ticks li:hover .tick,
.scrubber__ticks li.is-active .tick{
  width: 40px;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2-soft);
}

.tick-label{
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  max-width:0; overflow:hidden; white-space:nowrap; opacity:0;
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

.scrubber__ticks li:hover .tick-label{
  max-width: 120px; opacity:1;
}

@media (max-width: 900px){
  .scrubber{ display:none; }
}

/* ============================================================
   Top nav
   ============================================================ */
.topnav{
  position: fixed; top:0; left:0; right:0; z-index: 300;
  display:flex; align-items:center; justify-content:flex-end; gap: 0.6rem;
  padding: max(1.5rem, env(safe-area-inset-top) + 0.75rem) max(1.5rem, env(safe-area-inset-right) + 1rem) 1.5rem clamp(1.5rem, 5vw, 3.5rem);
}

/* ============================================================
   Back to top — fixed bottom-right, fades in once you scroll
   past the hero. Sits above everything except the mobile menu
   overlay, which hides it explicitly (see .back-to-top.is-hidden).
   ============================================================ */
.back-to-top{
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right) + 1rem);
  bottom: max(1.25rem, env(safe-area-inset-bottom) + 1rem);
  z-index: 300;
  width: 44px; height: 44px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.8,.2,1), background 0.35s ease, border-color 0.35s ease;
}

.back-to-top.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Menu overlay takes the whole viewport, incl. the bottom-right
   corner on short screens — keep the two from ever overlapping */
.back-to-top.is-hidden{
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(0.85) !important;
}

.back-to-top svg{ transition: transform 0.3s ease; }
.back-to-top:hover svg{ transform: translateY(-3px); }

.topnav__toggle{
  border:none; cursor:pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  flex-shrink: 0;
}

/* ============================================================
   Theme toggle — sun/moon crossfade, sits beside the menu button
   ============================================================ */
.theme-toggle{
  position: relative;
  border:none; cursor:pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink);
  flex-shrink: 0;
}

.theme-toggle svg{
  position:absolute;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2,.8,.2,1);
}

.theme-toggle .icon-sun{ opacity: 0; transform: rotate(-60deg) scale(0.6); }
.theme-toggle .icon-moon{ opacity: 1; transform: rotate(0deg) scale(1); }

html[data-theme="light"] .theme-toggle .icon-sun{ opacity: 1; transform: rotate(0deg) scale(1); }
html[data-theme="light"] .theme-toggle .icon-moon{ opacity: 0; transform: rotate(60deg) scale(0.6); }

.topnav__toggle span{
  display:block; height:1.5px; width:16px; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topnav__toggle[aria-expanded="true"] span:first-child{ transform: translateY(3.5px) rotate(45deg); }
.topnav__toggle[aria-expanded="true"] span:last-child{ transform: translateY(-3.5px) rotate(-45deg); }

.menu-panel{
  position: fixed; inset:0; z-index: 250;
  background: rgba(var(--void-rgb), 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  gap: 2rem;
  padding: 0 clamp(1.5rem, 8vw, 6rem);
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(.77,0,.18,1);
}

.menu-panel.is-open{ transform: translateY(0); }

.menu-panel ul{ display:flex; flex-direction:column; gap: 1rem; }

.menu-panel ul{ gap: 0.4rem; }

.menu-panel li{ display:flex; align-items:baseline; gap:0.85rem; }

.menu-panel li::before{
  content: "0" counter(menu-item);
  counter-increment: menu-item;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted-dim);
}

.menu-panel ul{ counter-reset: menu-item; }

.menu-panel a{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 6.5vw, 3.75rem);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.menu-panel a:hover{ color: var(--accent-2); transform: translateX(0.5rem) rotate(-1deg); }

.menu-panel{ padding-bottom: env(safe-area-inset-bottom); padding-top: env(safe-area-inset-top); }
.menu-panel__foot{ display:flex; flex-direction:column; gap:0.5rem; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
.menu-panel__name{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.menu-panel__ig{
  display:inline-flex; align-items:center; gap:0.4rem;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-2);
  transition: color 0.25s ease, transform 0.25s ease;
}
.menu-panel__ig svg{ transition: transform 0.25s ease; }
.menu-panel__ig:hover{ color: var(--ink); }
.menu-panel__ig:hover svg{ transform: translate(2px,-2px); }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; flex-direction:column; justify-content:flex-end;
  overflow:hidden;
}

.hero__media{ position:absolute; inset:0; z-index:0; }
.hero__video{ width:100%; height:100%; object-fit:cover; pointer-events:none; }

/* Belt-and-braces: some mobile browsers draw a native play button over a
   muted/autoplay video for a frame while it's still buffering. This is
   purely cosmetic browser chrome, not a real control (the video has no
   `controls` attribute and JS force-plays it), so it's safe to hide outright. */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-play-button{
  display:none !important;
  -webkit-appearance:none;
  opacity:0 !important;
  pointer-events:none !important;
}

.hero__scrim{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,12,20,0.30) 0%, rgba(11,12,20,0.55) 55%, rgba(11,12,20,0.95) 100%);
}

.hero__content{
  position:relative; z-index:1;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

.hero__title{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0.75rem 0 1.25rem;
  /* Fixed, not var(--ink): the hero sits over a permanently dark video
     scrim in both themes, so its text must never react to the light/dark
     toggle the way normal page copy does. */
  color: #F2F4FA;
}

.hero__title-line{
  display:block; overflow:hidden;
  font-size: clamp(3.25rem, 11vw, 8.25rem);
}
.hero__title-line--accent{
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub{
  max-width: 34ch;
  color: #99A2B8; /* fixed — see .hero__title comment */
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.hero__scroll-cue{
  position:relative; z-index:1;
  align-self:center;
  display:flex; flex-direction:column; align-items:center; gap:0.6rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono); font-size:0.65rem; letter-spacing:0.1em; text-transform:uppercase;
  color: #99A2B8; /* fixed — see .hero__title comment */
}

.hero__scroll-line{
  width:1px; height:32px; background: #5B6379; /* fixed — see .hero__title comment */
  position:relative; overflow:hidden;
}
.hero__scroll-line::after{
  content:""; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: var(--accent-2); animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ top:-100%; } 50%{ top:0; } 100%{ top:100%; }
}

/* ============================================================
   Section shell + reveal utility
   ============================================================ */
section{ padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem); position:relative; z-index:1; }

.section-head{ margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.section-head__code{
  display:inline-block;
  font-family: var(--font-mono); font-size:0.9rem; color: var(--accent-2);
  letter-spacing:0.1em; text-transform:uppercase;
  padding: 0.5rem 1.15rem; border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.section-head:hover .section-head__code{ transform: rotate(0deg); }

.section-head__code--inline{
  display: inline-block;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.section-head__code--inline:hover{ transform: rotate(0deg); }

.section-head h2{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-top: 0.75rem;
}

.process__intro{ color: var(--muted); margin-top: 0.75rem; max-width: 46ch; }

[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
}

/* ============================================================
   Collaborators — two tracks: the 2 studio/brand partners get
   dedicated glass cards, the many artists get the reel
   ============================================================ */
.trusted{ position: relative; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* Bleed the hero's dark scrim down into this section instead of a hard cut —
   the aurora glow behind is fixed to the viewport, so without this the
   moment hero's opaque video ends and trusted's transparent bg begins,
   the glow "pops in" with a visible seam. */
.trusted::before{
  content:"";
  position:absolute; top:-1px; left:0; right:0;
  height: min(280px, 60%);
  background: linear-gradient(180deg, var(--void) 0%, rgba(11,12,20,0) 100%);
  pointer-events:none; z-index:-1;
}

.trusted__label{
  font-family: var(--font-mono); font-size:0.75rem; color: var(--accent-2);
  text-transform:uppercase; letter-spacing:0.1em;
  margin-bottom: 0.75rem;
}

.trusted__title{
  font-family: var(--font-display); font-weight:700;
  letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--ink);
  max-width: 40ch;
  margin-bottom: 2.75rem;
}

.trusted__subhead{
  font-family: var(--font-mono); font-size:0.68rem; color: var(--muted-dim);
  text-transform:uppercase; letter-spacing:0.12em;
  margin-bottom: 1rem;
}

/* --- Artist reel: built for a long, ever-growing list --- */
.artist-reel{
  margin: 0 calc(-1 * clamp(1.5rem, 5vw, 3.5rem));
}

.marquee{
  overflow:hidden; padding: 0.6rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee__track{
  display:flex; align-items:flex-start; gap: 3rem; width: max-content;
  font-family: var(--font-display);
  font-weight: 800;
  animation: marquee 34s linear infinite;
}

.artist-card__name{ font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink); }

.artist-card{
  display:flex; flex-direction:column; align-items:center; gap:0.85rem;
  width: 156px; flex-shrink:0;
}

.artist-card__photo{
  width:128px; height:128px; border-radius:50%;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.artist-card__photo img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.artist-card__name{
  white-space:nowrap;
  text-align:center;
  transition: color 0.3s ease;
}
.marquee:hover .marquee__track{ animation-play-state: paused; }
.artist-card:hover .artist-card__name{ color: var(--accent-2); }
.artist-card:hover .artist-card__photo{ border-color: var(--accent-2); }

.marquee__track--reverse{ animation-name: marquee-reverse; animation-duration: 40s; }

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(var(--marquee-distance, -50%)); }
}
@keyframes marquee-reverse{
  from{ transform: translateX(var(--marquee-distance, -50%)); }
  to{ transform: translateX(0); }
}

/* ============================================================
   Stats
   ============================================================ */
.stats__grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}

.stat{
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  display:flex; flex-direction:column; gap:0.5rem;
}

.stat:hover{ transform: translateY(-5px); }

.stat__num{
  font-family: var(--font-mono); font-weight:500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(100deg, var(--ink), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat__label{
  font-size:0.85rem; color: var(--muted); text-transform:uppercase; letter-spacing:0.05em;
}

@media (max-width: 560px){
  .stats__grid{ grid-template-columns: 1fr; gap: 2rem 1.25rem; }
  .stat{ text-align:center; align-items:center; }
}

/* ============================================================
   Video card component - used in Work + Process
   ============================================================ */
.video-card{
  position: relative;
  border-radius: 20px;
  aspect-ratio: 16/10;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(6,7,12,0.35);
  transition: box-shadow 0.5s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
  will-change: transform;
}

.video-card:hover{
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 44px var(--accent-soft);
}

/* The glow border lives on the card itself (unclipped) so the hover halo
   never gets cut off by the rounded media underneath */
.video-card::before{
  content:"";
  position:absolute; inset:-1.5px; border-radius:inherit;
  padding:1.5px;
  background: conic-gradient(from var(--angle,0deg), var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:0; transition: opacity 0.4s ease;
  pointer-events:none; z-index:3;
}
.video-card:hover::before{ opacity:1; animation: spin-border 3.5s linear infinite; }

@keyframes spin-border{ to{ --angle: 360deg; } }

/* Media wrapper: this is the ONLY thing that clips, so it never eats
   the border glow or box-shadow sitting on the card above */
.video-card__media{
  position:absolute; inset:0; z-index:0;
  border-radius: inherit;
  overflow: hidden;
  background: var(--panel);
  background-image: repeating-linear-gradient(135deg, var(--panel), var(--panel) 10px, var(--panel-2) 10px, var(--panel-2) 20px);
}

.video-card__media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,12,20,0) 62%, rgba(11,12,20,0.75) 100%);
  pointer-events:none;
}

.video-card__video{
  width:100%; height:100%; object-fit: cover; display:block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
}

.video-card:hover .video-card__video{ transform: scale(1.045); filter: brightness(1.05); }

.video-card__mute{
  position:absolute; top: 0.85rem; right: 0.85rem; z-index:4;
  width: 36px; height: 36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink); cursor:pointer; border:none;
}

.video-card__mute .icon-unmuted{ display:none; }
.video-card__mute[aria-pressed="true"] .icon-muted{ display:none; }
.video-card__mute[aria-pressed="true"] .icon-unmuted{ display:block; }

.video-card__progress{
  position:absolute; left:0; right:0; bottom:0; z-index:1;
  height: 3px; background: rgba(246,244,255,0.15);
  overflow: hidden;
}

.video-card__progress-fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.1s linear;
}

.video-card__meta{
  position:absolute; left: 0.85rem; right:0.85rem; bottom: 0.85rem; z-index:4;
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  transform: translateY(6px);
  opacity: 0.9;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease;
}

.video-card:hover .video-card__meta{ transform: translateY(0); opacity:1; }

.video-card__meta h3{
  font-family: var(--font-display); font-weight:700; font-size:1.05rem;
  letter-spacing: -0.01em;
}

.video-card__meta p{
  font-family: var(--font-mono); font-size:0.68rem; color: var(--muted);
  margin-top: 0.2rem;
}

.video-card__tag{
  position:absolute; top:0.85rem; left:0.85rem; z-index:4;
  font-family: var(--font-mono); font-size:0.62rem; text-transform:uppercase; letter-spacing:0.08em;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}

.video-card__tag--final{ color: var(--accent-2); border-color: var(--accent-2-soft); }

/* Work gallery layout */
.work__featured{
  max-width: min(1150px, 94%);
  margin: 0 auto 1.5rem;
}
.work__featured .video-card--feature{ aspect-ratio: 20/9; }

.work__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px){
  .work__featured .video-card--feature{ aspect-ratio: 16/10; }
  .work__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .work__grid{ grid-template-columns: 1fr; gap: 1.5rem; }
  .work__featured{ margin-bottom: 1.5rem; }
}

/* ============================================================
   Process / Behind the cut - smaller, contained, easy to scan
   ============================================================ */
.process__rows{
  display:flex; flex-direction:column; gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.process__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.process__row .video-card--pair{ aspect-ratio: 4/3; }

@media (max-width: 700px){
  .process__row{ grid-template-columns: 1fr; }
  .process__row .video-card--pair{ aspect-ratio: 16/10; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact{
  min-height: 42vh;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  gap: 1.75rem;
}

.contact__title{
  font-family: var(--font-display); font-weight:900;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 8vw, 5.5rem); line-height:0.98;
}

.contact__cta{
  display:inline-flex; align-items:center; gap:0.9rem;
  font-family: var(--font-mono); font-size:1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  color: var(--ink);
}
.contact__cta span{
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__cta svg{ transition: transform 0.3s ease; color: var(--accent-2); }
.contact__cta:hover svg{ transform: translate(4px,-4px) rotate(6deg); }
.contact__cta:hover{ border-color: var(--accent-warm-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 40px var(--accent-warm-soft); }

/* ============================================================
   404 / Error page
   ============================================================ */
.error{
  min-height: 100svh;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  gap: 1.1rem;
}

.error__code{
  font-family: var(--font-display); font-weight:900;
  letter-spacing: -0.03em;
  font-size: clamp(6rem, 22vw, 13rem);
  line-height: 0.85;
  margin: 0.4rem 0 0.6rem;
  background: linear-gradient(100deg, var(--ink), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}

.error__title{
  font-family: var(--font-display); font-weight:800;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.error__sub{
  max-width: 46ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.error__actions{
  display:flex; flex-wrap:wrap; gap: 1rem;
}

.error__ghost-link{
  display:inline-flex; align-items:center;
  font-family: var(--font-mono); font-size:0.9rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  color: var(--muted);
}
.error__ghost-link:hover{ color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  display:flex; justify-content:space-between;
  padding: 2rem clamp(1.5rem, 5vw, 3.5rem) 2.5rem;
  font-family: var(--font-mono); font-size:0.7rem; color: var(--muted-dim);
  border-top: 1px solid var(--line);
  position: relative; z-index:1;
}

.site-footer__handle{ color: var(--muted-dim); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .hero__scroll-line::after, .video-card::before{ animation: none !important; }
  [data-reveal]{ opacity:1 !important; transform:none !important; filter:none !important; }
  .video-card__video, .video-card:hover .video-card__video{ transition:none !important; transform:none !important; }
  .video-card{ transition:none !important; }
}
