@font-face { font-family: 'Benzin'; src: url('../assets/fonts/benzin-bold.woff2') format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Extrabold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

:root {
  --bg: #07051A;
  --deep: #0B0726;
  --violet: #3324B8;
  --lilac: #9C8EF0;
  --cream: #F4EFE6;
  --fire: #FF5A1F;
  --line: rgba(244, 239, 230, .14);
  --pad: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--cream); }
html, body { overflow-x: clip; }
.works, .ticker, .contact { overflow-x: clip; }   /* off-screen carousel cards / floaters must never widen the page */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font: 500 15px/1.4 'Gilroy', system-ui, sans-serif;
  background: transparent;              /* the fixed .bg layer below carries the gradient */
  overflow-x: hidden;
  cursor: none;
}
body.is-intro { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #0D0930 0%, #07051A 55%, #0A0826 100%);
}
/* soft glows pushed to the edges, drifting slowly */
.bg::before, .bg::after {
  content: ''; position: absolute; inset: -20%; will-change: transform;
}
.bg::before {
  background:
    radial-gradient(34% 48% at 0% 25%, rgba(56, 189, 248, .23), transparent 70%),
    radial-gradient(38% 46% at 2% 92%, rgba(68, 52, 212, .45), transparent 70%);
  animation: bgA 26s ease-in-out infinite alternate;
}
.bg::after {
  background:
    radial-gradient(34% 48% at 100% 70%, rgba(56, 189, 248, .2), transparent 70%),
    radial-gradient(38% 44% at 98% 6%, rgba(110, 91, 255, .36), transparent 70%);
  animation: bgB 32s ease-in-out infinite alternate;
}
@keyframes bgA { 0% { transform: translate(-4%, -3%) scale(1); } 50% { transform: translate(2%, 4%) scale(1.08); } 100% { transform: translate(-1%, 8%) scale(.96); } }
@keyframes bgB { 0% { transform: translate(4%, 3%) scale(1.05); } 50% { transform: translate(-2%, -5%) scale(.95); } 100% { transform: translate(1%, -9%) scale(1.06); } }

/* ===================== HERO ===================== */
.hero { position: relative; height: 210vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__blur, .hero__sharp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__blur { filter: blur(34px) saturate(1.5) brightness(.75); transform: scale(1.15); opacity: 0; transition: opacity 1.2s ease; }
.is-ready .hero__blur { opacity: 1; }
/* only the picture melts into the page — the captions stay crisp at the bottom */
.hero__blur, .hero__tint, .hero__window, .hero__glass {
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hero__tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 7, 38, .55), rgba(7, 5, 26, .82));
}
/* the clear window — its rect is driven from JS through clip-path */
.hero__window { position: absolute; inset: 0; clip-path: inset(50% 50% 50% 50% round 18px); will-change: clip-path; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 5, 26, .15) 0%, rgba(7, 5, 26, .1) 45%, rgba(7, 5, 26, .85) 100%),
    radial-gradient(90% 70% at 50% 50%, transparent 40%, rgba(7, 5, 26, .45));
}
/* glass rim that rides on the window edge */
.hero__glass {
  position: absolute; pointer-events: none; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  will-change: transform;
}

.title {
  position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 100%; height: 38vw; max-height: 72vh; pointer-events: none; filter: blur(2.5px);
}
.hero__meta {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  font: 600 12px/1 'Gilroy'; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .7);
  opacity: 0; transition: opacity .8s ease .4s;
}
.is-ready .hero__meta { opacity: 1; }
.hero__scroll { position: absolute; left: 50%; transform: translateX(-50%); animation: bob 2.4s ease-in-out infinite; }
/* sound toggle for the showreel */
.sound {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: rgba(244, 239, 230, .75); transition: color .3s, background .3s; pointer-events: auto;
}
.sound:hover { color: var(--cream); background: rgba(244, 239, 230, .08); }
.sound:focus { outline: none; }
.sound:focus-visible { box-shadow: 0 0 0 1px var(--lilac); }
.sound svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .on { display: none; }
.sound.is-on .on { display: block; }
.sound.is-on .off { display: none; }
.sound.is-on { color: var(--cream); }
@keyframes bob { 50% { transform: translate(-50%, -5px); opacity: .6; } }

/* ===================== HUD ===================== */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad) 40px; pointer-events: none;
  opacity: 0; transform: translateY(-14px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
/* blur that fades out downwards — no panel, no edge */
/* top blur lives on its own fixed layer (masks don't apply to backdrop-filter inside the transformed header) */
.topblur {
  position: fixed; top: 0; left: 0; right: 0; height: 130px; z-index: 39; pointer-events: none;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 5, 26, .6), rgba(7, 5, 26, 0));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .85) 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .85) 40%, transparent 100%);
  opacity: 0; transition: opacity .8s ease;
}
.is-ready:not(.is-intro) .topblur { opacity: 1; }
.is-ready:not(.is-intro) .hud { opacity: 1; transform: none; }
.hud > * { pointer-events: auto; }
.hud__logo { justify-self: start; display: block; }
.hud__logo img { display: block; width: 40px; height: 40px; opacity: .9; transition: opacity .3s; }
.hud__logo:hover img { opacity: 1; }
.hud__nav { display: flex; align-items: center; }
.hud__nav a {
  position: relative; padding: 8px 22px;
  font: 700 12px 'Gilroy'; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .5);
  transition: color .3s;
}
/* dotted divider between items */
.hud__nav a + a::before {
  content: ''; position: absolute; left: 0; top: 50%; height: 18px; margin-top: -9px; width: 0;
  border-left: 1px dashed rgba(244, 239, 230, .28);
}
.hud__nav a:hover { color: var(--cream); }
.hud__nav a.is-on { color: var(--cream); }
.hud__nav a::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; height: 0;
  border-bottom: 1px dashed var(--lilac); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.hud__nav a.is-on::after { transform: scaleX(1); }
.hud__cta {
  justify-self: end; padding: 8px 0; font: 700 12px 'Gilroy'; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244, 239, 230, .75); border-bottom: 1px dashed rgba(244, 239, 230, .35); transition: color .3s, border-color .3s;
}
.hud__cta:hover { color: var(--cream); border-color: var(--lilac); }

/* ===================== WORKS ===================== */
.works { position: relative; padding: 10vh var(--pad) 4vh; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 3vh; }
.sec-head h2 { font: 700 clamp(40px, 7vw, 120px)/.9 'Benzin'; letter-spacing: -.02em; text-transform: uppercase; }
.sec-num { font: 600 13px 'Gilroy'; letter-spacing: .12em; color: var(--lilac); }

.grid { display: grid; gap: clamp(14px, 1.6vw, 26px); }
.grid--films { grid-template-columns: repeat(3, 1fr); }
.grid--reels { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; display: block; }
.card__media {
  position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 9;
  background: var(--deep); transform: translateZ(0);
}
.grid--reels .card__media, .carousel--reels .card__media { aspect-ratio: 9 / 16; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* rest state: posterized duotone in our palette + halftone dots */
.card__poster { filter: saturate(.85) brightness(.78) contrast(1.05); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s ease; }
/* colour stays natural; a soft gradient grades it into the page */
.card__duo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 5, 26, 0) 45%, rgba(7, 5, 26, .7)); }
.card__duo2 { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(56, 189, 248, .18), rgba(110, 91, 255, .12) 45%, transparent 70%); mix-blend-mode: screen; }
.card__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(7, 5, 26, .55) 32%, transparent 36%);
  background-size: 5px 5px; mix-blend-mode: multiply; display: none;
}
/* hover: the live preview opens as a circle from the cursor */
.card__live { clip-path: circle(var(--r) at var(--mx, 50%) var(--my, 50%)); transition: --r .9s var(--ease); }
.card.is-on .card__live { --r: 150%; }
.card.is-on .card__poster { transform: scale(1.1); }
.card__frame {
  position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .08);
  transition: box-shadow .5s ease;
}
.card.is-on .card__frame { box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .3); }
.card__info {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 12px;
  font: 600 12px/1.2 'Gilroy'; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 239, 230, .55);
}
.card__info b { font-weight: 700; color: var(--cream); letter-spacing: .06em; transition: color .4s; }
.card.is-on .card__info b { color: var(--lilac); }
.card__num { color: var(--lilac); margin-right: 10px; }

/* ===== carousel: one big in the centre, halves of neighbours at the edges, endless ===== */
.works { padding-left: 0; padding-right: 0; }
.works .sec-head { padding: 0 var(--pad); }
.carousel { position: relative; isolation: isolate; z-index: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel__track { position: relative; height: var(--h); }
.carousel .card { position: absolute; left: 50%; top: 0; width: var(--cw); will-change: transform; }
.carousel .card__media img { -webkit-user-drag: none; }
.carousel--films { --cw: min(60vw, 112vh); --h: calc(var(--cw) * 9 / 16); }
.carousel--reels { --cw: min(24vw, 44vh); --h: calc(var(--cw) * 16 / 9); }
.carousel .card__info { display: none; }
.carousel__ui {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
  padding: 3.4vh var(--pad) 0;
}
.carousel__count { font: 700 13px 'Gilroy'; letter-spacing: .14em; color: rgba(244, 239, 230, .5); font-variant-numeric: tabular-nums; }
.carousel__count b { color: var(--cream); }
.carousel__name { text-align: center; overflow: hidden; }
.carousel__name strong { display: block; font: 700 clamp(26px, 3.4vw, 56px)/1 'Benzin'; text-transform: uppercase; letter-spacing: -.01em; transition: transform .6s var(--ease), opacity .4s; }
.carousel__name span { display: block; margin-top: 10px; font: 600 12px 'Gilroy'; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .5); }
.carousel__name.swap strong { transform: translateY(40%); opacity: 0; }
.carousel__arrows { justify-self: end; display: flex; gap: 8px; }
.carousel__arrows button {
  width: 46px; height: 46px; border-radius: 10px; background: #110C2E; border: 1px solid rgba(244, 239, 230, .1);
  font: 700 16px 'Gilroy'; transition: background .3s;
}
.carousel__arrows button:hover { background: var(--violet); }

/* pixel cursor for the contact rows */
.pixcur { position: fixed; left: 0; top: 0; z-index: 101; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .15s; }
.pixcur.is-on { opacity: 1; }
.pixcur img { position: absolute; image-rendering: pixelated; display: block; filter: drop-shadow(4px 7px 6px rgba(0, 0, 0, .45)); }
/* proportions measured from the approved mock-ups: arrow cell = 2.6px, heads ~1.3× the arrow's height */
.pixcur img.arrow { left: 0; top: 0; width: 31px; height: 44px; }
.pixcur img.pix-pasha { left: 14px; top: -2px; width: 59px; height: 59px; }
.pixcur img.pix-sega { left: 14px; top: -3px; width: 62px; height: 62px; }
.pixcur[data-kind="pair"] img.pix-pasha { top: -4px; }
.pixcur[data-kind="pair"] img.pix-sega { left: 37px; top: -4px; }
body.pix-on .cursor { opacity: 0 !important; transition: none; }

/* ===== small ticker: no background, edges fade through a mask ===== */
.ticker {
  overflow: hidden; white-space: nowrap; padding: 4vh 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ticker__track { display: inline-flex; align-items: center; gap: 22px; will-change: transform; }
.ticker span { font: 700 13px 'Gilroy'; letter-spacing: .26em; text-transform: uppercase; color: rgba(244, 239, 230, .55); }
.ticker i { font-style: normal; font-size: 10px; color: var(--fire); opacity: .8; }

/* ===== 3 · frames from the works floating around the headings ===== */
.sec-head { position: relative; min-height: 22vh; align-items: flex-end; }
.floaters { position: absolute; inset: -6vh 0 -4vh 0; pointer-events: none; z-index: 0; perspective: 900px; perspective-origin: 70% 40%; }
.sec-head h2 { position: relative; z-index: 1; }
.floaters img {
  position: absolute; object-fit: cover; border-radius: 8px; will-change: transform, filter;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; transition: opacity 1.2s ease;
  transform-style: preserve-3d; backface-visibility: hidden;
}
.floaters.in img { opacity: var(--o, .8); }

/* ===== 4 · ambient light from the centred work ===== */
.carousel__glow { position: absolute; inset: -12% -6%; z-index: -1; pointer-events: none; }
.carousel__glow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(90px) saturate(1.8); opacity: 0; transform: scale(.9); transition: opacity 1.1s ease;
}
.carousel__glow img.on { opacity: .5; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ===================== CONTACT ===================== */
.contact { position: relative; overflow: hidden; padding: 18vh var(--pad) var(--pad); isolation: isolate; }
.contact > *:not(.contact__big) { position: relative; z-index: 1; }
/* giant AI HERO behind the links — Anton, lilac gradient rising from the bottom */
.contact__big {
  position: absolute; left: 0; right: 0; bottom: -.06em; z-index: 0; pointer-events: none;
  display: flex; justify-content: center; white-space: nowrap;
  font: 400 30vw/0.82 'Anton', 'Benzin', sans-serif; text-transform: uppercase; letter-spacing: -.005em;
}
.contact__big span {
  background: linear-gradient(0deg, rgba(156, 142, 240, .95) 0%, rgba(110, 91, 255, .55) 35%, rgba(51, 36, 184, .18) 65%, rgba(51, 36, 184, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__links a::before { z-index: -1; opacity: .85; }
.contact__lead { font: 600 13px 'Gilroy'; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); margin-bottom: 3vh; }
.contact__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact__links a {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: 2.2vh 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.contact__links a span:first-child {
  font: 700 clamp(34px, 6.4vw, 110px)/1 'Benzin'; text-transform: uppercase; letter-spacing: -.02em;
  transition: transform .7s var(--ease), color .4s;
}
.contact__links a span:last-child { font: 600 14px 'Gilroy'; letter-spacing: .08em; color: rgba(244, 239, 230, .55); transition: color .4s; }
.contact__links a::before {
  content: ''; position: absolute; inset: 0; background: var(--violet); transform: translateY(101%);
  transition: transform .6s var(--ease); z-index: -1;
}
.contact__links a:hover::before { transform: none; }
.contact__links a:hover span:first-child { transform: translateX(1.2vw); }
.contact__links a:hover span:last-child { color: var(--cream); }
.contact__foot { display: flex; justify-content: space-between; margin-top: 14vh; font: 600 12px 'Gilroy'; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 239, 230, .4); }

/* ===================== PLAYER ===================== */
.player { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.player.is-open { visibility: visible; }
.player__bg {
  position: absolute; inset: 0; opacity: 0; transition: opacity .75s ease;
  background: radial-gradient(90% 90% at 30% 50%, #1A1260, #07051A 70%);
}
.player.is-shown .player__bg { opacity: 1; }
.player__frame {
  position: fixed; overflow: hidden; background: #000; z-index: 2; opacity: 1;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(244, 239, 230, .1);
  transition: left .8s var(--ease), top .8s var(--ease), width .8s var(--ease), height .8s var(--ease), border-radius .8s var(--ease), opacity .6s ease;
}
/* closing: same curve, played backwards (ease-in-out so it lands softly in the card) */
.player.is-closing .player__frame { transition-timing-function: cubic-bezier(.65, 0, .35, 1); }
.player.is-closing .player__ctrl, .player.is-closing .player__big { opacity: 0 !important; transition: opacity .2s; }
.player__frame.no-anim { transition: none; }
.player__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.is-swap .player__frame video, .player.is-swap .player__info { opacity: 0; }
.player__frame video, .player__info { transition: opacity .25s ease; }

.player__ctrl {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px;
  padding: 40px 18px 14px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6));
  opacity: 0; transition: opacity .35s ease;
}
.player__frame:hover .player__ctrl, .player.show-ui .player__ctrl, .player.is-paused .player__ctrl { opacity: 1; }
/* big play mark while paused */
.player__big {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 16px;
  background: #110C2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F4EFE6' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 40px no-repeat;
  border: 1px solid rgba(244, 239, 230, .2);
  opacity: 0; transform: scale(.85); pointer-events: none; transition: opacity .3s, transform .4s var(--ease), background-color .3s;
}
.player.is-paused .player__big { opacity: 1; transform: none; pointer-events: auto; }
.player__big:hover { background-color: var(--violet); }
.player.is-full:not(.show-ui) { cursor: none; }
.pc-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; flex: none; transition: background .25s; }
.pc-btn:hover { background: rgba(244, 239, 230, .14); }
.pc-btn svg { width: 22px; height: 22px; fill: var(--cream); }
.pc-btn svg .w { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; }
.pc-bar { flex: 1; height: 16px; display: flex; align-items: center; }
.pc-bar::before { content: ''; position: absolute; }
.pc-bar { position: relative; }
.pc-bar::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(244, 239, 230, .25); }
.pc-bar i { position: relative; z-index: 1; height: 3px; width: 0; border-radius: 3px; background: var(--cream); }
.pc-sound { display: flex; align-items: center; gap: 6px; }
.pc-vol { width: 0; opacity: 0; transition: width .3s var(--ease), opacity .2s; accent-color: var(--cream); }
.pc-sound:hover .pc-vol { width: 90px; opacity: 1; }

.player__info {
  position: fixed; z-index: 2; right: var(--pad); top: 50%; width: min(30vw, 440px);
  transform: translateY(-50%) translateX(60px); opacity: 0;
  transition: opacity .4s ease, transform .7s cubic-bezier(.65, 0, .35, 1);
}
.player.is-shown .player__info { opacity: 1; transform: translateY(-50%); transition: opacity .5s ease .25s, transform .8s var(--ease) .2s; }
.player.is-full .player__info { opacity: 0; pointer-events: none; transition: opacity .3s; }
.pi-num { font: 700 12px 'Gilroy'; letter-spacing: .16em; color: var(--lilac); }
.pi-title { margin: 14px 0 28px; font: 700 clamp(30px, 3.4vw, 60px)/.95 'Benzin'; text-transform: uppercase; letter-spacing: -.01em; }
.pi-meta { border-top: 1px solid var(--line); }
.pi-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 600 13px 'Gilroy'; letter-spacing: .06em; text-transform: uppercase; }
.pi-meta dt { color: rgba(244, 239, 230, .45); }
.pi-meta dd { text-align: right; }
.pi-meta a { border-bottom: 1px solid rgba(156, 142, 240, .5); }
.pi-nav { display: flex; gap: 10px; margin-top: 28px; }
.pi-nav button {
  padding: 12px 16px; border-radius: 10px; font: 700 12px 'Gilroy'; letter-spacing: .12em; text-transform: uppercase;
  background: #110C2E; border: 1px solid rgba(244, 239, 230, .1);
  transition: background .3s;
}
.pi-nav button:hover { background: var(--violet); }
.player__close {
  position: fixed; z-index: 3; top: var(--pad); right: var(--pad); width: 48px; height: 48px; border-radius: 12px;
  font: 700 16px 'Gilroy'; background: #110C2E; border: 1px solid rgba(244, 239, 230, .1);
  opacity: 0; transition: opacity .4s, background .3s;
}
.player.is-shown .player__close { opacity: 1; transition: opacity .4s ease .3s, background .3s; }
.player.is-full .player__close { opacity: 0; pointer-events: none; }
.player__close:hover { background: var(--violet); }
@media (max-width: 900px) {
  .player__info { top: auto; bottom: 24px; left: 16px; right: 16px; width: auto; transform: translateY(30px); }
  .player.is-shown .player__info { transform: none; }
}

/* ===================== CURSOR + GRAIN ===================== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--cream); mix-blend-mode: difference;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s;
  display: grid; place-items: center;
}
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--cream); mix-blend-mode: normal; }
.cursor__label { font: 700 11px 'Gilroy'; letter-spacing: .12em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.is-big .cursor__label { opacity: 1; }
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay; display: none;
}

/* ===================== MOBILE ===================== */
@media (max-width: 900px) {
  .grid--films { grid-template-columns: repeat(2, 1fr); }
  .grid--reels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--films { grid-template-columns: 1fr; }
  .title { height: 46vw; }
  .hero__meta { font-size: 10px; }
}
/* ===================== PHONE ===================== */
@media (max-width: 760px) {
  :root { --pad: 18px; }
  body { font-size: 14px; }
  /* header: logo + AI School on top, sections move to a bottom tab bar */
  .hud, .is-ready:not(.is-intro) .hud { grid-template-columns: 1fr auto; padding: calc(env(safe-area-inset-top) + 14px) var(--pad) 26px; transform: none; }
  .hud__logo img { width: 34px; height: 34px; }
  /* menu: a small blurred column on the right, under «AI School» */
  .hud__nav {
    position: fixed; right: 12px; top: calc(env(safe-area-inset-top) + 62px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 5px; border-radius: 12px;
    background: rgba(12, 9, 34, .45); border: 1px solid rgba(244, 239, 230, .1);
    backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }
  .hud__nav a { text-align: right; padding: 8px 12px; font-size: 10px; letter-spacing: .12em; border-radius: 8px; }
  .hud__nav a + a::before { display: none; }
  .hud__nav a::after { display: none; }
  .hud__nav a.is-on { background: var(--violet); }
  .hud__cta { font-size: 11px; }
  .topblur { height: 96px; }

  /* hero */
  .hero { height: 72svh; }
  .hero__stage { position: relative; height: 72svh; }
  .title { height: 44vw; }
  .hero__meta { bottom: 14px; font-size: 10px; letter-spacing: .12em; }
  .hero__scroll { display: none; }

  /* sections */
  .works { padding: 3vh 0 1vh; }
  .sec-head { min-height: 11vh; margin-bottom: 1.4vh; }
  .sec-head h2 { font-size: clamp(40px, 13vw, 64px); }
  .floaters img { border-radius: 6px; }
  .carousel--films { --cw: 84vw; }
  .carousel--reels { --cw: 62vw; }
  .carousel__ui { grid-template-columns: 1fr; padding-top: 2.4vh; }
  .carousel__count, .carousel__arrows { display: none; }
  .carousel__name strong { font-size: clamp(22px, 7vw, 32px); }
  .ticker { padding-top: 1.5vh; }
  .ticker span { font-size: 11px; }

  /* contact */
  .contact { padding: 6vh var(--pad) calc(env(safe-area-inset-bottom) + 24px); }
  .contact__links a { padding: 2vh 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact__links a span:first-child { font-size: clamp(30px, 10vw, 46px); }
  .contact__links a span:last-child { font-size: 12px; }
  .contact__foot { margin-top: 5vh; font-size: 10px; }

  /* player: video on top, info under it */
  .player__info { top: auto; bottom: calc(env(safe-area-inset-bottom) + 20px); left: var(--pad); right: var(--pad); width: auto; transform: translateY(40px); }
  .player.is-shown .player__info { transform: none; }
  .pi-title { font-size: 30px; margin: 6px 0 16px; }
  .pi-meta div { padding: 9px 0; font-size: 11px; }
  .pi-nav { margin-top: 16px; }
  .pi-nav button { flex: 1; }
  .player__close { width: 42px; height: 42px; top: calc(env(safe-area-inset-top) + 14px); }
  .player__ctrl { padding: 30px 10px 8px; gap: 8px; opacity: 1; }
  .pc-sound:hover .pc-vol { width: 0; opacity: 0; }
}

@media (hover: hover) { *, *::before, *::after { cursor: none !important; } }
@media (hover: none) {
  body, button { cursor: auto; }
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

.pi-num, .card__num, .sec-num { display: none !important; }
.carousel__count { visibility: hidden; }

/* gradient headings so the page isn't one flat colour */
.sec-head h2, .carousel__name strong, .pi-title {
  background: linear-gradient(100deg, #F4EFE6 10%, #C9BFFF 55%, #7DD3FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.player.is-full:not(.show-ui) .cursor { opacity: 0; }   /* hides with the controls while watching */
