/* ==========================================================================
   Ventarrón — studio site
   Dark editorial system. Tokens below are binding; see design-system.md.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Medium.woff') format('woff');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Editors Note';
  src: url('../fonts/EditorsNote-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Editors Note';
  src: url('../fonts/EditorsNote-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Editors Note';
  src: url('../fonts/EditorsNote-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --bg: #0a0a09;
  --text: #f3f0e9;
  --text-secondary: #b8b4a9;
  --text-soft: #d8d5cb;
  --text-muted: #8f8b7f;
  --text-dim: #7d786c;
  --text-inactive: #4a4742;
  --loader-dim: #3a3733;
  --divider: rgba(243, 240, 233, 0.14);
  --border-idle: rgba(243, 240, 233, 0.4);
  --pill-bg: #c9a99c;
  --pill-text: #1a1a1a;
  --link: #e3ff4d;
  --link-hover: #f2ffb0;

  --sans: 'Neue Montreal', system-ui, -apple-system, sans-serif;
  --serif: 'Editors Note', Georgia, serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(60px, 10vh, 120px);
  --section-y-compact: clamp(40px, 6vh, 64px);
  --gap: clamp(20px, 3vw, 32px);

  --radius: 10px;
  --radius-pill: 100px;

  --ease-fill: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-img: cubic-bezier(0.22, 0.68, 0.35, 1);
}

/* --- Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

::selection {
  background: var(--link);
  color: var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--bg);
}

/* --- Layout primitives ---------------------------------------------------- */

.section {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--divider);
}

.section--compact {
  padding: var(--section-y-compact) var(--gutter);
}

.section--flush {
  padding-left: 0;
  padding-right: 0;
}

.section--first {
  border-top: 0;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.label--wide {
  letter-spacing: 0.14em;
}

.descriptor {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-muted);
}

.descriptor--lg {
  font-size: 20px;
  color: var(--text);
}

.body-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-copy--sm {
  font-size: 14px;
}

.body-copy--bright {
  color: var(--text-soft);
}

.measure {
  max-width: 520px;
}

/* --- Media ---------------------------------------------------------------- */

.media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #14140f;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* The tilt lives on .media, not on the img inside it: `perspective` on the
   wrapper only builds a 3D context for its direct children, so rotating the
   grandchild img renders as a flat skew with no depth. */
.media--tilt {
  transition: transform 0.35s var(--ease-img), filter 0.35s ease;
  will-change: transform;
}

/* --- Rolling-text link ---------------------------------------------------- */

.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-dim);
  transition: color 0.35s ease;
}

.roll__t1,
.roll__t2 {
  display: block;
  white-space: nowrap;
}

.roll__t2 {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
}

.roll__t1 > span,
.roll__t2 > span {
  display: inline-block;
  transition: transform 0.42s var(--ease-fill);
}

.roll__t2 > span {
  transform: translateY(105%);
}

.roll:hover .roll__t1 > span,
.roll:focus-visible .roll__t1 > span {
  transform: translateY(-105%);
}

.roll:hover .roll__t2 > span,
.roll:focus-visible .roll__t2 > span {
  transform: translateY(0);
}

.roll.is-current {
  color: var(--text);
}

/* Same leak as the wordmark: the global a:hover accent outranks .roll and
   tinted the outgoing copy mid-roll. */
a.roll:hover,
a.roll:focus-visible {
  color: var(--text-dim);
}

a.roll.is-current:hover,
a.roll.is-current:focus-visible {
  color: var(--text);
}

/* When .roll sits inside a larger control, the control owns the hover. */
.pill:hover .roll__t1 > span,
.pill:focus-visible .roll__t1 > span,
.filter:hover .roll__t1 > span,
.filter:focus-visible .roll__t1 > span,
.contact-link:hover .roll__t1 > span,
.contact-link:focus-visible .roll__t1 > span {
  transform: translateY(-105%);
}

.pill:hover .roll__t2 > span,
.pill:focus-visible .roll__t2 > span,
.filter:hover .roll__t2 > span,
.filter:focus-visible .roll__t2 > span,
.contact-link:hover .roll__t2 > span,
.contact-link:focus-visible .roll__t2 > span {
  transform: translateY(0);
}

/* --- Outlined pill button ------------------------------------------------- */

.pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 14px 28px;
  border: 1px solid var(--border-idle);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.35s ease;
}

.pill:hover,
.pill:focus-visible {
  color: var(--text);
  border-color: var(--text);
}

.pill--lg {
  padding: 16px 32px;
  letter-spacing: 0.06em;
}

.pill__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-fill);
  pointer-events: none;
}

.pill:hover .pill__fill,
.pill:focus-visible .pill__fill {
  transform: translateY(0);
}

.pill .roll {
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.pill .roll__t2 {
  color: var(--bg);
}

/* --- Cursor --------------------------------------------------------------- */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}

.cursor-dot.is-large {
  width: 18px;
  height: 18px;
}

.cursor-dot.is-hidden {
  opacity: 0;
}

.hover-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

/* --- Lightbox player ------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(10, 10, 9, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox__dialog {
  position: relative;
  width: min(1280px, 100%);
}

.lightbox__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  transform: scale(0.98);
  transition: transform 0.4s var(--ease-img);
}

.lightbox.is-open .lightbox__frame {
  transform: none;
}

.lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
}

/* The player needs a real pointer for its own controls. */
body.is-modal-open,
body.is-modal-open a,
body.is-modal-open button {
  cursor: auto;
}

body.is-modal-open .cursor-dot {
  opacity: 0;
}

/* --- Nav ------------------------------------------------------------------ */

.nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--divider);
}

/* Sized to stand as tall as the Quick Links column beside it. */
.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* The accent link colour is for body links, not for the chrome. */
.wordmark:hover,
.wordmark:focus-visible {
  color: var(--text);
}

.wordmark sup,
.reg {
  font-size: 0.45em;
  vertical-align: super;
  letter-spacing: 0;
}

.nav__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__group--end {
  align-items: flex-end;
  text-align: right;
}

.nav__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.nav__sub {
  font-size: 13px;
  color: var(--text-dim);
}

.nav__links {
  display: flex;
  gap: 6px;
}

/* --- Loader --------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.loader__stack {
  position: relative;
}

.loader__dim,
.loader__wipe {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 140px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

.loader__dim {
  color: var(--loader-dim);
  opacity: 0;
  transition: opacity 1s ease-out;
}

.loader__wipe {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.loader.is-lit .loader__dim {
  opacity: 1;
}

.loader.is-wiped .loader__wipe {
  clip-path: inset(0 0 0 0);
}

.loader__dim sup,
.loader__wipe sup {
  font-size: 0.4em;
  vertical-align: super;
}

/* --- Scroll reveals ------------------------------------------------------- */

/* Gated on js-on so the page stays readable when the script never runs. */
.js-on .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-on .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- Home: hero ----------------------------------------------------------- */

.hero {
  padding: clamp(28px, 5vh, 56px) var(--gutter);
}

.hero__grid {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  flex-wrap: wrap;
}

.hero__col {
  flex: 1;
  min-width: 300px;
}

.hero__title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

/* Hero entrance: the columns fade up once the loader clears. */
.js-on .hero-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-on .hero-item.is-in {
  opacity: 1;
  transform: none;
}

.hero__reel {
  position: relative;
  flex: 1;
  min-width: 300px;
  perspective: 1200px;
  display: block;
  color: inherit;
}

.hero__reel:hover {
  color: inherit;
}

.hero__reel .media {
  aspect-ratio: 16 / 10;
}

/* --- Home: wordmark band -------------------------------------------------- */

/* The band clips by design — the wordmark is meant to run past the edges. */
.wordmark-band {
  padding: clamp(8px, 2vh, 24px) var(--gutter);
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
}

.wordmark-band__text {
  margin: 0;
  display: inline-block;
  font-weight: 500;
  font-size: 500px;
  line-height: 0.9;
  /* Handoff spec was -0.1em; loosened on request — the letters were touching. */
  letter-spacing: -0.065em;
  color: var(--text);
  white-space: nowrap;
}

.wordmark-band__text sup {
  font-size: 0.4em;
  vertical-align: super;
  letter-spacing: 0;
}

/* --- Home: about ---------------------------------------------------------- */

/* The two images are absolutely positioned, so they add no height and used to
   spill past the stage and collide with the block below. The second floor keeps
   the stage tall enough to contain them: the taller image sits at top:20% and is
   0.48x the stage width, so the stage needs ~0.6x its own width — capped at
   700px, where that image stops growing (min(36%, 420px)). */
.about__stage {
  position: relative;
  min-height: max(clamp(480px, 68vh, 720px), min(55vw, 700px));
  margin-top: clamp(40px, 6vh, 72px);
}

.about__img {
  position: absolute;
  z-index: 1;
}

.about__img--a {
  left: 0;
  top: 0;
  width: min(30%, 320px);
  aspect-ratio: 3 / 4;
}

.about__img--b {
  right: 4%;
  top: 20%;
  width: min(36%, 420px);
  aspect-ratio: 3 / 4;
}

.about__statement {
  position: absolute;
  left: 0;
  top: 38%;
  z-index: 2;
  margin: 0;
  max-width: 1100px;
  font-weight: 500;
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.about__word {
  display: inline-block;
  margin-right: 0.28em;
}

.js-on .about__word {
  color: var(--text-inactive);
  transition: color 0.35s linear;
}

.js-on .about__word.is-lit {
  color: var(--text);
}

.about__outro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  margin-top: clamp(80px, 11vh, 140px);
}

.about__outro-copy {
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.about__outro-copy .pill {
  margin-top: 24px;
}

.about__outro-img {
  flex: none;
  width: min(340px, 100%);
  aspect-ratio: 4 / 3.4;
}

/* --- Headings ------------------------------------------------------------- */

.h-display {
  margin: 0;
  font-weight: 500;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text);
}

.h-section {
  margin: 0 0 24px;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* --- Home: featured work -------------------------------------------------- */

.work-intro .pill {
  margin: 24px 0 clamp(48px, 7vh, 88px);
}

.work-row {
  display: block;
  color: var(--text);
  margin-bottom: clamp(40px, 6vh, 64px);
}

.work-row:hover {
  color: var(--text);
}

.work-row__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  perspective: 1200px;
}

.work-row__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
}

.work-row__title {
  font-size: 15px;
  color: var(--text);
}

.index {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-muted);
  flex: none;
}

/* --- Services ------------------------------------------------------------- */

.services__title {
  margin: clamp(48px, 8vh, 100px) 0;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.service {
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vh, 44px) 0;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
}

.service__title {
  flex: 1;
  min-width: 220px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.service__desc {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Marquee -------------------------------------------------------------- */

.marquee {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--divider);
  overflow: hidden;
}

.marquee__head {
  margin-bottom: clamp(32px, 5vh, 56px);
  padding: 0 var(--gutter);
}

.marquee__viewport {
  overflow: hidden;
  max-width: 100%;
}

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee__item {
  flex: none;
  height: 260px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- Studio statement ----------------------------------------------------- */

.statement {
  text-align: center;
}

.statement p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.statement .pill {
  margin-top: 32px;
}

.marquee .statement p {
  max-width: 640px;
  margin-top: clamp(40px, 6vh, 64px);
  padding: 0 var(--gutter);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.marquee .statement {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  padding: var(--section-y-compact) var(--gutter);
  border-top: 1px solid var(--divider);
}

.footer__groups {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__group--end {
  align-items: flex-end;
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.footer__links {
  display: flex;
  gap: 6px;
}

.footer__links .roll {
  font-size: 14px;
}

.footer-year {
  padding: clamp(8px, 2vh, 24px) var(--gutter) clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--divider);
  text-align: center;
  overflow: hidden;
}

.footer-year h2 {
  margin: 0;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 420px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

/* --- Work page ------------------------------------------------------------ */

.work-head {
  padding: clamp(60px, 10vh, 110px) var(--gutter) var(--section-y-compact);
}

.work-head .h-display {
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 var(--gutter) var(--section-y-compact);
  border-bottom: 1px solid var(--divider);
}

.filter {
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border: 1px solid rgba(243, 240, 233, 0.3);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.35s ease;
}

.filter:hover,
.filter.is-active {
  border-color: var(--text);
}

.filter__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-fill);
  pointer-events: none;
}

.filter:hover .filter__fill,
.filter:focus-visible .filter__fill {
  transform: translateY(0);
}

.filter.is-active .filter__fill {
  transform: translateY(0);
  transition: none;
}

.filter .roll {
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.filter .roll__t2 {
  color: var(--bg);
}

.filter.is-active .roll__t1 > span {
  transform: translateY(-105%);
  transition: none;
}

.filter.is-active .roll__t2 > span {
  transform: translateY(0);
  transition: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(48px, 7vh, 80px) var(--gutter) clamp(80px, 12vh, 140px);
}

.work-card {
  display: block;
  color: var(--text);
}

.work-card[hidden] {
  display: none;
}

.work-card:hover {
  color: var(--text);
}

.work-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  perspective: 1200px;
}

.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
}

.work-card__title {
  font-size: 16px;
  color: var(--text);
}

.work-card__cat {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-empty {
  grid-column: span 2;
  padding: 40px 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* --- Lab page ------------------------------------------------------------- */

.lab-stage {
  position: relative;
  height: clamp(420px, 62vh, 640px);
  overflow: hidden;
}

/* Three layers, one owner each, so the reveal, the hover and the pointer
   parallax never write the same property:
     .lab-tile        transform  — JS (drift + parallax)
     .lab-tile__inner opacity, clip-path — the reveal
     .lab-tile__media transform  — reveal scale, then hover scale
   An earlier version drove all three from the outer two elements, which let a
   hover land mid-reveal and strand a tile with its clip-path half closed. */

.lab-tile {
  position: absolute;
  will-change: transform;
  transition: opacity 0.5s ease;
}

.lab-tile__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  will-change: clip-path, opacity;
}

.lab-tile__media {
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Without this the image keeps its intrinsic height and the tile clips it. */
.lab-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js-on .lab-tile__inner {
  opacity: 0;
  clip-path: inset(0% 0% 100% 0%);
}

.js-on .lab-tile__media {
  transform: scale(1.14);
}

.lab-tile.is-in .lab-tile__inner {
  opacity: 1;
  clip-path: inset(0% 0% 0% 0%);
  transition: opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-tile.is-in .lab-tile__media {
  transform: scale(1);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-stage.is-focusing .lab-tile {
  opacity: 0.42;
}

.lab-stage.is-focusing .lab-tile.is-hovered {
  opacity: 1;
}

.lab-tile.is-hovered .lab-tile__media {
  transform: scale(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-hero {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.lab-hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.lab-hero .pill {
  margin-top: 20px;
}

/* --- Contact page --------------------------------------------------------- */

.contact-top {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  align-items: flex-start;
  padding: var(--section-y-compact) var(--gutter);
}

.contact-top__img {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  aspect-ratio: 1 / 1;
}

.contact-top__links {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 16px;
  color: var(--text);
}

.contact-link:hover {
  color: var(--text);
}

.contact-link .roll {
  font-size: 16px;
  color: var(--text);
}

.contact-link .roll__t1 {
  color: var(--text);
}

.contact-link__arrow {
  font-size: 18px;
  display: inline-block;
  transition: transform 0.42s var(--ease-fill);
}

.contact-link:hover .contact-link__arrow {
  transform: translate(4px, -4px);
}

.contact-display {
  padding: clamp(20px, 4vh, 40px) var(--gutter) var(--section-y);
  border-top: 1px solid var(--divider);
}

.contact-display h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(56px, 12vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

/* --- Project detail ------------------------------------------------------- */

.project-head {
  padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(24px, 4vh, 40px);
}

.project-head h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.project-video {
  padding: 0 var(--gutter);
}

.project-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-meta {
  padding: clamp(32px, 5vh, 56px) var(--gutter);
  border-bottom: 1px solid var(--divider);
}

.project-meta__date {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}

.project-meta__row {
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
}

.project-meta__key {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.project-meta__val {
  font-size: 15px;
  color: var(--text);
}

.project-meta p {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.project-gallery {
  padding: clamp(16px, 2.5vh, 28px) var(--gutter);
}

.project-gallery .media {
  aspect-ratio: 16 / 10;
}

.more-works {
  padding: clamp(56px, 8vh, 100px) var(--gutter) clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--divider);
}

.more-works h2 {
  margin: 0 0 32px;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.02em;
}

.more-works h2 sup {
  font-size: 0.4em;
  vertical-align: super;
}

.more-works__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.more-works__card {
  display: block;
  color: var(--text);
}

.more-works__card:hover {
  color: var(--text);
}

.more-works__card .media {
  aspect-ratio: 4 / 3;
}

.more-works__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  font-size: 15px;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-card {
    grid-column: span 1 !important;
  }

  .work-empty {
    grid-column: span 1;
  }

  .about__statement {
    position: static;
    margin-top: clamp(24px, 5vh, 48px);
  }

  .about__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .about__img {
    position: static;
    width: 100% !important;
  }

  .about__img--b {
    width: 100% !important;
  }

  /* Stacked, the copy and the button hugged the left edge while the image
     centred itself. Put all three on one centred axis. */
  .about__outro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about__outro-copy {
    max-width: 420px;
  }

  .about__outro-img {
    width: min(420px, 100%);
  }

  .footer__group--end {
    align-items: flex-start;
  }

  .footer__links,
  .nav__links {
    flex-wrap: wrap;
  }

  .nav__group--end {
    align-items: flex-start;
    text-align: left;
  }
}

/* Phones. The availability column is what forces the nav onto a second row —
   the four links themselves are only ~144px wide and fit at 320px. Dropping it
   keeps the nav a single row without hiding any navigation. */
@media (max-width: 560px) {
  .nav__group--end {
    display: none;
  }
}

@media (hover: none) {
  .cursor-dot,
  .hover-pill {
    display: none;
  }
}

/* --- Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }

  .cursor-dot,
  .hover-pill {
    display: none;
  }

  .js-on .reveal {
    opacity: 1;
    transform: none;
  }

  .js-on .about__word {
    color: var(--text);
  }

  .js-on .lab-tile__inner {
    opacity: 1;
    clip-path: none;
  }

  .js-on .lab-tile__media {
    transform: none;
  }

  .js-on .hero-item {
    opacity: 1;
    transform: none;
  }

  .loader {
    display: none;
  }
}
