/* Curl Creative — site styles. Tokens come from Brand Guidelines v1.0. */
:root {
  --orange: #FE5B53;
  --yellow: #F6CC00;
  --lilac: #C8B1E9;
  --blue: #77CCFD;
  --black: #000;
  --white: #fff;
  --grey: #6b6b6b;

  --font: "dunbar-tall", "Tahoma", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --measure: 34em;

  --fs-body: clamp(17px, 1.05vw + 12px, 20px);
  --fs-sub: clamp(22px, 1.4vw + 14px, 30px);
  --fs-h2: clamp(40px, 5.2vw, 84px);
  --fs-h1: clamp(46px, 7.4vw, 128px);
  --fs-tile: clamp(40px, 7vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main { background: var(--white); color: var(--black); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 0.98; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-sub); letter-spacing: -0.01em; line-height: 1.1; }
.sub { font-size: var(--fs-sub); line-height: 1.3; max-width: 26em; }
.small-h { font-size: var(--fs-sub); letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 16px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.on-yellow :focus-visible, .on-orange :focus-visible, .cat-intro :focus-visible { outline-color: var(--black); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--yellow); color: var(--black); padding: 10px 14px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 12vw, 190px) 0; }

.on-black { background: var(--black); color: var(--white); }
.on-orange { background: var(--orange); color: var(--black); }
.on-yellow { background: var(--yellow); color: var(--black); }
.on-lilac { background: var(--lilac); color: var(--black); }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--white); }
.site-header.is-solid { position: relative; background: var(--black); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: block; width: clamp(96px, 9vw, 132px); }
.brand img { width: 100%; height: auto; aspect-ratio: 132 / 77; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a { text-decoration: none; font-size: 18px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .btn { border: 0; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--orange); color: var(--black);
  font: 700 18px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.black { background: var(--black); color: var(--white); }
.btn.big { min-height: 64px; padding: 18px 34px; font-size: 22px; }
.site-header .btn { min-height: 42px; padding: 10px 20px; font-size: 16px; }
.nav .btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--white); }

@media (max-width: 640px) {
  .nav a:not(.btn) { font-size: 16px; }
  .nav { gap: 14px; }
  .site-header .btn { min-height: 40px; padding: 8px 14px; font-size: 15px; }
  .brand { width: 84px; }
}

/* ---------- Curl device ---------- */
svg.curl { overflow: visible; }
.curl-line, .curl-under {
  fill: none; stroke: var(--curl, var(--orange));
  stroke-width: var(--curl-w, 118); stroke-linecap: butt; stroke-linejoin: round;
}
.curl-under { opacity: 0; transition: opacity .2s linear; stroke-linecap: round; }
.curl-words {
  font-family: var(--font); font-weight: 700;
  font-size: var(--curl-fs, 58px); letter-spacing: -0.01em;
  fill: var(--curl-ink, var(--black));
  opacity: 0; transition: opacity .5s ease;
}
svg.curl.is-drawn .curl-words, svg.curl.is-drawn .curl-under { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); overflow: hidden; display: flex; align-items: flex-end; }
.hero svg.curl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 7vh, 88px); }
.hero h1 { max-width: 11em; }
.hero .sub { margin-top: 22px; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 760px), (max-aspect-ratio: 1/1) and (max-width: 1100px) {
  .hero { flex-direction: column; justify-content: flex-end; min-height: max(620px, 100svh); padding-top: calc(118px + 56vw); }
  .hero svg.curl { inset: auto; top: 92px; left: -43%; width: 228%; max-width: none; height: auto; aspect-ratio: 16 / 9; }
  .hero-copy { padding-bottom: 36px; }
}

/* ---------- Big work tiles ---------- */
.lead, .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 36px); padding: clamp(24px, 3vw, 48px) var(--gutter); }
.tile { position: relative; grid-column: span 2; overflow: hidden; background: var(--tint, var(--lilac)); color: var(--white); min-height: clamp(380px, 62vw, 860px); display: flex; align-items: flex-end; }
.tile.half { grid-column: span 1; min-height: clamp(320px, 38vw, 620px); }
@media (max-width: 760px) { .tile.half { grid-column: span 2; } .tile { min-height: 72vw; } }
.tile-media { position: absolute; inset: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 70%); }
.tile.is-pending .tile-media::after { background: none; }
.tile:hover .tile-media img { transform: scale(1.025); }
.tile-copy { position: relative; z-index: 2; padding: clamp(28px, 4.4vw, 72px); padding-right: clamp(130px, 15vw, 220px); }
.tile-title { font-size: var(--fs-tile); line-height: .92; letter-spacing: -0.03em; max-width: 12em; }
.tile.half .tile-title { font-size: clamp(34px, 4vw, 64px); }
.tile-link { text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-link:hover .tile-title { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.tile-meta { margin: 20px 0 0; font-size: var(--fs-sub); color: rgba(255,255,255,.88); }
.tile-meta span { opacity: .6; }
.tile.is-pending { color: var(--black); }
.tile.is-pending .tile-meta { color: rgba(0,0,0,.7); }
.soon { position: absolute; top: clamp(18px, 3vw, 40px); left: clamp(22px, 3.4vw, 56px); background: var(--black); color: var(--white); border-radius: 999px; padding: 8px 16px; font-size: 16px; z-index: 3; }
.tile-play {
  position: absolute; z-index: 3; right: clamp(20px, 3vw, 48px); bottom: clamp(20px, 3vw, 48px);
  width: clamp(76px, 8vw, 116px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: var(--black); font: 700 16px/1 var(--font);
  display: grid; place-items: center; transition: transform .2s ease;
}
.tile-play span { display: none; }
.tile-play:hover { transform: scale(1.07); }

/* ---------- Reel ---------- */
.reel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(40px, 5vw, 72px); }
.reel-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #111; overflow: hidden; cursor: pointer; }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.reel-frame:hover img { transform: scale(1.02); }
.reel-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(110px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); color: var(--black); display: grid; place-items: center; text-align: center;
  font: 700 18px/1.1 var(--font); padding: 18px;
}

/* ---------- Services ---------- */
.services h2 { margin-bottom: clamp(44px, 6vw, 88px); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 36px); }
@media (max-width: 860px) { .svc-list { grid-template-columns: 1fr; } }
.svc { display: flex; flex-direction: column; gap: 18px; min-height: clamp(260px, 28vw, 400px); padding: clamp(28px, 3.2vw, 52px); background: var(--tint); color: var(--black); text-decoration: none; border-radius: 22px; transition: transform .2s ease; }
.svc:hover { transform: translateY(-4px); }
.svc-title { font-size: clamp(30px, 3.2vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.svc-text { font-size: var(--fs-body); max-width: 22em; }
.svc-go { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Clients ---------- */
.clients-sec h2 { margin-bottom: clamp(56px, 7vw, 112px); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(44px, 6vw, 96px) clamp(32px, 4.4vw, 72px); align-items: center; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.logos li { display: grid; place-items: center; aspect-ratio: 3 / 2; }
.logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .4s ease; }
.logos img.is-mono { opacity: .92; }
.logos img.is-mono-failed { opacity: 1; filter: grayscale(1) brightness(1.6); }

/* ---------- Intros, chips, categories ---------- */
.intro { padding: clamp(72px, 10vw, 160px) 0 clamp(56px, 7vw, 104px); }
.intro h1 { max-width: 12em; }
.intro .sub { margin-top: 32px; }
.cat-intro { background: var(--tint); color: var(--black); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 4vw, 56px); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 2px currentColor; }
.chip[aria-current="page"] { background: var(--white); color: var(--black); box-shadow: none; }
.cat-intro .chip[aria-current="page"] { background: var(--black); color: var(--white); }

/* ---------- The wall ---------- */
.wall-sec { padding: 0 var(--gutter) clamp(56px, 7vw, 112px); }
.wall { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 28px); }
.wall.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wall, .wall.two { grid-template-columns: 1fr; } }
.wall-item[hidden] { display: none; }
.wall-tile { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: var(--tint); color: var(--white); text-align: left; font: inherit; text-decoration: none; }
.wall-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.wall-cap { position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; display: grid; gap: 4px; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0)); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.wall-cap strong { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.05; letter-spacing: -0.01em; }
.wall-cap span { font-size: 15px; opacity: .85; }
.wall-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--orange); opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease; }
.wall-play::after, .big-play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--black); }
.wall-more { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); color: var(--black); border-radius: 999px; padding: 10px 18px; font-size: 16px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .25s ease; }
.wall-tile:hover .wall-more, .wall-tile:focus-visible .wall-more { opacity: 1; }
.wall-tile:hover img, .wall-tile:focus-visible img { transform: scale(1.04); }
.wall-tile:hover .wall-cap, .wall-tile:focus-visible .wall-cap, .wall-tile:hover .wall-play, .wall-tile:focus-visible .wall-play { opacity: 1; transform: none; }
@media (hover: none) { .wall-cap { opacity: 1; transform: none; } }

/* ---------- Project pages ---------- */
.proj-head { padding: clamp(56px, 8vw, 128px) 0 clamp(36px, 4vw, 64px); }
.crumbs { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.proj-head h1 { max-width: 14em; }
.proj-client { font-size: var(--fs-sub); margin: 16px 0 0; color: rgba(255,255,255,.8); }
.proj-film-sec { padding-bottom: clamp(56px, 8vw, 128px); }
.proj-film { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--tint); cursor: pointer; }
.proj-film.square { aspect-ratio: 1; width: min(100%, 80vh); margin: 0 auto; }
.proj-film.portrait { aspect-ratio: 4 / 5; width: min(100%, 72vh); margin: 0 auto; }
.film-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; align-items: start; }
.film-card { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: #111; aspect-ratio: 16 / 9; }
.film-card.vertical { aspect-ratio: 9 / 16; }
.film-card.portrait { aspect-ratio: 4 / 5; }
.film-card.square { aspect-ratio: 1; }
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.film-card:hover img, .film-card:focus-visible img { transform: scale(1.03); }
.film-card .wall-play { opacity: 1; transform: none; }
.proj-film img, .proj-film video, .proj-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.proj-film video { object-fit: contain; background: #000; }
.proj-film.is-pending { cursor: default; }
.big-play { position: absolute; left: 50%; top: 50%; width: clamp(90px, 9vw, 140px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--orange); transition: transform .2s ease; }
.big-play::after { border-width: 16px 0 16px 26px; }
.proj-film:hover .big-play { transform: translate(-50%, -50%) scale(1.07); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.story p { font-size: var(--fs-sub); line-height: 1.38; max-width: 24em; margin-bottom: 1.1em; }
.story.big p { max-width: 22em; }
.story .short { font-weight: 700; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; font-size: 17px; }
.extras h2 { margin-bottom: clamp(28px, 4vw, 56px); }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.extra-film { position: relative; display: block; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: #111; }
.extra-film img { width: 100%; height: 100%; object-fit: cover; }
.extra-film.portrait { aspect-ratio: 4 / 5; max-width: 520px; }
.extra-film.vertical { aspect-ratio: 9 / 16; max-width: 400px; }
.extra-film.square { aspect-ratio: 1; max-width: 560px; }
.extra-film .wall-play { opacity: 1; transform: none; }
.extra-cap { position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--black); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.stills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.stills img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.next { padding-top: clamp(64px, 8vw, 120px); }
.next-label { font-size: var(--fs-sub); margin-bottom: 0; }
.next .tile { min-height: clamp(300px, 40vw, 560px); }

/* ---------- B2B ---------- */
.b2b-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); }

/* ---------- Call to action band ---------- */
.banner { position: relative; overflow: hidden; height: clamp(180px, 22vw, 340px); }
.banner svg.curl { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; }
.cta { padding: clamp(16px, 2vw, 32px) 0 clamp(96px, 11vw, 180px); }
.cta-inner { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }
.cta h2 { font-size: var(--fs-h1); max-width: 9em; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.cta-mail { font-size: var(--fs-sub); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .sub { margin-top: 22px; }
.contact-direct { font-size: var(--fs-sub); line-height: 1.35; }
.contact-direct a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-direct dt { font-size: var(--fs-body); margin-top: 18px; }
.contact-direct dd { margin: 0; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 17px; }
.field input, .field textarea {
  width: 100%; font: 500 18px/1.4 var(--font); color: var(--black);
  background: var(--white); border: 2px solid var(--black); border-radius: 14px;
  padding: 14px 16px; min-height: 52px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--black); outline-offset: 2px; }
.field .err { font-size: 15px; }
.form-note { font-size: 15px; margin: 0; }
.form .status { font-size: 18px; margin: 0; min-height: 1.4em; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(80px, 9vw, 140px) 0 44px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: start; }
.footer-logo { width: clamp(150px, 16vw, 220px); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.6); }
.footer-base { margin-top: clamp(64px, 8vw, 120px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; font-size: 15px; color: rgba(255,255,255,.62); }
.footer-base a { color: inherit; }
.aia img { height: 40px; width: auto; }

/* ---------- Player ---------- */
dialog.player { width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--white); overflow: visible; }
dialog.player::backdrop { background: rgba(0,0,0,.92); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame.square { aspect-ratio: 1; width: min(100%, 78vh); margin: 0 auto; }
.player-frame.portrait { aspect-ratio: 4 / 5; width: min(100%, 64vh); margin: 0 auto; }
.player-frame.vertical { aspect-ratio: 9 / 16; width: min(100%, 45vh); margin: 0 auto; }
.player-frame video, .player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding-top: 14px; }
.player-bar h3 { font-size: 22px; }
.player-actions { display: flex; gap: 10px; }
.player-link { color: var(--white); }
.player-close { background: var(--white); color: var(--black); }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Breathing room ---------- */
.next .tile { margin: clamp(28px, 3vw, 48px) var(--gutter) 0; }
.next { padding-bottom: clamp(28px, 3vw, 48px); }

/* ---------- The archive: stills from everything, behind the work ---------- */
.archive { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--black); pointer-events: none; }
.archive::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.archive-track { animation: archive-drift 240s linear infinite; will-change: transform; opacity: 0; transition: opacity 1.2s ease; }
.archive.is-ready .archive-track { opacity: 1; }
.archive-grid { list-style: none; margin: 0; padding: 0 0 4px; column-count: 6; column-gap: 4px; }
.archive-grid li { break-inside: avoid; margin: 0 0 4px; background: #111; overflow: hidden; }
.archive-grid img { display: block; width: 100%; height: auto; filter: saturate(.85); }
@keyframes archive-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (max-width: 1000px) { .archive-grid { column-count: 4; } }
@media (max-width: 560px) { .archive-grid { column-count: 3; } }
@media (prefers-reduced-motion: reduce) { .archive-track { animation: none; } }
body[data-page="work"] main { position: relative; z-index: 1; background: transparent; }
body[data-page="work"] .intro, body[data-page="work"] .wall-sec { background: transparent; }
body[data-page="work"] .site-header, body[data-page="work"] .banner, body[data-page="work"] .cta, body[data-page="work"] .site-footer { position: relative; z-index: 1; }
body[data-page="work"] .wall-tile { box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }

/* ---------- Homepage: reel first, then the three kinds of work ---------- */
.hero-reel { position: relative; min-height: max(620px, 100svh); overflow: hidden; display: flex; align-items: flex-end; background: var(--black); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.1) 100%); pointer-events: none; }
.hero-reel .hero-copy { position: relative; z-index: 2; }
.hero-reel h1 { max-width: 11em; }
.hero-reel .sub { margin-top: 22px; color: rgba(255,255,255,.88); max-width: 34em; }
.cat-tile .tile-copy { padding-right: clamp(28px, 4.4vw, 72px); }
.cat-tile .tile-meta { max-width: 30em; }
.cat-go { display: inline-block; margin-top: 26px; padding: 12px 22px; border-radius: 999px; background: var(--tint); color: var(--black); font-weight: 700; }
.cat-tile:hover .tile-media img { transform: scale(1.03); }