:root {
  color-scheme: dark;
  --background: #191919;
  --text: #f0eeea;
  --muted: #aaa8a3;
  --line: #343434;
  --accent: #c5d5c0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 134px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
svg { width: 20px; height: 20px; flex: none; }
::selection { background: var(--accent); color: var(--background); }
.page-shell { width: min(100% - 112px, 1360px); margin: 0 auto; }
.site-header { position: relative; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--line), #4a4a48 50%, var(--line)); transform-origin: left; animation: draw-line 1.2s var(--ease) .15s both; }
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: -.6px; transition: color 250ms ease; animation: fade-down .8s var(--ease) both; }
.wordmark:hover { color: #fff; }
.wordmark-sub { color: var(--muted); font-weight: 400; }
.site-tagline { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; animation: fade-down .8s var(--ease) .08s both; }
.site-meta { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; animation: fade-down .8s var(--ease) .16s both; }
.site-meta a { color: var(--text); transition: color 250ms ease; }
.site-meta a:hover { color: var(--accent); }
nav { display: flex; align-items: center; gap: 30px; }
nav a { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; min-height: 44px; transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease; animation: fade-down .8s var(--ease) .08s both; }
nav a:nth-child(2) { animation-delay: .16s; }
nav a:last-child { color: var(--muted); }
nav a:hover { color: var(--text); }
nav svg { width: 14px; height: 14px; transition: transform 300ms var(--ease); }

@keyframes draw-line { from { transform: scaleX(0); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.eyebrow { margin: 0 0 19px; color: var(--muted); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }
h1 { margin: 0; font-weight: 400; font-size: clamp(44px, 4.8vw, 70px); line-height: 1.05; letter-spacing: -3px; }
.work { padding-top: 40px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 23px; row-gap: 44px; }
.project { min-width: 0; display: flex; flex-direction: column; }
@supports (animation-timeline: view()) {
  .project { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
.project-media { display: block; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; background: #232323; }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease, filter 350ms ease; }
.project-media img.media-fit-contain { object-fit: contain; }
a.project-media:hover img, a.project-media:focus-visible img { transform: scale(1.035); filter: brightness(.78); }
.play-button { position: absolute; width: 46px; height: 46px; right: 16px; bottom: 16px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(20,20,20,.4); backdrop-filter: blur(8px); color: white; transition: background 200ms ease; }
.play-button svg { width: 23px; height: 23px; }
a.project-media:hover .play-button { background: rgba(20,20,20,.75); }
.media-action { position: absolute; left: 18px; bottom: 29px; display: flex; align-items: center; gap: 8px; opacity: 0; color: white; font-size: 12px; transition: opacity 200ms ease; }
.media-action svg { width: 14px; height: 14px; }
a.project-media:hover .media-action, a.project-media:focus-visible .media-action { opacity: 1; }
.pending-label { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 9px; font-size: 10px; letter-spacing: .15px; line-height: 1.4; background: rgba(21,21,21,.86); color: #dfdcd7; border: 1px solid rgba(255,255,255,.15); }
.thumbnail-placeholder { width: 100%; height: 100%; padding: 26px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 17px; background: #252623; border: 1px solid #363831; }
.placeholder-mark { color: #a2ac9c; font-size: clamp(24px, 3.4vw, 52px); font-weight: 400; letter-spacing: 1px; }
.placeholder-caption { color: #aaa9a0; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.project-caption { flex: 1; display: flex; align-items: flex-start; gap: 11px; padding-top: 18px; }
.project-number { color: #92928d; font-size: 10px; line-height: 21px; font-variant-numeric: tabular-nums; }
.project-details { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.project h3 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 400; letter-spacing: -.2px; }
.project h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-details p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.project-details p span { padding: 0 3px; }
.project-details p.project-stats { margin-top: 10px; color: #bbb9b3; font-size: 12px; line-height: 1.75; }
.project-details p.project-description { white-space: pre-line; margin-top: 14px; color: #bbb9b3; font-size: 12px; line-height: 1.75; }
/* Every card ends with a watch link pinned to the bottom, so footers line up across a row. */
.project-foot { margin: auto 0 0; min-height: 57px; padding-top: 16px; border-top: 1px solid var(--line); transition: border-color 250ms ease; }
.project:hover .project-foot { border-color: #4a4a48; }
.project-details > :has(+ .project-foot) { margin-bottom: 22px; }
.project-watch { display: flex; align-items: flex-start; gap: 8px; font-size: 9.5px; line-height: 14px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); transition: color 250ms ease, border-color 250ms ease; }
.project-watch svg { width: 13px; height: 13px; transition: transform 300ms var(--ease); }
.project:hover .project-watch { color: var(--accent); }
.project:hover .project-watch svg { transform: translate(2px, -2px); }
.project-indicator { transition: color 250ms ease; display: inline-flex; align-items: center; height: 21px; color: var(--muted); }
.project-indicator svg { width: 15px; height: 15px; transition: transform 300ms var(--ease); }
.project:hover .project-indicator { color: var(--text); }
.project:hover .project-indicator svg { transform: translate(2px, -2px); }
.site-footer { margin-top: 96px; padding: 25px 0 33px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
.site-footer p { margin: 0; line-height: 1.6; }
.footer-divider { padding: 0 13px; color: #696965; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.site-footer svg { width: 14px; height: 14px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; transform: translateY(-160%); padding: 12px 16px; background: var(--text); color: var(--background); font-size: 14px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.film-page .page-shell { max-width: 1100px; }
.film-main { padding: 48px 0 56px; }
.film-title { max-width: 950px; margin-bottom: 30px; font-size: clamp(24px, 3vw, 40px); line-height: 1.2; letter-spacing: -.8px; overflow-wrap: anywhere; }
.film-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.film-video:focus-visible, .film-retry:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.film-status { min-height: 1.5em; margin: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.film-retry { padding: 11px 18px; border: 1px solid var(--line); background: #252623; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.film-retry:hover { border-color: var(--accent); }
/* Short laptop screens: wider thumbnails so the second row peeks in on first view. */
@media (min-width: 901px) and (max-height: 820px) { .project-media { aspect-ratio: 16 / 9; } }
@media (min-width: 901px) and (max-height: 700px) { :root { --header-h: 96px; } }
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 64px); }
  :root { --header-h: 112px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 20px; }
  h1 { letter-spacing: -2px; }
  .site-footer { margin-top: 72px; }
}
@media (max-width: 580px) {
  .page-shell { width: calc(100% - 40px); }
  :root { --header-h: 86px; }
  .site-header { gap: 12px; padding: 22px 0; }
  .wordmark { font-size: 16px; letter-spacing: -.5px; }
  .site-tagline, .site-meta { font-size: 12px; }
  nav { gap: 15px; }
  nav a { font-size: 11px; gap: 5px; }
  nav svg { width: 12px; height: 12px; }
  h1 { font-size: 47px; }
  .eyebrow { margin-bottom: 15px; font-size: 9px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .project h3 { font-size: 16px; }
  .placeholder-mark { font-size: 46px; }
  .site-footer { margin-top: 60px; font-size: 10px; padding-bottom: 20px; }
  .footer-divider { padding: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
