@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.ttf?v=4") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ==========================================================================
   Manel Barros — portfolio
   Direction: cinematic viewfinder, Apple-clean type. Black base, Genesis red #A22C29 as the dominant colour, #FFDE21 glow only on italic highlights.
   ========================================================================== */

:root {
  --bg: #0a0a09;
  --bg-2: #121210;
  --bg-3: #1a1a17;
  --ink: #ece8df;
  --ink-2: #bdb8ad;
  --mute: #7f7a70;
  --line: rgba(236, 232, 223, 0.14);
  --line-2: rgba(236, 232, 223, 0.28);
  --accent: #a22c29;       /* Genesis red — the dominant brand colour (fills, surfaces) */
  --accent-ink: #e0544c;   /* same red, lifted for small text on black */
  --hl: #ffde21;           /* Genesis yellow — only for italic highlights */
  --glow: 0 0 14px rgba(255, 222, 33, 0.5), 0 0 42px rgba(255, 222, 33, 0.2);

  /* SF Pro on Apple devices (system font, nothing downloaded); Inter on Windows/Android (downloaded only there) */
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
*, *:focus, *:focus-visible { outline: none; -webkit-tap-highlight-color: transparent; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.serif { font-weight: 500; letter-spacing: -0.02em; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-synthesis: none; -webkit-text-stroke: 0.022em currentColor; paint-order: stroke fill; font-size: 1.2em; line-height: 0.9; text-transform: none; letter-spacing: -0.01em; color: var(--hl); text-shadow: var(--glow); }

em strong, strong em, .bold em { font-weight: 700; }

/* ---------- Film grain ---------------------------------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Header -------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff;
  background: linear-gradient(rgba(5, 5, 4, 0.55), rgba(5, 5, 4, 0));
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; justify-self: start; }
.brand__mark { display: grid; gap: 3px; width: 17px; }
.brand__mark i { display: block; height: 3.4px; border-radius: 1px; background: currentColor; transform-origin: left; }
.brand__mark i:nth-child(2) { width: 96%; }
.brand:hover .brand__mark i { animation: mark-bar 0.9s cubic-bezier(0.83, 0, 0.17, 1) both; }
.brand:hover .brand__mark i:nth-child(2) { animation-delay: 70ms; }
.brand:hover .brand__mark i:nth-child(3) { animation-delay: 140ms; }
@keyframes mark-bar { 0% { transform: scaleX(1); } 35% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.brand__by { color: var(--ink); font-size: 11px; }
.brand:hover .brand__by { color: var(--hl); }

.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav a { position: relative; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a sup { font-size: 8px; margin-left: 2px; opacity: 0.6; }
.header__social { justify-self: end; }

.menu-btn { display: none; justify-self: end; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
}
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: clamp(48px, 13vw, 96px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; border-bottom: 1px solid var(--line); padding: 8px 0 4px; }
.mobile-menu nav a sup { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--mute); vertical-align: top; margin-left: 6px; letter-spacing: 0.08em; }
.mobile-menu__foot { display: flex; justify-content: space-between; color: var(--mute); }

/* ---------- Page transition: only the page content changes --------------- */
@keyframes vt-out { to { opacity: 0; filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); } }

/* ---------- Custom cursor ------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 99;
  pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.3s;
  will-change: transform;
}
.cursor span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity 0.2s; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); mix-blend-mode: normal; }
.cursor.is-label span { color: #fff; }
.cursor.is-label span { opacity: 1; transition-delay: 0.1s; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor [role="button"] { cursor: none; } }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18);
  filter: saturate(1.1) contrast(1.05);
}
body.ready .hero__media img, body.ready .hero__media video { transform: scale(1.04); transition: transform 3.2s var(--ease); }
.hero__media img { animation: kenburns 30s ease-in-out 3s infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,9,0.55) 0%, rgba(10,10,9,0) 28%, rgba(10,10,9,0) 45%, rgba(10,10,9,0.92) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.5) 100%);
}

.vf { position: absolute; inset: calc(var(--header-h) + 8px) var(--pad) var(--pad); pointer-events: none; opacity: 0; transition: opacity 1.2s 0.5s; }
body.ready .vf { opacity: 1; }
.vf__c { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(236, 232, 223, 0.7); }
.vf__c--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.vf__c--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.vf__c--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.vf__c--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.vf__rec { position: absolute; top: 14px; left: 40px; display: flex; align-items: center; gap: 8px; }
.vf__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vf__tc { position: absolute; top: 14px; right: 40px; font-variant-numeric: tabular-nums; }
.vf__meta { position: absolute; top: 40px; right: 40px; color: rgba(236,232,223,0.55); font-size: 10px; }
.vf__cross { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.vf__cross::before, .vf__cross::after { content: ""; position: absolute; background: rgba(236,232,223,0.55); }
.vf__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vf__cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.hero { justify-content: center; align-items: center; }
.hero__content { position: relative; z-index: 2; width: 100%; padding: calc(var(--header-h) + 48px) calc(var(--pad) + 36px) calc(var(--pad) + 36px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__kicker { margin: 0 0 22px; color: var(--ink-2); }
.hero__logo { display: block; width: min(80vw, 1120px); height: auto; }
.hero__by { margin-top: clamp(14px, 1.6vw, 24px); font-size: clamp(22px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.03em; opacity: 0; transform: translateY(12px); }
body.ready .hero__by { opacity: 1; transform: none; transition: opacity 1s 0.3s, transform 1s 0.3s var(--ease); }
.hero__title {
  display: inline-flex; flex-wrap: nowrap; column-gap: 0.2em;
  font-size: 12vw;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.hero__title.is-stacked { flex-direction: column; align-items: center; }
.line { display: block; overflow: hidden; padding: 0.04em 0.1em 0.07em; margin: -0.04em -0.1em -0.07em; }
.line > span { display: block; transform: translateY(105%); }
body.ready .line > span { transform: none; transition: transform 1.2s var(--ease); }
body.ready .line:nth-child(2) > span { transition-delay: 0.08s; }

.hero__row { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 26px; opacity: 0; transform: translateY(16px); }
body.ready .hero__row { opacity: 1; transform: none; transition: opacity 1s 0.45s, transform 1s 0.45s var(--ease); }
.hero__lede { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.25; max-width: 36ch; color: var(--ink); }

.btn-reel {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px 10px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(10,10,9,0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.btn-reel__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); position: relative; transition: transform 0.5s var(--ease); }
.btn-reel__icon::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.btn-reel:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-reel:hover .btn-reel__icon { transform: rotate(120deg) scale(1.05); }

/* ---------- Marquee ------------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 27s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap;
}
.marquee__track span.alt { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3vw, 42px); color: var(--hl); text-shadow: var(--glow); }
.marquee__track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.marquee__track span.has-logo img { height: clamp(22px, 2.4vw, 32px); width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ------------------------------------------------------ */
.section { padding: clamp(80px, 12vw, 180px) var(--pad) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  gap: 16px;
  padding-bottom: 18px; margin-bottom: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.section-head__idx { color: var(--mute); }
.section-head__title { font-size: clamp(40px, 6vw, 96px); font-weight: 700; line-height: 0.95; letter-spacing: -0.045em; text-align: center; }
.section-head__title em { font-size: 1.12em; }
.section-head__aside { justify-self: end; color: var(--mute); }

/* ---------- Reveal on scroll --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Work grid (home) --------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: clamp(56px, 8vw, 120px);
}
.card { position: relative; outline-offset: 6px; }
.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 9);
  background: var(--bg-3);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.8s var(--ease);
}
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s;
}
.card__media img { opacity: 0; }
.card__media img.loaded { opacity: 1; }
.card__media video { opacity: 0; }
.card.playing .card__media video { opacity: 1; }
.card:hover .card__media { clip-path: inset(2.2% 1.6% 2.2% 1.6%); }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(10,10,9,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
}
.card__tag--ai { background: var(--accent); color: #fff; }
.card__info {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px;
  padding-top: 14px;
}
.card__num { color: var(--accent-ink); }
.card__title { font-size: clamp(24px, 2.4vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.card__meta { color: var(--mute); text-align: right; }
.card__meta b { display: block; color: var(--ink-2); font-weight: 400; }
.card__title .t { display: inline-block; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.6s var(--ease); }
.card:hover .card__title .t { background-size: 100% 2px; }

.card--wide { grid-column: 1 / -1; --ratio: 2.39 / 1; }
.card--left { grid-column: 1 / span 7; --ratio: 16 / 10; }
.card--right { grid-column: 9 / span 4; --ratio: 4 / 5; margin-top: clamp(80px, 14vw, 240px); }
.card--mid { grid-column: 3 / span 8; --ratio: 16 / 9; }

/* ---------- About --------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 110px); }
.about__statement { font-size: clamp(30px, 3.6vw, 58px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; }
.about__side { display: grid; gap: 44px; align-content: start; padding-top: 10px; }
.about__body { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.about__label { color: var(--mute); margin-bottom: 14px; }
.about__caps { counter-reset: cap; border-top: 1px solid var(--line); }
.about__caps li {
  counter-increment: cap;
  display: flex; gap: 18px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 22px; font-weight: 600;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.about__caps li::before { content: counter(cap, decimal-leading-zero); font-family: var(--f-mono); font-size: 10px; font-weight: 400; color: var(--accent-ink); letter-spacing: 0.08em; }
.about__caps li:hover { padding-left: 12px; color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; transition: background 0.3s, color 0.3s; }
.chips li:hover { background: var(--ink); color: var(--bg); }

/* ---------- Beyond doors -------------------------------------------------- */
.beyond__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.door { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.door:nth-child(2) { margin-top: clamp(40px, 10vw, 160px); }
.door__media { position: absolute; inset: 0; }
.door__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.7); transform: scale(1.08); transition: filter 0.9s var(--ease), transform 1.4s var(--ease); }
.door:hover .door__media img { filter: none; transform: scale(1); }
.door__info { position: absolute; inset: auto 0 0 0; padding: clamp(16px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 8px; background: linear-gradient(transparent, rgba(10,10,9,0.8)); }
.door__title { font-size: clamp(48px, 7vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; display: flex; justify-content: space-between; align-items: flex-end; }
.door__title .arrow { font-weight: 300; font-size: 0.4em; transition: transform 0.6s var(--ease); color: var(--accent-ink); }
.door:hover .arrow { transform: translateX(-12px) rotate(-45deg); }

/* ---------- Inner page hero ---------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 12vw, 180px)) var(--pad) 0; }
.page-hero__kicker { color: var(--mute); margin-bottom: 18px; }
.page-hero__title { font-size: clamp(84px, 19vw, 360px); font-weight: 700; line-height: 0.86; letter-spacing: -0.06em; margin-left: -0.05em; }
.page-hero__lede { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.12; max-width: 30ch; margin: clamp(20px, 3vw, 36px) 0 0 auto; color: var(--ink-2); opacity: 0; transform: translateY(16px); }
body.ready .page-hero__lede { opacity: 1; transform: none; transition: opacity 1s 0.35s, transform 1s 0.35s var(--ease); }
.page-hero + .section { padding-top: clamp(56px, 8vw, 120px); }

/* ---------- Clients ------------------------------------------------------- */
.filter {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.filter button {
  position: relative; z-index: 1;
  padding: 12px clamp(18px, 2.6vw, 32px);
  font-size: clamp(18px, 2vw, 24px); font-weight: 700; line-height: 1;
  border-radius: 999px;
  color: var(--ink-2);
  transition: color 0.4s;
}
.filter button[aria-selected="true"] { color: var(--bg); }
.filter button sup { font-size: 9px; margin-left: 3px; vertical-align: top; }
.filter__pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--ink); transition: transform 0.6s var(--ease), width 0.6s var(--ease); }
.filter button[data-filter="ai"][aria-selected="true"] ~ .filter__pill { background: var(--accent); }
.filter button[data-filter="ai"][aria-selected="true"] { color: #fff; }

.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.clients-grid .card { transition: opacity 0.45s, transform 0.6s var(--ease); }
.clients-grid .card.out { opacity: 0; transform: translateY(24px); }
.clients-grid .card:nth-child(3n + 2) { margin-top: clamp(0px, 5vw, 80px); }
.clients-grid .card__title { font-size: clamp(22px, 2.2vw, 34px); }
.clients-grid .card__info { grid-template-columns: 1fr auto; }
.clients-grid .card__client { grid-column: 1 / -1; color: var(--ink-2); margin-bottom: -6px; }
.empty { grid-column: 1 / -1; padding: 60px 0; color: var(--mute); font-size: 24px; letter-spacing: -0.02em; }

.roster { margin-top: clamp(100px, 12vw, 180px); border-top: 1px solid var(--line); padding-top: 18px; }
.roster__label { color: var(--mute); margin-bottom: 26px; }
.roster__list { display: flex; flex-wrap: wrap; gap: 0 0.4em; font-size: clamp(30px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.roster__list li { color: var(--ink-2); transition: color 0.3s; }
.roster__list li:hover { color: var(--accent-ink); }
.roster__list li:not(:last-child)::after { content: "/"; font-weight: 200; color: var(--line-2); margin-left: 0.4em; }

/* ---------- Stills masonry ----------------------------------------------- */
.masonry { columns: 3; column-gap: clamp(12px, 1.6vw, 22px); }
.shot { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 22px); display: block; width: 100%; text-align: left; }
.shot__img { position: relative; overflow: hidden; background: var(--bg-3); }
.shot__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s, transform 1.4s var(--ease), filter 0.8s; }
.shot__img img.loaded { opacity: 1; }
.shot:hover .shot__img img { transform: scale(1.04); }
.shot figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0; color: var(--mute); }
.shot figcaption b { color: var(--ink); font-weight: 400; }

/* ---------- Contact footer: editing timeline ---------------------------- */
.contact { position: relative; padding: clamp(110px, 16vw, 220px) var(--pad) 0; margin-top: clamp(110px, 14vw, 200px); border-top: 1px solid var(--line); overflow: hidden; }
.contact__kicker { color: var(--mute); margin-bottom: 26px; }
.contact__title { font-size: clamp(44px, 6.8vw, 116px); font-weight: 700; line-height: 0.98; letter-spacing: -0.05em; }
.contact__title em { display: block; font-size: 1.16em; line-height: 1.05; }

.timeline { position: relative; margin-top: clamp(56px, 8vw, 110px); border: 1px solid var(--line); border-radius: 14px; background: #0c0b0a; padding: 0 0 14px; user-select: none; }
.timeline__ruler { display: flex; justify-content: space-between; margin-left: 64px; padding: 10px 14px 8px 0; color: var(--mute); font-size: 10px;
  background: repeating-linear-gradient(90deg, rgba(236,232,223,0.22) 0 1px, transparent 1px 2.5%) bottom / 100% 6px no-repeat; border-bottom: 1px solid var(--line); }
.timeline__tracks { position: relative; margin-left: 64px; margin-right: 14px; }
.track { position: relative; display: flex; align-items: stretch; }
.track__label { position: absolute; left: -52px; top: 50%; transform: translateY(-50%); width: 40px; padding: 5px 0; text-align: center; border-radius: 4px; background: #171514; color: var(--ink-2); font-size: 10px; }
.track__lane { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 0; border-bottom: 1px solid rgba(236,232,223,0.06); min-height: 76px; align-items: stretch; }
.track:nth-child(2) .track__lane { margin-right: 4%; }
.track[data-none]::after { content: attr(data-name); position: absolute; left: -52px; bottom: 6px; width: 40px; text-align: center; font: 8px/1.1 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }
.clip { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 16px; border-radius: 6px; min-width: 150px; flex: 1;
  background: #1d1918; border: 1px solid rgba(255,255,255,0.08); color: var(--ink); transition: transform 0.35s var(--ease), filter 0.3s, border-color 0.3s, box-shadow 0.3s; overflow: hidden; }
.clip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.clip__name { font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip__sub { color: var(--mute); font-size: 10px; }
.clip--main { flex: 3; min-height: 88px; border-color: rgba(162, 44, 41, 0.75);
  background: linear-gradient(180deg, rgba(162, 44, 41, 0.22), rgba(162, 44, 41, 0.06)), repeating-linear-gradient(90deg, #1a1514 0 118px, #0d0b0b 118px 120px); }
.clip--main::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.clip--main .clip__name { font-size: clamp(20px, 2.4vw, 36px); letter-spacing: -0.035em; }
.clip--main .clip__sub { color: var(--mute); }
.clip--audio { background: #151a17 repeating-linear-gradient(90deg, rgba(94,209,122,0.0) 0 3px, rgba(94,209,122,0.16) 3px 4px) 0 100% / 100% 45% no-repeat; }
.clip--audio::before { background: #5ed17a; }
.avail-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5ed17a; box-shadow: 0 0 12px #5ed17a; margin-right: 10px; vertical-align: 2px; }
a.clip:hover { transform: translateY(-3px); border-color: var(--hl); }
.clip.is-live { filter: brightness(1.35); box-shadow: 0 0 0 1px rgba(255,222,33,0.55), 0 0 28px rgba(255,222,33,0.12); }
.clip--main.is-live { filter: brightness(1.25); }
.clip--studio { background: #1a1514; }
.clip--studio::before { background: var(--hl); }
.timeline__playhead { position: absolute; top: 0; bottom: 0; left: 64px; width: 0; pointer-events: none; z-index: 3; }
.timeline__playhead::before { content: ""; position: absolute; top: 30px; bottom: 6px; left: -1px; width: 2px; background: var(--hl); box-shadow: 0 0 12px rgba(255,222,33,0.6); }
.timeline__playhead::after { content: ""; position: absolute; top: 20px; left: -7px; border: 7px solid transparent; border-top: 10px solid var(--hl); }
.timeline__tc { position: absolute; top: -26px; left: -46px; width: 92px; text-align: center; color: var(--hl); font-size: 11px; }

.contact__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 44px 0 18px; color: var(--mute); }
.contact__base a:hover { color: var(--ink); }

/* ---------- Player overlay ------------------------------------------------ */
.player {
  position: fixed; inset: 0; z-index: 80;
  background: #070706;
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.player.open { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease); }
.player__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--pad); height: var(--header-h); border-bottom: 1px solid var(--line); flex: none; }
.player__idx { color: var(--mute); }
.player__bar-title { font-size: 18px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__close { justify-self: end; display: inline-flex; align-items: center; gap: 10px; }
.player__close i { position: relative; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.5s var(--ease), background 0.3s; }
.player__close i::before, .player__close i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.player__close i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.player__close:hover i { transform: rotate(90deg); background: var(--accent); border-color: var(--accent); }
.player__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 3vw, 40px) var(--pad) 60px; }
.player__stage { width: min(100%, calc((100svh - var(--header-h) - 120px) * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; position: relative; transform: translateY(24px); opacity: 0; transition: transform 0.8s 0.1s var(--ease), opacity 0.8s 0.1s; }
.player.open .player__stage { transform: none; opacity: 1; }
.player__stage iframe, .player__stage video, .player__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.player__stage--gallery { aspect-ratio: auto; background: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: min(100%, 1200px); }
.player__stage--gallery img { width: 100%; height: auto; }
.player__soon { position: absolute; inset: auto 0 0 0; padding: 18px; display: flex; justify-content: space-between; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--ink-2); }
.player__details { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 80px); max-width: 1200px; margin: clamp(36px, 5vw, 64px) auto 0; }
.player__title { font-size: clamp(44px, 6vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.player__type { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); color: var(--hl); text-shadow: var(--glow); margin-top: 10px; }
.player__desc { margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.player__facts { border-top: 1px solid var(--line); }
.player__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.player__facts dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.player__facts dd { margin: 0; }
.player__next { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; width: min(100%, 1200px); margin: clamp(56px, 8vw, 110px) auto 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; }
.player__next span:last-child { font-size: clamp(32px, 5vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; transition: color 0.3s; }
.player__next:hover span:last-child { color: var(--accent-ink); }
.player__next .mono { color: var(--mute); }

/* ---------- Lightbox (stills) -------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: #070706; display: grid; grid-template-rows: var(--header-h) 1fr auto; visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0s 0.4s; }
.lightbox.open { visibility: visible; opacity: 1; transition: opacity 0.4s; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--pad); min-height: 0; }
.lightbox__stage > img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: calc(100% - var(--pad) * 2); max-height: 100%; width: auto; height: auto; }
.lightbox__foot { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad) 22px; gap: 16px; }
.lightbox__cap b { font-size: 22px; font-weight: 700; display: block; font-family: var(--f-display); letter-spacing: 0; }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox__nav button { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 18px; transition: background 0.3s, color 0.3s; }
.lightbox__nav button:hover { background: var(--ink); color: var(--bg); }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .nav, .header__social { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .menu-btn { display: block; }
  .vf__meta { display: none; }
  .section-head { grid-template-columns: 1fr auto; }
  .section-head__title { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .section-head__aside { grid-row: 2; }
  .card--wide, .card--left, .card--right, .card--mid { grid-column: 1 / -1; margin-top: 0; }
  .card--wide { --ratio: 16 / 10; }
  .card--right { --ratio: 4 / 5; }
  .about__grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid .card:nth-child(3n + 2) { margin-top: 0; }
  .clients-grid .card:nth-child(even) { margin-top: 48px; }
  .masonry { columns: 2; }
  .timeline__ruler, .timeline__tracks { margin-left: 52px; }
  .timeline__playhead { left: 52px; }
  .track__label { left: -44px; width: 34px; }
  .clip { min-width: 130px; }
  .player__details { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .beyond__grid { grid-template-columns: 1fr; }
  .door { aspect-ratio: 4 / 4.4; }
  .door:nth-child(2) { margin-top: 0; }
  .clients-grid { grid-template-columns: 1fr; }
  .clients-grid .card:nth-child(even) { margin-top: 0; }
  .card__info { grid-template-columns: auto 1fr; }
  .card__meta { grid-column: 2; text-align: left; margin-top: -8px; }
  .clients-grid .card__meta { grid-column: auto; }
  .masonry { columns: 1; }
  .timeline__playhead { display: none; }
  .hero__content { padding-left: calc(var(--pad) + 6px); padding-right: calc(var(--pad) + 6px); }
  .player__stage--gallery { grid-template-columns: 1fr; }
  .vf__rec { left: 34px; top: 10px; }
  .vf__tc { right: 34px; top: 10px; }
  .filter button { padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Liquid glass UI
   ========================================================================== */
:root {
  --glass-bg: linear-gradient(135deg, rgba(255,255,255,0.17), rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.1));
  --glass-border: 1px solid rgba(255, 255, 255, 0.22);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(255,255,255,0.06), 0 12px 40px rgba(0,0,0,0.35);
}
.glass, .nav, .brand, .header__social, .menu-btn, .btn-reel, .filter, .card__tag, .view-toggle, .timeline, .player__bar, .lightbox__nav button, .mobile-menu .glass-sheet {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* header: three floating glass pills */
.header { background: none; height: auto; padding: 14px var(--pad); align-items: center; pointer-events: none; }
.header > * { pointer-events: auto; }
.brand { padding: 10px 16px; border-radius: 999px; gap: 10px; }
.nav { padding: 6px; border-radius: 999px; gap: 2px; justify-self: center; }
.nav a { padding: 9px 18px; border-radius: 999px; transition: background 0.3s; }
.nav a::after { display: none; }
.nav a:hover { background: rgba(255,255,255,0.12); }
.nav a[aria-current="page"] { background: rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.header__social { padding: 10px 16px; border-radius: 999px; justify-self: end; }
.menu-btn { padding: 10px 18px; border-radius: 999px; }
.mobile-menu { background: rgba(8,7,7,0.82); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); }

/* buttons & small UI */
.btn-reel { border: var(--glass-border); }
.btn-reel:hover { background: rgba(255,255,255,0.28); color: #fff; border-color: rgba(255,255,255,0.4); }
.filter { padding: 5px; }
.filter__pill { background: rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.filter button[aria-selected="true"] { color: #fff; }
.filter button[data-filter="ai"][aria-selected="true"] ~ .filter__pill { background: var(--accent); }
.card__tag { padding: 6px 12px; }
.card__tag--ai { background: var(--accent); }
.player__bar { border-radius: 0; border-width: 0 0 1px 0; }

/* hero viewfinder: real camera HUD, liquid-glass edition */
.vf { inset: calc(var(--header-h) + 26px) calc(var(--pad) + 6px) calc(var(--pad) + 6px); }
.vf__c { width: 44px; height: 44px; border-color: rgba(255,255,255,0.9); border-radius: 0; filter: none; }
.vf__c--tl { border-width: 2px 0 0 2px; } .vf__c--tr { border-width: 2px 2px 0 0; } .vf__c--bl { border-width: 0 0 2px 2px; } .vf__c--br { border-width: 0 2px 2px 0; }
.vf__cross, .vf__frame { display: none; }
.vf__rec, .vf__tc, .vf__meta { padding: 8px 14px; border-radius: 999px; }
.vf__rec { top: 26px; left: 56px; }
.vf__tc { top: 26px; right: 56px; }
.vf__meta { display: block; top: auto; bottom: 26px; right: 56px; font-size: 10px; color: rgba(255,255,255,0.85); }
.vf__audio { position: absolute; left: 58px; bottom: 30px; display: grid; gap: 4px; width: 90px; }
.vf__audio b { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #5ed17a 0 60%, #ffde21 60% 85%, #e2453c 85%); transform-origin: left; animation: meter 1.3s ease-in-out infinite alternate; }
.vf__audio b:nth-child(2) { animation-duration: 0.9s; animation-delay: -0.4s; }
@keyframes meter { from { transform: scaleX(0.35); } to { transform: scaleX(0.92); } }
.hero__media video, .hero__media img { transform: scale(1.05); }

/* Latest work (home) — square grid, loops always playing */
.latest-sec { padding-top: clamp(70px, 9vw, 130px); }
.latest__bar { margin-bottom: clamp(28px, 4vw, 56px); }
.latest__title { font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: #fff; }
.latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4.5vw, 72px) clamp(18px, 2.6vw, 40px); }
.lcard { position: relative; display: block; cursor: pointer; transform: perspective(1000px) rotate(var(--r, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease), opacity 1.1s var(--ease); transition-delay: var(--d, 0ms), var(--d, 0ms); }
.lcard:hover { transform: perspective(1000px) rotate(0deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) scale(1.035); transition-duration: 0.18s; transition-delay: 0ms; z-index: 3; }
.lcard__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--bg-3); box-shadow: 0 26px 60px rgba(0,0,0,0.5); transition: box-shadow 0.4s, filter 0.4s; }
.lcard:hover .lcard__media { box-shadow: 0 34px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,222,33,0.55), 0 0 40px rgba(255,222,33,0.18); }
.lcard__media img, .lcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.5s; }
.lcard__media img { opacity: 0; } .lcard__media img.loaded { opacity: 1; }
.lcard__media video { z-index: 1; }
.lcard:hover .lcard__media video, .lcard:hover .lcard__media img { transform: scale(1.07); filter: saturate(1.15) contrast(1.04); }
.lcard__info { text-align: center; padding-top: 20px; }
.lcard__client { display: block; font-size: clamp(15px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.02em; color: var(--mute); transition: color 0.3s, transform 0.4s var(--ease); }
.lcard__title { margin: 2px 0 0; font-size: clamp(22px, 2.3vw, 34px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-transform: uppercase; transition: color 0.3s, text-shadow 0.3s, transform 0.4s var(--ease); }
.lcard:hover .lcard__title { color: var(--hl); text-shadow: var(--glow); transform: translateY(-2px); }
.lcard:hover .lcard__client { color: var(--ink-2); }
.latest__more { display: inline-flex; gap: 10px; margin-top: clamp(36px, 5vw, 64px); font: 500 12px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 24px; border-radius: 999px; background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: blur(22px) saturate(180%); transition: color 0.3s; }
.latest__more:hover { color: var(--hl); }

/* vertical covers on the Work page + player */

@media (max-width: 900px) {
  .latest { grid-template-columns: repeat(2, 1fr); }
  .header { grid-template-columns: 1fr auto; }
  .nav, .header__social { display: none; }
}
@media (max-width: 600px) {
  .latest { grid-template-columns: 1fr; }
  .vf__meta { display: none; }
}

/* Simple, Apple-like hover: one gentle lift, no glow, no borders */
.lcard { transform: rotate(var(--r, 0deg)); transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 1.1s var(--ease); }
.lcard:hover { transform: rotate(0deg) translateY(-4px) scale(1.02); transition-duration: 0.3s; transition-delay: 0ms; z-index: 3; }
.lcard:hover .lcard__media { box-shadow: 0 30px 70px rgba(0,0,0,0.6); }
.lcard:hover .lcard__media video, .lcard:hover .lcard__media img { transform: scale(1.04); filter: none; }
.lcard:hover .lcard__title { color: #fff; text-shadow: none; transform: none; }
.lcard:hover .lcard__client { color: var(--ink); }
.track__label + .track__lane { }

/* Viewfinder: thin corner lines */
.vf__c { width: 40px; height: 40px; }
.vf__c--tl { border-width: 1px 0 0 1px; } .vf__c--tr { border-width: 1px 1px 0 0; } .vf__c--bl { border-width: 0 0 1px 1px; } .vf__c--br { border-width: 0 1px 1px 0; }

/* Latest work: Secret Level /brand grid — 3 equal 5:4 tiles, text centred below */
.latest { grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 48px); }
.lcard, .lcard:hover { transform: none; z-index: auto; }
.lcard__tile { transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.lcard:hover .lcard__tile { transform: scale(0.95) rotate(1.5deg); }
.lcard__media { aspect-ratio: 5 / 4; border-radius: 8px; box-shadow: none; }
.lcard:hover .lcard__media, .lcard:hover .lcard__media video, .lcard:hover .lcard__media img { box-shadow: none; transform: none; filter: none; }
.lcard__info { position: static; padding: 18px 0 0; text-align: center; background: none; opacity: 1; pointer-events: auto; }
.lcard__client { font-size: clamp(14px, 1.5vw, 21px); font-weight: 900; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.lcard__title { font-size: clamp(20px, 2vw, 29px); font-weight: 900; letter-spacing: -0.01em; }
.lcard:hover .lcard__title { color: var(--hl); text-shadow: var(--glow); transform: none; }
.lcard:hover .lcard__client { color: rgba(255,255,255,0.4); }
@media (max-width: 900px) { .latest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .latest { grid-template-columns: 1fr; } }

/* Static dot texture so the background is never flat */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(circle, rgba(236, 232, 223, 0.085) 1px, transparent 1.3px); background-size: 26px 26px; }
html { scroll-behavior: auto; }

/* Latest tiles: rise into place while scrolling (Secret Level style); once level they stay put */
.lcard.reveal { opacity: 0; transition: opacity 1.1s var(--ease); }
.lcard.reveal.in { opacity: 1; }

/* Header morph: always one centred group; on the home page the pieces are pushed apart (vars set by JS) */
@media (min-width: 901px) {
  .header { display: flex; justify-content: center; gap: 10px; }
  .header .brand, .header .nav, .header .header__social { justify-self: auto; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
  .header[data-state="home"] .brand { transform: translateX(var(--bx, 0px)); }
  .header[data-state="home"] .nav { transform: translateX(var(--nx, 0px)); }
  .header[data-state="home"] .header__social { transform: translateX(var(--cx, 0px)); }
}
.lcard.reveal { will-change: transform; }

/* Page change inside the same document: only the content fades, the header stays */
main, .contact { transition: opacity 0.3s ease, filter 0.3s ease; }
main.page-out, main.page-out ~ .contact { opacity: 0; filter: blur(8px); }
main.page-in, main.page-in ~ .contact { animation: vt-in 0.5s ease both; }
/* Header morph: ease in-out like Secret Level */
@media (min-width: 901px) {
  .header .brand, .header .nav, .header .header__social { transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
}

/* Tile meta: category + AI marker (kept together so "All" still shows the category) */
.lcard__meta { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.tag-ai { font-style: normal; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px; font-size: 10px; letter-spacing: 0.1em; line-height: 1.2; }
.lcard.out { opacity: 0 !important; transition: opacity 0.3s; }
#clients-grid { margin-top: clamp(8px, 2vw, 24px); }

/* About: statement + paragraphs, then the services */
.about__statement { font-weight: 700; letter-spacing: -0.035em; }
.about__statement em { font-size: 1.08em; }
.about__body { white-space: pre-line; color: var(--ink); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; max-width: 36ch; }
.about__body em { font-size: 1.1em; }


/* Page headers: kicker and meta share the top row, title and lede share one baseline */
@media (min-width: 901px) {
  .page-hero { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(32px, 6vw, 100px); align-items: last baseline; }
  .page-hero__kicker { grid-column: 1; grid-row: 1; align-self: start; margin: 0 0 clamp(14px, 2vw, 28px); }
  .page-hero__meta { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; align-self: start; color: var(--mute); margin: 0; line-height: 1.7; }
  .page-hero__title { grid-column: 1; grid-row: 2; margin-left: 0; }
  .page-hero__lede { grid-column: 2; grid-row: 2; justify-self: end; align-self: last baseline; margin: 0; text-align: right; }
}
@media (max-width: 900px) { .page-hero__meta { color: var(--mute); margin: 18px 0 0; line-height: 1.7; } }

/* Header: social icons, always visible */
.header__social { display: flex; align-items: center; gap: 2px; padding: 5px; }
.header__social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: var(--ink); transition: background 0.3s, color 0.3s; }
.header__social a:hover { background: rgba(255, 255, 255, 0.16); color: var(--hl); }

/* Never leave one or two words alone on the last line */
p, li, h1, h2, h3, figcaption { text-wrap: pretty; }
.page-hero__lede, .hero__lede, .about__statement, .contact__title { text-wrap: balance; }


/* Work > Stills: justified grid, every photo keeps its own aspect ratio */
.photos__intro p { margin: 0 0 0.35em; }
.photos__intro { max-width: 52ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.2; color: var(--ink-2); margin: 0 0 clamp(24px, 3vw, 40px); }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos[hidden], .latest[hidden], .photos__intro[hidden] { display: none; }
.photo { position: relative; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 240px); aspect-ratio: var(--ar); overflow: hidden; border-radius: 6px; background: var(--bg-3); padding: 0; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s, transform 1.2s var(--ease); }
.photo img.loaded { opacity: 1; }
.photo:hover img { transform: scale(1.04); }
.photo.out { opacity: 0 !important; transition: opacity 0.3s; }
.photo__cap { position: absolute; left: 14px; bottom: 12px; z-index: 2; opacity: 0; transition: opacity 0.3s; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.6)); opacity: 0; transition: opacity 0.3s; }
.photo:hover .photo__cap, .photo:hover::after { opacity: 1; }
.photos__fill { flex: 100000 1 0; }

/* Lightbox: room view */
.lightbox__tools { display: flex; gap: 10px; align-items: center; }
.lightbox__room { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.lightbox__room:hover, .lightbox__room[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.room { display: none; position: absolute; inset: 0; margin: auto; width: min(100%, calc((100svh - var(--header-h) - 130px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #e6dccd; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox.is-room .room { display: block; }
.lightbox.is-room .lightbox__stage > img { display: none; }
.room__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room__print { position: absolute; object-fit: cover; mix-blend-mode: multiply; filter: brightness(1.12) contrast(1.02); }

/* Play showreel: no faded ancestor, so the glass blur is there from the first frame */
.hero__row { opacity: 1; transform: none; }
body.ready .hero__row { transition: none; }
.hero__lede, .btn-reel { opacity: 0; transform: translateY(16px); }
body.ready .hero__lede { opacity: 1; transform: none; transition: opacity 1s 0.45s, transform 1s 0.45s var(--ease); }
body.ready .btn-reel { opacity: 1; transform: none; transition: opacity 1s 0.55s, transform 1s 0.55s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }

/* Tile tags sit on the picture, in liquid glass */
.lcard__tags { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; }
.tag { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; padding: 7px 11px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
.tag--ai { background: rgba(162, 44, 41, 0.62); border-color: rgba(255, 130, 120, 0.55); }

/* Filter: two bars, the selected pill travels between them */
.filters { position: relative; display: inline-grid; justify-items: start; gap: 10px; margin-bottom: clamp(32px, 5vw, 64px); }
.filters .filter { margin: 0; }
.filter__pill { transition: transform 0.6s var(--ease), width 0.6s var(--ease), opacity 0.2s; }
.filter__blob { display: none; position: absolute; z-index: 4; pointer-events: none; background: var(--accent); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

/* About: the "what we do" list */
.about__what { margin-top: clamp(56px, 7vw, 100px); }
.about__caps--cols { columns: 2; column-gap: clamp(32px, 6vw, 110px); }
.about__caps--cols li { break-inside: avoid; }
@media (max-width: 760px) { .about__caps--cols { columns: 1; } }

/* Contact: the whole footer fits in one screen */
.contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; margin-top: clamp(80px, 10vw, 150px); padding-top: clamp(84px, 11vh, 140px); padding-bottom: 8px; }
.contact__title { font-size: clamp(36px, min(6.2vw, 10.5vh), 110px); }
.contact .timeline { margin-top: clamp(28px, 6vh, 80px); }
.contact__base { padding-top: clamp(18px, 4vh, 40px); }

/* The room view button sits under the photo, centred */
.lightbox__foot { display: grid; grid-template-columns: 1fr auto 1fr; }
.lightbox__room { justify-self: center; }
.lightbox__nav { justify-self: end; }

/* Cursor: liquid glass */
.cursor.is-label { background: rgba(162, 45, 41, 0.3); border: 1px solid rgba(255, 140, 130, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 18px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.3); -webkit-backdrop-filter: blur(10px) saturate(190%) brightness(1.08); backdrop-filter: blur(10px) saturate(190%) brightness(1.08); }
.cursor.is-label span { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

/* Photo / Room view switch */
.lightbox__views { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lightbox__views button { padding: 10px 18px; border-radius: 999px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.lightbox__views button[aria-pressed="true"] { color: #fff; }

/* Shorter screens: compress the footer so it still fits in one view */
@media (max-height: 860px) and (min-width: 901px) {
  .contact { padding-top: 78px; margin-top: 60px; }
  .contact__kicker { margin-bottom: 10px; }
  .contact__title { font-size: clamp(32px, min(5.4vw, 8.6vh), 96px); }
  .contact .timeline { margin-top: 22px; padding-bottom: 8px; }
  .timeline__ruler { padding: 6px 14px 4px 0; }
  .clip { padding: 6px 14px; }
  .clip--main { min-height: 62px; }
  .contact__base { padding: 12px 0 10px; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .contact { padding-top: 70px; }
  .contact__title { font-size: clamp(28px, min(4.6vw, 7.4vh), 80px); }
  .clip--main { min-height: 52px; }
  .clip { padding: 4px 12px; }
}

/* Cursor label: a redder glass, close to #A22D29 */
.cursor.is-label { background: rgba(162, 45, 41, 0.68); border-color: rgba(230, 120, 112, 0.65); -webkit-backdrop-filter: blur(8px) saturate(125%); backdrop-filter: blur(8px) saturate(125%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -10px 22px rgba(120, 20, 18, 0.35), 0 10px 30px rgba(60, 10, 8, 0.4); }

/* Selected states: translucent liquid glass instead of solid fills */
.nav a[aria-current="page"], .filter__pill, .views__pill, .filter__blob {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.07) 60%, rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -10px 18px rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(10px) saturate(190%); backdrop-filter: blur(10px) saturate(190%);
}
.filter button[data-filter="ai"][aria-selected="true"] ~ .filter__pill, .filter__blob.is-red {
  background: linear-gradient(145deg, rgba(214, 78, 70, 0.62), rgba(162, 45, 41, 0.26) 62%, rgba(214, 78, 70, 0.4));
  border-color: rgba(255, 140, 130, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 190, 180, 0.65), inset 0 -10px 18px rgba(162, 45, 41, 0.25), 0 6px 22px rgba(162, 45, 41, 0.3);
}

/* About: statement and copy on the left, the numbered list on the right; then the portrait */
.about--page .about__grid { align-items: start; }
.about--page .about__statement { font-size: clamp(28px, 3.4vw, 54px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; color: var(--ink); margin: 0; }
.about--page .about__statement em { font-size: 1.04em; }
.about--page .about__body { white-space: pre-line; margin: clamp(28px, 3.4vw, 52px) 0 0; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; font-weight: 400; letter-spacing: 0; max-width: 48ch; }
.about--page .about__body em { font-size: 1.05em; }
.about--page .about__side { padding-top: 8px; }

.founder-card { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; margin-top: clamp(80px, 10vw, 150px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.leader__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #6a2a27, #1b0705 70%); display: grid; place-items: center; }
.leader__photo > img { width: 100%; height: 100%; object-fit: cover; }
.leader__initials { font-size: clamp(48px, 7vw, 110px); font-weight: 800; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.18); }
.leader__name { margin: 0; font-size: clamp(36px, 4.6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.leader__role { margin: 10px 0 0; font-size: clamp(16px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }

/* Photos: tight mosaic, every photo keeps its own aspect ratio */
.photos { display: block; columns: 6; column-gap: 4px; }
.photo { display: block; flex: none; width: 100%; margin: 0 0 4px; break-inside: avoid; border-radius: 2px; }
@media (max-width: 1100px) { .photos { columns: 4; } }
@media (max-width: 700px) { .photos { columns: 2; } }

/* About: the statement takes the place of the page lede; the portrait is black and white until hovered */
.about-lede { font-size: clamp(24px, 2.7vw, 42px) !important; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08 !important; color: var(--ink) !important; max-width: 24ch !important; }
.about-lede em { font-size: 1.04em; }
.about--page .about__grid { align-items: start; }
.about--page .about__body { margin-top: 0; }
.leader__photo > img { filter: grayscale(1) contrast(1.04); transition: filter 0.7s var(--ease), transform 1.2s var(--ease); }
.leader__photo:hover > img { filter: none; transform: scale(1.02); }
.leader__name { margin: 0; font-size: clamp(32px, 4vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.leader__role { margin: 8px 0 18px; font-size: clamp(16px, 1.5vw, 22px); font-weight: 500; color: var(--ink-2); }
.leader__bio { margin: 0; max-width: 54ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: var(--ink-2); }
.leader__bio b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .founder-card { grid-template-columns: 1fr; } .leader__photo { max-width: 320px; } }

/* About: the left copy spreads from the top of "What we do" to the last line of the list; the statement never splits its last phrase */
.about-lede em { display: block; white-space: nowrap; }
.about--page .about__grid { align-items: stretch; }
.about--page .about__main { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.about__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; }
.about__copy p { margin: 0; color: var(--ink-2); font-size: clamp(15px, 1.36vw, 22px); line-height: 1.4; letter-spacing: -0.012em; max-width: 36ch; }
.about__copy p em { font-size: 1.05em; }
.about--page .about__side { padding-top: 0; }
.founder-card:hover .leader__photo > img { filter: none; transform: scale(1.02); }
.leader__role { color: var(--hl); text-shadow: var(--glow); font-weight: 600; }

/* Photo / Room view: the glass pill slides between the two options */
.lightbox__views { position: relative; }
.lightbox__views button { position: relative; z-index: 1; }
.views__pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; transition: transform 0.55s var(--ease), width 0.55s var(--ease); }

/* Countries menu on the Images tab */
.countries { margin: 0 0 clamp(20px, 2.4vw, 32px); }
.countries[hidden] { display: none; }
.photo[hidden] { display: none; }


/* Glass pills slide under the chosen option */
.filter__pill, .views__pill { position: absolute; left: 0; width: 0; transform: none; transition: left 0.6s var(--ease), width 0.6s var(--ease), opacity 0.25s; }
.filter__pill, .views__pill, .filter__blob { background: linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.07) 60%, rgba(255, 255, 255, 0.14)); border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -10px 18px rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.25); -webkit-backdrop-filter: blur(10px) saturate(190%); backdrop-filter: blur(10px) saturate(190%); }
.nav a[aria-current="page"] { background: linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.07) 60%, rgba(255, 255, 255, 0.14)); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 14px rgba(0, 0, 0, 0.22); }
.filter button[data-filter="ai"][aria-selected="true"] ~ .filter__pill, .filter__blob.is-red { background: linear-gradient(145deg, rgba(214, 78, 70, 0.62), rgba(162, 45, 41, 0.26) 62%, rgba(214, 78, 70, 0.4)); border-color: rgba(255, 140, 130, 0.55); box-shadow: inset 0 1px 0 rgba(255, 190, 180, 0.65), inset 0 -10px 18px rgba(162, 45, 41, 0.25), 0 6px 22px rgba(162, 45, 41, 0.3); }
.page-hero__lede p { margin: 0 0 0.3em; }

/* Travel mosaic: rows of equal height, some cells stack two photos */
.photos { display: flex; flex-direction: column; gap: 4px; columns: auto; transition: opacity 0.3s; }
.photos.out { opacity: 0; }
.prow { display: flex; gap: 4px; width: 100%; }
.pcell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.photo { position: relative; display: block; width: 100%; margin: 0; min-height: 0; aspect-ratio: auto; overflow: hidden; border-radius: 2px; padding: 0; break-inside: auto; }
.photos[hidden] { display: none; }

/* Cappadocia: same order as before (text, then each film with its credits), centred */
.case[hidden] { display: none; }
.case { max-width: 1040px; margin: 0 auto; text-align: center; transition: opacity 0.3s; }
.case.out { opacity: 0; }
.case__lead { margin: 0 auto; font-size: clamp(26px, 3.2vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.04em; max-width: 24ch; text-wrap: balance; }
.case__text { margin: clamp(24px, 3vw, 44px) auto 0; max-width: 62ch; }
.case__text p { margin: 0 0 1em; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; }
.case__video { margin-top: clamp(48px, 6vw, 96px); }
.case__video h3 { margin: 0 0 14px; font-size: clamp(22px, 2.4vw, 38px); font-weight: 700; letter-spacing: -0.035em; }
.case__video dl { margin: 0 0 clamp(18px, 2vw, 28px); display: grid; gap: 2px; justify-items: center; color: var(--ink-2); font-size: 14px; }
.case__video dl div { display: flex; flex-direction: column; margin-bottom: 8px; }
.case__video dt { color: var(--mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.case__video dd { margin: 2px 0 0; }
.case__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-3); padding: 0; }
.case__thumb img, .case__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__thumb video { z-index: 1; transition: transform 1s var(--ease); }
.case__thumb:hover video { transform: scale(1.03); }

/* About: the two columns meet nearer the middle; copy right-aligned on the left, list left-aligned on the right */
@media (min-width: 901px) {
  .about--page .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); }
  .about--page .about__main { justify-self: end; width: 100%; }
  .about__copy p { margin-left: auto; text-align: right; }
  .about--page .about__side { justify-self: start; width: 100%; max-width: 560px; }
}
/* no hairlines framing the founder block or the footer */
.founder-card { border-top: 0; padding-top: 0; }
.contact { border-top: 0; }

/* Audio clips: complete outline so the last track reads as finished */
.clip--audio { border-color: rgba(94, 209, 122, 0.28); }

/* Travel: absolutely placed mosaic blocks, same bar size as on Work, lede lines kept whole */
.photos { display: block; }
.pblock { position: relative; width: 100%; margin-bottom: 4px; }
.photo { position: absolute; }
@media (min-width: 901px) {
  .page-hero__lede--lines { max-width: none; white-space: nowrap; font-size: clamp(17px, 1.75vw, 27px); line-height: 1.2; }
}

/* Cappadocia: tighter rhythm between text and films */
.case__text { margin-bottom: 0; }
.case__text p:last-child { margin-bottom: 0; }
.case__video { margin-top: clamp(30px, 3.4vw, 52px); }
.case__video h3 { margin-bottom: 10px; }
.case__video dl { margin-bottom: clamp(14px, 1.6vw, 22px); }

/* Timeline: darker panel, fine outlines, visible waveform on the audio clips */
.timeline { background: #0e0d0c; border-color: rgba(255, 255, 255, 0.1); border-radius: 18px; }
.track__label { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.45); }
.clip { border-color: rgba(255, 255, 255, 0.1); }
.clip__sub { color: rgba(255, 255, 255, 0.36); letter-spacing: 0.06em; }
.clip--audio { background: #131815 repeating-linear-gradient(90deg, rgba(94, 209, 122, 0) 0 3px, rgba(94, 209, 122, 0.3) 3px 4px) 0 100% / 100% 52% no-repeat; border-color: rgba(94, 209, 122, 0.3); }
.clip--audio .clip__sub { color: rgba(255, 255, 255, 0.4); }

/* Audio clips: softer waveform so the text stays readable */
.clip--audio { background: #131815 repeating-linear-gradient(90deg, rgba(94, 209, 122, 0) 0 3px, rgba(94, 209, 122, 0.12) 3px 4px) 0 100% / 100% 44% no-repeat; border-color: rgba(94, 209, 122, 0.22); }
.clip--audio .clip__sub { color: rgba(255, 255, 255, 0.5); }

/* Nav: the glass highlight slides under the chosen page */
.nav { position: relative; }
.nav a { position: relative; z-index: 1; }
.nav__pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; transition: left 0.6s var(--ease), width 0.6s var(--ease), opacity 0.25s; background: linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.07) 60%, rgba(255, 255, 255, 0.14)); border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -10px 18px rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.25); -webkit-backdrop-filter: blur(10px) saturate(190%); backdrop-filter: blur(10px) saturate(190%); }
.nav a[aria-current="page"] { background: none; box-shadow: none; }

/* Inner pages: a smaller header block so the first row of work is visible straight away */
.page-hero { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 88px)); }
.page-hero__title { font-size: clamp(76px, 14vw, 260px); }
.filters { margin-bottom: clamp(24px, 3.4vw, 44px); }
.section.clients, .page-hero + .section { padding-top: clamp(28px, 4vw, 64px); }

/* Grid tiles enter by moving in from the bottom edge, never by fading in half way up */
.lcard.reveal, .lcard.reveal.in { opacity: 1; }
.lcard.reveal:not(.out) { transition: none; }
.lcard__media img { opacity: 1; }

/* hero reel: no poster, fades in after the page has opened */
.hero__media video { opacity: 0; }
.hero__media video.on { opacity: 1; }
body.ready .hero__media video { transition: transform 3.2s var(--ease), opacity 1.4s var(--ease); }

/* ---------- Mobile (phones) ------------------------------------------------ */
@media (max-width: 900px) {
  /* header: brand, socials and menu always on one line */
  .header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; }
  .header .header__social { display: flex; gap: 0; padding: 3px; }
  .header__social a { width: 27px; height: 27px; }
  .header__social svg { width: 13px; height: 13px; }
  .header .brand { padding: 8px 12px; gap: 8px; }
  .header .brand__by { font-size: 10px; letter-spacing: 0.08em; white-space: nowrap; }
  .header .menu-btn { display: block; padding: 9px 13px; font-size: 10px; white-space: nowrap; }
  .nav { display: none; }
  /* 3 tiles per row, like on the computer */
  .latest { grid-template-columns: repeat(3, 1fr); gap: 22px 8px; }
  .lcard__media { border-radius: 5px; }
  .lcard__info { padding-top: 8px; }
  .lcard__client { font-size: 8px; letter-spacing: 0.02em; margin-bottom: 2px; }
  .lcard__title { font-size: 11px; letter-spacing: -0.005em; line-height: 1.05; }
  .lcard__meta { font-size: 7px; gap: 4px; margin-top: 4px; }
  .lcard__tags { top: 5px; left: 5px; gap: 3px; }
  .tag { font-size: 6px; padding: 3px 5px; letter-spacing: 0.06em; }
  /* the yellow playhead runs along the timeline here too */
  .timeline__playhead { display: block; }
}
@media (max-width: 560px) { .latest { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .timeline__ruler, .timeline__tracks { margin-left: 46px; }
  .timeline__playhead { left: 46px; }
  .track__label { left: -38px; width: 30px; font-size: 9px; }
  .clip { min-width: 0; padding: 10px 12px; }
  .clip--main .clip__name { font-size: 15px; letter-spacing: -0.02em; }
  .clip__name { font-size: 14px; }
  .timeline__tracks { margin-right: 10px; }
}

/* Mobile: page headers and About follow the computer layout (kicker left, details right, title, statement on the right) */
@media (max-width: 900px) {
  .page-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding-left: var(--pad); padding-right: var(--pad); }
  .page-hero__kicker { grid-column: 1; grid-row: 1; margin: 0; }
  .page-hero__meta { grid-column: 2; grid-row: 1; margin: 0; text-align: right; justify-self: end; line-height: 1.7; }
  .page-hero__title { grid-column: 1 / -1; grid-row: 2; margin: 12px 0 0 -0.04em; }
  .page-hero__lede { grid-column: 1 / -1; grid-row: 3; justify-self: end; text-align: right; margin: 22px 0 0; max-width: 24ch; }
  .page-hero__lede--lines { white-space: normal; max-width: 26ch; }
  .about-lede { max-width: 24ch !important; text-align: right; }
  .about-lede em { white-space: normal; }
  .about--page .about__grid { gap: 48px; }
  .about__copy { height: auto; align-items: flex-end; gap: 22px; }
  .about__copy p { text-align: right; max-width: 34ch; margin-left: auto; font-size: 17px; }
  .founder-card { margin-top: 64px; }
  .leader__photo { max-width: none; width: 100%; }
  .leader__photo > img { transition: filter 0.12s linear; }
  .leader__photo:hover > img, .founder-card:hover .leader__photo > img { transform: none; }
}

/* ---------- Mobile, round 2 ------------------------------------------------ */
@media (max-width: 900px) {
  /* header: brand left, menu centred, socials right */
  .header { display: grid; grid-template-columns: 1fr auto 1fr; justify-content: normal; gap: 6px; }
  .header .brand { order: 1; justify-self: start; }
  .header .menu-btn { order: 2; justify-self: center; }
  .header .header__social { order: 3; justify-self: end; }
  /* viewfinder: four elements out in the corners, camera settings back */
  .vf { inset: calc(var(--header-h) + 6px) 8px 10px 8px; }
  .vf__c { width: 22px; height: 22px; }
  .vf__rec, .vf__tc, .vf__meta { padding: 6px 10px; font-size: 9px; }
  .vf__rec { top: 6px; left: 6px; }
  .vf__tc { top: 6px; right: 6px; }
  .vf__meta { display: block; top: auto; bottom: 6px; right: 6px; font-size: 8px; letter-spacing: 0.04em; }
  .vf__audio { left: 8px; bottom: 10px; width: 56px; }
  /* tiles: two per row */
  .latest, .latest[class] { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .lcard__media { border-radius: 6px; }
  .lcard__info { padding-top: 10px; }
  .lcard__client { font-size: 10px; }
  .lcard__title { font-size: 13px; }
  .lcard__meta { font-size: 8px; }
  .lcard__tags { top: 7px; left: 7px; gap: 4px; }
  .tag { font-size: 7px; padding: 4px 7px; }
  /* page headers: name first, then its details and description, text centred */
  .page-hero { display: block; }
  .page-hero__kicker { margin: 0 0 14px; }
  .page-hero__title { margin: 0 0 0 -0.04em; }
  .page-hero__meta { margin: 20px 0 0; text-align: center; line-height: 1.7; }
  .page-hero__lede, .about-lede { margin: 20px auto 0; max-width: 26ch; text-align: center; }
  .page-hero__lede--lines { text-align: center; }
  .about__copy { align-items: center; }
  .about__copy p { text-align: center; margin: 0 auto; }
  .about__label { text-align: center; }
  .founder-card { text-align: center; }
  .leader__bio { margin-left: auto; margin-right: auto; }
  /* What we do: slides in with the scroll, the item in the middle lights up */
  .about__caps li.cap-in { opacity: 0.18; transform: translateX(-18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), color 0.35s, padding-left 0.35s; }
  .about__caps li.cap-in.in { opacity: 0.6; transform: none; }
  .about__caps li.cap-in.in.is-active { opacity: 1; padding-left: 12px; color: var(--accent-ink); }
}
@media (max-width: 560px) { .latest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .page-hero { display: flex; flex-direction: column; }
  .page-hero__kicker { order: 0; }
  .page-hero__title { order: 1; }
  .page-hero__meta { order: 2; }
  .page-hero__lede, .about-lede { order: 3; }
}
@media (max-width: 900px) { .page-hero { align-items: stretch; } .page-hero__lede, .about-lede { align-self: center; } }

/* ---------- Mobile, round 3 ------------------------------------------------ */
@media (max-width: 900px) {
  /* tiles ride the scroll one-to-one: no CSS easing on top of the glide, light tags (no blur over moving video) */
  .lcard { transition: opacity 1.1s var(--ease); will-change: transform; }
  .lcard:hover { transform: none; }
  .lcard__tile { transition: none; }
  .tag { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(40, 38, 36, 0.7); }
  .tag--ai { background: rgba(150, 40, 37, 0.85); }
  /* page headers: the details sit to the right of the page title, on its baseline */
  .page-hero { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: 12px; align-items: end; }
  .page-hero__kicker { grid-column: 1 / -1; grid-row: 1; align-self: start; }
  .page-hero__title { grid-column: 1; grid-row: 2; margin: 0 0 0 -0.04em; }
  .page-hero__meta { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; margin: 0 0 2px; text-align: right; white-space: nowrap; font-size: 9px; letter-spacing: 0.06em; line-height: 1.6; }
  .page-hero__lede, .about-lede { grid-column: 1 / -1; grid-row: 3; justify-self: center; align-self: auto; }
  /* filter bars: names stay on one line */
  .filter button { white-space: nowrap; }
  .countries.filter button, #countries button { font-size: 15px; padding: 10px 12px; }
  #countries button sup { font-size: 8px; margin-left: 2px; }
}

/* ---------- Mobile, round 4 ------------------------------------------------ */
.track--m { display: none; }
@media (max-width: 900px) {
  /* tags: same liquid glass as on the computer */
  .tag { font-size: 8px; padding: 5px 8px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
  .tag--ai { background: rgba(162, 44, 41, 0.62); border-color: rgba(255, 130, 120, 0.55); }
  /* viewfinder: a little away from the corners */
  .vf { inset: calc(var(--header-h) + 14px) 14px 18px 14px; }
  .vf__rec { top: 16px; left: 18px; }
  .vf__tc { top: 16px; right: 18px; }
  .vf__meta { bottom: 16px; right: 18px; }
  .vf__audio { left: 20px; bottom: 20px; }
  /* timeline: two audio tracks, nothing is ever cut */
  .track--pc { display: none; }
  .track--m { display: flex; }
  .track__lane { flex-wrap: nowrap; min-height: 0; }
  .track:nth-child(2) .track__lane { margin-right: 0; }
  .track--m .track__lane { min-height: 56px; }
  .clip { min-width: 0; flex: 1 1 0; }
  .clip__name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
  .clip--main .clip__name { white-space: nowrap; }
  .clip__sub { white-space: normal; overflow-wrap: anywhere; }
  .clip--studio:not(.clip--status) { flex: 0 0 auto; }
  .clip--status { flex: 1 1 0; }
  .clip--status .clip__name { font-size: 13px; }
}

/* ---------- Round 5 -------------------------------------------------------- */
/* Hero: "an AI film studio by" uses the type of the About statement, the yellow name follows it */
.hero__by { font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.hero__by em { font-size: 1.04em; }

/* About: the statement stands apart from the text that follows */
.about--page { padding-top: clamp(72px, 10vw, 150px); }
@media (max-width: 900px) {
  .about-lede { margin-bottom: 12px; }
  .about--page { padding-top: 64px; }
}

.hero__by { font-size: clamp(24px, 2.7vw, 42px); }
.about--page { padding-top: clamp(100px, 12vw, 190px); }
@media (max-width: 900px) { .about--page { padding-top: 112px; } }

/* Tags on phones: one even 1px edge (no extra top highlight), own layer so the glass shows from the first frame */
@media (max-width: 900px) {
  .tag { box-shadow: none; transform: translateZ(0); -webkit-transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .lcard__tags { transform: translateZ(0); -webkit-transform: translateZ(0); }
}
