/* ═══════════════════════════════════════════════════════════════
   OBSERVATORY — Homepage (2026 redesign, rev 2)
   B5 "Filmstrip": big opening statement, then the work as
   full-bleed bands — ambient motion loops with poster stills —
   credit lockups per row. Features = shorter bands + status tag.
   No smooth-scroll hijack, no cursor, no loader.
   Inner pages use inner.css.
   ═══════════════════════════════════════════════════════════════ */
/* Cabinet Grotesk, self-hosted — see assets/fonts/README.txt for licence and
   provenance. Replaced the Adobe Fonts kit 2026-07-28 so the site's typography
   survives without an Adobe subscription. The family has no 600, so the .cred
   wordmarks' font-weight:600 resolves to Bold 700 — same as it always did. */
@font-face{
  font-family:'Cabinet Grotesk';
  src:url('/assets/fonts/cabinet-grotesk-400.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Cabinet Grotesk';
  src:url('/assets/fonts/cabinet-grotesk-500.woff2') format('woff2');
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Cabinet Grotesk';
  src:url('/assets/fonts/cabinet-grotesk-700.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}
:root{
  --ground:#070706;
  --ink:#f3f1ea;
  --ink-dim:#93908a;
  --hair:#22221e;
  --pad:clamp(20px,3.4vw,52px);
  --sans:'Cabinet Grotesk','Helvetica Neue',Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);

  /* ── Opening rhythm ───────────────────────────────────────────────
     The two numbers that decide how much black opens the site.
       --slate-top    black above the headline. Hard floor is the fixed
                      nav (66px desktop / 78px mobile) — below ~90px the
                      headline starts colliding with the nav.
       --slate-bottom the beat between the headline and the first film.
     Deliberately not as tight as possible — the black around the title is
     doing work, framing it as a statement rather than a caption stacked on
     the first film. Sits between the original 66% and the tightest 32%. */
  --slate-top:clamp(140px,17vh,190px);
  --slate-bottom:clamp(46px,5vw,84px);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;color-scheme:dark}
body{
  background:var(--ground);color:var(--ink);
  font-family:var(--sans);font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
::selection{background:var(--ink);color:var(--ground)}

/* ─── Nav ─────────────────────────────────────────────────────── */
#site-nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 22px;
  padding:24px var(--pad);
  mix-blend-mode:difference;
}
/* Wordmark. Art is black-on-transparent, so force it white the same way the
   credit lockups do — brightness(0) flattens to black but keeps alpha,
   invert(1) lifts it to --ink. Under the nav's difference blend this then
   self-inverts over bright frames, exactly as the old text brand did. */
.brand{display:block;line-height:0}
.brand img{
  height:clamp(15px,1.3vw,18px);width:auto;
  filter:brightness(0) invert(1);
}
/* The nav is fixed, so a jumped-to section would land underneath it. #work now
   targets the strip directly (the "Directing" head that used to absorb this is
   gone), which would clip the first frame's top edge without this. */
#work,#features,#about{scroll-margin-top:82px}
#site-nav nav{display:flex;gap:30px;flex-wrap:wrap}
/* Padding + equal negative margin grows the tap target (a11y minimum is 24px,
   44px on touch) without moving a pixel of the rendered layout. */
#site-nav nav a{
  font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--ink);
  opacity:.62;transition:opacity .25s;
  padding:14px 8px;margin:-14px -8px;
}
#site-nav nav a:hover{opacity:1}

/* ─── Opening slate: the sentence ─────────────────────────────── */
/* Height is content-driven. The old min-height:56vh + flex-end reserved a
   band above the headline for a reel; with no reel that surplus just read as
   void, so the block now sizes to its own text. */
.slate{
  padding:var(--slate-top) var(--pad) var(--slate-bottom);
}
.slate h1{
  /* The 34px floor is too big for "Matthew Valdez-Litwiller" below ~370px:
     the surname can't break (see .nb), and body{overflow-x:hidden} would
     silently clip it rather than scroll. So cap the size at whatever keeps the
     surname — 9.8em wide — inside the text column. */
  font-size:min(clamp(34px,4.8vw,74px), calc((100vw - 2 * var(--pad)) / 9.8));
  font-weight:500;letter-spacing:-.01em;line-height:1.04;
  /* 15.5em, not 14 — the name line measures 14.76em and was wrapping mid-name. */
  max-width:15.5em;
}
/* Keep the surname whole. The hyphen in Valdez-Litwiller is a break
   opportunity, so without this it splits as "Valdez-" / "Litwiller" when the
   line runs out. At the 34px mobile floor it needs 9.5em of the 9.9em there. */
.slate h1 .nb{white-space:nowrap}
.slate h1 .lift{display:block;overflow:hidden}
.slate h1 .lift>span{
  display:block;transform:translateY(108%);
  animation:rise 1s var(--ease) forwards;
}
.slate h1 .lift:nth-child(2)>span{animation-delay:.12s}
@keyframes rise{to{transform:translateY(0)}}

/* ─── Filmstrip ───────────────────────────────────────────────── */
/* Section title. Was a 10px dim caps label that read as a caption; now a real
   chapter head — set between the item titles (38px) and the opening h1 (74px)
   so it divides the page without competing with the statement up top. */
.chapter{
  padding:clamp(40px,4.8vw,78px) var(--pad) clamp(12px,1.4vw,20px);
  font-size:clamp(30px,4.2vw,62px);font-weight:500;
  letter-spacing:.02em;line-height:1;text-transform:uppercase;
  color:var(--ink);
}
.strip{list-style:none}
.strip li + li{margin-top:3px}
.frame{
  position:relative;display:block;overflow:hidden;
  height:clamp(300px,54vh,560px);
}
.frame .still{
  width:100%;height:100%;object-fit:cover;
  transition:transform 2.4s var(--ease);
}
.frame:hover .still{transform:scale(1.02)}
.frame::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:110px;
  background:linear-gradient(to top,rgba(7,7,6,.68),transparent);
}
.frame .cap{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:0 var(--pad) 16px;
}
.frame .t{
  font-size:clamp(20px,2.4vw,38px);font-weight:500;
  letter-spacing:.05em;text-transform:uppercase;line-height:1.1;
}
/* shorter bands for the features slate */
.strip--short .frame{height:clamp(200px,34vh,360px)}

/* status tag: quiet bordered chip beside a title */
.tag{
  display:inline-block;vertical-align:middle;
  margin-left:clamp(12px,1.4vw,22px);padding:5px 10px 4px;
  border:1px solid rgba(243,241,234,.5);
  font-size:9px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--ink);
}

/* credit lockups: client marks & laurels, one monochrome system */
.cred{display:flex;align-items:center;gap:clamp(16px,1.8vw,28px);flex-shrink:0}
.cred img{
  width:auto;display:block;
  filter:brightness(0) invert(1);
  opacity:.88;transition:opacity .3s;
}
.frame:hover .cred img{opacity:1}
.cred .lg-sony{height:clamp(11px,1vw,14px)}
.cred .lg-disney{height:clamp(26px,2.4vw,34px)}
.cred .lg-laurel{height:clamp(30px,3vw,42px)}
.cred .lg-clio{height:clamp(26px,2.6vw,36px)}
.cred .wordmark{
  font-size:clamp(11px,1vw,14px);font-weight:600;letter-spacing:.28em;color:var(--ink);
  opacity:.88;
}
.cred .yr{font-size:10px;letter-spacing:.2em;color:#cfccc2}

/* ─── Coda / footer ───────────────────────────────────────────── */
.coda{
  padding:clamp(36px,4.2vw,68px) var(--pad) clamp(30px,3.4vw,52px);
  display:grid;grid-template-columns:2fr 1fr;gap:clamp(28px,4vw,72px);align-items:end;
}
.coda p{font-size:clamp(16px,1.6vw,22px);line-height:1.65;color:#c7c4ba;max-width:32em}
.coda .mail{text-align:right}
.coda .mail a{
  font-size:clamp(17px,1.8vw,26px);font-weight:500;letter-spacing:-.005em;
  border-bottom:1px solid var(--ink-dim);padding-bottom:3px;transition:border-color .25s;
}
.coda .mail a:hover{border-color:var(--ink)}
#site-footer{
  display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  padding:18px var(--pad) 24px;border-top:1px solid var(--hair);
  font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--ink-dim);
}
/* Footer wordmark sits at --ink-dim weight so it reads as a sign-off, not a
   second masthead: same white-forcing filter, then dimmed to match the type. */
.foot-brand{display:block;line-height:0}
.foot-brand img{
  height:12px;width:auto;
  filter:brightness(0) invert(1);opacity:.58;
}

/* ─── Mobile ──────────────────────────────────────────────────── */
@media (max-width:760px){
  #site-nav{flex-direction:column;align-items:flex-start;gap:11px;padding:18px var(--pad)}
  #site-nav nav{gap:18px}
  .brand img{height:14px}
  #work,#features,#about{scroll-margin-top:92px}
  .slate{padding-top:128px}
  .frame{height:clamp(220px,42vh,380px)}
  .strip--short .frame{height:clamp(160px,28vh,260px)}
  .frame .cap{flex-direction:column;align-items:flex-start;gap:10px}
  .tag{margin-left:10px;padding:4px 8px 3px}
  .cred{gap:16px}
  .cred .lg-laurel{height:26px}
  .cred .lg-disney{height:22px}
  .cred .lg-clio{height:24px}
  .cred .lg-sony{height:12px}
  .coda{grid-template-columns:1fr}
  .coda .mail{text-align:left}
}

/* ─── Reduced motion ──────────────────────────────────────────── */
/* The loops are also gated in JS (autoplay never starts); posters carry
   every band, so the page loses nothing but movement. */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .slate h1 .lift>span{animation:none;transform:none}
  .frame .still{transition:none}
  .frame:hover .still{transform:none}
}
