/* =========================================================
   BLACK COFFEE — STYLES
   The settings below control colours, fonts and spacing for
   the whole site. Change a value here and it updates everywhere.
   ========================================================= */

:root {
  /* Colours: black on off-white */
  --paper: #f4f2ee;      /* page background */
  --ink: #0d0d0d;        /* main text */
  --muted: #77736c;      /* small secondary text */
  --line: #d9d5ce;       /* thin divider lines */

  /* Fonts */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Spacing */
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s;
}
/* hidden while scrolling down (header.js) */
.site-header.is-hidden { transform: translateY(-100%); }
.logo { white-space: nowrap; font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Short intro line ---------- */
.intro {
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 700px) { .intro { grid-template-columns: 1fr; } }

/* The little Super 8 film next to the intro */
.super8 {
  position: relative; width: clamp(292px, 34.6vw, 506px); aspect-ratio: 16 / 9;   /* same height as before, wider */
  overflow: hidden; border-radius: 14px / 18px; background: #1a1712;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -24px rgba(0,0,0,.45);
}
@media (max-width: 700px) { .super8 { width: 100%; } }
.super8-frame {
  position: absolute; inset: -1.5%; width: 103%; height: 103%; object-fit: cover; object-position: center 35%;   /* fills the frame edge to edge */
  filter: sepia(.35) saturate(1.25) contrast(1.12) brightness(1.02);   /* warm, faded film look */
  animation: weave 6s ease-in-out infinite, jitter .9s steps(1) infinite;   /* slow drift + small film-gate jitter */
}
/* Small quick jumps, mostly up and down, like film catching in the gate */
@keyframes jitter {
  0% { translate: 0 0; } 12% { translate: .5px -1px; } 25% { translate: 0 1.5px; } 37% { translate: -.5px 0; }
  50% { translate: 0 -1.5px; } 62% { translate: .5px .5px; } 75% { translate: 0 -.5px; } 87% { translate: -.5px 1px; }
}
@keyframes weave {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1.5px); }
  75% { transform: translate(.5px, .5px); }
}
/* Now and then the film slips a few pixels for a split second */
.super8-frame.slip { margin-top: 4px; }
/* Fast, small brightness pulse, like a projector shutter (about 18 times a second) */
.super8-flicker { position: absolute; inset: 0; pointer-events: none; background: #fff6e0; mix-blend-mode: soft-light; animation: flicker 1s steps(18) infinite; }
@keyframes flicker {
  0% { opacity: .075; } 11% { opacity: .18; } 22% { opacity: .045; } 33% { opacity: .15; } 44% { opacity: .09; }
  55% { opacity: .195; } 66% { opacity: .06; } 77% { opacity: .135; } 88% { opacity: .03; } 100% { opacity: .105; }
}
/* Dark soft edges, like light falling off in the camera */
.super8::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(20,12,4,.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
/* Fine grain baked over each photo, underneath all the other film effects.
   --photo-grain is its strength: .07 = 7%. */
.super8 { --photo-grain: .07; }
.photo-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: var(--photo-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain .7s steps(7) infinite;
}
@media (prefers-reduced-motion: reduce) { .photo-grain { animation: none; } }
/* Moving film grain */
.super8-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .5s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}
/* Occasional warm light leak */
.super8-leak {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(60% 80% at 100% 20%, rgba(255,140,40,.85), transparent 70%);
  transition: opacity .25s;
}
.super8-leak.is-on { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .super8-grain, .super8-frame, .super8-flicker { animation: none; } }
.intro-text { font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; max-width: 26ch; }

/* ---------- Section headings ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- The project list ---------- */
.index { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font: inherit; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: 3ch 1fr auto; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .35s cubic-bezier(.2,.8,.1,1), opacity .25s;
}
.index-num { color: var(--muted); }
.index-client { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.05; }
.index-client small { font-family: var(--font-body); text-transform: none; font-size: .42em; color: var(--muted); margin-left: .6em; vertical-align: middle; }
.index-tag { color: var(--muted); }
/* Hovering one row fades the others, so the one you're on stands out */
.index-list:hover .index-row { opacity: .3; }
.index-list .index-row:hover { opacity: 1; padding-left: 14px; }
.index-row:hover .index-client small { color: var(--ink); }
@media (max-width: 600px) {
  .index-row { grid-template-columns: 1fr auto; }
  .index-num { display: none; }
  .index-client small { display: block; margin: 4px 0 0; font-size: .45em; }
}

/* Floating preview that follows the mouse */
.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 320px; aspect-ratio: 16 / 10; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.8);
  transition: opacity .25s, transform .25s;
}
.cursor-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Social Forward work: the preview is a little phone, matching the Social Forward page */
.cursor-preview.is-vertical {
  width: 176px; aspect-ratio: 9 / 18.6; padding: 6px; border-radius: 28px;
  background: #141414; box-shadow: inset 0 0 0 1.5px #2c2c2c, 0 24px 50px -24px rgba(0,0,0,.55);
}
.cursor-preview.is-vertical .frame, .cursor-preview.is-vertical video { border-radius: 22px; }
.cursor-preview.is-vertical video { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
/* Vertical videos in the main lists (tallPreview in projects.js): just the tall video frame, nothing at the sides */
.cursor-preview.is-tall { width: 180px; aspect-ratio: 9 / 16; }
.cursor-preview.is-tall .hover-gifs iframe { width: auto; height: 100%; aspect-ratio: 9 / 16; }
/* Subtle moving film grain over every hover preview */
.preview-grain {
  position: absolute; inset: -50%; pointer-events: none; z-index: 1;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(6) infinite;
}
@media (prefers-reduced-motion: reduce) { .preview-grain { animation: none; } }
/* the GIF-style hover loops: hidden until they're actually moving, then shown over the still */
.hover-gifs { position: absolute; inset: 0; overflow: hidden; }
.cursor-preview.is-vertical .hover-gifs { display: none; }
.hover-gifs .preview-loop { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .25s; }
.hover-gifs .preview-loop.is-on { visibility: visible; }
.hover-gifs .preview-loop.is-on.is-playing { opacity: 1; }
.hover-gifs iframe { width: 114%; }
/* a loop's parts sit on top of each other; only the current part shows */
.preview-loop iframe { position: absolute; top: 50%; left: 50%; aspect-ratio: 16 / 9; height: auto; transform: translate(-50%, -50%); border: 0; pointer-events: none; visibility: hidden; }
.preview-loop iframe.is-cur { visibility: visible; }
.mini-videos { display: none; }
.cursor-preview.is-vertical .mini-videos { display: block; position: absolute; inset: 6px; border-radius: 22px; overflow: hidden; }
.mini-videos iframe { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 9 / 16; width: auto; transform: translateX(-50%); border: 0; pointer-events: none; visibility: hidden; }
.mini-videos iframe.is-on { visibility: visible; }
.cursor-preview .mini-island, .cursor-preview .mini-caption { display: none; }
.cursor-preview.is-vertical .mini-island {
  display: block; position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 13px; border-radius: 999px; background: #000;
}
.cursor-preview.is-vertical .mini-caption {
  display: block; position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px;
  color: rgba(255,255,255,.9); font-size: .62rem; font-weight: 500; line-height: 1.25; text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.cursor-preview.is-vertical .mini-caption b { font-weight: 600; color: #fff; }
.cursor-preview .frame { width: 100%; height: 100%; background-size: cover; background-position: center; }
.cursor-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.cursor-preview video.is-playing { opacity: 1; }
@media (hover: none) { .cursor-preview { display: none; } }

/* ---------- About ---------- */
.about { padding: clamp(80px, 12vw, 160px) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 24px; }
.about-text { font-size: clamp(1.25rem, 2.3vw, 2.1rem); line-height: 1.22; letter-spacing: -0.015em; max-width: 38ch; font-weight: 500; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 12vw, 160px) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 28px; }
.contact-big {
  font-family: var(--font-display); text-transform: uppercase; line-height: .9;
  font-size: clamp(3rem, 11vw, 11rem);
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0% 6px no-repeat;
  transition: background-size .5s cubic-bezier(.2,.8,.1,1);
  justify-self: start;
}
.contact-big:hover { background-size: 100% 6px; }
.reps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 0 0 40px; line-height: 1.7; }
.reps p { margin: 0; }
.reps a { text-transform: none; }
.reps a:hover { text-decoration: underline; }
.contact-links { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-links a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Things sliding in as you scroll ---------- */
.reveal { transition: transform 1s cubic-bezier(.2,.8,.1,1), opacity 1s; }
.reveal.is-waiting { transform: translateY(40px); opacity: 0; }

/* People who've asked their computer for less motion get a calm version */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-waiting { transform: none; opacity: 1; }
}

/* ---------- Project page (project.html) ---------- */
.project { padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(80px, 10vw, 140px); }
.back:hover { color: var(--ink); }
.project-head { margin: clamp(24px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); }
.project-client { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 8vw, 7rem); line-height: .92; }
.project-title { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--muted); margin-top: 8px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Before you press play: a silent loop, no buttons, just a small play triangle (like directedbyoren.com) */
.player { overflow: hidden; }
.player.is-preview iframe { pointer-events: none; transform: scale(1.02); }   /* hides YouTube's edges */
.player .player-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .5s steps(4) infinite;       /* choppy, like a GIF */
}
/* the preview is slightly flattened, like a GIF rather than the real thing */
.player.is-preview iframe, .player.is-preview .flipbook { filter: contrast(1.06) saturate(.92); }
.player .preview-loop { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.player .preview-loop.is-playing { opacity: 1; }                 /* fades in over the thumbnail once it's moving */
.player iframe.is-loading { opacity: 0; }
.player iframe { transition: opacity .3s; }
.player .preview-loop iframe { width: 100%; }
.flipbook img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.flipbook img.is-on { opacity: 1; }
.player .play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center;
  background: transparent; border: 0; padding: 0; cursor: pointer; color: #fff;
}
.player .play svg { width: clamp(30px, 3.4vw, 46px); height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); opacity: .92; transition: transform .25s cubic-bezier(.2,.8,.1,1), opacity .2s; }
.player .play:hover svg { transform: scale(1.14); opacity: 1; }
.credits { list-style: none; margin: 20px 0 clamp(40px, 6vw, 72px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--muted); }
.stills { --gap: clamp(8px, 1.2vw, 16px); }
.stills img { width: 100%; height: auto; display: block; background: var(--line); }
.stills-more { columns: 2; column-gap: var(--gap); margin-top: var(--gap); }
.stills-more img { break-inside: avoid; margin-bottom: var(--gap); }
@media (max-width: 600px) { .stills-more { columns: 1; } }
.project-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 8vw, 100px); padding-top: 24px; border-top: 1px solid var(--ink); }
.project-nav a { display: grid; gap: 6px; max-width: 48%; }
.project-nav #next { text-align: right; justify-items: end; }
.project-nav .name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.2rem, 3vw, 2.2rem); line-height: 1; }
.project-nav a:hover .name { text-decoration: underline; text-underline-offset: 4px; }


/* ---------- Full-size film behind the top of the page (FILM_LOOK = "full" in script.js) ---------- */
.film-full .site-header { transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s; }
.film-full .site-header.on-film { background: transparent; backdrop-filter: none; color: var(--paper); }
.film-full .intro {
  position: relative; isolation: isolate; color: var(--paper);
  grid-template-columns: 1fr; align-content: end;
  min-height: min(66vh, 640px); margin-top: -64px;                    /* slides up under the menu; short enough that the work list starts on the first screen */
  padding-top: 120px; padding-bottom: clamp(40px, 7vw, 96px); margin-bottom: clamp(32px, 5vw, 64px);
}
.film-full .super8 {
  position: absolute; inset: 0; z-index: -1; width: 100%; aspect-ratio: auto;
  border-radius: 0; box-shadow: none;
}
/* Soft dark shading so the white writing stays readable */
.film-full .super8::after {
  background:
    linear-gradient(to bottom, rgba(10,8,5,.55), transparent 22%, transparent 45%, rgba(10,8,5,.7)),
    radial-gradient(ellipse at center, transparent 45%, rgba(20,12,4,.6) 100%);
}
.film-full .intro-text { max-width: 22ch; font-size: clamp(1.9rem, 4.6vw, 4.2rem); text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.film-full .super8-frame { object-position: center 40%; }
@media (max-width: 700px) {
  .film-full .intro { min-height: 72vh; margin-top: -60px; }
}
/* ---------- Social Forward (social.html) ---------- */
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.social {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 120px); min-height: calc(100vh - 64px);
}
.social-info { display: grid; gap: 12px; align-content: center; }
.social-count { color: var(--muted); }
.social-client { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .92; }
.social-title { font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--muted); }
.social .credits { display: grid; gap: 4px; margin: 12px 0 0; }
.social-stage { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); }

/* The phone, drawn in CSS */
.phone {
  --h: min(78vh, 780px);
  position: relative; height: var(--h); aspect-ratio: 9 / 18.6;
  padding: calc(var(--h) * .014); border-radius: calc(var(--h) * .085);
  background: #141414; box-shadow: inset 0 0 0 2px #2c2c2c, 0 0 0 1px #0a0a0a, 0 40px 80px -40px rgba(0,0,0,.55);
}
.phone-btn { position: absolute; width: 3px; background: #1d1d1d; border-radius: 2px; }
.phone-btn-l1 { left: -3px; top: 18%; height: 6%; }
.phone-btn-l2 { left: -3px; top: 26%; height: 9%; }
.phone-btn-r  { right: -3px; top: 22%; height: 12%; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--h) * .072); background: #000; }
/* The feed: one video per screen, snapping into place as you scroll */
.feed {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; touch-action: none;   /* moved by social-page.js, not by normal scrolling */
}
.feed::-webkit-scrollbar { display: none; }
.feed { user-select: none; -webkit-user-select: none; will-change: filter; }
.feed.is-dragging { cursor: grabbing; }
.has-thumb .feed { cursor: none; }
.feed-slide {
  position: relative; height: 100%; overflow: hidden; background: #000;
  display: flex; justify-content: center;
}
/* each 9:16 video fills the screen edge to edge, trimming a sliver off the sides */
.feed-slide iframe, .feed-slide video { flex: none; height: 100%; aspect-ratio: 9 / 16; border: 0; pointer-events: none; object-fit: cover; }
/* The post caption: title – client, small and quiet, bottom left like the apps */
.feed-slide::after {                       /* soft shade so the caption stays readable */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.38), transparent);
}
.feed-caption {
  position: absolute; z-index: 1; left: 6%; right: 8%; bottom: 4.6%;
  color: rgba(255,255,255,.88); font-size: clamp(.72rem, 1.3vh, .86rem); font-weight: 500; line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.feed-caption b { font-weight: 600; color: #fff; }
/* The opening screen inside the phone */
.feed-intro { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; padding: 0 9% 26%; background: #0d0d0d; color: var(--paper); }
.feed-intro > :not(.reel) { position: relative; z-index: 2; }
/* soft shade over the reel so the words stay readable */
.feed-intro::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 25%, transparent 40%, rgba(0,0,0,.72));
}
/* the reel: a vertical window under the words, cutting between all the projects */
/* the reel fills the whole screen behind the words */
.reel { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0d0d0d; }
/* The clips are stacked and see-through (not "hidden"): a hidden player gets frozen by the browser and shows
   a stale or black frame for a moment when it's cut to. See-through ones keep playing, so every cut is clean. */
.reel iframe { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 9 / 16; width: auto; transform: translateX(-50%); border: 0; pointer-events: none; opacity: 0; }
.reel iframe.is-on { opacity: 1; z-index: 1; }
.reel iframe.is-wide { aspect-ratio: 16 / 9; }      /* wide videos fill the reel by cropping in on the middle */
.feed-intro::after { display: none; }
.feed-intro-title, .feed-intro-line { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.feed-intro-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 5.2vh, 3rem); line-height: .9; }
.feed-intro-line { font-size: clamp(.9rem, 1.9vh, 1.1rem); line-height: 1.35; color: rgba(244,242,238,.88); max-width: 18ch; }
.feed-intro-hint { position: absolute !important; bottom: 5.5%; left: 50%; transform: translateX(-50%); color: rgba(244,242,238,.75); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
/* On the opening screen the page shows no counter, and the phone has no sound button */
.social.on-intro .social-info > .mono:first-child, .social.on-intro .social-count, .social.on-intro .sound { visibility: hidden; }
.sound.play-full { right: auto; left: 5%; }
.feed-arrows { display: grid; gap: 12px; }
@media (max-width: 480px) { .feed-arrows { display: none; } }   /* on phones you just swipe */
.phone-island { position: absolute; top: 1.6%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.6%; border-radius: 999px; background: #000; z-index: 3; pointer-events: none; }
.sound {
  position: absolute; z-index: 3; top: 6.5%; right: 5%;
  font: inherit; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 10px; cursor: pointer;
  backdrop-filter: blur(6px);
}
.sound:hover { background: rgba(0,0,0,.7); }

.arrow {
  font: inherit; font-size: 1.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  background: none; color: var(--ink); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s;
}
.arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.arrow:disabled { opacity: .3; cursor: default; }

@media (max-width: 900px) {
  .social { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .social-info { order: 2; justify-items: center; }
  .social .credits { justify-items: center; }
  .phone { --h: min(72vh, 640px); }
  .arrow { width: 44px; height: 44px; font-size: 1.1rem; }
}


/* Small phones: tighter menu, "Social Forward" shortens to "Social" */
@media (max-width: 480px) {
  .logo { font-size: 1.15rem; }
  .site-nav { gap: 12px; font-size: .7rem; letter-spacing: .05em; }
  .site-nav a { white-space: nowrap; }
  .nav-long { display: none; }
}


/* The grabber: a small see-through circle that follows the mouse over the phone and flicks it
   (computers only; on phones you use your own thumb) */
.thumb {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 4px 18px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(3px) saturate(1.2); -webkit-backdrop-filter: blur(3px) saturate(1.2);
  opacity: 0; transition: opacity .25s, background .15s, border-color .15s;
}
.thumb.is-on { opacity: 1; }
.thumb.is-pressing { background: rgba(255,255,255,.38); border-color: rgba(255,255,255,.8); }
@media (hover: none) { .thumb { display: none; } }


/* ---------- Scattered Super 8 photos around the intro (FILM_LOOK = "scatter" in script.js) ---------- */
.film-scatter .super8 { display: none; }
.film-scatter .intro {
  position: relative; grid-template-columns: 1fr; align-content: end;
  min-height: min(86vh, 860px); padding-top: 24px;
}
.film-scatter .intro-text { position: relative; z-index: 2; max-width: 20ch; font-size: clamp(1.9rem, 4.4vw, 4rem); }
.scatter { position: absolute; inset: 0 var(--gutter) 34%; z-index: 1; pointer-events: none; }
.scatter-photo {
  position: absolute; margin: 0; overflow: hidden;
  opacity: 0; transform: translateY(8px) scale(.985);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2,.8,.1,1);
}
.scatter-photo.is-on { opacity: 1; transform: none; }
.scatter-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) saturate(1.25) contrast(1.12) brightness(1.02); }
.scatter-photo .super8-grain { inset: -50%; }
@media (max-width: 700px) {
  .scatter { inset: 0 var(--gutter) 38%; }
  .film-scatter .intro { min-height: 78vh; }
}

/* back-to-back posts in the Social Forward phone: the videos take turns in the same spot */
.feed-slide .preview-loop { position: absolute; inset: 0; }
.feed-slide .preview-loop iframe { height: 100%; width: auto; aspect-ratio: 9 / 16; }

/* wide videos in the Social Forward phone: sharp video across the middle, blurred copy filling behind */
.feed-slide.is-landscape { align-items: center; }
.feed-slide.is-landscape > iframe:not(.feed-backdrop) { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 16 / 9; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.feed-slide.is-landscape > .feed-backdrop {
  position: absolute; top: 50%; left: 50%; height: 108%; width: auto; aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%); filter: blur(22px) brightness(.55) saturate(1.2);
}

/* when a tab is clicked, the list scrolls up to sit just under the menu */
#work { scroll-margin-top: 64px; }

/* ---------- Full video viewer (Social Forward): a bigger phone over a dimmed page ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 14px;
  background: rgba(13,13,13,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s ease;
}
.viewer[hidden] { display: none; }        /* when closed, it must not sit over the page catching clicks */
.viewer.is-open { opacity: 1; }
.viewer .phone-big { --h: min(86vh, 900px); transform: scale(.94); transition: transform .45s cubic-bezier(.2,.8,.1,1); }
.viewer.is-open .phone-big { transform: none; }
.viewer-video { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
.viewer-video iframe { width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 100%; border: 0; }
.viewer-video.is-wide iframe { aspect-ratio: 16 / 9; }
.viewer-close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  font: inherit; font-size: 1.1rem; color: var(--paper); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); cursor: pointer;
}
.viewer-close:hover { background: rgba(255,255,255,.18); }
.viewer-caption { color: rgba(244,242,238,.7); }
@media (max-width: 480px) { .viewer .phone-big { --h: min(80vh, 700px); } }

/* ---------- Coffee Time game (coffee.html) ---------- */
.coffee-pill { text-decoration: none; display: inline-flex; align-items: center; }
.game { padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 80px); }
.game-head { display: grid; gap: 8px; margin-bottom: clamp(16px, 2vw, 24px); }
.game-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .9; }
.game-how { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.game-stats { display: flex; gap: 28px; margin-top: 6px; }
.game-stats b { font-weight: 500; color: var(--ink); font-size: 1.2em; }
.game-stats .is-low b { color: #c0392b; }
.game-board {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
  min-height: min(68vh, 620px); border-top: 1px solid var(--ink); padding-top: 24px;
  user-select: none; -webkit-user-select: none;
}
.pile { position: relative; height: min(56vh, 480px); }
.coffee-piece {
  position: absolute; width: clamp(54px, 7vw, 84px); aspect-ratio: 64 / 72; color: var(--ink);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)); cursor: grab; touch-action: none;
}
.coffee-piece:hover { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.1); }
.coffee-piece svg { width: 100%; height: 100%; display: block; }
.coffee-piece.is-dragging { position: fixed; z-index: 90; transform: rotate(var(--r, 0deg)) scale(1.12); cursor: grabbing; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); pointer-events: none; transition: none; }
.coffee-piece.is-returning { transition: left .3s ease, top .3s ease; }
.coffee-piece.is-pouring { transition: left .25s ease, top .4s ease-in, transform .4s ease-in, opacity .4s; transform: rotate(0) scale(.4); opacity: 0; }
.cup-wrap { position: relative; justify-self: center; width: min(100%, 300px); }
.cup { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
.cup #coffeeFill, .cup #coffeeFoam { transition: y .45s cubic-bezier(.2,.8,.1,1); }
.cup.is-splash { animation: splash .35s ease; }
@keyframes splash { 0% { transform: none; } 40% { transform: translateY(3px) scaleY(.985); } 100% { transform: none; } }
.cup-type { font-family: var(--font-display); letter-spacing: .06em; }
/* the drop zone: the top of the cup, a bit generous so it's not fiddly */
.cup-target { position: absolute; left: -6%; right: -6%; top: -18%; height: 62%; }
.game-msg {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(4px);
}
.game-msg[hidden] { display: none; }
.game-msg-big { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3.4rem, 12vw, 9rem); line-height: .9; }
.game-msg.is-win .game-msg-big { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.game-msg-small { font-size: clamp(1.1rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
@media (max-width: 700px) {
  .game-board { grid-template-columns: 1fr; }
  .pile { height: 34vh; order: 2; }
  .cup-wrap { width: min(60%, 220px); }
}

/* ---------- About: white backdrop, drifting photo collage, words on top ---------- */
.about { position: relative; overflow: hidden; background: #fff; min-height: min(118vh, 1100px); align-content: center; isolation: isolate; }
/* Version B: the collage fills the whole About section, edge to edge, and glides behind the text card */
.about { height: min(100vh, 900px); min-height: 0; }
.about-collage {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  --u: calc(min(100vh, 900px) / 200);          /* each band is half the section tall */
}
.collage-band { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.collage-band.top { top: 0; }
.collage-band.bottom { top: 50%; }
.collage-track {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--len) * 2 * var(--u));
  animation: collage-glide 360s linear infinite; will-change: transform;
}
/* each band has its own photos; its glide speed is set in script.js */
@keyframes collage-glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.collage-card { position: absolute; margin: 0; box-shadow: 0 22px 44px -26px rgba(0,0,0,.42); }
.collage-card img { display: block; width: 100%; height: 100%; object-fit: contain; }     /* the box is the photo's own shape; 'contain' guarantees it's never stretched or cropped */
@media (max-width: 700px) { .about { height: 90vh; } .about-collage { --u: calc(90vh / 200); } }
@media (prefers-reduced-motion: reduce) { .collage-track { animation: none; } }

/* the words sit on a soft frosted card over the moving collage */
.about { min-height: min(100vh, 900px); }
.about-panel {
  position: relative; z-index: 5; justify-self: start; display: grid; gap: 18px;
  max-width: 41rem;   /* about 20% wider than before, for a less boxy shape */ padding: clamp(28px, 3.4vw, 48px);
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04);
}
.about-label { letter-spacing: .14em; }
.about-lead { font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.32; letter-spacing: -0.01em; font-weight: 500; }
.about .about-text { max-width: none; font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.7; font-weight: 400; color: #3a3833; letter-spacing: 0; }

/* ---------- Big tilt-shift photo of the two of you behind the Contact section ---------- */
.contact { position: relative; isolation: isolate; background: var(--paper); overflow: hidden; }   /* gives the photo something to blend into, so its white disappears */
.contact > :not(.work-bg) { position: relative; z-index: 1; }
.work-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; mix-blend-mode: multiply; }   /* multiply: the photo's white disappears into the page; "clip" lets it stay in view while you scroll */
/* Three copies of the photo are stacked: very blurred, a little blurred, and sharp, blended in bands (tilt-shift). */
.work-bg-photo { position: absolute; top: 50%; right: -4%; transform: translateY(-50%); height: max(118%, 110vh); aspect-ratio: 1; }   /* close in, on the right, beside "Let's make something" */
.work-bg-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: brightness(1.06) contrast(1.06); }
.work-bg-photo .far  { filter: blur(7px) brightness(1.06) contrast(1.06); }
/* tilt-shift: a level band of sharp focus across the faces, blur building toward the top and bottom */
.work-bg-photo .mid  { filter: blur(3.5px) brightness(1.06) contrast(1.06);
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 20%, #000 56%, transparent 72%);
          mask-image: linear-gradient(to bottom, transparent 6%, #000 20%, #000 56%, transparent 72%); }
.work-bg-photo .near { filter: blur(1.6px) brightness(1.06) contrast(1.06);   /* even the focus band is a touch soft */
  -webkit-mask-image: linear-gradient(to bottom, transparent 18%, #000 29%, #000 47%, transparent 58%);
          mask-image: linear-gradient(to bottom, transparent 18%, #000 29%, #000 47%, transparent 58%); }
@media (max-width: 700px) { .work-bg-photo { height: max(100%, 80vh); } }

/* YouTube hover loops: hidden until playing, and cropped in a little so YouTube's own title bar and logo stay out of view */
.preview-loop.is-youtube iframe { transform: translate(-50%, -50%) scale(1.32); }

/* ---------- About text card: between frosted and glass ---------- */
.about-panel {
  overflow: hidden; isolation: isolate;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.66), rgba(255,255,255,.5));
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),            /* a soft line of light along the top edge */
    0 30px 60px -32px rgba(0,0,0,.35),
    0 1px 3px rgba(0,0,0,.05);
}
/* a faint, still sheen across the top */
.about-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(170deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 35%);
}
.about-panel .about-lead { color: #111; }
.about-panel .about-text { color: #2c2a25; }
.about-panel .about-label { color: #555; }

/* Social Forward phone: a video stays hidden (over its still) until it's actually playing, then fades in */
.feed-slide iframe { transition: opacity .35s ease; }
.feed-slide iframe.is-waiting { opacity: 0; }
.feed-slide .preview-loop { transition: opacity .35s ease; }
.feed-slide .preview-loop:not(.is-playing) { opacity: 0; }

/* Contact: the music-video rep details sit over the dark part of the photo, so they're light */
.contact .reps p:nth-child(3), .contact .reps p:nth-child(3) a { color: var(--paper); }
.contact .reps p:nth-child(3) .muted { color: rgba(244,242,238,.7); }
.contact .reps p:nth-child(3) { text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* Social Forward: the short pitch under "Carefully curated content…", only on the opening screen */
.social-pitch { display: none; max-width: 40ch; font-size: clamp(.9rem, 1.05vw, 1rem); line-height: 1.55; color: var(--ink); margin-top: 6px; }
.social.on-intro .social-pitch { display: block; }
@media (max-width: 900px) { .social-pitch { margin-left: auto; margin-right: auto; } }

/* Contact: small, minimal Instagram / Vimeo icons beside each link */
.contact-links { gap: 36px; }
.contact-links a { display: inline-flex; align-items: center; gap: 9px; }       /* icon sits to the right of the word */
.social-icon { width: 14px; height: 14px; flex: none; opacity: .75; transition: opacity .2s; position: relative; top: -1px; }
.contact-links a:hover .social-icon { opacity: 1; }

/* Social Forward: the short byline about the agency side, under each post's title */
.social-byline { max-width: 40ch; font-size: clamp(.9rem, 1.05vw, 1rem); line-height: 1.55; color: var(--ink); margin-top: 6px; }
.social-byline[hidden] { display: none; }
@media (max-width: 900px) { .social-byline { margin-left: auto; margin-right: auto; } }

/* Social Forward: "Created with …" agency line, under the subtitle */
.social-agency { font-size: clamp(.9rem, 1.05vw, 1rem); color: var(--muted); margin-top: -2px; }
.social-agency[hidden] { display: none; }

/* The little Black Coffee mug next to the name in the top bar (same colour as the name) */
.logo { display: inline-flex; align-items: baseline; gap: .35em; }
.logo-mug { width: 1.17em; height: 1.44em; flex: none; margin-top: -.61em; }   /* the cup is as tall as the capital letters and sits on the same line; the steam rises above */

/* Social Forward: small quick list of every piece, on the right of the phone */
.social-list { justify-self: start; align-self: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.social-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.social-list button {
  all: unset; display: grid; grid-template-columns: 2.4em auto; width: max-content; padding: 5px 0; color: var(--muted);
  cursor: pointer; transition: color .2s, transform .2s;
}
.social-list-title { grid-column: 2; text-transform: none; letter-spacing: 0; font-family: var(--font-body, inherit); font-size: .95em; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .2s, max-height .2s; }
.social-list button:hover, .social-list button:focus-visible { color: var(--ink, #111); transform: translateX(3px); }
.social-list button.is-on { color: var(--ink, #111); }
.social-list button.is-on .social-list-title { opacity: .6; max-height: 1.6em; margin-top: 2px; }
.social-list button.is-on .social-list-num::after { content: ""; }
@media (max-width: 900px) { .social-list { display: none; } }   /* on phones you swipe instead */

/* Social Forward opening screen: the projects' stills, cutting from one to the next, each slowly pushing in */
.reel-still { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1); }
.reel-still.is-on { opacity: 1; animation: still-push 1.6s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes still-push { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .reel-still.is-on { animation: none; } }


/* =====================================================================
   PHONES (700px wide and under)
   ===================================================================== */
@media (max-width: 700px) {

  /* --- Social Forward: full screen, swiped like Reels. No phone drawn inside your phone. --- */
  html:has(.social-body), .social-body { background: #000; }       /* no light strips around the video on any phone */
  .social-body { overflow: hidden; height: 100svh; height: 100dvh; }
  .social-body .site-footer { display: none; }
  .social-body .site-header {
    position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent);
    backdrop-filter: none; color: #fff;
  }
  .social-body .site-header.is-hidden { transform: none; }          /* nothing to scroll here, so it stays */
  .social { display: block; position: fixed; inset: 0; padding: 0; min-height: 0; height: auto; }
  .social-stage { position: absolute; inset: 0; display: block; }
  .social .phone { --h: 100dvh; width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
  .social .phone-screen { border-radius: 0; }
  /* each video covers the whole screen, whatever the phone's shape */
  .social .feed-slide iframe:not(.feed-backdrop) { height: 100%; min-width: 100%; aspect-ratio: 9 / 16; }
  .social .reel iframe { min-width: 100%; }
  .social .phone-btn, .social .phone-island, .feed-arrows, .social-list { display: none; }
  .social .feed-caption { display: none; }                          /* the title sits over the bottom instead */
  .social .feed-slide::after { height: 42%; background: linear-gradient(to top, rgba(0,0,0,.62), transparent); }
  .social .sound { top: 76px; }
  /* the title over the bottom of the video */
  .social-info {
    position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; order: 0;
    padding: 0 20px calc(26px + env(safe-area-inset-bottom)); gap: 4px;
    justify-items: start; text-align: left; color: #fff; pointer-events: none;
    text-shadow: 0 1px 10px rgba(0,0,0,.35);
  }
  .social-info > .mono:first-child, .social .credits, .social-pitch, .social-agency { display: none !important; }
  .social-count { color: rgba(255,255,255,.75); font-size: .7rem; }
  .social-client { font-size: 2.3rem; }
  .social-title { color: rgba(255,255,255,.85); font-size: 1rem; }
  .social-byline { color: rgba(255,255,255,.85); font-size: .85rem; line-height: 1.45; margin: 6px 0 0; max-width: min(34ch, calc(100vw - 150px));
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .social.on-intro .social-info { display: none; }                  /* the opening screen has its own title */
  .feed-intro { padding: 0 24px 22%; text-align: left; align-items: flex-start; }
  .feed-intro-line { max-width: 22ch; }
  .feed-intro-title { font-size: 3rem; }
  .feed-intro-line { font-size: 1.05rem; }

  /* --- Home: the top photo is shorter, so the work shows up sooner --- */
  .film-full .intro { min-height: 0; height: 54svh; }
  .filters { gap: 6px; flex-wrap: nowrap; }
  .filter { padding: 8px 12px; font-size: .68rem; white-space: nowrap; }
  .film-full .intro-text { font-size: 1.75rem; }

  /* --- Work tabs: no Archive on phones --- */
  .filter[data-filter="Archive"] { display: none; }

  /* --- Work list: a small still beside each project (phones can't hover) --- */
  .index-row { grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
  .index-tag { display: none; }
  .index-row .index-thumb { display: block; position: relative; width: 112px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden;
    background: #ddd center / cover no-repeat; }
  .index-row .index-thumb.is-vertical { width: 46px; aspect-ratio: 9 / 16; }
  .index-thumb .preview-loop { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
  .index-thumb .preview-loop.is-playing { opacity: 1; }
  .index-thumb .preview-loop iframe { width: 118%; }

  /* --- Contact: the hug photo sits on top, framed on your faces, with the details below it --- */
  .contact { padding-top: 0; }
  .contact .work-bg { position: relative; inset: auto; order: -1; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 1 / .92;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .contact .work-bg-photo { top: -4%; left: 50%; right: auto; transform: translateX(-50%); height: auto; width: 116%; }
  .contact .reps p:nth-child(3), .contact .reps p:nth-child(3) a { color: var(--ink); text-shadow: none; }
  .contact .reps p:nth-child(3) .muted { color: var(--muted); }

  /* --- Social Forward "Play video": the full Vimeo video, full screen and vertical (no phone drawn around it) --- */
  .viewer { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; gap: 0; }
  .viewer .phone-big { --h: 100dvh; width: 100%; height: 100dvh; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; background: #000; transform: none; }
  .viewer .phone-big .phone-screen { border-radius: 0; }
  .viewer .phone-btn, .viewer .phone-island, .viewer-caption { display: none; }
  .viewer-video iframe { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
  .viewer-close { z-index: 5; top: calc(14px + env(safe-area-inset-top)); right: 14px; background: rgba(0,0,0,.45); }

  /* --- Social Forward "All work" sheet --- */
  .social .all-btn { display: block; top: auto; bottom: calc(26px + env(safe-area-inset-bottom)); right: 16px; }
  .social.on-intro .all-btn { visibility: visible; }
  .sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
  .sheet[hidden] { display: none; }
  .sheet.is-open { opacity: 1; }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78dvh; overflow-y: auto; overscroll-behavior: contain;
    background: #111; color: #fff; border-radius: 18px 18px 0 0; padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .sheet.is-open .sheet-panel { transform: none; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
  .sheet-close { font: inherit; font-size: 1rem; color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 50%; width: 34px; height: 34px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sheet-item { all: unset; display: grid; gap: 4px; cursor: pointer; }
  .sheet-thumb { display: block; aspect-ratio: 9 / 16; border-radius: 8px; background: #222 center / cover no-repeat; }
  .sheet-item.is-on .sheet-thumb { outline: 2px solid #fff; outline-offset: 2px; }
  .sheet-name { font-family: var(--font-display); text-transform: uppercase; font-size: .9rem; line-height: 1; }
  .sheet-title { font-size: .72rem; color: rgba(255,255,255,.65); line-height: 1.2; }
}
.index-thumb { display: none; }
.all-btn { display: none; }

/* Archive tab hidden for now (delete this line to bring it back) */
.filter[data-filter="Archive"] { display: none; }
