:root {
	--bg: #14061f;
	--bg-2: #1d0a2c;
	--bg-3: #28103c;
	--purple: #5b1a7a;
	--magenta: #b02a96;
	--magenta-2: #d145b6;
	--lilac: #cdb6dc;
	--text: #f5eefa;
	--muted: #b9a7c7;
	--line: rgba(255, 255, 255, .1);
	--radius: 18px;
	--max: 1240px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { width: 22px; height: 22px; flex: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--magenta-2); margin-bottom: 18px;
}
.accent {
	background: linear-gradient(100deg, #e07ad0, var(--magenta-2) 40%, #9b6bff);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
	background: linear-gradient(120deg, var(--magenta), #7d2fb3);
	color: #fff; font: 600 1rem/1 "Outfit", sans-serif; text-decoration: none;
	box-shadow: 0 10px 30px -10px rgba(176, 42, 150, .7);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(209, 69, 182, .9); }
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	transition: background .3s, box-shadow .3s, padding .3s;
	padding: 18px 0;
}
.site-header.is-scrolled { background: rgba(20, 6, 31, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--muted); transition: color .2s; }
.main-nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media {
	position: absolute; inset: -4%; z-index: -2;
	background-size: cover; background-position: center;
	animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero-shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(20, 6, 31, .45), transparent 60%),
		linear-gradient(90deg, rgba(20, 6, 31, .85) 0%, rgba(30, 8, 46, .45) 42%, rgba(60, 14, 82, .1) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-content { padding-top: 120px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6.4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 24px; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #e3d6ec; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Ticker */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; gap: 28px; animation: tick 50s linear infinite; }
.ticker span { font-size: 1.15rem; font-weight: 600; white-space: nowrap; color: var(--lilac); }
.ticker i { font-style: normal; color: var(--magenta-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-dark { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 620px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
	position: relative; padding: 30px 26px 26px; border-radius: var(--radius);
	background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
	border: 1px solid var(--line); overflow: hidden;
	transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.service-card::after {
	content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(209, 69, 182, .35), transparent 70%); opacity: 0; transition: opacity .4s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(209, 69, 182, .45); }
.service-card:hover::after { opacity: 1; }
.service-icon {
	width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
	background: linear-gradient(140deg, rgba(176, 42, 150, .35), rgba(91, 26, 122, .35)); color: #f3c6ea;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.service-icon .icon { width: 24px; height: 24px; }
.service-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Films */
.films { padding-top: 0; }
.films-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.films-head h2 { margin-bottom: 0; }
.films-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.film-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: end; }
.film-featured .film-meta h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.film-player {
	all: unset; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
	background: var(--bg-3); cursor: pointer; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.film-player:focus-visible { outline: 3px solid var(--magenta-2); outline-offset: 3px; }
.film-player img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.95) brightness(.85); }
.film-player:hover img { transform: scale(1.04); filter: none; }
.film-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-player.is-big iframe { width: 1920px; height: 1080px; inset: 0 auto auto 0; transform: scale(var(--yt-scale, .5)); transform-origin: top left; }
.film-player.is-simple iframe { pointer-events: none; }
.has-film-sound { position: relative; }
.film-sound { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 6, 31, .72); color: #fff; cursor: pointer; transition: opacity .3s; }
.film-sound.is-hidden { opacity: 0; pointer-events: none; }
.film-sound:focus-visible { outline: 3px solid var(--magenta-2); outline-offset: 2px; }
.film-sound .film-sound-off, .film-sound.is-muted .film-sound-on { display: none; }
.film-sound.is-muted .film-sound-off { display: inline; }
.film-play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
	display: grid; place-items: center; color: #fff; background: rgba(176, 42, 150, .85); backdrop-filter: blur(4px);
	box-shadow: 0 0 0 8px rgba(209, 69, 182, .22); transition: transform .3s var(--ease), box-shadow .3s;
}
.film-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.film-player:hover .film-play { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(209, 69, 182, .18); }
.film-featured .film-play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.film-featured .film-play .icon { width: 34px; height: 34px; }
.film-meta { padding-top: 14px; }
.film-meta span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-2); font-weight: 600; }
.film-meta h3 { margin: 4px 0 0; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
	padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted);
	font: 500 .95rem "Outfit", sans-serif; cursor: pointer; transition: all .2s;
}
.filter:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.filter.is-active { background: #fff; color: var(--bg); border-color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-item { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.work-item.is-hidden { display: none; }
.work-open { all: unset; display: block; position: relative; width: 100%; height: 100%; cursor: zoom-in; }
.work-open:focus-visible { outline: 3px solid var(--magenta-2); outline-offset: -3px; }
.work-open img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .8s var(--ease), filter .5s; }
.work-open:hover img { transform: scale(1.06); }
.work-open figcaption {
	position: absolute; inset: auto 0 0; padding: 40px 20px 18px; display: flex; flex-direction: column; gap: 2px;
	background: linear-gradient(0deg, rgba(14, 4, 22, .92), transparent);
	transform: translateY(12px); opacity: 0; transition: all .4s var(--ease);
}
.work-open:hover figcaption, .work-open:focus-visible figcaption { transform: none; opacity: 1; }
.work-open figcaption span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-2); font-weight: 600; }
.work-open figcaption strong { font-size: 1.1rem; font-weight: 600; }

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 200; background: rgba(10, 3, 16, .95); backdrop-filter: blur(8px);
	display: flex; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 14px; color: var(--muted); }
.lightbox button {
	position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
	background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .15); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Partner */
.partner { background: radial-gradient(ellipse at 80% 20%, rgba(91, 26, 122, .45), transparent 60%); }
.partner-inner, .about-inner, .contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.partner-media img, .about-media img { border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.partner-media img { aspect-ratio: 1 / 1; object-fit: cover; }
.partner-copy p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
	content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
	background: rgba(209, 69, 182, .2); color: var(--magenta-2); font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}

/* FramesU */
.framesu { background: radial-gradient(ellipse at 85% 50%, rgba(155, 107, 255, .2), transparent 55%), var(--bg-2); overflow: hidden; }
.framesu-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.framesu-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.framesu-brand img { width: 44px; height: auto; }
.framesu-brand span { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.framesu-brand em { font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-2); border: 1px solid rgba(209, 69, 182, .45); border-radius: 999px; padding: 4px 10px; }
.framesu-lead { color: var(--muted); font-size: 1.1rem; max-width: 580px; }
.framesu-steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.framesu-steps li { counter-increment: s; position: relative; padding-left: 56px; min-height: 40px; }
.framesu-steps li::before {
	content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
	font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--magenta), #7d2fb3);
}
.framesu-steps strong { display: block; font-weight: 600; }
.framesu-steps span { color: var(--muted); font-size: .95rem; }
.framesu-tags { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.framesu-tags li { font-size: .85rem; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--lilac); }
.framesu-visual { display: flex; justify-content: center; }
/* FramesU phone: an iPhone running the app. main.js steps data-stage through selfie → scan → found → saved. */
.phone {
	--tilt: -4deg;
	width: min(300px, 80vw); aspect-ratio: 9 / 19.2; padding: 11px; border-radius: 50px; position: relative;
	background: linear-gradient(145deg, #3a2a48, #120a19 45%, #2a1d35);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 60px 110px -40px rgba(0, 0, 0, .95), 0 0 140px -30px rgba(176, 42, 150, .6);
	transform: rotate(var(--tilt));
	animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat { 50% { transform: rotate(var(--tilt)) translateY(-12px); } }
.phone-key { position: absolute; width: 3px; border-radius: 2px; background: #2c2036; }
.phone-key.vol-up { left: -3px; top: 21%; height: 9%; }
.phone-key.vol-down { left: -3px; top: 32%; height: 9%; }
.phone-key.power { right: -3px; top: 26%; height: 14%; }
.phone-screen {
	position: relative; height: 100%; border-radius: 40px; overflow: hidden; padding: 0 14px;
	background: radial-gradient(ellipse at 50% 0%, rgba(155, 107, 255, .18), transparent 60%), #10061a;
	display: flex; flex-direction: column; font-size: 13px;
}
.phone-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 6px 12px 0; font-size: 12.5px; font-weight: 600; }
.phone-island { position: absolute; left: 50%; top: 10px; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; }
.phone-status-icons { display: flex; align-items: center; gap: 5px; }
.phone-status-icons svg { fill: #fff; }
.phone-battery { position: relative; width: 23px; height: 11px; border-radius: 3.5px; border: 1px solid rgba(255, 255, 255, .5); padding: 1px; }
.phone-battery i { display: block; width: 78%; height: 100%; border-radius: 2px; background: #fff; }
.phone-battery::after { content: ""; position: absolute; right: -3px; top: 3px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .5); }
.app-head { display: flex; align-items: center; gap: 9px; padding: 10px 2px 14px; }
.app-head img { width: 30px; height: auto; }
.app-head strong { display: block; font-size: 15px; line-height: 1.1; }
.app-head span { color: var(--muted); font-size: 11.5px; }
.app-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #8ff0bf; background: rgba(70, 200, 140, .15); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.app-live i { width: 6px; height: 6px; border-radius: 50%; background: #4ee29a; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Stage 1: selfie check */
.app-selfie { position: absolute; inset: 104px 14px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: opacity .5s, transform .5s; }
.selfie-ring { position: relative; width: 150px; height: 150px; }
.selfie-face { position: absolute; inset: 12px; border-radius: 50%; background-size: 290% auto; background-position: 56% 37%; }
.selfie-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 4; }
.selfie-ring circle { stroke: rgba(255, 255, 255, .12); }
.selfie-ring .selfie-progress { stroke: var(--magenta-2); stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: 352; }
.phone[data-stage="selfie"] .selfie-progress { animation: ring 1.8s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.selfie-check { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #4ee29a; color: #0b2a1b; font-weight: 800; transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.selfie-msg { position: relative; height: 22px; margin: 18px 0 4px; font-weight: 600; font-size: 15px; width: 100%; }
.selfie-msg span { position: absolute; inset: 0; transition: opacity .3s; }
.selfie-msg span + span { opacity: 0; color: #8ff0bf; }
.selfie-note { color: var(--muted); font-size: 11.5px; margin: 0; }
.phone.is-verified .selfie-check { transform: scale(1); }
.phone.is-verified .selfie-progress { stroke: #4ee29a; }
.phone.is-verified .selfie-msg span:first-child { opacity: 0; }
.phone.is-verified .selfie-msg span + span { opacity: 1; }

/* Stage 2+: scanning the gallery */
.app-scan { display: flex; flex-direction: column; flex: 1; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.phone:not([data-stage="selfie"]) .app-selfie { opacity: 0; transform: scale(.94); pointer-events: none; }
.phone:not([data-stage="selfie"]) .app-scan { opacity: 1; transform: none; }
.scan-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--lilac); margin-bottom: 7px; }
.scan-meta b { color: #fff; font-variant-numeric: tabular-nums; }
.scan-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 12px; }
.scan-progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--magenta-2), #9b6bff); }
.phone[data-stage="scan"] .scan-progress i { transition: width 3s linear; width: 100%; }
.phone[data-stage="found"] .scan-progress i, .phone[data-stage="saved"] .scan-progress i { width: 100%; }
.phone-grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr .85fr 1fr; gap: 7px; border-radius: 14px; overflow: hidden; }
.tile { border-radius: 10px; background-size: cover; background-position: center; filter: grayscale(.8) brightness(.45); position: relative; transition: filter .6s, box-shadow .4s, transform .4s; }
.tile.wide { grid-column: span 2; }
.tile.is-lit { filter: none; box-shadow: 0 0 0 2px var(--magenta-2), 0 0 24px -4px rgba(209, 69, 182, .8); transform: scale(1.03); }
.tile.is-match::after {
	content: "✓"; position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; color: var(--purple); font-size: .7rem; font-weight: 800; display: grid; place-items: center;
	transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.tile.is-lit::after { transform: scale(1); }
.scan-line {
	position: absolute; left: 0; right: 0; height: 60px; top: -60px; pointer-events: none; opacity: 0;
	background: linear-gradient(180deg, transparent, rgba(209, 69, 182, .35), transparent); border-bottom: 2px solid rgba(240, 150, 225, .8);
}
.phone[data-stage="scan"] .scan-line { opacity: 1; animation: scan 3s ease-in-out forwards; }
@keyframes scan { 0% { top: -60px; } 100% { top: 100%; } }
.phone-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 30px; }
.phone-foot strong { display: block; font-size: 17px; }
.found-count { display: inline-block; font-variant-numeric: tabular-nums; }
.found-count.is-bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); color: var(--magenta-2); } }
.phone-foot span { color: var(--muted); font-size: 11.5px; }
.phone-btn { color: var(--bg) !important; background: #fff; font-weight: 600; padding: 9px 16px; border-radius: 999px; font-size: 12.5px !important; opacity: .35; transition: opacity .4s, transform .15s; }
.phone[data-stage="found"] .phone-btn { opacity: 1; animation: btnPulse 1.2s ease-in-out infinite; }
.phone[data-stage="saved"] .phone-btn { opacity: 1; transform: scale(.92); }
@keyframes btnPulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, .15); } }

/* Stage 4: saved toast */
.app-toast {
	position: absolute; left: 14px; right: 14px; top: 54px; padding: 11px 14px; border-radius: 16px; font-weight: 600; font-size: 12.5px;
	background: rgba(40, 22, 54, .92); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1);
	color: #8ff0bf; transform: translateY(-90px); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.phone[data-stage="saved"] .app-toast { transform: none; }
.phone-home { position: absolute; left: 50%; bottom: 8px; width: 110px; height: 4px; margin-left: -55px; border-radius: 4px; background: rgba(255, 255, 255, .55); }

/* About */
.about-copy > p { color: var(--muted); font-size: 1.08rem; }
.about-media { position: relative; }
.about-media::before {
	content: ""; position: absolute; inset: 30px -20px -20px 30px; border-radius: 22px;
	border: 1px solid rgba(209, 69, 182, .4); z-index: -1;
}
.about-media img { aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 34px; }
.pillars div { border-top: 1px solid var(--line); padding-top: 16px; }
.pillars strong { display: block; font-weight: 600; margin-bottom: 4px; }
.pillars span { color: var(--muted); font-size: .94rem; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.step { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.step span { font-size: .85rem; font-weight: 700; color: var(--magenta-2); letter-spacing: .1em; }
.step strong { display: block; font-size: 1.35rem; margin: 6px 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Clients */
.clients { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.clients { overflow: hidden; }
.clients { padding-top: clamp(24px, 3vw, 40px); }
.clients .section-head { margin-bottom: 0; }
.logo-spot { position: relative; }
.spot-viewport {
	overflow: hidden; padding: 34px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.spot-track { display: flex; gap: 22px; width: max-content; list-style: none; margin: 0; padding: 0; transition: transform .8s var(--ease); will-change: transform; }
.spot-track.no-anim { transition: none; }
.spot-card {
	flex: none; width: 220px; height: 120px; padding: 18px 26px; border-radius: 18px; background: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	opacity: .35; transform: scale(.82); filter: grayscale(1);
	transition: opacity .6s, transform .8s var(--ease), filter .6s, box-shadow .6s;
}
.spot-card img { height: var(--h, 70%); width: auto; max-width: 100%; object-fit: contain; }
.spot-card:hover { opacity: .7; filter: none; }
.spot-card.on { opacity: 1; transform: scale(1.18); filter: none; box-shadow: 0 0 0 3px var(--magenta-2), 0 30px 70px -20px rgba(209, 69, 182, .8); }

/* Contact */
.contact { background: radial-gradient(ellipse at 10% 80%, rgba(176, 42, 150, .22), transparent 55%), var(--bg-2); }
.contact-inner { align-items: start; }
.contact-copy > p { color: var(--muted); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-list .icon { color: var(--magenta-2); }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-list a:hover { border-color: currentColor; }
.contact-form {
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 24px;
	padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: .88rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
	width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(10, 3, 16, .45); color: #fff; font: 400 1rem "Outfit", sans-serif; transition: border-color .2s, box-shadow .2s;
}
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta-2); box-shadow: 0 0 0 4px rgba(209, 69, 182, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 12px; margin: 0; font-weight: 500; }
.notice.ok { background: rgba(70, 200, 140, .14); color: #9ff0c6; border: 1px solid rgba(70, 200, 140, .35); }
.notice.err { background: rgba(240, 80, 100, .14); color: #ffb3bf; border: 1px solid rgba(240, 80, 100, .35); }

/* Footer */
.site-footer { background: #0e0416; border-top: 1px solid var(--line); padding: 60px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 30px; align-items: start; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 26px; padding-top: 10px; }
.footer-nav a { text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--magenta); border-color: var(--magenta); }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-bottom a { text-decoration: none; }

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
	transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }

/* Generic pages */
.page-main { padding: 150px 0 100px; min-height: 70vh; }
.entry { margin-bottom: 60px; }
.entry-title { font-size: clamp(2rem, 4vw, 3rem); }
.entry-title a { text-decoration: none; }
.entry-meta { color: var(--muted); }
.entry-thumb img { border-radius: 16px; margin-bottom: 24px; }
.entry-content { color: #e6dcee; }
.entry-content a { color: var(--magenta-2); }

/* Case study */
.case-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.case-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.case-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 6, 31, .55) 0%, rgba(20, 6, 31, .2) 35%, rgba(20, 6, 31, .92) 85%, var(--bg) 100%); }
.case-hero-inner { padding-top: 140px; padding-bottom: clamp(48px, 7vw, 90px); }
.case-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; max-width: 900px; }
.case-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #e3d6ec; max-width: 640px; margin: 0; }
.case-back { display: flex; width: fit-content; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: 26px; transition: color .2s; }
.case-back .icon { width: 18px; height: 18px; }
.case-back:hover { color: #fff; }
.case-facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.case-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; }
.case-facts dt, .case-credit-list dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-2); font-weight: 600; margin-bottom: 6px; }
.case-facts dd, .case-credit-list dd { margin: 0; font-weight: 500; }
.case-idea-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.case-idea-inner h2 { margin-bottom: 0; }
.case-idea-copy p { color: var(--muted); font-size: 1.12rem; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 34px 0 0; padding: 0; }
.case-stats li { padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.case-stats strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; font-weight: 800; color: #fff; margin-bottom: 8px; }
.case-stats span { color: var(--muted); font-size: .95rem; }
.case .films { padding-top: clamp(56px, 7vw, 96px); }
.case .films-grid { grid-template-columns: repeat(4, 1fr); }
.case-pairs { display: grid; gap: clamp(28px, 4vw, 48px); }
.case-pair { margin: 0; }
.case-pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-pair-imgs div { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.case-pair-imgs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-pair-imgs span { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 99px; background: rgba(20, 6, 31, .75); backdrop-filter: blur(6px); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.case-pair-imgs div + div span { background: var(--magenta); }
.case-pair figcaption, .case-board-grid figcaption { margin-top: 12px; font-weight: 600; }
.case-pair figcaption span, .case-board-grid figcaption span { color: var(--magenta-2); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.case-board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.case-board-grid figure { margin: 0; }
.case-board-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.case-gallery { columns: 3; column-gap: 14px; }
.case-gallery .work-item { break-inside: avoid; margin-bottom: 14px; display: block; }
.case-gallery .work-open img { aspect-ratio: auto 3 / 2; height: auto; }
.case-stills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-stills-grid .work-item { margin: 0; }
/* Widescreen frames: the first, and a last one left alone in its row, span both columns */
.case-stills-grid .work-item:first-child, .case-stills-grid .work-item:nth-child(even):last-child { grid-column: span 2; }
.case-stills-grid .work-open img { aspect-ratio: 2.39 / 1; }
.case-credits-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.case-credit-list { display: grid; gap: 20px; margin: 0; }
.case-credits-inner.no-credits { grid-template-columns: minmax(0, 720px); justify-content: center; text-align: center; }
.no-credits .case-cta-actions { justify-content: center; }
.case-cta { padding: clamp(28px, 4vw, 44px); border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(ellipse at 90% 0%, rgba(209, 69, 182, .25), transparent 60%), rgba(255, 255, 255, .03); }
.case-cta p { color: var(--muted); font-size: 1.08rem; }
.case-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) {
	.case-facts-grid { grid-template-columns: repeat(2, 1fr); }
	.case .films-grid { grid-template-columns: repeat(2, 1fr); }
	.case-idea-inner, .case-credits-inner { grid-template-columns: 1fr; }
	.case-board-grid { grid-template-columns: repeat(2, 1fr); }
	.case-gallery { columns: 2; }
}
@media (max-width: 600px) {
	.case-hero { min-height: 78svh; }
	.case .films-grid { grid-template-columns: 1fr; }
	.case-pair-imgs { grid-template-columns: 1fr; gap: 8px; }
	.case-stills-grid { grid-template-columns: 1fr; gap: 10px; }
	.case-stills-grid .work-item:first-child, .case-stills-grid .work-item:nth-child(even):last-child { grid-column: auto; }
	.case-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.case-stats li { padding: 16px 12px; }
	.case-board-grid { gap: 12px; }
	.case-gallery { column-gap: 10px; }
	.case-gallery .work-item { margin-bottom: 10px; }
}

/* Featured case study on the home page */
.case-studies { padding-top: 0; }
.case-feature {
	display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch;
	border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); text-decoration: none; color: inherit;
}
.case-feature-media { position: relative; overflow: hidden; min-height: 320px; background: #0d0414; }
.case-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case-feature:hover .case-feature-media img { transform: scale(calc(var(--z, 1) * 1.05)); }
.case-feature-media img.cover-img { object-fit: var(--fit, cover); }
.case-feature + .case-feature { margin-top: 24px; }
.case-feature:nth-of-type(even) { grid-template-columns: 1fr 1.3fr; }
.case-feature:nth-of-type(even) .case-feature-media { order: 2; }
.case-feature-body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.case-feature-body h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.case-feature-body p { color: var(--muted); }
.case-feature-body .btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 900px) {
	.case-feature, .case-feature:nth-of-type(even) { grid-template-columns: 1fr; }
	.case-feature:nth-of-type(even) .case-feature-media { order: 0; }
	/* The image sets the height itself: iOS Safari can collapse an aspect-ratio box whose only child is absolutely positioned */
	.case-feature-media { min-height: 0; }
	.case-feature-media img { position: static; display: block; height: auto; aspect-ratio: 16 / 9; }
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-media, .ticker-track, .scroll-cue span, .scan-line, .phone, .app-live i, .phone-btn { animation: none !important; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.spot-track, .spot-card { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; z-index: 2; }
	.main-nav {
		position: fixed; inset: 0; background: rgba(20, 6, 31, .98); flex-direction: column; justify-content: center; gap: 26px;
		opacity: 0; pointer-events: none; transition: opacity .3s;
	}
	.main-nav a:not(.btn) { font-size: 1.6rem; color: #fff; }
	.nav-open .main-nav { opacity: 1; pointer-events: auto; }
	/* backdrop-filter makes the header the containing block for the fixed menu, shrinking it to the header bar */
	.nav-open .site-header.is-scrolled { backdrop-filter: none; }
	.nav-open { overflow: hidden; }
	.partner-inner, .about-inner, .contact-inner, .framesu-inner { grid-template-columns: 1fr; }
	.phone { --tilt: 0deg; }
	.work-grid, .films-grid { grid-template-columns: repeat(2, 1fr); }
	.film-featured { grid-template-columns: 1fr; gap: 0; }
	.footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.brand img { width: 124px; }
	.services-grid, .process, .pillars, .field-row { grid-template-columns: 1fr; }
	.services-grid { gap: 12px; }
	.spot-track { gap: 14px; }
	.spot-card { width: 160px; height: 88px; padding: 12px 18px; border-radius: 14px; }
	.service-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px 18px; }
	.service-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; grid-row: span 2; }
	.service-icon .icon { width: 20px; height: 20px; }
	.service-card h3 { margin: 2px 0 4px; font-size: 1.08rem; }
	.service-card p { font-size: .92rem; line-height: 1.5; }
	.step { padding: 20px; }
	.process { margin-top: 50px; }
	.work-grid { grid-template-columns: 1fr; gap: 12px; }
	.films-grid { grid-template-columns: 1fr; gap: 22px; }
	.film-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
	.work-open figcaption { opacity: 1; transform: none; padding: 30px 14px 12px; }
	.filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
	.filter { flex: none; }
	.hero-actions .btn { flex: 1 1 auto; }
	.lightbox { padding: 60px 10px; }
	.lb-prev, .lb-next { top: auto !important; bottom: 18px; transform: none !important; }
	.lb-prev { left: calc(50% - 60px); }
	.lb-next { right: calc(50% - 60px); }
}

/* Events: portfolio gallery (homepage latest six, /events/, single event) */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #000; color: #fff; text-decoration: none; isolation: isolate; }
.event-card:focus-visible { outline: 3px solid var(--magenta-2); outline-offset: 3px; }
.event-card .event-cover, .event-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.event-card .event-cover { object-fit: var(--fit, cover); transition: transform 1.2s var(--ease); }
.event-card:hover .event-cover { transform: scale(calc(var(--z, 1) * 1.08)); }
/* YouTube picks its quality from the player's size, so the 16:9 film plays at 1080p and is scaled down to cover the card. */
.event-card iframe { width: 1920px; height: 1080px; inset: 50% auto auto 50%; transform: translate(-50%, -50%) scale(var(--yt-scale, .5)); pointer-events: none; opacity: 0; transition: opacity .6s; }
.event-card.is-playing iframe { opacity: 1; }
.event-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(20, 6, 31, .95)); pointer-events: none; }
/* Homepage: the first project is the hero, alone on its own row above the grid. */
.event-card.is-hero { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.event-card.is-hero .event-body { padding: 32px; }
.event-card.is-hero .event-body h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.event-card.is-hero .event-body p:not(.event-meta) { max-height: 3em; margin-top: 10px; opacity: 1; font-size: 1rem; }
.event-num { position: absolute; top: 18px; left: 20px; z-index: 2; font-size: .82rem; font-weight: 600; color: var(--lilac); }
.event-live { position: absolute; top: 16px; right: 16px; z-index: 2; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.event-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff3b5c; margin-right: 6px; vertical-align: 1px; animation: liveBlink 1s infinite; }
.event-card.is-playing .event-live { opacity: 1; }
@keyframes liveBlink { 50% { opacity: .2; } }
/* The title always sits fully inside the card; on hover the summary opens up beneath it. */
.event-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; }
.event-body h3 { margin: 8px 0 0; font-size: 1.4rem; line-height: 1.15; }
.event-body p:not(.event-meta) { margin: 0; max-height: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; opacity: 0; transition: max-height .5s var(--ease), margin .5s var(--ease), opacity .4s .1s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card:hover .event-body p:not(.event-meta), .event-card:focus-visible .event-body p:not(.event-meta) { max-height: 3em; margin-top: 8px; opacity: 1; }
.event-body .event-meta { display: flex; gap: 10px; margin: 0; font-size: .78rem; letter-spacing: .06em; color: var(--lilac); opacity: 1; }
.event-meta span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
.events-more { display: flex; justify-content: center; margin-top: 44px; }

.events-page .section { padding-top: 150px; }
.events-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.events-page .pagination { margin-top: 44px; }
.events-page .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.events-page .page-numbers { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.events-page .page-numbers.current, .events-page a.page-numbers:hover { background: var(--magenta); border-color: var(--magenta); }

.event-film { padding-bottom: 0; }
.event-film .film-player { aspect-ratio: 16 / 9; }
.event-film .film-play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.event-film .film-play .icon { width: 34px; height: 34px; }
.event-story .entry-content { font-size: 1.12rem; line-height: 1.75; }
.event-story .entry-content img { border-radius: 14px; height: auto; }
.event-story .entry-content > :last-child { margin-bottom: 0; }
/* Neighbouring sections on a project page share one gap, not one each. */
.event-story + .case-bts, .case-bts + .more-work, .case-bts-plain, .case-studies + .events { padding-top: 0; }
.event .case-facts-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.event-insights { padding-block: clamp(40px, 6vw, 72px); }
.event-insights + .event-film { padding-top: 0; }
.event-insights .case-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 16px; }
.event-insights .case-stats li { display: flex; flex-direction: column; justify-content: center; min-height: 132px; }
.event-insights .case-stats strong { margin-bottom: 0; overflow-wrap: anywhere; }
.event-insights .case-stats span { margin-top: 8px; }
.event-insights .is-words strong { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.15; }
@media (max-width: 600px) {
	/* The phone .container rule above drops vertical padding, so these two set it again. */
	.case-hero-inner { padding-top: 110px; padding-bottom: 40px; }
	.case-facts-grid { padding-top: 24px; padding-bottom: 24px; }
	.event-insights .case-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.event-insights .case-stats li { min-height: 116px; padding: 18px 16px; }
	.event-insights .case-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.events-grid { grid-template-columns: repeat(2, 1fr); }
	.event-card.is-hero { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
	.events-grid { grid-template-columns: 1fr; }
	.event-card { aspect-ratio: 4 / 3; }
	.event-card.is-hero { aspect-ratio: 4 / 5; }
	.event-card.is-hero .event-body { padding: 22px; }
	.event-body { padding: 20px; }
	.event-body p:not(.event-meta) { max-height: 3em; margin-top: 8px; opacity: 1; }
	.events-page .section { padding-top: 120px; }
	.event-film .film-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
@media (hover: none) {
	.event-body p:not(.event-meta) { max-height: 3em; margin-top: 8px; opacity: 1; }
}

/* Cover framing set per project in the Studio: focal point (--fx/--fy), zoom (--z), fit, and phone overrides (--mfx/--mfy/--mz). */
.cover-pic { display: contents; }
.cover-img { object-fit: var(--fit, cover); object-position: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%); }
@media (max-width: 700px) {
	.cover-img.has-mobile { object-position: var(--mfx) var(--mfy); transform: scale(var(--mz)); transform-origin: var(--mfx) var(--mfy); }
	.event-card:hover .event-cover.has-mobile, .case-feature:hover .case-feature-media img.has-mobile { transform: scale(var(--mz)); }
}
.event-card .event-cover[style*="--fit:contain"] { background: #0d0414; }

/* Project page hero modes */
.case-hero.hero-ratio { min-height: 0; aspect-ratio: var(--hero-ratio); }
.case-hero.hero-ratio .case-hero-inner { padding-top: 110px; }
.hero-fit-contain .case-hero-img { object-fit: contain; }
.hero-blur { position: absolute; inset: -40px; z-index: -3; background-size: cover; background-position: center; filter: blur(30px) brightness(.45); }
.case-hero.hero-fit-full { display: block; min-height: 0; }
.hero-fit-full .case-hero-img { position: relative; inset: auto; display: block; width: 100%; height: auto; transform: none; z-index: -2; }
.hero-fit-full .case-hero-inner { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 700px) {
	.case-hero.hero-ratio { aspect-ratio: auto; min-height: 70svh; }
	.case-hero.hero-fit-full { display: flex; min-height: 0; flex-direction: column; }
	.hero-fit-full .case-hero-inner { position: relative; padding-top: 24px; }
}

/* Several films on one project */
.event-film-title { font-size: 1rem; font-weight: 600; margin: 12px 0 0; }
.event-films-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.event-films-more .film-player { aspect-ratio: 16 / 9; }
.event-films-more .film-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (max-width: 900px) { .event-films-more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .event-films-more { grid-template-columns: 1fr; } }

/* Project photo galleries: layout chosen per project in the Studio */
.pgal { --gap: 14px; --cols: 3; position: relative; }
.pgal .pgal-item { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.pgal .work-open img, .pgal .pgal-item > img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); }
.pgal .pgal-item > img { transition: transform .8s var(--ease); }
.photo-section { margin-top: 72px; }
.section-head + .photo-section { margin-top: 0; }
.photo-section-head { max-width: 760px; margin-bottom: 24px; }
.photo-section-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; }
.photo-section-head p { margin-top: 8px; color: var(--muted); }
.pgal--masonry { columns: var(--cols); column-gap: var(--gap); }
.pgal--masonry .pgal-item { break-inside: avoid; margin-bottom: var(--gap); display: block; }
.pgal--masonry.is-placed { columns: auto; }
.pgal--masonry.is-placed .pgal-item { position: absolute; margin: 0; }
.pgal--masonry.is-placed .work-open img, .pgal--masonry.is-placed .pgal-item > img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.pgal--grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.pgal--grid .work-open img, .pgal--grid .pgal-item > img { aspect-ratio: var(--ratio); height: 100%; object-fit: cover; }
.pgal--fullwidth { display: flex; flex-direction: column; gap: var(--gap); }
.pgal--fullwidth .pgal-item { border-radius: 14px; }
.pgal--justified { display: flex; flex-wrap: wrap; gap: var(--gap); }
.pgal--justified .pgal-item { flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--row)); }
.pgal--justified .work-open img, .pgal--justified .pgal-item > img { aspect-ratio: var(--ar); height: 100%; object-fit: cover; }
.pgal--justified::after { content: ""; flex-grow: 999999; }
.pgal--carousel .pgal-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.pgal--carousel .pgal-track::-webkit-scrollbar { display: none; }
.pgal--carousel .pgal-item { flex: none; scroll-snap-align: center; height: min(70vh, 640px); }
.pgal--carousel .work-open, .pgal--carousel .work-open img, .pgal--carousel .pgal-item > img { height: 100%; width: auto; max-width: 88vw; object-fit: cover; }
.pgal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 6, 31, .7); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; transition: background .2s; }
.pgal-nav:hover { background: var(--magenta); }
.pgal-nav .icon { width: 22px; height: 22px; }
.pgal-prev { left: 12px; }
.pgal-next { right: 12px; }
@media (max-width: 900px) {
	.pgal--masonry, .pgal--grid { --cols: 2 !important; }
	.pgal--justified { --row: 180px !important; }
}
@media (max-width: 600px) {
	.pgal { --gap: 8px !important; }
	.photo-section { margin-top: 48px; }
	.pgal--grid { --cols: 2 !important; }
	.pgal-nav { width: 40px; height: 40px; }
	.pgal--carousel .pgal-item { height: 56vh; }
}

/* More work strip on project pages (uses each project's thumbnail framing) */
.more-work .section-head { margin-bottom: 20px; }
.more-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more-work-item { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .3s, border-color .3s; }
.more-work-item:hover { background: rgba(255, 255, 255, .04); border-color: rgba(209, 69, 182, .5); }
.more-work-thumb { position: relative; flex: none; width: 92px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #0d0414; }
.more-work-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.more-work-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.more-work-text small { color: var(--magenta-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.more-work-text strong { font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) { .more-work-grid { grid-template-columns: 1fr; } }
