/* ==========================================================================
   Yassine Belafkih — site vitrine
   ========================================================================== */
:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --line: rgba(242, 239, 232, .12);
  --text: #f2efe8;
  --muted: #8f8c86;
  --accent: #c8ff2e;
  --accent-ink: #0b0b0c;
  --f-display: "Syne", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(15px, 1.05vw, 17px)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: .95; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.eyebrow {
  margin: 0 0 22px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,255,46,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,255,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,46,0); } }

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

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate;
  padding: 18px 30px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: color .5s var(--ease);
}
.btn span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--text); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--accent); }
.btn--ghost:hover { color: var(--accent-ink); }
.btn--small { padding: 12px 20px; font-size: 14px; }

/* Cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--accent); pointer-events: none; mix-blend-mode: difference;
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
  opacity: 0;
}
.cursor__label { font-size: 13px; font-weight: 600; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
}
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.loader__name { font: 800 clamp(40px, 9vw, 150px)/.85 var(--f-display); letter-spacing: -.05em; text-transform: uppercase; }
.loader__name span { display: block; overflow: hidden; }
.loader__count { font: 500 clamp(18px, 2vw, 28px) var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.loader__bar { height: 2px; margin-top: 28px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); }
html:not(.js) .loader { display: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80; display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter); transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(11,11,12,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font: 800 26px var(--f-display); letter-spacing: -.04em; margin-right: auto; }
.nav__logo i { color: var(--accent); font-style: normal; }
.nav__links { display: flex; gap: 30px; font-size: 14px; }
.nav__links a { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 18px; } .nav__burger i:last-child { top: 25px; }
body.menu-open .nav__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg-2); display: flex; align-items: flex-end;
  padding: 100px var(--gutter) 40px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: grid; gap: 6px; }
.menu a { font: 700 clamp(40px, 12vw, 72px)/1 var(--f-display); letter-spacing: -.04em; display: flex; gap: 14px; align-items: baseline; }
.menu small { font: 500 13px var(--f-body); color: var(--accent); letter-spacing: 0; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: 130px 0 70px; }
.hero__wall {
  position: absolute; top: -20%; right: -8%; width: 62%; height: 140%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  transform: perspective(1400px) rotateY(-18deg) rotateX(8deg) rotateZ(6deg); transform-origin: right center; opacity: .55;
}
.hero__col { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.hero__col img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 12px; }
.hero__col:nth-child(2) { margin-top: -30%; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 28%, rgba(11,11,12,.55) 62%, rgba(11,11,12,.15)), linear-gradient(0deg, var(--bg) 4%, transparent 40%);
}
.hero__content { position: relative; width: 100%; }
.hero__title { font-size: clamp(54px, 9.6vw, 176px); text-transform: none; letter-spacing: -.055em; line-height: .9; margin-bottom: clamp(30px, 4vw, 56px); }
.hero__title em { font-size: 1.08em; letter-spacing: -.03em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero__lead { max-width: 480px; margin: 0; color: #c9c6bf; font-size: clamp(16px, 1.25vw, 19px); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg); position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 40px; animation: marquee 32s linear infinite; }
.marquee span { font: 700 clamp(30px, 4.4vw, 72px)/1 var(--f-display); letter-spacing: -.04em; white-space: nowrap; }
.marquee span:nth-of-type(even) { -webkit-text-stroke: 1px var(--text); color: transparent; }
.marquee b { color: var(--accent); font-size: clamp(20px, 2.4vw, 38px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifesto */
.manifesto { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; padding-block: clamp(100px, 14vw, 220px); }
.manifesto__side img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; margin-bottom: 18px; filter: grayscale(1); }
.manifesto__text { font: 600 clamp(28px, 3.6vw, 60px)/1.12 var(--f-display); letter-spacing: -.035em; margin: 0 0 clamp(60px, 7vw, 110px); }
.manifesto__text .w { opacity: .16; transition: opacity .2s; }
html:not(.anim) .manifesto__text .w { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 20px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font: 700 clamp(40px, 5vw, 84px)/1 var(--f-display); letter-spacing: -.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Showreel */
.reel { padding: 0 var(--gutter) clamp(100px, 12vw, 200px); }
.reel__frame { position: relative; margin-inline: auto; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; cursor: pointer; will-change: transform; }
.reel__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: filter .6s; filter: brightness(.7); }
.reel__frame:hover img { filter: brightness(.85); }
.reel__label {
  position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end;
  padding: clamp(18px, 3vw, 40px); font: 700 clamp(18px, 2.4vw, 40px) var(--f-display); letter-spacing: -.03em;
}
.reel__label span:last-child { font: 500 14px var(--f-body); letter-spacing: 0; color: #d6d3cc; }
.reel__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(80px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .5s var(--ease);
}
.reel__frame:hover .reel__play { transform: scale(1.12); }

/* Section heads */
.section-head { margin-bottom: clamp(50px, 6vw, 90px); }
.section-head h2, .motion h2, .process h2 { font-size: clamp(46px, 7.2vw, 128px); letter-spacing: -.05em; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* Services */
.services { padding-bottom: clamp(100px, 12vw, 200px); position: relative; }
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 70px 1.3fr 1.2fr auto; gap: 30px; align-items: start;
  padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.svc { z-index: 0; transition: color .45s var(--ease), padding .6s var(--ease); }
.svc__num { font-size: 13px; color: var(--muted); padding-top: 10px; transition: color .45s; }
.svc__title { font-size: clamp(26px, 2.9vw, 50px); letter-spacing: -.04em; line-height: 1; transition: transform .6s var(--ease); }
.svc__desc { margin: 0; color: var(--muted); max-width: 470px; transition: color .45s; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; grid-column: 3; }
.svc__tags li { font-size: 12px; padding: 6px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .45s; }
.svc__arrow { font-size: 30px; line-height: 1; transition: transform .6s var(--ease); grid-row: 1; grid-column: 4; }
.svc__desc { grid-column: 3; grid-row: 1; }
.svc__tags { grid-row: 2; }
@media (hover: hover) {
  .svc:hover { color: var(--accent-ink); padding-inline: 24px; }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc__num, .svc:hover .svc__desc { color: rgba(11,11,12,.7); }
  .svc:hover .svc__tags li { box-shadow: inset 0 0 0 1px rgba(11,11,12,.3); }
  .svc:hover .svc__arrow { transform: rotate(45deg); }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 320px; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(.6); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .svc-preview { display: none; } }

/* Motion horizontal */
.motion { padding-bottom: clamp(60px, 8vw, 120px); }
.motion__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.motion__head { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.motion__hint { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.motion__progress { width: 140px; height: 2px; background: var(--line); display: inline-block; position: relative; }
.motion__progress i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.motion__track { display: flex; gap: clamp(16px, 2vw, 30px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.vcard { width: clamp(280px, 34vw, 560px); flex: none; cursor: pointer; }
.vcard__media { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: saturate(.85); }
.vcard:hover .vcard__media img { transform: scale(1.07); filter: saturate(1.1); }
.vcard__dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(11,11,12,.7); backdrop-filter: blur(8px); font-size: 12px; font-variant-numeric: tabular-nums; }
.vcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.vcard__meta h3 { font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.03em; }
.vcard__meta p { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.vcard--more {
  aspect-ratio: 16/9; height: auto; align-self: flex-start; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; padding: 28px; font: 700 clamp(22px, 2.2vw, 36px)/1.05 var(--f-display); letter-spacing: -.03em;
  transition: background .5s var(--ease), color .5s;
}
.vcard--more b { font-size: 40px; transition: transform .5s var(--ease); }
.vcard--more:hover { background: var(--accent); color: var(--accent-ink); }
.vcard--more:hover b { transform: rotate(45deg); }

/* Clients */
.clients { padding-block: clamp(60px, 8vw, 120px); border-block: 1px solid var(--line); overflow: hidden; }
.clients__row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clients__track { display: flex; width: max-content; gap: clamp(40px, 6vw, 100px); animation: marquee 40s linear infinite; }
.clients__track span { font: 600 clamp(22px, 2.6vw, 42px) var(--f-display); letter-spacing: -.03em; color: var(--muted); white-space: nowrap; transition: color .3s; }
.clients__track span:hover { color: var(--text); }
.clients:hover .clients__track { animation-play-state: paused; }

/* Design grid */
.design { padding-block: clamp(100px, 12vw, 200px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 10px 18px; border-radius: 99px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: all .4s var(--ease); }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.pcard { display: block; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pcard--wide { grid-column: span 2; }
.pcard.is-hidden { display: none; }
.pcard__media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 808/632; background: var(--bg-2); }
.pcard--wide .pcard__media { aspect-ratio: auto; height: 100%; max-height: none; }
.pcard--wide { display: flex; flex-direction: column; }
.pcard--wide .pcard__media { flex: 1; min-height: 0; }
.pcard__media img { width: 100%; height: 120%; object-fit: cover; transition: transform 1s var(--ease); position: absolute; inset: -10% 0 auto; }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,12,.5), transparent 40%); opacity: 0; transition: opacity .5s; }
.pcard:hover .pcard__media::after { opacity: 1; }
.pcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; }
.pcard__meta h3 { font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -.03em; }
.pcard__meta p { margin: 0; font-size: 13px; color: var(--muted); }
.design__more { display: flex; justify-content: center; margin-top: clamp(50px, 6vw, 80px); }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 120px); padding-bottom: clamp(100px, 12vw, 200px); align-items: start; }
.process__sticky { position: sticky; top: 120px; }
.process__lead { color: var(--muted); max-width: 420px; margin: 30px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 44px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font: 700 54px/1 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--muted); transition: color .5s, -webkit-text-stroke-color .5s; }
.step.is-active .step__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: clamp(24px, 2.2vw, 36px); letter-spacing: -.035em; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); max-width: 520px; }

/* Contact */
.contact { padding-block: clamp(100px, 12vw, 200px); background: var(--accent); color: var(--accent-ink); border-radius: clamp(24px, 4vw, 60px) clamp(24px, 4vw, 60px) 0 0; }
.contact .eyebrow { color: rgba(11,11,12,.6); }
.contact__title { font-size: clamp(60px, 12vw, 230px); letter-spacing: -.06em; line-height: .88; }
.contact__title em { color: var(--accent-ink); }
.contact__lead { max-width: 560px; margin: 40px 0 60px; font-size: clamp(16px, 1.3vw, 20px); color: rgba(11,11,12,.75); }
.contact__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.clink {
  display: grid; grid-template-columns: 1fr auto; padding: 28px; border-radius: 16px; background: var(--accent-ink); color: var(--text);
  transition: background .5s var(--ease), color .5s;
}
.clink span { font: 700 clamp(24px, 2.4vw, 40px)/1 var(--f-display); letter-spacing: -.04em; }
.clink small { grid-row: 2; margin-top: 10px; color: var(--muted); font-size: 13px; }
.clink b { grid-row: 1 / 3; grid-column: 2; font-size: 32px; transition: transform .5s var(--ease); }
.clink:hover { background: #1d1d20; }
.clink:hover b { transform: rotate(45deg); color: var(--accent); }

/* Footer */
.footer { background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.footer__big { font: 800 13.2vw/.8 var(--f-display); letter-spacing: -.07em; text-align: center; white-space: nowrap; padding-top: 20px; }
.footer__big i { font-style: normal; }
.credit b { font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.credit:hover b { background-size: 100% 1px; }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; font-size: 13px; border-top: 1px solid rgba(11,11,12,.2); margin-top: 30px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter); background: rgba(5,5,6,.92); backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox__box { width: min(1280px, 100%); }
.lightbox__frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__title { margin: 16px 0 0; font: 600 18px var(--f-display); letter-spacing: -.02em; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; transition: transform .4s var(--ease); }
.lightbox__close:hover { transform: rotate(90deg); }

/* Initial states only when animations run */
html.anim .hero__eyebrow, html.anim .hero__lead, html.anim .hero__ctas, html.anim .nav { opacity: 0; }
html.anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* Responsive */
@media (max-width: 1100px) {
  .svc { grid-template-columns: 50px 1fr auto; }
  .svc__desc, .svc__tags { grid-column: 2; grid-row: auto; }
  .svc__arrow { grid-column: 3; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard--wide { grid-column: span 2; }
  .pcard--wide .pcard__media { flex: none; aspect-ratio: 16/10; }
}
@media (max-width: 860px) {
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: block; }
  .hero__wall { width: 120%; right: -40%; opacity: .35; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 30%, rgba(11,11,12,.6) 70%, rgba(11,11,12,.3)); }
  .hero__scroll { display: none; }
  .manifesto { grid-template-columns: 1fr; gap: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .process { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .contact__links { grid-template-columns: 1fr; }
  .motion__pin { min-height: 0; }
  .motion__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .motion__track::-webkit-scrollbar { display: none; }
  .vcard { width: 82vw; scroll-snap-align: center; }
  .motion__progress { display: none; }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr auto; gap: 14px; }
  .svc__num { grid-column: 1; padding: 0; }
  .svc__title { grid-column: 1 / 3; }
  .svc__desc, .svc__tags { grid-column: 1 / 3; }
  .svc__arrow { grid-column: 2; grid-row: 1; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .pcard--wide { grid-column: auto; }
  .pcard--wide .pcard__media { aspect-ratio: 808/632; }
  .step { grid-template-columns: 56px 1fr; }
  .step__n { font-size: 38px; }
  .hero__ctas .btn { flex: 1; justify-content: center; }
  .reel__label span:first-child, .reel__label span:last-child { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
