/* ---------- Tokens ---------- */
:root {
  --bay: #08060D;        /* black, with the faintest violet in it */
  --panel: #15101F;      /* raised panels and tracks */
  --panel-2: #221A33;
  --chalk: #F5F1FF;      /* primary text */
  --dim: #ABA2C4;        /* secondary text */
  --rule: #2D2442;

  --accent: #8B3DFF;     /* electric purple: actions, highlights, big moments */
  --accent-hi: #B98AFF;
  --accent-ink: #FFFFFF;

  /* clip-label colours: one per kind of work, used everywhere it appears */
  --brand: #A45CFF;
  --perf: #FF4FB8;
  --motion: #4F7BFF;
  --stop: #1FD6A4;
  --ai: #D7C2FF;

  --head: #FF3B5C;       /* playhead and timecode only */

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2,.7,.1,1);
  --snap: cubic-bezier(.6,0,.2,1.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bay); }
@media (prefers-reduced-motion: reduce) {
  .poster, .carousel__bar i { transition: none; }
  .ticker__track { animation: none; }
  .cut { clip-path: none; } html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bay); color: var(--chalk);
  font-family: var(--f); font-size: 17px; line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.02; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bay); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* label colour per category, set by JS as --c */
[data-cat="brand"] { --c: var(--brand); }
[data-cat="performance"] { --c: var(--perf); }
[data-cat="motion"] { --c: var(--motion); }
[data-cat="stop"] { --c: var(--stop); }
[data-cat="ai"] { --c: var(--ai); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.35em; border: 2px solid currentColor; border-radius: 3px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  font-variation-settings: "wdth" 110; background: transparent;
  transition: background .2s, color .2s, border-color .2s, font-variation-settings .3s var(--ease), transform .2s var(--snap);
}
.btn:hover { font-variation-settings: "wdth" 124; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--chalk); border-color: var(--chalk); }
.btn--line:hover, .btn--light:hover { background: var(--chalk); border-color: var(--chalk); color: var(--bay); }
.btn--light { border-color: var(--rule); }
.btn--light:disabled { opacity: .35; cursor: default; background: transparent; color: var(--chalk); border-color: var(--rule); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bay) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__mark { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav__mark::before { content: ""; width: 3px; height: 20px; background: var(--head); }
.nav__name { font-weight: 800; font-variation-settings: "wdth" 115; font-size: 15px; }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: center; }
.nav nav a { text-decoration: none; font-size: 15px; color: var(--dim); transition: color .2s; }
.nav nav a:hover, .nav nav a[aria-current="true"] { color: var(--chalk); }
.nav .nav__cta { color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 3px; font-weight: 700; }
.nav .nav__cta:hover { background: var(--chalk); color: var(--bay); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vh, 80px) var(--gutter) clamp(56px, 9vh, 112px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 72px); align-items: center; min-height: calc(100svh - 58px);
}

/* The slate: name tag of the site */
.slate {
  position: relative; width: min(470px, 100%); margin: 64px 0 40px 6px;
  transform: rotate(-2.5deg); transform-origin: 10% 100%;
  cursor: pointer; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.slate__stick, .slate__hinge {
  position: absolute; left: 0; right: 0; top: -26px; height: 26px; border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(-55deg, var(--accent) 0 22px, #08060D 22px 44px);
}
.slate__hinge { top: 0; height: 0; }
.slate__stick { transform-origin: 6px 100%; transition: transform .22s var(--snap); }
.slate.is-open .slate__stick { transform: rotate(-30deg); transition: transform .35s var(--ease); }
.slate__action {
  position: absolute; left: 34%; top: -64px; z-index: 3; font-size: 30px; color: var(--accent-hi);
  opacity: 0; transform: translateY(10px) rotate(-8deg) scale(.8); pointer-events: none;
  transition: opacity .2s, transform .35s var(--snap);
}
.slate.is-open .slate__action { opacity: 1; transform: translateY(0) rotate(-8deg) scale(1); }
.slate { transition: transform .4s var(--snap), filter .3s; }
.slate:hover { transform: rotate(-1deg) translateY(-4px); filter: drop-shadow(0 26px 40px rgba(139,61,255,.35)); }
.slate__board {
  margin: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #08060D; border: 2px solid #08060D; border-top: 6px solid var(--accent);
  box-shadow: inset 0 0 0 1px rgba(238,240,245,.08);
}
.slate__row { padding: 8px 12px 10px; border-right: 1px solid rgba(238,240,245,.22); border-bottom: 1px solid rgba(238,240,245,.22); min-width: 0; }
.slate__row:nth-child(5) { border-right: 0; }
.slate__row--wide { grid-column: 1 / -1; border-right: 0; }
.slate dt { font-size: 11px; color: var(--dim); font-weight: 700; font-variation-settings: "wdth" 120; }
.slate dd { margin: 0; color: var(--chalk); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; overflow-wrap: anywhere; }
.slate__row--wide:first-child dd { font-size: clamp(26px, 2.8vw, 38px); color: var(--accent-hi); }
.slate__row:last-child dd { color: var(--head); }

.hero__title {
  font-size: clamp(42px, 5vw, 88px); max-width: 100%; letter-spacing: -.025em; line-height: .94; font-weight: 800;
}
.hero__title .line { display: block; font-variation-settings: "wdth" 112; }
.hero__lede { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.3vw, 19px); color: var(--dim); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Load moment: the slate claps, the headline time-stretches open, the reel rolls */
.js .hero__title .line { font-variation-settings: "wdth" 62; opacity: 0; }
.js .is-ready .hero__title .line {
  opacity: 1; font-variation-settings: "wdth" 112;
  transition: font-variation-settings 1.1s var(--ease), opacity .4s;
}
.js .is-ready .hero__title .line:nth-child(2) { transition-delay: .1s; }
.js .is-ready .hero__title .line:nth-child(3) { transition-delay: .2s; }

.monitor { margin: 0; }
.monitor__screen { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; border-radius: 4px; }
.monitor__video { width: 100%; height: 100%; object-fit: contain; }
.monitor__safe { position: absolute; inset: 7%; border: 1px dashed rgba(238,240,245,.2); pointer-events: none; }
.monitor__flash { position: absolute; inset: 0; background: var(--chalk); opacity: 0; pointer-events: none; }
.monitor__flash.is-on { animation: flash .35s ease-out; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.monitor__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; font-size: 14px; color: var(--dim); }
.monitor__title { color: var(--chalk); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.monitor__title::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--accent)); }
.monitor__tc { color: var(--head); }

/* ---------- Edit bay ---------- */
.bay { padding: clamp(64px, 10vh, 120px) var(--gutter) clamp(64px, 10vh, 112px); border-top: 1px solid var(--rule); }
.bay > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.bay__head { display: grid; grid-template-columns: 1fr minmax(0, 30em); gap: 24px; align-items: end; margin-bottom: 40px; }
.bay__head h2 { font-size: clamp(44px, 6.4vw, 104px); font-variation-settings: "wdth" 118; letter-spacing: -.025em; font-weight: 800; }
.bay__note { color: var(--dim); font-size: 16px; }
.bay__note .js-total { color: var(--chalk); }
.hint-touch { display: none; }

.bay__viewer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; }
.program__screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; max-height: 64vh; width: 100%; border-radius: 4px; }
.program__poster, .program__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.program__video { opacity: 0; transition: opacity .15s; }
.program__video.is-on { opacity: 1; }
.inspector { display: flex; flex-direction: column; border-top: 4px solid var(--c, var(--chalk)); padding-top: 14px; transition: border-color .2s; }
.inspector__cat { color: var(--c, var(--dim)); font-size: 15px; font-weight: 600; }
.inspector__title { font-size: clamp(26px, 2.4vw, 36px); font-variation-settings: "wdth" 110; margin: 6px 0 22px; letter-spacing: -.01em; }
.inspector__open { margin-top: auto; align-self: flex-start; }

.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Timeline */
.timeline { position: relative; margin-top: 44px; padding: 0 0 0 40px; user-select: none; cursor: none; touch-action: pan-y; }
.timeline__ruler { position: relative; height: 28px; font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--rule); }
.timeline__ruler span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.timeline__ruler i { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--rule); }
.track { position: relative; display: flex; height: 66px; margin-top: 4px; }
.track--a1 { height: 42px; }
.track__label { position: absolute; left: -40px; width: 32px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--dim); font-weight: 700; }
.track__lane { position: relative; flex: 1; background: var(--panel); border-radius: 2px; }
.clip {
  position: absolute; top: 0; bottom: 0; padding: 0; border: 0; cursor: none; border-radius: 3px;
  background: var(--c); color: #08060D; overflow: hidden; text-align: left;
  box-shadow: inset 1px 0 0 rgba(255,255,255,.4), inset -1px 0 0 rgba(0,0,0,.25);
  transition: transform .2s var(--snap), filter .2s;
}
.clip__film { position: absolute; inset: 20px 0 0; background-repeat: repeat-x; background-size: auto 100%; opacity: .7; mix-blend-mode: multiply; }
.clip__name { position: absolute; left: 6px; top: 3px; right: 4px; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip.is-active { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 0 0 2px var(--chalk); z-index: 2; }
.clip:focus-visible { outline-color: var(--chalk); }
.wave { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 1px; padding: 0 2px; background: color-mix(in srgb, var(--c) 18%, var(--panel)); border-left: 1px solid var(--bay); }
.wave i { flex: 1; background: color-mix(in srgb, var(--c) 75%, var(--chalk)); min-height: 1px; border-radius: 1px; }
.playhead { position: absolute; top: 0; bottom: 0; left: 40px; width: 0; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 3; }
.timeline:hover .playhead, .timeline.is-scrubbing .playhead { opacity: 1; }
.playhead::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--head); }
.playhead::after { content: ""; position: absolute; top: 0; left: -7px; border: 7px solid transparent; border-top: 9px solid var(--head); }
.playhead__tc { position: absolute; top: -26px; left: 9px; background: var(--head); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; white-space: nowrap; border-radius: 2px; }
.timeline__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
.timeline__legend { color: var(--dim); font-size: 14px; max-width: 48em; }
.labels { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; font-size: 14px; }
.labels li { display: flex; align-items: center; gap: 7px; color: var(--dim); }
.labels li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

.reel { display: none; list-style: none; padding: 0; margin: 0; }

/* ---------- About ---------- */
.about {
  max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vh, 160px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 112px); align-items: start;
}
.about.no-photo { grid-template-columns: minmax(0, 1fr); }
.about.no-photo .about__body { max-width: 56em; }
.about__photo figure { margin: 0; background: var(--chalk); padding: 14px 14px 52px; transform: rotate(2deg); position: relative; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.about__photo figure::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, var(--accent) 75%, transparent); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__photo figcaption { position: absolute; left: 18px; bottom: 12px; color: #08060D; font-size: 22px; }
.about h2 { font-size: clamp(36px, 4.6vw, 72px); font-variation-settings: "wdth" 114; letter-spacing: -.02em; margin-bottom: 32px; max-width: 13em; font-weight: 800; }
.about__body p { max-width: 36em; margin-bottom: 1.1em; color: var(--dim); }
.about__body .about__lead { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.42; color: var(--chalk); }
.about__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 40px; }
.about__lists h3 { font-size: 16px; margin-bottom: 14px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 13px; font-size: 15px; font-weight: 600; border-radius: 3px; background: var(--c, var(--panel-2)); color: #08060D; }
.tags.is-plain li { background: var(--panel-2); color: var(--chalk); }

/* ---------- Experience ---------- */
.exp { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 12vh, 160px); }
.exp h2 { font-size: clamp(36px, 4.6vw, 72px); font-variation-settings: "wdth" 114; letter-spacing: -.02em; margin-bottom: 40px; font-weight: 800; }
.exp__ruler, .exp__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; }
.exp__ruler { font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--chalk); padding-bottom: 8px; }
.exp__scale { position: relative; height: 16px; }
.exp__scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.exp__list { list-style: none; padding: 0; margin: 0; }
.exp__row { padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.exp__title { font-size: clamp(20px, 1.8vw, 27px); font-weight: 700; font-variation-settings: "wdth" 108; line-height: 1.15; }
.exp__meta { color: var(--dim); font-size: 15px; margin-top: 4px; }
.exp__bar { position: relative; height: 30px; background: repeating-linear-gradient(90deg, transparent 0 calc(100%/16 - 1px), var(--rule) calc(100%/16 - 1px) calc(100%/16)); }
.exp__bar i { position: absolute; top: 4px; bottom: 4px; background: var(--motion); border-radius: 3px; }
.exp__bar i.is-latest { background: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: #fff; padding: clamp(80px, 14vh, 180px) var(--gutter); }
.contact__in { max-width: var(--max); margin: 0 auto; }
.contact__title { font-size: clamp(46px, 8vw, 136px); letter-spacing: -.035em; line-height: .93; font-weight: 800; font-variation-settings: "wdth" 100; transition: font-variation-settings 1s var(--ease); max-width: 11em; }
.contact.is-in .contact__title { font-variation-settings: "wdth" 118; }
.contact__lede { margin-top: 28px; max-width: 34em; font-size: 19px; }
.contact__primary { margin-top: 44px; }
.contact__email {
  display: inline-block; font-size: clamp(26px, 3.8vw, 56px); font-weight: 800; text-decoration: none;
  font-variation-settings: "wdth" 110; border-bottom: 4px solid #fff; line-height: 1.15; overflow-wrap: anywhere;
  transition: color .2s, border-color .2s;
}
.contact__email:hover { color: var(--bay); border-color: var(--bay); }
.contact__links { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.contact__links a, .contact__links button { display: inline-block; padding: 10px 16px; border: 2px solid #fff; border-radius: 3px; text-decoration: none; font-weight: 700; background: transparent; color: #fff; cursor: pointer; }
.contact__links a:hover, .contact__links button:hover { background: #fff; color: var(--accent); }
.contact :focus-visible { outline-color: #fff; }

.foot { display: flex; justify-content: space-between; padding: 22px var(--gutter); font-size: 14px; color: var(--dim); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--chalk); }

/* ---------- Case study ---------- */
.case { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bay); color: var(--chalk); }
.case::backdrop { background: rgba(8,6,13,.85); }
.case[open] { animation: case-in .45s var(--ease); }
@keyframes case-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.case__inner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
.case__stage { background: #000; display: grid; place-items: center; min-height: 0; padding: clamp(0px, 2vw, 24px); }
.case__video:focus { outline: none; }
.case__video { max-width: 100%; max-height: calc(100dvh - 48px); width: auto; height: auto; background: #000; }
.case__side { padding: 28px; overflow-y: auto; display: flex; flex-direction: column; border-top: 6px solid var(--c, var(--chalk)); }
.case__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.case__count { color: var(--dim); font-size: 14px; }
.case__close { background: none; border: 0; border-bottom: 2px solid var(--head); padding: 2px 0; cursor: pointer; font-weight: 700; }
.case__cat { color: var(--c, var(--dim)); font-size: 15px; font-weight: 600; }
.case__title { font-size: clamp(32px, 3vw, 46px); font-variation-settings: "wdth" 112; letter-spacing: -.015em; margin: 6px 0 28px; }
.case__text h3 { font-size: 14px; color: var(--dim); font-weight: 600; margin: 22px 0 6px; }
.case__text p { color: var(--chalk); font-size: 16px; }
.case__specs { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
.case__nav { display: flex; gap: 10px; margin-top: auto; padding-top: 32px; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: width .25s var(--snap), height .25s var(--snap), margin .25s var(--snap), padding .25s, opacity .2s, background .2s;
  mix-blend-mode: normal;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(139,61,255,.35); }
.cursor.is-big { width: auto; height: 30px; margin: 14px 0 0 14px; padding: 0 12px; border-radius: 4px; }

/* ---------- Scroll playhead ---------- */
.scrub { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: rgba(139,61,255,.15); }
.scrub__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.scrub__tc { position: absolute; right: var(--gutter); top: 7px; font-size: 11px; font-weight: 700; color: var(--head); background: var(--bay); padding: 1px 6px; border-radius: 2px; opacity: 0; transition: opacity .2s; }
.nav.is-scrolled .scrub__tc { opacity: 1; }
kbd { font: inherit; font-size: .85em; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: var(--panel-2); color: var(--chalk); border-bottom: 2px solid var(--accent); }

/* ---------- Tools ticker ---------- */
.ticker { overflow: hidden; background: var(--accent); color: #fff; padding: 14px 0; transform: rotate(-1.2deg); margin: 0 -2%; }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 28s linear infinite; }
.ticker__track span { font-size: clamp(22px, 2.6vw, 38px); font-weight: 800; font-variation-settings: "wdth" 120; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.ticker__track span::after { content: ""; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Hard-cut heading reveal ---------- */
.cut { clip-path: inset(0 100% 0 0); }
.cut.is-in { clip-path: inset(0 0 0 0); transition: clip-path .55s steps(6, end); }

/* ---------- Bold layer: black and purple ---------- */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -10%; top: 4%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(139,61,255,.45), rgba(139,61,255,0));
}
html, body { overflow-x: clip; }
.hero__title { color: var(--chalk); }
.hero__title .line:last-child { color: var(--accent-hi); }
.monitor__screen { box-shadow: 0 0 0 1px rgba(185,138,255,.35), 0 30px 80px -20px rgba(139,61,255,.55); }

/* Photo + slate */
.hero__tag { position: relative; width: min(560px, 100%); }
.mugshot {
  position: absolute; z-index: 2; right: 0; top: -34px; width: 132px; margin: 0;
  background: var(--chalk); padding: 7px 7px 26px; transform: rotate(5deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.mugshot::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; transform: translateX(-50%) rotate(-4deg); background: rgba(139,61,255,.85); }
.mugshot img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--accent); }
.mugshot figcaption { position: absolute; left: 9px; bottom: 3px; font-size: 14px; color: #08060D; }
.hero__tag .slate { width: min(440px, calc(100% - 70px)); }

/* Stats */
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 36px; padding: 0; margin: 36px 0 0; }
.stats li { display: flex; align-items: baseline; gap: 8px; }
.stats b { font-size: clamp(30px, 3vw, 44px); font-weight: 800; font-variation-settings: "wdth" 118; color: var(--accent-hi); line-height: 1; }
.stats span { color: var(--dim); font-size: 15px; }

/* More work (YouTube) */
.more { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vh, 140px) var(--gutter) 0; }
.more__head, .gallery__head { display: grid; grid-template-columns: 1fr minmax(0, 28em); gap: 24px; align-items: end; margin-bottom: 40px; }
.more h2, .gallery h2 { font-size: clamp(40px, 5.6vw, 92px); font-variation-settings: "wdth" 118; letter-spacing: -.025em; font-weight: 800; }
.more__head p { color: var(--dim); }
.gallery__head p { color: var(--chalk); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.35; font-weight: 500; max-width: 22em; }
.gallery h2 { font-size: clamp(48px, 7.4vw, 120px); }
.more__sub { font-size: 15px; color: var(--accent-hi); font-weight: 700; margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.more__sub::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.yt { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.yt--long { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.yt--short { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); max-width: 820px; }
.yt__frame { position: relative; overflow: hidden; border-radius: 6px; background: #000; }
.yt--long .yt__frame { aspect-ratio: 16 / 9; }
.yt--short .yt__frame { aspect-ratio: 9 / 16; }
.yt__frame img, .yt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt__play {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.yt__play img { transition: transform .5s var(--ease), filter .3s; filter: saturate(.9) brightness(.85); }
.yt__play:hover img, .yt__play:focus-visible img { transform: scale(1.04); filter: none; }
.yt__btn {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(139,61,255,.6); transition: transform .25s var(--snap);
}
.yt__btn::before { content: ""; margin-left: 5px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt__play:hover .yt__btn { transform: scale(1.12); }
.yt__meta { padding-top: 10px; }
.yt__title { font-weight: 700; font-size: 17px; font-variation-settings: "wdth" 106; line-height: 1.25; }
.yt__sub { color: var(--dim); font-size: 14px; margin-top: 2px; }

/* Gallery */
.gallery { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vh, 150px) var(--gutter) 0; }
.carousel { position: relative; margin-top: 8px; user-select: none; }
.carousel__stage {
  --drag: 0px;
  position: relative; height: clamp(380px, 68vh, 640px); perspective: 1600px;
  display: grid; place-items: center; touch-action: pan-y; cursor: grab;
}
.carousel__stage.is-drag { cursor: grabbing; }
.carousel__stage::before {
  content: ""; position: absolute; inset: 10% 20%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,61,255,.45), rgba(139,61,255,0)); pointer-events: none;
}
.poster {
  position: absolute; height: 86%; aspect-ratio: var(--ar); max-width: 78vw;
  padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--panel); cursor: pointer;
  transform:
    translateX(calc(var(--d) * clamp(120px, 19vw, 300px) + var(--drag)))
    translateZ(calc(var(--a) * -160px))
    rotateY(calc(var(--d) * -28deg))
    scale(calc(1 - var(--a) * .06));
  filter: brightness(calc(1 - var(--a) * .22)) saturate(calc(1 - var(--a) * .2));
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8);
  transition: transform .8s var(--ease), filter .6s, opacity .6s, box-shadow .4s;
}
.carousel__stage.is-drag .poster { transition: filter .6s, opacity .6s; }
.poster.is-front { box-shadow: 0 0 0 2px var(--accent), 0 40px 90px -20px rgba(139,61,255,.6); cursor: zoom-in; }
.poster.is-front:hover { transform: translateX(var(--drag)) scale(1.03); }
.poster.is-far { opacity: 0; pointer-events: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.carousel__ui { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 18px; }
.carousel__btn {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--rule); background: transparent; cursor: pointer;
  font-size: 0; position: relative; transition: background .2s, border-color .2s, transform .25s var(--snap);
}
.carousel__btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.carousel__prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.carousel__next::before { transform: translate(-70%, -50%) rotate(45deg); }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.carousel__meta { display: grid; gap: 8px; justify-items: center; min-width: 140px; }
.carousel__count { font-weight: 800; font-size: 20px; font-variation-settings: "wdth" 118; }
.carousel__bar { display: block; width: 140px; height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.carousel__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.carousel__hint { text-align: center; color: var(--dim); font-size: 14px; margin-top: 12px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 80px; border: 0; background: rgba(8,6,13,.96); color: var(--chalk); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; border-bottom: 2px solid var(--accent); font-weight: 700; cursor: pointer; padding: 2px 0; }
.lightbox__nav { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 16px; }
.lightbox__count { color: var(--dim); font-size: 14px; min-width: 5em; text-align: center; }

/* Testimonial */
.quote { padding: clamp(80px, 12vh, 150px) var(--gutter); background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.quote__in { max-width: 1100px; margin: 0 auto; position: relative; }
.quote__in::before { content: "\201C"; position: absolute; left: -.06em; top: -.42em; font-size: clamp(140px, 18vw, 260px); line-height: 1; font-weight: 800; color: var(--accent); opacity: .9; }
.quote__text { margin: 0; position: relative; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.18; font-weight: 700; letter-spacing: -.015em; font-variation-settings: "wdth" 104; padding-top: clamp(40px, 6vw, 80px); }
.quote__who { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.quote__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.quote__name { font-weight: 700; }
.quote__role { color: var(--dim); font-size: 15px; }

@media (max-width: 820px) {
  .more__head, .gallery__head { grid-template-columns: 1fr; }
  .mugshot { width: 96px; top: -26px; }
  .hero__tag .slate { width: calc(100% - 40px); }
  .carousel__stage { height: clamp(360px, 62vh, 520px); }
  .poster { height: 80%; transform: translateX(calc(var(--d) * 46vw + var(--drag))) translateZ(calc(var(--a) * -120px)) rotateY(calc(var(--d) * -22deg)) scale(calc(1 - var(--a) * .08)); }
  .lightbox__nav .btn { padding: .6em .9em; }
}


/* Clap shut: swing down, bounce once, settle */
.slate.is-clapping .slate__stick { animation: clap-shut .6s cubic-bezier(.3,0,.4,1) both; }
@keyframes clap-shut {
  0% { transform: rotate(-30deg); }
  45% { transform: rotate(2deg); }
  62% { transform: rotate(-7deg); }
  80% { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}
.slate:not(.is-open) .slate__action { transition: opacity .35s .1s, transform .45s var(--ease); }
.case__text h3 + p { line-height: 1.6; }

/* Case study video loader */
.case__stage { position: relative; }
.case__loader { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, 70%); text-align: center; color: var(--chalk); font-size: 14px; font-weight: 600; }
.case__loader[hidden] { display: none; }
.case__loader b { display: block; height: 4px; margin-top: 12px; background: rgba(139,61,255,.25); border-radius: 2px; overflow: hidden; }
.case__loader i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .15s linear; }


/* ---------- Phones: timeline scrubbing + two-up video grids ---------- */
.tl-center { display: none; }
@media (max-width: 820px) {
  .bay__viewer { grid-template-columns: 1fr; gap: 14px; }
  .program__screen { max-height: none; }
  .inspector { border-top-width: 3px; padding-top: 10px; }
  .inspector__title { font-size: 24px; margin: 4px 0 12px; }
  .inspector__specs { grid-template-columns: auto 1fr auto 1fr; gap: 6px 12px; font-size: 13px; }
  .inspector__open { margin-top: 14px; }
  .tl-frame { position: relative; margin: 28px calc(var(--gutter) * -1) 0; }
  .tl-scroll { overflow-x: auto; overflow-y: hidden; padding: 0 50%; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: none; }
  .tl-scroll::-webkit-scrollbar { display: none; }
  .tl-frame .timeline { width: 1400px; margin-top: 30px; padding-left: 0; }
  .tl-frame .timeline .playhead, .tl-frame .track__label { display: none; }
  .track { height: 56px; }
  .track--a1 { height: 34px; }
  .clip { cursor: pointer; }
  .tl-center { display: block; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--head); pointer-events: none; z-index: 5; }
  .tl-center::after { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--head); }
  .tl-center__tc { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); background: var(--head); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
  .tl-frame::before, .tl-frame::after { content: ""; position: absolute; top: 30px; bottom: 0; width: 28px; z-index: 4; pointer-events: none; }
  .tl-frame::before { left: 0; background: linear-gradient(90deg, var(--bay), transparent); }
  .tl-frame::after { right: 0; background: linear-gradient(-90deg, var(--bay), transparent); }

  .yt--long, .yt--short { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: none; }
  .yt__btn { width: 42px; height: 42px; }
  .yt__btn::before { margin-left: 4px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
  .yt__title { font-size: 14px; }
  .yt__sub, .yt__note { font-size: 12px; }
  .yt__frame { transition: transform .25s linear, box-shadow .3s; }
  .monitor__screen { transition: transform .1s linear; }
}

/* Case study: keep Close reachable on smaller screens */
@media (max-width: 1080px) {
  .case__close {
    position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 30;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(245,241,255,.25);
    background: rgba(8,6,13,.78); backdrop-filter: blur(8px); color: var(--chalk); font-size: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .case__close::before { content: "\00d7"; font-size: 22px; line-height: 1; font-weight: 400; color: var(--accent-hi); }
  .case__top { margin-bottom: 24px; padding-right: 110px; }
  .case__inner { grid-template-rows: auto auto; height: auto; min-height: 100%; }
  .case { overflow-y: auto; }
  .case__stage { height: 62dvh; min-height: 0; padding: 0; }
  .case__video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
}

/* ---------- Spacing fix: keep the headline clear of the monitor ---------- */
.hero__copy { min-width: 0; padding-right: clamp(8px, 2vw, 32px); }
.monitor { min-width: 0; }

/* ---------- Motion layer ---------- */
.monitor__screen { transition: transform .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
.mugshot { transition: transform .5s var(--snap); }
.mugshot:hover { transform: rotate(-4deg) scale(1.08); }
.js .clip { transform: translateX(60px); opacity: 0; }
.js .timeline.is-in .clip { transform: none; opacity: 1; transition: transform .7s var(--snap), opacity .3s, filter .2s; transition-delay: calc(var(--d, 0) * 70ms); }
.js .timeline.is-in .clip.is-active { transform: translateY(-3px); }
.js .wave i { transform: scaleY(0); transform-origin: 50% 50%; }
.js .timeline.is-in .wave i { transform: scaleY(1); transition: transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 70ms + 200ms); }
.wave.is-live i { animation: bounce .7s ease-in-out infinite alternate; }
.wave.is-live i:nth-child(3n) { animation-delay: -.2s; }
.wave.is-live i:nth-child(3n+1) { animation-delay: -.45s; }
@keyframes bounce { from { transform: scaleY(.55); } to { transform: scaleY(1.08); } }
.yt li, .yt > li { transition: transform .4s var(--snap); }
.yt__frame { transition: transform .45s var(--ease), box-shadow .3s; transform-style: preserve-3d; }
.yt li:hover .yt__frame { box-shadow: 0 24px 60px -18px rgba(139,61,255,.6); }
.js .yt > li, .js .exp__row, .js .tags li, .js .stats li { opacity: 0; transform: translateY(28px); }
.js .is-shown { opacity: 1 !important; transform: none !important; transition: opacity .6s var(--ease), transform .7s var(--snap); transition-delay: calc(var(--d, 0) * 60ms); }
.js .exp__bar i { transform: scaleX(0); transform-origin: 0 50%; }
.js .exp__row.is-shown .exp__bar i { transform: scaleX(1); transition: transform 1s var(--ease) .25s; }
.ticker__track { will-change: transform; }
.quote__text .w { display: inline-block; opacity: .12; transition: opacity .35s; }
.quote__text .w.on { opacity: 1; }
.contact__title .w { display: inline-block; transition: transform .35s var(--snap); }
.contact__title .w:hover { transform: translateY(-8px) rotate(-3deg); }
.yt__note { color: var(--dim); font-size: 14px; margin-top: 4px; }
.yt__note a { color: var(--accent-hi); }
@media (prefers-reduced-motion: reduce) {
  .js .clip, .js .wave i, .js .yt > li, .js .exp__row, .js .tags li, .js .stats li, .js .exp__bar i { opacity: 1 !important; transform: none !important; }
  .wave.is-live i { animation: none; }
  .quote__text .w { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .monitor__screen { aspect-ratio: 16 / 10; }
  .bay__viewer { grid-template-columns: 1fr; }
  .inspector__open { margin-top: 20px; }
  .case__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .case__stage { padding: 0; }
  .case__video { max-height: 70dvh; }
  .case__side { overflow: visible; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav nav a:not(.nav__cta) { display: none; }
  .slate { margin-top: 34px; }
  .hero__title .line { white-space: normal; }
  .bay__head { grid-template-columns: 1fr; }
  .reel, .timeline__foot, .hint-desk { display: none !important; }
  .hint-touch { display: inline; }
  .reel { gap: 44px; }
  .reel__item button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
  .reel__media { position: relative; background: #000; overflow: hidden; border-radius: 4px; }
  .reel__media img, .reel__media video { width: 100%; height: 100%; object-fit: cover; }
  .reel__media video { position: absolute; inset: 0; }
  .reel__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 4px solid var(--c); margin-top: 12px; }
  .reel__title { font-size: 22px; font-weight: 700; font-variation-settings: "wdth" 108; line-height: 1.15; }
  .reel__cat { color: var(--c); font-size: 14px; margin-top: 2px; font-weight: 600; }
  .reel__len { color: var(--head); font-size: 14px; white-space: nowrap; }
  .reel__item--v .reel__media { width: 78%; aspect-ratio: 9 / 16; }
  .reel__item--h .reel__media { aspect-ratio: 16 / 9; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 380px; }
  .exp__ruler { display: none; }
  .exp__row { grid-template-columns: 1fr; gap: 12px; }
  .foot { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .line { opacity: 1; font-variation-settings: "wdth" 112; transition: none !important; }
  .case[open], .monitor__flash.is-on { animation: none; }
  .contact__title, .slate__stick { transition: none; }
  .slate.is-clapping .slate__stick { animation: none; }
}
@media (hover: none) { .timeline, .clip { cursor: auto; } }
