:root {
  --bg: #0a0a0a;
  --bg-2: #151515;
  --fg: #f2f2ee;
  --muted: #8a8a85;
  --line: rgba(242, 242, 238, .13);
  --accent: #d4ff3a; /* default; index.html rotates it per page load (ACCENTS) */
  --display: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(12px, 2.5vw, 42px); /* text indent; tile grids run full width */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* hidden always wins over display rules */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked, body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.accent { color: var(--accent); }
::selection { background: var(--accent); color: #000; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- INTRO (logo preloader) ----------
   The logo is one ribbon; its 18 straight bars (rects in a rotate(45) group) unfold one after another
   along the ribbon, going from transparent dark grey to opaque white. Then the solid logo path takes
   over, and on .leave the logo shrinks away and the black curtain slides up. */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: grid; place-items: center;
  transition: transform 1s var(--ease-io);
}
.intro.done { transform: translateY(-100%); }
.intro-logo { width: clamp(80px, 9vw, 132px); height: auto; overflow: visible; transition: transform .7s var(--ease-io), opacity .5s ease; }
.il-bar { fill: #f2f2ee; opacity: 0; transform-box: fill-box; animation: il-bar .6s cubic-bezier(.65,0,.35,1) var(--d) forwards; }
.il-bar.o-l { transform-origin: 0 50%; transform: scaleX(0); }
.il-bar.o-r { transform-origin: 100% 50%; transform: scaleX(0); }
.il-bar.o-t { transform-origin: 50% 0; transform: scaleY(0); }
.il-bar.o-b { transform-origin: 50% 100%; transform: scaleY(0); }
@keyframes il-bar {
  0%   { opacity: 0; fill: #2a2a28; }
  55%  { opacity: .85; fill: #8a8a86; }
  100% { opacity: 1; fill: #f2f2ee; transform: none; }
}
.il-fill { fill: #f2f2ee; opacity: 0; animation: il-fill .3s ease 2.4s forwards; }
@keyframes il-fill { to { opacity: 1; } }
.intro.leave .intro-logo { transform: scale(.82); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .il-bar { animation: none; opacity: 0; } .il-fill { animation: none; opacity: 1; } }

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, opacity .3s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; }
.cursor-label { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.label .cursor-label { opacity: 1; }
/* Play / pause cursor over videos – the icon morphs between triangle and two bars */
.cursor-icon {
  position: absolute; width: 14px; height: 16px; background: #000; opacity: 0; transform: scale(.4);
  clip-path: polygon(0 0, 50% 25%, 50% 75%, 50% 75%, 50% 25%, 100% 50%, 100% 50%, 0 100%);
  transition: clip-path .45s var(--ease), opacity .25s, transform .45s var(--ease);
}
.cursor.media { width: 58px; height: 58px; margin: -29px 0 0 -29px; mix-blend-mode: normal; }
.cursor.media .cursor-icon { opacity: 1; transform: translateX(2px) scale(1); }
.cursor.media.is-playing .cursor-icon {
  transform: none;
  clip-path: polygon(0 0, 35% 0, 35% 100%, 65% 100%, 65% 0, 100% 0, 100% 100%, 0 100%);
}
.cursor.media .cursor-label { opacity: 0; }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor * { cursor: none !important; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter); mix-blend-mode: difference;
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translateY(-110%); }
.logo { display: block; }
.logo img { height: 53px; width: auto; transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
@media (max-width: 640px) { .logo img { height: 41px; } }
.nav nav { display: flex; margin-left: auto; gap: clamp(14px, 3vw, 36px); }
/* Language switch DE / EN */
.lang {
  position: relative; display: flex; margin-left: clamp(16px, 2.6vw, 36px);
  padding: 3px; border: 1px solid currentColor; border-radius: 999px;
}
.lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--fg); transition: transform .5s var(--ease);
}
.lang.is-en::before { transform: translateX(100%); }
.lang button {
  position: relative; z-index: 1; width: 34px; padding: 6px 0;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--fg); transition: color .4s;
}
.lang button[aria-pressed="true"] { color: var(--bg); }
.nav nav a { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; position: relative; white-space: nowrap; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.9); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(10,10,10,.55) 0%, rgba(10,10,10,.2) 60%, rgba(10,10,10,0) 100%),
    linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 60%, rgba(10,10,10,.95) 100%);
}
.hero-inner {
  position: relative; top: clamp(50px, 8vh, 100px); /* optically centred: a bit below the true middle */
  width: 100%; padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  will-change: transform, opacity;
}
.hero-title {
  font: 700 clamp(56px, 15vw, 280px)/.85 var(--display); letter-spacing: -.02em; text-transform: uppercase;
}
.hero-roles {
  margin: max(-.35vw, -7px) 0 clamp(32px, 4vw, 56px); /* negative: pulls into the empty space below the title's letters */
  font: 500 clamp(11px, 1.5vw, 24px)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; color: var(--fg);
  opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s;
}
.hero-title.in + .hero-roles { opacity: 1; transform: none; }
.hero-roles .sep { color: var(--accent); margin: 0 .5em; font-weight: 400; }
.hero .play { opacity: 0; transition: opacity 1s var(--ease) .8s, background .3s; }
.hero-title.in ~ .play { opacity: 1; }

/* split-text reveal */
.split .line { display: block; overflow: hidden; padding-bottom: .04em; }
.split .word { display: inline-block; white-space: nowrap; }
.split .char { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.in .char { transform: none; }

.play {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 26px 10px 10px; border-radius: 999px;
  background: var(--accent); color: #000;
  font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.play-icon { width: 40px; height: 40px; border-radius: 50%; background: #000; color: var(--accent); display: grid; place-items: center; font-size: 12px; padding-left: 3px; }
.play:hover { background: var(--fg); }
.hero-meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; gap: 16px;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 16px;
}
.scroll-hint { position: relative; padding-right: 18px; }
.scroll-hint::after { content: "↓"; position: absolute; right: 0; animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- MARQUEES ---------- */
.marquee, .clients-marquee { overflow: hidden; border-block: 1px solid var(--line); white-space: nowrap; }
.marquee { padding: 22px 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 36px; animation: marquee 28s linear infinite; }
.marquee-track.slow { animation-duration: 60s; }
.marquee span { font: 700 clamp(28px, 4vw, 56px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee i { font-style: normal; color: var(--accent); font-size: 24px; }
.marquee:hover .marquee-track, .clients-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(100px, 13vw, 180px) 0 0; }
/* everything inside a section is indented, except the full-width tile/media blocks */
.section > :not(.grid):not(.reels):not(.clients-marquee):not(.stats):not(.award-wall):not(.agency-wall):not(.index-preview):not(.insta-strip) {
  padding-left: var(--gutter); padding-right: var(--gutter);
}
/* Section headlines (Work, Reels, About): centred, eyebrow above, generous space below */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: clamp(56px, 7vw, 120px); }
.section-head .eyebrow { order: -1; }
.section-head h2 { font: 700 clamp(52px, 11vw, 190px)/.85 var(--display); letter-spacing: -.045em; text-transform: uppercase; }

/* ---------- WORK ---------- */
.work-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; margin-bottom: 36px; border-block: 1px solid var(--line); }
.filters, .views { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button, .views button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid transparent;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.filters button:hover, .views button:hover { color: var(--fg); border-color: var(--line); }
.filters button[aria-selected="true"], .views button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.filters sup { font-size: 9px; margin-left: 3px; opacity: .6; }
.views { border-left: 1px solid var(--line); padding-left: 12px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; grid-auto-flow: row dense; }
.card { display: flex; flex-direction: column; text-align: left; width: 100%; position: relative; overflow: hidden; }
.card > .card-media { flex: 1 1 auto; }
/* Hero projects (hero: "wide" | "tall" in projects.js): double width or double height, desktop + tablet only */
.card.hero-wide { grid-column: span 2; }
.card.hero-wide .card-media { aspect-ratio: 8 / 3; }
.card.hero-right { grid-column: 2 / span 2; } /* wide hero on the right side (desktop) */
.card.hero-left { grid-column: 1 / span 2; } /* wide hero on the left side (desktop) */
.card.hero-tall { grid-row: span 2; }
.card.hero-tall .card-media { aspect-ratio: 2 / 3; }
.card.hero-wide .card-title, .card.hero-tall .card-title { font-size: clamp(26px, 2.8vw, 48px); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.card-media img, .card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .7s var(--ease), transform 6s linear;
}
.card-media .slide { opacity: 0; }
.card-media .slide.on { opacity: 1; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.08); }
.card-media video { opacity: 0; }
.card:hover .card-media video { opacity: 1; }
/* Overlay: all typo hidden by default, animates in on hover */
.card-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(14px, 1.6vw, 24px);
  background: linear-gradient(0deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.25) 55%, rgba(10,10,10,.45) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card-top { display: flex; justify-content: space-between; gap: 12px; }
.card-num, .card-client { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #d9d9d4; }
.card-client { text-align: right; }
.card-title { display: block; font: 700 clamp(20px, 1.9vw, 32px)/1.05 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--fg); }
.card-tags { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--accent); margin-top: 8px; }
.card-overlay .anim { display: block; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.card-top.anim { display: flex; transform: translateY(-12px); }
.card:hover .card-overlay, .card:focus-visible .card-overlay { opacity: 1; }
.card:hover .card-overlay .anim, .card:focus-visible .card-overlay .anim { opacity: 1; transform: none; }
.card:hover .card-title { transition-delay: .06s; }
.card:hover .card-tags { transition-delay: .14s; }
.card:hover .card-top.anim { transition-delay: .1s; }
/* Touch devices have no hover: keep the typo visible there */
@media (hover: none) {
  .card-overlay, .card-overlay .anim { opacity: 1; transform: none; }
  .card-overlay { background: linear-gradient(0deg, rgba(10,10,10,.8) 0%, rgba(10,10,10,0) 55%); }
}
.card-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 2; }
.card:hover .card-progress { transition: transform 6s linear; transform: scaleX(1); }

/* index (list) view */
.index { list-style: none; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index button {
  width: 100%; display: grid; grid-template-columns: 60px 1fr 220px 260px; gap: 20px; align-items: center;
  padding: 22px 0; text-align: left; position: relative; overflow: hidden;
}
.index button::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.index button:hover::before { transform: none; }
.index button:hover, .index button:hover .muted { color: #000; }
.index .num { font: 500 12px/1 var(--mono); color: var(--muted); }
.index .t { font: 700 clamp(24px, 3.6vw, 56px)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; transition: transform .5s var(--ease); }
.index button:hover .t { transform: translateX(14px); }
.index .muted { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.index-preview {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: clamp(240px, 26vw, 420px); aspect-ratio: 4 / 3; overflow: hidden;
  opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--ease);
}
.index-preview.on { opacity: 1; transform: scale(1); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- WIPE / REVEAL ---------- */
/* Tiles: wipe from top to bottom combined with a soft fade-in */
.wipe { clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path 1.4s var(--ease), opacity 1.6s ease-out; }
.wipe.in { clip-path: inset(0 0 0 0); opacity: 1; }
.card.reveal { transform: none; } /* no upward slide on grid tiles, the wipe does the work */
.wipe img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.wipe.in img { transform: scale(1); }
.card-media.wipe img, .card-media.wipe video { transition: opacity .7s var(--ease), transform 1.6s var(--ease); }
.card:hover .card-media.wipe.in img, .card:hover .card-media.wipe.in video { transform: scale(1.06); }
.reel:hover .reel-media.wipe.in img { transform: scale(1.05); }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- REELS ---------- */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.reel { position: relative; text-align: left; display: block; }
.reel-main { grid-column: 1 / -1; }
.reel-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.reel-main .reel-media { aspect-ratio: 21 / 9; }
.reel-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.reel:hover .reel-media img { transform: scale(1.05); filter: brightness(.75); transition: transform 1.2s var(--ease), filter .6s; }
/* Headline centered on the image */
.reel-label {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
}
.reel-label strong {
  font: 700 clamp(24px, 2.6vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,.5); transition: letter-spacing .8s var(--ease);
}
.reel:hover .reel-label strong { letter-spacing: .04em; }
.reel-main .reel-label strong { font-size: clamp(36px, 6vw, 104px); }

/* ---------- BAND ---------- */
/* Band: sticky scroll scene. The quote is drawn on a canvas above the head,
   from coarse pixel blocks to a sharp line (see "Band: pixel quote" in main.js). */
.band { position: relative; height: 230vh; margin-top: clamp(100px, 13vw, 180px); }
.band-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% 62%; will-change: transform; }
.band-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,10,0) 18%, rgba(10,10,10,0) 78%, var(--bg) 100%); }
.band-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* source text for the canvas (and the language switch); not shown */
.band-quote { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; font: 700 40px/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.band-quote span { color: var(--accent); }
@media (max-width: 640px) { .band { height: 190vh; } }
@media (prefers-reduced-motion: reduce) { .band { height: 100vh; } }

/* ---------- ABOUT ---------- */
.about { padding-top: clamp(60px, 8vw, 120px); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.portrait { position: sticky; top: 100px; overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.portrait figcaption { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.about-text p { color: #c5c5bf; margin-bottom: 1.1em; max-width: 60ch; }
.about-text .lead { font: 700 clamp(24px, 2.6vw, 38px)/1.2 var(--display); color: var(--fg); letter-spacing: -.015em; margin-bottom: 1.1em; }
.disciplines { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.disciplines li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font: 700 clamp(18px, 1.8vw, 26px)/1.2 var(--display); text-transform: uppercase; letter-spacing: -.01em; transition: padding .5s var(--ease), color .3s; }
.disciplines li:hover { padding-left: 12px; color: var(--accent); }
.disciplines span { font: 500 11px/1 var(--mono); color: var(--accent); }

.clients-marquee { margin-top: clamp(80px, 10vw, 140px); padding: clamp(28px, 3.5vw, 48px) 0; }
.clients-marquee .marquee-track { gap: 0; align-items: center; }
/* client logos: masks tinted with background-color; width follows the logo's aspect ratio */
.clients-marquee { --u: clamp(30px, 3.2vw, 50px); --gap: clamp(26px, 3.4vw, 56px); }
/* --s height, --pl/--pr empty space inside the file (left/right), --dy vertical re-centring; all in --u (set by marquee script) */
.clients-marquee .client {
  display: inline-block; flex: none; height: calc(var(--u) * var(--s, 1));
  margin: 0 calc(var(--gap) - var(--u) * var(--pr, 0)) 0 calc(var(--gap) - var(--u) * var(--pl, 0));
  translate: 0 calc(var(--u) * var(--dy, 0));
  background-color: #6c6c68;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: background-color .4s var(--ease), transform .6s var(--ease);
}
.clients-marquee .client:hover { background-color: var(--accent); transform: scale(1.1); }
/* SVG logos are recoloured to white shapes with black cut-outs -> use them as luminance masks */
.clients-marquee .client-svg { -webkit-mask-source-type: luminance; mask-mode: luminance; }
/* clients without logo file: name as wordmark */
.clients-marquee .client-word {
  height: auto; background: none; color: #6c6c68;
  font: 700 calc(clamp(18px, 2vw, 30px) * var(--s, 1))/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  transition: color .4s var(--ease), transform .6s var(--ease);
}
.clients-marquee .client-word:hover { color: var(--accent); background: none; }
/* Stats */
.stats[hidden] { display: none; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px;
  margin-top: clamp(70px, 9vw, 130px);
}
.stat { background: var(--bg-2); padding: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.stat-num { font: 700 clamp(44px, 6vw, 104px)/.9 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-num .suf { color: var(--accent); }
.stat-label { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Section heads for the tile walls */
.tile-head { margin: clamp(56px, 7vw, 100px) 0 18px; }
.tile-head h3 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Award wall: same 3px grid as the work section */
.award-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.award {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: clamp(16px, 1.6vw, 24px); background: var(--bg-2); color: var(--fg);
}
/* logo: a mask, so it can be tinted with background-color */
.award .logo, .agency .logo {
  display: block; background-color: #6c6c68;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: background-color .5s var(--ease), transform .8s var(--ease);
}
.award .logo { position: absolute; z-index: 1; left: 20%; right: 20%; top: 18%; height: 38%; }
/* spotlight that follows the cursor (position set in JS) */
.award::before, .agency::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 5%, transparent) 35%, transparent 65%);
  transition: opacity .5s var(--ease);
}
.award .award-img { /* project image, revealed on hover */
  position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat;
  opacity: 0; transform: scale(1.12); transition: opacity .6s var(--ease), transform 1.4s var(--ease);
}
.award::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(10,10,10,.9), rgba(10,10,10,.35)); opacity: 0; transition: opacity .6s; }
.award > strong, .award > .award-detail { position: relative; z-index: 1; }
.award .award-num { z-index: 1; position: absolute; top: clamp(16px, 1.6vw, 24px); left: clamp(16px, 1.6vw, 24px); font: 500 11px/1 var(--mono); color: var(--muted); transition: color .4s; }
.award strong { font: 700 clamp(12px, 1vw, 16px)/1.2 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #9a9a95; transition: color .4s, transform .6s var(--ease); }
.award-detail { font: 500 10px/1.4 var(--mono); letter-spacing: .06em; color: var(--accent); }
button.award .award-num::after { content: "↗"; position: absolute; left: calc(100% + 8px); top: 0; color: var(--accent); }
/* hover */
.award:hover::before, .agency:hover::before { opacity: 1; }
.award:hover .logo, .agency:hover .logo { background-color: var(--accent); transform: scale(1.06); }
.award:hover strong { color: var(--fg); transform: translateY(-3px); }
button.award:hover::before { opacity: 0; }
button.award:hover .award-img { opacity: 1; transform: scale(1); }
button.award:hover::after { opacity: 1; }
button.award:hover .logo { background-color: #fff; }
button.award:hover .award-num { color: #fff; }

/* Agency tiles */
.agency-wall { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.agency { position: relative; overflow: hidden; display: block; min-height: clamp(96px, 9vw, 150px); background: var(--bg-2); }
.agency .logo { position: absolute; z-index: 1; left: 16%; right: 16%; top: 26%; bottom: 26%; }
/* agencies without logo file: name as wordmark in the logo style */
.agency .wordmark {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  font: 700 clamp(13px, 1.25vw, 19px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #6c6c68;
  transition: color .5s var(--ease), transform .8s var(--ease);
}
.agency:hover .wordmark { color: var(--accent); transform: scale(1.06); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- CONTACT ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
/* whole contact block centred (desktop + mobile) */
.contact { text-align: center; }
.contact .contact-row, .contact .socials { justify-content: center; }
.contact-title { font: 700 clamp(36px, 8.6vw, 160px)/.9 var(--display); letter-spacing: -.045em; text-transform: uppercase; margin: 28px 0 56px; }
/* "moving": still most of the time, every ~3 s a short glitch where horizontal slices jump sideways (RGB fringe) */
.mv-glitch { position: relative; display: inline-block; }
.mv-glitch::before, .mv-glitch::after {
  content: attr(data-t); position: absolute; inset: 0; pointer-events: none;
  color: var(--accent); background: var(--bg); font-kerning: none; clip-path: inset(0 0 100% 0);
}
.contact-title.in .mv-glitch::before { animation: mv-slice-a 2.8s steps(1) 1.4s infinite; }
.contact-title.in .mv-glitch::after { animation: mv-slice-b 2.8s steps(1) 1.4s infinite; }
@keyframes mv-slice-a {
  0%, 78%, 100% { clip-path: inset(0 0 100% 0); transform: none; text-shadow: none; }
  79% { clip-path: inset(10% 0 62% 0); transform: translateX(-.06em); text-shadow: .02em 0 #ff2d55; }
  81% { clip-path: inset(48% 0 30% 0); transform: translateX(.05em); text-shadow: -.02em 0 #00e5ff; }
  83% { clip-path: inset(70% 0 8% 0); transform: translateX(-.03em); text-shadow: none; }
  85% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes mv-slice-b {
  0%, 78%, 100% { clip-path: inset(100% 0 0 0); transform: none; text-shadow: none; }
  80% { clip-path: inset(30% 0 45% 0); transform: translateX(.07em); text-shadow: -.02em 0 #ff2d55; }
  82% { clip-path: inset(60% 0 20% 0); transform: translateX(-.055em); text-shadow: none; }
  84% { clip-path: inset(100% 0 0 0); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mv-glitch::before, .mv-glitch::after { display: none; } }
.contact-mail {
  display: inline-flex; gap: 14px; align-items: center;
  font: 700 clamp(26px, 4.4vw, 64px)/1.1 var(--display); letter-spacing: -.02em;
  position: relative; padding-bottom: 8px;
}
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: left; transition: transform .6s var(--ease); }
.contact-mail:hover::after { transform: scaleX(0); transform-origin: right; }
.contact-mail:hover span { transform: translate(6px, -6px); }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 32px; color: var(--muted); font: 500 13px/1.4 var(--mono); letter-spacing: .06em; }
.contact-row a:hover { color: var(--fg); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.socials a { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; color: var(--fg); transition: background .25s, color .25s, border-color .25s; }
.socials svg { width: 22px; height: 22px; display: block; }
.socials a:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line);
  font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted);
}
.footer a:hover { color: var(--fg); }

/* ---------- OVERLAYS ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.overlay[hidden] { display: none; }
.overlay:not([hidden]) { animation: curtain .8s var(--ease-io) both; }
@keyframes curtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.close {
  position: fixed; top: 18px; right: var(--gutter); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #000;
  font-size: 26px; line-height: 1; transition: transform .5s var(--ease);
}
.close:hover { transform: rotate(90deg); }
.player-wrap { width: min(92vw, calc(82vh * 16 / 9)); }
.player-wrap video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-title { margin-top: 14px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.project { display: block; overflow-y: auto; }
.project-inner { max-width: 1440px; margin: 0 auto; padding: 100px var(--gutter) 120px; }
.project-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.project-head h2 { font: 700 clamp(44px, 8vw, 140px)/.85 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.project-meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; }
.project-meta dt { color: var(--muted); text-transform: uppercase; }
.project-desc { grid-column: 1 / -1; color: #c5c5bf; max-width: 70ch; font-size: 18px; line-height: 1.65; }
.project-sub { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Films: own videos + click-to-load YouTube/Vimeo embeds */
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.films > .full, .films > video { grid-column: 1 / -1; }
.films video { width: 100%; max-height: 85vh; object-fit: contain; background: #000; }
.film video { aspect-ratio: 16 / 9; }
.vid-wrap { position: relative; }
.vid-wrap video { display: block; }
/* click area over the picture; leaves the native control bar at the bottom free */
.vid-hit { position: absolute; inset: 0 0 56px 0; z-index: 1; }
.vid-wrap.idle .vid-hit { inset: 0; }
/* touch devices have no play cursor: show a small play badge until the video starts */
@media (hover: none) {
  .vid-wrap.idle::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; pointer-events: none;
    background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 26px no-repeat;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
}
.film figcaption { padding-top: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.embed { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; text-align: left; }
.embed img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: transform 1.2s var(--ease), filter .5s; }
.embed:hover img { transform: scale(1.04); filter: brightness(.7); }
.embed-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: var(--accent); color: #000; font-size: 18px; transition: transform .5s var(--ease);
}
.embed:hover .embed-play { transform: translate(-50%, -50%) scale(1.1); }
.embed-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.embed-info strong { font: 700 15px/1.3 var(--display); text-transform: uppercase; }
.embed-info small { font: 500 10px/1.3 var(--mono); letter-spacing: .06em; color: #bdbdb6; }
.embed.loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Credits */
.credits-block { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); }
.credits-block h3 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.credits-block dl { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 8px 28px; font-size: 15px; }
.credits-block dt { font: 500 12px/1.7 var(--mono); letter-spacing: .04em; color: var(--muted); }
.credits-block dd { color: #d6d6d0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.films.gap-after { margin-bottom: var(--gap-after); } /* gapAfterFilms: N → N px between the last video and the first image */
.gallery > * { width: 100%; background: var(--bg-2); }
.gallery > :first-child, .gallery > .full { grid-column: 1 / -1; }
.gallery video { max-height: 85vh; object-fit: contain; background: #000; }
.gallery img { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.gallery img.in { opacity: 1; transform: none; }
.project-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-nav button { font: 700 clamp(18px, 2.4vw, 32px)/1.1 var(--display); text-transform: uppercase; letter-spacing: -.02em; text-align: left; }
.project-nav button:last-child { text-align: right; }
.project-nav small { display: block; font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.project-nav button:hover { color: var(--accent); }

.legal { display: block; overflow-y: auto; }
.legal-inner { max-width: 720px; margin: 0 auto; padding: 110px var(--gutter) 80px; }
.legal h2 { font: 700 56px/1 var(--display); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 24px; }
.legal p { color: #c5c5bf; margin-bottom: 1em; }
.legal .todo { border-left: 2px solid var(--accent); padding-left: 14px; }
.legal h3 { font: 700 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--fg); margin: 2.2em 0 .7em; }
.legal ul { margin: 0 0 1em 1.2em; color: #c5c5bf; }
.legal li { margin-bottom: .3em; }
.legal strong { color: var(--fg); font-weight: 500; }
.legal-date { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }
.todo-inline { background: var(--accent); color: #000; padding: 0 4px; }
.legal section { display: none; }
.legal section.show { display: block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .about-grid, .project-head { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 520px; }
  .reels { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  /* hero: "wide desktop" = only big on desktop (keeps the 2-column tablet grid gap-free) */
  .card.hero-right, .card.hero-left { grid-column: span 2; }
  .card.hero-desktop { grid-column: auto; grid-row: auto; }
  .card.hero-desktop .card-media { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .award-wall { grid-template-columns: repeat(3, 1fr); }
  .agency-wall { grid-template-columns: repeat(4, 1fr); }
  .index button { grid-template-columns: 44px 1fr 160px; }
  .index button .tags { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav { gap: 10px; }
  .nav nav a { font-size: 9px; letter-spacing: .04em; }
  .lang { margin-left: 12px; padding: 2px; }
  .lang::before { top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); }
  .lang button { width: 26px; padding: 5px 0; font-size: 9px; }
  .grid { grid-template-columns: 1fr; }
  .card.hero-wide, .card.hero-tall { grid-column: auto; grid-row: auto; }
  .card.hero-wide .card-media, .card.hero-tall .card-media { aspect-ratio: 4 / 3; }
  .card.hero-wide .card-title, .card.hero-tall .card-title { font-size: clamp(20px, 1.9vw, 32px); }
  .stats, .award-wall, .agency-wall { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: 1 / -1; }
  .award .logo { top: 15%; height: 30%; left: 22%; right: 22%; }
  .reels, .credits, .gallery, .films { grid-template-columns: 1fr; }
  .credits-block dl { grid-template-columns: 1fr; gap: 2px; }
  .credits-block dd { margin-bottom: 10px; }
  .reel-main .reel-media { aspect-ratio: 16 / 9; }
  .hero-meta span:first-child { display: none; }
  .hero-roles { letter-spacing: .04em; }
  .hero-roles .sep { margin: 0 .3em; }
  .views { border-left: 0; padding-left: 0; }
  .index button { grid-template-columns: 34px 1fr; padding: 18px 0; }
  .index button .client { display: none; }
  .index-preview { display: none; }
  .project-nav { flex-direction: column; }
  .project-nav button:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .gallery img { opacity: 1; transform: none; }
  .wipe { clip-path: none; opacity: 1; } .wipe img { transform: none; }
  .split .char { transform: none; }
  .intro { display: none; }
}

/* ---------- Hero extras ---------- */
/* animated scroll arrow */
.scroll-arrow {
  position: absolute; left: 50%; bottom: clamp(22px, 4vh, 40px); z-index: 2; transform: translateX(-50%);
  width: 18px; height: 30px; display: block; opacity: .55; transition: opacity .3s;
}
.scroll-arrow:hover { opacity: 1; }
.scroll-arrow span {
  position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: var(--fg);
  transform-origin: top; animation: arrow-line 2.2s var(--ease) infinite;
}
.scroll-arrow span::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px;
  border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg); transform: translate(-50%, -1px) rotate(45deg);
}
@keyframes arrow-line {
  0% { transform: translateY(-10px); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(6px); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Subtle digital glitch on WORILLA (class .glitch is toggled by JS every few seconds) */
.hero-title { position: relative; }
.hero-title::before, .hero-title::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.hero-title.glitch::before { opacity: .85; color: var(--fg); text-shadow: -2px 0 color-mix(in srgb, var(--accent) 75%, transparent); animation: glitch-a .42s steps(1) both; }
.hero-title.glitch::after  { opacity: .85; color: var(--fg); text-shadow: 2px 0 rgba(0, 210, 255, .55); animation: glitch-b .42s steps(1) both; }
.hero-title.glitch .line { animation: glitch-main .42s steps(1) both; }
@keyframes glitch-a {
  0%   { clip-path: inset(12% 0 70% 0); transform: translate(-6px, 0); }
  20%  { clip-path: inset(58% 0 18% 0); transform: translate(5px, 0); }
  40%  { clip-path: inset(30% 0 52% 0); transform: translate(-3px, 0); }
  60%  { clip-path: inset(80% 0 4% 0);  transform: translate(7px, 0); }
  80%  { clip-path: inset(44% 0 40% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(0 0 100% 0);  transform: none; }
}
@keyframes glitch-b {
  0%   { clip-path: inset(66% 0 10% 0); transform: translate(5px, 0); }
  20%  { clip-path: inset(6% 0 76% 0);  transform: translate(-6px, 0); }
  40%  { clip-path: inset(48% 0 34% 0); transform: translate(4px, 0); }
  60%  { clip-path: inset(22% 0 62% 0); transform: translate(-5px, 0); }
  80%  { clip-path: inset(70% 0 14% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(0 0 100% 0);  transform: none; }
}
@keyframes glitch-main {
  0%   { transform: none; }
  30%  { transform: translateX(1px) skewX(-1deg); }
  60%  { transform: translateX(-1px); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-title::before, .hero-title::after { display: none; } }

/* vertical (9:16) social spots in the project view */
.films-1 { grid-template-columns: 1fr; }
.films-3 { grid-template-columns: repeat(3, 1fr); } /* filmCols: 3 → first film full width, the rest three per row */
@media (max-width: 640px) { .films-3 { grid-template-columns: 1fr; } } /* single: true → all films full width, one per row */
.films-v { grid-template-columns: repeat(3, 1fr); }
.films-v .film video { aspect-ratio: 9 / 16; max-height: none; }
@media (max-width: 640px) { .films-v { grid-template-columns: 1fr 1fr; } }

/* ---------- Image lightbox ---------- */
.gallery img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(6, 6, 6, .97); animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); user-select: none; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .25s var(--ease), transform .45s var(--ease); }
.lb-stage img.swap { opacity: 0; transform: scale(.985); }
.lb-close { z-index: 2; }
.lb-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
/* touch devices: show the halves as subtle arrows */
@media (hover: none) {
  .lb-stage::before, .lb-stage::after { position: absolute; top: 50%; transform: translateY(-50%); font-size: 26px; color: rgba(255,255,255,.6); }
  .lb-stage::before { content: "←"; left: 14px; }
  .lb-stage::after { content: "→"; right: 14px; }
}
/* arrow cursor in the lightbox: the lime dot morphs into a small lime arrow (no circle) */
.cursor.arrow {
  width: 26px; height: 20px; margin: -10px 0 0 -13px; border-radius: 0; mix-blend-mode: normal;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), clip-path .35s var(--ease);
  animation: arrow-morph .35s var(--ease);
}
.cursor.arrow .cursor-label { opacity: 0; }
.cursor.arrow-r { clip-path: polygon(0% 40%, 54% 40%, 54% 8%, 100% 50%, 54% 92%, 54% 60%, 0% 60%); }
.cursor.arrow-l { clip-path: polygon(100% 40%, 46% 40%, 46% 8%, 0% 50%, 46% 92%, 46% 60%, 100% 60%); }
@keyframes arrow-morph {
  from { clip-path: polygon(35% 47%, 50% 35%, 50% 35%, 65% 50%, 50% 65%, 50% 65%, 35% 53%); }
}

/* ---------- INSTAGRAM strip (@_allirow_): fixed height, width follows each image ---------- */
/* avatar: looping video in a circle with an Instagram-style gradient ring that slowly turns */
.insta-head { gap: clamp(14px, 1.6vw, 22px); }
.insta-avatar {
  --av: clamp(150px, 15vw, 230px); /* explicit width = height: iOS Safari stretched aspect-ratio into an oval */
  position: relative; display: block; flex: none; width: var(--av); height: var(--av); border-radius: 50%; overflow: hidden;
  padding: clamp(9px, .9vw, 13px); isolation: isolate; margin-bottom: clamp(6px, 1vw, 16px);
}
.insta-avatar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #d62976, #fa7e1e, #feda75);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: insta-ring 8s linear infinite;
}
.insta-avatar video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform .8s var(--ease); }
.insta-avatar:hover video { transform: scale(1.05); }
@keyframes insta-ring { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .insta-avatar::before { animation: none; } }
.insta-copy { max-width: 48ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; color: var(--muted); margin-top: 4px; }
.insta-strip { display: block; position: relative; overflow: hidden; height: clamp(420px, 50.4vw, 728px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.insta-strip.dragging { cursor: grabbing; }
.insta-track { display: flex; gap: 3px; height: 100%; will-change: transform; }
.insta-item { flex: none; height: 100%; background: var(--bg-2); overflow: hidden; }
.insta-item img, .insta-item video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.insta-foot { display: flex; justify-content: center; margin-top: clamp(30px, 4vw, 56px); }
.insta-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s;
}
.insta-cta [aria-hidden] { color: var(--accent); transition: transform .4s var(--ease), color .25s; }
.insta-cta:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.insta-cta:hover [aria-hidden] { color: #000; transform: translate(3px, -3px); }

/* ---------- SLAPDUO section (SlapDuo look: blue, red, white) ---------- */
.slapduo {
  --sd-red: #e8321a; --sd-blue: #1432f5; --sd-white: #fff;
  position: relative; overflow: hidden; margin-top: clamp(100px, 13vw, 180px);
  background: var(--sd-blue); color: var(--sd-white);
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(70px, 9vw, 130px);
}
.sd-eyebrow { display: block; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sd-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 90px);
  align-items: center; margin-top: clamp(30px, 4vw, 56px);
}
.sd-logo { display: block; width: min(100%, 440px); height: auto; margin: 0 0 clamp(20px, 2.5vw, 36px) -4%; }
.sd-text p { max-width: 50ch; font-size: 16px; line-height: 1.6; color: var(--sd-white); margin: 0 0 28px; }
.sd-cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 12px; border-radius: 999px;
  background: var(--sd-red); color: var(--sd-white);
  font: 400 clamp(22px, 2.2vw, 32px)/1 "Anton", var(--display); text-transform: uppercase; letter-spacing: .02em;
  transition: background .3s, color .3s;
}
.sd-cta span { transition: transform .4s var(--ease); }
.sd-cta:hover { background: var(--sd-white); color: var(--sd-blue); }
.sd-cta:hover span { transform: translate(4px, -4px); }
.sd-reel { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.sd-reel video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.sd-reel:hover video { transform: scale(1.03); }
/* small white play triangle, no circle */
.sd-play {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 30px; transform: translate(-40%, -50%);
  background: var(--sd-white); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform .4s var(--ease);
}
.sd-reel:hover .sd-play { transform: translate(-40%, -50%) scale(1.25); }
@media (max-width: 900px) {
  .sd-grid { grid-template-columns: 1fr; }
  .sd-logo { width: min(70%, 320px); }
  .sd-reel { order: 2; }
}

/* ---------- PHONES ONLY (max 640px): fine-tuning that does not touch tablet/desktop ---------- */
.burger, .mnav { display: none; }
@media (max-width: 640px) {
  /* burger navigation */
  .nav nav, .lang { display: none; }
  .nav.menu-open { transform: none; }
  .burger { display: block; position: relative; width: 40px; height: 40px; margin-right: -8px; color: var(--fg); }
  .burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
  .burger span:first-child { top: 15px; }
  .burger span:last-child { top: 23px; }
  .burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
  .mnav {
    display: flex; position: fixed; inset: 0; z-index: 49; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  .mnav.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .mnav a {
    font: 700 clamp(44px, 14vw, 64px)/1.05 var(--display); letter-spacing: -.03em; text-transform: uppercase;
    opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .25s;
  }
  .mnav.open a { opacity: 1; transform: none; }
  .mnav.open a:nth-child(2) { transition-delay: .05s; }
  .mnav.open a:nth-child(3) { transition-delay: .1s; }
  .mnav.open a:nth-child(4) { transition-delay: .15s; }
  .mnav a:active { color: var(--accent); }
  html.menu-lock, html.menu-lock body { overflow: hidden; }

  /* hero: bigger name, smaller subline and button, whole block 20px higher */
  .hero-inner { top: calc(clamp(50px, 8vh, 100px) - 20px); }
  .hero-title { font-size: 17vw; }
  .hero-roles { font-size: 9px; margin: 12px 0 26px; }
  .hero .play { gap: 9px; padding: 5px 15px 5px 5px; font-size: 10px; }
  .hero .play-icon { width: 26px; height: 26px; font-size: 8px; padding-left: 2px; }

  /* section labels "(01) …" off; Work headline bigger, no filter / grid-index switch */
  #work .eyebrow, #reels .eyebrow, #about .eyebrow, #instagram .eyebrow, .sd-eyebrow, .contact > .eyebrow { display: none; }
  /* Work / Reels / About headlines: same size, centred, sitting higher (less space above, a bit less below) */
  #work, #reels, #about { padding-top: 64px; }
  #work .section-head, #reels .section-head, #about .section-head { text-align: center; align-items: center; margin-bottom: 36px; }
  #work .section-head h2, #reels .section-head h2, #about .section-head h2 { font-size: 22vw; width: 100%; }
  #work .work-bar { display: none; }
  .grid { margin-top: 0; }
  /* tiles: images only, no text overlay */
  .card-overlay { display: none !important; }

  /* reels: AI Reel title same size as the others */
  .reel-main .reel-label strong { font-size: clamp(24px, 2.6vw, 40px); }

  /* SlapDuo: logo centred and smaller, no arrow on the button, rounded video */
  .sd-logo { width: min(56%, 240px); margin: 0 auto clamp(20px, 5vw, 28px); }
  .sd-cta span { display: none; }
  .sd-reel { border-radius: 12px; }

  /* contact: big centred headline, everything below centred */
  .contact { text-align: center; }
  .contact-title { font-size: 15.5vw; margin-top: 0; }
  .contact-row, .socials { justify-content: center; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}
