/* ============================================================
   DEVIN SCHLATTER — 2026 REDESIGN
   Design system: dark, minimal, cinematic.
   1 tokens · 2 reset · 3 type · 4 texture · 5 nav · 6 buttons
   7 motion · 8 layout · 9 hero · 10 work · 11 page parts
   12 film page · 13 photos · 14 recreations · 15 contact
   16 footer · 17 preloader
   ============================================================ */

/* ── 1. TOKENS ──────────────────────────────────────────── */
:root {
  /* surfaces — near-black, warmed a touch so it never reads blue */
  --ink:        #08090a;
  --ink-raise:  #0c0e10;
  --ink-card:   #101315;
  --ink-deep:   #030405;

  /* hairlines */
  --line:       rgba(255, 255, 255, 0.065);
  --line-mid:   rgba(255, 255, 255, 0.11);
  --line-hot:   rgba(255, 255, 255, 0.20);

  /* text */
  --fg:         #ece8e1;
  --fg-2:       rgba(236, 232, 225, 0.60);
  --fg-3:       rgba(236, 232, 225, 0.38);
  --fg-4:       rgba(236, 232, 225, 0.22);

  /* the one accent — used sparingly */
  --gold:       #c9a74c;
  --gold-soft:  rgba(201, 167, 76, 0.14);
  --gold-line:  rgba(201, 167, 76, 0.34);

  /* type */
  --serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* rhythm */
  --gutter: 40px;
  --maxw:   1360px;
  --radius: 14px;
  --radius-sm: 8px;

  /* motion */
  --ease:      cubic-bezier(0.16, 1, 0.30, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (max-width: 900px) { :root { --gutter: 24px; } }
@media (max-width: 560px) { :root { --gutter: 18px; } }

/* ── 2. RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--ink);
}

/* The two washes live on one static, promoted layer behind the content.
   As a fixed pseudo-element they are painted once; `background-attachment:
   fixed` on the body would instead repaint the viewport on every scroll frame. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
  background:
    radial-gradient(120vw 90vh at 78% -10%, rgba(201, 167, 76, 0.055), transparent 62%),
    radial-gradient(100vw 70vh at 8% 8%,  rgba(120, 150, 200, 0.035), transparent 60%);
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
::selection { background: rgba(201, 167, 76, 0.28); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb { background: #1e2225; border-radius: 99px; border: 3px solid var(--ink-deep); }
::-webkit-scrollbar-thumb:hover { background: #2c3134; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--ink);
  border-radius: 99px;
  font-size: 0.8rem;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ── 3. TYPE ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; }

.display {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: 0.90;
  letter-spacing: -0.03em;
}

.h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 0.98; letter-spacing: -0.025em; }
.h2 { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.5rem);   line-height: 1.04; letter-spacing: -0.02em; }
.h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.16; }

.display em, .h1 em, .h2 em, .h3 em { font-style: italic; color: var(--fg-2); }

/* small caps label — the connective tissue of the whole site */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.75;
  flex-shrink: 0;
}
.eyebrow.bare::before { display: none; }

.lede {
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.68;
  color: var(--fg-2);
  font-weight: 300;
  max-width: 56ch;
}

.body-text { color: var(--fg-2); font-weight: 300; max-width: 62ch; }
.body-text + .body-text { margin-top: 1.15em; }
.body-text em { color: var(--fg); font-style: italic; }

.num { font-variant-numeric: tabular-nums; }

/* ── 4. TEXTURE ─────────────────────────────────────────── */
/* Film grain: one fixed layer over everything, drifting slowly. */
.grain {
  position: fixed;
  inset: -140px;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.055;
  transform: translateZ(0);
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainDrift 640ms steps(3) infinite;
}

@keyframes grainDrift {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(-3%, 2%, 0); }
  66%  { transform: translate3d(2%, -3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Vignette — pulls the eye toward the middle of the frame. */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  transform: translateZ(0);
  background: radial-gradient(130vw 110vh at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.58) 100%);
}

/* Reusable soft noise for cards and frames */
.textured { position: relative; }
.textured::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.10;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23m)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ── 5. NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease;
}

/* glass only once you have scrolled — at the top it floats free */
.nav.is-stuck {
  background: rgba(8, 9, 10, 0.60);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-102%); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; }
.brand-role {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--fg-2);
  transition: color 0.3s var(--ease-soft);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { transform: scaleX(1); background: var(--gold); opacity: 0.85; }

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-mid);
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.3s ease;
}
.nav-toggle:hover { border-color: var(--line-hot); }
.nav-toggle span {
  display: block;
  width: 16px; height: 1px;
  background: var(--fg);
  transition: transform 0.4s var(--ease), opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(6, 7, 8, 0.88);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.nav-sheet.is-open { opacity: 1; pointer-events: auto; }
.nav-sheet a {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  color: var(--fg-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.3s ease, opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-sheet.is-open a { opacity: 1; transform: none; }
.nav-sheet a:nth-child(1) { transition-delay: 0.06s; }
.nav-sheet a:nth-child(2) { transition-delay: 0.10s; }
.nav-sheet a:nth-child(3) { transition-delay: 0.14s; }
.nav-sheet a:nth-child(4) { transition-delay: 0.18s; }
.nav-sheet a:nth-child(5) { transition-delay: 0.22s; }
.nav-sheet a:nth-child(6) { transition-delay: 0.26s; }
.nav-sheet a:nth-child(7) { transition-delay: 0.30s; }
.nav-sheet a:hover, .nav-sheet a.active { color: var(--fg); }

@media (max-width: 1040px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ── 6. BUTTONS ─────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 99px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s ease, transform 0.35s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { transition: transform 0.4s var(--ease); flex-shrink: 0; }
.btn:hover .ico { transform: translateX(4px); }

.btn-solid { background: var(--fg); color: var(--ink); font-weight: 500; }
.btn-solid::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn-solid:hover::before { transform: translateY(0); }

.btn-line {
  border: 1px solid var(--line-mid);
  color: var(--fg-2);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-line::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn-line:hover { color: var(--fg); border-color: var(--line-hot); }
.btn-line:hover::before { transform: translateY(0); }

.btn-text { padding: 6px 0; border-radius: 0; color: var(--fg-2); }
.btn-text::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-mid);
  transition: background 0.3s ease;
}
.btn-text:hover { color: var(--fg); }
.btn-text:hover::after { background: var(--gold); }

.btn-sm { padding: 9px 18px; font-size: 0.76rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── 7. MOTION ──────────────────────────────────────────── */
/* Anything with [data-reveal] fades up and unblurs on entry.
   --i staggers siblings; site.js assigns it. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition:
    opacity   0.9s var(--ease) calc(var(--i, 0) * 80ms),
    transform 0.9s var(--ease) calc(var(--i, 0) * 80ms),
    filter    0.9s var(--ease) calc(var(--i, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }

[data-rule] {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
[data-rule].is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  [data-rule] { transform: scaleX(1); }
  .grain { animation: none; }
}

/* ── 8. LAYOUT ──────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow { max-width: 1020px; }

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(56px, 7vw, 92px) 0; }
.rule { height: 1px; background: var(--line); border: 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head-text { max-width: 48ch; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head p { color: var(--fg-2); font-weight: 300; margin-top: 16px; max-width: 46ch; }

/* ── 9. HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

/* pointer-tracked spotlight, very subtle */
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  left: 0;
  top: 0;
  /* --mx/--my are pixel offsets set by site.js; the 50% is of this element */
  transform: translate3d(calc(var(--mx, 50vw) - 50%), calc(var(--my, 40vh) - 50%), 0);
  background: radial-gradient(circle, rgba(201, 167, 76, 0.10), transparent 68%);
  filter: blur(44px);
  pointer-events: none;
  transition: transform 1.2s var(--ease-soft);
  will-change: transform;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero-title { margin: 22px 0 0; }
.hero-title .line { display: block; overflow: hidden; }
.hero-lede { margin-top: 30px; }
.hero-actions { margin-top: 38px; }

/* rotating still, in a tall frame */
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 0.82);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease-soft), transform 8s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

/* thin frame gradient so the image never clashes with the caption */
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(3, 4, 5, 0.72), transparent 45%);
  pointer-events: none;
}

.hero-frame-caption {
  position: absolute;
  left: 20px; bottom: 16px;
  z-index: 4;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* dot pager */
.hero-dots {
  position: absolute;
  right: 18px; bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 7px;
}
.hero-dots button {
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--fg-4);
  transition: background 0.4s ease, width 0.4s var(--ease);
}
.hero-dots button.is-on { background: var(--gold); width: 18px; }

/* credential pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--fg-3);
  background: rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.pill:hover { color: var(--fg-2); border-color: var(--line-mid); }
.pill svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.7; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.scroll-cue i {
  display: block;
  width: 56px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  transform-origin: left;
  animation: cueSweep 2.6s var(--ease-soft) infinite;
}
@keyframes cueSweep {
  0%, 100% { transform: scaleX(0.35); opacity: 0.4; }
  50%      { transform: scaleX(1);    opacity: 1; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-frame { max-width: 560px; }
  .scroll-cue { display: none; }
}

/* ── 10. WORK GRID ──────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}
.work-grid.tight { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* one tile spanning two columns, for a featured film */
.work-card.wide { grid-column: span 2; }
@media (max-width: 780px) { .work-card.wide { grid-column: span 1; } }

.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-card);
  border: 1px solid var(--line);
  transition: border-color 0.5s ease, transform 0.6s var(--ease);
}
.work-card:hover { border-color: var(--line-mid); transform: translateY(-4px); }

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-deep);
}
.work-card.wide .work-media { aspect-ratio: 16 / 8.4; }

.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.9);   /* static: painted once, never animated */
  transform: scale(1.01);
  transition: transform 1.1s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.06); }

/* darkening scrim that lifts on hover — opacity is compositor-only */
.work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 4, 5, 0.88) 2%, rgba(3, 4, 5, 0.30) 48%, rgba(3, 4, 5, 0.18) 100%);
  transition: opacity 0.6s ease;
}
.work-card:hover .work-media::after { opacity: 0.58; }

.work-body {
  position: relative;
  z-index: 2;
  padding: 18px 20px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.work-title {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.work-meta {
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.work-year {
  font-size: 0.72rem;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* corner badge */
.badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 9, 6, 0.62);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge svg { width: 12px; height: 12px; flex-shrink: 0; }

/* hover "view" affordance */
.work-view {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 4;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(236, 232, 225, 0.10);
  border: 1px solid var(--line-mid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: scale(0.8) rotate(-25deg);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
.work-card:hover .work-view { opacity: 1; transform: none; }
.work-view svg { width: 15px; height: 15px; }

/* ── 11. PAGE PARTS ─────────────────────────────────────── */
.page-head {
  position: relative;
  padding: clamp(140px, 17vw, 210px) 0 clamp(46px, 6vw, 74px);
}
.page-head .h1 { margin-top: 22px; }
.page-head .lede { margin-top: 26px; }

/* horizontal spec strip — program, gear, status */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  background: var(--ink-raise);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.4s ease;
}
.spec:hover { background: var(--ink-card); }
.spec-k {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.spec-v { font-size: 0.92rem; font-weight: 300; color: var(--fg); }

/* stat block */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-n {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-k {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* glass card */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.45s ease, transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-mid); transform: translateY(-3px); }
.card-k {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.card-v { font-family: var(--serif); font-size: 1.28rem; margin-top: 10px; }
.card-s { font-size: 0.78rem; color: var(--fg-3); font-weight: 300; margin-top: 5px; }

.card-ico {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-mid);
  background: rgba(201, 167, 76, 0.06);
  color: var(--gold);
  margin-bottom: 20px;
}
.card-ico svg { width: 18px; height: 18px; }
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: var(--fg-2); font-weight: 300; line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }

/* numbered story chapters */
.chapter {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(38px, 5vw, 62px) 0;
  border-top: 1px solid var(--line);
}
.chapter:first-of-type { border-top: 0; }
.chapter-n {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--fg-4);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.chapter h2 { margin-bottom: 18px; }
@media (max-width: 720px) {
  .chapter { grid-template-columns: 1fr; gap: 14px; }
  .chapter-n { font-size: 1.6rem; }
}

/* split feature block */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--ink-deep);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.9); }

/* marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}
.marquee-group span::after { content: '\2022'; color: var(--gold); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* big closing call to action */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(80px, 12vw, 150px) 0;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 90vw; height: 90vw;
  max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 167, 76, 0.09), transparent 66%);
  filter: blur(46px);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta .btn-row { justify-content: center; margin-top: 36px; }
.cta .lede { margin: 22px auto 0; }

/* empty-state block (Sony page) */
.empty {
  text-align: center;
  padding: clamp(56px, 8vw, 90px) clamp(24px, 5vw, 60px);
  border: 1px dashed var(--line-mid);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.empty img { max-width: 190px; margin: 0 auto 34px; opacity: 0.62; filter: grayscale(1) brightness(1.6); }
.empty p { color: var(--fg-2); font-weight: 300; max-width: 52ch; margin: 16px auto 0; }

/* ── 12. FILM PAGE ──────────────────────────────────────── */
.film-top { padding: clamp(120px, 14vw, 165px) 0 0; }

.film-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.95);
}
.film-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.film-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 70px);
  flex-wrap: wrap;
  margin-top: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.film-head h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
.film-note { font-size: 0.78rem; color: var(--fg-3); margin-top: 10px; font-weight: 300; }

.role-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.role {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: rgba(255, 255, 255, 0.015);
}

.film-facts { display: flex; flex-direction: column; gap: 15px; min-width: 190px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-k { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.fact-v { font-size: 0.88rem; font-weight: 300; }

.reactions { display: flex; gap: 10px; margin-top: 34px; }
.reactions button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--fg-2);
  transition: all 0.3s var(--ease);
}
.reactions button:hover { color: var(--fg); border-color: var(--line-hot); transform: translateY(-2px); }
.reactions button.active { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.reactions svg { width: 14px; height: 14px; }

.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 0.9vw, 12px);
}
@media (max-width: 720px) { .stills-grid { grid-template-columns: repeat(2, 1fr); } }

.still {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink-deep);
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.still img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.88);
  transition: transform 1s var(--ease);
}
.still:hover img { transform: scale(1.05); }

/* stills-only film page — frames at their native ratio, never cropped */
.frames { display: grid; gap: clamp(8px, 1.2vw, 16px); }
.frames-pair { display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
@media (max-width: 720px) { .frames-pair { grid-template-columns: 1fr; } }

.frame {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.frame img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.025); }
.frame-lead { border-radius: var(--radius); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.95); }

.film-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.78rem;
  color: var(--fg-3);
  font-weight: 300;
}
.film-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  flex-shrink: 0;
}

.film-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 34px 0 0;
  margin-top: clamp(60px, 8vw, 90px);
  border-top: 1px solid var(--line);
}
.film-foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--fg-2);
  font-weight: 300;
  transition: color 0.3s ease, transform 0.4s var(--ease);
}
.film-foot a:hover { color: var(--fg); }
.film-foot a.prev:hover { transform: translateX(-5px); }
.film-foot a.next:hover { transform: translateX(5px); }
.film-foot .k { display: block; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-4); margin-bottom: 3px; }

/* ── 13. PHOTOS ─────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--fg-3);
  transition: all 0.35s var(--ease);
}
.filter:hover { color: var(--fg-2); border-color: var(--line-mid); }
.filter.active { color: var(--ink); background: var(--fg); border-color: var(--fg); font-weight: 500; }

/* masonry-ish columns keep mixed aspect ratios honest */
.photo-grid { columns: 3; column-gap: clamp(10px, 1.4vw, 18px); }
@media (max-width: 1000px) { .photo-grid { columns: 2; } }
@media (max-width: 620px)  { .photo-grid { columns: 1; } }

.photo {
  position: relative;
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.4vw, 18px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-deep);
  cursor: zoom-in;
  transition: border-color 0.4s ease, transform 0.5s var(--ease), opacity 0.5s ease;
}
.photo:hover { border-color: var(--line-mid); transform: translateY(-3px); }
.photo img {
  width: 100%;
  filter: saturate(0.92) brightness(0.9);
  transition: transform 1.1s var(--ease);
}
.photo:hover img { transform: scale(1.04); }
.photo.is-hidden { display: none; }

.photo-cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(3, 4, 5, 0.9), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.photo:hover .photo-cap { opacity: 1; transform: none; }
.photo-cap b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.photo-cap span { font-size: 0.68rem; color: var(--fg-3); letter-spacing: 0.08em; }

.photo-soon {
  break-inside: avoid;
  margin-bottom: 16px;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line-mid);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--fg-4);
  text-align: center;
  padding: 30px;
}
.photo-soon span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; }
.photo-soon svg { width: 26px; height: 26px; opacity: 0.5; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 6, 0.90);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure {
  max-width: min(92vw, 1500px);
  max-height: 86vh;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease);
}
.lightbox.is-open figure { transform: none; }
.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--fg-3);
  font-weight: 300;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 99px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg-2);
  transition: all 0.3s var(--ease);
}
.lb-btn:hover { color: var(--fg); border-color: var(--line-hot); background: rgba(255, 255, 255, 0.11); }
.lb-btn svg { width: 17px; height: 17px; }
.lb-close { top: 26px; right: 26px; }
.lb-prev  { left: 26px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-close { top: 16px; right: 16px; }
}

/* ── 14. RECREATIONS ────────────────────────────────────── */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.reel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-card);
  transition: border-color 0.45s ease, transform 0.55s var(--ease);
}
.reel:hover { border-color: var(--line-mid); transform: translateY(-4px); }
.reel-video { position: relative; aspect-ratio: 9 / 16; background: #000; }
.reel.landscape .reel-video { aspect-ratio: 16 / 9; }
.reel.square .reel-video { aspect-ratio: 1; }
.reel-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-body { padding: 16px 18px 18px; }
.reel-body h3 { font-family: var(--serif); font-size: 1.14rem; }
.reel-body p { font-size: 0.72rem; color: var(--fg-3); margin-top: 4px; font-weight: 300; }

/* minimal custom video controls */
.vp-bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(3, 4, 5, 0.88), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.reel:hover .vp-bar, .vp-bar.is-shown { opacity: 1; }
.vp-play { display: grid; place-items: center; width: 26px; height: 26px; color: var(--fg); flex-shrink: 0; }
.vp-play svg { width: 15px; height: 15px; }
.vp-track { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); cursor: pointer; position: relative; }
.vp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); border-radius: 99px; }
.vp-time { font-size: 0.66rem; color: var(--fg-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* centre play button before first playback */
.vp-big {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: opacity 0.4s ease;
}
.vp-big.is-gone { opacity: 0; pointer-events: none; }
.vp-big i {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 99px;
  border: 1px solid var(--line-hot);
  background: rgba(8, 9, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease), background 0.35s ease;
}
.reel:hover .vp-big i { transform: scale(1.07); background: rgba(8, 9, 10, 0.7); }
.vp-big svg { width: 18px; height: 18px; color: var(--fg); }

/* ── 15. CONTACT ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.info-list { margin-top: 44px; border-top: 1px solid var(--line); }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.info-k { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); }
.info-v { font-size: 0.9rem; font-weight: 300; text-align: right; }

.form {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 38px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 9px;
}
.field .opt { text-transform: none; letter-spacing: 0.02em; color: var(--fg-4); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg);
  transition: border-color 0.3s ease, background 0.3s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-line);
  background: rgba(0, 0, 0, 0.45);
}
.field select { appearance: none; cursor: pointer; background-image: none; }
.field select option { background: var(--ink-card); color: var(--fg); }

.form-status { margin-top: 16px; font-size: 0.82rem; min-height: 1.2em; font-weight: 300; }
.form-status.ok  { color: var(--gold); }
.form-status.err { color: #e2725b; }

/* ── 16. FOOTER ─────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(52px, 7vw, 80px) 0 44px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-name { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; }
.foot-role { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-top: 12px; }

.foot-cols { display: flex; gap: clamp(34px, 6vw, 80px); flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col b {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 3px;
}
.foot-col a { font-size: 0.85rem; font-weight: 300; color: var(--fg-2); transition: color 0.3s ease, transform 0.3s var(--ease); }
.foot-col a:hover { color: var(--fg); transform: translateX(3px); }

.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(44px, 6vw, 70px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--fg-4);
  font-weight: 300;
}

/* ── 17. PRELOADER ──────────────────────────────────────── */
.preload {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preload.is-done { opacity: 0; visibility: hidden; }
.preload-mark {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  overflow: hidden;
}
.preload-bar {
  width: min(200px, 40vw);
  height: 1px;
  margin-top: 22px;
  background: var(--line-mid);
  overflow: hidden;
}
.preload-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: preloadFill 1.1s var(--ease) forwards;
}
@keyframes preloadFill { to { transform: scaleX(1); } }

/* ── UTILITIES ──────────────────────────────────────────── */
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: 18px; }
.mt-3  { margin-top: 28px; }
.mt-4  { margin-top: 40px; }
.mt-5  { margin-top: 58px; }
.mt-6  { margin-top: 76px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 18. RESUME ─────────────────────────────────────────── */
/* Mirrors the printed resume: small-caps section rules, a title row with a
   right-aligned date, indented bullets. Motion/paint stays on transform and
   opacity only — see the performance notes in README.md. */

.res-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding: clamp(130px, 16vw, 190px) 0 clamp(40px, 5vw, 64px);
}
@media (max-width: 860px) {
  .res-hero { grid-template-columns: 1fr; justify-items: start; gap: 38px; }
}

.res-name {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: 20px;
}
.res-role {
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* contact line — every item is a real link, as in the PDF */
.res-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--fg-2);
}
.res-contact > * { display: inline-flex; align-items: center; gap: 8px; }
.res-contact svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.55; }
.res-contact a { position: relative; color: var(--fg-2); transition: color 0.3s var(--ease-soft); }
.res-contact a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.res-contact a:hover { color: var(--fg); }
.res-contact a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── portrait ── */
.res-portrait {
  position: relative;
  width: clamp(190px, 26vw, 290px);
  aspect-ratio: 1;
  flex-shrink: 0;
}
.res-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  filter: saturate(0.96);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.95);
}
/* a slow focus-ring, like a lens barrel — transform only, so it is free */
.res-portrait::before,
.res-portrait::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.res-portrait::before {
  inset: -14px;
  border: 1px dashed rgba(201, 167, 76, 0.30);
  animation: ringSpin 44s linear infinite;
  will-change: transform;
}
.res-portrait::after {
  inset: -30px;
  border: 1px solid var(--line);
  background: radial-gradient(circle, transparent 62%, rgba(201, 167, 76, 0.045) 100%);
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .res-portrait::before { animation: none; } }

/* ── sections ── */
.res-sec { padding: clamp(30px, 4vw, 46px) 0; border-top: 1px solid var(--line); }
.res-sec:first-of-type { border-top: 0; }

.res-h {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.res-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* title + right-aligned date, the resume's core row */
.res-entry + .res-entry { margin-top: 30px; }
.res-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.res-title { font-size: 1.02rem; font-weight: 500; color: var(--fg); letter-spacing: -0.005em; }
.res-title .light { font-weight: 300; color: var(--fg-2); }
.res-title a { color: var(--gold); transition: opacity 0.25s ease; }
.res-title a:hover { opacity: 0.75; }
.res-when {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--fg-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.res-sub { font-size: 0.84rem; font-weight: 300; font-style: italic; color: var(--fg-3); margin-top: 5px; }

.res-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.res-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 78ch;
}
.res-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}

/* awards + skills share a two/four-column row shape */
.res-grid { display: flex; flex-direction: column; }
.res-award {
  display: grid;
  grid-template-columns: 62px minmax(130px, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 10px 20px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}
.res-award:first-child { border-top: 1px solid var(--line); }
.res-award:hover { background: rgba(255, 255, 255, 0.017); }
.res-award .y { font-size: 0.82rem; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.res-award .w { font-size: 0.88rem; font-weight: 500; color: var(--fg); }
.res-award .o { font-size: 0.86rem; font-weight: 300; color: var(--fg-2); }
.res-award .f { font-size: 0.84rem; font-weight: 300; color: var(--fg-3); text-align: right; font-style: italic; }
@media (max-width: 720px) {
  .res-award { grid-template-columns: 54px minmax(0, 1fr); }
  .res-award .o, .res-award .f { grid-column: 2; text-align: left; }
}

.res-skill {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.res-skill:first-child { border-top: 1px solid var(--line); }
.res-skill dt { font-size: 0.88rem; font-weight: 500; color: var(--fg); }
.res-skill dd { font-size: 0.88rem; font-weight: 300; color: var(--fg-2); line-height: 1.68; max-width: 76ch; }
@media (max-width: 640px) { .res-skill { grid-template-columns: 1fr; gap: 4px; } }

/* closing filmography bar */
.res-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 26px 0 0;
  border-top: 2px solid var(--line-mid);
}
.res-foot-k { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-3); }
.res-foot a.big {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.35s var(--ease);
}
.res-foot a.big:hover { gap: 16px; }
.res-foot a.big svg { width: 14px; height: 14px; }

/* ── PRINT: fall back to the paper version ── */
@media print {
  @page { margin: 14mm; }
  :root { --fg: #111; --fg-2: #333; --fg-3: #666; --line: #d4d4d4; --line-mid: #999; --gold: #9a2b1e; }
  html, body { background: #fff !important; color: #111; font-size: 10.5pt; }
  body::before, .grain, .vignette, .nav, .nav-sheet, .foot, .res-noprint, .skip-link { display: none !important; }
  .res-portrait::before, .res-portrait::after { display: none; }
  .res-hero { padding: 0 0 12px; gap: 24px; }
  .res-name { font-size: 26pt; }
  .res-role { color: #9a2b1e; }
  .res-sec { padding: 12px 0; break-inside: avoid; }
  .res-entry, .res-award, .res-skill { break-inside: avoid; }
  .wrap { max-width: none; padding: 0; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  a { color: #9a2b1e; }
  .res-portrait { width: 120px; }
}

/* ── 19. FESTIVAL LAURELS ───────────────────────────────── */
/* Used on a film page that has a festival record. One branch is drawn; the
   other is the same markup mirrored, so the pair always matches. */
.laurels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.laurel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(201, 167, 76, 0.055), rgba(255, 255, 255, 0.008));
  color: var(--gold);
  transition: border-color 0.45s ease, transform 0.5s var(--ease);
}
.laurel:hover { border-color: var(--gold-line); transform: translateY(-3px); }

.lr-branch { width: 30px; height: 47px; flex-shrink: 0; }
.lr-branch.flip { transform: scaleX(-1); }

.laurel-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  text-align: center;
}
.laurel-text b {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.3;
}
.laurel-text > span { font-size: 0.86rem; font-weight: 300; color: var(--fg); line-height: 1.35; }
.laurel-text i {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
