/* ============================================================
   SEAN YOUNG — Official Site
   Cinematic monograph: near-black ground, ivory type,
   single amber accent. Fraunces display / Instrument Sans body.
   ============================================================ */

:root {
  --ink: #0e0d0b;            /* page ground */
  --ink-2: #15130f;          /* raised panels */
  --ink-3: #1e1b15;          /* borders-as-surface */
  --line: rgba(232, 224, 208, 0.14);
  --line-soft: rgba(232, 224, 208, 0.07);
  --ivory: #ece5d6;          /* primary text */
  --ivory-dim: #a89f8c;      /* secondary text */
  --ivory-faint: #6e675a;    /* tertiary / meta */
  --amber: #d9973f;          /* accent */
  --amber-bright: #f0b45e;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film-grain atmosphere over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--ink); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.display {
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  font-variation-settings: "opsz" 100;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--ivory-dim);
  font-variation-settings: "opsz" 30;
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: linear-gradient(to bottom, rgba(14, 13, 11, 0.92), rgba(14, 13, 11, 0.75) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  padding: 0 var(--pad) clamp(3rem, 8vh, 6rem);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* per-slide framing set via --pos/--pos-m inline on each <img>,
     so it survives the randomized slide order */
  object-position: var(--pos, center 42%);
  filter: contrast(1.06) brightness(0.92) saturate(0.92);
  opacity: 0;
  transform: scale(1.005);
  transition: opacity 1.8s ease-in-out, transform 9s linear;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.06);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(14, 13, 11, 0.55) 45%, rgba(14, 13, 11, 0.25)),
    linear-gradient(to right, rgba(14, 13, 11, 0.82) 0%, rgba(14, 13, 11, 0.45) 38%, transparent 62%),
    radial-gradient(120% 90% at 80% 10%, transparent 40%, rgba(14, 13, 11, 0.5));
}

/* slide caption + dots */
.hero-nav {
  position: absolute;
  right: var(--pad);
  bottom: clamp(3rem, 8vh, 6rem);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  opacity: 0;
  animation: fade 1.2s ease 1.1s forwards;
}
.hero-caption {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  transition: opacity 0.5s ease;
}
.hero-dots { display: flex; gap: 0.55rem; }
.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 1px solid var(--ivory-faint);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.hero-dot:hover { border-color: var(--amber); }
.hero-dot[aria-current="true"] {
  background: var(--amber);
  border-color: var(--amber);
  transform: scale(1.15);
}

/* kicker sits below the headline */
.hero .kicker {
  margin-top: 1.5rem;
  opacity: 0;
  animation: fade 1.2s ease 0.45s forwards;
}

.hero h1 { max-width: 12ch; }
/* padding + matching negative margin extends the clip box below the
   baseline so descenders survive the overflow used by the rise animation */
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.24em;
  margin-bottom: -0.24em;
}
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(135%);
  animation: rise 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  opacity: 0;
  animation: fade 1.2s ease 0.5s forwards;
}

.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  opacity: 0;
  animation: fade 1.2s ease 0.8s forwards;
}
.hero-meta span::before {
  content: "— ";
  color: var(--amber);
}

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- subpages ---------- */

.page-first {
  padding-top: clamp(7.5rem, 16vh, 11rem);
  border-top: 0;
}
.page-title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  margin-bottom: clamp(1.8rem, 4vh, 3rem);
}
.section-cta { margin-top: clamp(2.5rem, 6vh, 4rem); }

/* ---------- generic section chrome ---------- */

.section {
  padding: clamp(4.5rem, 12vh, 8.5rem) var(--pad);
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-head .kicker { flex-shrink: 0; }
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
  transform: translateY(-0.35em);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-copy p {
  max-width: var(--measure);
  color: var(--ivory-dim);
  margin-bottom: 1.4rem;
}
.about-copy p:first-of-type {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  font-variation-settings: "opsz" 40;
}
.about-copy p:first-of-type::first-letter {
  color: var(--amber);
  font-size: 1.6em;
  line-height: 1;
}

.about-figure {
  position: sticky;
  top: 6rem;
}
.about-figure img {
  width: 100%;
  filter: grayscale(0.25) contrast(1.02);
  border: 1px solid var(--line);
}
.about-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ivory-faint);
}

/* ---------- highlight reel (featured films) ---------- */

.reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.reel-card {
  /* how far the card content slides up on hover = note area height */
  --note-reveal: 5.9rem;
  display: block;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.35s ease;
}
.reel-card:hover { background: var(--ink-2); }
.reel-card:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: -1px;
}

/* letterboxed still — the image keeps its own box, text sits below it */
.reel-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.reel-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.05) brightness(0.82);
  transform: scale(1.02);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.reel-card:hover .reel-media img {
  filter: grayscale(0) contrast(1.05) brightness(0.94);
  transform: scale(1.05);
}

/* portrait sources (posters) — letterbox: show the whole image over an
   ambient blurred copy of itself. Set --img inline on .reel-media. */
.reel-media--contain { position: relative; }
.reel-media--contain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center 25%;
  filter: blur(16px) brightness(0.4) saturate(0.8);
  transform: scale(1.2); /* keep blurred edge fringing out of view */
}
.reel-media--contain img {
  position: relative;
  object-fit: contain;
}

.reel-body {
  padding: 1.15rem 1.25rem 1.35rem;
  background: inherit; /* opaque, so it covers the image as it rides up */
}

/* the note waits just below the card's clipped edge… */
.reel-note {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: var(--note-reveal);
  padding: 0 1.25rem;
  background: inherit;
}
.reel-body,
.reel-note {
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
/* …hovering slides the text panel up OVER the still (the image stays put) */
.reel-card:hover .reel-body,
.reel-card:hover .reel-note,
.reel-card:focus-visible .reel-body,
.reel-card:focus-visible .reel-note {
  transform: translateY(calc(-1 * var(--note-reveal)));
}

/* touch devices have no hover — keep the note permanently visible */
@media (hover: none) {
  .reel-note {
    position: static;
    height: auto;
    padding: 0 1.25rem 1.3rem;
    margin-top: -0.5rem;
  }
  .reel-card:hover .reel-body,
  .reel-card:hover .reel-note { transform: none; }
}

.reel-year {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.reel-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  font-variation-settings: "opsz" 80;
  transition: color 0.3s ease;
}

.reel-role {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-top: 0.5rem;
}

.reel-note {
  font-size: 0.85rem;
  color: var(--ivory-dim);
  max-width: 40ch;
}

.reel-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.reel-card:hover::before { transform: scaleY(1); }
.reel-card:hover .reel-title { color: var(--amber-bright); }

/* ---------- filmography table ---------- */

.filmo-intro {
  max-width: 58ch;
  color: var(--ivory-dim);
  margin-bottom: 3rem;
}

.filmo-decade {
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.decade-label {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ivory-faint);
  margin-bottom: 1.6rem;
  user-select: none;
}

.filmo-list { list-style: none; }

.filmo-item { border-bottom: 1px solid var(--line-soft); }

.filmo-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr) 1.25rem;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  width: 100%;
  padding: 0.85rem 0.5rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.filmo-row:hover {
  background: var(--ink-2);
  padding-left: 1rem;
}
.filmo-row:focus-visible,
.tv-item:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: -1px;
}

/* chevron */
.f-caret {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 0.6rem;
  height: 0.6rem;
}
.f-caret::before,
.f-caret::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ivory-faint);
  transition: transform 0.3s ease, background 0.3s ease;
}
.f-caret::after { transform: rotate(90deg); }
.filmo-row:hover .f-caret::before,
.filmo-row:hover .f-caret::after,
.tv-item:hover .f-caret::before,
.tv-item:hover .f-caret::after { background: var(--amber); }
[aria-expanded="true"] .f-caret::after { transform: rotate(0deg); }
[aria-expanded="true"] .f-caret::before,
[aria-expanded="true"] .f-caret::after { background: var(--amber); }

/* expanding panel */
.detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  background: var(--ink-2);
}
.detail > .detail-inner { overflow: hidden; }
.detail.open { grid-template-rows: 1fr; }

.detail-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.4rem 1rem 1.6rem;
}
.detail-poster {
  flex: 0 0 auto;
  width: 8.5rem;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
a.detail-poster-link:hover .detail-poster { border-color: var(--amber); }
.detail-still {
  flex: 0 0 auto;
  width: min(21rem, 42%);
  border: 1px solid var(--line);
}
.detail-copy { flex: 1; min-width: 0; }
.detail-org {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.detail-copy p {
  color: var(--ivory-dim);
  font-size: 0.92rem;
  max-width: 58ch;
}
.detail-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: border-color 0.25s ease;
}
.detail-link:hover { border-bottom-color: var(--amber); }

.f-year {
  font-family: var(--serif);
  color: var(--amber);
  font-size: 0.95rem;
}
.f-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-variation-settings: "opsz" 50;
}
.f-role { color: var(--ivory-dim); font-size: 0.9rem; }
.f-note { color: var(--ivory-faint); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---------- posters ---------- */

.poster-intro {
  max-width: 58ch;
  color: var(--ivory-dim);
  margin-bottom: 3rem;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.poster {
  display: block;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: contrast(1.02);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.poster:hover { transform: translateY(-6px); }
.poster:hover img {
  border-color: var(--amber);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--amber);
}
.poster figcaption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.poster .p-title {
  display: block;
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--ivory);
}
.poster .p-year {
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.poster:hover .p-title { color: var(--amber-bright); }

/* ---------- pull quote ---------- */

.pull-quote {
  margin: 2.2rem 0 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--amber);
  max-width: var(--measure);
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ivory-dim);
  font-variation-settings: "opsz" 30;
}
.pull-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ---------- television ---------- */

.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.tv-cell { background: var(--ink); }

.tv-item {
  display: block;
  position: relative;
  width: 100%;
  padding: 1.3rem 2.5rem 1.3rem 1.5rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}
.tv-item:hover { background: var(--ink-2); }
.tv-item .f-year { display: block; margin-bottom: 0.3rem; }
.tv-item .f-title { font-size: 1.05rem; }
.tv-item .f-role { display: block; margin-top: 0.25rem; }
.tv-item .f-caret {
  position: absolute;
  top: 1.55rem;
  right: 1.3rem;
}

.tv-cell .detail-body {
  flex-direction: column;
  padding: 0 1.5rem 1.5rem;
}
.tv-cell .detail-poster { width: 7rem; }

/* ---------- projects / beyond ---------- */

.projects {
  display: grid;
  gap: clamp(2rem, 5vh, 3.5rem);
  max-width: 52rem;
}

.project {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.4rem;
  align-items: start;
}
.project-index {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
  line-height: 1.2;
}
.project h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
  font-variation-settings: "opsz" 60;
}
.project p { color: var(--ivory-dim); max-width: var(--measure); }

/* ---------- gallery ---------- */

.gallery {
  columns: 3;
  column-gap: clamp(0.75rem, 2vw, 1.4rem);
}
.gallery figure {
  break-inside: avoid;
  margin-bottom: clamp(0.75rem, 2vw, 1.4rem);
  cursor: zoom-in;
  position: relative;
}
.gallery img {
  width: 100%;
  border: 1px solid var(--line);
  filter: grayscale(0.25) contrast(1.02);
  transition: filter 0.4s ease, border-color 0.3s ease;
}
.gallery figure:hover img,
.gallery figure:focus-visible img {
  filter: grayscale(0) contrast(1.04);
  border-color: var(--amber);
}
.gallery figure:focus-visible { outline: none; }
.gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ivory-faint);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 5, 4, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; animation: fade 0.25s ease forwards; }
.lightbox figure { max-width: min(100%, 1200px); text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.lightbox figcaption {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ivory-dim);
}
.lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ivory);
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.lightbox-close:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- contact / footer ---------- */

.contact {
  text-align: center;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.contact .section-title { margin: 0.8rem 0 1.4rem; }
.contact p { color: var(--ivory-dim); max-width: 44ch; margin: 0 auto 2.2rem; }

.button {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  padding: 0.95rem 2.4rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.button:hover { background: var(--amber-bright); transform: translateY(-2px); }

/* ---------- agent contact card (click-to-reveal) ---------- */

.agent-card {
  max-width: 24rem;
  margin: 0 auto 2.4rem;
  padding: 1.7rem 1.8rem 1.9rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.contact .agent-card p { margin: 0; max-width: none; }
.agent-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.agent-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ivory) !important;
  margin-top: 0.4rem !important;
  font-variation-settings: "opsz" 60;
}
.agent-reveal,
.email-reveal {
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: none;
  border: 1px solid var(--line);
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.agent-reveal:hover,
.email-reveal:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
  background: rgba(217, 151, 63, 0.08);
}
.agent-reveal:focus-visible,
.email-reveal:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }
.agent-phone,
.contact-value {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.agent-phone:hover,
.contact-value:hover { border-bottom-color: var(--amber); }
.contact-noscript {
  max-width: 34ch;
  margin: 0 auto 2rem !important;
  font-size: 0.85rem;
  color: var(--ivory-faint) !important;
}

/* ---------- social links ---------- */

.social { margin-top: clamp(2.6rem, 6vh, 4rem); }
.social-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-faint) !important;
  margin: 0 auto 1.1rem !important;
}
.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-soft);
  color: var(--ivory-dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.social-link svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.social-link:hover {
  color: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
}
.social-link:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }

@media (max-width: 30rem) {
  .social-links { gap: 0.5rem; flex-direction: column; align-items: stretch; }
  .social-link { justify-content: center; }
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem var(--pad) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ivory-faint);
}
.site-footer a { color: var(--ivory-dim); }
.site-footer a:hover { color: var(--amber); }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .line > span { animation: none; transform: none; }
  .hero-sub, .hero-meta, .hero-nav, .hero .kicker { animation: none; opacity: 1; }
  .hero-slide { transition: opacity 0.4s ease; transform: none; }
  .hero-slide.is-active { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 60rem) {
  .reel { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: min(26rem, 100%); }
}

/* below large-desktop widths a long slide caption would collide with the
   hero meta line — hide the caption and tuck the dots below the meta */
@media (max-width: 84rem) {
  .hero-caption { display: none; }
  .hero-nav { bottom: 1.75rem; }
}

/* tablet landscape and small laptops: tighten the inline nav so the
   eight links + wordmark always fit on one line (no wrapping) */
@media (min-width: 60rem) and (max-width: 82rem) {
  .site-nav { gap: 0.7rem; }
  .site-nav a { font-size: 0.66rem; letter-spacing: 0.08em; }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.1em; }
}

/* below 60rem (tablet portrait & phones): collapse nav into the Menu button */
@media (max-width: 60rem) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
  }
  .site-nav {
    position: fixed;
    top: 3.6rem;
    right: var(--pad);
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border: 1px solid var(--line);
    padding: 0.5rem 0;
    min-width: 12rem;
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 0.75rem 1.25rem; }
  .site-nav a::after { display: none; }
}

@media (max-width: 44rem) {
  .reel { grid-template-columns: 1fr; }
  .wordmark { font-size: 0.92rem; letter-spacing: 0.1em; }

  /* narrow viewports crop hard horizontally — re-centre on the subject */
  .hero-slide { object-position: var(--pos-m, var(--pos, 60% center)); }

  .filmo-row {
    grid-template-columns: 3.5rem 1fr 1rem;
    gap: 0.35rem 1rem;
  }
  .filmo-row .f-title { grid-column: 2; }
  .filmo-row .f-role { grid-column: 2; }
  .filmo-row .f-note { grid-column: 2; }
  .filmo-row .f-caret { grid-column: 3; grid-row: 1; }

  .detail-body { flex-direction: column; padding: 1.2rem 0.75rem 1.4rem; }
  .detail-poster { width: 7rem; }

  .gallery { columns: 2; }
  .detail-still { width: 100%; }
}

@media (max-width: 30rem) {
  .gallery { columns: 1; }
}

/* ---------- for fans scrapbook ---------- */

/* cards are distributed into .fanboard-col wrappers by site.js (round-robin,
   so chronology reads ACROSS the board as you scroll); without JS the cards
   simply stack in one column */
.fanboard { padding-top: 0.8rem; /* room for tape strips on the first row */ }
.fanboard.is-columns {
  display: flex;
  gap: clamp(1.4rem, 2.8vw, 2.2rem);
  align-items: flex-start;
}
.fanboard-col { flex: 1; min-width: 0; }
.fanboard > .reveal,
.fanboard-col > .reveal { margin-bottom: clamp(1.6rem, 3vh, 2.4rem); }
/* stagger the fade-in a little per column */
.fanboard-col:nth-child(2) > .reveal { transition-delay: 0.1s; }
.fanboard-col:nth-child(3) > .reveal { transition-delay: 0.18s; }

.fan-note {
  --tilt: 0deg;
  position: relative;
  transform: rotate(var(--tilt));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.fanboard > .reveal:hover .fan-note {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
/* tape strip */
.fan-note::before {
  content: "";
  position: absolute;
  top: -0.65rem;
  left: 50%;
  width: 5rem;
  height: 1.4rem;
  transform: translateX(-50%) rotate(-2.5deg);
  background: rgba(236, 229, 214, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.fan-date {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.7rem;
}

/* post-it — handwriting on muted paper */
.fan-note--postit {
  background: var(--paper, #cdb376);
  color: #262115;
  padding: 1.4rem 1.4rem 1.6rem;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 1.35rem;
  line-height: 1.3;
}
.fan-note--postit .fan-date { font-size: 0.6rem; }

/* letter — typed note on ivory paper */
.fan-note--letter {
  background: #e8e0cd;
  color: #2a251b;
  padding: 1.7rem 1.6rem 1.9rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.6;
}
.fan-note--letter p + p { margin-top: 0.8rem; }
.fan-note--letter a { border-bottom: 1px solid rgba(42, 37, 27, 0.4); }
.fan-note--letter a:hover { border-bottom-color: var(--amber); color: #5a4a24; }
.fan-sign {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 1.7rem;
  line-height: 1;
}
.fan-note--letter .fan-sign { margin-top: 1.1rem; }

/* polaroid — photo in a paper frame, handwritten caption */
.fan-note--polaroid {
  background: #f0ebdf;
  padding: 0.75rem 0.75rem 0;
}
.fan-note--polaroid img {
  width: 100%;
  filter: contrast(1.03) saturate(0.96);
}
.fan-caption {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 1.25rem;
  color: #3a3428;
  text-align: center;
  padding: 0.65rem 0.3rem 0.85rem;
}

/* press-clipping card — typed, sourced */
.fan-note--clip {
  background: #ece7da;
  color: #2c2718;
  padding: 1.4rem 1.4rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* pull-quote card — her words, attributed */
.fan-note--quote {
  background: #e8e0cd;
  color: #2a251b;
  padding: 1.6rem 1.5rem 1.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
}
.fan-note--quote .fan-date,
.fan-note--quote .fan-src { font-style: normal; }

/* source attribution line on any card */
.fan-src {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
a.fan-src:hover { opacity: 0.85; }

@media (max-width: 44rem) {
  .fanboard-col > .reveal { transition-delay: 0s !important; }
}
