/* =========================================================
   Viixky portfolio — minimal white/black
   ========================================================= */
:root {
  color-scheme: dark;
  /* 90% black, 10% blue */
  --bg: #000000;
  --ink: #f2f2f2;
  --muted: #8a8a8a;
  --line: #1c1c1c;
  --line-strong: #3a3a3a;
  --tile: #0d0d0f;
  --blue: #3d7bff;
  --blue-strong: #2f6bf0;   /* behind white text: 4.7:1 (WCAG AA); --blue alone is 3.8:1 */
  --blue-soft: rgba(61, 123, 255, .14);
  --pad: clamp(16px, 3.75vw, 60px);
  --gap: 16px;
  --section: clamp(120px, 20vh, 240px);
  --row-gap: clamp(64px, 8vw, 140px);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-title: clamp(22px, 1.6vw + 12px, 30px);
  --fs-h1: clamp(30px, 2.4vw + 14px, 44px);
  --fs-display: clamp(40px, 6vw, 96px);
  --fs-giant: clamp(30px, 6.4vw, 120px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-hover: .2s;
  --dur-roll: .38s;
  --dur-focus: .7s;
  --focus-stagger: 90ms;
  --glass-bg: rgba(16, 16, 18, .55);
  --glass-line: rgba(255, 255, 255, .1);
}
@media (max-width: 760px) {
  :root { --gap: 12px; --section: 88px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; text-transform: inherit; letter-spacing: inherit; }
img, video { display: block; max-width: 100%; }
/* the hidden attribute must always win over component display rules
   (the closed mobile menu used to sit invisibly over the page and swallow clicks) */
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue-strong); color: #fff; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Type helpers ---------- */
.meta { font-size: 11px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; }
.title { font-size: var(--fs-title); line-height: 1.15; letter-spacing: -.01em; font-weight: 400; }
.small { font-size: 13px; line-height: 1.45; }
.muted { color: var(--muted); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.section { margin-top: var(--section); }
/* Underline: light grey base, ink line draws in on hover */
.link {
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
  background-repeat: no-repeat;
  background-position: 100% 100%, 0 100%;
  background-size: 0% 1px, 100% 1px;
  padding-bottom: .12em;
  transition: background-size var(--dur-roll) var(--ease);
}
.link:hover, .link:focus-visible { background-position: 0 100%, 0 100%; background-size: 100% 1px, 100% 1px; }
.sq { display: inline-block; width: 6px; height: 6px; background: currentColor; margin-right: 8px; vertical-align: 1px; flex: none; }
.label { display: flex; align-items: center; font-weight: 400; }
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; pointer-events: none; }
.nav__row {
  position: relative; height: 48px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  padding: 0 var(--pad);
}
.nav__row > * { pointer-events: auto; }
.nav__brand { grid-column: 1 / 3; }
.nav__loc { grid-column: 3 / 5; }
.nav__loc { white-space: nowrap; }
.nav__loc .muted { margin-left: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .js-clock .tz { display: none; } }
.foot > span { white-space: nowrap; }
.nav__social { grid-column: 11 / 13; justify-self: end; display: flex; gap: 24px; }
.nav__brand, .nav__loc, .nav__social { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.nav__social a:hover, .nav__brand:hover { color: var(--muted); }

.nav__links {
  position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(28px, 6.5vw, 82px);
  padding: 7px 12px 6px;
  border: 1px solid transparent;
  transition: gap .5s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
}
.nav__link { display: inline-flex; align-items: center; white-space: nowrap; transition: color .3s; }
.nav__link::before {
  content: ""; width: 6px; height: 6px; background: currentColor;
  margin-right: 0; transform: scale(0); width: 0;
  transition: width .3s var(--ease), margin .3s var(--ease), transform .3s var(--ease);
}
.nav__link.is-active::before { width: 6px; margin-right: 8px; transform: none; }
.nav__link:hover { color: var(--muted); }
.nav.is-compact .nav__link { color: var(--muted); }
.nav.is-compact .nav__link.is-active, .nav.is-compact .nav__link:hover { color: var(--ink); }

.nav.is-compact .nav__brand,
.nav.is-compact .nav__loc,
.nav.is-compact .nav__social { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav.is-compact .nav__links {
  gap: 24px;
  background: var(--glass-bg);
  border-color: var(--glass-line);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}
.nav__menu-btn { display: none; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--pad) 24px;
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu:not(.is-open) { pointer-events: none; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-size: 44px; line-height: 1.1; letter-spacing: -.03em; }
.menu__foot { display: flex; justify-content: space-between; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 100px; }
.hero__title { font-size: var(--fs-display); line-height: .95; letter-spacing: -.03em; font-weight: 400; }
.hero .hero__title { font-size: clamp(36px, 5vw, 72px); }
.hero__line { display: block; }
.hero__swap { display: grid; }
.hero__pair { grid-area: 1 / 1; visibility: hidden; }
.hero__pair.is-active { visibility: visible; }

.hero__pin { position: relative; margin-top: 24px; height: calc(56.25vw + 60vh); }
.hero__sticky { position: sticky; top: 64px; padding: 0 var(--pad); animation: reel-in .9s var(--ease) .28s backwards; }
.reel { position: relative; transform-origin: 50% 0; will-change: transform; }
.reel__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tile); }
/* hero video controls: Pause (WCAG 2.2.2) + Full screen */
.reel__controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 4px; }
.reel__btn, .reel__pause { padding: 5px 8px 4px; min-height: 24px; transition: background .3s, border-color .3s, color .3s; }
.reel__btn:hover, .reel__pause:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
@media (max-width: 760px) { .reel__controls { right: 8px; bottom: 8px; } }
/* Scroll hint: blurs in after the intro, square bobs, hides once you scroll */
.scroll-hint {
  --hint-delay: 0s;
  position: fixed; left: 50%; bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); z-index: 50;
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 1px 14px 0;
  border-color: var(--line);
  transform: translateX(-50%);
  opacity: 0; filter: blur(6px); visibility: hidden;
  transition: opacity .4s var(--ease), filter .4s var(--ease), visibility 0s linear .4s;
}
.scroll-hint.is-shown {
  opacity: 1; filter: none; visibility: visible;
  transition: opacity .5s var(--ease) var(--hint-delay), filter .5s var(--ease) var(--hint-delay), visibility 0s linear var(--hint-delay);
}
.scroll-hint.is-first { --hint-delay: 1.2s; }
.scroll-hint .sq { margin: 0; }
.scroll-hint__mark { animation: hint-nudge 1.4s ease-in-out infinite; }
@keyframes hint-nudge { 50% { transform: translateY(4px); } }

/* ---------- About ---------- */
.about { align-items: start; }
.about__title { grid-column: 1 / 5; }
.about__body { grid-column: 5 / 9; font-size: 13px; line-height: 1.45; }
.about__body p + p { margin-top: 12px; }
.about__body .link { display: inline-block; margin-top: 20px; }

/* ---------- Logos ---------- */
.logos__label { margin-bottom: 32px; }
.logos__rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logos__track { display: flex; align-items: center; gap: clamp(48px, 7vw, 110px); width: max-content; animation: marquee 40s linear infinite; padding-right: clamp(48px, 7vw, 110px); }
.logos__track img { height: clamp(26px, 2.8vw, 40px); width: auto; object-fit: contain; filter: brightness(0) invert(1); }
@keyframes marquee { to { transform: translateX(-50%); } }
/* script.js drives it instead (scroll-reactive) */
.logos__track.is-js { animation: none; will-change: transform; }

/* ---------- Work ---------- */
.work__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.work-view { display: flex; gap: 24px; }
.work-view__btn { display: inline-flex; align-items: center; color: var(--muted); transition: color .3s; }
.work-view__btn .sq { width: 0; margin-right: 0; transform: scale(0); transition: width .3s var(--ease), margin .3s var(--ease), transform .3s var(--ease); }
.work-view__btn.is-active { color: var(--ink); }
.work-view__btn.is-active .sq { width: 6px; margin-right: 8px; transform: none; }


.tile { display: block; width: 100%; }
.tile__media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile); }
.tile__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover .tile__media video { transform: scale(1.03); }
.tile { -webkit-tap-highlight-color: transparent; }
.tile__caption { display: grid; gap: 3px; padding-top: 10px; }
.tile__title { display: block; font-size: 1.17em; }
.tile__tags { display: flex; flex-wrap: wrap; column-gap: 24px; color: var(--muted); transition: color var(--dur-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__tags { color: var(--ink); } }
.tile:focus-visible .tile__tags { color: var(--ink); }

/* Ultrawide band: edge to edge at the film's own ratio, nothing cropped */
.cinema { margin-top: var(--row-gap); }
.feature-band .cinema:first-child { margin-top: 0; }
.process + .feature-band { margin-top: clamp(48px, 6vw, 80px); }
/* Home: full-bleed strip, edge to edge; caption stays on the page grid */
.feature-band .tile--cinema .tile__caption { padding-left: var(--pad, 3vw); padding-right: var(--pad, 3vw); }
/* Thinner strip on the home page: full width, height trimmed evenly top and bottom */
.feature-band .tile--cinema .tile__media { aspect-ratio: 7 / 1; }
.feature-band .tile--cinema .tile__media video { object-fit: cover; object-position: 50% 50%; }
@media (max-width: 760px) { .feature-band .tile--cinema .tile__media { aspect-ratio: 5 / 1; } }

/* Work split into sections (Product animation / Motion graphics): same label style as "Selected work",
   tiles all the same size on an even two-column grid */
.work-group { scroll-margin-top: 90px; }
.work-group + .work-group { margin-top: var(--row-gap); }
.work-group__title { margin: 0 0 28px; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.01em; align-items: baseline; }
.work-group__title .sq { width: .36em; height: .36em; margin-right: .4em; align-self: center; }
.work-group__count { margin-left: 14px; font-size: 12px; letter-spacing: normal; }
.work-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
/* Odd count: the last tile spans both columns as a wide feature, so no empty half row */
.work-equal > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.work-equal > .tile:last-child:nth-child(odd) .tile__media { aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
  .work-equal > .tile:last-child:nth-child(odd) .tile__media { aspect-ratio: 16 / 9; }
  .work-equal { grid-template-columns: 1fr; row-gap: 48px; }
  .work-equal .tile + .tile { margin-top: 0; }
  .work-group__title { margin-bottom: 20px; }
}
.tile--cinema .tile__media { aspect-ratio: var(--aspect, 3460 / 776); }
.tile--cinema .tile__media video { object-fit: contain; }
.tile--cinema:hover .tile__media video { transform: none; }
.tile--cinema:hover .tile__media { outline: none; }
.tile--cinema .tile__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(255,255,255,.06); transition: box-shadow var(--dur-hover) var(--ease); }
.tile--cinema:hover .tile__media::after { box-shadow: inset 0 1px 0 var(--blue), inset 0 -1px 0 var(--blue); }
.tile--cinema .tile__caption { padding-top: 14px; }
@media (max-width: 760px) { .tile--cinema .tile__title { padding: 0 16px; } .tile--cinema .tile__tags { padding: 0 16px; } }

.work__index { border-bottom: 1px solid var(--line); }
.work__index li { border-top: 1px solid var(--line); }
.work__index a {
  width: 100%; display: grid; grid-template-columns: 1fr 6fr 3fr 1fr; align-items: baseline; gap: var(--gap);
  padding: 16px 0 18px; transition: color .3s;
}
.work__index a > :last-child { text-align: right; }
.idx__title { font-size: 30px; line-height: 1.15; letter-spacing: -.01em; transition: transform .4s var(--ease); }
.work__index:hover button { color: var(--muted); }
.work__index a:hover { color: var(--ink); }
.work__index a:hover .idx__title { transform: translateX(10px); }
.idx__preview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 260px; aspect-ratio: 16 / 9; object-fit: cover;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9);
  transition: opacity .25s, transform .25s var(--ease);
}
.idx__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); margin-top: 24px; }
.step { border-top: 1px solid var(--line); padding-top: 12px; }
.step__num { display: block; }
.step__title { margin-top: 44px; }
.step__text { margin-top: 10px; max-width: 270px; }
.steps__dots { display: none; }

/* square dots (process / quotes on mobile) */
.dots { display: inline-flex; gap: 12px; margin-left: 20px; }
.dots i { width: 6px; height: 6px; border: 1px solid var(--ink); }
.dots i.is-on { background: var(--ink); }

/* ---------- Quotes ---------- */
.quotes__stage { display: grid; margin-top: 32px; }
.quote { grid-area: 1 / 1; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; pointer-events: auto; }
.quote blockquote { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.02em; max-width: 900px; }
.quote figcaption { margin-top: 24px; }
.quotes__nav { margin-top: 24px; display: flex; align-items: center; }

/* ---------- Contact ---------- */
/* Roll: text slides up to an identical copy */
.roll { display: block; height: 1.2em; margin-block: -.1em; line-height: 1.2; overflow: hidden; }
.roll__inner { display: block; transition: transform var(--dur-roll) var(--ease); }
.roll__line { display: block; height: 1.2em; white-space: nowrap; }

/* Get in touch: status, lead line, numbered rows with an action pill, then a real button */
.contact__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact__status { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.contact__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: contact-pulse 2.4s ease-out infinite; }
@keyframes contact-pulse { 0% { box-shadow: 0 0 0 0 rgba(61,123,255,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61,123,255,0); } }
.contact__lead { margin: 40px 0 0; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.2; letter-spacing: -.01em; max-width: 22em; }
.contact .contact__links { margin-top: 40px; max-width: calc(100% - clamp(150px, 13vw, 230px) - 4vw); }
.contact__links li:last-child .contact__row { border-bottom: 1px solid var(--line-strong); }
.contact__row {
  display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; width: 100%;
  padding: 20px 0 18px; border-top: 1px solid var(--line-strong); text-align: left; color: var(--ink);
  transition: border-color var(--dur-hover) var(--ease);
}
.contact__key { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.contact__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--blue); transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease); }
.contact__icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__row:hover .contact__icon, .contact__row:focus-visible .contact__icon { background: var(--blue); border-color: var(--blue); color: #fff; }
.contact__big { display: block; min-width: 0; font-size: min(var(--fs-giant), 6.2vw); line-height: 1.07; letter-spacing: -.04em; }
.contact__big .roll__line { overflow: hidden; text-overflow: ellipsis; }
.contact__act {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: .6em; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); white-space: nowrap;
  transition: color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}
.contact__act svg, .contact__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-hover) var(--ease); }
.contact__row:hover, .contact__row:focus-visible { border-top-color: var(--blue); }
.contact__row:hover .contact__act, .contact__row:focus-visible .contact__act { color: #fff; background: var(--blue-strong); border-color: var(--blue-strong); }
.contact__row:hover .contact__act svg { transform: translate(2px, -2px); }
.contact__row:hover .roll__inner, .contact__row:focus-visible .roll__inner { transform: translateY(-50%); }
.contact__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.contact__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--blue-strong); color: #fff; font-size: 15px; letter-spacing: .01em;
  transition: background-color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.contact__btn:hover, .contact__btn:focus-visible { background: #255fe0; }
.contact__btn:hover svg { transform: translateX(3px); }
@media (max-width: 900px) {
  .contact .contact__links { max-width: none; }
  .contact__big { font-size: 8.6vw; }
}
@media (max-width: 760px) {
  .contact__lead { margin-top: 28px; }
  /* phone: action pill moves up beside the label, the big text gets the full width */
  .contact__row { grid-template-areas: "key act" "big big"; align-items: center; padding: 14px 0 12px; column-gap: 12px; }
  .contact__key { grid-area: key; margin-bottom: 0; }
  .contact__act { grid-area: act; padding: 6px 10px; font-size: 10px; margin: 0; }
  .contact__big { grid-area: big; margin-top: 8px; font-size: 8.4vw; }
  .contact__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .contact__dot { animation: none; } }

/* ---------- Footer ---------- */
.foot {
  display: grid; grid-template-columns: 2fr 2fr 2fr 2fr 2fr; column-gap: var(--gap); align-items: center;
  margin-top: var(--section); padding-top: 24px; padding-bottom: 32px;
}
.foot > :last-child { justify-self: end; display: flex; gap: 24px; }
.foot a:hover { color: var(--muted); }
.foot .muted { margin-left: 6px; font-variant-numeric: tabular-nums; }
.sq--live { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

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

/* ---------- Player ---------- */
.player {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .35); color: var(--ink);       /* page stays visible, blurred, behind the video */
  display: none; flex-direction: column; justify-content: space-between;
}
.player[open] { display: flex; animation: fadeIn .35s var(--ease); }
/* the page behind the preview gets blurred */
.player::backdrop {
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}
.player[open]::backdrop { animation: fadeIn .35s var(--ease); }
.player__video { box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
@keyframes fadeIn { from { opacity: 0; } }
.player__top, .player__nav { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.player__close:hover, .player__prev:hover, .player__next:hover { color: var(--muted); }
.player__stage { flex: 1; display: grid; place-items: center; min-height: 0; }
.player__frame { position: relative; width: min(100%, calc((100vh - 140px) * 16 / 9)); outline: none; }
.player__video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; cursor: pointer; }
.player__frame:fullscreen { width: 100%; height: 100%; background: #000; display: grid; place-items: center; }
.player__frame:fullscreen .player__video { height: 100%; }

.controls {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 14px; padding: 6px 10px;
  color: var(--ink);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.player__frame.is-idle .controls { opacity: 0; transform: translateY(6px); pointer-events: none; }
.player__frame.is-idle { cursor: none; }
.controls button { width: 24px; height: 24px; display: grid; place-items: center; transition: opacity .2s; }
.controls button:hover { opacity: .6; }
.controls svg { width: 14px; height: 14px; fill: currentColor; }
.c-play .i-play, .is-paused .c-play .i-pause { display: none; }
.is-paused .c-play .i-play { display: block; }
.c-mute .i-x, .is-muted .c-mute .i-wave { display: none; }
.is-muted .c-mute .i-x { display: block; }
.c-track { flex: 1; height: 20px; position: relative; display: flex; align-items: center; cursor: pointer; }
.c-track::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .28); }
.c-fill { position: relative; height: 1px; width: 0; background: var(--ink); }
.c-thumb { position: absolute; right: -.5px; top: 50%; width: 1px; height: 10px; background: var(--ink); transform: translateY(-50%); transition: height .2s, width .2s; }
.c-track:hover .c-thumb, .c-track:focus-visible .c-thumb { width: 2px; height: 14px; }
.c-time { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .about__title { grid-column: 1 / 4; }
  .about__body { grid-column: 5 / 11; }
}
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav__row { display: flex; justify-content: space-between; }
  .nav__loc, .nav__links, .nav__social { display: none; }
  .nav__menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
  .nav__menu-btn::before { content: ""; width: 6px; height: 6px; background: currentColor; }
  .nav.is-compact .nav__brand { opacity: 1; transform: none; pointer-events: auto; }
  .nav__row { background: rgba(0, 0, 0, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

  .hero { padding-top: 88px; }
  .hero .hero__title { font-size: min(calc((100vw - 2 * var(--pad)) / 11.2), 58px); }
  .hero__line, .hero__pair { white-space: nowrap; }
  .hero__pin { height: auto; margin-top: 20px; }
  .hero__sticky { position: static; animation: none; }
  .reel { transform: none !important; }
  .reel__video { animation: reel-open .85s var(--ease) .1s backwards; }
  .scroll-hint.is-first { --hint-delay: 1.5s; }

  .about { display: block; }
  .about__body { margin-top: 20px; font-size: 15px; }
  .tile { display: flex; flex-direction: column; }
  .tile__caption { display: contents; }
  .tile__title { order: -1; margin-bottom: 10px; font-size: 12px; }
  .tile__tags { margin-top: 10px; }
  .work__index a { grid-template-columns: 32px 1fr; }
  .work__index a > :last-child { display: none; }
  .idx__title { font-size: 24px; }
  .idx__preview { display: none; }

  .steps {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 24px calc(var(--pad) * -1) 0; padding: 0 var(--pad); scroll-padding: 0 var(--pad);
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; }
  .step__title { margin-top: 28px; }
  .steps__dots { display: flex; align-items: center; margin-top: 28px; }

  .foot { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .foot > :nth-child(even) { justify-self: end; text-align: right; }
  .foot > :last-child { grid-column: 1 / -1; justify-self: start; }

  .player__frame { width: 100%; }
  .controls { left: 6px; right: 6px; bottom: 6px; gap: 8px; padding: 3px 6px; }
}

/* =========================================================
   Multi-page additions
   ========================================================= */

/* Page transitions (supported browsers) */
@view-transition { navigation: auto; }
/* soft page change: old page fades + drifts up, new page fades in from slightly below */
::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.16, 1, .3, 1) .06s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Cursor label */
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 300; padding: 5px 8px 4px;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.cursor-label.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-label { display: none; } }

/* Page head (Work, legal) */
.page-head { display: flex; align-items: baseline; gap: 16px; padding-top: 140px; }
.page-head__title { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; font-weight: 400; }
.work__head--end { justify-content: flex-end; margin-top: 56px; }
.work__all { display: inline-block; margin-top: 56px; }
.tile__year { margin-left: auto; }
.idx__year { text-align: right; }

/* CTA */
.cta__link { display: inline-flex; flex-direction: column; font-size: clamp(36px, 4.6vw, 76px); line-height: 1; letter-spacing: -.03em; }
.cta__line { display: block; }
/* 2px underline that draws in on hover */
.cta__underline {
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-position: 100% 92%; background-size: 0% 2px;
  transition: background-size var(--dur-roll) var(--ease);
}
.cta__link:hover .cta__underline, .cta__link:focus-visible .cta__underline,

/* ---------- Reels ---------- */
.reels__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.reels__count { margin-left: 16px; }
.reels__nav { display: flex; gap: 8px; }
.reels__nav button { width: 40px; height: 30px; border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.reels__nav button:hover:not(:disabled) { background: var(--blue-strong); color: #fff; border-color: var(--blue-strong); }
.reels__toggle { display: grid; place-items: center; }
.reels__toggle svg { width: 12px; height: 12px; fill: currentColor; }
.reels__toggle .i-play, .reels__toggle.is-paused .i-pause { display: none; }
.reels__toggle.is-paused .i-play { display: block; }
.reels__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 4.6); gap: 16px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad);
  cursor: grab;
}
.reels__rail::-webkit-scrollbar { display: none; }
/* Marquee mode (script.js): the rail is a window, one track inside moves with a transform */
.reels__rail.is-marquee { display: block; overflow: hidden; container-type: inline-size; touch-action: pan-y; }
.reels__track {
  display: grid; grid-auto-flow: column; gap: 16px; width: max-content;
  grid-auto-columns: calc((100cqw - 4 * 16px) / 4.6);   /* cqw = the rail's inner width, as before */
  will-change: transform; backface-visibility: hidden;
}
.reels__rail.is-dragging { cursor: grabbing; }
.reels__rail.is-dragging .reel-card { pointer-events: none; }
.reel-card { display: block; user-select: none; -webkit-user-select: none; }
.reel-card__media { display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--tile); }
.reel-card__media video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1s var(--ease); -webkit-user-drag: none; }
.reel-card:hover .reel-card__media video { transform: scale(1.03); }
.reel-card__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 8px; }
.reel-card__caption > span { white-space: nowrap; }
.reel-card:hover .reel-card__caption > :first-child { color: var(--muted); }

/* Vertical player */
.player__frame.is-vertical { width: min(100%, calc((100vh - 140px) * 9 / 16)); }
.player__frame.is-vertical .player__video { aspect-ratio: 9 / 16; }

/* Details beside a vertical reel */
.player.has-info .player__stage { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); }
.player.has-info .player__frame { flex: none; }
.player__info {
  --settle: cubic-bezier(.16, 1, .3, 1); --side-delay: .08s; --step: 55ms;
  width: min(380px, 34vw); display: grid; gap: 16px; align-content: center;
}
.player__info-title { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; font-weight: 400; }
.player__info-desc { font-size: 15px; line-height: 1.5; }
.player__info-link { justify-self: start; }
.player__info.is-in > :not(.spec) { animation: case-rise .6s var(--settle) backwards; }
.player__info.is-in > :nth-child(2) { animation-delay: .05s; }
.player__info.is-in > :nth-child(4) { animation-delay: .3s; }
.player__info.is-in > :nth-child(5) { animation-delay: .38s; }
@media (max-width: 760px) {
  .player.has-info .player__stage { flex-direction: column; justify-content: flex-start; overflow-y: auto; gap: 24px; padding-top: 4px; padding-bottom: 24px; }
  .player.has-info .player__frame.is-vertical { width: min(100%, calc((100svh - 200px) * 9 / 16)); }
  .player__info { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .player__info.is-in > * { animation: none; } }

/* ---------- Project (case) page ---------- */
.case-head {
  --settle: cubic-bezier(.16, 1, .3, 1); --side-delay: .2s; --step: 60ms;
  min-height: calc(100svh - 40px);
  padding-top: calc(48px + clamp(32px, 7vh, 96px)); padding-bottom: 64px;
  align-content: start; align-items: start; row-gap: 32px;
}
.case-head__film { grid-column: 1 / span 9; animation: case-film-in .9s var(--settle) backwards; }
.case-head__side { grid-column: 10 / -1; align-self: end; display: grid; gap: 16px; }
.case-head__title { font-size: var(--fs-title); line-height: 1.1; letter-spacing: -.02em; font-weight: 400; }
.case-head__text { display: grid; gap: 12px; align-content: start; font-size: 13px; line-height: 1.45; }
.case-head__text .case-note { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* Spec table: lines draw in, rows rise one after another */
.spec { position: relative; padding-bottom: 1px; margin: 0; }
.spec__row { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap); align-items: baseline; padding: 11px 0 10px; }
.spec__row dd { margin: 0; }
.spec__row::before, .spec::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.spec__row::before { top: 0; }
.spec::after { bottom: 0; --n: calc(var(--rows) + 1); }
.spec__row, .case-head__text > * { animation: case-rise .6s var(--settle) backwards; animation-delay: calc(var(--side-delay) + var(--n, 1) * var(--step)); }
.spec__row::before, .spec::after { animation: case-line .6s var(--settle) backwards; animation-delay: calc(var(--side-delay) + var(--n, 1) * var(--step)); }
.case-head__title .focus { animation-delay: calc(var(--side-delay) + var(--i, 0) * var(--focus-stagger)) !important; }
@keyframes case-film-in { 0% { clip-path: inset(100% 0 0); transform: translateY(48px); } 100% { clip-path: inset(0); } }
@keyframes case-rise { 0% { opacity: 0; transform: translateY(12px); } }
@keyframes case-line { 0% { transform: scaleX(0); } }

/* Film player */
.cplayer {
  position: relative; overflow: hidden; color: #fff;
  aspect-ratio: var(--aspect, 16 / 9); background: var(--tile);
  width: calc(100% - (100% - 8 * var(--gap)) / 18);
}
.cplayer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.cplayer:fullscreen .cplayer__video { background: #000; }
.cplayer__start, .cplayer__unmute { display: none; }
.cplayer.is-waiting .cplayer__start, .cplayer.needs-sound .cplayer__unmute {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px 11px;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s;
}
.cplayer__start:hover, .cplayer__unmute:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.cplayer__start svg, .cplayer__unmute svg { width: 12px; height: 12px; fill: currentColor; }
.cplayer.is-waiting .controls { display: none; }
.cplayer .controls { left: var(--pad); right: var(--pad); bottom: 16px; gap: 16px; padding: 8px 14px; }
.cplayer .controls button { width: 28px; height: 28px; margin: -8px; }
.cplayer .controls svg { width: 12px; height: 12px; }

/* Blocks below the head */
.case-block .label { margin-bottom: 24px; }
.case-head + .scroll-hint + .case-block { margin-top: 0; }
.case-head + .scroll-hint + .case-block .label { margin-bottom: 48px; }

.fragments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.fragments__item--wide { grid-column: 1 / -1; }
.fragments__media { display: block; width: 100%; padding: 0; border: 0; color: inherit; font: inherit; cursor: pointer;
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--tile); }
.fragments__media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.fragments__media:hover video { transform: scale(1.03); }
.fragments__media:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.stills--small { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.stills__item { background: var(--tile); }
.stills__item img { width: 100%; height: auto; }

.next__link { padding-top: 32px; border-top: 1px solid var(--line); align-items: end; }
.next__label { grid-column: 1 / -1; margin-bottom: 24px; }
.next__title { grid-column: 1 / span 8; font-size: var(--fs-display); line-height: .95; letter-spacing: -.03em; transition: color var(--dur-hover) var(--ease); }
.next__link:hover .next__title { color: var(--muted); }
.next__thumb { grid-column: 9 / -1; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tile); }
.next__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.next__link:hover .next__thumb img { transform: scale(1.04); }

@media (max-width: 1279px) {
  .case-head { row-gap: 32px; min-height: 0; padding-bottom: 0; }
  .case-head__film, .case-head__side { grid-column: 1 / -1; align-self: start; }
  .cplayer { width: 100%; }
  .case-head__side { max-width: 64ch; }
  .case-head__title { font-size: var(--fs-h1); line-height: 1.05; }
  .case-head__text { font-size: 15px; }
  .case-head + .scroll-hint + .case-block { margin-top: var(--section); }
  .case-head + .scroll-hint + .case-block .label { margin-bottom: 24px; }
}
@media (max-width: 1000px) { .stills--small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .case-head { row-gap: 24px; padding-top: 48px; }
  .case-head__film { margin-inline: calc(-1 * var(--pad)); }
  .cplayer .controls { left: 8px; right: 8px; bottom: 8px; }
  .stills--small { grid-template-columns: minmax(0, 1fr); }
  .next__title, .next__thumb { grid-column: 1 / -1; }
  .next__thumb { margin-top: 24px; }
  /* Section labels get big on phones */
  .label--section, .work__head .label, .reels__head .label, .process > .label, .quotes > .label, .contact > .label {
    font-size: 30px; letter-spacing: -.02em; text-transform: none; gap: .4em; line-height: 1.1;
  }
  .label--section .sq, .work__head .label .sq, .reels__head .label .sq, .process > .label .sq, .quotes > .label .sq, .contact > .label .sq { width: 8px; height: 8px; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .case-head__film, .spec__row, .spec__row::before, .spec::after, .case-head__text > * { animation: none; }
}

/* ---------- About page ---------- */
.about-page { padding-top: 140px; }
.about-page__intro { max-width: 1100px; }
.about-page__grid { margin-top: var(--section); align-items: start; }
.about-page__side { grid-column: 1 / 5; }
.about-page__text { grid-column: 5 / 9; }
.about-page__text p + p { margin-top: 14px; }
.portrait { margin-top: 24px; max-width: 320px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-page__name { margin-top: 14px; }
.facts__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 20px 0 28px; border-top: 1px solid var(--line); }
.facts__row:last-of-type { border-bottom: 1px solid var(--line); }
.facts__row .label { grid-column: 1 / 5; align-self: start; }
.facts__list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px var(--gap); font-size: 13px; }
.facts__note { margin-top: 24px; }

/* ---------- Contact page ---------- */
.contact-page { padding-top: 120px; align-items: start; }
.contact-page__side { grid-column: 1 / 5; position: sticky; top: 80px; }
.contact-page__title { font-size: clamp(40px, 4.4vw, 80px); }
.contact-page__reply { margin-top: 16px; font-size: 13px; }
.contact-page__label { margin-top: 56px; }
.next-steps { margin-top: 14px; }
.next-steps li { display: flex; gap: 20px; padding: 6px 0; font-size: 13px; }
.contact-page__alt { margin-top: 12px; font-size: 13px; }
.next-steps + .contact-page__alt { margin-top: 48px; }
.contact-page__alt sup { margin-left: 4px; }

.brief { grid-column: 6 / 13; }
.brief fieldset { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.brief legend { margin-bottom: 12px; padding: 0; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; gap: 10px; min-height: 44px; height: 100%; padding: 10px 12px;
  border: 1px solid var(--line); font-size: 13px; line-height: 1.3; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.chip span i { width: 7px; height: 7px; border: 1px solid var(--ink); flex: none; transition: background .2s; }
.chip:hover span { border-color: var(--line-strong); }
.chip input:checked + span { border-color: var(--ink); }
.chip input:checked + span i { background: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.field { display: block; margin-bottom: 36px; }
.field > .meta { display: block; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0; font: inherit; font-size: 15px; background: transparent; color: var(--ink); resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.brief ::placeholder { color: #767676; }   /* 4.6:1 on black */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.brief__about { margin: 8px 0 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief__summary { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.01em; line-height: 1.7; margin-top: 8px; }
.blank { display: inline-block; min-width: 96px; border-bottom: 1px solid var(--ink); text-align: center; padding: 0 6px; line-height: 1.25; }
.blank.is-filled { border-bottom-color: transparent; min-width: 0; padding: 0; }
.brief__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.brief__progress { display: flex; align-items: center; gap: 12px; }
.brief__progress .dots { margin-left: 0; gap: 4px; }
.brief__send { font-size: 30px; line-height: 1.1; letter-spacing: -.01em; border-bottom: 1px solid currentColor; color: var(--muted); transition: color .3s; }
.brief__send.is-ready, .brief__send:hover { color: var(--ink); }
.brief__send:disabled { opacity: .5; cursor: wait; }
.brief__legal { margin-top: 16px; text-transform: none; letter-spacing: 0; }
.brief__status { margin-top: 16px; font-size: 13px; min-height: 1em; }
.brief__status.is-error { color: #ff6b6b; }

/* ---------- Legal / 404 ---------- */
.legal { padding-top: 140px; }
.legal__body { margin-top: 48px; max-width: 640px; }
.legal__body p { margin-top: 12px; }
.legal__body .label { margin-top: 40px; }
.notfound .hero__title { margin: 16px 0 32px; }

@media (max-width: 1024px) {
  .chips { grid-template-columns: repeat(2, 1fr); }
  .contact-page__side { grid-column: 1 / 6; }
  .brief { grid-column: 7 / 13; }
}

@media (max-width: 768px) {
  .page-head { padding-top: 104px; }
  .reels__rail { grid-auto-columns: 62%; }
  .reels__track { grid-auto-columns: 62cqw; }
  .reels__count { display: none; }
  .about-page { padding-top: 104px; }
  .about-page__grid { display: block; }
  .about-page__text { margin-top: 24px; }
  .facts__row { display: block; }
  .facts__list { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .contact-page { display: block; padding-top: 104px; }
  .contact-page__side { position: static; }
  .brief { margin-top: 56px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .brief__send { font-size: 26px; }
  .work__index a { grid-template-columns: 32px 1fr auto; }
  .work__index a .idx__year { display: none; }
  .work__index a > .idx__type { display: block; }
  .legal { padding-top: 104px; }
}

/* =========================================================
   Avatar head next to the logo (original artwork + live eyes)
   ========================================================= */
.nav__brand { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
/* small and purely decorative: no hover / pointer reactions */
.avatar { display: inline-block; flex: none; width: 22px; height: 22px; margin: -4px 0 -3px; pointer-events: none; }
.avatar__rig { position: relative; display: block; width: 100%; height: 100%; transform-origin: 46% 95%; animation: avatar-bob 3.6s ease-in-out infinite; }
.avatar__img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.avatar__live { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.avatar__eyes { transition: transform .18s var(--ease); }
.avatar__eye { transform-box: fill-box; transform-origin: center; animation: avatar-blink 5s infinite; }
.avatar__eye + .avatar__eye { animation-delay: .04s; }
.nav__brand:hover { color: var(--ink); }
@keyframes avatar-bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: translateY(-2px) rotate(4deg); } }
@keyframes avatar-blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.08); } 96% { transform: scaleY(1); } }

/* No mouse: the eyes look around on their own (units = artwork pixels) */
@media (hover: none), (pointer: coarse) {
  .avatar__eyes { animation: avatar-look 7s ease-in-out infinite; }
  @keyframes avatar-look { 0%, 20%, 100% { transform: none; } 30%, 45% { transform: translate(16px, -5px); } 55%, 70% { transform: translate(-18px, 5px); } }
}
@media (prefers-reduced-motion: reduce) {
  .avatar__rig, .avatar__eye, .avatar__eyes { animation: none !important; }
}

/* =========================================================
   Mascot in Get in touch
   ========================================================= */
.contact { position: relative; }
/* full-width desk line at the bottom of the section; the mascot sits on it */
.contact { padding-bottom: 28px; }
.contact::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--line-strong); }
/* clipped only at the desk line, so he can jump and sway above it */
.mascot { position: absolute; right: calc(var(--pad) + 2vw); bottom: 1px; width: clamp(150px, 13vw, 230px); margin: 0; clip-path: inset(-60% -40% 0 -40%); cursor: pointer; }
/* rig: peeks up from behind the desk when it scrolls into view + leans toward the cursor */
.mascot__rig { position: relative; transform-origin: 50% 100%; translate: 0 2.4%; rotate: var(--lean, 0deg);
  transition: translate 1.1s cubic-bezier(.3, 1.45, .5, 1), rotate .8s cubic-bezier(.25, 1, .4, 1); }
.mascot.is-armed:not(.is-in) .mascot__rig { translate: 0 105%; transition-duration: 0s; }
/* body: idle breathing + an occasional head tilt; hover wiggle; click jump */
.mascot__body { position: relative; transform-origin: 50% 100%; animation: mascot-breathe 4s ease-in-out infinite, mascot-sway 9s ease-in-out infinite 2s; }
.mascot:hover .mascot__body { animation: mascot-wiggle .9s var(--ease); }
.mascot .mascot__body.is-jump { animation: mascot-jump .85s cubic-bezier(.3, .7, .4, 1); }
@keyframes mascot-sway { 0%, 60%, 100% { rotate: 0deg; } 68% { rotate: -3deg; } 78% { rotate: 2.5deg; } 86% { rotate: -.8deg; } }
@keyframes mascot-jump {
  0% { transform: none; }
  14% { transform: scale(1.06, .9); }
  42% { transform: translateY(-22%) scale(.96, 1.05) rotate(-3deg); }
  70% { transform: translateY(0) scale(1.05, .93); }
  84% { transform: translateY(-3%) scale(.99, 1.01); }
  100% { transform: none; }
}
.mascot__img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.mascot__live { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mascot__eyes { transition: transform .2s var(--ease); }
.mascot__eye { transform-box: fill-box; transform-origin: center; animation: avatar-blink 5.5s infinite .8s; }
.mascot__eye + .mascot__eye { animation-delay: .84s; }
@keyframes mascot-breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-.8%) scaleY(1.012); } }
@keyframes mascot-wiggle { 0%, 100% { transform: none; } 30% { transform: translateY(-5%) rotate(-2.5deg); } 60% { transform: translateY(-.5%) rotate(2deg); } }
@media (max-width: 900px) {
  .contact { padding-bottom: 0; }
  .mascot { position: relative; right: auto; bottom: auto; width: 170px; margin: 48px 8px 1px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot *, .mascot__eyes { animation: none !important; }
  .mascot .mascot__rig { translate: 0 2.4% !important; rotate: none !important; transition: none !important; }
}

/* =========================================================
   Blue accent (the 10%)
   ========================================================= */
:focus-visible { outline-color: var(--blue); }
.sq, .nav__link::before, .nav__menu-btn::before { background: var(--blue); }
.hero__swap, .hero__title .muted, .cta__line.muted { color: var(--blue); }
.link { background-image: linear-gradient(var(--blue), var(--blue)), linear-gradient(var(--line-strong), var(--line-strong)); }
.cta__underline { background-image: linear-gradient(var(--blue), var(--blue)); }
/* COPY / FOLLOW labels: blue, turn white on hover */
.c-fill, .c-thumb { background: var(--blue); }
.controls { color: var(--ink); }
.dots i.is-on { background: var(--blue); border-color: var(--blue); }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.chip input:checked + span i { background: var(--blue); border-color: var(--blue); }
.brief__send.is-ready { color: var(--blue); }
.next__link:hover .next__thumb, .tile:hover .tile__media { outline: 1px solid var(--blue); outline-offset: -1px; }
.cursor-label { color: var(--ink); }
.cursor-label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--blue); vertical-align: 1px; }

/* =========================================================
   Motion system (focus / swap / reel)
   ========================================================= */
@keyframes focus-in { 0% { opacity: 0; filter: blur(12px); transform: translateY(.12em); } }
@keyframes swap-in { 0% { opacity: 0; filter: blur(10px); transform: translateY(.3em); } }
@keyframes swap-out { 100% { opacity: 0; filter: blur(10px); transform: translateY(-.3em); } }
@keyframes reel-in { 0% { opacity: 0; filter: blur(12px); transform: translateY(70px); } }
@keyframes reel-open { 0%, 12% { clip-path: inset(calc(50% - 6px)); } 100% { clip-path: inset(0); } }

/* Words are wrapped in .focus by script.js */
.focus { display: inline-block; }
.inview-wait .focus { opacity: 0; }
.focus-auto .focus, .inview-in .focus {
  animation: focus-in var(--dur-focus) var(--ease) backwards;
  animation-delay: calc(var(--d, 0s) + var(--i, 0) * var(--focus-stagger));
}
.swap-item.is-leaving .focus {
  animation: swap-out .5s cubic-bezier(.45, 0, .55, 1) forwards;
  animation-delay: calc(min(var(--j, 0), 8) * 40ms);
}
.swap-item.is-entering .focus {
  animation: swap-in var(--dur-focus) var(--ease) backwards;
  animation-delay: calc(.12s + min(var(--j, 0), 8) * 50ms);
}
/* Mobile menu links focus in one after another */
.menu.is-open .menu__links .focus { animation: focus-in var(--dur-focus) var(--ease) backwards; animation-delay: calc(.27s + var(--i, 0) * var(--focus-stagger)); }
.menu__foot { transition: opacity .5s var(--ease) .5s; opacity: 0; }
.menu.is-open .menu__foot { opacity: 1; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Tap feedback on touch screens */
@media (max-width: 760px) {
  a:not(.tile):active, button:active { opacity: .55; transition: opacity 0s; }
}

@media (prefers-reduced-motion: reduce) {
  .focus-auto .focus, .inview-in .focus, .swap-item .focus, .menu.is-open .menu__links .focus { animation: none !important; }
  .inview-wait .focus { opacity: 1; }
  .scroll-hint, .scroll-hint.is-shown { filter: none; transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal, .reel { opacity: 1; transform: none; }
  .hero__line > span { transform: none; }
}

/* =========================================================
   Custom cursor (desktop mouse only; script.js adds html.has-cursor)
   Normal = dot · Link = ring + dot · Click = 8-dash burst
   ========================================================= */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select, html.has-cursor [contenteditable] { cursor: text !important; }
html.has-cursor :fullscreen, html.has-cursor :fullscreen * { cursor: auto !important; }   /* our cursor can't render over fullscreen video */
.cursor { position: fixed; left: 0; top: 0; z-index: 2147483647; pointer-events: none; transition: opacity .2s; }
.cursor.is-hidden { opacity: 0; }
/* arrow: tip sits exactly on the pointer */
.cursor__arrow {
  position: absolute; left: -1.9px; top: -1.9px; width: 15px; height: 15px; overflow: visible;   /* 24px / 1.6 */
  transform-origin: 1.9px 1.9px; transition: transform .25s var(--ease), opacity .2s;
  filter: drop-shadow(0 0 6px rgba(61, 123, 255, .55));
}
.cursor.is-link .cursor__arrow { transform: scale(.85); }
.cursor.is-down .cursor__arrow { transform: scale(.8); }
.cursor.is-text .cursor__arrow { opacity: 0; }
.cursor[data-mode="media"] .cursor__arrow { opacity: 0; transform: scale(.4); }
/* follower ring (positioned + sized from JS) */
.cursor-ring {
  position: fixed; left: 0; top: 0; width: 26px; height: 26px; z-index: 2147483646; pointer-events: none;
  border: 1.5px solid rgba(61, 123, 255, .45); border-radius: 50%;
  display: grid; place-items: center; transition: opacity .25s, border-color .25s, background-color .25s;
}
.cursor-ring.is-hidden, .cursor-ring[data-mode="text"] { opacity: 0; }
.cursor-ring[data-mode="link"] { border-color: var(--blue); }
.cursor-ring[data-mode="media"] { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 28px rgba(61, 123, 255, .45); }
.cursor-ring__label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease);
}
.cursor-ring[data-mode="media"] .cursor-ring__label { opacity: 1; transform: none; }
html.has-cursor .cursor-label { display: none; }   /* the ring shows the label instead */
/* blue trail canvas */
.cursor-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2147483646; pointer-events: none; }

.cursor-burst { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 2147483647; pointer-events: none; }
.cursor-burst i { position: absolute; left: 0; top: 0; transform: rotate(var(--a)); }
.cursor-burst i::before {
  content: ""; position: absolute; left: -1.5px; top: -6px; width: 3px; height: 9px; background: var(--blue);
  animation: cursor-burst .45s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes cursor-burst {
  0% { transform: translateY(-8px) scaleY(.4); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translateY(-24px) scaleY(1); opacity: 0; }
}
@media (hover: none), (pointer: coarse) { .cursor, .cursor-burst, .cursor-trail, .cursor-ring { display: none; } }

/* <picture> wrappers must not change layout */
.avatar__rig picture, .mascot__rig picture { display: contents; }
