/* Hallmark · genre: atmospheric · macrostructure: Portfolio Grid + Photographic + Long Document
 * theme: custom-cinematic-amber · nav: N9 · footer: Ft2 */

@import url('tokens.css');

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   FILM GRAIN OVERLAY
   ============================================================ */
.grain {
  position: fixed;
  inset: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.055;
}

@keyframes grain-shift {
  0%,100% { transform: translate(0, 0); }
  10%     { transform: translate(-1.5%, -1%); }
  20%     { transform: translate(1%, 1.5%); }
  30%     { transform: translate(-1%, -1.5%); }
  40%     { transform: translate(1.5%, 0.5%); }
  50%     { transform: translate(-1.5%, 1.5%); }
  60%     { transform: translate(0.5%, -1%); }
  70%     { transform: translate(-1%, 0.5%); }
  80%     { transform: translate(1.5%, -1.5%); }
  90%     { transform: translate(-1%, 1%); }
}

.grain { animation: grain-shift 0.4s steps(1) infinite; }

/* ============================================================
   PAGE TRANSITIONS — blur / fade
   ============================================================ */
.page-content,
.page-top {
  /* blur(0px) keeps the GPU compositor layer active at all times.
     Transitioning to/from none would de-promote the layer and cause
     a repaint that jitters the fixed nav. blur(0px) = visually identical
     to none but the layer is never torn down between transitions. */
  filter: blur(0px);
  transition: filter 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-entering .page-content,
html.is-entering .page-top {
  filter: blur(14px);
  opacity: 0;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Film pages use .page-content; home + about use .page-top */
.page-content,
.page-top {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   NAVIGATION — N9 Edge-aligned minimal
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  transform: translateZ(0);
  transition: background-color var(--dur-slow) var(--ease-out),
              backdrop-filter var(--dur-slow) var(--ease-out);
}

.nav.is-scrolled {
  background-color: oklch(7% 0.008 55 / 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav__wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__wordmark:hover,
.nav__wordmark:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
  transition: color var(--dur-base) var(--ease-out);
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a.is-active {
  color: var(--color-text);
  outline: none;
}

.nav__links a.is-active {
  position: relative;
}

.nav__links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
}


/* Hamburger button — mobile only */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

.nav__menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--color-text);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

/* Hamburger morphs to X when menu is open */
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Focus ring — always instant, never animated */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background-color: oklch(4% 0 0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--space-12);
  padding-top: clamp(calc(var(--nav-height) + var(--space-4)), 14vh, var(--space-2xl));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  list-style: none;
  position: relative;
  z-index: 1;
}

.mobile-menu__links a {
  font-family: var(--font-display);

  font-size: clamp(1.9rem, 8.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  transition: color var(--dur-base) var(--ease-out);
  overflow-wrap: anywhere;
  max-width: 100%;
}

.mobile-menu__links a:hover,
.mobile-menu__links a:focus-visible {
  color: var(--color-accent);
  outline: none;
}

/* Close button removed — hamburger morphs to X (see above) */

.mobile-menu__footer {
  margin-top: auto;
  padding-top: var(--space-12);
  font-size: var(--text-xs);
  color: var(--color-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 1;
}

/* ── 3×3 cinematic still grid anchored to the bottom of the menu ── */
.mobile-menu__stills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-4deg) scale(1.2);
  transform-origin: bottom center;
}

/* Gradient fade at the bottom edge of the grid into the menu background */
.mobile-menu__stills::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background: linear-gradient(to top, oklch(4% 0 0) 15%, transparent);
  z-index: 2;
  pointer-events: none;
}

.menu-still {
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.menu-still img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.72);
}

.mobile-menu.is-open .menu-still { opacity: 1; }
.mobile-menu.is-open .menu-still:nth-child(1) { transition-delay: 0.02s; }
.mobile-menu.is-open .menu-still:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open .menu-still:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .menu-still:nth-child(4) { transition-delay: 0.04s; }
.mobile-menu.is-open .menu-still:nth-child(5) { transition-delay: 0.09s; }
.mobile-menu.is-open .menu-still:nth-child(6) { transition-delay: 0.06s; }
.mobile-menu.is-open .menu-still:nth-child(7) { transition-delay: 0.11s; }
.mobile-menu.is-open .menu-still:nth-child(8) { transition-delay: 0.07s; }
.mobile-menu.is-open .menu-still:nth-child(9) { transition-delay: 0.13s; }

/* ============================================================
   SHARED LAYOUT — page top padding clears fixed nav
   ============================================================ */
.page-top {
  padding-top: var(--nav-height);
}

/* ============================================================
   HOME PAGE — Full-screen stills wall
   ============================================================ */

/* The wall starts at 0 — nav floats transparently over it */
.stills-wall-page {
  padding-top: 0;
}

.stills-wall {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--color-paper);
}

/* Each row fills the full viewport width; height is 1/3 of visible area */
.stills-row {
  display: flex;
  gap: 3px;
  height: calc((100dvh - var(--nav-height)) / 3);
  min-height: 140px;
}

/* Each tile takes proportional width based on its flex value (= aspect ratio) */
.still-tile {
  flex: 1.778; /* default 16:9 */
  overflow: hidden;
  position: relative;
  min-width: 0;
  background: var(--color-paper-2);
  display: block;
  pointer-events: none; /* purely decorative — scroll events still bubble */
  user-select: none;
}

.still-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* slight warmth reduction so stills blend into the amber-dark paper */
  filter: brightness(0.82) saturate(0.9);
}

/* Mobile: let rows size themselves from the images' natural aspect ratio
   so landscape stills stay landscape. We remove the fixed viewport-height
   row height and instead use the tile's aspect-ratio to drive height. */
@media (max-width: 767px) {
  .stills-row {
    height: auto;
    min-height: 0;
  }
  .still-tile {
    aspect-ratio: 16 / 9;
  }
}

/* Vignette overlay — fixed, blends edges of the stills into the dark background */
.home-vignette {
  position: fixed;
  inset: 0;
  z-index: 500; /* above stills, below nav (7000) and grain (9000) */
  pointer-events: none;
  background:
    /* top — full black band that dissolves downward */
    linear-gradient(to bottom,
      oklch(7% 0.008 55 / 1)   0%,
      oklch(7% 0.008 55 / 0.6) 10%,
      oklch(7% 0.008 55 / 0)   28%
    ),
    /* bottom — full black band that dissolves upward */
    linear-gradient(to top,
      oklch(7% 0.008 55 / 1)   0%,
      oklch(7% 0.008 55 / 0.6) 10%,
      oklch(7% 0.008 55 / 0)   28%
    ),
    /* left edge */
    linear-gradient(to right,
      oklch(7% 0.008 55 / 0.55) 0%,
      oklch(7% 0.008 55 / 0)    14%
    ),
    /* right edge */
    linear-gradient(to left,
      oklch(7% 0.008 55 / 0.55) 0%,
      oklch(7% 0.008 55 / 0)    14%
    );
}

/* ============================================================
   HOME PAGE — intro label (old layout, kept for back-compat)
   ============================================================ */
.home-intro {
  padding: var(--space-12) var(--space-8) var(--space-6);
}

.home-intro__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-mute);
}

/* ============================================================
   HOME PAGE — Film Grid (old layout, kept for back-compat)
   ============================================================ */
.film-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0 var(--space-8) var(--space-8);
}

.film-grid__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

/* ============================================================
   FILM CARD
   ============================================================ */
.film-card {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--color-paper-2);
}

.film-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.film-card--featured .film-card__thumb {
  aspect-ratio: 21 / 6;
}

.film-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--dur-xslow) var(--ease-out);
}

.film-card:hover .film-card__thumb img,
.film-card:focus-within .film-card__thumb img {
  transform: scale(1.035);
}

.film-card__info {
  padding: var(--space-4) var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.film-card__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--color-text-mute);
}

.film-card__meta span + span::before {
  content: '·';
  margin-right: var(--space-4);
  color: var(--color-text-mute);
}

.film-card__title {
  font-family: var(--font-display);

  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--color-text);
  transition: color var(--dur-base) var(--ease-out);
  overflow-wrap: anywhere;
  min-width: 0;
}

.film-card--featured .film-card__title {
  font-size: var(--text-3xl);
}

.film-card:hover .film-card__title,
.film-card:focus-within .film-card__title {
  color: var(--color-accent);
}

.film-card__arrow {
  font-size: var(--text-sm);
  color: var(--color-text-mute);
  transition: transform var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  margin-top: var(--space-2);
  font-style: normal;
  font-family: var(--font-body);
}

.film-card:hover .film-card__arrow,
.film-card:focus-within .film-card__arrow {
  transform: translateX(6px);
  color: var(--color-accent);
}

/* ============================================================
   FILM DETAIL PAGE
   ============================================================ */
.film-hero {
  position: relative;
  height: 80vh;
  min-height: 400px;
  overflow: hidden;
}

.film-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.film-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    oklch(7% 0.008 55 / 0.5) 70%,
    var(--color-paper) 100%
  );
}

/* ============================================================
   FILM INFO — below hero
   ============================================================ */
.film-info {
  padding: var(--space-12) var(--space-8) var(--space-8);
  width: 100%;
  max-width: 1300px;
}

.film-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-mute);
  margin-bottom: var(--space-6);
}

.film-info__meta-sep {
  color: var(--color-text-mute);
}

.film-title {
  font-family: var(--font-display);

  font-weight: 400;
  font-size: var(--text-display-s);
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  overflow-wrap: anywhere;
  min-width: 0;
}

.film-description {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-dim);
}

.film-description p + p {
  margin-top: var(--space-4);
}

/* ============================================================
   AWARDS BLOCK
   ============================================================ */
.film-awards {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.film-awards__label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.film-awards__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.film-awards__list li {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  padding-left: var(--space-4);
  position: relative;
}

.film-awards__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background-color: var(--color-accent);
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.embed-section {
  padding: var(--space-8);
  padding-top: 0;
}

.embed-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: var(--color-paper-2);
  overflow: hidden;
}

.embed-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   STILLS STRIP — horizontal drag-scroll + arrow nav
   ============================================================ */
.stills-wrap {
  position: relative;
}

.stills-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: oklch(10% 0.008 55 / 0.88);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.stills-nav-btn--prev { left: var(--space-2); }
.stills-nav-btn--next { right: var(--space-2); }

.stills-nav-btn:hover:not(:disabled) {
  background: oklch(20% 0.008 55 / 0.95);
}

.stills-nav-btn:disabled {
  opacity: 0.22;
  cursor: default;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(4% 0.005 55 / 0.96);
}

.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border: none;
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: oklch(12% 0.008 55 / 0.75);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base) var(--ease-out);
}

.lightbox__close:hover {
  background: oklch(22% 0.008 55 / 0.9);
}

.stills-section {
  padding: var(--space-12) 0 var(--space-8);
}

.stills-section__label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-mute);
  padding: 0 var(--space-8);
  margin-bottom: var(--space-6);
}

.stills-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--space-8);
  padding-right: var(--space-8);
  cursor: grab;
  scrollbar-width: none;
}

.stills-strip::-webkit-scrollbar { display: none; }
.stills-strip.is-dragging { cursor: grabbing; }

.stills-strip__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  overflow: hidden;
  width: clamp(260px, 38vw, 560px);
  aspect-ratio: 16 / 9;
  background-color: var(--color-paper-2);
}

.stills-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-xslow) var(--ease-out);
}

.stills-strip__item:hover img {
  transform: scale(1.03);
}

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-mute);
  margin: var(--space-8);
  margin-top: 0;
  transition: color var(--dur-base) var(--ease-out),
              gap var(--dur-base) var(--ease-out);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-text);
  gap: var(--space-3);
  outline: none;
}

.back-link__arrow {
  transition: transform var(--dur-base) var(--ease-out);
}

.back-link:hover .back-link__arrow {
  transform: translateX(-4px);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-wrapper {
  padding: 0 var(--space-8) var(--space-8);
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
}

.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
  padding-top: var(--space-12);
}

.about-portrait {
  width: 168px;
  height: 168px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 28%;
}

.about-header__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.about-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-dim);
  margin-bottom: var(--space-3);
}

.about-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-display-s);
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* About — clients / collaborators, one per line */
.about-clients {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.about-clients li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}

.about-clients li:first-child {
  border-top: none;
}

.about-clients__name {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  min-width: 9rem;
}

.about-clients__detail {
  font-size: var(--text-base);
  color: var(--color-text-dim);
}

.about-bio {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-dim);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Keep the small credit line flush-left, not stretched */
.about-bio__credit {
  text-align: left;
}

.about-bio p + p {
  margin-top: var(--space-6);
}

.about-section {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.about-section__label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.about-section__title {
  font-family: var(--font-display);

  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  overflow-wrap: anywhere;
  min-width: 0;
}

.about-section__body {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-dim);
}

.about-credits {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.about-credits__label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-mute);
  margin-bottom: var(--space-4);
}

.about-credits__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.about-credits__list li {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  padding-left: var(--space-4);
  position: relative;
}

.about-credits__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background-color: var(--color-text-mute);
}

/* ============================================================
   HOME — Auto-scrolling stills
   ============================================================ */
@keyframes stills-scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* When JS doubles the content and adds this class */
.stills-wall.is-auto-scrolling {
  animation: stills-scroll-up 34s linear infinite;
  will-change: transform;
}

@media (min-width: 768px) {
  .stills-wall.is-auto-scrolling {
    animation-duration: 85s;
  }
}

/* Clip the scrolling wall; no page scroll needed */
.stills-wall-page {
  height: 100dvh;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .stills-wall.is-auto-scrolling { animation: none; }
}

/* ============================================================
   HOME — Centered identity overlay
   ============================================================ */
.home-identity {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  pointer-events: none;
  text-align: center;
}

/* Radial dark backdrop — keeps title legible over any still */
.home-identity::before {
  content: '';
  position: absolute;
  inset: -120px -280px;
  background: radial-gradient(
    ellipse 55% 55% at 50% 50%,
    oklch(4% 0.006 55 / 0.82) 0%,
    oklch(4% 0.006 55 / 0.50) 40%,
    transparent 75%
  );
  pointer-events: none;
}

.home-identity__name {
  position: relative; /* above the ::before */
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw + 0.5rem, 6.5rem);
  color: var(--color-text);
  letter-spacing: 0.01em;
  line-height: 1;
  overflow-wrap: anywhere;
  min-width: 0;
}

.home-identity__links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  max-width: 92vw;
  pointer-events: all;
}

.home-identity__links a,
.home-identity__links button {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: var(--text-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(55% 0.005 65);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-base) var(--ease-out);
  line-height: 1;
}

.home-identity__links a:hover,
.home-identity__links a:focus-visible,
.home-identity__links button:hover,
.home-identity__links button:focus-visible {
  color: oklch(97% 0.005 65);
  outline: none;
}

.home-identity__links a:focus-visible,
.home-identity__links button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.home-identity__sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-mute);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  /* Stack the homepage nav vertically so long labels never overflow */
  .home-identity__links {
    flex-direction: column;
    gap: var(--space-3);
  }
  .home-identity__links a,
  .home-identity__links button {
    font-size: var(--text-base);
  }
  .home-identity__sep { display: none; }
}

/* ============================================================
   NAV — Contact button
   ============================================================ */
.nav__contact-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
  line-height: inherit;
}

.nav__contact-btn:hover,
.nav__contact-btn:focus-visible {
  color: var(--color-text);
  outline: none;
}

/* Mobile menu contact item */
.mobile-menu__contact-btn {
  font-family: var(--font-display);

  font-size: clamp(1.9rem, 8.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-base) var(--ease-out);
  text-align: left;
}

.mobile-menu__contact-btn:hover,
.mobile-menu__contact-btn:focus-visible {
  color: var(--color-accent);
  outline: none;
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 8000; /* above grain (9000? — no, grain is decorative), below nothing */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(4% 0.006 55 / 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: var(--color-paper-2);
  border: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-12) var(--space-12);
  transform: translateY(16px);
  transition: transform var(--dur-slow) var(--ease-out);
}

.contact-modal.is-open .contact-modal__panel {
  transform: translateY(0);
}

.contact-modal__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-paper-3);
  border: 1px solid var(--color-border);
  color: var(--color-text-dim);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.contact-modal__close:hover {
  background: var(--color-paper-4);
  color: var(--color-text);
}

.contact-modal__close:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.contact-modal__title {
  font-family: var(--font-display);

  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.contact-modal__sub {
  font-size: var(--text-sm);
  color: var(--color-text-mute);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-modal__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-modal__label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-mute);
}

.contact-modal__input,
.contact-modal__textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-paper-3);
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
  width: 100%;
}

.contact-modal__input::placeholder,
.contact-modal__textarea::placeholder {
  color: var(--color-text-mute);
}

.contact-modal__input:focus,
.contact-modal__textarea:focus {
  border-color: var(--color-accent);
}

.contact-modal__input:focus-visible,
.contact-modal__textarea:focus-visible {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px oklch(97% 0.005 65 / 0.12);
}

.contact-modal__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.contact-modal__submit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-dim);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-self: flex-start;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.contact-modal__submit:hover {
  color: var(--color-text);
  border-color: oklch(97% 0.005 65 / 0.5);
}

.contact-modal__submit:active {
  transform: translateY(1px);
}

.contact-modal__submit:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Sent state */
.contact-modal__sent {
  display: none;
  padding: var(--space-8) 0;
  text-align: center;
}

.contact-modal.is-sent .contact-modal__form { display: none; }
.contact-modal.is-sent .contact-modal__sent { display: block; }

.contact-modal__sent-icon {
  font-size: var(--text-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);

}

.contact-modal__sent-msg {
  font-size: var(--text-base);
  color: var(--color-text-dim);
}

/* Responsive */
@media (max-width: 480px) {
  .contact-modal {
    padding: 0;
    align-items: flex-end;
  }
  .contact-modal__panel {
    width: 100%;
    max-width: 100%;
    padding: var(--space-8) var(--space-6);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .contact-modal__close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ============================================================
   SITE FOOTER — Ft2 inline single line
   ============================================================ */
.site-footer {
  margin-top: auto;
  padding: var(--space-8);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-mute);
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.site-footer a {
  color: var(--color-text-dim);
  transition: color var(--dur-base) var(--ease-out);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-text);
  outline: none;
}

.site-footer__sep {
  color: var(--color-border);
}

/* ============================================================
   RESPONSIVE — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }

  .home-intro {
    padding: var(--space-8) var(--space-4) var(--space-4);
  }

  .film-grid {
    gap: var(--space-3);
    padding: 0 var(--space-4) var(--space-8);
  }

  .film-grid__row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .film-card--featured .film-card__thumb {
    aspect-ratio: 3 / 2;
  }

  .film-card__info {
    padding: var(--space-3);
  }

  .film-card__meta span:nth-child(n+3) {
    display: none;
  }

  .film-card--featured .film-card__title {
    font-size: var(--text-2xl);
  }

  .film-hero {
    height: 55vh;
  }

  .film-info {
    padding: var(--space-8) var(--space-4);
  }

  .film-title {
    font-size: var(--text-3xl);
  }

  .embed-section {
    padding: var(--space-4);
  }

  .stills-section {
    padding: var(--space-8) 0 var(--space-4);
  }

  .stills-section__label,
  .stills-strip {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .stills-strip__item {
    width: clamp(220px, 80vw, 380px);
  }

  .stills-nav-btn {
    width: 36px;
    height: 36px;
  }

  .back-link {
    margin: var(--space-4);
  }

  .about-wrapper {
    padding: 0 var(--space-4) var(--space-4);
  }

  .about-portrait {
    width: 132px;
    height: 132px;
  }

  .about-name {
    font-size: var(--text-3xl);
  }

  .site-footer {
    padding: var(--space-8) var(--space-4);
  }
}

/* ============================================================
   RESPONSIVE — 480px breakpoint (small mobile)
   ============================================================ */
@media (max-width: 480px) {
  .nav {
    padding: 0 var(--space-4);
  }

  .nav__wordmark {
    font-size: var(--text-base);
  }

  .film-card__title {
    font-size: var(--text-xl);
  }

  .mobile-menu {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }

  .page-content,
  .page-top {
    transition: opacity 150ms linear !important;
    filter: none !important;
  }

  html.is-entering .page-content,
  html.is-entering .page-top {
    filter: none !important;
    opacity: 0;
  }

  .film-card__thumb img,
  .film-card__title,
  .film-card__arrow,
  .stills-strip__item img,
  .back-link,
  .back-link__arrow,
  .nav__links a,
  .nav__wordmark,
  .site-footer a,
  .nav {
    transition: opacity 150ms linear !important;
    transform: none !important;
  }

  .mobile-menu {
    transition: opacity 150ms linear;
    transform: none !important;
  }
}

/* About — IMDb mini-bio credit line */
.about-bio__credit {
  font-size: var(--text-sm);
  color: var(--color-text-mute);
  font-style: italic;
  margin-top: var(--space-2);
}
