/* Sam Schild Film */

:root {
  --bg: #0b0a08;
  --bg-2: #13110e;
  --ink: #ece6da;
  --ink-2: #c9c1b3;
  --muted: #8f8779;
  --sage: #a3bd9c;
  --sage-deep: #7f9a78;
  --amber: #e2b878;
  --line: rgba(236, 230, 218, 0.14);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--sage); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* film grain */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 60; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 10, 8, 0.7), rgba(11, 10, 8, 0));
  transition: opacity 0.5s;
}
.site-header.scrolled { background: rgba(11, 10, 8, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.scrolled::before { opacity: 0; }
.brand {
  font-family: var(--display); font-size: 25px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--sage); text-decoration: none; white-space: nowrap; margin-right: auto;
}
.site-nav ul { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: inline-block; padding: 6px 0; text-decoration: none;
  font-size: 12.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
  transition: color 0.3s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sage);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

/* header entrance (first page of a visit) */
.intro .site-header .brand, .intro .site-header .site-nav li, .intro .site-header .menu-toggle {
  opacity: 0; transform: translateY(-14px);
  animation: drop 0.9s var(--ease) forwards;
}
.intro .site-header .brand { animation-delay: 0.7s; }
.intro .site-header .menu-toggle { animation-delay: 0.9s; }
.intro .site-header .site-nav li:nth-child(1) { animation-delay: 0.85s; }
.intro .site-header .site-nav li:nth-child(2) { animation-delay: 0.93s; }
.intro .site-header .site-nav li:nth-child(3) { animation-delay: 1.01s; }
.intro .site-header .site-nav li:nth-child(4) { animation-delay: 1.09s; }
.intro .site-header .site-nav li:nth-child(5) { animation-delay: 1.17s; }
@keyframes drop { to { opacity: 1; transform: none; } }

/* ---------- shared ---------- */
.page-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-inner.narrow { max-width: 1040px; }
.center { text-align: center; }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--sage);
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; margin: 0; letter-spacing: 0.01em; }
em { font-style: italic; color: var(--ink-2); }
.page-title { margin-bottom: clamp(40px, 7vw, 88px); }
.page-title h1 { font-size: clamp(44px, 7.4vw, 104px); }
.big { font-size: clamp(80px, 16vw, 200px); }
.page-top { padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(64px, 10vw, 140px); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 1px solid rgba(236, 230, 218, 0.5);
  border-radius: 999px; background: rgba(11, 10, 8, 0.25); color: var(--ink); text-decoration: none; cursor: pointer;
  font: 400 12.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
}
.link-arrow::after { content: "→"; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover::after { transform: translateX(6px); }

.still-caption { margin: 36px 0 0; text-align: center; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- heroes ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: settle 2.6s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease; }
.hero.video-on .hero-video { opacity: 1; }
.hero-video-wait .hero-media { background: #000; }
.hero-video-wait .hero-video + img { opacity: 0; }
.hero-video-wait .hero-caption { visibility: hidden; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(11, 10, 8, 0) 0%, rgba(11, 10, 8, 0.45) 75%),
    linear-gradient(0deg, rgba(11, 10, 8, 0.85) 0%, rgba(11, 10, 8, 0) 45%);
}
.hero-copy { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 11vh, 120px); }

.hero-home .headline {
  font-size: clamp(28px, 9.6vw, 126px); font-weight: 500; letter-spacing: 0.06em; color: var(--sage);
  line-height: 0.9; margin-left: -0.04em; white-space: nowrap; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero-home .headline span { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(8px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
.hero-home .headline .accent { color: #f0e3c4; }
.hero-home .tagline {
  margin: 18px 0 0; font-family: var(--display); font-size: clamp(20px, 2.6vw, 34px); letter-spacing: 0.14em; text-transform: uppercase; color: #f0e3c4;
  opacity: 0; transform: translateY(16px); animation: rise 1s var(--ease) 1.05s forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 38px; opacity: 0; animation: rise 1s var(--ease) 1.45s forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 22px; margin: 0; max-width: 60vw; text-align: right;
  font-size: 12px; letter-spacing: 0.04em; color: rgba(236, 230, 218, 0.6);
  opacity: 0; animation: rise 1s var(--ease) 1.8s forwards;
}
.letterbox { position: absolute; left: 0; right: 0; height: 13vh; background: var(--bg); z-index: 0; animation: open 1.6s var(--ease) 0.1s forwards; }
.letterbox.top { top: 0; transform-origin: top; }
.letterbox.bottom { bottom: 0; transform-origin: bottom; }
@keyframes open { to { transform: scaleY(0); } }

/* a cover shown whole (letterboxed) instead of cropped */
.cover-contain .hero-media { background: #000; }
.cover-contain .hero-media img { object-fit: contain; }
.sel-card.cover-contain .sel-media { background: #000; }
.sel-card.cover-contain .sel-media img { object-fit: contain; transform: none; }
.sel-card.cover-contain:hover .sel-media img { transform: scale(1.03); }

/* ---------- home: selected work ---------- */
.selected { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section-head .eyebrow { margin: 0; }
.sel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.sel-card { text-decoration: none; }
.sel-media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.sel-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(0.85); transition: transform 1.2s var(--ease), filter 0.8s; }
.sel-card:hover .sel-media img { transform: scale(1.08); filter: saturate(1.05); }
.sel-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 16px; }
.sel-title { font-family: var(--display); font-size: 26px; font-weight: 500; }
.sel-year, .sel-role { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- backdrop pages (reel, about) ---------- */
.backdrop-page { position: relative; min-height: 100vh; padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(64px, 9vw, 120px); isolation: isolate; }
.backdrop { position: fixed; inset: 0; z-index: -2; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.1); transform: scale(1.15); }
.backdrop-shade { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 10, 8, 0.55), rgba(11, 10, 8, 0.82)); }
/* About: a lighter veil so more of the background still shows */
.about .backdrop-shade { background: linear-gradient(180deg, rgba(11, 10, 8, 0.35), rgba(11, 10, 8, 0.65)); }

/* ---------- video ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.5s, transform 1.2s var(--ease); }
.video-facade:hover img { opacity: 0.95; transform: scale(1.03); }
.video-facade:focus-visible { outline: 2px solid var(--sage); outline-offset: -4px; }
.play-big {
  position: relative; width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgba(236, 230, 218, 0.7);
  background: rgba(11, 10, 8, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.play-big::after { content: ""; position: absolute; left: 36px; top: 30px; border-left: 20px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-facade:hover .play-big { transform: scale(1.08); background: rgba(163, 189, 156, 0.35); }
.facade-label { position: absolute; left: 24px; bottom: 20px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- work list ---------- */
.work-list { display: grid; gap: clamp(72px, 10vw, 140px); }
.work-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.work-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.work-row:nth-child(even) > :first-child { order: 2; }
.work-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.8s; filter: saturate(0.9); }
.work-thumb:hover img { transform: scale(1.05); filter: saturate(1.05); }
.work-num { display: block; font-size: 12px; letter-spacing: 0.3em; color: var(--sage); margin-bottom: 14px; }
.work-title { font-size: clamp(34px, 4.4vw, 60px); }
.work-year { font-size: 0.5em; color: var(--muted); font-style: italic; letter-spacing: 0.04em; }
.work-role { margin: 16px 0 4px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.work-kind { margin: 0 0 26px; color: var(--muted); }

/* ---------- project ---------- */
.hero-project { min-height: 88vh; }
.back-link { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 28px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.back-link::before { content: "←"; transition: transform 0.35s var(--ease); }
.back-link:hover::before { transform: translateX(-6px); }
.project-title { font-size: clamp(60px, 11vw, 170px); color: var(--ink); opacity: 0; transform: translateY(24px); animation: rise 1.2s var(--ease) 0.2s forwards; }
.project-title.long { font-size: clamp(44px, 6.4vw, 104px); }
.project-heading { margin: 16px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--ink-2); opacity: 0; animation: rise 1s var(--ease) 0.6s forwards; }
.project-body { padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }
.project-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 48px; margin-bottom: clamp(48px, 7vw, 96px); }
.credits { list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 36px); line-height: 1.3; }
.credits li::before { content: "— "; color: var(--sage); }
.accolades { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; }
.laurel { width: clamp(150px, 16vw, 210px); filter: invert(1) sepia(0.25) brightness(0.95); opacity: 0.9; }
.poster { display: block; width: clamp(130px, 14vw, 190px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); transition: transform 0.6s var(--ease); }
.poster:hover { transform: translateY(-4px) rotate(-1deg); }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.project-nav a { padding: 30px 0; text-decoration: none; font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); transition: color 0.3s; }
.project-nav a:last-child { text-align: right; }
.project-nav a span { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.project-nav a:hover { color: var(--sage); }

/* ---------- project stat + Instagram feature ---------- */
.stat { display: grid; gap: 6px; text-align: right; }
.stat-num { font-family: var(--display); font-size: clamp(56px, 7vw, 96px); font-weight: 500; line-height: 0.9; color: var(--sage); }
.stat-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.ig-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(48px, 7vw, 96px); }
.ig-copy h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 24px; }
/* Reels in phone graphics. Instagram's player has a 54px profile bar, then a 4:5 box with the 9:16 video
   centered in it: the iframe is sized so that video lands 2px past every edge of the screen. */
.phone { --s: clamp(220px, 21vw, 268px); display: grid; justify-items: center; gap: 16px; justify-self: end; }
.phone-body { padding: 9px; border-radius: 36px; background: #0e0d0b; border: 1px solid #3a352d;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
.phone-screen { position: relative; width: var(--s); height: calc(var(--s) * 16 / 9); overflow: hidden; border-radius: 27px; background: #000; }
.phone-screen iframe { position: absolute; border: 0; width: calc((var(--s) + 4px) * 1.4222); height: calc(54px + (var(--s) + 4px) * 1.7778 + 60px);
  left: calc(-2px - (var(--s) + 4px) * 0.2111); top: calc(-54px - 3.6px); z-index: 0; }
.phone-island { position: absolute; z-index: 1; top: 9px; left: 50%; width: 32%; height: 17px; transform: translateX(-50%); border-radius: 999px; background: #0e0d0b; pointer-events: none; }
.phone-link { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); transition: color 0.2s; }
.phone-link:hover { color: var(--ink); }
.ig-more { margin-bottom: clamp(48px, 7vw, 96px); }
.interviews { margin-bottom: clamp(48px, 7vw, 96px); }
.swipe-hint { display: none; }
.ig-grid { display: flex; justify-content: center; align-items: flex-start; gap: clamp(28px, 5vw, 80px); }
.ig-grid .phone { --s: clamp(200px, 18vw, 236px); }
.ig-grid .phone:nth-child(2) { margin-top: 64px; }
@media (max-width: 900px) {
  .ig-feature { grid-template-columns: 1fr; }
  .ig-embed { justify-self: center; }
  .stat { text-align: left; }
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.8vw, 24px); }
.g-item { display: block; overflow: hidden; background: var(--bg-2); cursor: zoom-in; aspect-ratio: 16 / 9; }
.g-item.wide { grid-column: 1 / -1; aspect-ratio: 2.1 / 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g-item:hover img { transform: scale(1.04); }

/* ---------- carousel ---------- */
.car-track { position: relative; display: flex; gap: clamp(12px, 1.8vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 88%; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); cursor: zoom-in; scroll-snap-align: start; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.car-slide:hover img { transform: scale(1.03); }
.car-controls { display: inline-flex; flex-shrink: 0; align-items: center; gap: 16px; }
.car-controls button { all: unset; cursor: pointer; padding: 2px 6px; font-size: 24px; font-weight: 200; line-height: 1; color: var(--ink-2); transition: color 0.2s, opacity 0.2s; }
.car-controls button:hover { color: var(--ink); }
.car-controls button:focus-visible { outline: 2px solid var(--sage); }
.car-controls button:disabled { opacity: 0.25; cursor: default; }
.car-count { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(6, 5, 4, 0.96); opacity: 0; transition: opacity 0.35s; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { grid-column: 2; margin: 0; display: grid; place-items: center; align-content: center; height: 100vh; padding: 64px 0; min-width: 0; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox figcaption { margin-top: 14px; font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.lightbox button { all: unset; cursor: pointer; display: grid; place-items: center; height: 64px; font-size: 40px; font-weight: 200; color: var(--ink-2); transition: color 0.2s; }
.lightbox button:hover { color: var(--ink); }
.lightbox button:focus-visible { outline: 2px solid var(--sage); }
.lightbox .lb-close { position: absolute; top: 12px; right: 18px; width: 48px; z-index: 1; }
.lightbox button[hidden] { display: grid; visibility: hidden; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); }
.portrait figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.about-copy h1 { font-size: clamp(64px, 10vw, 140px); color: var(--sage); margin-bottom: 28px; }
.about-copy > p:not(.eyebrow) { max-width: 36em; font-size: 18.5px; color: var(--ink-2); }
.contact { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 22px; max-width: 560px; }
.contact h2 { font-size: 36px; }
.contact label { display: grid; gap: 6px; }
.contact label span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact input, .contact textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(236, 230, 218, 0.3); border-radius: 0;
  background: transparent; color: var(--ink); font: 300 17px/1.5 var(--sans); transition: border-color 0.3s;
}
.contact textarea { resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--sage); }
.contact [aria-invalid="true"] { border-color: #d98c7a; }
.contact .btn { justify-self: start; }
.form-fields { display: grid; gap: 22px; }
.contact .req { color: var(--sage); }
.contact .help { color: var(--muted); font-size: 13px; }
.field-error { margin: 2px 0 0; min-height: 1.2em; font-size: 13px; color: #e0a090; }
.form-note { margin: 0; min-height: 1.6em; font-size: 14px; color: #e0a090; }
.form-closed { color: var(--ink-2); }
.skeleton { height: 54px; border-bottom: 1px solid rgba(236, 230, 218, 0.15); background: linear-gradient(90deg, rgba(236,230,218,0.03), rgba(236,230,218,0.08), rgba(236,230,218,0.03)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton.tall { height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.contact button[disabled] { opacity: 0.55; cursor: progress; }
.form-success { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 560px; outline: none; }
.form-success h2 { font-size: 36px; color: var(--sage); margin-bottom: 12px; }
.form-success p { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px var(--gutter) 28px; background: var(--bg); position: relative; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner p { margin: 0; flex: 1; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.footer-inner .brand { margin-right: 0; font-size: 22px; }
.ig { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; letter-spacing: 0.1em; color: var(--ink-2); }
.ig svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ig:hover { color: var(--sage); }
.copyright { max-width: var(--max); margin: 26px auto 0; font-size: 12px; color: var(--muted); opacity: 0.7; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sel-grid { grid-template-columns: 1fr 1fr; }
  .work-row, .work-row:nth-child(even) { grid-template-columns: 1fr; }
  .work-row:nth-child(even) > :first-child { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 520px; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand { font-size: 22px; }
  .menu-toggle {
    all: unset; display: grid; gap: 7px; width: 32px; height: 32px; place-content: center; cursor: pointer; z-index: 2;
  }
  .menu-toggle .bar { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease); }
  .menu-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(11, 10, 8, 0.97);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .site-nav a { font-family: var(--display); font-size: 38px; letter-spacing: 0.04em; text-transform: none; color: var(--ink); }
  .intro .site-header .site-nav li { opacity: 1; transform: none; animation: none; }
  .site-nav.open li { animation: rise 0.7s var(--ease) both; }
  .site-nav.open li:nth-child(2) { animation-delay: 0.05s; } .site-nav.open li:nth-child(3) { animation-delay: 0.1s; }
  .site-nav.open li:nth-child(4) { animation-delay: 0.15s; } .site-nav.open li:nth-child(5) { animation-delay: 0.2s; }
  body.menu-open { overflow: hidden; }
  .hero-caption { left: var(--gutter); right: var(--gutter); max-width: none; text-align: left; }
  .hero-home .hero-media img { object-position: 72% 50%; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .letterbox { height: 8vh; }
}
@media (max-width: 560px) {
  .sel-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-item.wide { aspect-ratio: 16 / 9; }
  .project-nav a { font-size: 22px; }
  .hero-home .hero-copy { padding-bottom: 92px; }
}

/* ---------- phone readability pass (phones/tablets only; desktop untouched) ---------- */
@media (max-width: 820px) {
  /* Bug fix: a backdrop-filter on the header makes it the containing block for the fixed
     menu overlay, so after scrolling the full-screen menu was trapped inside the 64px bar.
     The blur moves to a pseudo-element so the overlay can cover the screen again. */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.scrolled::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  /* Bug fix: on short screens (phone turned sideways) hero text slid under the fixed header,
     hiding the "Back to Projects" link. Reserve the header's height inside every hero. */
  .hero { padding-top: var(--header-h); }
  /* More reels: one swipeable row instead of a tall stack */
  .ig-grid {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter);
  }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-grid { justify-content: flex-start; padding-bottom: 28px; }
  .ig-grid .phone { flex: 0 0 auto; --s: min(56vw, 230px); scroll-snap-align: start; }
  .ig-grid .phone:nth-child(2) { margin-top: 0; }
  .swipe-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
  .swipe-hint::after { content: "→"; }
  .car-controls { gap: 10px; }
  /* footer: stack instead of squeezing the tagline beside the logo */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-inner p { flex: none; line-height: 1.6; }
  /* About: the photo sits behind all the text on a phone, so keep the veil darker here */
  .about .backdrop-shade { background: linear-gradient(180deg, rgba(11, 10, 8, 0.55), rgba(11, 10, 8, 0.8)); }
  .contact label span { color: var(--ink-2); }
  .contact input, .contact textarea { border-bottom-color: rgba(236, 230, 218, 0.45); }
  .portrait figcaption { color: var(--ink-2); }
  /* Previous / Next: long titles stay compact */
  .project-nav { gap: 16px; }
  .project-nav a { font-size: 22px; line-height: 1.2; padding: 24px 0; }
}
@media (max-width: 560px) {
  /* tighter tracking on small caps so labels don't break into extra lines */
  .eyebrow { letter-spacing: 0.2em; }
  .work-role, .sel-role, .stat-label { letter-spacing: 0.12em; }
  /* home: two cards per row instead of one full-screen card each */
  .sel-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .sel-meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; }
  .sel-title { font-size: 21px; line-height: 1.15; }
  .sel-role { display: block; margin-top: 4px; line-height: 1.5; }
  /* reel: the page title already names the reel; the in-video label just crowds the play button */
  .facade-label { display: none; }
  .play-big { width: 72px; height: 72px; }
  .play-big::after { left: 29px; top: 24px; border-left-width: 17px; border-top-width: 12px; border-bottom-width: 12px; }
  /* section heads: keep label and link on one line */
  .section-head .link-arrow { font-size: 11.5px; letter-spacing: 0.14em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
