/* ZiLAB — light edition. Warm paper, black ink, one hot accent. */
:root {
  --paper: #F3EFE7;
  --paper-2: #EAE4D8;
  --ink: #111010;
  --ink-2: #57524B;
  --ink-3: #8F887D;
  --line: rgba(17, 16, 16, .14);
  --accent: #FF4D1C;
  --peach: #FFC9A8;
  --lilac: #D9CCF5;
  --mint: #CFE8DC;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  /* Small labels: light and narrow. Much narrower than the mono it replaced,
     so the label rules set it 2px larger and more open. */
  --mono: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --pad: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* Grain */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .35; mix-blend-mode: multiply;
  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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft colour blobs drifting behind everything */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 26s var(--ease) infinite alternate; }
.b1 { width: 46vw; height: 46vw; background: var(--peach); top: -12vw; right: -8vw; }
.b2 { width: 38vw; height: 38vw; background: var(--lilac); top: 40vh; left: -14vw; animation-delay: -9s !important; }
.b3 { width: 30vw; height: 30vw; background: var(--mint); bottom: -10vw; right: 20vw; animation-delay: -17s !important; }
@keyframes drift { to { transform: translate(6vw, 8vh) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .blobs i { animation: none; } }

.label, .hero-eyebrow { font: 300 14px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); margin: 0 0 24px; }
/* The accent before section labels: a quiet editorial double slash. */
.tick { color: var(--accent); letter-spacing: .02em; margin-right: .35em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; vertical-align: middle; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(255, 77, 28, 0); } }

/* Header */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px;
  padding: 18px var(--pad); transition: background .3s, backdrop-filter .3s;
}
.hdr.is-scrolled { background: rgba(243, 239, 231, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { font: 600 22px/1 var(--sans); letter-spacing: -.03em; text-decoration: none; }
.logo sup { font-size: .45em; margin-left: 1px; }
/* Orange tittle: the letter is a dotless "ı"; an orange "i" on top, cut just above the stem.
   Instrument Sans: content area starts .97em above the baseline; the gap
   between dot and stem is .51-.59em above it, so cut at .555em (.415em down). */
.idot { position: relative; }
.idot::after { content: attr(data-i); position: absolute; left: 0; top: 0; height: .415em; overflow: hidden; line-height: normal; color: var(--accent); pointer-events: none; }
.hdr-nav { display: flex; gap: 28px; margin-left: auto; }
.hdr-nav a, .hdr-cta { font-size: 14px; text-decoration: none; position: relative; }
.hdr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-cta { background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; overflow: hidden; transition: background .3s; }
.hdr-cta:hover { background: var(--accent); }
.burger { display: none; font-size: 14px; margin-left: auto; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--paper); padding: 96px var(--pad) 32px; display: flex; flex-direction: column; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font: 400 clamp(48px, 14vw, 88px)/1 var(--serif); text-decoration: none; }
.menu nav a span { font: 300 14px var(--mono); color: var(--accent); vertical-align: top; margin-right: 8px; }
.menu-foot { margin-top: auto; font-family: var(--mono); font-weight: 300; font-size: 15px; letter-spacing: .06em; }
@media (max-width: 820px) {
  .hdr-nav, .hdr-cta { display: none; }
  .burger { display: block; }
}

/* Hero */
/* The whole hero fits the window at any size: it is exactly one screen tall
   (svh: the visible height on phones, with the browser bars shown), the lede /
   "hi there" row sits at its bottom, and the title is sized by the smaller of
   width and height. Its three lines are ~2.9em tall; the rest of the hero
   (padding, eyebrow, the bottom row) takes ~18svh + 210px, hence 28svh - 72px. */
.hero {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  padding: clamp(96px, 16svh, 200px) var(--pad) clamp(28px, 5svh, 64px);
}
.hero-title {
  margin: 0; font: 500 clamp(44px, min(11.4vw, 28svh - 72px), 210px)/.9 var(--sans); letter-spacing: -.055em; text-transform: none;
}
.hero-title em { color: var(--accent); letter-spacing: -.03em; font-size: 1.06em; }
/* Each word rises out of its own clipped box. The tight letter-spacing makes the
   box narrower than the last glyph (and italics lean right), so the box gets side
   room that the negative margins give back: no clipped "s" / "c", same layout. */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .12em .06em .04em; margin: 0 -.12em -.06em -.04em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .hero-title .w > span { transform: none; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: auto; padding-top: clamp(20px, 4svh, 56px); }
.hero-lede { margin: 0; max-width: 30ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3; }
.hero-note { margin: 0; font: 400 clamp(22px, 2.2vw, 32px)/1.05 var(--serif); font-style: italic; color: var(--ink-2); transform: rotate(-4deg); text-align: right; }
@media (max-width: 600px) {
  .hero-row { flex-direction: column; align-items: flex-start; } .hero-note { align-self: flex-end; }
  /* Phones have height to spare: let the title use the width ("into cinematic" fills ~90%). */
  .hero-title { font-size: clamp(40px, min(15vw, 28svh - 72px), 96px); }
}

/* Reel */
.reel { padding: 0 var(--pad); height: 170vh; }
.reel-card {
  --p: 0; position: sticky; top: 9vh; display: block; width: 100%; height: 82vh; margin: 0 auto;
  border-radius: calc(28px * (1 - var(--p))); overflow: hidden; background: var(--ink); color: var(--paper);
  clip-path: inset(0 calc(22% * (1 - var(--p))) 0 calc(22% * (1 - var(--p))) round 24px);
}
.reel-card img, .reel-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - .18 * var(--p))); }
.reel-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 10px 22px 10px 10px; font-weight: 500; white-space: nowrap; transition: transform .4s var(--ease);
}
.reel-card:hover .reel-play { transform: translate(-50%, -50%) scale(1.06); }
.reel-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--paper); font-size: 12px; }
.reel-corner { position: absolute; top: 20px; font: 300 14px var(--mono); text-transform: uppercase; letter-spacing: .16em; mix-blend-mode: difference; }
.reel-corner.tl { left: 24px; } .reel-corner.tr { right: 24px; }
@media (max-width: 700px) { .reel { height: auto; } .reel-card { position: relative; top: 0; height: 56vw; min-height: 260px; clip-path: none; border-radius: 16px; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; margin-top: clamp(40px, 8vw, 120px); }
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee-track span { font: 400 clamp(32px, 4.4vw, 64px)/1 var(--serif); white-space: nowrap; padding-right: 40px; }
.marquee-track span::after { content: '✺'; color: var(--accent); font-family: var(--sans); font-size: .6em; padding-left: 40px; vertical-align: middle; }
.marquee-track span:nth-child(even) { font-style: italic; }
@keyframes marq { to { transform: translateX(-50%); } }
/* Reduced motion: the strip keeps moving, just three times slower. */
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 120s; } }

/* Sections */
.manifesto, .work, .about, .contact { padding: clamp(80px, 12vw, 180px) var(--pad) 0; }
.sec-title, .manifesto-title { margin: 0; font: 500 clamp(40px, 6.4vw, 104px)/.95 var(--sans); letter-spacing: -.045em; }
.manifesto-title { font-size: clamp(48px, 9vw, 150px); }
.sec-title em, .manifesto-title em { color: var(--accent); }
.manifesto-quote { margin: clamp(40px, 6vw, 80px) 0 0 auto; max-width: 22em; font: 400 clamp(24px, 2.8vw, 42px)/1.15 var(--serif); }
.manifesto-quote .mw { opacity: .14; transition: opacity .3s; }
.manifesto-quote .mw.on { opacity: 1; }
.principles { list-style: none; padding: 0; margin: clamp(60px, 9vw, 140px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.principles li { background: var(--paper); padding: 28px 24px 36px 0; counter-increment: p; }
.principles li + li { padding-left: 24px; }
.principles b { display: block; font: 500 22px/1.2 var(--sans); letter-spacing: -.02em; margin-bottom: 12px; }
.principles b::before { content: '0' counter(p) ' '; font: 300 14px var(--mono); color: var(--accent); vertical-align: top; margin-right: 6px; }
.principles p { margin: 0; color: var(--ink-2); max-width: 34ch; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles li + li { padding-left: 0; } }

/* Work */
.work-head { display: grid; grid-template-columns: 1fr; gap: 0; }
.work-lede { max-width: 46ch; margin: 28px 0 0; color: var(--ink-2); font-size: 18px; }
.work-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: clamp(40px, 5vw, 72px) 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters, .views { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button, .views button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.filters button sup { font: 300 12px var(--mono); color: var(--ink-3); margin-left: 3px; }
.filters button:hover, .views button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"], .views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button[aria-pressed="true"] sup { color: var(--peach); }

/* Work grid: the featured film as a wide banner, then three columns with an
   editorial rhythm (js/light.js renderCards): some captions above the film,
   some below, some cards a little narrower and pushed to one side. */
.work-grid[data-view="grid"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 28px); align-items: start; }
.card { cursor: pointer; text-align: left; display: block; width: 100%; }
.card-media, .card-title, .card-line { display: block; }
.card-media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; background: var(--paper-2); }
.work-grid[data-view="grid"] .card { display: flex; flex-direction: column; }
.work-grid[data-view="grid"] .card.feat { grid-column: 1 / -1; }
.work-grid[data-view="grid"] .card.feat .card-media { aspect-ratio: 21 / 9; }
.work-grid[data-view="grid"] .card.feat .card-title { font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.03em; }
.work-grid[data-view="grid"] .card.info-top { flex-direction: column-reverse; }
.work-grid[data-view="grid"] .card.info-top .card-info { padding: 0 0 14px; }
.work-grid[data-view="grid"] .card.wide-3 { grid-column: 1 / -1; }
.work-grid[data-view="grid"] .card.wide-3 .card-media { aspect-ratio: 21 / 9; }
.work-grid[data-view="grid"] .card.wide-2 { grid-column: span 2; }
.work-grid[data-view="grid"] .card.wide-2 .card-media { aspect-ratio: 16 / 10; } /* same height as a 4:5 card beside it */
.work-grid[data-view="grid"] .card.slim { width: 88%; }
.work-grid[data-view="grid"] .card.slim.end { justify-self: end; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); transition: transform 1.2s var(--ease), opacity .4s; }
.card-media video { opacity: 0; }
.card:hover .card-media img { transform: scale(1.05); }
.card:hover .card-media video.ready { opacity: 1; }
.card-badge { position: absolute; left: 12px; top: 12px; background: var(--paper); border-radius: 999px; padding: 5px 10px; font: 300 13px var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.card-view { position: absolute; right: 14px; bottom: 14px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--paper); font-size: 13px; font-weight: 500; transform: scale(0) rotate(-30deg); transition: transform .5s var(--ease); }
.card:hover .card-view { transform: none; }
.card-info { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.card-title { margin: 0; font: 500 clamp(18px, 1.5vw, 22px)/1.2 var(--sans); letter-spacing: -.02em; }
.card-line { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.card-dur { font: 300 14px var(--mono); color: var(--ink-3); white-space: nowrap; padding-top: 4px; }
.card[hidden] { display: none; }
.card.enter { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@media (max-width: 1000px) and (min-width: 621px) {
  .work-grid[data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid[data-view="grid"] .card.feat .card-media, .work-grid[data-view="grid"] .card.wide-3 .card-media { aspect-ratio: 16 / 9; }
  .work-grid[data-view="grid"] .card.wide-2 { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  /* One column: every caption below, full width, a calmer rhythm. */
  .work-grid[data-view="grid"] { grid-template-columns: 1fr; }
  .work-grid[data-view="grid"] .card.slim { width: 100%; }
  .work-grid[data-view="grid"] .card.wide-2 { grid-column: auto; }
  .work-grid[data-view="grid"] .card.info-top { flex-direction: column; }
  .work-grid[data-view="grid"] .card.info-top .card-info { padding: 14px 0 0; }
  .work-grid[data-view="grid"] .card.feat .card-media, .work-grid[data-view="grid"] .card[class*="wide-"] .card-media { aspect-ratio: 4 / 5; }
}

/* Index (list) view */
.work-grid[data-view="list"] { display: block; border-top: 1px solid var(--line); }
.work-grid[data-view="list"] .card { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), color .3s; }
.work-grid[data-view="list"] .card:hover { padding-left: 16px; color: var(--accent); }
.work-grid[data-view="list"] .card-media { display: none; }
.work-grid[data-view="list"] .card-info { display: contents; }
.work-grid[data-view="list"] .card::before { content: attr(data-n); font: 300 14px var(--mono); color: var(--ink-3); }
.work-grid[data-view="list"] .card-title { font: 400 clamp(28px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -.01em; }
.work-grid[data-view="list"] .card-line { margin: 0; }
@media (max-width: 700px) { .work-grid[data-view="list"] .card { grid-template-columns: 32px 1fr auto; } .work-grid[data-view="list"] .card-line { display: none; } }
.cursor-preview { position: fixed; left: 0; top: 0; width: 320px; aspect-ratio: 16/10; pointer-events: none; z-index: 40; border-radius: 6px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-4deg); transition: opacity .3s, transform .5s var(--ease); }
.cursor-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .cursor-preview { display: none; } }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 100px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.about-photo figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; font-size: 14px; }
.about-photo figcaption span { color: var(--ink-2); }
.about-lead { font: 400 clamp(22px, 2.2vw, 32px)/1.25 var(--serif); margin: 40px 0 20px; }
.about-body { color: var(--ink-2); max-width: 52ch; margin: 0; }
.caps { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.caps li { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.caps li.alt { background: var(--lilac); border-color: var(--lilac); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(72px, 10vw, 140px) 0 0; border-top: 1px solid var(--ink); }
.stats div { padding: 20px 20px 0 0; }
.stats dt { font: 500 clamp(48px, 6vw, 96px)/1 var(--sans); letter-spacing: -.05em; }
.stats dd { margin: 10px 0 0; font-weight: 500; }
.stats dd small { display: block; color: var(--ink-2); font-weight: 400; font-size: 14px; }
.pull { margin: clamp(80px, 12vw, 160px) auto 0; max-width: 1100px; text-align: center; }
.pull blockquote { margin: 0; font: 400 clamp(30px, 4.2vw, 64px)/1.08 var(--serif); }
.pull figcaption { margin-top: 24px; font: 300 15px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .16em; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 420px; } .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* Contact */
.contact-title { margin: 0; font: 500 clamp(48px, 9vw, 160px)/.9 var(--sans); letter-spacing: -.055em; }
.contact-title em { color: var(--accent); }
.avail { margin-left: 16px; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 120px); margin-top: clamp(48px, 6vw, 96px); }
.brief { position: relative; }
.brief-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 500; margin: 0 0 8px; }
.brief-sub { font-weight: 400; color: var(--ink-2); }
.field { display: block; border-bottom: 1px solid var(--ink); padding: 18px 0 6px; }
.field span { display: block; font: 300 14px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); }
.field input, .field textarea { width: 100%; border: 0; background: none; font: 400 clamp(20px, 2vw, 28px)/1.3 var(--sans); color: var(--ink); padding: 6px 0; resize: vertical; outline: none; }
.field:focus-within { border-color: var(--accent); }
.field:focus-within span { color: var(--accent); }
.field [aria-invalid="true"] { color: var(--accent); }
.trap { position: absolute; left: -9999px; }
.brief-err { min-height: 1.5em; color: var(--accent); margin: 12px 0 0; }
.brief-send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.send { display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 18px 30px; font-size: 18px; font-weight: 500; transition: background .3s; }
.send .arrow { transition: transform .4s var(--ease); }
.send:hover { background: var(--accent); }
.send:hover .arrow { transform: translateX(6px); }
.send:disabled { opacity: .5; }
.send-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.sent { position: absolute; inset: 0; background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sent h3 { margin: 0; font: 400 clamp(40px, 5vw, 72px)/1 var(--serif); font-style: italic; color: var(--accent); outline: none; }
.link { text-decoration: underline; text-underline-offset: 4px; margin-top: 12px; }
.reach { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.reach dt { font: 300 14px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); }
.reach dd { margin: 4px 0 0; font-size: 20px; }
.reach a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.reach a:hover { background-size: 0 1px; background-position: 100% 100%; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .avail { display: flex; margin: 10px 0 0; } }

/* Footer */
.ftr { margin-top: clamp(100px, 14vw, 200px); background: var(--ink); color: var(--paper); padding: 28px var(--pad) 0; overflow: hidden; }
.ftr a { text-decoration: none; }
.ftr p { margin: 0; }
.ftr-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 56px) 0 0; }
.ftr-tag { font: 400 clamp(16px, 1.4vw, 20px)/1.4 var(--sans); max-width: 40ch; color: var(--paper); }
.ftr-up { display: inline-flex; align-items: center; gap: 14px; flex: none; padding: 8px 8px 8px 22px; border: 1px solid rgba(243, 239, 231, .25); border-radius: 999px; font-size: 14px; transition: background .3s, border-color .3s; }
.ftr-up i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--paper); font-style: normal; transition: background .3s; }
.ftr-up:hover { background: var(--accent); border-color: var(--accent); }
.ftr-up:hover i { background: var(--ink); }
.ftr-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(16px, 2vw, 28px); padding: 20px 0 24px; border-top: 1px solid rgba(243, 239, 231, .18); font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(243, 239, 231, .6); }
.ftr-bottom p:last-child { text-align: right; }
.ftr-bottom a { transition: color .3s; }
.ftr-bottom a:hover { color: var(--accent); }
.ftr-socials { display: flex; gap: 20px; }
@media (max-width: 700px) {
  .ftr-top { flex-direction: column; align-items: flex-start; }
  .ftr-bottom { grid-template-columns: 1fr; text-align: left; }
  .ftr-bottom p:last-child { text-align: left; }
}
.ftr .ftr-mark { margin: clamp(56px, 9vw, 150px) 0 0; font: 500 30vw/.74 var(--sans); letter-spacing: -.07em; text-align: center; white-space: nowrap; }
.ftr-mark sup { font-size: .14em; vertical-align: top; position: relative; top: .3em; color: var(--accent); letter-spacing: 0; }

/* Project viewer: the film alone on a dark screen, sized to its own shape by
   js/light.js (fitMedia). "Info" slides the details in from the right and the
   film shrinks beside it (a vertical film barely moves); on phones they rise
   from the bottom over the film. Controls fade while the film plays untouched. */
.viewer {
  --v-bg: #0d0c0b; --v-ink: #f3efe7; --v-info: min(420px, 36vw);
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--v-bg); color: var(--v-ink); overflow: hidden;
}
.viewer::backdrop { background: var(--v-bg); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: v-in .45s var(--ease); }
@keyframes v-in { from { opacity: 0; } }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); transition: opacity .5s; }
.v-name { margin: 0; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-pos { margin-left: 12px; font: 300 14px var(--mono); letter-spacing: .16em; color: rgba(243, 239, 231, .5); }
.v-actions { display: flex; gap: 8px; flex: none; }
.v-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(243, 239, 231, .25); font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.v-btn:hover { background: var(--v-ink); color: var(--v-bg); border-color: var(--v-ink); }
.v-i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font: italic 400 13px/1 var(--serif); }
.viewer.info-open #mInfoBtn { background: var(--v-ink); color: var(--v-bg); border-color: var(--v-ink); }
.v-stage { position: relative; display: flex; min-height: 0; }
.v-media-wrap { position: relative; flex: 1; min-width: 0; padding: 0 clamp(12px, 5vw, 96px) clamp(12px, 3vh, 32px); }
.v-media { width: 100%; height: 100%; display: grid; place-items: center; }
.v-media > * { display: block; border: 0; border-radius: 6px; background: #000; object-fit: contain; opacity: 0; transition: opacity .35s; }
.v-media.ready > * { opacity: 1; }
.v-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; color: var(--v-ink); background: rgba(243, 239, 231, .08);
  border: 1px solid rgba(243, 239, 231, .18); transition: background .25s, color .25s, opacity .5s;
}
.v-arrow:hover { background: var(--v-ink); color: var(--v-bg); }
.v-prev { left: clamp(8px, 1.4vw, 28px); } .v-next { right: clamp(8px, 1.4vw, 28px); }
.viewer.idle .v-bar, .viewer.idle .v-arrow { opacity: 0; }
.viewer.idle { cursor: none; }
.v-info { flex: none; width: 0; overflow: hidden; background: var(--paper); color: var(--ink); transition: width .55s var(--ease); }
.viewer.info-open .v-info { width: var(--v-info); }
.v-info-inner { position: relative; width: var(--v-info); height: 100%; overflow-y: auto; padding: clamp(24px, 3vw, 40px); }
.v-info-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; }
.v-info h2 { margin: 0; font: 500 clamp(26px, 2.4vw, 40px)/1.02 var(--sans); letter-spacing: -.04em; padding-right: 36px; }
.v-desc { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.m-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.m-specs dt { font: 300 13px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); }
.m-specs dd { margin: 4px 0 0; font-size: 14px; }
.m-cta { display: inline-block; background: var(--accent); color: var(--paper); border-radius: 999px; padding: 12px 22px; text-decoration: none; font-weight: 500; }
@media (max-width: 760px) {
  .v-bar { padding: 10px 14px; }
  .v-btn { padding: 8px 12px; }
  .v-media-wrap { padding: 0 0 10px; }
  .v-arrow { width: 40px; height: 40px; top: auto; bottom: 22px; translate: none; background: rgba(13, 12, 11, .55); }
  /* Info rises from the bottom over the film, like a sheet. */
  .v-info { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-radius: 16px 16px 0 0; transform: translateY(101%); transition: transform .5s var(--ease); box-shadow: 0 -20px 40px rgba(0, 0, 0, .35); }
  .viewer.info-open .v-info { width: auto; transform: none; }
  .v-info-inner { width: auto; max-height: 72dvh; padding: 22px 18px 28px; }
  .m-specs { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .viewer[open], .v-info { animation: none; transition: none; } }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hero-title .w > span { transform: none; transition: none; } }
