/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg: #060608;
  --bg-alt: #0b0b12;
  --fg: #f3f3f6;
  --muted: #9a99ab;
  --line: rgba(255,255,255,0.09);

  --violet: #8b5cf6;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--violet), var(--pink) 55%, var(--cyan));

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Instrument Serif', serif;

  --ease: cubic-bezier(.16,.84,.44,1);
  --container: 1360px;
}

html{ background: var(--bg); scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  cursor: none;
}

@media (max-width: 900px), (hover: none){
  body{ cursor: auto; }
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul{ list-style: none; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
}
h2{ font-size: clamp(2.2rem, 5vw, 4rem); }
h3{ font-size: clamp(1.3rem, 2.4vw, 1.7rem); text-transform: none; }

.grad{
  background: var(--grad);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  animation: gradFlow 6s ease-in-out infinite;
}
@keyframes gradFlow{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

.eyebrow, .hero__eyebrow{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

/* Generic section rhythm — used on About/Work/Services for plain content blocks
   (sections with their own named class, e.g. .services/.why, set their own padding). */
.section{
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.4s;
  white-space: nowrap;
}
.btn--primary{
  background: var(--grad);
  background-size: 200% 100%;
  color: #08080c;
}
.btn--primary:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(139,92,246,0.35);
  background-position: 100% 0;
}
.btn--ghost{
  border: 1.5px solid var(--line);
  color: var(--fg);
}
.btn--ghost:hover{
  border-color: var(--violet);
  background: rgba(139,92,246,0.08);
  transform: translateY(-3px);
}

/* ============ SCROLL REVEAL ============ */
.reveal, .reveal-line span{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in, .reveal-line.in span{
  opacity: 1;
  transform: translateY(0);
}
.reveal-line{ display: block; overflow: hidden; }
.reveal-line span{ display: inline-block; }

/* ============ LOADER ============ */
.loader{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader__mark{
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.05em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradFlow 2s ease-in-out infinite;
}
.loader__bar{ width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar span{ display: block; height: 100%; width: 0%; background: var(--grad); }
.loader.done{ opacity: 0; visibility: hidden; pointer-events: none; }

/* ============ GRAIN ============ */
.grain{
  position: fixed; inset: -200px; z-index: 1; pointer-events: none;
  opacity: 0.035; 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");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain{
  0%,100%{ transform: translate(0,0); }
  25%{ transform: translate(-2%,2%); }
  50%{ transform: translate(2%,-1%); }
  75%{ transform: translate(-1%,-2%); }
}

/* ============ CURSOR ============ */
.cursor{ position: fixed; inset: 0; pointer-events: none; z-index: 9000; display: none; }
@media (min-width: 901px) and (hover: hover){ .cursor{ display: block; } }
.cursor__dot, .cursor__ring{
  position: fixed; top: 0; left: 0; border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cursor__dot{ width: 6px; height: 6px; background: var(--fg); z-index: 2; }
.cursor__ring{
  width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor__ring.hover{
  width: 76px; height: 76px;
  background: rgba(139,92,246,0.12);
  border-color: var(--violet);
}

/* ============ NAV ============ */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  background: rgba(6,6,8,0.75);
  backdrop-filter: blur(16px);
  border-color: var(--line);
  padding: 0.75rem 0;
}
.nav__inner{
  max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo{
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.03em;
}
.nav__logo span{ color: var(--pink); }
.nav__links{ display: flex; gap: 2.4rem; }
.nav__links a{
  font-size: 0.92rem; font-weight: 500; position: relative; padding: 0.2rem 0;
}
.nav__links a::after{
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--grad); transition: width 0.35s var(--ease);
}
.nav__links a:hover::after{ width: 100%; }
.nav__cta{
  padding: 0.65rem 1.35rem; border-radius: 100px; border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; font-family: var(--font-display);
  transition: all 0.35s var(--ease);
}
.nav__cta:hover{ border-color: var(--violet); background: rgba(139,92,246,0.1); }
.nav__burger{ display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav__burger span{ height: 2px; background: var(--fg); border-radius: 2px; transition: all 0.3s var(--ease); }

.mobile-menu{
  position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px);
  background: var(--bg-alt); z-index: 600;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: 2rem;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  border-left: 1px solid var(--line);
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu a{ font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.mobile-menu__logo{
  position: absolute; top: 1.45rem; left: 2rem;
  font-size: 1.3rem !important; font-weight: 700; letter-spacing: 0.03em;
}
.mobile-menu__logo span{ color: var(--pink); }

@media (max-width: 900px){
  .nav__links, .nav__cta{ display: none; }
  .nav__burger{ display: flex; }
}

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}
.hero__bg-glow{
  position: absolute; inset: -20%;
  background:
    radial-gradient(45% 40% at 30% 25%, rgba(139,92,246,0.28), transparent 70%),
    radial-gradient(40% 35% at 75% 65%, rgba(236,72,153,0.22), transparent 70%),
    radial-gradient(30% 30% at 60% 20%, rgba(34,211,238,0.16), transparent 70%);
  filter: blur(10px);
  animation: glowShift 14s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes glowShift{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-3%, 2%) scale(1.08); }
}
.hero__canvas{
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  opacity: 0; transition: opacity 1.2s var(--ease);
  filter: blur(0.5px);
}
.hero__canvas.ready{ opacity: 1; }

.hero__content{
  position: relative; z-index: 2;
  max-width: 980px; text-align: center;
}
.hero__title{ margin-bottom: 1.6rem; }
.hero__title span{
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
}
.hero__desc{
  max-width: 640px; margin: 0 auto 2.2rem;
  color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero__cta{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll{
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  z-index: 2; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll span{
  width: 1px; height: 46px; background: linear-gradient(var(--fg), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll span::after{
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(var(--violet), var(--pink));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; }
}

/* ============ WHO WE ARE (home teaser) ============ */
.who{ padding: clamp(3rem,6vw,5rem) 0; position: relative; z-index: 2; }
.who__inner{ max-width: 1080px; }
.who__lead{ font-size: clamp(1.15rem,2.2vw,1.5rem); color: var(--fg); line-height: 1.6; margin-bottom: 1.2rem; }
.who__link{ font-family: var(--font-display); font-weight: 600; color: var(--violet); }
.who__link:hover{ color: var(--pink); }

/* ============ MARQUEE ============ */
.marquee{
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.6rem 0; background: var(--bg-alt);
  position: relative; z-index: 2;
}
.marquee__track{
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
}
.marquee__track span{ padding: 0 0.9rem; }
.marquee__track span:nth-child(4n+2){ color: var(--violet); }
.marquee__track span:nth-child(4n+4){ color: var(--pink); }
@keyframes marquee{
  from{ transform: translateX(0); } to{ transform: translateX(-50%); }
}

/* ============ SERVICES ============ */
.services{ padding: clamp(3rem,5vw,4.5rem) 0 clamp(6rem,10vw,9rem); position: relative; z-index: 2; }
.services h2{ margin-bottom: 3rem; }
.services__grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.5rem; }

.tilt-card{
  padding: 2.2rem; border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.15s linear;
  will-change: transform;
}
.tilt-card::before{
  content: ''; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
  background: var(--grad); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 0.4s var(--ease);
}
.tilt-card:hover::before{ opacity: 1; }
.tilt-card:hover{ border-color: transparent; }
.tilt-card__index{
  display: none;
}
.tilt-card h3{ margin-bottom: 0.8rem; text-transform: none; }
.tilt-card p{ color: var(--muted); font-size: 0.98rem; }

/* ============ WHY FLUXY ============ */
.why{
  padding: clamp(4rem,7vw,6rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt); position: relative; z-index: 2;
}
.why__grid{ display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1.5rem; }
.why-card{ position: relative; }
.why-card__bar{
  display: block; width: 36px; height: 3px; border-radius: 3px;
  background: var(--grad); margin-bottom: 1.3rem;
  transition: width 0.45s var(--ease);
}
.why-card:hover .why-card__bar{ width: 72px; }
.why-card p{ color: var(--muted); font-size: 0.98rem; }
.why-card::after{
  content: ''; position: absolute; top: -46px; right: -46px; width: 140px; height: 140px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(236,72,153,0.28), rgba(139,92,246,0.12) 55%, transparent 72%);
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.why-card:hover::after{ opacity: 1; transform: scale(1); }

/* Shared stagger-in entrance for static cards (same keyframes as the case grid) */
[data-animate="card"]{ opacity: 0; }
[data-animate="card"].card-in{
  opacity: 1;
  animation: cardIn 0.8s var(--ease);
  animation-fill-mode: backwards;
}
.reduced-motion [data-animate="card"]{ opacity: 1 !important; animation: none !important; }

/* ============ TESTIMONIALS ============ */
.testimonials{ padding: clamp(6rem,10vw,9rem) 0 clamp(4rem,8vw,6rem); position: relative; z-index: 2; overflow: hidden; }
.testimonials .container{ margin-bottom: 3rem; }
.testimonials__track{
  display: flex; gap: 1.5rem; width: max-content;
  animation: tmarquee 40s linear infinite;
  padding-left: clamp(1.25rem, 5vw, 4rem);
}
.testimonials:hover .testimonials__track{ animation-play-state: paused; }
@keyframes tmarquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.t-card{
  flex: 0 0 auto; width: min(80vw, 380px);
  padding: 2.2rem; border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
}
.t-card p{
  font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.55;
  margin-bottom: 1.4rem;
}
.t-card span{ color: var(--muted); font-size: 0.88rem; }

/* ============ STUDIO ============ */
.studio{ padding: clamp(6rem,10vw,9rem) 0; position: relative; z-index: 2; }
.studio__grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,5rem); align-items: center; }
.studio__media{ border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; will-change: transform; }
.studio__media img{ width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.studio__copy p{ color: var(--muted); margin-bottom: 1.2rem; max-width: 46ch; }
.studio__copy .btn{ margin-top: 0.5rem; }

@media (max-width: 860px){
  .studio__grid{ grid-template-columns: 1fr; }
  .studio__media{ order: -1; aspect-ratio: 16/10; }
}

/* ============ CONTACT ============ */
.contact{ position: relative; padding: clamp(6rem,10vw,9rem) 0 clamp(4rem,8vw,6rem); overflow: hidden; z-index: 2; }
.contact__glow{
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 20% 30%, rgba(139,92,246,0.16), transparent 70%),
              radial-gradient(45% 50% at 85% 70%, rgba(236,72,153,0.14), transparent 70%);
}
.contact__grid{ display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,6vw,5rem); align-items: start; }
.contact__lead{ color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.contact__meta{ display: flex; flex-direction: column; gap: 1rem; }
.contact__meta li{ font-size: 1rem; }
.contact__meta span{ display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.2rem; }

.form{ display: flex; flex-direction: column; gap: 1.3rem; }
.form__row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form__group{ display: flex; flex-direction: column; gap: 0.5rem; }
.form__group label{ font-size: 0.85rem; color: var(--muted); }
.form input, .form select, .form textarea{
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1rem; color: var(--fg); font: inherit; font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form select{
  color-scheme: dark; /* keeps the native dropdown panel dark instead of OS-default white */
}
.form select option{
  background: var(--bg-alt); color: var(--fg);
}
.form input:focus, .form select:focus, .form textarea:focus{
  outline: none; border-color: var(--violet); background: rgba(139,92,246,0.06);
}
.form textarea{ min-height: 130px; resize: vertical; }
.form__submit{ width: 100%; margin-top: 0.5rem; }
.form__submit:disabled{ opacity: 0.6; cursor: not-allowed; }
.form__note{ font-size: 0.9rem; color: var(--cyan); min-height: 1.2em; }
.form__note--error{ color: var(--pink); }

.hp-field{
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; left: -9999px;
}

.contact__direct{ display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact__direct a{ font-family: var(--font-display); }
.contact__note{ color: var(--muted); font-size: 0.92rem; margin-top: 1.6rem; max-width: 46ch; }

@media (max-width: 860px){
  .contact__grid{ grid-template-columns: 1fr; }
  .form__row{ grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer{ border-top: 1px solid var(--line); padding: 2.4rem 0; position: relative; z-index: 2; }
.footer__inner{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; }
.footer__logo{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer__logo span{ color: var(--pink); }
.footer__links{ display: flex; gap: 1.8rem; }
.footer__links a{ font-size: 0.9rem; color: var(--muted); transition: color 0.3s; }
.footer__links a:hover{ color: var(--fg); }
.footer__copy{ color: var(--muted); font-size: 0.85rem; }

@media (max-width: 640px){
  .footer__inner{ flex-direction: column; text-align: center; }
}

.footer__legal{ display: flex; gap: 1.4rem; }
.footer__legal a{ font-size: 0.82rem; color: var(--muted); transition: color 0.3s; }
.footer__legal a:hover{ color: var(--fg); }

/* ============ REDUCED MOTION ============ */
.reduced-motion .marquee__track,
.reduced-motion .testimonials__track{ animation: none !important; }
.reduced-motion .grad{ animation: none !important; }
.reduced-motion *{ scroll-behavior: auto !important; }

/* ============ ACCESSIBILITY: SKIP LINK & FOCUS ============ */
.skip-link{
  position: fixed; top: -60px; left: 1rem; z-index: 10000;
  background: var(--fg); color: var(--bg); padding: 0.75rem 1.25rem;
  border-radius: 8px; font-family: var(--font-display); font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus{ top: 1rem; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .tilt-card:focus-visible,
.yt-card:focus-visible, .grid-card:focus-visible{
  outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px;
}

/* ============ NAV — active link ============ */
.nav__links a.is-active, .mobile-menu a.is-active{ color: var(--fg); }
.nav__links a.is-active::after{ width: 100%; }
.mobile-menu a.is-active{ background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ PAGE HEADER (subpage hero, no 3D) ============ */
.page-header{
  position: relative; padding: 9rem 0 4.5rem; overflow: hidden; text-align: center;
}
.page-header__glow{
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 45% at 25% 20%, rgba(139,92,246,0.24), transparent 70%),
    radial-gradient(35% 40% at 78% 60%, rgba(236,72,153,0.18), transparent 70%);
  filter: blur(10px); z-index: 0;
}
.page-header__inner{ position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.page-header .eyebrow{ justify-content: center; display: block; text-align: center; }
.page-header p{ color: var(--muted); max-width: 620px; margin: 1.2rem auto 0; font-size: 1.05rem; }

/* ============ GRID CARD (Selected Work grid — home + Our Work page) ============ */
.case-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.6rem; }
.grid-card{ padding: 0; overflow: hidden; cursor: pointer; }

/* Stagger-in entrance: an animation (not a transition) so it can't fight the
   tilt effect's inline transform once it finishes. */
.case-grid .grid-card{ opacity: 0; }
.case-grid .grid-card.card-in{
  opacity: 1;
  animation: cardIn 0.8s var(--ease);
  animation-fill-mode: backwards;
}
@keyframes cardIn{
  from{ opacity: 0; transform: translateY(44px) scale(0.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.reduced-motion .case-grid .grid-card{ opacity: 1 !important; animation: none !important; }
.grid-card img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s var(--ease); }
.grid-card:hover img{ transform: scale(1.06); }
.grid-card__body{ padding: 1.4rem 1.6rem 1.8rem; }
.grid-card__tag{
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.3rem 0.7rem; border-radius: 100px; margin-bottom: 0.8rem;
  background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.35); color: #d9c9ff;
}
.grid-card__body h3{ font-size: 1.25rem; text-transform: none; margin-bottom: 0.3rem; }
.grid-card__client{ color: var(--muted); font-size: 0.9rem; }

/* ============ CASE FILTERS ============ */
.case-filters{ display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.4rem; }
.case-filter__btn{
  padding: 0.55rem 1.2rem; border-radius: 100px; border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 0.85rem; color: var(--muted);
  transition: all 0.3s var(--ease);
}
.case-filter__btn:hover{ border-color: var(--violet); color: var(--fg); }
.case-filter__btn.is-active{ background: var(--grad); color: #08080c; border-color: transparent; font-weight: 600; }

/* ============ MODAL (Case Study + YouTube lightbox) ============ */
.modal{
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal.open{ opacity: 1; visibility: visible; }
.modal__backdrop{ position: absolute; inset: 0; background: rgba(3,3,6,0.82); backdrop-filter: blur(6px); }
.modal__panel{
  position: relative; z-index: 1; width: 100%; max-width: 760px; max-height: 86vh; overflow-y: auto;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 20px; padding: 2.6rem;
  transform: translateY(24px) scale(0.98); transition: transform 0.4s var(--ease);
}
.modal.open .modal__panel{ transform: translateY(0) scale(1); }
.modal__close{
  position: absolute; top: 1.4rem; right: 1.4rem; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all 0.3s var(--ease);
}
.modal__close:hover{ border-color: var(--violet); background: rgba(139,92,246,0.1); }
.modal__panel img{ width: 100%; border-radius: 14px; margin-bottom: 1.6rem; aspect-ratio: 16/9; object-fit: cover; }
.modal__panel [data-modal-tag]{
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.3rem 0.7rem; border-radius: 100px; margin-bottom: 1rem;
  background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.35); color: #d9c9ff;
}
.modal__panel h3{ font-size: clamp(1.4rem,3vw,2rem); text-transform: none; margin-bottom: 0.4rem; }
.modal__panel [data-modal-client]{ color: var(--pink); font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 1.2rem; display: block; }
.modal__panel [data-modal-brief]{ font-size: 1.05rem; margin-bottom: 1.4rem; }
.modal__section-label{ font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.7rem; display: block; }
.modal__panel ul{ margin-bottom: 1.4rem; }
.modal__panel ul li{ padding: 0.4rem 0; color: var(--muted); position: relative; padding-left: 1.2rem; }
.modal__panel ul li::before{ content: '—'; position: absolute; left: 0; color: var(--violet); }
[data-modal-result-row]{ padding: 1rem 1.2rem; border-radius: 12px; background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.25); margin-bottom: 1.4rem; }
[data-modal-result-row] span{ color: var(--cyan); }
.modal__panel [data-modal-story]{ color: var(--muted); line-height: 1.75; }

/* YouTube lightbox variant */
.yt-modal .modal__panel{ max-width: 920px; padding: 1rem; background: #000; }
.yt-modal__frame{ position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-modal__frame iframe{ width: 100%; height: 100%; border: 0; }

/* ============ YOUTUBE CAROUSEL ============ */
.youtube{ padding: clamp(5rem,9vw,7rem) 0; position: relative; z-index: 2; transition: opacity 0.4s, max-height 0.4s; }
.youtube.yt-hidden{ display: none; }
.youtube__head{ display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.youtube__controls{ display: flex; gap: 0.6rem; }
.youtube__arrow{
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all 0.3s var(--ease);
}
.youtube__arrow:hover{ border-color: var(--violet); background: rgba(139,92,246,0.1); }
.youtube__track{
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 0.5rem; scrollbar-width: thin;
}
.youtube__track::-webkit-scrollbar{ height: 6px; }
.youtube__track::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 4px; }
.youtube__foot{ margin-top: 2rem; text-align: center; }

.yt-card{
  flex: 0 0 auto; width: min(78vw, 320px); scroll-snap-align: start; cursor: pointer;
}
.yt-card__thumb{ position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--bg-alt); margin-bottom: 0.9rem; }
.yt-card__thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.yt-card:hover .yt-card__thumb img{ transform: scale(1.06); }
.yt-card__play{
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.yt-card__play::before{ content: ''; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.yt-card__title{ font-size: 0.98rem; font-weight: 600; text-transform: none; margin-bottom: 0.3rem; }
.yt-card__meta{ color: var(--muted); font-size: 0.82rem; }

.yt-card--skeleton{ cursor: default; }
.yt-card__thumb--skeleton{ background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 70%); background-size: 200% 100%; animation: skeletonPulse 1.6s ease-in-out infinite; }
@keyframes skeletonPulse{ 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

/* ============ PACKAGES (no pricing) ============ */
.packages__grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.6rem; align-items: start; margin-top: 1rem; }
.package-card{ text-align: left; position: relative; padding: 2.4rem 2rem; overflow: visible; }
.package-card--featured{ border-color: rgba(236,72,153,0.4); background: linear-gradient(155deg, rgba(139,92,246,0.1), rgba(236,72,153,0.04)); }
.package-card__badge{
  position: absolute; top: -14px; left: 2rem; padding: 0.35rem 0.9rem; border-radius: 100px;
  background: var(--grad); font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: #08080c; font-weight: 700;
}
.package-card__name{ font-size: 1.6rem; text-transform: uppercase; margin-bottom: 0.3rem; }
.package-card__tagline{ color: var(--pink); font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 1.6rem; }
.package-card__features{ margin-bottom: 1.8rem; }
.package-card__features li{
  padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--muted);
  padding-left: 1.3rem; position: relative;
}
.package-card__features li::before{ content: '✓'; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.package-card__cta{ width: 100%; }

/* Mix & match */
.swap{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.2rem; margin: 2.4rem 0; }
.swap__item{ padding: 1.6rem; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.swap__note{ font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; text-align: center; max-width: 560px; margin: 0 auto; color: var(--fg); }

/* One-offs */
.oneoffs__grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.4rem; }
.oneoff-card h3{ font-size: 1.2rem; text-transform: none; margin-bottom: 0.4rem; }
.oneoff-card__tagline{ color: var(--cyan); font-size: 0.85rem; font-family: var(--font-display); margin-bottom: 0.7rem; display: block; }
.oneoff-card p{ color: var(--muted); font-size: 0.94rem; margin-bottom: 1.2rem; }

/* Add-ons */
.addons__list{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1rem; }
.addons__list li{
  padding: 1.1rem 1.3rem; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--line);
  font-size: 0.92rem; color: var(--muted); padding-left: 2.2rem; position: relative;
}
.addons__list li::before{ content: '+'; position: absolute; left: 1rem; color: var(--pink); font-weight: 700; font-family: var(--font-display); }

/* ============ PROCESS STEPS ============ */
.steps{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.6rem; counter-reset: step; }
.step{ position: relative; padding-top: 1rem; }
.step::before{
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-style: italic; font-size: 2.2rem; color: var(--muted); display: block; margin-bottom: 0.8rem;
}
.step h3{ font-size: 1.15rem; text-transform: none; margin-bottom: 0.5rem; }
.step p{ color: var(--muted); font-size: 0.92rem; }

/* ============ FAQ ============ */
.faq{ max-width: 800px; margin: 0 auto; }
.faq__item{ border-bottom: 1px solid var(--line); }
.faq__question{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; text-align: left; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
}
.faq__question::after{ content: '+'; font-size: 1.4rem; color: var(--violet); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq__item.open .faq__question::after{ transform: rotate(45deg); }
.faq__answer{ max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__answer p{ color: var(--muted); padding-bottom: 1.4rem; line-height: 1.7; max-width: 62ch; }

/* ============ TEAM ============ */
.team{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; }
.team-member{ text-align: left; }
.team-member img{ width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; margin-bottom: 1.1rem; filter: grayscale(15%); transition: filter 0.4s var(--ease); }
.team-member:hover img{ filter: grayscale(0%); }
.team-member h3{ font-size: 1.15rem; text-transform: none; margin-bottom: 0.2rem; }
.team-member__role{ color: var(--pink); font-family: var(--font-display); font-size: 0.85rem; margin-bottom: 0.6rem; display: block; }
.team-member p{ color: var(--muted); font-size: 0.9rem; }

/* ============ BELIEFS (About page principles) ============ */
.beliefs{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.6rem; }
.belief h3{ font-size: 1.15rem; text-transform: none; margin-bottom: 0.5rem; }
.belief p{ color: var(--muted); font-size: 0.94rem; }

/* ============ LOGO WALL ============ */
.logowall{ display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: center; justify-content: center; }
.logowall span{ font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-size: 1.05rem; }

/* ============ ARTICLE / LEGAL TYPOGRAPHY (Terms, Privacy) ============ */
.article{ max-width: 760px; margin: 0 auto; padding: clamp(3rem,6vw,5rem) 0 clamp(5rem,8vw,7rem); }
.article h2{ font-size: clamp(1.6rem,3vw,2.2rem); margin: 2.6rem 0 1rem; }
.article h2:first-child{ margin-top: 0; }
.article p{ color: var(--muted); margin-bottom: 1.1rem; line-height: 1.75; }
.article ul{ margin: 0 0 1.1rem; padding-left: 1.4rem; color: var(--muted); }
.article ul li{ list-style: disc; margin-bottom: 0.5rem; line-height: 1.6; }
.article__updated{ color: var(--muted); font-size: 0.85rem; margin-bottom: 2.4rem; display: block; }

/* ============ COOKIE CONSENT ============ */
.cookie-banner{
  position: fixed; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 5000;
  max-width: 560px; margin: 0 auto;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.6rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  transform: translateY(140%); transition: transform 0.6s var(--ease);
}
.cookie-banner.visible{ transform: translateY(0); }
.cookie-banner p{ flex: 1 1 260px; font-size: 0.88rem; color: var(--muted); margin: 0; }
.cookie-banner p a{ color: var(--violet); }
.cookie-banner p a:hover{ color: var(--pink); }
.cookie-banner__actions{ display: flex; gap: 0.7rem; flex-shrink: 0; }
.cookie-banner__actions .btn{ padding: 0.7rem 1.3rem; font-size: 0.85rem; }

@media (max-width: 640px){
  .cookie-banner{ left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 1.2rem; }
}

/* ============ 404 PAGE ============ */
.error-page{ min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 4rem; position: relative; overflow: hidden; }
.error-page__code{
  font-family: var(--font-display); font-size: clamp(5rem,18vw,11rem); font-weight: 700; line-height: 1;
  background: var(--grad); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradFlow 6s ease-in-out infinite;
}
.error-page p{ color: var(--muted); max-width: 480px; margin: 1rem auto 2rem; font-size: 1.05rem; }
.error-page__links{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px){
  .studio__grid, .contact__grid{ grid-template-columns: 1fr; }
}
