/* ==========================================================
   Aleaf Studios — styles (home + project pages)
   ========================================================== */

/* Fonts (all SIL Open Font License): Fudd for headings, Superior Mono for
   text. Avocado is here too as an alternative heading face. */
@font-face { font-family: "Fudd"; src: url("assets/fonts/fudd-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fudd"; src: url("assets/fonts/fudd-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Superior Mono"; src: url("assets/fonts/superior-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Superior Mono"; src: url("assets/fonts/superior-mono-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Avocado"; src: url("assets/fonts/avocado-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Avocado"; src: url("assets/fonts/avocado-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #121212;
  --bg-2: #1a1a1a;
  --ink: #f2efe9;
  --muted: rgba(242, 239, 233, 0.66);
  --line: rgba(242, 239, 233, 0.14);

  /* --serif is the heading face (the name predates the switch to Fudd) */
  --serif: "Fudd", "Helvetica Neue", Arial, sans-serif;
  --sans: "Superior Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mono: "Superior Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ---------- Curtain (first load, home only) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease) 0.15s;
}
.curtain__mark {
  width: 72px; opacity: 0; transform-origin: 40% 90%;
  animation: markIn 0.9s var(--ease) forwards, sway 2.4s ease-in-out 0.9s infinite;
}
@keyframes markIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }
body.is-loaded .curtain { transform: translateY(-100%); }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-group(hero-media) { animation-duration: 0.8s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
main, .footer { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
body.is-leaving main, body.is-leaving .footer { opacity: 0; transform: translateY(-12px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.5s var(--ease), transform 0.6s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(18, 18, 18, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
body.menu-open .nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a, .nav__cta { position: relative; transition: opacity 0.3s; }
.nav__links a::after, .nav__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-current { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1; }
.nav__logo img { height: 38px; width: auto; }
.nav__cta { justify-self: end; font-size: 15px; }

/* Burger (phones only) */
.nav__burger {
  display: none; justify-self: end;
  width: 44px; height: 44px; margin-right: -10px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ink);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
body.menu-open .nav__burger span:first-child { top: 22px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 8vh) var(--gutter) 40px;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--serif); font-size: clamp(56px, 16vw, 96px); line-height: 1.02;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.menu nav a:nth-child(2) { transition-delay: 0.06s; }
.menu nav a:nth-child(3) { transition-delay: 0.12s; }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.menu__mail { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--muted); }

/* ---------- Line reveal (Ogilvy-style text rise) ---------- */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span, .reveal-line > em {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}
body.is-loaded .reveal-line > span, body.is-loaded .reveal-line > em { transform: none; }

/* Split statements: each line rises when scrolled into view */
[data-split] .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
[data-split] .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-split].is-in .line > span { transform: none; }

.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade-up.is-in { opacity: 1; transform: none; }

/* ---------- Home: one screen, scroll swaps the media ---------- */
body.page-home { height: 100vh; height: 100svh; overflow: hidden; overscroll-behavior: none; }
.stage { position: fixed; inset: 0; overflow: hidden; background: #000; cursor: default; touch-action: none; }

/* Two half-width columns, the left one a list of left-hand media and the right
   one a list of right-hand media, running in opposite directions. */
.split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.split__col { position: relative; overflow: hidden; height: 100%; }
.split__track { position: relative; height: 100%; }
/* Each column is a stack: the current creative, and the next one being wiped open over it */
.split__pane { position: absolute; inset: 0; overflow: hidden; visibility: hidden; will-change: transform; backface-visibility: hidden; }

.split__media {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform: scale(1.08); will-change: transform;
}

/* The brand, fixed in the centre above the moving halves, on a soft
   shadow so it reads over any image */
.stage__brand {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
}
.stage__brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 38% at center, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 100%);
}
.stage__brand > * { transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
body:not(.is-loaded) .stage__brand > * { opacity: 0; transform: translateY(26px); }
body.is-loaded .stage__brand > :first-child { transition-delay: 0.9s; }
body.is-loaded .stage__brand > :nth-child(2) { transition-delay: 1.1s; }

/* Home's title is the logo's own typewriter lettering (Basith: "landing keep
   our logo typography"); Fudd stays for every other title */
.slide__brand { margin: 0; line-height: 0; }
.slide__brand img {
  display: block; width: clamp(260px, 44vw, 680px); height: auto;
  filter: drop-shadow(0 2px 22px rgba(0, 0, 0, 0.35));
}
@media (max-width: 640px) { .slide__brand img { width: 84vw; } }
.slide__tagline { margin: 22px 0 0; font-size: clamp(14px, 1.3vw, 19px); letter-spacing: 0.01em; color: rgba(242, 239, 233, 0.88); }

/* Screen-reader copy of the current slide */
.stage__copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Counter, progress bars, hint */
.stage__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(242, 239, 233, 0.8);
  opacity: 0; transition: opacity 1s 1.6s;
}
body.is-loaded .stage__foot { opacity: 1; }
.stage__bars { display: flex; gap: 6px; }
.stage__bar { width: 22px; height: 18px; position: relative; }
.stage__bar::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(242, 239, 233, 0.35); transition: background 0.4s, height 0.4s; }
.stage__bar:hover::after { background: rgba(242, 239, 233, 0.8); }
.stage__bar.is-active::after { background: var(--ink); height: 2px; }
.stage__hint { justify-self: end; text-transform: uppercase; letter-spacing: 0.1em; transition: opacity 0.6s; }
.stage.has-moved .stage__hint { opacity: 0; }

.stage:not(.is-intro) .split { cursor: pointer; }

/* ---------- Intro statement ---------- */
.intro { padding: clamp(96px, 16vw, 220px) var(--gutter) clamp(80px, 12vw, 180px); max-width: 1440px; margin: 0 auto; }
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 1.12; letter-spacing: -0.01em;
  margin: 0; padding-left: clamp(0px, 8vw, 128px); max-width: 1240px;
}

/* ---------- Embedded video that fills its box like object-fit: cover ----------
   YouTube/Vimeo iframes are 16:9; size them to cover the box and overscan
   a little so the player's title bar and edges stay out of view. */
.card__preview { container-type: size; overflow: hidden; }
.card__preview iframe {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  translate: -50% -50%; scale: 1.25;
  border: 0; pointer-events: none;
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid var(--line); margin: 0 var(--gutter) 40px;
}
.section-title {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(44px, 7.5vw, 120px); line-height: 0.95; letter-spacing: -0.02em;
}
.filters { display: inline-flex; gap: 4px; flex-wrap: wrap; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.filter {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 18px; border-radius: 999px;
  color: var(--muted); transition: color 0.3s, background 0.3s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Work grid: uniform cards, the name shown on hover ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 14px); padding: 0 var(--gutter);
}
.card { display: block; opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.card.is-in { opacity: 1; transform: none; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; overflow: hidden; background: var(--bg-2);
  aspect-ratio: 16 / 10; border-radius: 10px;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.03); }

/* Film hover preview: a muted clip fades in over the cover */
.card__preview { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease); }
.card__preview.is-playing { opacity: 1; }
.card__preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.card__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(40px, 5vw, 80px) clamp(16px, 1.8vw, 28px) clamp(14px, 1.6vw, 24px);
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.card:hover .card__info, .card:focus-visible .card__info { opacity: 1; transform: none; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 44px); line-height: 1; margin: 0; }
.card__sub { margin: 8px 0 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 239, 233, 0.82); }
.card__sub i { font-style: normal; padding: 0 0.4em; opacity: 0.7; }
/* No hover on touch screens: keep the names visible */
@media not (hover: hover) { .card__info { opacity: 1; transform: none; } }

/* All work page */
.work-page { padding-top: var(--nav-h); padding-bottom: clamp(80px, 10vw, 160px); }
.work-page__head { display: flex; justify-content: center; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(20px, 2.4vw, 32px); }

/* ---------- Clients marquee ---------- */
.clients { padding: clamp(60px, 8vw, 110px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  transform: skewX(var(--skew, 0deg)); transition: transform 0.5s var(--ease);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 76px); line-height: 1.1;
  padding: 0 0.55em; white-space: nowrap; display: flex; align-items: center; gap: 1.1em;
}
.marquee__item::after { content: ""; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--muted); }
.marquee__item:nth-child(even) { font-style: italic; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 160px); max-width: 1440px; margin: 0 auto; }
.about__lead {
  font-family: var(--serif); font-weight: 400; margin: 0 0 clamp(48px, 7vw, 96px);
  font-size: clamp(48px, 8.5vw, 136px); line-height: 0.95; letter-spacing: -0.02em;
}
.about__body { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__media { margin: 0; position: sticky; top: calc(var(--nav-h) + 24px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.about__media img, .about__media video { width: 100%; height: 100%; object-fit: cover; }
.about__copy p {
  font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; margin: 0 0 1.4em; color: rgba(242, 239, 233, 0.86); max-width: 62ch;
}
.about__stat {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line);
}
.about__num { font-family: var(--serif); font-size: clamp(80px, 10vw, 160px); line-height: 0.85; letter-spacing: -0.03em; }
.about__numlabel { color: var(--muted); font-size: 18px; line-height: 1.4; max-width: 320px; }

.services { list-style: none; padding: 0; margin: clamp(72px, 9vw, 140px) 0 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease), color 0.4s;
}
.service:hover { padding-left: 16px; }
.service__no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; margin: 0; }
.service h3::after { content: " →"; opacity: 0; display: inline-block; transform: translateX(-12px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.service:hover h3::after { opacity: 1; transform: none; }
.service p { margin: 0; color: var(--muted); max-width: 440px; font-size: 19px; line-height: 1.45; }

.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 100px); }
.founder { padding-top: 20px; border-top: 1px solid var(--line); }
.founder__name { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); margin: 0; line-height: 1.1; }
.founder__role { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- Contact ---------- */
.contact { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(0.25) brightness(0.85); }
.contact__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,18,18,1) 0%, rgba(18,18,18,0.55) 30%, rgba(18,18,18,0.75) 100%); }
.contact__inner { position: relative; width: 100%; padding: 160px var(--gutter) clamp(56px, 7vw, 100px); }
.contact__title {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(52px, 10vw, 168px); line-height: 0.92; letter-spacing: -0.02em;
}
.contact__mail {
  display: inline-block; margin-top: 28px;
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.1;
  border-bottom: 1px solid rgba(242, 239, 233, 0.4); transition: border-color 0.3s;
}
.contact__mail:hover { border-color: var(--ink); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; padding: 15px 26px; border-radius: 999px;
  border: 1px solid rgba(242, 239, 233, 0.4);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.btn:hover { border-color: var(--ink); background: rgba(242, 239, 233, 0.08); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.contact__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line);
}
.contact__grid .label { margin-bottom: 10px; }
.contact__grid p { margin: 0; }
.contact__grid a { display: block; width: fit-content; transition: opacity 0.3s; }
.contact__grid a:hover { opacity: 0.6; }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 8vw, 110px) var(--gutter) 28px; border-top: 1px solid var(--line); }
.footer__brand {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px);
  margin: 0 auto clamp(40px, 6vw, 80px);
}
.footer__mark { width: clamp(40px, 6vw, 96px); height: auto; transition: transform 0.8s var(--ease); }
.footer__brand:hover .footer__mark { transform: rotate(-10deg); }
.footer__name {
  font-family: var(--serif); font-size: clamp(56px, 11vw, 176px); line-height: 0.9; letter-spacing: -0.03em;
  white-space: nowrap;
}
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__row a:hover { color: var(--ink); }

/* ---------- Project page ---------- */
.project__play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.reel__circle {
  width: clamp(76px, 8vw, 112px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  font-size: 16px; border: 1px solid rgba(242, 239, 233, 0.75);
  background: rgba(18, 18, 18, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s;
}
.reel__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.project__play:hover .reel__circle { transform: scale(1.08); background: var(--ink); color: var(--bg); }

.project { padding-top: var(--nav-h); }
.project__head { padding: clamp(48px, 8vw, 120px) var(--gutter) clamp(36px, 5vw, 64px); }
.project__back {
  display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: clamp(32px, 5vw, 64px);
  transition: color 0.3s, transform 0.5s var(--ease);
}
.project__back:hover { color: var(--ink); transform: translateX(-4px); }
.project__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.project__title {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(52px, 10vw, 168px); line-height: 0.92; letter-spacing: -0.02em;
}
.project__title em { color: var(--muted); }
.project__title .reveal-line:first-child > span { transition-delay: 0.1s; }
.project__title .reveal-line:last-child > em { transition-delay: 0.22s; }

.project__player { margin: 0 var(--gutter); position: relative; overflow: hidden; background: var(--bg-2); }
.project__player { aspect-ratio: 16 / 9; max-height: 92svh; }
.project__player > img { width: 100%; height: 100%; object-fit: cover; }
.project__player::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); pointer-events: none; }
.project__player:has(iframe)::after { display: none; }
.project__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project__player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
/* Vertical (9:16) films get a tall player, centred */
.project__player--tall { aspect-ratio: 9 / 16; height: 88vh; height: 88svh; max-height: none; width: auto; margin-left: auto; margin-right: auto; }
/* Photo slideshow: one still at a time, fading */
.show { position: relative; margin: 0 var(--gutter) 56px; height: 82vh; height: 82svh; min-height: 420px; }
.show__slide {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none;
}
.show__slide.is-active { opacity: 1; pointer-events: auto; }
.show__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.show__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; font-size: 18px;
  border: 1px solid var(--line); background: rgba(18, 18, 18, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.show__nav:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.show__nav--prev { left: 12px; }
.show__nav--next { right: 12px; }
.show__count { position: absolute; left: 50%; bottom: -36px; translate: -50% 0; margin: 0; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

.project__info {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(64px, 9vw, 140px) var(--gutter);
}
.project__text { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; margin: 0; max-width: 60ch; color: rgba(242, 239, 233, 0.86); }
.project__meta { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; align-content: start; }
.project__meta div { padding: 16px 0; border-top: 1px solid var(--line); }
.project__meta dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.project__meta dd { margin: 6px 0 0; font-size: 16px; }


/* About page */
.about-page { padding-top: var(--nav-h); }
.about-page__head { padding: clamp(48px, 8vw, 120px) var(--gutter) 0; max-width: 1440px; margin: 0 auto; }
.about-page__head .project__eyebrow { margin-bottom: 28px; }
.about-page__head .statement { padding-left: 0; }
.about-page .about { padding-top: clamp(64px, 9vw, 140px); }

/* Contact page: one full screen */
.contact--page { min-height: 100vh; min-height: 100svh; }
.contact--page .contact__inner { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 32px; }
.contact--page .contact__title .reveal-line > span { transition-delay: 0.1s; }
.contact__legal { margin: clamp(32px, 4vw, 56px) 0 0; font-size: 13px; color: var(--muted); }

/* Clients (Work page): a ruled grid of logos in the site's own palette */
.clients-panel { margin: clamp(96px, 12vw, 180px) var(--gutter) 0; }
.clients-panel__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 32px; margin-bottom: 0;
}
.clients-panel__title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.5vw, 120px); line-height: 0.95; letter-spacing: -0.02em;
}
.clients-panel__note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.clients-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; aspect-ratio: 12 / 5;
  transition: background 0.5s var(--ease);
}
.client:hover { background: var(--bg-2); }
/* Logos are drawn in white whatever their original colour; badge-style
   logos stay greyscale so their inner detail survives */
.client img {
  position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.72; transition: opacity 0.4s;
}
.client img.is-grey { filter: grayscale(1) brightness(1.1); }
.client:hover img { opacity: 1; }
.client--more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.client--more span { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 26px); color: var(--muted); }
.client--more small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Next project */
.next { position: relative; display: block; height: 78vh; height: 78svh; min-height: 420px; overflow: hidden; }
.next__media { position: absolute; inset: 0; }
.next__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter 0.8s; filter: grayscale(0.3) brightness(0.8); }
.next:hover .next__media img { transform: scale(1.04); filter: none; }
.next__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.1) 60%); }
.next__text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vw, 64px); }
.next__label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.next__title { display: block; font-family: var(--serif); font-size: clamp(44px, 8vw, 128px); line-height: 0.95; letter-spacing: -0.02em; }
.next__title em { color: var(--muted); }

/* ---------- Motion extras ---------- */

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
/* A full-screen animated layer is too costly for phones; it made Home choppy there */
@media (hover: none), (max-width: 640px) { .grain { display: none; } }

/* Custom cursor over work */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform 0.45s var(--ease);
}
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); transition: transform 0.12s linear; }
@media (hover: hover) and (pointer: fine) {
  [data-cursor], [data-cursor] * { cursor: none; }
}
@media not ((hover: hover) and (pointer: fine)) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about__body { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .service { grid-template-columns: 48px 1fr; }
  .service p { grid-column: 2; }
  .project__info { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .client { aspect-ratio: 1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__logo { grid-row: 1; grid-column: 1; }
  .nav__logo img { height: 30px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; grid-row: 1; grid-column: 2; }
  .stage__bars { display: none; }
  .stage__foot { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__actions .btn { flex: 1 1 100%; justify-content: center; }
  .menu__mail { font-size: 22px; }
  .about__stat { grid-template-columns: 1fr; gap: 8px; }
  .contact__grid { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .project__player { aspect-ratio: 4 / 5; }
  .project__player--tall { aspect-ratio: 9 / 16; height: auto; width: calc(100% - 2 * var(--gutter)); }
  .show { height: 68svh; min-height: 0; }
  .show__nav { width: 44px; height: 44px; }
  .project__meta { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .grain, .cursor { display: none; }
  .card { opacity: 1; transform: none; }
}
