:root {
  --paper: #fbfaf7;
  --ink: #15131c;
  --ink-2: #221f2c;
  --saffron: #ffae1a;
  --violet: #5b3df5;
  --rose: #ff4f7b;
  --mint: #3ddc97;
  --fg: var(--ink);
  --bg: var(--paper);
  --pad: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --hand: Caveat, cursive;
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* Native smooth scrolling only when Lenis isn't running: CSS smooth scroll breaks ScrollTrigger's measurements */
html:not(.motion) { scroll-behavior: smooth; }
body { --muted: color-mix(in srgb, var(--fg) 62%, transparent); --line: color-mix(in srgb, var(--fg) 18%, transparent); margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .6s ease, color .6s ease; }
body[data-theme="ink"] { --bg: var(--ink); --fg: var(--paper); }
body[data-theme="violet"] { --bg: var(--violet); --fg: #fff; }
body[data-theme="saffron"] { --bg: var(--saffron); --fg: var(--ink); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -.03em; line-height: .92; }
::selection { background: var(--saffron); color: var(--ink); }

.eyebrow { font: 600 13px/1 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .16em; color: var(--saffron); margin: 0 0 22px; }
body[data-theme="saffron"] .eyebrow, body[data-theme="violet"] .eyebrow { color: var(--fg); opacity: .7; }

/* split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; will-change: transform; }

/* nav */
/* Solid header that follows the section colour (body theme vars), so content never shows through */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); transition: background-color .6s ease, color .6s ease, border-color .6s ease; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.sig { font: 700 34px/1 var(--hand); }
.sur { font: 600 13px/1 var(--display); text-transform: uppercase; letter-spacing: .2em; }
.nav nav { display: flex; gap: clamp(14px, 2.6vw, 34px); align-items: center; font-weight: 500; font-size: 15px; }
.nav nav a { text-decoration: none; position: relative; }
.nav nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1.5px solid currentColor; padding: 7px 16px; border-radius: 999px; }
.nav-cta::after { display: none; }

/* hero */
.hero { position: relative; min-height: 100svh; padding: 110px var(--pad) 40px; display: flex; flex-direction: column; overflow: hidden; }
.hero-kicker { font-weight: 500; font-size: 15px; margin: 0 0 18px; color: var(--muted); }
.hero-kicker i { color: var(--saffron); font-style: normal; margin: 0 6px; }
.giant { font-size: clamp(64px, 15.5vw, 260px); text-transform: uppercase; position: relative; z-index: 1; }
.giant .line, .mega .line { display: block; overflow: hidden; padding-bottom: .04em; }
.giant .inner, .mega .inner { display: inline-block; will-change: transform; }
.giant .l2 { padding-left: 9vw; }
.giant em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-chars { position: absolute; right: var(--pad); bottom: 0; width: min(62vw, 860px); height: min(72vh, 720px); z-index: 2; pointer-events: none; mix-blend-mode: multiply; }
.hero-chars button { position: absolute; bottom: 0; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; mix-blend-mode: multiply; }
.hero-chars img { height: 100%; width: auto; }
.hero-chars .c0 { height: 100%; right: 30%; z-index: 2; }
.hero-chars .c1 { height: 78%; right: 0; }
.hero-chars .c2 { height: 70%; right: 58%; }
.hero-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; position: relative; z-index: 3; max-width: 46%; }
.hero-foot p { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; margin: 0; position: relative; }
.hand { font: 700 1.5em/1 var(--hand); color: var(--violet); }
.scribble { position: absolute; left: 0; bottom: -18px; width: 70%; height: 16px; fill: none; stroke: var(--saffron); stroke-width: 4; stroke-linecap: round; }
.scroll-hint { position: absolute; left: var(--pad); bottom: -4px; display: none; }
.spark { position: absolute; fill: var(--saffron); z-index: 0; }
.spark.s1 { width: 56px; top: 18%; right: 12%; }
.spark.s2 { width: 30px; top: 46%; left: 52%; fill: var(--violet); }
.spark.s3 { width: 22px; top: 30%; left: 6%; fill: var(--rose); }

/* marquee */
.marquee { background: var(--saffron); color: var(--ink); overflow: hidden; padding: 22px 0; transform: rotate(-2deg) scale(1.04); margin: 30px 0; position: relative; z-index: 4; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { font: 800 clamp(28px, 4.6vw, 64px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; padding-right: .5em; }
.marquee-track span i { font-style: normal; color: var(--paper); margin-left: .5em; }

/* cast */
.cast { position: relative; }
.cast-pin { height: 100svh; display: flex; align-items: center; gap: 4vw; padding: 70px 0 20px var(--pad); overflow: hidden; }
.cast-viewport { flex: 1; min-width: 0; overflow: hidden; padding: 60px 0; position: relative; }
.cast-viewport::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 40px; z-index: 2; background: linear-gradient(90deg, var(--bg), transparent); pointer-events: none; }
.cast-head { flex: 0 0 min(380px, 34vw); }
.cast-head h2 { font-size: clamp(48px, 6.4vw, 104px); }
.cast-sub { color: var(--muted); margin: 22px 0 30px; max-width: 30em; }
.cast-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; width: 70%; }
.cast-progress span { display: block; height: 100%; width: 100%; background: var(--saffron); transform: scaleX(0); transform-origin: left; }
.cast-track { display: flex; gap: 28px; align-items: center; padding: 0 var(--pad) 0 40px; will-change: transform; width: max-content; }
.card { flex: none; width: clamp(240px, 24vw, 360px); background: var(--paper); color: var(--ink); border-radius: 20px; padding: 14px 14px 18px; border: 0; cursor: pointer; text-align: left; transition: transform .4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.card:nth-child(odd) { rotate: -2.5deg; }
.card:nth-child(even) { rotate: 2deg; translate: 0 26px; }
.card:hover { transform: scale(1.04) rotate(0deg); }
.card .art { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.card img { width: 100%; height: 100%; object-fit: contain; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; gap: 8px; }
.card .meta b { font: 700 18px/1.15 var(--display); }
.card .meta span { font: 700 26px/1 var(--hand); color: var(--violet); }

/* process */
.process-pin { min-height: 100svh; display: grid; grid-template-columns: 1fr 1.5fr; gap: 5vw; align-items: center; padding: 90px var(--pad) 50px; }
.process-copy h2 { font-size: clamp(44px, 5.6vw, 92px); margin-bottom: 22px; }
.process-copy p { color: var(--muted); max-width: 26em; font-size: 17px; }
.process-labels { display: flex; gap: 10px; margin-top: 26px; }
.process-labels span { cursor: pointer; user-select: none; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 14px; transition: background .3s, color .3s; }
.process-labels .on { background: var(--ink); color: var(--paper); }
.wipe { position: relative; aspect-ratio: 720 / 516; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(21,19,28,.45); }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe-b { clip-path: inset(0 50% 0 0); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--saffron); box-shadow: 0 0 0 4px rgba(255,174,26,.25); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px var(--pad) 120px; }
.stats div { border-top: 2px solid var(--ink); padding-top: 18px; }
.stats b { display: block; font: 800 clamp(56px, 8vw, 128px)/1 var(--display); letter-spacing: -.04em; }
.stats span { color: var(--muted); }

/* work */
.work { padding: 120px var(--pad) 60px; }
.work-head h2 { font-size: clamp(48px, 7vw, 120px); }
.work-sub { color: var(--muted); max-width: 36em; margin: 20px 0 36px; font-size: 17px; }
.filters { position: sticky; top: 70px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; background: var(--bg); transition: background-color .6s ease; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); font: 500 14px 'DM Sans', sans-serif; color: var(--fg); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--saffron); }
.chip[aria-selected="true"] { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.cat { padding: 70px 0 10px; }
.cat-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 10px 28px; margin-bottom: 30px; }
.cat-head .num { font: 700 40px/1 var(--hand); color: var(--saffron); grid-row: span 2; align-self: start; }
.cat-head h3 { font: 800 clamp(32px, 4vw, 60px)/1 var(--display); letter-spacing: -.03em; margin: 0; }
.cat-head p { margin: 0; color: var(--muted); max-width: 44em; }
.grid { columns: 3 300px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; }
.tile img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.tile:hover img { transform: scale(1.06); }
.tile .cap { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 24px); }
.tile:hover .cap, .tile:focus-visible .cap { transform: none; }
.tile .play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-size: 20px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }

/* about */
.about { padding: 140px var(--pad); }
.statement { font: 600 clamp(28px, 3.9vw, 62px)/1.12 var(--display); letter-spacing: -.02em; margin: 0 0 70px; max-width: 22em; }

.motion .statement .w { opacity: .18; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts li { border-top: 1.5px solid color-mix(in srgb, #fff 40%, transparent); padding-top: 14px; font-size: 15px; }
.facts span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; opacity: .7; margin-bottom: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); margin-right: 8px; box-shadow: 0 0 0 0 var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } }

/* contact */
.contact { padding: 140px var(--pad) 36px; }
.mega { font-size: clamp(52px, 10.5vw, 190px); text-transform: uppercase; }
.mega em { font: 700 1em/1 var(--hand); text-transform: none; letter-spacing: 0; color: var(--violet); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 50px 0 110px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 clamp(16px, 1.6vw, 22px) var(--display); border: 2px solid var(--ink); }
.pill.ghost { background: transparent; color: var(--ink); }
.pill i { font-style: normal; transition: transform .3s; }
.pill:hover i { transform: translate(3px, -3px); }
.foot { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--ink); padding-top: 20px; }

/* cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--saffron); pointer-events: none; display: grid; place-items: center; transition: width .3s, height .3s, margin .3s, background .3s; mix-blend-mode: normal; }
.cursor span { font: 600 13px 'DM Sans', sans-serif; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.big span { opacity: 1; }
.cursor { display: none; }
.has-cursor .cursor { display: grid; }
.has-cursor .tile, .has-cursor .card, .has-cursor .hero-chars button, .has-cursor #wipe { cursor: none; }
#wipe { cursor: pointer; }

/* lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog::backdrop { background: rgba(15,13,20,.95); backdrop-filter: blur(6px); }
dialog[open] { display: flex; align-items: center; justify-content: center; }
dialog figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 140px); }
.lb-media img, .lb-media video { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 8px; }
dialog figcaption { color: #eee; margin-top: 14px; font-size: 15px; text-align: center; }
dialog figcaption small { color: var(--saffron); margin-left: 10px; }
.lb-close, .lb-nav { position: fixed; background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--saffron); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; margin-top: -26px; }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }

/* mobile */
@media (max-width: 860px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 96px; }
  .giant .l2 { padding-left: 0; }
  .giant em { -webkit-text-stroke-width: 1.5px; }
  .hero-chars { position: relative; right: auto; width: 100%; height: 50vh; margin-top: 10px; }
  .hero-chars .c0 { height: 92%; right: auto; left: -4%; }
  .hero-chars .c1 { height: 80%; right: -6%; }
  .hero-chars .c2 { display: none; }
  .hero-foot { max-width: none; margin-top: 18px; }
  .cast-pin { height: auto; flex-direction: column; align-items: stretch; padding: 80px 0 40px; gap: 10px; }
  .cast-viewport { overflow: visible; padding: 0; }
  .cast-viewport::before { display: none; }
  .cast-head { flex: none; padding: 0 var(--pad); }
  .cast-progress { display: none; }
  .cast-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--pad) 40px; scrollbar-width: none; }
  .cast-track::-webkit-scrollbar { display: none; }
  .card { width: 72vw; scroll-snap-align: center; }
  .process-pin { grid-template-columns: 1fr; padding-top: 70px; }
  .stats { grid-template-columns: 1fr; padding-bottom: 80px; }
  .filters { top: 70px; }
  .grid { columns: 2 150px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .tile .cap { transform: none; font-size: 11px; left: 6px; bottom: 6px; padding: 4px 9px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .foot { flex-direction: column; gap: 10px; align-items: flex-start; }
  dialog figure, .lb-media img, .lb-media video { max-width: 100vw; }
  .lb-nav { top: auto; bottom: 16px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, body { transition: none !important; animation: none !important; }
}
