/* Akshay Kathe — Director, Mumbai
   Shared styles for the home page and the /work project pages.
   Everything reads fine without JS; motion is layered on through the
   .js / .has-motion classes set in <head> and by script.js.

   Colour: mostly black, off-white and grey, plus one muted cinematic red
   (--accent) used only on small details — labels, dots, arrows, hovers, links.

   Breakpoints: 1100px (small laptop), 900px (tablet portrait), 640px (phone).
   Touch devices ((hover: none)) swap hover effects for always-visible ones. */

:root {
  --bg: #0b0b0a;
  --bg-2: #121211;
  --panel: #171716;
  --ink: #eeebe5;
  --ink-2: #bdb9b1;
  --ink-3: #8c8982;
  --ink-4: #5c5a55;
  --line: rgba(238, 235, 229, 0.1);
  --line-2: rgba(238, 235, 229, 0.2);
  --accent: #c83a4b;
  --accent-rgb: 200, 58, 75;
  --accent-soft: var(--accent);
  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 84px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.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;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Major section titles: Selected work, Selected brands, About, Contact */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.section-head .eyebrow {
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.section-head .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-head__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.mask > span {
  display: inline-block;
}

/* Word masks created by script.js for [data-split] headings */
.split-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.08em 0.1em 0;
  margin: -0.04em -0.08em -0.1em 0;
}

.split-i {
  display: inline-block;
  will-change: transform;
}

.link-underline {
  position: relative;
  display: inline-block;
  color: var(--ink);
  transition: color 0.3s;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.link-underline:hover {
  color: var(--accent);
}

.link-underline:hover::after {
  transform: scaleX(0);
}

/* ---------- Grain, cursor, curtains (injected by script.js) ---------- */

.grain {
  position: fixed;
  inset: -100%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' 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); }
}

.has-cursor,
.has-cursor * {
  cursor: none !important;
}

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor.is-active,
.cursor-dot.is-active {
  opacity: 1;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
}

.cursor {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
}

.cursor__ring {
  position: absolute;
  inset: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
}

.cursor__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bg);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

.cursor.is-hover .cursor__ring {
  transform: scale(1.5);
  background: rgba(255, 255, 255, 0.08);
}

.cursor.is-label {
  mix-blend-mode: normal;
}

.cursor.is-label .cursor__ring {
  transform: scale(2.5);
  border-color: var(--ink);
  background: var(--ink);
}

.cursor.is-label .cursor__label {
  opacity: 1;
  transform: none;
}

.cursor.is-down .cursor__ring {
  transform: scale(0.8);
}

.cursor.is-label ~ .cursor-dot {
  opacity: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Leaving the page: a panel slides up to cover it */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg-2);
  transform: translateY(100%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.is-leaving .curtain {
  transform: translateY(0);
}

/* Entering a page: the same panel carries on upward. Lifted by script.js
   (.is-ready); the failsafe animation lifts it anyway if JS never arrives. */
.js.has-motion body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 94;
  background: var(--bg-2);
  pointer-events: none;
  animation: cover-out 0.9s var(--ease) 3s forwards;
}

.js.has-motion.is-ready body::after {
  animation: cover-out-now 0.9s var(--ease) 0.05s forwards;
}

.js.has-motion:not(.is-return) body.page-home::after {
  display: none;
}

@keyframes cover-out {
  to { transform: translateY(-100%); visibility: hidden; }
}

@keyframes cover-out-now {
  to { transform: translateY(-100%); visibility: hidden; }
}

/* ---------- Preloader (first visit to the home page) ---------- */

.preloader {
  display: none;
}

.js.has-motion:not(.is-return) .preloader {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px var(--gutter);
  background: var(--bg-2);
  color: var(--ink);
  animation: preloader-failsafe 0.01s 6s forwards;
}

@keyframes preloader-failsafe {
  to { visibility: hidden; }
}

.preloader__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.preloader__row--bottom {
  padding-bottom: 20px;
}

.preloader__count {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 280px);
  line-height: 0.8;
  letter-spacing: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.preloader__bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  height: 1px;
  background: var(--line);
}

.preloader__bar span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s;
}

.site-nav.is-scrolled {
  background: rgba(11, 11, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-nav__logo {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), visibility 0s;
}

/* On the home page the name stays out of the nav while the big hero name is on screen */
.site-nav.is-logo-hidden .site-nav__logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.4s, transform 0.6s var(--ease-out), visibility 0s 0.6s;
}

.site-nav__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav__links a {
  position: relative;
  padding: 10px 0;
  color: var(--ink-2);
  transition: color 0.3s;
}

.site-nav__links a:hover {
  color: var(--accent);
}

.site-nav__links a[aria-current='true'] {
  color: var(--ink);
}

.site-nav__links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -13px;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.4s var(--ease-out);
}

.site-nav__links a[aria-current='true']::before {
  transform: scale(1);
}

/* Rolling hover text (spans added by script.js) */
.roll {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.3;
}

.roll > span {
  position: relative;
  display: inline-block;
  transition: transform 0.55s var(--ease);
}

.roll > span::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
}

a:hover > .roll > span {
  transform: translateY(-100%);
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav__toggle::after {
  content: '';
  width: 22px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: height 0.5s var(--ease);
}

.site-nav__toggle[aria-expanded='true']::after {
  height: 0;
  border-bottom: 0;
}

/* Full-screen phone menu (built by script.js) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease), visibility 0s;
}

.menu__links {
  display: flex;
  flex-direction: column;
}

.menu__link {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(56px, 17vw, 120px);
  line-height: 1;
  text-transform: uppercase;
}

.menu__link span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}

.menu.is-open .menu__link span {
  transform: none;
  transition-delay: calc(0.25s + var(--i) * 0.07s);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-2);
  opacity: 0;
  transition: opacity 0.5s;
}

.menu__foot a {
  color: var(--ink);
}

.menu__foot span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.menu.is-open .menu__foot {
  opacity: 1;
  transition-delay: 0.6s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  padding: calc(var(--nav-h) + 12px) var(--gutter) 28px;
}

.hero__glow {
  --mx: 70%;
  --my: 30%;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.08), transparent 65%),
    radial-gradient(1200px circle at 80% 0%, rgba(238, 235, 229, 0.04), transparent 60%);
}

.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__title {
  position: relative;
  margin-top: auto;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(84px, min(22vw, 40vh), 420px);
  line-height: 0.8;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.07em 0 0.04em;
  margin-bottom: -0.04em;
}

.hero__line--right {
  text-align: right;
}

.hero__word {
  display: inline-block;
  will-change: transform;
}

.hero__role {
  position: absolute;
  left: 0;
  bottom: 0.4vw;
  max-width: 44%;
}

.hero__role p {
  margin: 0;
}

.hero__role .mask {
  padding: 0 0.06em 0.12em 0;
}

.hero__role-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__role .hero__role-place {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}

.hero__role .hero__role-work {
  margin-top: clamp(12px, 1.2vw, 18px);
  font-family: var(--font-mono);
  font-size: clamp(12.5px, calc(0.8vw + 2px), 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__role-work i {
  margin: 0 0.45em;
  font-style: normal;
  color: var(--accent);
}

.hero__rule {
  display: block;
  height: 1px;
  margin-top: clamp(20px, 3vh, 32px);
  background: var(--line-2);
  transform-origin: left;
}

.hero__foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero__scroll i {
  position: relative;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: var(--line-2);
}

.hero__scroll i::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  animation: scroll-cue 2.2s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Showreel ---------- */

.reel {
  position: relative;
}

.reel__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.reel__frame {
  --p: 1;
  --iy: calc((1 - var(--p)) * 20%);
  --ix: calc((1 - var(--p)) * 24%);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0e0e0d;
  clip-path: inset(var(--iy) var(--ix) round calc((1 - var(--p)) * 18px));
}

.reel__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(calc(1.2 - var(--p) * 0.2));
}

.reel__media video,
.reel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Muted looping background preview: 16:9 video sized to cover the frame,
   scaled up a touch so YouTube's edge overlays sit outside it */
.reel__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: max(100%, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
  transform: translate(-50%, -50%) scale(1.2);
  pointer-events: none;
}

.reel__bg ~ .reel__word,
.reel__media:has(.reel__bg) .reel__word {
  display: none;
}

.reel__media:has(.reel__bg)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(11, 11, 10, 0.35);
}

/* One soft pool of warm light and a vignette — a projector, not a gradient */
.reel__light {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(50% 55% at 50% 46%, rgba(var(--accent-rgb), 0.13), transparent 72%),
    radial-gradient(120% 95% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate(-3%, -2%) scale(1); }
  100% { transform: translate(3%, 2%) scale(1.06); }
}

.reel__word {
  position: relative;
  font-family: var(--font-display);
  font-size: 21vw;
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 235, 229, 0.12);
  white-space: nowrap;
  user-select: none;
}

.reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.reel__play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 6.8vw, 104px);
  height: clamp(72px, 6.8vw, 104px);
  border: 1px solid rgba(238, 235, 229, 0.55);
  border-radius: 50%;
  background: rgba(11, 11, 10, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.5s, border-color 0.5s, transform 0.7s var(--ease-out);
}

.reel__play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--ink);
  transition: border-left-color 0.4s;
}

.reel__play-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.4s;
}

.reel__play:hover .reel__play-circle {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.reel__play:hover .reel__play-icon {
  border-left-color: var(--bg);
}

.reel__play:hover .reel__play-label {
  color: var(--ink);
}

/* ---------- Experience / production ---------- */

.experience {
  padding: clamp(96px, 13vw, 200px) var(--gutter) clamp(96px, 12vw, 180px);
}

/* --count-size drives the "11+" and everything aligned to it. In Anton, at this
   line-height, the digit tops sit 0.056em above the text box and the baseline
   0.0435em below it; the digits themselves are 0.859em tall. */
.experience__top {
  --count-size: clamp(180px, 31vw, 540px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.experience__count {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: var(--count-size);
  line-height: 0.76;
  letter-spacing: -0.02em;
}

.experience__figure .experience__label {
  margin: calc(16px + var(--count-size) * 0.0435) 0 0;
}

/* What I do: four rows spanning the height of the numerals */
.craft {
  display: flex;
  flex-direction: column;
  height: calc(var(--count-size) * 0.859);
  margin: calc(var(--count-size) * -0.056) 0 0;
  padding: 0;
  list-style: none;
}

.craft__row {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 0;
  padding: clamp(12px, 1.4vw, 22px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.5s var(--ease-out);
}

.craft__row:first-child {
  border-top: 1px solid var(--line);
}

/* red rule that sweeps along the row's divider */
.craft__row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s var(--ease);
}

.craft__num {
  position: relative;
  flex: 0 0 auto;
  min-width: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

/* red copy of the number that fades in over the grey one */
.craft__num::after {
  content: attr(data-n);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
}

.craft__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease-out);
}

.craft__name > span {
  display: block;
}

/* Mouse: the row you point at lights up, the others step back */
@media (hover: hover) {
  .craft:hover .craft__row {
    opacity: 0.32;
  }

  .craft .craft__row:hover {
    opacity: 1;
  }

  .craft__row:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .craft__row:hover .craft__num::after {
    opacity: 1;
  }

  .craft__row:hover .craft__name {
    transform: translateX(18px);
  }
}

/* Touch: the row passing the middle of the screen lights up (set by script.js) */
.craft.has-active .craft__row {
  opacity: 0.4;
}

.craft.has-active .craft__row.is-active {
  opacity: 1;
}

.craft__row.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.craft__row.is-active .craft__num::after {
  opacity: 1;
}

.craft__row.is-active .craft__name {
  transform: translateX(12px);
}

.experience__num {
  display: inline-block;
  text-align: right;
}

.experience__plus {
  margin-left: 0.04em;
  font-size: 0.46em;
  line-height: 1;
  color: var(--accent);
}

.experience__label {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.experience__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.experience__title > span {
  display: block;
}

.experience__text {
  margin: 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.process {
  margin-top: clamp(80px, 10vw, 150px);
}

.process__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.process__head .eyebrow {
  font-weight: 400;
}

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

.process__row {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px 24px;
  padding: clamp(20px, 2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}

/* A thin accent line runs along the row on hover — editorial, not a "services" tile */
.process__row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s var(--ease);
}

.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.4s;
}

.process__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease-out);
}

.process__desc {
  margin: 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (hover: hover) {
  .process__row:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .process__row:hover .process__num {
    color: var(--accent);
  }

  .process__row:hover .process__name {
    transform: translateX(16px);
  }
}

/* ---------- Selected brands ---------- */

.brands {
  padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.brands .section-head {
  padding: 0 var(--gutter);
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__inner {
  display: flex;
  width: max-content;
}

/* script.js duplicates the logo row, then starts the loop */
.marquee__inner.is-looping {
  animation: marquee 38s linear infinite;
}

.marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(48px, 8vw, 128px);
  margin: 0;
  padding: 0 clamp(24px, 4vw, 64px);
  list-style: none;
}

.marquee__track li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(48px, 6vw, 88px);
}

/* Logos are flat white marks (original shapes, colour removed) at a soft light grey */
.marquee__track img {
  width: auto;
  height: var(--logo-h, 50%);
  max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.62;
  transition: opacity 0.4s;
}

@media (hover: hover) {
  .marquee__track li:hover img {
    opacity: 1;
  }
}

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

/* ---------- Selected work ---------- */

.work {
  padding: clamp(96px, 12vw, 180px) var(--gutter);
}

.film-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.film {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) 300px 28px;
  grid-template-areas: 'num title desc tag arrow';
  align-items: center;
  gap: 8px 24px;
  padding: clamp(22px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.5s var(--ease-out), background-color 0.3s;
}

.film::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s var(--ease);
}

.film__media { grid-area: media; }
.film__num { grid-area: num; }
.film__title { grid-area: title; }
.film__desc { grid-area: desc; }
.film__tags { grid-area: tag; }
.film__arrow { grid-area: arrow; }

/* Still thumbnail: only used in the touch / small-screen layouts */
.film__media {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
}

.film__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.film__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 58px);
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease-out);
}

.film__desc {
  font-size: 15px;
  color: var(--ink-3);
  transition: color 0.4s;
}

.film__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-self: start;
}

.film__tag,
.film__count {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.film__tag--award {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
}

/* Campaigns: "3 films", with a small stacked-frames mark */
.film__count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 12px;
  color: var(--ink);
}

.film__count::before {
  content: '';
  width: 9px;
  height: 7px;
  margin: 2px 0 0 2px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  box-shadow: -3px 3px 0 -1px var(--bg), -3px 3px 0 0 var(--accent);
}

.film__arrow {
  justify-self: end;
  font-size: 20px;
  transition: transform 0.6s var(--ease-out), color 0.4s;
}

@media (hover: hover) {
  .film-list:hover .film {
    opacity: 0.32;
  }

  .film-list .film:hover {
    opacity: 1;
  }

  .film:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .film:hover .film__title {
    transform: translateX(20px);
  }

  .film:hover .film__desc {
    color: var(--ink);
  }

  .film:hover .film__arrow {
    color: var(--accent);
    transform: rotate(-45deg);
  }
}

/* Cursor-following preview for the film list (built by script.js) */
.film-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: clamp(280px, 26vw, 420px);
  aspect-ratio: 16 / 10;
  pointer-events: none;
}

.film-preview__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.4s, transform 0.7s var(--ease-out);
}

.film-preview.is-visible .film-preview__inner {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.film-preview__strip {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.film-preview__item {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  background:
    radial-gradient(90% 90% at 25% 20%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    #1a1918;
  overflow: hidden;
}

.film-preview__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-preview__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.film-preview__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- About ---------- */

.about {
  padding: clamp(80px, 9vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: stretch;
}

.about__photo {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
}

.about__photo-placeholder {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.about__photo-placeholder span + span {
  color: var(--ink-4);
}

.about__photo-img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 58% 22%;
  filter: grayscale(1) contrast(1.06) brightness(0.95);
  transition: filter 1.2s var(--ease-out);
}

@media (hover: hover) {
  .about__photo:hover .about__photo-img {
    filter: grayscale(0) contrast(1.02) brightness(1);
  }
}

.about__text {
  align-self: center;
  max-width: 36em;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--ink-2);
}

.about__text p {
  margin: 0 0 1.15em;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.45);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}

.about__text a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Contact / footer ---------- */

.contact {
  position: relative;
  padding: clamp(80px, 10vw, 150px) var(--gutter) max(40px, env(safe-area-inset-bottom));
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(88px, 17vw, 300px);
  line-height: 0.84;
  text-transform: uppercase;
}

.contact__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  text-transform: none;
}

.contact__note {
  max-width: 40ch;
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* Outlined pill; on hover a red fill slides in (transform only) */
.contact__whatsapp {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: 14px 26px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact__whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.contact__whatsapp span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.6s var(--ease-out);
}

.contact__whatsapp:hover,
.contact__whatsapp:focus-visible {
  border-color: var(--accent);
}

.contact__whatsapp:hover::before,
.contact__whatsapp:focus-visible::before {
  transform: scaleX(1);
}

.contact__whatsapp:hover span,
.contact__whatsapp:focus-visible span {
  color: #fff;
  transform: translate(3px, -3px);
}

.contact__lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 56px);
}

.contact__line {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 2.07vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.contact__line span {
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.6em;
  color: var(--accent);
  transition: transform 0.6s var(--ease-out);
}

.contact__line:hover {
  text-decoration-color: var(--accent);
}

.contact__line:hover span {
  transform: translate(3px, -3px);
}

.contact__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(48px, 9vw, 160px);
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact__cols p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.contact__bar {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(48px, 6vw, 80px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__top {
  padding: 10px 0;
  color: var(--ink-3);
  transition: color 0.3s;
}

.contact__top:hover {
  color: var(--accent);
}

/* ---------- Video player overlay (built by script.js) ---------- */

.player {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s, visibility 0s 0.5s;
}

.player.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s, visibility 0s;
}

.player__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 7, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 16:9 box that always fits inside the viewport, portrait or landscape */
.player__box {
  position: relative;
  width: min(1280px, 100%, calc((100vh - 140px) * 16 / 9));
  width: min(1280px, 100%, calc((100svh - 140px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  transform: scale(0.94);
  transition: transform 0.7s var(--ease-out);
}

.player.is-open .player__box {
  transform: none;
}

.player__media,
.player__media iframe,
.player__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
}

.player__empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}

.player__empty p {
  margin: 0;
  color: var(--ink-2);
}

.player__close {
  position: absolute;
  top: -48px;
  right: 0;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}

.player__close:hover {
  color: var(--accent);
}

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

.project {
  display: grid;
  grid-template-columns: minmax(0, 62%) minmax(300px, 38%);
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.project__player {
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin: 24px 0 var(--gutter) var(--gutter);
  overflow: hidden;
  border-radius: 4px;
  background:
    radial-gradient(55% 60% at 50% 45%, rgba(var(--accent-rgb), 0.12), transparent 72%),
    #0e0e0d;
}

.project__player video,
.project__player img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__brand {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.project__tag {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}

.project__play {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 235, 229, 0.55);
  border-radius: 50%;
  background: rgba(11, 11, 10, 0.25);
  cursor: pointer;
  transition: background-color 0.4s, border-color 0.4s, transform 0.6s var(--ease-out);
}

.project__play:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.project__play::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--ink);
  transition: border-left-color 0.4s;
}

.project__play:hover::after {
  border-left-color: var(--bg);
}

.project__runtime {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

/* The current film's thumbnail, or the playing video, sits in the screen */
.project__screen {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 34%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 26%);
}

.project__screen iframe,
.project__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.project__brand,
.project__tag,
.project__play,
.project__runtime,
.project__nav {
  transition: opacity 0.4s, visibility 0.4s, background-color 0.4s, border-color 0.4s, transform 0.6s var(--ease-out);
}

.project__player.is-playing .project__screen::after {
  display: none;
}

.project__player.is-playing > :not(.project__screen) {
  opacity: 0;
  visibility: hidden;
}

.project__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(11, 11, 10, 0.78);
}

.project__empty strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.project__empty span {
  font-size: 15px;
  color: var(--ink-2);
}

/* Previous / next film (campaigns only) */
.project__nav {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.project__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(238, 235, 229, 0.4);
  border-radius: 50%;
  background: rgba(11, 11, 10, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.project__nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.project__info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px var(--gutter) 64px clamp(32px, 4vw, 64px);
}

.project__info h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.project__info p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-2);
}

.project__info .project__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.project__kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Campaign film picker */
.project__films {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project__info .project__films-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.project__film-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project__film {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.project__film:hover {
  border-color: var(--line-2);
  background: rgba(238, 235, 229, 0.03);
}

.project__film.is-active {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.07);
}

.project__film-thumb {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: var(--panel);
}

.project__film-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__film-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-4);
}

.project__film-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.project__film-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.project__film-title {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}

.project__film.is-active .project__film-text::after {
  content: 'Now showing';
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.project__rule {
  height: 1px;
  background: var(--line);
}

.project__credits {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
}

.project__credits div {
  color: var(--ink);
}

.project__credits span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.project__back {
  align-self: flex-start;
  margin-top: 12px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.3s;
}

.project__back:hover {
  color: var(--accent);
}

/* ---------- Motion-on layout (desktop) ---------- */

@media (min-width: 901px) {
  .has-motion .reel {
    height: 240vh;
  }

  .has-motion .reel__pin {
    position: sticky;
    top: 0;
  }
}

/* ---------- Small laptop / tablet landscape (≤1100px) ---------- */

@media (max-width: 1100px) {
  .site-nav__role {
    display: none;
  }

  .film {
    grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 1fr) 180px 28px;
    grid-template-areas: 'num title desc tag arrow';
  }

  .process__row {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Touch screens: no hover, so the work shows its stills ---------- */

@media (hover: none) {
  .film:active {
    background: rgba(238, 235, 229, 0.03);
  }

  .film.has-still {
    grid-template-columns: minmax(160px, 30%) 40px minmax(0, 1fr) auto 24px;
    grid-template-areas:
      'media num title tag arrow'
      'media .   desc  tag arrow';
    align-items: center;
  }

  .film.has-still .film__media {
    display: block;
  }
}

/* ---------- Tablet portrait (≤900px) ---------- */

@media (max-width: 900px) {
  :root {
    --nav-h: 72px;
  }

  .site-nav__links {
    gap: 32px;
  }

  .hero__role .hero__role-work {
    font-size: 13px;
  }

  /* Showreel: a natural 16:9 frame that fits the screen */
  .reel {
    padding: 0 var(--gutter);
  }

  .reel__pin {
    width: min(100%, calc(85vh * 16 / 9));
    width: min(100%, calc(85svh * 16 / 9));
    height: auto;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
  }

  .reel__word {
    font-size: 19vw;
  }

  .reel__play {
    gap: 12px;
  }

  .reel__play-label {
    font-size: 11px;
  }

  .experience__top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 40px;
  }

  .experience__top {
    --count-size: clamp(130px, min(38vw, 64vh), 300px);
  }

  .craft {
    height: auto;
    margin-top: 0;
  }

  .craft__row {
    flex: none;
    padding: 22px 0;
  }

  .craft__name {
    font-size: clamp(28px, 5.4vw, 44px);
  }

  .experience__title {
    font-size: clamp(34px, 6.4vw, 60px);
  }

  .film {
    grid-template-columns: 40px minmax(0, 1fr) auto 24px;
    grid-template-areas:
      'num title tag arrow'
      '.   desc  tag arrow';
    align-items: center;
    gap: 6px 20px;
  }

  .film.has-still {
    grid-template-columns: minmax(150px, 34%) 32px minmax(0, 1fr) 24px;
    grid-template-areas:
      'media num title arrow'
      'media .   desc  arrow'
      'media .   tag   arrow';
  }

  .film.has-still .film__media {
    display: block;
  }

  .film.has-still .film__tags {
    margin-top: 6px;
  }

  .film__title {
    font-size: clamp(26px, 4.6vw, 40px);
  }

  .film__num {
    align-self: start;
    padding-top: 0.5em;
  }

  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 32px;
  }

  .about__photo {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .about__text {
    font-size: 16px;
    line-height: 1.65;
  }

  .contact__title {
    font-size: clamp(80px, 19vw, 170px);
  }

  .contact__line {
    font-size: clamp(18px, 3.06vw, 27px);
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project__player {
    position: relative;
    top: 0;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    max-height: 80svh;
    margin: 0 var(--gutter);
  }

  .project__info {
    padding: 40px var(--gutter) 56px;
  }
}

/* Portrait tablets and phones: the role moves under the name instead of beside it.
   (Short landscape screens keep the side-by-side hero so the role stays above the fold.) */
@media (max-width: 900px) and (orientation: portrait) {
  .hero__name {
    font-size: clamp(76px, min(29.5vw, 44vh), 260px);
  }

  .hero__role {
    position: static;
    max-width: none;
    margin-top: 24px;
  }

  .hero__role-title {
    font-size: clamp(26px, 6.2vw, 52px);
  }

  .hero__role .hero__role-place {
    font-size: clamp(16px, 2.6vw, 22px);
  }
}

/* Tall phone screens: a width-limited name pinned to the bottom leaves a big
   empty band above it, so centre the name block and let the reel peek in below. */
@media (max-width: 640px) and (orientation: portrait) {
  .hero {
    min-height: 86vh;
    min-height: 86svh;
  }

  .hero__title {
    margin-block: auto;
    padding-top: 24px;
  }
}

/* ---------- Phone (≤640px) ---------- */

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__logo {
    font-size: 19px;
  }

  .hero {
    padding-bottom: 20px;
  }

  .hero__name {
    font-size: clamp(64px, min(29.5vw, 40vh), 200px);
  }

  .hero__role {
    margin-top: 20px;
  }

  .hero__role .hero__role-work {
    font-size: 12.5px;
    letter-spacing: 0.12em;
  }

  .hero__role-work i {
    margin: 0 0.3em;
  }

  .hero__scroll i {
    height: 30px;
  }

  .reel__word {
    font-size: 18vw;
  }

  .reel__play-circle {
    width: 64px;
    height: 64px;
  }

  .reel__play-icon {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }

  .experience__top {
    --count-size: clamp(130px, 44vw, 220px);
  }

  .craft__row {
    gap: 14px;
    padding: 20px 0;
  }

  .craft__num {
    min-width: 28px;
  }

  .craft__name {
    font-size: clamp(24px, 7.4vw, 34px);
    text-wrap: balance;
  }

  .experience__title {
    font-size: clamp(30px, 9.4vw, 48px);
  }

  .experience__text {
    font-size: 16px;
  }

  .process__head {
    margin-bottom: 0;
  }

  .process__row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 22px 0;
  }

  .process__desc {
    grid-column: 2;
    font-size: 15px;
  }

  .process__name {
    font-size: clamp(30px, 9vw, 44px);
  }

  .marquee__track li {
    height: 52px;
  }

  .film {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    grid-template-areas:
      'num title arrow'
      '.   desc  desc'
      '.   tag   tag';
    align-items: start;
    gap: 8px 12px;
    padding: 24px 0;
  }

  .film.has-still {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    grid-template-areas:
      'media media media'
      'num   title arrow'
      '.     desc  desc'
      '.     tag   tag';
  }

  .film.has-still .film__media {
    margin-bottom: 10px;
  }

  .film__title {
    font-size: clamp(26px, 8vw, 36px);
    text-wrap: balance;
  }

  .film__num {
    padding-top: 0.45em;
  }

  .film__arrow {
    padding-top: 0.2em;
  }

  .film__tags {
    margin-top: 4px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about__photo {
    position: relative;
    top: 0;
    aspect-ratio: 4 / 5;
  }

  .contact__title {
    font-size: clamp(64px, 21vw, 110px);
  }

  .contact__line {
    font-size: clamp(17px, 5.04vw, 23.4px);
  }

  .contact__whatsapp {
    display: flex;
    width: 100%;
  }

  .contact__cols {
    flex-direction: column;
    gap: 28px;
  }

  .contact__bar {
    justify-content: flex-start;
  }

  .project__player {
    margin: 0;
    border-radius: 0;
  }

  .project__brand {
    top: 16px;
    left: 18px;
    font-size: 14px;
  }

  .project__tag {
    top: 12px;
    right: 14px;
  }

  .project__runtime {
    bottom: 14px;
    left: 18px;
    font-size: 12px;
  }

  .project__nav {
    right: 12px;
    bottom: 8px;
    gap: 6px;
  }

  .project__nav-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .project__film-thumb {
    width: 96px;
  }

  .project__play {
    width: 64px;
    height: 64px;
  }

  .project__play::after {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }

  .project__info h1 {
    font-size: clamp(30px, 9vw, 42px);
  }
}

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

  .grain,
  .reel__light,
  .hero__scroll i::after {
    animation: none;
  }

  .marquee__inner,
  .marquee__inner.is-looping {
    animation: none;
  }

  .marquee__track + .marquee__track {
    display: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 64px;
    padding: 0 var(--gutter);
  }
}
