/* ===== Tokens ===== */
:root {
  --bg: #ffffff;
  --bg-2: #f2f2f2;
  --line: rgba(10, 10, 10, 0.12);
  --fg: #0a0a0a;
  --dim: rgba(10, 10, 10, 0.5);
  --grey: #8c8c8c;
  --accent: #ffff00;
  --accent-ink: #0a0a0a;
  --gutter: clamp(16px, 3vw, 40px);
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: normal; color: var(--grey); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.dim { color: var(--dim); }
.label { color: var(--dim); display: inline-block; }

/* Film grain overlay */
.grain {
  position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ===== Loader ===== */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
  transition: transform 1s var(--ease);
}
.loader.done { transform: translateY(-100%); }
.loader__count { font-weight: 800; font-stretch: 100%; font-size: clamp(80px, 22vw, 320px); line-height: 0.8; font-variant-numeric: tabular-nums; }
.loader__label { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 16px; text-transform: uppercase; }

/* ===== Top bar (Cedar logo · Kern pill · Titarvl clock) ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px;
  padding: 22px var(--gutter); color: var(--fg); pointer-events: none;
  transition: color .4s;
}
.topbar > * { pointer-events: auto; }
.topbar.on-hero { color: #fff; }
.logo { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; text-transform: uppercase; padding-top: 18px; }
.logo sup { font-size: 0.55em; font-weight: 500; }
.topbar__meta { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-top: 14px; font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; }

/* Kern pill */
.pill {
  width: 300px; border-radius: 4px; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(40,40,40,.62), rgba(20,20,20,.72));
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  transition: width .6s var(--ease);
}
.pill.open { width: min(420px, calc(100vw - 2 * var(--gutter))); }
.pill__head { width: 100%; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.pill__name { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .01em; }
.pill__icon { display: grid; grid-template-columns: repeat(2, 5px); gap: 2px; transition: transform .5s var(--ease); }
.pill__icon i { width: 5px; height: 5px; background: currentColor; transition: transform .5s var(--ease); }
.pill.open .pill__icon { transform: rotate(45deg); }
.pill__menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.pill.open .pill__menu { grid-template-rows: 1fr; }
.pill__menu-inner { overflow: hidden; }
.pill__nav { display: flex; flex-direction: column; padding: 8px 20px 20px; }
.pill__nav a { font-weight: 800; font-size: 36px; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.02em; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .6s var(--ease), color .3s; }
.pill.open .pill__nav a { opacity: 1; transform: none; }
.pill.open .pill__nav a:nth-child(2) { transition-delay: .04s; } .pill.open .pill__nav a:nth-child(3) { transition-delay: .08s; }
.pill.open .pill__nav a:nth-child(4) { transition-delay: .12s; } .pill.open .pill__nav a:nth-child(5) { transition-delay: .16s; }
.pill.open .pill__nav a:nth-child(6) { transition-delay: .2s; }
.pill__nav a:hover { color: var(--accent); }
.pill__foot { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pill__mail { color: rgba(255,255,255,.75); }
.pill__mail:hover, .pill__socials a:hover { color: var(--accent); }
.pill__socials { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.status { display: inline-flex; gap: 8px; align-items: center; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: pulse 2s infinite; }
.status.off i { background: #888; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } }

/* Cedar dock */
.dock {
  position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translate(-50%, 140%);
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(45,45,45,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .7s var(--ease), opacity .4s;
}
.dock { opacity: 0; } .dock.show { transform: translate(-50%, 0); opacity: 1; }
.dock a { position: relative; z-index: 1; padding: 8px 18px; border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.7); transition: color .35s; white-space: nowrap; }
.dock a:hover { color: #fff; }
.dock a.active { color: #0a0a0a; }
.dock__glider { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; transition: transform .55s var(--ease), width .55s var(--ease); }

/* ===== Hero — Kern ===== */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #8f8f8f; }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.05); transform: scale(1.08); transition: transform 2.2s var(--ease); }
.is-ready .hero__photo img, .is-ready .hero__photo svg { transform: scale(1); }
.hero__photo svg { width: 100%; height: 100%; transform: scale(1.08); transition: transform 2.2s var(--ease); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.28) 100%); }
.hero__content { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__role, .hero__loc { margin: 0; font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: .005em; line-height: 1.6; opacity: 0; transform: translateY(10px); transition: opacity .8s .6s, transform .8s .6s var(--ease); }
.hero__role { color: var(--accent); }
.hero__loc { color: #fff; transition-delay: .7s; }
.is-ready .hero__role, .is-ready .hero__loc { opacity: 1; transform: none; }
.hero__name {
  margin: 8px 0 0; color: var(--accent); font-weight: 800; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -0.045em; line-height: .8; white-space: nowrap;
  font-size: 20vw; display: flex; overflow: hidden; padding: .04em 0 0; margin-bottom: 0;
}
.hero__name span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero__name span { transform: none; }
.reel-chip {
  position: absolute; right: var(--gutter); top: 110px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 4px;
  background: #0a0a0a; color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.reel-chip:hover { background: var(--accent); color: #0a0a0a; }
.reel-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }

/* ===== Cinematography ring — Cedar ===== */
.ring { position: relative; height: 320vh; background: var(--bg); margin-top: clamp(80px, 12vw, 160px); }
.ring__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); }
.ring__title { grid-column: 1; margin: 0; z-index: 2; font-weight: 600; text-transform: uppercase; font-size: clamp(32px, 3.4vw, 52px); line-height: .98; letter-spacing: -0.02em; }
.ring__text { grid-column: 3; justify-self: end; z-index: 2; margin: 0; max-width: 250px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.25; letter-spacing: -0.01em; }
.ring__stage { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 40%; display: grid; place-items: center; pointer-events: none; }
.ring__track { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
.ring__card {
  position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  backface-visibility: hidden; overflow: hidden; border-radius: 3px; pointer-events: auto; cursor: zoom-in; will-change: transform, filter, opacity;
  --cw: clamp(220px, 30vw, 440px); --ch: calc(var(--cw) * .6);
}
.ring__card > * { width: 100%; height: 100%; object-fit: cover; }
.ring__card .ph::after { content: attr(data-label); }
.ring__label { position: absolute; left: var(--gutter); top: 96px; color: var(--dim); }
.ring__count { position: absolute; right: var(--gutter); top: 96px; color: var(--dim); font-variant-numeric: tabular-nums; }
.section--flush { padding-top: 0; }
.section--flush-top { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 12vw, 160px); }

/* ===== Web burst — Titarvl ===== */
.light { margin-top: clamp(80px, 12vw, 160px); }
.burst { position: relative; height: 300vh; }
.burst__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.burst__l, .burst__r { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 13px; }
.burst__l { left: var(--gutter); } .burst__r { right: var(--gutter); }
.burst__scroll { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 2; font-size: 13px; }
.burst__scroll:hover { color: var(--dim); }
.burst__stage { position: absolute; inset: 0; perspective: 1600px; display: grid; place-items: center; }
.burst__rot { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
.burst__card {
  position: absolute; left: 0; top: 0; transform-origin: 0 50%;
  width: var(--bw); height: calc(var(--bw) * .62); margin-top: calc(var(--bw) * -.31);
  --bw: clamp(160px, 22vw, 330px);
  overflow: hidden; border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.12); will-change: transform;
}
.burst__card > * { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.burst__card .ph::after { display: none; }
.site__title span { color: var(--fg) !important; }
.site__browser { background: #fff !important; }
.site__bar i { background: rgba(0,0,0,.14) !important; }
.site__url { background: rgba(0,0,0,.05) !important; }

/* ===== Marquee ===== */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--accent); color: var(--accent-ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-weight: 800; font-stretch: 100%; text-transform: uppercase; font-size: clamp(22px, 3vw, 40px); padding: 0 24px; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✱"; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }
.section--tight { padding-top: clamp(64px, 9vw, 120px); }
.section__head { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.section__head .label { align-self: start; padding-top: 10px; }
.section__note { color: var(--dim); max-width: 420px; margin: 12px 0 0; grid-column: 2; }
.h2 { margin: 0; font-weight: 800; letter-spacing: -0.04em !important; font-stretch: 100%; text-transform: uppercase; font-size: clamp(36px, 6vw, 96px); line-height: 0.92; letter-spacing: -0.02em; }
.h2 em { text-transform: none; font-size: 1.05em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Placeholder frames ===== */
.ph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(90% 80% at var(--px, 30%) var(--py, 20%), rgba(255,255,255,.55), transparent 60%),
              radial-gradient(100% 80% at 90% 100%, rgba(0,0,0,.35), transparent 60%),
              linear-gradient(160deg, #bdbdbd, #8a8a8a);
}
.ph::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: rgba(0,0,0,.45);
}
.ph--hero { --h: 28; --px: 70%; --py: 30%; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { --px: 30%; --py: 60%; filter: hue-rotate(25deg); } }
@property --px { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --py { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
.media { width: 100%; height: 100%; object-fit: cover; }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); transition: all .3s var(--ease); }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { margin-left: 4px; opacity: .6; }

/* ===== Work index ===== */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__item { border-bottom: 1px solid var(--line); }
.index__item[hidden] { display: none; }
.index__btn {
  width: 100%; text-align: left; display: grid; grid-template-columns: 70px 1.6fr 1fr 1fr 60px; gap: 16px; align-items: center;
  padding: 22px 0; position: relative; cursor: none;
}
.index__btn::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.index__btn:hover::before, .index__btn:focus-visible::before { transform: scaleY(1); }
.index__btn:hover, .index__btn:focus-visible { color: var(--bg); }
.index__btn:hover .index__title, .index__btn:focus-visible .index__title { transform: translateX(12px); }
.index__num { font-family: var(--mono); font-size: 12px; color: inherit; opacity: .6; }
.index__title { font-weight: 800; font-stretch: 100%; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.01em; transition: transform .5s var(--ease); }
.index__meta { font-size: 14px; opacity: .7; }
.index__year { font-family: var(--mono); font-size: 12px; text-align: right; opacity: .6; }
.index__thumb { display: none; }
.index { position: relative; z-index: 0; }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; transform: scale(0); transition: transform .35s var(--ease);
}
.cursor.on { transform: scale(1); }
.hover-preview { position: fixed; top: 0; left: 0; z-index: 30; pointer-events: none; width: 340px; aspect-ratio: 16/10; margin: -110px 0 0 30px; opacity: 0; transform: scale(.85) rotate(-3deg); transition: opacity .3s, transform .5s var(--ease); }
.hover-preview.on { opacity: 1; transform: scale(1) rotate(0); }
.hover-preview__inner { width: 100%; height: 100%; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* ===== Grade slider ===== */
.grade__stage { position: relative; aspect-ratio: 21/9; overflow: hidden; border-radius: 6px; user-select: none; touch-action: pan-y; cursor: ew-resize; --pos: 50%; }
.grade__img { position: absolute; inset: 0; }
.grade__img > * { width: 100%; height: 100%; object-fit: cover; }
.grade__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.grade__img--before.auto-log > * { filter: saturate(.25) contrast(.62) brightness(1.18); }
.grade__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); }
.grade__handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: var(--accent); color: #0a0a0a; display: grid; place-items: center; font-size: 18px; }
.grade__tag { color: #fff; position: absolute; top: 14px; padding: 6px 10px; background: rgba(10,10,10,.6); border-radius: 4px; backdrop-filter: blur(6px); }
.grade__tag--l { left: 14px; } .grade__tag--r { right: 14px; }
.grade__tabs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ===== Stills ===== */
.stills { columns: 3 280px; column-gap: 16px; }
.still { break-inside: avoid; margin: 0 0 16px; position: relative; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.still__frame { width: 100%; overflow: hidden; }
.still--wide .still__frame { aspect-ratio: 16/9; }
.still--tall .still__frame { aspect-ratio: 4/5; }
.still--square .still__frame { aspect-ratio: 1; }
.still__frame > * { transition: transform 1.2s var(--ease); }
.still:hover .still__frame > * { transform: scale(1.06); }
.still figcaption { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.still:hover figcaption { opacity: 1; transform: none; }
.still .ph::after { display: none; }

/* ===== Websites ===== */
.sites { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.site { display: block; }
.site__browser { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); transition: transform .6s var(--ease), border-color .3s; }
.site:hover .site__browser { transform: translateY(-6px); border-color: rgba(255,255,255,.3); }
.site__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.site__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.site__url { margin-left: 10px; flex: 1; font-family: var(--mono); font-size: 11px; color: var(--dim); background: rgba(255,255,255,.05); border-radius: 4px; padding: 3px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.site__shot { aspect-ratio: 16/10; overflow: hidden; }
.site__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3s ease; }
.site:hover .site__shot img { object-position: bottom; }
.site__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.site__title { font-weight: 800; font-stretch: 100%; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 32px); line-height: 1; }
.site__title span { color: var(--accent); margin-left: 6px; display: inline-block; transition: transform .4s var(--ease); }
.site:hover .site__title span { transform: translate(4px, -4px); }
.site__meta { color: var(--dim); font-size: 14px; margin-top: 4px; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.about__lead { margin: 0 0 24px; font-weight: 800; font-stretch: 100%; text-transform: uppercase; font-size: clamp(36px, 5.6vw, 92px); line-height: .92; letter-spacing: -.02em; }
.about__lead em { text-transform: none; }
.about__text { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; max-width: 760px; margin: 0 0 32px; color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 1px solid var(--fg); border-radius: 999px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; transition: background .3s, color .3s; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); }
.stat { padding: 24px 16px 0 0; border-right: 1px solid var(--line); padding-left: 16px; }
.stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; }
.stat__val { font-weight: 900; font-stretch: 100%; font-size: clamp(48px, 6.4vw, 104px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__val sup { color: var(--grey); font-size: .45em; vertical-align: top; margin-left: 2px; }
.stat__label { color: var(--dim); font-size: 14px; margin-top: 8px; }

/* ===== Services ===== */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding: 18px 0; transition: color .3s; }
.service__num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.service__name { font-weight: 900; font-stretch: 100%; text-transform: uppercase; font-size: clamp(30px, 6.6vw, 108px); line-height: .9; overflow-wrap: anywhere; letter-spacing: -.02em; transition: color .4s, transform .6s var(--ease); }
.service__detail { color: var(--dim); font-size: 14px; text-align: right; max-width: 260px; }
.service { transition: background .4s var(--ease); }
.service:hover { background: var(--accent); }
.service:hover .service__name { transform: translateX(16px); }
.service:hover .service__detail, .service:hover .service__num { color: var(--fg); }

/* ===== Brands ===== */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand { aspect-ratio: 2/1; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; transition: background .4s; }
.brand:hover { background: var(--bg-2); }
.brand img { max-height: 48px; max-width: 70%; object-fit: contain; opacity: .7; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.brand:hover img { opacity: 1; filter: none; }
.brand__word { font-weight: 800; font-stretch: 100%; font-size: clamp(16px, 1.8vw, 24px); letter-spacing: -.01em; color: var(--dim); transition: color .3s; }
.brand:hover .brand__word { color: var(--fg); }

/* ===== Instagram ===== */
.insta__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.insta__handle { margin: 12px 0 0; font-weight: 900; font-stretch: 100%; font-size: clamp(44px, 8.4vw, 140px); line-height: .9; letter-spacing: -.045em !important; letter-spacing: -.02em; }
.insta__handle a { background: linear-gradient(90deg, var(--fg), var(--fg)) no-repeat 0 100% / 0 3px; transition: background-size .6s var(--ease); }
.insta__handle a:hover { background-size: 100% 3px; }
.insta__head .section__note { grid-column: auto; }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.post { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; display: block; }
.post > *:first-child { transition: transform .8s var(--ease); }
.post::after { color: #fff; content: "↗"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; background: rgba(10,10,10,.5); opacity: 0; transition: opacity .3s; }
.post:hover::after { opacity: 1; }
.post:hover > *:first-child { transform: scale(1.08); }
.post .ph::after { display: none; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: grid; grid-template-columns: 70px 140px 1fr 32px; gap: 16px; align-items: center; padding: 24px 0; }
.faq__num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.faq__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--dim); }
.faq__text { font-size: clamp(18px, 2vw, 26px); font-weight: 600; }
.faq__icon { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.open .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 48px 28px calc(70px + 140px + 32px); color: var(--dim); max-width: 1000px; font-size: 16px; }

/* ===== Contact ===== */
.contact { padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(60px, 8vw, 100px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__big { margin: 16px 0 0; font-weight: 900; font-stretch: 100%; text-transform: uppercase; font-size: clamp(64px, 14vw, 240px); line-height: .85; letter-spacing: -.045em; }
.contact__big em { color: var(--fg); background: var(--accent); padding: 0 .06em; }
.contact__sub { color: var(--dim); margin: 24px 0 32px; max-width: 420px; }
.contact__mail { font-size: clamp(22px, 3.6vw, 48px); font-weight: 700; border-bottom: 2px solid var(--line); padding-bottom: 6px; transition: border-color .3s, color .3s; word-break: break-all; }
.contact__mail:hover { background: var(--accent); border-color: var(--fg); }

/* ===== Footer ===== */
.footer { padding-bottom: 100px !important; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; padding: 32px var(--gutter); border-top: 1px solid var(--line); align-items: start; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__col:nth-child(2) { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
.footer__col:last-child { align-items: end; }
.footer a:hover { color: var(--grey); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(5,5,5,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px var(--gutter) 32px; }
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); color: #fff; }
.lightbox__close:hover { color: var(--accent); }
.lightbox__frame { width: min(100%, 1400px); aspect-ratio: 16/9; max-height: 80vh; background: #000; display: grid; place-items: center; }
.lightbox__frame.is-image { aspect-ratio: auto; background: none; }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; }
.lightbox__frame img { max-height: 80vh; width: auto; }
.lightbox__frame .empty { text-align: center; color: var(--dim); font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 24px; }
.lightbox__cap { margin-top: 16px; color: rgba(255,255,255,.6); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .topbar { grid-template-columns: auto 1fr; padding-top: 14px; }
  .logo { display: none; }
  .pill { width: 100%; max-width: none; }
  .pill.open { width: 100%; }
  .topbar__meta { display: none; }
  .ring__sticky { grid-template-columns: 1fr; align-content: space-between; padding-top: 140px; padding-bottom: 110px; }
  .ring__title, .ring__text { grid-column: 1; justify-self: start; }
  .ring__text { max-width: 300px; }
  .ring__label, .ring__count { top: 96px; }
  .burst__l, .burst__r { top: 110px; transform: none; }
  .section__head, .about__grid { grid-template-columns: 1fr; gap: 12px; }
  .section__note { grid-column: auto; }
  .index__btn { grid-template-columns: 40px 1fr auto; cursor: pointer; }
  .index__meta--role { display: none; }
  .index__year { display: none; }
  .sites { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .faq__q { grid-template-columns: 32px 1fr 32px; }
  .faq__tag { display: none; }
  .faq__a p { padding: 0 0 24px 48px; }
  .service { grid-template-columns: 32px 1fr; }
  .service__detail { grid-column: 2; text-align: left; }
  .footer { grid-template-columns: 1fr; }
  .footer__col:last-child { align-items: start; }
  .cursor, .hover-preview { display: none; }
}
@media (max-width: 640px) {
  .index__btn { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; }
  .index__num, .index__meta { display: none; }
  .index__thumb { display: block; aspect-ratio: 4/3; border-radius: 3px; overflow: hidden; }
  .index__thumb .ph::after { display: none; }
  .index__btn::after { content: attr(data-sub); grid-column: 2; font-size: 13px; opacity: .6; margin-top: -10px; }
  .index__btn { grid-template-rows: auto auto; }
  .index__thumb { grid-row: span 2; }
  .grade__stage { aspect-ratio: 4/3; }
  .topbar { grid-template-columns: 1fr; }
  .pill__nav a { font-size: 30px; }
  .hero__role, .hero__loc { font-size: 13px; }
  .dock a { padding: 8px 10px; font-size: 13px; }
  .dock a[data-sec="about"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__name span { transform: none; }
}

/* ===== Clean / Kern colour layer ===== */
.media { filter: grayscale(1); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.still:hover .media, .ring__card:hover .media, .site:hover .media, .post:hover .media, .burst__card:hover .media, .hover-preview .media { filter: none; }
.ring { background: var(--bg); }
.hero .grain { opacity: .08; }
.hero__gray, .hero__reveal { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__gray { object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.05); transform: scale(1.08); transition: transform 2.2s var(--ease); }
.is-ready .hero__gray { transform: scale(1); }
.hero__reveal { pointer-events: none; }
.index__btn:hover .index__num, .index__btn:hover .index__meta, .index__btn:hover .index__year { opacity: .7; }

.topbar { transition: color .4s, background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.topbar:not(.on-hero) { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.index__title { font-size: clamp(24px, 2.9vw, 44px) !important; letter-spacing: -0.035em !important; }
.contact__big em { display: inline-block; line-height: .78; padding: .06em .06em .02em; }
.contact .label { margin-bottom: 24px; }
.dock { background: rgba(10,10,10,.88) !important; }

/* Hero portrait: photo keeps its proportions, sits on the bottom edge, sides melt into a matched grey */
.hero { --hero-bg: #4a4a4a; background: radial-gradient(ellipse 70% 80% at 50% 60%, color-mix(in srgb, var(--hero-bg), #fff 8%), color-mix(in srgb, var(--hero-bg), #000 22%)); }
.hero__photo { overflow: hidden; }
.hero__figure {
  position: absolute; left: 50%; bottom: 0; height: 90%; aspect-ratio: 1; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%);
  mask-composite: intersect;
}
.hero__figure .hero__gray { object-fit: fill; object-position: center; }
@media (max-width: 640px) { .hero__figure { height: 82%; } }


/* Transparent cut-out portrait: plain Kern grey wall, only the shoulders fade at the sides */
.hero--cutout { background: radial-gradient(ellipse 80% 90% at 50% 45%, #b4b4b4, #8e8e8e); }
.hero--cutout .hero__figure {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.hero--cutout .hero__gray { filter: grayscale(1) contrast(1.08) brightness(1.04); }

/* ===== Kern-exact hero: pill + photo + two lines + name, nothing else ===== */
.topbar .logo, .topbar .topbar__meta { transition: opacity .4s; }
.topbar.on-hero .logo, .topbar.on-hero .topbar__meta { opacity: 0; pointer-events: none; }
.hero--cutout { background: #a3a3a3; }
.hero__role, .hero__loc { font-size: 17px; }

@media (max-width: 640px) { .hero__role, .hero__loc { font-size: 12px; } }

/* Reveal canvas spans the whole hero */
.hero__photo > .hero__reveal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Kern-style film grain over the whole hero (below the text) */
.hero .grain {
  z-index: 0; opacity: .6; mix-blend-mode: overlay; inset: -100%;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.6s steps(6) infinite;
}

/* ===== Cedar section — exact ===== */
.ring { background: #0a0a0a !important; color: #fff; margin-top: clamp(80px, 12vw, 160px); height: 400vh; }
.ring__sticky { grid-template-columns: 1fr 1fr; align-items: center; padding: 0 32px; }
.ring__title { grid-column: 1; justify-self: start; font-weight: 500; font-stretch: 100%; text-transform: uppercase; font-size: clamp(34px, 2.6vw, 52px); line-height: 1; letter-spacing: -0.035em; color: #fff; text-shadow: none; }
.ring__text { grid-column: 2; justify-self: end; max-width: 250px; font-size: clamp(16px, 1.1vw, 21px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 400; color: #fff; text-shadow: none; }
.ring__text .bw { display: inline-block; white-space: nowrap; }
.ring__text .bc { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(4px); transition: opacity .7s var(--ease), filter .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d); }
.ring.text-in .ring__text .bc { opacity: 1; filter: blur(0); transform: none; }
.ring__stage { position: absolute; inset: 0; perspective: none; display: block; pointer-events: none; z-index: 1; }
.ring__track { position: absolute; inset: 0; width: auto; height: auto; transform-style: flat; perspective: 1000px; perspective-origin: 50% 46%; }
.ring__card {
  --cw: clamp(230px, 22.6vw, 470px); --ch: calc(var(--cw) * .63);
  left: 50%; top: 46%; border-radius: 2px; backface-visibility: visible; background: #151515;
  transform-origin: 50% 50%;
}
.ring__card .media { filter: none !important; }
.ring__card .ph::after { display: none; }
.ring .ph { background: radial-gradient(90% 80% at var(--px, 30%) var(--py, 20%), rgba(255,255,255,.35), transparent 60%), linear-gradient(160deg, #6a6a6a, #2c2c2c); }
.ring__title, .ring__text { position: relative; z-index: 2; }
.topbar.on-dark { color: #fff; background: transparent !important; border-color: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
@media (max-width: 960px) {
  .ring__sticky { grid-template-columns: 1fr; align-content: space-between; padding: 120px 16px 110px; }
  .ring__title, .ring__text { grid-column: 1; justify-self: start; }
  .ring__card { --cw: 62vw; }
}

/* ===== Titarvl section — exact ===== */
.light { background: #fff; }
.burst__stage { perspective: 2200px; }
.burst__rot { transform-style: preserve-3d; }
.burst__card {
  --bh: clamp(260px, 50vh, 560px);
  position: absolute; left: 0; top: 0;
  width: calc(var(--bh) * var(--s, 1) * .62); height: calc(var(--bh) * var(--s, 1) * .44);
  margin-top: calc(var(--bh) * var(--s, 1) * -.22);
  transform-origin: 0 50%; border-radius: 6px; overflow: hidden;
  box-shadow: none; backface-visibility: visible; background: #eee;
}
.burst__card > * { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.burst__card .media { filter: none !important; }
.light .burst .ph { background: radial-gradient(90% 80% at var(--px, 30%) var(--py, 20%), rgba(255,255,255,.6), transparent 60%), linear-gradient(160deg, #cfcfcf, #6d6d6d); }
.burst__l, .burst__r, .burst__scroll { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: #0a0a0a; }
@media (max-width: 960px) { .burst__card { --bh: clamp(220px, 38vh, 420px); } }

/* Titarvl: no divider under the top bar */
.topbar:not(.on-hero):not(.on-dark) { border-color: transparent; }

/* Titarvl spine fan — card geometry */
.burst__stage { perspective: 950px !important; perspective-origin: 50% 50%; }
.burst__card {
  --bh: clamp(240px, 44vh, 480px) !important;
  height: calc(var(--bh) * var(--s, 1)) !important;
  width: calc(var(--bh) * var(--s, 1) * var(--a, .9)) !important;
  margin-top: calc(var(--bh) * var(--s, 1) * -.5) !important;
  transform-origin: 0 50% !important; border-radius: 8px !important;
}
@media (max-width: 960px) { .burst__card { --bh: clamp(200px, 30vh, 340px) !important; } }

/* Titarvl scale: cluster ~1/3 of the screen */
.burst__stage { perspective: 1500px !important; }
.burst__card { --bh: clamp(190px, 31vh, 340px) !important; }
@media (max-width: 960px) { .burst__card { --bh: clamp(150px, 22vh, 230px) !important; } }
.burst__card:nth-child(3n) .ph { filter: brightness(.55); }
.burst__card:nth-child(3n+1) .ph { filter: brightness(1.12); }
.burst__card:nth-child(4n) .ph { filter: brightness(.3); }

/* a single website gets the full row */
.sites:has(> .site:only-child) { grid-template-columns: 1fr; }
.sites:has(> .site:only-child) .site__shot { aspect-ratio: 16 / 8; }

/* ===== Instagram reels — custom cards ===== */
.insta__grid.insta__reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.reel {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 4px; background: #111; color: #fff; text-align: left; cursor: pointer; isolation: isolate;
}
.reel__media { position: absolute; inset: 0; }
.reel__media > * { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.reel:hover .reel__media > *, .reel:focus-visible .reel__media > * { transform: scale(1.08); filter: none; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.75) 100%); transition: opacity .6s; }
.reel__top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; opacity: .85; }
.reel__play {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.35); transform: scale(.85); opacity: 0; transition: transform .6s var(--ease), opacity .4s, background .3s;
}
.reel__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; transition: fill .3s; }
.reel:hover .reel__play, .reel:focus-visible .reel__play { transform: scale(1); opacity: 1; }
.reel:hover .reel__play { background: var(--accent); border-color: var(--accent); }
.reel:hover .reel__play svg { fill: #0a0a0a; }
.reel__bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.reel__likes { font-weight: 800; font-size: clamp(28px, 2.6vw, 44px); line-height: .9; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 6px; }
.reel__likes small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.reel__audio { font-size: 10.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) {
  .insta__grid.insta__reels {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .insta__grid.insta__reels::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: start; }
  .reel__play { opacity: 1; transform: scale(.9); }
}
/* desktop: 3:4 crop so the row fits one screen; phones keep the full 9:16 */
@media (min-width: 961px) { .reel { aspect-ratio: 3 / 4; } }
.reel__play svg { transition: fill .3s, transform .5s var(--ease); }

/* a single website gets the full row */
.sites:has(> .site:only-child) { grid-template-columns: 1fr; }
.sites:has(> .site:only-child) .site__shot { aspect-ratio: 16 / 8; }

/* ===== Scroll motion: one connected film ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.motion { scroll-behavior: auto; }

/* hero stays pinned and zooms out; everything after it is a sheet sliding over */
.motion .hero { position: sticky; top: 0; z-index: 0; transform-origin: 50% 30%; will-change: transform; }
.motion .hero.is-covered { visibility: hidden; }
.motion main > :not(.hero) { position: relative; z-index: 1; background: var(--bg); }
.motion #work { border-radius: 28px 28px 0 0; box-shadow: 0 -40px 80px rgba(0,0,0,.18); margin-top: 0; }

/* cinematography: white page, a black window opens in it */
.motion .ring { background: var(--bg) !important; margin-top: 0 !important; }
.motion .ring__sticky { background: #0a0a0a; will-change: clip-path; clip-path: inset(26% 30% round 28px); }
.motion .ring__title, .motion .ring__text { opacity: var(--fade, 1); transition: none; }
.motion .ring__stage { transform-origin: 50% 46%; will-change: transform; }
.motion .section--flush { padding-top: clamp(40px, 6vw, 80px); }

/* grade + web */
.motion .grade__stage { transform-origin: 50% 50%; will-change: transform; }
.motion .light { margin-top: 0; }
.motion .burst__stage { will-change: transform, opacity; transform-origin: 50% 50%; }

/* type + images */
.motion .h2, .motion .about__lead, .motion .insta__handle, .motion .contact__big { will-change: transform; }
.motion .insta { overflow: hidden; }
.motion .insta__handle { white-space: nowrap; }
.motion .contact__big { transform-origin: 50% 70%; }
.motion .services { overflow: hidden; }
.motion .still__frame > *, .motion .reel__media > * { scale: 1.16; }
.motion .stats { will-change: transform; }

/* footer curtain: page lifts off it at the very end */
.motion .footer { visibility: hidden; position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; background: #0a0a0a; color: #fff; border-top: 0; padding-top: 84px; padding-bottom: 110px !important; align-items: end; }
.motion .footer .dim { color: rgba(255,255,255,.5); }
.motion .contact { border-radius: 0 0 28px 28px; box-shadow: 0 30px 60px rgba(0,0,0,.18); }

@media (max-width: 960px) { .footer .logo { display: block; padding-top: 0; } }

/* Titarvl cards: two-sided, crisp, no mirrored backs */
.burst__card { overflow: visible !important; background: none !important; border-radius: 0 !important; transform-style: preserve-3d; box-shadow: none !important; }
.burst__face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 8px; background: #ededed;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.burst__face--back { transform: rotateY(180deg); }
.burst__face > * { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.burst__face .media { filter: none !important; }

/* hero layering: name (1) < colour reveal (2) < grain (3) < small text lines (4) */
.hero__name { position: relative; z-index: 1; }
.hero__photo > .hero__reveal { z-index: 2; }
.hero .grain { z-index: 3 !important; }
.hero__role, .hero__loc { position: relative; z-index: 4; }

/* vertical (Shorts) videos */
.lightbox__frame.is-vertical { width: auto; height: min(84vh, 820px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 6px; overflow: hidden; }
.lightbox__frame.is-vertical > iframe { width: 100%; height: 100%; }
.hover-preview.is-vertical { width: 200px; aspect-ratio: 9 / 16; margin-top: -180px; }
.index__thumb .media { object-position: center 30%; }

/* empty film sections */
.chip--empty { opacity: .45; }
.chip--empty[aria-selected="true"] { opacity: 1; }
.index__empty { border-bottom: 1px solid var(--line); padding: 48px 0; text-align: center; color: var(--dim); }
.index__empty[hidden] { display: none; }

/* section chips are toggles */
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); opacity: 1; }

/* ===== Custom video player (YouTube without YouTube's UI) ===== */
.lightbox__frame:not(.is-vertical):not(.is-image) { width: min(100%, 1400px, calc(80vh * 16 / 9)); height: auto; max-height: none; }
.vp { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; border-radius: inherit; color: #fff; user-select: none; }
.vp__crop { position: absolute; inset: 0; overflow: hidden; }
/* iframe is taller than the frame: the video fills the frame, YouTube's title bar + logo sit in the cropped strips */
.vp .vp__crop iframe { position: absolute; left: 0; top: -72px; width: 100%; height: calc(100% + 144px); border: 0; pointer-events: none; }
.vp__hit { position: absolute; inset: 0; cursor: pointer; }
.vp__poster { position: absolute; inset: 0; display: grid; place-items: center; background: #000; cursor: pointer; transition: opacity .45s var(--ease); }
.vp__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp__poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.vp[data-state="playing"] .vp__poster, .vp[data-state="buffering"] .vp__poster { opacity: 0; pointer-events: none; }
.vp__big {
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #0a0a0a; transition: transform .4s var(--ease);
}
.vp__big svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.vp__poster:hover .vp__big { transform: scale(1.08); }
.vp[data-state="loading"] .vp__big { display: none; }
.vp__spin { display: none; position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: vpspin .8s linear infinite; }
.vp[data-state="loading"] .vp__spin { display: block; }
@keyframes vpspin { to { transform: rotate(360deg); } }
.vp__sound {
  position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #0a0a0a; font-size: 11px;
}
.vp__sound svg { width: 16px; height: 16px; fill: currentColor; }
.vp__sound[hidden] { display: none; }
.vp__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 14px;
  padding: 28px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7));
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease);
}
.vp:hover .vp__bar, .vp[data-state="paused"] .vp__bar, .vp[data-state="ended"] .vp__bar { opacity: 1; transform: none; }
@media (hover: none) { .vp__bar { opacity: 1; transform: none; } }
.vp__bar button { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; flex: none; }
.vp__bar button svg { width: 20px; height: 20px; fill: currentColor; }
.vp__bar button:hover { color: var(--accent); }
.vp__track { position: relative; flex: 1; height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; }
.vp__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 3px; }
.vp__seek { position: absolute; inset: -10px 0; width: 100%; height: 23px; opacity: 0; cursor: pointer; margin: 0; }
.vp__time { font-size: 11px; color: rgba(255,255,255,.8); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* stills that play a video */
.still { cursor: pointer; }
.still::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 6.5v11l9-5.5z'/></svg>") center / 16px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease);
}
.still:hover::after { opacity: 1; transform: none; }
#grade[hidden] { display: none; }

/* 3D stack: hovered card pops forward (transform/shadow are driven by script.js) */
.ring__card { cursor: pointer; }
.ring__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0); transition: box-shadow .4s; pointer-events: none; }
.ring__card:hover::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }

/* ===== Genre reel (one per genre, horizontal on scroll) ===== */
.genres { position: relative; background: var(--bg); }
.genres__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.genres__top { position: absolute; top: 110px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; z-index: 2; }
.genres__count { font-variant-numeric: tabular-nums; color: var(--fg); }
.genres__word {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; overflow: hidden;
}
.genres__word span {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: .8; white-space: nowrap;
  font-size: clamp(80px, 17vw, 300px); color: transparent; -webkit-text-stroke: 1.5px rgba(10,10,10,.14);
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.genres__word span.in { opacity: 1; transform: none; }
.genres__track {
  position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: 0 calc(50vw - min(28vw, 220px)); width: max-content; will-change: transform;
}
.gcard {
  --h: min(58vh, 560px); --focus: 0;
  position: relative; flex: none; height: var(--h); padding: 0; text-align: left; color: #fff; cursor: pointer;
  border-radius: 6px; overflow: hidden; background: #111; will-change: transform; transform-origin: 50% 60%;
  box-shadow: 0 30px 60px rgba(0,0,0,calc(.28 * var(--focus)));
}
.gcard--wide { aspect-ratio: 16 / 9; }
.gcard--tall { aspect-ratio: 4 / 5; }
.gcard__frame { position: absolute; inset: 0; overflow: hidden; }
.gcard__frame > * { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.gcard .media { filter: grayscale(calc(1 - var(--focus))) !important; transition: none; }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.65)); pointer-events: none; }
.gcard__meta {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 6px;
  opacity: calc(.25 + var(--focus) * .75); transform: translateY(calc((1 - var(--focus)) * 10px));
}
.gcard__meta .mono { font-size: 11px; opacity: .8; }
.gcard__title { font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(20px, 2.2vw, 34px); line-height: .95; }
.gcard__play {
  position: absolute; top: 16px; right: 16px; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #0a0a0a;
  transform: scale(calc(.6 + var(--focus) * .4)); opacity: var(--focus);
}
.gcard__play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.gcard:hover .gcard__play { transform: scale(1.1); opacity: 1; }
.genres__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 110px; height: 2px; background: var(--line); z-index: 2; }
.genres__bar span { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 640px) {
  .gcard--wide { height: auto; width: 84vw; }
  .gcard--tall { height: auto; width: 66vw; }
  .genres__top { top: 96px; }
  .genres__track { padding: 0 12vw; }
}

/* genre reel: vertical 9:16 cards only */
.gcard--vertical { --h: min(68vh, 640px); height: var(--h); aspect-ratio: 9 / 16; }
@media (max-width: 640px) { .gcard--vertical { height: min(62vh, 520px); width: auto; } }

/* burst: uniform 4:5 film cards */
.burst__card { --s: 1 !important; --a: .8 !important; cursor: pointer; }
.burst__face { background: #111; }
.burst__face .media { object-position: center 30%; }
.burst__stage { perspective: 2400px !important; }

/* ===== Brands worked with: logo cards ===== */
.brands { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
.brand {
  position: relative; aspect-ratio: auto !important; display: flex !important; flex-direction: column; align-items: center;
  gap: 14px; padding: 40px 20px 28px !important; text-align: center; color: var(--fg); overflow: hidden;
}
.brand::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: 0; }
.brand:hover::before { transform: scaleY(1); }
.brand > * { position: relative; z-index: 1; }
.brand__num { position: absolute !important; top: 14px; left: 16px; font-size: 11px; color: var(--dim); }
.brand__logo {
  width: clamp(84px, 8vw, 116px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .4s;
}
.brand__logo img { width: 100%; height: 100%; max-width: none !important; max-height: none !important; object-fit: cover; opacity: 1 !important; filter: grayscale(1) !important; transition: filter .5s; }
.brand:hover .brand__logo { transform: scale(1.08) rotate(-4deg); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.brand:hover .brand__logo img { filter: none !important; }
.brand__name { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(16px, 1.4vw, 20px); line-height: 1; }
.brand__kind { font-size: 11px; color: var(--dim); }
.brand:hover .brand__kind, .brand:hover .brand__num { color: #0a0a0a; }
@media (max-width: 640px) { .brands { grid-template-columns: repeat(2, 1fr) !important; } .brand:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ===== Phone polish ===== */
@media (max-width: 640px) {
  /* service names always fit on one line */
  .service__name { font-size: clamp(22px, 7.4vw, 40px) !important; overflow-wrap: normal; white-space: nowrap; }
  /* comfortable tap targets (min ~44px) */
  .footer__col a, .footer [data-socials] a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .pill__mail, .pill__socials a { display: inline-flex; align-items: center; min-height: 40px; }
  .burst__scroll, .lightbox__close { padding: 12px 8px; }
  .chip { min-height: 36px; }
  .faq__q { padding: 20px 0; }
  /* hero name never clipped by the screen bottom */
  .hero__content { padding-bottom: env(safe-area-inset-bottom); }
  .contact__mail { font-size: clamp(18px, 6vw, 28px); }
}
/* iPhone notch / home bar */
.dock { bottom: max(22px, env(safe-area-inset-bottom)); }
