/* ═══════════════════════════════════════════
   STYLE-BRANCH.CSS
   Dark theme with fluid responsive design
   Based on style.css with dark theme colors
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   FONTS
═══════════════════════════════════════════ */
@font-face {
  font-family: 'Mattone';
  src: url('../assets/fonts/Mattone-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mattone';
  src: url('../assets/fonts/Mattone-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mattone';
  src: url('../assets/fonts/Mattone-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════
   RESET & TOKENS
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#custom-cursor {
  position: fixed;
  width: 16px; height: 16px;
  background: #FFA500;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
#custom-cursor .cursor-label {
  font-family: 'Mattone', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
#custom-cursor.is-video {
  width: 120px; height: 120px;
  background: #F0ACB6;
}
#custom-cursor.is-video .cursor-label {
  opacity: 1;
}

:root {
  --bg:           #030303;
  --bg2:          #0a0a0a;
  --bg3:          #000000;
  --orange:       #FFA500;
  --orange-dark:  var(--orange-dark);
  --text:         #ffffff;
  --muted:        #b8b8b8;
  --border:       rgba(255,255,255,0.07);
  --px:           clamp(1.25rem, 5vw, 5rem);
  --gap:          clamp(0.5rem, 1.2vw, 1.8rem);
  --ease-out:     var(--ease-out);
  --overlay-dark: rgba(0, 0, 0, 0.70);
  --noise-bg:     linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../assets/images/noise.gif') repeat, #030303;
}

html {
  font-size: clamp(9px, 1.33vw, 17px);
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--noise-bg);
  color: var(--text);
  font-family: 'Mattone', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: scroll;
  height: 100vh;
  scroll-snap-type: y proximity;
  user-select: none;
  -webkit-user-select: none;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032; pointer-events: none; z-index: 9999;
}

/* ═══════════════════════════════════════════
   DARK THEME BASE (All screen sizes)
   From style-dark.css
═══════════════════════════════════════════ */

/* Hero section — dark overlay */
.hero {
  background: #000;
}

.hero::after {
  background: linear-gradient(to bottom, transparent, #000);
}

.hero-text h1 {
  color: #ffffff;
}

.hero-arrow {
  color: var(--orange);
}

/* All project sections: noise.gif black background */
.proj-1,
.proj-2,
.proj-4 {
  background: var(--noise-bg);
}

.proj-3 {
  background: var(--noise-bg);
  background-attachment: scroll;
}

.proj-3::before {
  display: none;
}

/* Project titles & body text: dark theme colors (white titles, light gray body) */
.proj-1,
.proj-2,
.proj-3,
.proj-4 {
  --proj-title: #ffffff;
  --proj-body: #b8b8b8;
}

/* Footer: dark theme colors */
.footer-bottom h3 {
  color: #ffffff;
}

.footer-meta {
  border-bottom-color: rgba(255,255,255,0.08);
}

.email-copy {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.email-copy:hover {
  border-color: #ffffff;
}

.email-copied-toast {
  color: #b8b8b8;
}

.phone-link {
  color: #b8b8b8;
}

.social-link {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.social-link:hover {
  background: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(0.8rem, 2vw, 1.5rem) var(--px);
  background: transparent;
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
}
nav.nav--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nav-side:first-child  { justify-self: start; }
.nav-side:nth-child(3) { justify-self: end; }
.mobile-menu-btn { display: none; }
.mobile-menu { display: none; }

nav a {
  color: #FFA500; text-decoration: none;
  font-size: clamp(0.65rem, 1vw, 1rem); font-weight: 400;
  letter-spacing: 0.09em; text-transform: none; display: inline-block;
  transition: color 0.3s ease, opacity 0.3s ease, transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
nav a:hover { color: var(--orange-dark); opacity: 0.75; transform: scale(1.04); }

.nav-name {
  font-family: 'Mattone', sans-serif; font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.06em; transition: opacity 0.4s ease, color 0.3s ease, transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

/* ═══════════════════════════════════════════
   HERO (commented out in HTML, kept for reference)
═══════════════════════════════════════════ */
.hero {
  width: 100%; height: 100vh;
  position: relative; overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; z-index: 0;
}
.hero-inner {
  display: flex; width: min(1600px, 100%);
  min-height: clamp(400px, 52vw, 780px);
  justify-content: center; align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(60px, 8vw, 120px) var(--px);
  position: relative; z-index: 2;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--overlay-dark);
  pointer-events: none; z-index: 1;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none; z-index: 1;
}
.hero-arrow {
  position: absolute; bottom: clamp(20px, 3vw, 36px); left: 50%; transform: translateX(-50%);
  z-index: 10; color: var(--orange); opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s; text-decoration: none;
}
.hero-arrow:hover { opacity: 1; transform: translateX(-50%) translateY(4px); }
.hero-arrow svg { width: 48px; height: 48px; display: block; }

.hero-glow {
  position: absolute;
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 102, 0.264) 0%, transparent 70%);
  top: 50%; left: 60%; transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 {
  font-size: clamp(15px, 1.4vw, 22px); font-weight: 300; line-height: 1.75;
  color: #ffffff;
  max-width: clamp(320px, 28vw, 520px); margin-bottom: clamp(28px, 3.5vw, 48px);
}
.hero-text h1 strong { font-weight: 700; }
.btn-reel {
  display: inline-block;
  padding: clamp(14px, 1.4vw, 20px) clamp(32px, 3.5vw, 56px);
  border: 1px solid var(--orange); color: var(--orange);
  font-size: clamp(10px, 0.75vw, 13px); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; background: transparent;
  transition: background 0.25s, color 0.25s;
}
.btn-reel:hover { background: var(--orange); color: #000; }
.hero-visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}
.hero-photo-wrap { position: relative; }
.hero-photo { display: flex; align-items: center; justify-content: center; }
.hero-photo img { width: 100%; height: auto; display: block; }
.farofa-badge {
  position: absolute; bottom: -14px; right: -14px;
  background: var(--orange);
  padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.6vw, 22px);
  font-family: 'Mattone', sans-serif; font-weight: 800;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.05em; line-height: 1.1; color: #fff; text-align: center;
}
.farofa-badge span { display: block; font-size: clamp(9px, 0.9vw, 13px); font-weight: 600; letter-spacing: 0.25em; }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about {
  width: 100%;
  position: relative; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.about-video {
  position: absolute; left: 0; width: 100%;
  top: -20%; height: 140%;
  object-fit: cover; pointer-events: none; z-index: 0;
  will-change: transform;
}
.about::before {
  content: ''; position: absolute; inset: 0;
  background: var(--overlay-dark);
  pointer-events: none; z-index: 1;
}
.about::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 70%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 55%, #040404 80%);
  pointer-events: none; z-index: 1;
}
.about-inner {
  width: min(1180px, 100%);
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(360px, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  align-content: center;
  column-gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 7vh, 100px) var(--px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  overflow: visible;
}
.about-photo {
  grid-column: 1;
  grid-row: 2 / 4;
  width: 100%;
  aspect-ratio: 320 / 420;
  overflow: visible;
  z-index: 2;
  align-self: start;
  transform: translateX(clamp(80px, 11vw, 160px)) scale(1.1);
}
.about-photo img,
.about-photo video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  margin-top: 40px;
}
.about-content {
  display: contents;
}


.about-name-wrapper {
  display: contents;
}
.about-name {
  display: contents;
}
.about-name span {
  display: block;
  font-family: 'Mattone', sans-serif; font-weight: 700;
  font-size: clamp(40px, 5.2vw, 80px);
  line-height: 0.88; letter-spacing: -0.02em;
  color: #ffffff;
}
.about-name-line1 {
  grid-column: 2;
  grid-row: 1;
  margin-left: clamp(-200px, -14vw, -80px);
  z-index: 4;
}
.about-name-line2 {
  grid-column: 2;
  grid-row: 2;
  margin-top: clamp(6px, 0.8vw, 14px);
  z-index: 4;
}
.about-text-block {
  grid-column: 2;
  grid-row: 3;
  display: flex; flex-direction: column;
  gap: clamp(0.9rem, 1.8vh, 1.8rem);
  max-width: 620px;
  margin-top: clamp(2px, 0.6vh, 8px);
}
.about-intro {
  display: flex; flex-direction: column;
  gap: clamp(16px, 0.5vw, 32px);
  padding: 0;
}
.about-tagline {
  font-family: 'Mattone', sans-serif; font-weight: 400;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.4; color: #ffffff;
  margin-bottom: clamp(8px, 1.5vh, 16px);
}
.about-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: clamp(6px, 0.7vw, 10px);
}
.about-bullets li {
  font-family: 'Mattone', sans-serif; font-weight: 400;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.45; color: #cccccc;
  padding-left: 1.1em;
  position: relative;
}
.about-bullets li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--orange);
}
.about-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.about-body.is-open {
  grid-template-rows: 1fr;
}
.about-body.is-open .about-body-inner { opacity: 1; }
.about-body-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
  display: flex; flex-direction: column;
  gap: clamp(12px, 2vh, 20px);
  padding-top: clamp(12px, 1.5vh, 20px);
}
.about-body p {
  font-family: 'Mattone', sans-serif; font-weight: 400;
  font-size: clamp(13px, 0.9vw, 14px);
  line-height: 1.6; color: #cccccc;
  max-width: 100%;
}
.about-body-inner p {
  color: #cccccc;
}
/* Demoreel — lives inside .about, below the photo + text */
.demoreel-inner {
  --proj-title: #ffffff;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) var(--px) clamp(160px, 24vh, 300px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4.5vw, 4rem);
  position: relative;
  z-index: 2;
}
.demoreel-inner .project-title {
  font-size: clamp(1.4rem, 2.4vw, 2.6rem);
  margin-bottom: 0;
  color: #ffffff;
}
.demoreel-tile {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

/* Read-more toggle — shown on both desktop and mobile */
.about-readmore {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; outline: none; cursor: pointer;
  font-family: 'Mattone', sans-serif; font-weight: 400;
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--orange); letter-spacing: 0.04em;
  padding: 0; text-align: left;
  transition: color 0.2s;
}
.about-readmore:hover { color: var(--orange); opacity: 0.8; }
.about-readmore-icon {
  display: inline-flex; align-items: center;
  transition: transform 0.35s var(--ease-out);
  color: var(--orange);
}
.about-readmore[aria-expanded="true"] .about-readmore-icon {
  transform: none;
}
.about-readmore[aria-expanded="true"] .about-readmore-icon line:first-child {
  display: none;
}
.about-readmore[aria-expanded="true"] { color: var(--orange); }

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.works { padding-bottom: 40px; }

.project {
  min-height: auto;
  padding: clamp(50px, 7vw, 100px) 0;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.project-inner {
  max-width: 1800px; margin: 0 auto;
  padding: 0 var(--px);
}
.project-type {
  font-size: clamp(0.6rem, 0.75vw, 0.85rem); font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #aaa; margin-bottom: 1.2rem;
}
.project-title {
  font-family: 'Mattone', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 3.6rem);
  font-weight: 800; line-height: 0.88; letter-spacing: 0em;
  margin-bottom: clamp(1rem, 2vw, 1.8rem);
  color: var(--proj-title);
}
.trilogia-title {
  font-family: 'Mattone', sans-serif;
  font-size: clamp(0.78rem, 1.92vw, 2.16rem);
  font-weight: 800; line-height: 0.88;
  margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
  padding-bottom: clamp(0.5rem, 1vw, 1.5rem);
  color: var(--proj-title);
}
.layout-a-grid + .trilogia-title,
.mobile-project + .trilogia-title,
.project-stills + .trilogia-title { margin-top: clamp(50px, 7vw, 100px); }

.project-meta {
  font-size: clamp(0.55rem, 0.7vw, 0.85rem);
  color: var(--proj-title); opacity: 0.5;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4.5vw, 4rem);
}
.proj-desc-text p, .desc-card p,
.mobile-desc p, .mobile-meta { color: var(--proj-body); }

/* ═══════════════════════════════════════════
   16:9 MEDIA TILE
═══════════════════════════════════════════ */
.media-tile {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; width: 100%;
  will-change: transform;
}
.media-tile img,
.media-tile video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.media-tile video { object-fit: contain; object-position: top; }
.proj-3 .media-tile video { transform: scale(1.35); }
.media-tile.is-video img[src$="sua_thumb.jpg"],
.media-tile.is-video img[src$="bruta_thumb.jpg"],
.media-tile.is-video img[src$="pensando_em_mim_thumb.jpg"] {
  transform: scale(1.4);
}
.media-tile.is-video:hover img[src$="sua_thumb.jpg"],
.media-tile.is-video:hover img[src$="bruta_thumb.jpg"],
.media-tile.is-video:hover img[src$="pensando_em_mim_thumb.jpg"] {
  transform: scale(1.42);
}
.tile-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Mattone', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.14);
  text-transform: uppercase; transition: transform 0.5s ease;
}
.media-tile.is-video { cursor: pointer; }
.media-tile.is-video::after {
  content: ''; position: absolute; inset: 0;
  background: transparent; transition: background 0.3s;
}
.media-tile.is-video:hover::after { background: rgba(0,0,0,0.22); }
.media-tile img { transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.media-tile.is-video:hover .tile-placeholder,
.media-tile.is-video:hover img { transform: scale(1.02); }

.play-btn {
  position: absolute;
  bottom: clamp(6px, 1vw, 10px); left: clamp(6px, 1vw, 10px);
  width: clamp(40px, 6vw, 80px); height: clamp(40px, 6vw, 80px);
  border-radius: 50%; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; pointer-events: none; transition: transform 0.3s;
}
.media-tile.is-video:hover .play-btn { transform: scale(1.12); }
.play-btn svg { width: clamp(22px, 3vw, 36px); fill: #fff; margin-left: 3px; }

/* ═══════════════════════════════════════════
   DESCRIPTION CARD
═══════════════════════════════════════════ */
.desc-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  padding: clamp(14px, 1.8vw, 28px);
  display: flex; flex-direction: column; gap: 10px;
}
.desc-card p {
  font-size: clamp(0.75rem, 0.85vw, 1rem);
  color: var(--muted); line-height: 1.75;
}

.awards { display: flex; gap: clamp(8px, 1.5vw, 20px); flex-wrap: wrap; }
.award-icon {
  width: clamp(80px, 12vw, 180px); height: clamp(80px, 12vw, 180px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.award-icon img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* Trilogia awards — same size as other individual awards (e.g. Copo de Silêncio) */
.proj-3 .layout-a-grid .awards .award-icon {
  width: clamp(80px, 12vw, 180px);
  height: clamp(80px, 12vw, 180px);
}


/* ═══════════════════════════════════════════
   DESKTOP LAYOUT A (info left + main video right)
═══════════════════════════════════════════ */
.layout-a-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  align-items: start;
}
.layout-a-grid.layout-a-grid-reversed { grid-template-columns: 2fr 1fr; }
.layout-a-grid .col-left {
  display: flex; flex-direction: column; gap: var(--gap);
}
.layout-a-grid .col-right {
  display: flex; flex-direction: column; gap: var(--gap);
}
.proj-info {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(0.5rem, 1vw, 1rem) 0;
}
.proj-desc-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.proj-desc-clip {
  display: flex; flex-direction: column;
  overflow: hidden; min-height: 0;
}
.proj-gif3-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.proj-desc-text {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-evenly;
  overflow: hidden;
  max-width: calc(70vw - 2rem);
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) 0;
}
.proj-desc-text p {
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  line-height: 1.8;
}

/* mobile-project hidden on desktop/tablet */
.mobile-project { display: none; }

/* ═══════════════════════════════════════════
   STILLS
═══════════════════════════════════════════ */
.project-stills { margin-top: var(--gap); }

@media (min-width: 768px) {
  .project-stills {
    margin-left: calc((100% - var(--gap)) / 3 + var(--gap));
  }
  .project-stills > .stills-btn {
    display: block;
    margin-left: 0;
    width: fit-content;
  }
  .project-stills.is-reversed {
    margin-left: 0;
    width: calc((100% - var(--gap)) * 2 / 3);
  }
  .project-stills.is-reversed > .stills-btn {
    display: block;
    margin-left: 0;
    width: fit-content;
  }
}

.stills-btn {
  display: inline-flex; align-items: center; gap: 6px;
  flex-direction: row-reverse;
  background: none; border: none; padding: 4px 0;
  color: #FFFFFF; cursor: pointer;
  font-family: 'Mattone', sans-serif;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: opacity 0.2s;
}
.stills-btn:hover { opacity: 0.75; }
.stills-btn-icon {
  display: inline-flex; align-items: center;
  font-size: 1.2em; line-height: 1;
  position: relative; top: -0.03em;
  transition: transform 0.35s var(--ease-out);
}

.stills-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-anchor: none;
}
.stills-body.is-open { grid-template-rows: 1fr; }
.stills-body-inner {
  min-height: 0; overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}
.stills-body.is-open .stills-body-inner { opacity: 1; }
.stills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding-top: 8px;
}
.stills-grid .media-tile { aspect-ratio: 16 / 9; overflow: hidden; }
.stills-grid .media-tile:nth-child(n+7) { display: none; }
.stills-grid .media-tile img,
.stills-grid .media-tile video {
  width: 100%; height: 100%; object-fit: cover;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  display: flex; flex-direction: column;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.footer-top {
  background: #f6ca3a;
  height: clamp(48px, 8vw, 100px);
}
.footer-junction {
  background: #f6ca3a;
  display: flex; justify-content: center;
  position: relative;
  z-index: 1;
}
.footer-character-wrap {
  --video-w: clamp(280px, 40vw, 600px);
  --hand-h: calc(var(--video-w) * 504 / 980 / 6.5);
  --hand-w: calc(var(--hand-h) * 141 / 81);
  position: relative;
  width: var(--video-w);
  display: flex;
}
.footer-hand {
  position: absolute;
  top: 100%;
  margin-top: calc(var(--hand-h) * -0.5);
  height: var(--hand-h);
  width: var(--hand-w);
  pointer-events: none;
}
.footer-hand--left  { left:  calc(42% - var(--hand-w)); }
.footer-hand--right { right: calc(42% - var(--hand-w)); }
.footer-character {
  display: block;
  width: 100%;
  margin-bottom: -0.5px;
}
.footer-bottom {
  background: var(--noise-bg);
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
}
@media (color-gamut: p3) and (hover: none) and (pointer: coarse) {
  .footer-top,
  .footer-junction {
    background: color(display-p3 0.937 0.769 0.325);
  }
}
.footer-inner {
  max-width: 1800px; margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "meta    social"
    "contacts contacts"
    "credit   credit";
  align-items: start;
}
.footer-meta {
  grid-area: meta;
  padding-bottom: clamp(24px, 3vw, 40px);
}
.footer-bottom h3 {
  font-family: 'Mattone', sans-serif; font-weight: 800;
  font-size: clamp(18px, 2.8vw, 42px);
  letter-spacing: -0.03em; line-height: 1.5;
  color: #ffffff;
}
.footer-contacts {
  grid-area: contacts;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: clamp(24px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(24px, 3vw, 40px);
  position: relative;
}
.email-wrap {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: flex-start;
}
.email-copy {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: none;
  color: #ffffff; font-size: clamp(14px, 1.6vw, 24px);
  font-family: 'Mattone', sans-serif; font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
  transition: border-color 0.2s, opacity 0.2s;
  cursor: none;
}
.email-copy:hover { border-color: #ffffff; }
.email-copy-icon { display: flex; align-items: center; flex-shrink: 0; }
.email-copy-icon svg { width: 16px; height: 16px; }
.icon-check { display: none; }
.email-copy.copied .icon-copy { display: none; }
.email-copy.copied .icon-check { display: block; }
.email-copy.copied { opacity: 0.6; }
.email-copied-toast {
  position: absolute; top: 100%; left: 0;
  margin-top: 8px; white-space: nowrap;
  color: #b8b8b8; font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.email-copied-toast.visible { opacity: 1; transform: translateY(0); }
.phone-group {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px;
}
.phone-link {
  display: inline-block;
  color: #b8b8b8; font-size: clamp(14px, 1.6vw, 24px);
  font-family: 'Mattone', sans-serif; font-weight: 400;
  text-decoration: none; letter-spacing: 0em;
  transition: opacity 0.2s;
}
.phone-link:hover { opacity: 0.75; }
.footer-social {
  grid-area: social;
  display: flex; gap: 10px; align-items: flex-start; flex-shrink: 0;
  align-self: start;
  padding-bottom: clamp(24px, 3vw, 40px);
}
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: clamp(36px, 3vw, 48px); height: clamp(36px, 3vw, 48px);
  background: rgba(255,255,255,0.1);
  color: #ffffff; text-decoration: none;
  transition: background 0.2s, opacity 0.2s; flex-shrink: 0;
}
.social-link:hover { background: rgba(255,255,255,0.2); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-h2-break { display: none; }
.footer-credit {
  grid-area: credit;
  color: #555; font-size: clamp(11px, 0.9vw, 12px);
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px);
  z-index: 300;
  color: var(--orange); opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.2s ease, color 0.4s ease;
  text-decoration: none; transform: translateY(8px);
}
.back-to-top.visible { opacity: 0.7; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { opacity: 1; transform: translateY(-4px); }
.back-to-top svg { width: 48px; height: 48px; display: block; }

/* ═══════════════════════════════════════════
   VIDEO OVERLAY
═══════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.overlay.active { opacity: 1; pointer-events: all; }
.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(30,30,30,0.88);
  backdrop-filter: blur(10px); cursor: pointer;
}
.overlay-content {
  position: relative; z-index: 1;
  width: min(calc(85vh * 16 / 9), 95vw);
  transition: transform 0.55s var(--ease-out), opacity 0.35s ease;
}
.overlay-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none;
  color: #fff; font-size: 24px; cursor: pointer;
  transition: opacity 0.2s;
}
.overlay-close:hover { opacity: 0.7; }
.overlay-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; background: #000;
  box-shadow: 0 48px 130px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06);
}
.overlay-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

/* ═══════════════════════════════════════════
   PHOTO GALLERY OVERLAY
═══════════════════════════════════════════ */
.gallery-overlay {
  position: fixed; inset: 0; z-index: 490;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-overlay.active { opacity: 1; pointer-events: all; }
.gallery-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(12px); cursor: pointer;
}
.gallery-overlay .overlay-close {
  position: fixed; top: 20px; right: 20px; z-index: 3;
}
.gallery-img-wrap {
  position: relative; z-index: 1;
  width: min(calc(85vh * 16 / 9), 95vw);
}
.gallery-img-wrap img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  box-shadow: 0 48px 130px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06);
  transition: opacity 0.18s ease;
}
.gallery-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 2; background: none; border: none;
  color: #fff; cursor: pointer;
  padding: 16px; opacity: 0.5;
  transition: opacity 0.2s;
}
.gallery-nav:hover { opacity: 1; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.5);
  font-family: 'Mattone', sans-serif;
  font-size: clamp(10px, 1vw, 12px); letter-spacing: 0.12em;
}
.stills-grid .media-tile { cursor: pointer; }

/* ═══════════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   TILE PLACEHOLDERS (per-project gradients)
═══════════════════════════════════════════ */
.proj-1 .tile-placeholder { background: linear-gradient(135deg, #1a0a05, #2d1200); }
.proj-2 .tile-placeholder { background: linear-gradient(135deg, #0f0a14, #1e1426); }
.proj-3 .tile-placeholder { background: linear-gradient(135deg, #020d15, #061a2a); }
.proj-4 .tile-placeholder { background: linear-gradient(135deg, #1a0a05, #2d1200); }

/* ═══════════════════════════════════════════
   DESKTOP NOISE — more visible on large screens
═══════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --noise-bg: linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.30)), url('../assets/images/noise.gif') repeat, #030303;
  }
}

/* ═══════════════════════════════════════════
   LARGE DESKTOP  (≥ 1200px)
═══════════════════════════════════════════ */
@media (min-width: 1200px) {
  .about-inner {
    grid-template-columns: minmax(280px, 420px) minmax(360px, 1fr);
    column-gap: clamp(16px, 2vw, 32px);
  }
  .about-intro {
    justify-content: flex-start;
    gap: clamp(4px, 0.5vw, 8px);
  }
  .about-photo {
    transform: translateX(clamp(140px, 12vw, 260px)) scale(1.18);
  }
}

/* ═══════════════════════════════════════════
   TABLET TWEAK  (768px – 899px)
═══════════════════════════════════════════ */
@media (max-width: 1199px) and (min-width: 900px) {
  nav a { font-size: clamp(10px, 1vw, 12px); }
  .project-type { font-size: clamp(10px, 0.9vw, 11px); letter-spacing: 0.15em; }
  .project-meta { font-size: clamp(10px, 0.9vw, 11px); letter-spacing: 0.2em; }
}

@media (max-width: 899px) and (min-width: 768px) {
  .hero-inner { gap: clamp(16px, 3vw, 40px); }
  .hero-glow { left: 50%; }
  .layout-a-grid { grid-template-columns: 1fr 2fr; }
  .layout-a-grid.layout-a-grid-reversed { grid-template-columns: 2fr 1fr; }
  .proj-desc-text p { font-size: clamp(12px, 1.4vw, 15px); }
  nav a { font-size: clamp(11px, 1.3vw, 13px); }
  .project-type { font-size: clamp(11px, 1.2vw, 12px); letter-spacing: 0.15em; }
  .project-meta { font-size: clamp(11px, 1.2vw, 12px); letter-spacing: 0.2em; }

  .about-inner {
    grid-template-columns: minmax(180px, 280px) minmax(280px, 1fr);
    column-gap: clamp(18px, 3vw, 32px);
    min-height: auto;
    align-content: start;
  }
  .about-name-line1 {
    margin-left: clamp(-140px, -10vw, -60px);
  }
  .about {
    min-height: auto;
  }
  .project {
    min-height: unset;
    padding: clamp(40px, 5vw, 70px) 0;
  }
}

/* ═══════════════════════════════════════════
   MOBILE  (≤ 767px)
═══════════════════════════════════════════ */
@media (max-width: 767px) {
  #custom-cursor { display: none; }
  :root { --px: 20px; --gap: 8px; }

  body {
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }
  .about, .project, footer {
    scroll-snap-align: unset;
    scroll-snap-stop: unset;
  }

  /* Nav */
  .nav-side { display: none; }
  nav {
    display: flex; justify-content: center; gap: 0;
    padding-top: clamp(1.25rem, 6vw, 2rem);
    padding-bottom: clamp(0.65rem, 2.5vw, 1rem);
  }
  .nav-name { text-align: center; font-size: clamp(13px, 3.5vw, 16px); }
  body:has(.mobile-menu.open) .nav-name {
    opacity: 0;
    visibility: hidden;
  }

  /* Mobile menu */
  .mobile-menu-btn {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: var(--px);
    background: none; border: none; outline: none;
    color: #ffffff;
    width: 48px; height: 48px; cursor: pointer;
    transition: transform 0.4s var(--ease-out), color 0.3s;
    line-height: 1; user-select: none; padding: 0;
  }
  .mobile-menu-btn img {
    width: 32px; height: 32px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .mobile-menu-btn.in-about {
    color: #FFA500;
  }
  .mobile-menu-btn.in-about img {
    filter: brightness(0) saturate(100%) invert(61%) sepia(95%) saturate(747%) hue-rotate(359deg) brightness(102%) contrast(105%);
  }

  .mobile-menu {
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: flex-start;
    gap: clamp(20px, 5vh, 32px);
    padding: clamp(78px, 14vh, 110px) var(--px) var(--px);
    position: fixed; inset: 0;
    background: rgba(14, 3, 24, 0.97);
    z-index: 190;
    opacity: 0; pointer-events: none;
    transform-origin: top right;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; transform: scale(1); }
  .mobile-menu-btn.open img {
    transform: rotate(90deg);
  }
  .mobile-menu-link {
    color: #FFA500; text-decoration: none;
    font-size: clamp(28px, 8vw, 42px); font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0; transform: translateX(30px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.2s;
  }
  .mobile-menu.open .mobile-menu-link:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.12s; }
  .mobile-menu.open .mobile-menu-link:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.22s; }
  .mobile-menu.open .mobile-menu-link:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.32s; }
  .mobile-menu-link:hover { color: var(--orange-dark); }

  /* Hero */
  .hero { height: 100vh; }
  .hero-inner { flex-direction: column; padding: 76px var(--px) 48px; gap: 20px; }
  .hero-visual { order: -1; width: 100%; justify-content: center; }
  .hero-photo-wrap { max-width: 100%; }
  .hero-text { width: 100%; }
  .hero-text h1 { max-width: 100%; font-size: clamp(14px, 4vw, 17px); line-height: 1.7; margin-bottom: 24px; }
  .btn-reel { font-size: 10px; padding: 14px 28px; }
  .hero-glow { left: 50%; }

  /* About */
  .about {
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    display: block;
  }
  .about-inner {
    display: flex; flex-direction: column;
    padding: 110px 0 127px 0;
    align-items: center;
    gap: 10px;
    width: 80%; height: auto;
    margin-left: auto; margin-right: auto;
    position: relative; z-index: 2;
    overflow: visible; max-height: none;
    min-height: unset;
    transition: padding-bottom 0.45s var(--ease-out);
  }

  
  /* When body is open, add clearance above the hero-arrow */
  .about:has(#about-body.is-open) .about-inner {
    padding-bottom: 160px;
  }
  .about-photo {
    width: 100%; height: auto;
    aspect-ratio: 320 / 420;
    overflow: hidden; order: 2;
    align-self: flex-start;
    z-index: 1;
    margin-top: 0;
    grid-column: unset;
    grid-row: unset;
    transform: scale(1.12);
  }
  .about-photo img,
  .about-photo video {
    margin-top: 20px;
  }

  .about-name-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: left;
    overflow: visible;
    position: static;
    order: 1;
    margin-bottom: clamp(16px, 3.5vh, 40px);
  }
  .about-content { display: contents; }
  .about-name {
    width: 100%; margin-left: 0; padding: 0;
    display: block;
    position: relative; z-index: 4;
    margin-bottom: clamp(-60px, -9vw, -10px);
  }
  .about-name span {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: clamp(44px, 9vw, 72px);
  line-height: 0.88;
}

  
  .about-name-line1 { margin-left: 0; grid-column: unset; grid-row: unset; }
  .about-name-line2 {
    margin-left: clamp(28px, 12.7vw, 48px);
    margin-top: clamp(4px, 1.5vw, 10px);
    grid-column: unset; grid-row: unset;
  }
  .about-text-block {
    display: flex; flex-direction: column;
    gap: clamp(16px, 4.5vw, 24px); width: 100%; order: 3;
    margin-top: clamp(28px, 8vw, 46px);
    padding-left: 0;
    grid-column: unset; grid-row: unset;
  }
  .about-intro {
    gap: clamp(12px, 3.5vw, 20px); padding: 0;
  }
  .about-tagline {
    font-size: clamp(14px, 4vw, 18px);
  }
  .about-bullets li {
    font-size: clamp(12px, 3.2vw, 14px);
  }
  .about-body p {
    font-size: clamp(12px, 3.2vw, 14px);
    max-width: 100%;
  }
  .about-readmore { font-size: clamp(12px, 3.2vw, 14px); }

  /* Demoreel — mobile */
  .demoreel-inner { padding-top: clamp(24px, 6vw, 40px); padding-bottom: clamp(120px, 28vw, 200px); gap: 32px; }
  .demoreel-inner .project-title { font-size: clamp(20px, 6vw, 30px); }

  /* Stills — 3×2 on mobile */
  .project-stills { margin-top: clamp(24px, 6vw, 40px); }
  .stills-grid { grid-template-columns: repeat(2, 1fr); }

  /* Projects */
  .play-btn {
    width: clamp(52px, 14vw, 72px); height: clamp(52px, 14vw, 72px);
    bottom: clamp(8px, 2vw, 14px); left: clamp(8px, 2vw, 14px);
  }
  .play-btn svg { width: clamp(28px, 7vw, 40px); }

  /* Keep text above parallax-transformed media tiles */
  .project-type, .project-title, .project-meta, .trilogia-title,
  .mobile-desc, .mobile-awards {
    position: relative;
    z-index: 1;
  }

  .project { min-height: unset; padding: 70px 0; }
  .project-type { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 16px; }
  .project-title { font-size: clamp(26px, 7vw, 36px); line-height: 1.15; margin-bottom: 20px; }
  .proj-3 .project-title { font-size: clamp(24px, 6vw, 32px); }
  .trilogia-title { font-size: clamp(18px, 5vw, 26px); line-height: 1.15; margin-bottom: clamp(6px, 1vw, 8px); }
  .mobile-project + .trilogia-title,
  .project-stills + .trilogia-title { margin-top: 70px; }
  .project-meta { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 32px; }
  .layout-a-grid { display: none; }
  .mobile-project { display: flex !important; flex-direction: column; gap: 20px; }
  .mobile-gifs {
    display: grid !important;
    grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .mobile-awards { display: flex; gap: 12px; justify-content: center; }
  .mobile-awards .award-icon {
    width: 124px; height: 124px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .mobile-meta { display: none; }
  .mobile-desc {
    font-size: clamp(11px, 3vw, 13px); color: var(--muted); line-height: 1.7;
    display: flex; flex-direction: column; gap: 10px;
  }
  .proj-desc-text { max-width: 100%; }
  .proj-desc-text p { font-size: clamp(11px, 3vw, 13px); }

  /* Footer */
  .footer-inner {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
  }
  .footer-contacts {
    flex-direction: column; align-items: center;
    justify-content: flex-start;
    gap: clamp(10px, 3vw, 16px);
    padding-top: clamp(16px, 4vw, 24px);
    margin-bottom: clamp(16px, 4vw, 24px);
    width: 100%;
  }
  .phone-group { align-items: center; }
  .email-wrap { align-items: center; width: 100%; }
  .email-copied-toast {
    position: static;
    margin-top: 6px;
    text-align: center;
    align-self: center;
  }
  .footer-social {
    padding-bottom: 0;
    margin-bottom: clamp(40px, 12vw, 64px);
    justify-content: center; width: 100%;
  }
  .footer-bottom h3 { font-size: clamp(24px, 6vw, 32px); line-height: 1.4; font-weight: 600; }
  .footer-h2-break { display: block; margin-top: 0.35em; }
  .footer-meta { padding-bottom: clamp(20px, 5vw, 32px); }
  .footer-credit { font-size: 10px; font-weight: 400; }

  /* ── Mobile parallax reveal ── */

  /* Container: override .reveal so it's always visible */
  .project .mobile-project.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* — Text elements: slide up — */
  .project .project-type,
  .project .project-title,
  .project .project-meta,
  .project .trilogia-title {
    opacity: 0;
    transform: translateY(28px);
    transition: none;
  }
  .project .project-type.m-in,
  .project .project-title.m-in,
  .project .project-meta.m-in,
  .project .trilogia-title.m-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* — Main tile: expand from center — */
  .mobile-project > .media-tile:first-child {
    clip-path: inset(0 50%);
    transition: none;
    overflow: hidden;
  }
  .mobile-project > .media-tile:first-child.m-in {
    clip-path: inset(0 0%);
    transition: clip-path 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* — Awards: fade in — */
  .project .mobile-awards {
    opacity: 0;
    transition: none;
  }
  .project .mobile-awards.m-in {
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* — Description: slide up — */
  .project .mobile-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
  }
  .project .mobile-desc.m-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* — Gif tiles: reveal left to right — */
  .mobile-gifs .media-tile {
    clip-path: inset(0 100% 0 0);
    overflow: hidden;
    transition: none;
  }
  .mobile-gifs .media-tile.m-in {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* — Stills button: slide up (override .reveal) — */
  .project .stills-btn.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: none;
  }
  .project .stills-btn.m-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

