/* leticiadebortoli.com — shared styles for the redesigned pages (home, work index, about, project template).
   Palette and type are the original site's; structure follows the Overthink identity (square edges, labels). */

@font-face { font-family: Clashdisplay; src: url('/fonts/ClashDisplay-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: Gambetta; src: url('/fonts/Gambetta-Light.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: Gambetta; src: url('/fonts/Gambetta-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Gambetta; src: url('/fonts/Gambetta-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Thicccboi; src: url('/fonts/THICCCBOI-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Thicccboi; src: url('/fonts/THICCCBOI-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Thicccboi; src: url('/fonts/THICCCBOI-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --dark: #000;
  --light: #dad7d4;
  --white: #ffffff;
  --muted: rgba(218, 215, 212, .6);
  --faint: rgba(218, 215, 212, .4);
  --line: rgba(218, 215, 212, .15);
  --rec: #d65245;
  --gutter: clamp(16px, 2.4vw, 40px);
  --display: Clashdisplay, 'Clash Display', Arial, sans-serif;
  --serif: Gambetta, Georgia, serif;
  --italic: 'Playfair Display', Georgia, serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }
html { background: var(--dark); }
body { margin: 0; background: transparent; color: var(--light); font-family: Thicccboi, sans-serif; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
/* The sitewide film grain sits over footage on these pages, so loops and page share one texture. */
body::before { z-index: 40 !important; }
a { color: var(--light); text-decoration: none; }
a:hover { color: var(--white); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--light); outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.label.muted, .muted { color: var(--muted); }
.rec-num { color: var(--rec); }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); }
.site-header.static { position: relative; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand .logo { height: 22px; filter: blur(3px); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.site-header nav { display: flex; }
.nav-link { color: var(--light); padding: 14px 16px; font-family: var(--serif); font-size: 16px; line-height: 1.1; }
.nav-link[aria-current="page"] { color: var(--white); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 20px var(--gutter); border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; background: var(--dark); position: relative; z-index: 2; }
.site-footer a, .site-footer span { color: #dad7d466; padding: 12px 0; }
.site-footer a:hover { color: var(--light); }
.site-footer nav { display: flex; gap: 20px; }

/* Background reveal layers (home, index) */
.bg { position: absolute; inset: 0; overflow: hidden; background: var(--dark); }
.bg-layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity 1.1s ease, transform 2.6s var(--ease-out); }
.bg-layer.on { opacity: 1; transform: scale(1); }
.bg-layer img, .bg-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.bg-layer video { animation: fade-in 1.2s ease both; }
.bg-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Big outlined titles */
.title-link { display: inline-flex; align-items: flex-start; gap: 12px; white-space: nowrap; }
.title-link .tt { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; color: var(--light); transition: color .5s, -webkit-text-stroke-color .5s; }
.title-link .n { font-size: 12px; font-weight: 600; letter-spacing: .08em; padding-top: 12px; color: var(--faint); transition: color .5s; }
.has-active .title-link .tt, .outlined .title-link .tt { color: transparent; -webkit-text-stroke: 1px rgba(218, 215, 212, .5); }
.title-link.on .tt { color: var(--white) !important; -webkit-text-stroke-color: transparent !important; }
.title-link.on .n { color: var(--rec); }
.sep { font-family: var(--serif); font-style: italic; color: var(--faint); }

.caption { display: flex; justify-content: center; gap: 16px; transition: opacity .5s; }
.caption.off { opacity: 0; }

/* ---------- Home: sideways scroll ---------- */
.home { height: 100vh; overflow: hidden; }
.h-stage { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.h-stage:focus { outline: none; }
.h-track { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; width: max-content; will-change: transform; }
.h-intro { flex: 0 0 auto; width: 100vw; height: 100%; padding: 88px var(--gutter) 112px; display: flex; gap: clamp(24px, 3vw, 48px); background: var(--dark); }
.h-intro .photo { flex: 0 0 56%; overflow: hidden; background: #111; }
.h-intro .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.h-intro .text { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.h-intro .stack { display: flex; flex-direction: column; gap: 20px; }
.role { margin: 0; font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(22px, 2vw, 32px); line-height: 1; color: #ffffffed; }
.name { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.3vw, 64px); line-height: 1; white-space: nowrap; }
.oneliner { margin: 0; max-width: 24ch; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.4; }
.cue { display: flex; align-items: center; gap: 14px; }
.cue .line { width: 72px; height: 1px; background: rgba(218, 215, 212, .35); position: relative; overflow: hidden; }
.cue .line i { position: absolute; inset: 0; background: var(--light); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.h-gap { flex: 0 0 auto; width: 14vw; }
.h-group { flex: 0 0 auto; display: flex; align-items: center; }
.h-marker { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 34vh; padding: 0 56px 0 64px; margin-left: 40px; border-left: 1px solid rgba(218, 215, 212, .3); }
.h-track .title-link { padding: 0 4px; }
.h-track .title-link .tt { font-size: clamp(64px, 9vw, 148px); }
.h-track .sep { font-size: clamp(28px, 3vw, 48px); padding: 0 18px; }
.h-end { flex: 0 0 auto; width: 72vw; height: 100%; margin-left: 14vw; padding: 88px clamp(24px, 4vw, 64px) 140px; display: flex; flex-direction: column; justify-content: center; gap: 40px; background: var(--dark); border-left: 1px solid var(--line); }
.full-index { display: flex; flex-direction: column; gap: 18px; }
.full-index .ft { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(56px, 8vw, 132px); line-height: .9; transition: letter-spacing .7s var(--ease-out), color .4s; }
.full-index:hover .ft { letter-spacing: .02em; color: var(--white); }
.full-index .arr { display: inline-block; transition: transform .6s var(--ease-out); }
.full-index:hover .arr { transform: translateX(16px); }
.h-contact { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding-top: 28px; border-top: 1px solid var(--line); }
.h-contact strong { font-family: var(--display); text-transform: uppercase; font-size: 22px; }
.h-contact a { font-family: var(--serif); font-size: 20px; padding: 8px 0; border-bottom: 1px solid rgba(218, 215, 212, .5); }
.h-hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column; gap: 10px; padding: 16px var(--gutter) 20px; }
.h-hud .row { display: flex; align-items: center; gap: 24px; }
.h-hud .where { flex: 0 0 180px; }
.ticks { flex: 1 1 auto; display: flex; gap: 4px; }
.tick { all: unset; cursor: pointer; flex: 1 1 0; height: 24px; display: flex; align-items: center; }
.tick span { display: block; width: 100%; height: 1px; background: rgba(218, 215, 212, .3); transition: height .3s, background .3s; }
.tick:hover span { background: var(--light); }
.tick.on span { height: 3px; background: var(--rec); }
.tick:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; }

/* Phones, tablets, touch: the strip reads top to bottom instead. */
@media (max-width: 860px), (hover: none) {
  .home { height: auto; overflow: visible; }
  .h-stage { height: auto; overflow: visible; }
  .h-stage > .bg { position: fixed; }
  .h-track { flex-direction: column; align-items: stretch; width: auto; height: auto; transform: none !important; }
  .h-intro { width: auto; height: auto; flex-direction: column; padding-bottom: 48px; }
  .h-intro .photo { flex: none; aspect-ratio: 4 / 5; }
  .name { white-space: normal; font-size: 11vw; }
  .h-gap { display: none; }
  .h-group { flex-direction: column; align-items: flex-start; padding: 40px var(--gutter) 24px; gap: 10px; }
  .h-marker { height: auto; padding: 0 0 12px; margin: 0 0 8px; border-left: 0; border-bottom: 1px solid rgba(218, 215, 212, .3); width: 100%; flex-direction: row; justify-content: space-between; }
  .h-track .title-link { display: flex; max-width: 100%; white-space: normal; padding: 6px 0; }
  .h-track .title-link .tt { font-size: 10vw; min-width: 0; overflow-wrap: anywhere; }
  .h-track .sep { display: none; }
  .h-end { width: auto; margin: 64px 0 0; padding: 64px var(--gutter) 96px; }
  .h-hud { position: fixed; padding: 14px var(--gutter); background: rgba(0, 0, 0, .88); }
  .h-hud .row { display: none; }
  .h-end { padding-bottom: 120px; }
}

/* ---------- Work index ---------- */
.index-board { position: relative; min-height: 100vh; }
.index-board > .bg { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; }
.index-body { position: relative; z-index: 2; padding: 140px var(--gutter) 160px; display: flex; flex-direction: column; align-items: center; gap: 72px; text-align: center; }
.index-head { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.index-head h1 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 5vw, 80px); line-height: .9; }
.index-group { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 1240px; }
.index-group h2 { margin: 0; }
.index-titles { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 16px; row-gap: 4px; }
.index-titles .title-link .tt { font-size: clamp(26px, 3vw, 48px); line-height: 1.06; }
.index-titles .sep { font-size: clamp(18px, 1.6vw, 26px); }
.index-board .caption { position: sticky; bottom: 0; z-index: 2; padding: 24px 16px; }

/* ---------- Project template ---------- */
.rise { animation: rise 1.1s var(--ease-out) both; }
.rise.d1 { animation-delay: .15s; } .rise.d2 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.p-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.p-hero > video, .p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero-body { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(32px, 4vw, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
/* --len = letters in the title's longest word (set by render.py), so a word never breaks across lines. */
.p-title { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: min(13vw, 210px, calc((100vw - 2 * var(--gutter)) / (var(--len, 8) * .78))); line-height: .88; color: var(--white); }
.p-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border: 1px solid rgba(218, 215, 212, .7); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); transition: background .4s, color .4s; }
.btn:hover { background: var(--light); color: var(--dark); }
.p-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(80px, 9vw, 140px) var(--gutter) 0; }
.p-logline { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.7vw, 42px); line-height: 1.25; color: #ffffffed; }
.p-role { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.p-player-wrap { padding: clamp(56px, 6vw, 96px) var(--gutter) 0; }
.p-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0d0d; }
.p-player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.p-player .play { all: unset; cursor: pointer; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .5s; }
.p-player .ring { width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .35); transition: transform .6s var(--ease-out), background .4s; }
.p-player .play:hover .ring { transform: scale(1.08); background: rgba(0, 0, 0, .55); }
.p-player .play:focus-visible .ring { outline: 2px solid var(--light); outline-offset: 6px; }
.p-player.playing .play { opacity: 0; pointer-events: none; }
.p-player-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.p-section { padding: clamp(96px, 10vw, 160px) var(--gutter) 0; }
.p-section.split { display: flex; gap: clamp(32px, 5vw, 80px); align-items: center; }
.p-section.split .still { flex: 0 0 52%; aspect-ratio: 4 / 3; }
.p-section .copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; max-width: 1180px; margin: 0 auto; }
.p-section h2 { margin: 0; }
.p-lead { margin: 0; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 28px); line-height: 1.42; }
.p-body { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: #dad7d4bf; }
.still { overflow: hidden; background: #111; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.still:hover img { transform: scale(1.04); }
/* Project pages: intro, video slots, artwork gallery */
.p-hero.bare { height: 78vh; min-height: 560px; background: radial-gradient(120% 90% at 80% 0%, #1b1b1b 0%, #000 60%); }
.p-hero .award { max-width: 26ch; line-height: 1.5; }
.p-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 120px); padding: clamp(80px, 9vw, 140px) var(--gutter) 0; align-items: start; }
.p-copy { display: flex; flex-direction: column; gap: 28px; max-width: 62ch; }
.p-copy .p-lead { color: #ffffffe0; }
.p-facts { margin: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.p-facts div { display: flex; flex-direction: column; gap: 6px; }
.p-facts dd { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.p-watch { padding: clamp(64px, 7vw, 112px) var(--gutter) 0; display: flex; flex-direction: column; gap: clamp(40px, 4vw, 64px); scroll-margin-top: 24px; }
.p-videos { display: grid; gap: clamp(16px, 1.6vw, 28px); grid-template-columns: minmax(0, 1fr); }
.p-videos.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-videos.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-videos.tall { grid-template-columns: repeat(var(--cols, 4), minmax(0, 300px)); justify-content: center; }
.p-videos.tall.n2 { --cols: 2; }
.p-videos.tall.n3 { --cols: 3; }
.p-video { margin: 0; }
.p-video .p-player { aspect-ratio: var(--ratio, 16 / 9); }
.p-player.pending img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.3); }
.p-player.pending .soon { position: absolute; left: 16px; bottom: 14px; padding: 7px 11px; background: rgba(0, 0, 0, .6); color: var(--light); border: 1px solid var(--line); }
.p-videos.n3 .ring, .p-videos.tall .ring, .p-videos.mixed .ring { width: 72px; height: 72px; }
.p-player .ph-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8%; text-align: center; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 4vw, 64px); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(218, 215, 212, .22); }
.p-videos.tall .ph-title, .p-videos.n3 .ph-title, .p-videos.mixed .p-video.tall .ph-title { font-size: clamp(18px, 2vw, 30px); }
.a-intro .a-text { max-width: 30ch; }
@media (max-width: 960px) {
  .p-intro { grid-template-columns: minmax(0, 1fr); }
  .p-videos.mixed { grid-template-columns: minmax(0, 1fr) !important; }
  .p-videos.mixed .p-video.tall { max-width: 300px; }
  .p-videos.n3 { grid-template-columns: minmax(0, 1fr); }
  .p-videos.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .p-videos.n2 { grid-template-columns: minmax(0, 1fr); }
  }
.p-next { position: relative; display: block; margin-top: clamp(120px, 12vw, 200px); overflow: hidden; border-top: 1px solid var(--line); }
.p-next .nbg { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity .9s, transform 2.2s var(--ease-out); }
.p-next .nbg img { width: 100%; height: 100%; object-fit: cover; }
.p-next:hover .nbg, .p-next:focus-visible .nbg { opacity: .5; transform: scale(1); }
.p-next .inner { position: relative; padding: clamp(64px, 8vw, 128px) var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.p-next .nt { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: min(12vw, 190px, calc((100vw - 2 * var(--gutter)) / ((var(--len, 8) + 2) * .78))); line-height: .88; color: transparent; -webkit-text-stroke: 1px rgba(218, 215, 212, .55); transition: color .5s, -webkit-text-stroke-color .5s; }
.p-next:hover .nt, .p-next:focus-visible .nt { color: var(--white); -webkit-text-stroke-color: transparent; }
.p-next:focus-visible { outline: 2px solid var(--light); outline-offset: -6px; }

/* ---------- About ---------- */
.a-intro { display: flex; gap: clamp(32px, 4vw, 64px); padding: 32px var(--gutter) 0; align-items: stretch; }
.a-intro .text { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 8px 0; }
.a-intro .photo { flex: 0 0 54%; min-height: 680px; overflow: hidden; background: #111; }
.a-intro .photo img { width: 100%; height: 100%; object-fit: cover; }
.a-hello { margin: 0; font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.08; color: #ffffffed; }
.a-cols { padding: clamp(96px, 10vw, 160px) var(--gutter) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 96px); }
.a-cols > div { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(218, 215, 212, .18); }
.a-cols h2 { margin: 0; }
.a-picks { padding: clamp(96px, 10vw, 160px) var(--gutter) 0; }
.pick { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(218, 215, 212, .12); }
.pick .pt { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 4vw, 64px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(218, 215, 212, .55); transition: color .45s, -webkit-text-stroke-color .45s; }
.pick:hover .pt, .pick:focus-visible .pt { color: var(--white); -webkit-text-stroke-color: transparent; }
.pick .pk { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

.close { padding: clamp(96px, 10vw, 160px) var(--gutter) clamp(56px, 6vw, 96px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; position: relative; z-index: 2; }
.close p { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 7vw, 112px); line-height: .9; }
.close a { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); padding: 8px 0; border-bottom: 1px solid rgba(218, 215, 212, .5); }

@media (max-width: 860px) {
  .title-link { white-space: normal; max-width: 100%; }
  .title-link .tt { min-width: 0; overflow-wrap: anywhere; }
  .site-header { padding: 12px var(--gutter); }
  .brand { gap: 8px; }
  .brand .logo { height: 16px; }
  .brand-name { font-size: 12px; white-space: nowrap; }
  .nav-link { padding: 14px 4px; font-size: 13px; }
  /* Index on phones: a left-aligned list, one title per line; the title mid-screen lights up. */
  .index-body { align-items: stretch; text-align: left; padding-top: 104px; gap: 56px; }
  .index-head { align-items: flex-start; }
  .index-group { align-items: stretch; max-width: none; }
  .index-group h2 { padding-bottom: 10px; border-bottom: 1px solid rgba(218, 215, 212, .3); display: flex; justify-content: space-between; }
  .index-titles { flex-direction: column; align-items: flex-start; row-gap: 10px; }
  .index-titles .sep { display: none; }
  .index-titles .title-link .tt { font-size: 9vw; }
  .index-board .caption { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .88); padding: 14px 16px; }
  .p-section.split, .a-intro { flex-direction: column; }
  .p-section.split .still, .a-intro .photo { flex: none; width: 100%; }
  .a-intro .photo { min-height: 0; aspect-ratio: 4 / 5; }
  .a-cols { grid-template-columns: minmax(0, 1fr); }
  .p-side { align-items: flex-start; text-align: left; }
}

/* Small phones: keep the name on one line next to the menu. */
@media (max-width: 420px) {
  .site-header { padding: 12px 12px; }
  .brand .logo { display: none; }
  .brand-name { font-size: 11px; }
  .site-header nav { gap: 0; }
  .nav-link { padding: 14px 2px; font-size: 12px; }
  .site-header .nav-link.nav-link-animated { padding: 0 13px !important; } /* sitewide code sets 0 25px !important */
  .site-header .nav-link-animated::before { left: 3px; }
  .site-header .nav-link-animated::after { right: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .cue .line i, .bg-layer video { animation: none; }
  .bg-layer, .title-link .tt, .full-index .ft, .full-index .arr, .still img, .p-next .nbg, .p-player .ring { transition: none; }
}

/* ---------- Case study (design-led projects, e.g. Rehearsed) ----------
   The portfolio stays the frame (black, Clash / Gambetta / Thicccboi); the project's own
   colours live only inside its panels and assets. */
.cs-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding: 48px var(--gutter) 0; }
.cs-intro-text { display: flex; flex-direction: column; gap: 22px; }
.cs-intro .p-title { font-size: min(11vw, 168px, calc((42vw - var(--gutter)) / (var(--len, 8) * .78))); }
.cs-intro .p-lead { max-width: 44ch; }
.cs-credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.cs-credits div { display: flex; flex-direction: column; gap: 4px; }
.cs-credits dd { margin: 0; font-size: 15px; line-height: 1.4; }

.cs-hero { position: relative; aspect-ratio: 7 / 6; background: #F2ECE6; overflow: hidden; }
.cs-hero-logo { position: absolute; left: 7%; top: 8%; width: 46%; }
.cs-hero-mark { position: absolute; right: 7%; top: 9%; width: 17%; opacity: .5; mix-blend-mode: multiply; transform: rotate(8deg); }
.cs-postit { position: absolute; width: 30%; padding: 3.2% 3.2% 2.4%; background: var(--tint); box-shadow: 0 18px 40px -18px rgba(21, 97, 109, .45); display: flex; flex-direction: column; gap: 8px;
  transition: transform .8s var(--ease-out); animation: rise 1.1s var(--ease-out) both; }
.cs-postit img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #CFDCEA; }
.cs-postit span { font-family: var(--display); font-size: clamp(14px, 1.4vw, 22px); text-transform: uppercase; color: #15616D; }
.cs-postit.p1 { left: 6%; bottom: 9%; transform: rotate(-5deg); animation-delay: .35s; }
.cs-postit.p2 { left: 36%; bottom: 17%; transform: rotate(2.5deg); animation-delay: .5s; z-index: 2; }
.cs-postit.p3 { left: 65%; bottom: 7%; transform: rotate(-2deg); animation-delay: .65s; }
.cs-hero:hover .cs-postit.p1 { transform: rotate(-7deg) translateY(-6px); }
.cs-hero:hover .cs-postit.p2 { transform: rotate(0deg) translateY(-10px); }
.cs-hero:hover .cs-postit.p3 { transform: rotate(-4deg) translateY(-6px); }

.cs-section { padding: clamp(112px, 12vw, 192px) var(--gutter) 0; }
.cs-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(218, 215, 212, .18); margin-bottom: clamp(28px, 3vw, 44px); }
.cs-head h2 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 4vw, 64px); line-height: .95; }
.cs-lede { max-width: 920px; display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 4vw, 56px); }
.cs-btn { margin-top: clamp(28px, 3vw, 44px); }

.cs-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); }
.cs-tile { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 64px); min-height: 220px; }
.cs-tile.paper { background: #F2ECE6; color: #15616D; }
.cs-tile.teal { background: #15616D; color: #F2ECE6; }
.cs-tile.purple { background: #524291; }
.cs-tile .label { position: absolute; left: 20px; bottom: 16px; }
.cs-tile.wide { grid-column: span 7; min-height: 420px; }
.cs-tile.wide img { width: 78%; }
.cs-tile-stack { grid-column: span 5; display: grid; gap: inherit; grid-template-rows: 1fr 1fr; }
.cs-tile-stack .cs-tile { min-height: 0; }
.cs-tile-stack img { width: 64%; }
.cs-swatches { grid-column: span 12; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2.2fr 1.6fr repeat(5, 1fr); gap: inherit; }
.cs-swatches li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cs-swatches .sw { display: block; height: clamp(88px, 9vw, 140px); background: var(--sw); margin-bottom: 8px; }
.cs-swatches code { font-family: inherit; color: var(--muted); }
.cs-tile.image { grid-column: span 6; padding: 0; margin: 0; min-height: 0; background: #F2ECE6; }
.cs-tile.image img { width: 100%; height: 100%; object-fit: cover; }
.cs-tile.voice { grid-column: span 6; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px; }
.cs-tile.voice .label { position: static; color: #EDDEA4; }
.cs-slogan { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.8vw, 44px); line-height: .98; }
.cs-voice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; width: 100%; }
.cs-voice h3 { margin: 0 0 4px; font-size: 15px; color: #EDDEA4; }
.cs-voice p { margin: 0; font-size: 14px; line-height: 1.45; color: #F2ECE6d9; }
.cs-illos { grid-column: span 12; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: inherit; }
.cs-illo { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 8%; }
.cs-illo img { max-height: 100%; object-fit: contain; }
.cs-illo.t1 { background: #ffffff; } .cs-illo.t2 { background: #D1B7E0; } .cs-illo.t3 { background: #F2ECE6; } .cs-illo.t4 { background: #EDDEA4; }

.cs-points { list-style: none; margin: 0 0 clamp(40px, 4vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.cs-points.journey { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 4vw, 64px); }
.cs-points li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(218, 215, 212, .18); }
.cs-points .rec-num { font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.cs-points h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); line-height: 1; }
.cs-points p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: #dad7d4bf; }

.cs-screens { display: grid; grid-template-columns: minmax(0, 3.3fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 28px); align-items: end; }
.cs-screen { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-screen img, .cs-pending { width: 100%; display: block; border: 1px solid rgba(218, 215, 212, .2); background: #F2ECE6; }
.cs-screen.desktop .cs-pending { aspect-ratio: 16 / 10; }
.cs-screen.desktop .cs-rec { aspect-ratio: 1600 / 812; }
.cs-rec { width: 100%; display: block; object-fit: cover; object-position: top; border: 1px solid rgba(218, 215, 212, .2); background: #F2ECE6; }
.cs-screen.mobile .cs-pending, .cs-screen.mobile .cs-rec { aspect-ratio: 390 / 844; }
.cs-pending { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #15616D; border-style: dashed; }

.cs-player { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-video { width: 100%; aspect-ratio: 16 / 9; background: #D1B7E0; display: block; }
.cs-walk { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F2ECE6; }
.cs-walk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-watch { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 0; cursor: pointer;
  background: #15616D; color: #F2ECE6; font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: background .3s, transform .3s var(--ease-out); }
.cs-watch:hover, .cs-watch:focus-visible { background: #524291; transform: translateY(-2px); }
.cs-walk [hidden], .cs-walk.playing .cs-watch, .cs-walk.playing .cs-loop { display: none; }
.cs-video-pending { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cs-video-pending img { width: 82%; height: auto; }
.cs-video-pending .label { position: absolute; left: 20px; bottom: 18px; color: #524291; background: #F2ECE6; padding: 8px 12px; }
.cs-scope { display: flex; gap: 18px; align-items: baseline; max-width: 920px; margin: 0 0 clamp(72px, 8vw, 120px); padding: 18px 20px; border-left: 3px solid var(--rec); background: rgba(218, 215, 212, .06); font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.cs-scope .label { flex: 0 0 auto; color: var(--muted); }
.cs-cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); }
.cs-person { display: flex; flex-direction: column; gap: 10px; }
.cs-person .portrait { background: #CFDCEA; box-shadow: inset 0 -6px 0 var(--tint); aspect-ratio: 1; overflow: hidden; margin-bottom: 10px; }
.cs-person .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cs-person:hover .portrait img { transform: scale(1.04); }
.cs-person h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; }
.cs-person .label { color: var(--tint); }
.cs-person p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: #dad7d4cc; }
.cs-person blockquote { margin: 6px 0 0; font-family: var(--italic); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--white); }

@media (max-width: 960px) {
  .cs-intro { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .cs-intro .p-title { font-size: min(16vw, calc((100vw - 2 * var(--gutter)) / (var(--len, 8) * .78))); }
  .cs-tile.wide, .cs-tile-stack, .cs-tile.image, .cs-tile.voice { grid-column: span 12; }
  .cs-tile.wide { min-height: 260px; }
  .cs-tile-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .cs-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-illos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-points, .cs-points.journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-cast { grid-template-columns: minmax(0, 1fr); }
  .cs-person { display: grid; grid-template-columns: 38% minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .cs-person .portrait { grid-row: span 5; margin: 0; }
}
@media (max-width: 600px) {
  .cs-credits { grid-template-columns: minmax(0, 1fr); }
  .cs-screens { grid-template-columns: minmax(0, 1fr); }
  .cs-screen.mobile { max-width: 260px; }
  .cs-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-points, .cs-points.journey, .cs-voice { grid-template-columns: minmax(0, 1fr); }
  .cs-scope { flex-direction: column; gap: 6px; }
  .cs-tile-stack { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .cs-postit, .cs-person .portrait img { animation: none; transition: none; } }

/* Project pages, refined (Oct 30): one calm column after the full-bleed header, light type, room around everything */
body[data-page="project"] { --measure: 1120px; }
body[data-page="project"] .label { font-weight: 500; letter-spacing: .1em; }
body[data-page="project"] .p-intro { max-width: var(--measure); margin: 0 auto; box-sizing: content-box; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 8vw, 140px); padding-top: clamp(140px, 16vw, 240px); }
body[data-page="project"] .p-intro .p-copy { order: 2; gap: 24px; max-width: 46ch; }
body[data-page="project"] .p-intro .p-facts { order: 1; border-top: 0; padding-top: 6px; gap: 26px; }
body[data-page="project"] .p-copy .p-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.7; color: rgba(218, 215, 212, .82); }
body[data-page="project"] .p-copy .p-logline { font-weight: 300; font-size: clamp(24px, 2vw, 32px); line-height: 1.3; color: var(--white); }
body[data-page="project"] .p-facts dd { font-weight: 300; font-size: 16px; line-height: 1.5; color: rgba(218, 215, 212, .82); }
body[data-page="project"] .p-watch { max-width: var(--measure); margin: 0 auto; box-sizing: content-box; padding-top: clamp(120px, 13vw, 200px); gap: clamp(64px, 7vw, 112px); }
body[data-page="project"] .p-videos.n1 { max-width: 920px; width: 100%; margin: 0 auto; }
body[data-page="project"] .p-videos.n2, body[data-page="project"] .p-videos.n3 { gap: clamp(20px, 2.4vw, 40px); }
body[data-page="project"] .p-videos.tall { grid-template-columns: repeat(var(--cols, 4), minmax(0, 220px)); gap: clamp(20px, 2.4vw, 40px); }
body[data-page="project"] .p-videos.mixed { max-width: 1000px; width: 100%; margin: 0 auto; gap: clamp(20px, 2.4vw, 40px); }
body[data-page="project"] .p-player .ring { width: 64px; height: 64px; border-color: rgba(255, 255, 255, .6); }
body[data-page="project"] .p-player-meta { padding-top: 16px; }

/* Frames: a contact sheet. Equal frames on a four-column grid inside the text column, numbered like a roll. */
.p-frames { max-width: var(--measure, 1120px); margin: 0 auto; box-sizing: content-box; padding: clamp(140px, 16vw, 240px) var(--gutter) 0; }
.p-frames .f-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.p-frames .f-sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.p-frames .frame { margin: 0; }
.p-frames .fi { aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.p-frames .fi img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); transition: filter .6s, transform 1.4s var(--ease-out); }
.p-frames .frame:hover .fi img { filter: saturate(1); transform: scale(1.03); }
.p-frames figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(218, 215, 212, .45); }
.p-frames figcaption span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .p-frames .f-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
}
.p-gallery .p-next { margin-top: clamp(160px, 18vw, 280px); }
@media (max-width: 960px) {
  body[data-page="project"] .p-intro { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  body[data-page="project"] .p-intro .p-facts { order: 3; }
}
@media (max-width: 600px) {
  body[data-page="project"] .p-videos.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body[data-page="project"] .p-intro .p-copy { grid-column: 2; grid-row: 1; }
body[data-page="project"] .p-intro .p-facts { grid-column: 1; grid-row: 1; }
@media (max-width: 960px) {
  body[data-page="project"] .p-intro .p-copy, body[data-page="project"] .p-intro .p-facts { grid-column: 1; grid-row: auto; }
}
body[data-page="project"] .p-player.pending .soon { left: 14px; bottom: 12px; padding: 0; background: none; border: 0; font-size: 10px; color: rgba(218, 215, 212, .45); }

/* Artwork (Grateful Dead): one row at the contact sheet's scale, pieces at equal height in their own proportions */
.p-gallery { max-width: var(--measure, 1120px); margin: 0 auto; box-sizing: content-box; padding: clamp(120px, 12vw, 180px) var(--gutter) 0; }
.p-gallery .f-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.p-gallery .g-row { display: flex; gap: 28px; align-items: flex-start; }
.g-item { margin: 0; flex: var(--a) 1 0; min-width: 0; }
.g-item img { width: 100%; aspect-ratio: var(--a); object-fit: cover; display: block; background: #111; }
.g-item figcaption { margin-top: 10px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(218, 215, 212, .45); }
@media (max-width: 600px) { .p-gallery .g-row { flex-wrap: wrap; } .g-item { flex: 1 1 100%; } }

/* Project pages (Oct 30, option C): the lead film and the story side by side, details under a hairline */
.p-main { max-width: var(--measure, 1120px); margin: 0 auto; box-sizing: content-box; padding: clamp(140px, 16vw, 240px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: start; scroll-margin-top: 24px; }
.p-main.tall-lead { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
.p-main.no-film { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.p-main .p-video { margin: 0; }
.p-story { display: flex; flex-direction: column; gap: 40px; }
.p-story .p-copy { display: flex; flex-direction: column; gap: 22px; max-width: 46ch; }
.p-story .p-lead { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; color: rgba(218, 215, 212, .82); }
.p-story .p-logline { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.3; color: var(--white); }
.p-story .p-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.p-story .p-facts div { display: flex; flex-direction: column; gap: 6px; }
.p-story .p-facts dd { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 15px; line-height: 1.45; color: rgba(218, 215, 212, .82); }
body[data-page="project"] .p-watch.more { padding-top: clamp(64px, 7vw, 112px); }
body[data-page="project"] .p-watch.more .p-videos.n1 { max-width: 920px; }
@media (max-width: 860px) {
  .p-main, .p-main.tall-lead { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .p-main.tall-lead .p-video { max-width: 300px; }
}

/* Rehearsed case study: same design, a little more room (Oct 30) */
body[data-page="case-study"] .cs-intro { max-width: 1320px; margin: 0 auto; box-sizing: content-box; padding-top: clamp(56px, 6vw, 96px); gap: clamp(40px, 5vw, 96px); }
body[data-page="case-study"] .cs-section { max-width: 1240px; margin: 0 auto; box-sizing: content-box; padding-top: clamp(160px, 16vw, 260px); }
body[data-page="case-study"] .cs-head { margin-bottom: clamp(40px, 4vw, 64px); }
body[data-page="case-study"] .cs-lede { margin-bottom: clamp(56px, 6vw, 88px); }
body[data-page="case-study"] .cs-bento { gap: clamp(14px, 1.6vw, 24px); }
body[data-page="case-study"] .cs-points { gap: clamp(28px, 4vw, 64px); margin-bottom: clamp(56px, 6vw, 88px); }
body[data-page="case-study"] .cs-points.journey { margin-top: clamp(56px, 6vw, 88px); }
body[data-page="case-study"] .cs-screens { gap: clamp(20px, 2.4vw, 40px); }
body[data-page="case-study"] .cs-scope { margin-bottom: clamp(96px, 10vw, 160px); }
body[data-page="case-study"] .cs-cast { gap: clamp(20px, 2.4vw, 40px); }
/* A single extra film lines up under the lead film, at the same width */
body[data-page="project"] .p-watch.more .p-videos.n1:not(.tall) { max-width: calc((100% - clamp(40px, 5vw, 80px)) * 7 / 12); margin: 0; }
@media (max-width: 860px) { body[data-page="project"] .p-watch.more .p-videos.n1:not(.tall) { max-width: none; } }
body[data-page="project"] .p-watch.more .p-videos.tall.n1 { grid-template-columns: minmax(0, 240px); justify-content: start; max-width: none; margin: 0; }
/* Further films line up from the left edge, under the lead film */
body[data-page="project"] .p-watch.more .p-videos.tall { justify-content: start; }
body[data-page="project"] .p-player.pending img { opacity: .9; filter: none; }
body[data-page="project"] .p-player.pending.looping video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body[data-page="project"] .p-watch.more .p-videos.mixed { max-width: none; margin: 0; }
/* Contact sheet: never crop. Uniform 16:9 cells; each frame shown whole, letterboxed if its shape differs. */
.p-frames .fi { aspect-ratio: 16 / 9; background: #0b0b0b; }
.p-frames .fi img { object-fit: contain; filter: none; }
.p-frames .frame:hover .fi img { transform: none; }

/* Full films vs silent loops: every video says which it is */
.p-player .v-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; transition: opacity .4s; }
.p-player .v-tag svg { width: 7px; height: 8px; }
.p-player .v-tag.full { background: rgba(0, 0, 0, .55); color: var(--white); border: 1px solid rgba(255, 255, 255, .35); }
.p-player .v-tag.loop { background: none; color: rgba(255, 255, 255, .7); border: 1px dashed rgba(255, 255, 255, .35); }
.p-player.playing .v-tag { opacity: 0; }
.p-player.pending.looping { cursor: default; }
.p-player.pending .soon { z-index: 2; }
body[data-page="project"] .p-videos.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
@media (max-width: 600px) { body[data-page="project"] .p-videos.n4 { grid-template-columns: minmax(0, 1fr); } }
.p-main.wide-lead { grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 5vw, 80px); }
.p-main.wide-lead .p-story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.p-main.wide-lead .p-story .p-facts { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .p-main.wide-lead .p-story { grid-template-columns: minmax(0, 1fr); } .p-main.wide-lead .p-story .p-facts { border-top: 1px solid var(--line); padding-top: 24px; } }
/* 404 */
.nf { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: 120px var(--gutter); max-width: var(--measure, 1120px); margin: 0 auto; box-sizing: content-box; }
.nf-title { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 6vw, 96px); line-height: .9; }
/* Big titles: a short title fits on one line (--line); longer ones wrap in even lines, never leaving one word alone */
.p-title, .p-next .nt { text-wrap: balance; }
@media (min-width: 701px) {
  .p-title { font-size: min(13vw, 210px, calc((100vw - 2 * var(--gutter)) / (max(var(--len, 8), var(--line, 0)) * .78))); }
  .p-next .nt { font-size: min(12vw, 190px, calc((100vw - 2 * var(--gutter)) / ((max(var(--len, 8), var(--line, 0)) + 2) * .78))); }
  .cs-intro .p-title { font-size: min(11vw, 168px, calc((42vw - var(--gutter)) / (var(--len, 8) * .78))); }
}
body[data-page="case-study"] .cs-points.journey { margin-bottom: clamp(96px, 10vw, 160px); }
