/* ============================================================
   suryaa vfx portfolio
   Aesthetic: pure-black minimal, neon rainbow highlights
   ============================================================ */

:root {
  --bg:        #000000;
  --bg-2:      #050507;
  --panel:     #0a0a0d;
  --panel-2:   #101015;
  --line:      #1b1b22;
  --line-2:    #26262f;
  --text:      #f5f5f7;
  --muted:     #9a9aa6;
  --faint:     #54545f;
  --neon:      #00e5ff;   /* single-color micro accents */
  --magenta:   #ff2d6b;   /* record dot */

  /* the neon rainbow used for outlines + highlights, "here and there".
     starts AND ends on the same red so the animated wave loops seamlessly. */
  --rainbow: linear-gradient(90deg,
    #ff2d55, #ff7a00, #ffd400, #2dff8a,
    #00e5ff, #5b7bff, #c061ff, #ff2d55);

  --font-display: "Inter", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "Space Mono", monospace;

  --r:    4px;
  --ease: cubic-bezier(.22,1,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

::selection { background: var(--neon); color: #000; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

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

.mono, .section-tag, .filters, .lightbox__plat {
  font-family: var(--font-mono);
}

/* rainbow text utility */
.rainbow {
  background: var(--rainbow);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- grain + ambient overlays ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 9998; pointer-events: none; opacity: .025;
  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='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-8%, 4%); }
  40% { transform: translate(4%, -10%); }
  60% { transform: translate(-6%, 6%); }
  80% { transform: translate(8%, -4%); }
}

/* neon cursor trail: a solid glowing streak drawn on a canvas, kept BEHIND
   the page content (sits above the hero video + page bg, below text/cards/buttons) */
.cursor-trail {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: 13px; padding-bottom: 13px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__rec {
  width: 7px; height: 7px; border-radius: 50%; background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: .25; } }
.nav__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; letter-spacing: -0.01em;
}
.wm-a {
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.wm-b { color: var(--text); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: .82rem; color: var(--muted); letter-spacing: .01em;
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--rainbow); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 500; padding: 9px 18px; border-radius: 6px;
  background: rgba(255,255,255,.08); color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav__cta span { transition: transform .3s var(--ease); }
.nav__cta:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.nav__cta:hover span { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 56px) 0;
  overflow: hidden;
}
/* full-bleed muted background video (looped segment), context.ai style */
.hero__bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000;
}
.hero__bg iframe, .hero__bg video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;          /* 16:9 cover */
  min-width: 177.78vh; min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none; object-fit: cover;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__bg video { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.hero__bg.ready iframe, .hero__bg.ready video { opacity: 1; }
/* dark wash, heaviest on the LEFT (behind the headline), clearing toward the
   right so the footage reads through. plus a soft bottom vignette. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.99) 0%, rgba(0,0,0,.93) 22%, rgba(0,0,0,.66) 50%, rgba(0,0,0,.3) 100%),
    linear-gradient(180deg, transparent 44%, rgba(0,0,0,.6) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 1200px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 6px;
  margin-bottom: 30px;
  opacity: 0; animation: fadeUp .7s var(--ease) .1s forwards;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 14vw, 12rem);
  line-height: 1; letter-spacing: -0.04em;
  text-transform: lowercase; margin-bottom: 20px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .2em; }
.hero__title .reveal {
  display: inline-block; transform: translateY(120%);
  animation: revealUp .9s var(--ease) .2s forwards;
}
.hero__title .accent {
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);   /* just brighter, no glow halo */
}
@keyframes revealUp { to { transform: translateY(0); } }

.hero__tagline {
  max-width: 520px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300; margin-bottom: 38px;
  opacity: 0; animation: fadeUp .7s var(--ease) .6s forwards;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s var(--ease) .72s forwards; }

.hero__note {
  max-width: 460px; margin-top: 30px;
  font-size: .82rem; font-weight: 300; line-height: 1.6;
  color: var(--muted); letter-spacing: .01em;
  opacity: 0; animation: fadeUp .7s var(--ease) .9s forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 26px; border-radius: 6px; font-weight: 500; font-size: .92rem;
  transition: all .3s var(--ease); border: 1px solid transparent;
}
.btn--primary { background: #fff; color: #000; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(255,255,255,.14); }
.btn__play { width: 0; height: 0; border-left: 10px solid #000; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn--ghost {
  position: relative; color: var(--text);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
}
/* rainbow as a true OUTLINE on hover: a masked ring with a transparent interior */
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: var(--rainbow); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: transparent; }
.btn--ghost:hover::before { opacity: 1; }

.hero__stats {
  display: flex; gap: clamp(24px, 5vw, 60px); margin-top: 64px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .7s var(--ease) .85s forwards;
}
.stat__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-top: 8px; }

/* marquee */
.marquee {
  position: relative; z-index: 2; margin-top: clamp(40px, 8vh, 90px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; gap: 40px; animation: scroll 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 400; font-size: 1.25rem;
  text-transform: lowercase; letter-spacing: -0.01em; color: var(--faint);
  display: inline-flex; align-items: center; gap: 40px;
}
.marquee__track span::after {
  content: "✦"; font-size: .85rem;
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- work ---------- */
.work { position: relative; z-index: 2; isolation: isolate; padding: clamp(70px, 12vh, 130px) clamp(20px, 5vw, 56px); max-width: 1500px; margin: 0 auto; }
.work__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-bottom: 46px;
}
.section-tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.work__heading h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: .95; font-weight: 500; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font-family: var(--font-mono); font-size: .76rem;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 6px; cursor: pointer;
  transition: all .25s var(--ease); letter-spacing: .01em;
}
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button.active {
  color: var(--text); border-color: transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--rainbow) border-box;
}
.filters button .count { opacity: .5; margin-left: 5px; }
.filters button.active .count { opacity: .8; }

/* category section */
.cat { margin-bottom: clamp(56px, 9vh, 100px); scroll-margin-top: 90px; }
.cat__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.cat__index { font-family: var(--font-mono); color: var(--muted); font-size: .8rem; }
.cat__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; }
.cat__blurb { color: var(--muted); font-size: .9rem; font-weight: 300; max-width: 460px; }
.cat__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); min-width: 40px; align-self: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* card */
.card {
  position: relative; cursor: pointer; border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  opacity: 0; transform: translateY(26px);
  transition: transform .5s var(--ease), opacity .5s var(--ease), box-shadow .4s;
}
.card.in { opacity: 1; transform: translateY(0); }

/* neon rainbow outline on hover (masked gradient border) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: var(--rainbow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 26px -6px rgba(0,229,255,.4); }

.card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--panel-2); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .4s; }
.card:hover .card__thumb img { transform: scale(1.06); filter: saturate(1.1) contrast(1.03); }

/* gradient placeholder for instagram / missing thumbs */
.card__thumb--ph {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(192,97,255,.22), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(0,229,255,.18), transparent 60%),
    var(--panel-2);
}
.card__thumb--ph .ph-glyph { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; color: rgba(255,255,255,.82); letter-spacing: .02em; }

/* play button */
.card__play {
  position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center;
}
.card__play i {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
  transition: all .35s var(--ease); transform: scale(.85); opacity: .85;
}
.card__play i::before { content: ""; width: 0; height: 0; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; transition: border-left-color .35s; }
.card:hover .card__play i { background: rgba(255,255,255,.95); border-color: #fff; transform: scale(1); opacity: 1; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.card:hover .card__play i::before { border-left-color: #000; }

/* locked cards (e.g. school projects): just a lock badge, thumbnail left as-is */
.card__lock { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; }
.card__lock::before {
  content: ""; position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: border-color .3s var(--ease);
}
.card__lock svg { position: relative; width: 24px; height: 24px; color: rgba(255,255,255,.9); }
.card--locked:hover .card__lock::before { border-color: rgba(255,255,255,.55); }

.card__body { padding: 15px 18px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__title { font-size: .94rem; font-weight: 500; line-height: 1.35; }
.card__arrow { color: var(--faint); transition: transform .3s var(--ease), color .3s; flex-shrink: 0; }
.card:hover .card__arrow { color: var(--neon); transform: translate(3px,-3px); }

/* ---------- featured video ---------- */
.featured, #sections { position: relative; z-index: 1; }   /* keep above particles */
.featured {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(22px, 3vw, 44px);
  align-items: center; margin-bottom: clamp(54px, 9vh, 96px);
}
.featured__media {
  position: relative; cursor: pointer; border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--line-2); background: var(--panel);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.featured__media .card__thumb { aspect-ratio: 16/9; }
.featured__media img,
.featured__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .4s; }
.featured__media video { pointer-events: none; }   /* clicks fall through to open the lightbox */
.featured__media:hover img,
.featured__media:hover video { transform: scale(1.04); filter: saturate(1.08); }
/* preview plays on its own; the expand/play icon only appears on hover */
.featured__media .card__play i { opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.featured__media:hover .card__play i { opacity: 1; background: rgba(255,255,255,.95); border-color: #fff; transform: scale(1); box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.featured__media:hover .card__play i::before { border-left-color: #000; }
.featured__info .section-tag { margin-bottom: 14px; }
.featured__title { font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.featured__desc { color: var(--muted); font-weight: 300; font-size: .98rem; line-height: 1.6; max-width: 440px; margin-bottom: 24px; }
.featured__play {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  color: #000; background: #fff; border: 0; border-radius: 6px; padding: 12px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.featured__play:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,255,255,.14); }

/* ---------- minimal floating rainbow particles (projects bg) ---------- */
.work__particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; mix-blend-mode: screen;
  opacity: 0; will-change: transform, opacity;
  animation-name: floatP; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
@keyframes floatP {
  0%   { transform: translate(0, 10px) scale(.85); opacity: 0; }
  15%  { opacity: var(--op); }
  50%  { transform: translate(16px, -28px) scale(1); }
  85%  { opacity: var(--op); }
  100% { transform: translate(-8px, -60px) scale(.85); opacity: 0; }
}

/* ---------- contact ---------- */
.contact { position: relative; z-index: 2; padding: clamp(80px, 14vh, 160px) clamp(20px,5vw,56px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); overflow: hidden; }
.contact__inner { max-width: 1100px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.contact__title { font-size: clamp(2.4rem, 8vw, 6rem); line-height: .95; margin: 12px 0 24px; font-weight: 500; letter-spacing: -0.03em; }
.contact__title span {
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.contact__sub { color: var(--muted); font-weight: 300; max-width: 480px; margin: 0 auto 42px; font-size: 1rem; }
.contact__email {
  display: inline-block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 4vw, 2.2rem); letter-spacing: -0.02em;
  position: relative; padding-bottom: 6px;
  background: var(--rainbow) no-repeat left bottom / 0 2px;
  transition: background-size .4s var(--ease);
}
.contact__email:hover { background-size: 100% 2px; }
.contact__socials { display: flex; gap: 14px; justify-content: center; margin-top: 42px; }
.contact__socials a {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em;
  padding: 11px 22px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted);
  transition: all .3s var(--ease);
}
.contact__socials a:hover {
  color: var(--text); transform: translateY(-3px); border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--rainbow) border-box;
}

.footer {
  margin: clamp(70px,12vh,120px) auto 0; padding: 26px clamp(20px,5vw,56px);
  border-top: 1px solid var(--line); text-align: center;
  font-size: .78rem; color: var(--faint); letter-spacing: .01em;
}
.footer #footerBrand { color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(8px); animation: fade .3s ease; }
.lightbox__panel {
  position: relative; z-index: 2; width: min(1000px, 100%);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px;
  overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.7);
  animation: pop .45s var(--ease);
}
@keyframes pop { from { transform: scale(.92) translateY(14px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 6px; cursor: pointer;
  background: rgba(0,0,0,.7); color: #fff; border: 1px solid var(--line-2); font-size: 1rem;
  transition: all .25s var(--ease);
}
.lightbox__close:hover {
  color: #000; border-color: transparent; transform: rotate(90deg);
  background: var(--rainbow);
}
.lightbox__meta { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lightbox__plat { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 6px; }
.lightbox__title { font-weight: 500; font-size: .92rem; }
.lightbox__frame { position: relative; aspect-ratio: 16/9; background: #000; }
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__frame--ig { aspect-ratio: auto; height: min(78vh, 720px); background: #000; }
.lightbox__frame--ig iframe { position: relative; }

/* ---------- locked video popup ---------- */
.lockbox { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lockbox.open { display: flex; }
.lockbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .3s ease; }
.lockbox__panel {
  position: relative; z-index: 2; width: min(420px, 100%); text-align: center;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 38px 34px 32px; box-shadow: 0 40px 100px rgba(0,0,0,.7);
  animation: pop .4s var(--ease);
}
.lockbox__icon {
  display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--muted);
  margin-bottom: 20px;
}
.lockbox__icon svg { width: 26px; height: 26px; }
.lockbox__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.lockbox__text { color: var(--muted); font-weight: 300; font-size: .92rem; line-height: 1.6; margin-bottom: 26px; }
.lockbox__btn {
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  color: #000; background: #fff; border: 0; border-radius: 6px; padding: 12px 30px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lockbox__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,255,255,.16); }

/* ---------- shared animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* animated rgb wave for every rainbow accent.
   background-size is 200%, so shifting position by exactly 200% moves the
   image one full repeat, and since the gradient ends on the same red it
   starts on, the loop is perfectly seamless (no jump back to red). */
@keyframes rgbwave { to { background-position: 200% 50%; } }

.rainbow, .wm-a, .hero__title .accent, .contact__title span,
.card::before, .btn--ghost::before, .nav__links a::after, .lightbox__close:hover,
.contact__socials a:hover {
  background-size: 200% 100%;
  animation: rgbwave 6s linear infinite;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .featured { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition-duration: .01ms !important; }
  .hero__title .reveal { transform: none; }
}
