:root {
  --bg: #07121f;
  --bg-2: #0d1f33;
  --fg: #f1f8ff;
  --muted: #9fb6d1;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --coral: #ff9f6b;
  --violet: #7aa2ff;
  --cyan: #7ee8fa;
  --yellow: #e6f6ff;
  --grad: linear-gradient(120deg, #bfe9ff, #ffffff 35%, #7ee8fa 65%, #8fb2ff);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: "Space Grotesk", "Inter", sans-serif; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 28px;
  background: rgba(7, 18, 31, .7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--fg); }
.logo img { width: 34px; height: 34px; transition: transform .4s; }
.logo:hover { text-decoration: none; }
.logo:hover img { transform: rotate(-14deg) scale(1.1); }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--fg); font-weight: 500; font-size: .95rem; opacity: .85; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav .nav-cta { background: var(--grad); background-size: 200% 200%; color: #06223d; padding: 8px 18px; border-radius: 999px; font-weight: 600; opacity: 1; animation: shift 6s ease infinite; }

main, footer { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0 8px; position: relative; }
h2 { font-size: 2.2rem; margin: 0 0 14px; letter-spacing: -0.01em; }

/* hero */
.hero { padding-top: 110px; padding-bottom: 60px; min-height: 80vh; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.eyebrow { color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin: 0; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.03; letter-spacing: -0.025em; margin: 14px 0 20px; }
.grad { background: var(--grad); background-size: 250% 250%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 6s ease infinite; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--fg); font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--grad); background-size: 200% 200%; border: 0; color: #06223d; animation: shift 6s ease infinite; box-shadow: 0 8px 28px rgba(122,162,255,.4); }
.btn.big { font-size: 1.15rem; padding: 16px 34px; }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 12s ease-in-out infinite; pointer-events: none; }
.b1 { width: 380px; height: 380px; background: var(--violet); top: -40px; right: 8%; }
.b2 { width: 300px; height: 300px; background: var(--coral); bottom: -60px; right: 28%; animation-delay: -4s; }
.b3 { width: 260px; height: 260px; background: var(--cyan); top: 10%; left: -80px; animation-delay: -8s; opacity: .35; }
.mascot { position: absolute; right: 2%; top: 50%; width: min(34vw, 330px); margin-top: -165px; z-index: 1; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 16px 0; margin: 0 -24px; background: var(--bg-2); }
.track { display: flex; gap: 32px; width: max-content; animation: scroll 28s linear infinite; font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
.track span:nth-child(even) { color: var(--coral); }
.marquee:hover .track { animation-play-state: paused; }

/* work */
.section-head p { color: var(--muted); margin: 0 0 28px; }
.video { cursor: pointer; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform .3s, box-shadow .3s;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video:hover .thumb { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(126, 232, 250, .28); }
.video:hover .thumb img { transform: scale(1.07); }
.play {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: #2f63c9; font-size: 1.2rem; padding-left: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: transform .25s;
}
.play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: pulse 2.2s ease-out infinite; }
.video:hover .play { transform: scale(1.12); }
.empty { position: absolute; bottom: 10px; left: 14px; font-size: .75rem; color: #fff; background: rgba(0,0,0,.35); padding: 2px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.video.has-video .empty { display: none; }
.meta { padding: 12px 4px 0; }
.meta h3 { margin: 0; font-size: 1.15rem; }
.meta p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.featured { margin-bottom: 32px; }
.featured .play { width: 88px; height: 88px; font-size: 1.7rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 24px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* studio */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.two-col p { color: var(--muted); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stats li { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--coral); border-radius: var(--radius); padding: 16px 20px; transition: transform .25s; }
.stats li:nth-child(2) { border-left-color: var(--violet); }
.stats li:nth-child(3) { border-left-color: var(--cyan); }
.stats li:hover { transform: translateX(6px); }
.stats strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; }
.stats span { color: var(--muted); font-size: .9rem; }

/* services */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); }
.card.c1:hover { border-color: var(--coral); box-shadow: 0 16px 40px rgba(255,159,107,.25); }
.card.c2:hover { border-color: var(--yellow); box-shadow: 0 16px 40px rgba(230,246,255,.2); }
.card.c3:hover { border-color: var(--cyan); box-shadow: 0 16px 40px rgba(126,232,250,.25); }
.icon { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.08); margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

/* contact */
.contact { text-align: center; padding: 110px 24px 50px; margin-top: 70px; border-radius: 32px; background: radial-gradient(circle at 20% 0%, rgba(122,162,255,.3), transparent 55%), radial-gradient(circle at 90% 100%, rgba(255,159,107,.22), transparent 55%), var(--bg-2); border: 1px solid var(--border); }
.contact h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.contact p { color: var(--muted); }
.social { margin-top: 22px; }

footer { padding-top: 56px; padding-bottom: 40px; color: var(--muted); text-align: center; font-size: .9rem; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(3, 9, 18, .92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.player { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(126,232,250,.3); }
.player iframe, .player video { width: 100%; height: 100%; border: 0; }
.close { position: absolute; top: 16px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: .1s; }
.grid .reveal:nth-child(3) { transition-delay: .2s; }

@keyframes shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.12); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .nav nav a:not(.nav-cta) { display: none; }
  section { padding-top: 64px; }
  .mascot { opacity: .25; right: -40px; width: 260px; }
}

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

/* winter additions */
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.aurora { position: absolute; left: -10%; right: -10%; top: -80px; height: 340px; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 5%, rgba(46,230,166,.35) 25%, rgba(126,232,250,.3) 50%, rgba(160,120,255,.3) 75%, transparent 95%);
  filter: blur(46px); transform-origin: 50% 0; animation: aurora 14s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; left: -24px; right: -24px; bottom: 0; height: 90px; z-index: 0;
  background: radial-gradient(120% 100% at 50% 100%, rgba(234,247,255,.9), rgba(234,247,255,0) 62%); opacity: .35; pointer-events: none; }
.nav .logo { color: #fff; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(4,12,24,.45)); pointer-events: none; }
.thumb { border-color: rgba(190,225,255,.22); }

.clients { padding-top: 56px; text-align: center; }
.logos { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.logos li { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.6rem); letter-spacing: -0.01em; color: rgba(241,248,255,.78); transition: color .25s, transform .25s, text-shadow .25s; }
.logos li:hover { color: #fff; transform: translateY(-3px); text-shadow: 0 0 22px rgba(126,232,250,.6); }

@keyframes aurora { 0%,100% { transform: translateX(-4%) skewX(-6deg) scaleY(1); opacity: .75; } 50% { transform: translateX(5%) skewX(7deg) scaleY(1.25); opacity: 1; } }

.partners { margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
.partners strong { color: var(--fg); font-weight: 600; }
