/* ===== PP Writer (Pangram Pangram, Free for Personal Use) ===== */
@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/PPWriter-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/PPWriter-Book.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/PPWriter-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Writer";
  src: url("assets/fonts/PPWriter-Ultrabold.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dark cinematic palette — cream on noir, films cast their colour into the room */
  --noir:    #07060a;
  --noir-2:  #0d0c11;
  --noir-3:  #14131a;
  --ink:     #f3e6c7;            /* cream text on dark */
  --ink-soft: rgba(243, 230, 199, 0.72);
  --ink-mute: rgba(243, 230, 199, 0.46);
  --line:     rgba(243, 230, 199, 0.18);

  /* Legacy aliases */
  --paper:   var(--noir);
  --paper-2: var(--noir-2);
  --paper-3: var(--noir-3);
  --gold:      var(--ink);
  --gold-soft: var(--ink-soft);
  --gold-glow: rgba(243, 230, 199, 0.28);
  --gold-line: var(--line);

  /* --rail = horizontal distance from viewport edge to the film frame's edge.
     Everything that should align to the film frame (header, corners) uses this
     so all left edges line up in a single column down the page. */
  --rail: max(20px, calc(50vw - min(920px, 47.5vw)));

  /* PP Writer — one family for the whole site */
  --serif: "PP Writer", "Times New Roman", serif;
  --sans:  "PP Writer", "Times New Roman", serif;
  --type:  "PP Writer", "Times New Roman", serif;
  --hand:  "PP Writer", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinema: cubic-bezier(0.62, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;     /* kill the grey/blue tap flash on iOS/Android */
}

/* Snappier taps — removes the 300ms tap-delay on interactive elements */
a, button, [data-tick], [data-magnetic], .film-card { touch-action: manipulation; }
html { scroll-behavior: smooth; background: var(--noir); }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  /* Deep noir base — films cast their colour over this via the dim ambilight glow */
  background:
    radial-gradient(ellipse at 50% -10%, rgba(40, 36, 30, 0.5), transparent 55%),
    linear-gradient(180deg, var(--noir-2) 0%, var(--noir) 50%, var(--noir-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  cursor: none;
  font-size: 16px;
  line-height: 1.4;
}

@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

body.is-locked, body.is-modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button {
  font: inherit;
  border: none;
  background: transparent;
  cursor: none;
  color: inherit;
}

::selection { background: rgba(243, 230, 199, 0.32); color: var(--ink); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== Subtle film grain ===== */
.grain {
  position: fixed;
  inset: -5%;
  z-index: 200;
  width: 110%;
  height: 110%;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
}

.wash, .dust { display: none; }
.cursor-trail { display: none; }

/* ===== Opening — fade-only over dark ===== */
.opening {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(243, 230, 199, 0.16), transparent 40%),
    linear-gradient(180deg, var(--noir) 0%, var(--noir-2) 100%);
  color: var(--ink);
  /* slow + smooth opening fade-out into the reel */
  transition: opacity 2400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 2400ms ease;
}

.opening.is-gone { opacity: 0; visibility: hidden; }

.opening-stage {
  position: relative;
  display: grid;
  place-items: center;
  gap: clamp(28px, 4vw, 56px);
  width: min(640px, 78vw);
}

.opening-halo {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 480px;
  height: 480px;
  max-width: 70vw;
  max-height: 70vw;
  transform: translate(-50%, -50%) scale(0.5);
  background: radial-gradient(circle, rgba(243, 230, 199, 0.36), rgba(212, 160, 86, 0.14) 36%, transparent 64%);
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  animation: halo-pulse 3600ms 1000ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes halo-pulse {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  35%  { opacity: 1; }
  100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.2); }
}

.opening-mark {
  position: relative;
  width: min(420px, 56vw);
  transition: opacity 1100ms ease;
}

.opening-mark img {
  width: 100%;
  opacity: 0;
  filter: invert(1) brightness(1.15) contrast(1.05);
  animation: opening-mark-fade 3200ms 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes opening-mark-fade {
  0%   { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.opening-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--type);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(243, 230, 199, 0.6);
  opacity: 0;
  animation: fade-in 900ms 2200ms ease forwards;
}

.opening-meta__rule {
  width: 32px; height: 1px; background: rgba(243, 230, 199, 0.34);
}

.opening-skip {
  position: absolute;
  z-index: 5;
  bottom: clamp(28px, 4vw, 60px);
  right: clamp(28px, 4vw, 60px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(243, 230, 199, 0.28);
  border-radius: 999px;
  background: rgba(20, 16, 11, 0.6);
  color: rgba(243, 230, 199, 0.86);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 800ms 1200ms ease forwards;
  transition: background 220ms ease, transform 220ms ease, color 220ms ease, border-color 220ms ease;
}

.opening-skip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateX(2px);
}

.opening-skip svg { width: 18px; height: 10px; }

.opening-splatter, .opening-blackout, .opening-paper, .cinema-bar { display: none; }

/* Cinematic Enter pill — sits below the mark, gentle pulse so it reads as the
   call-to-action without shouting. Required for AudioContext to start on iOS. */
.opening-enter {
  margin-top: clamp(28px, 4vw, 56px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 36px;
  border: 1px solid rgba(243, 230, 199, 0.42);
  border-radius: 999px;
  background: rgba(20, 16, 11, 0.4);
  color: rgba(243, 230, 199, 0.92);
  font-family: var(--serif);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation:
    fade-in 900ms 2400ms ease forwards,
    enter-pulse 2800ms 3400ms ease-in-out infinite;
  transition: background 320ms ease, color 320ms ease, border-color 320ms ease, transform 320ms var(--ease-out);
}

.opening-enter:hover {
  background: var(--ink);
  color: var(--noir);
  border-color: var(--ink);
  transform: translateY(-1px);
  animation: fade-in 900ms 2400ms ease forwards;     /* stop the pulse on hover */
}

@keyframes enter-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 230, 199, 0); }
  50%      { box-shadow: 0 0 0 10px rgba(243, 230, 199, 0.16); }
}

@keyframes fade-in { to { opacity: 1; } }

/* ===== Quill cursor ===== */
.cursor {
  position: fixed;
  z-index: 500;  /* above the lightbox (400) so the quill stays visible over the modal backdrop */
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
}

.cursor.is-active { opacity: 1; }

.cursor__quill {
  position: absolute;
  top: 0; left: 0;
  display: block;
  width: 30px;
  height: 30px;
  transform: translate(-2.5px, -27.5px) rotate(0deg);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 320ms var(--ease-out), opacity 220ms ease;
}

/* Dark theme: invert the inline quill SVG so it reads as cream on noir */
.cursor__quill svg path[fill="#1a140e"],
.cursor__quill svg circle[fill="#1a140e"] { fill: #f3e6c7; }
.cursor__quill svg path[stroke="#b08038"],
.cursor__quill svg line[stroke="#b08038"] { stroke: #f3e6c7; }
.cursor__quill svg line[stroke="#1a140e"] { stroke: #f3e6c7; }
.cursor__quill svg line[stroke="#7a5530"] { stroke: rgba(243, 230, 199, 0.7); }

.cursor.is-link .cursor__quill {
  transform: translate(-2.5px, -27.5px) rotate(-8deg) scale(1.1);
}

.cursor.is-play .cursor__quill { opacity: 0; }

.cursor__label {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 280ms ease, transform 320ms var(--ease-out);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(243, 230, 199, 0.35);
}

.cursor.is-play .cursor__label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
  .cursor,
  .cursor__quill,
  .cursor__label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  /* Also kill any active/focus background on tap */
  .film-card,
  .film-card:focus,
  .film-card:focus-visible,
  .film-card:active {
    outline: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* Ink-trail dots tinted gold on dark */
.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 248;
  pointer-events: none;
  overflow: hidden;
}

.cursor-trail__dot {
  position: absolute;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  background: radial-gradient(circle, rgba(243, 230, 199, 0.7), rgba(243, 230, 199, 0));
  border-radius: 50%;
  pointer-events: none;
  animation: ink-trail-fade 720ms ease-out forwards;
}

@keyframes ink-trail-fade { 0% { opacity: 0.7; } 100% { opacity: 0; } }

@media (hover: none), (pointer: coarse) { .cursor-trail { display: none; } }

/* ===== Header — letterhead block + typewriter nav ===== */
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(64px, 5.4vw, 84px);
  padding: clamp(14px, 1.4vw, 22px) var(--rail);
  /* Dark glass — film glow tints it through the blur from below */
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.82) 0%, rgba(7, 6, 10, 0.5) 60%, transparent 100%);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.logotype {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 22px);
  transition: transform 320ms var(--ease-out);
}

.logotype:hover { transform: translateY(-1px); }

.logotype__mark {
  position: relative;
  display: block;
  width: clamp(64px, 5.4vw, 84px);
  flex-shrink: 0;
}

.logotype__mark img {
  width: 100%;
  display: block;
  /* Dark theme: invert dark ink so it reads as cream on noir */
  filter: invert(1) brightness(1.18) contrast(1.05);
  opacity: 1;
}

.signature-draw {
  position: absolute;
  z-index: 2;
  top: 8%; bottom: 10%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(243, 230, 199, 0.28), transparent);
  filter: blur(7px);
  transform: translateX(-125%);
  animation: signature-pen 1900ms 2800ms var(--ease-out) forwards;
}

/* Typewriter byline next to the signature — letterhead feel */
.logotype__byline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: clamp(12px, 1.2vw, 18px);
}

.logotype__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.05;
}

.logotype__role {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
  line-height: 1.2;
}

@media (max-width: 640px) {
  .logotype__byline { display: none; }
}

.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 48px);
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 6px 2px;
  color: var(--ink);
  transition: color 240ms ease;
}

.primary-nav__label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(14px, 1.05vw, 16px);
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 240ms ease, transform 240ms var(--ease-out);
}

.primary-nav a:hover .primary-nav__label { transform: translateY(-1px); }

.primary-nav a::after {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}

.primary-nav a:hover::after { transform: scaleX(1); }

main { position: relative; z-index: 2; }

#films, #awards, #contact {
  scroll-margin-top: clamp(80px, 8vw, 120px);
}

/* ===== Films — four-corner title cards, one viewport per scene ===== */
.films {
  width: 100%;
  padding: 0;
}

.film-stream {
  display: flex;
  flex-direction: column;
}

.film-card {
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(34px, 2.8vw, 52px) 0;
  opacity: 1;
  overflow: visible;
}

.film-card.is-visible { opacity: 1; }

/* Ambilight glow — duplicate of the still, scaled up + blurred. Sits at a dim
   level by default so films always tint the surrounding noir, then brightens on
   hover. Adjacent cards' masks overlap so the colours cross-fade as you scroll. */
.film-card__glow {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -10%;
  right: -10%;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(100px) saturate(1.5) brightness(0.85);
  opacity: 0.4;                              /* dim ambient glow at idle */
  pointer-events: none;
  transform: scale(1.05);
  transition: opacity 700ms ease, filter 700ms ease, transform 1200ms var(--ease-out);
  will-change: opacity;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 18%, #000 38%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 18%, #000 38%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
}

/* On hover (real cursor or focus) the dim glow brightens and starts breathing.
   The body.is-scrolling guard suppresses brightening while a film slides under
   a stationary cursor during scroll — as soon as scroll stops the brightening
   re-engages where the cursor sits. Gated to fine-pointer devices so touch
   taps don't flash the glow on/off. */
@media (hover: hover) and (pointer: fine) {
  body:not(.is-scrolling) .film-card:hover .film-card__glow,
  body:not(.is-scrolling) .film-card.is-hovered .film-card__glow,
  .film-card:focus-visible .film-card__glow {
    opacity: 0.92;
    filter: blur(90px) saturate(1.75) brightness(1);
    transform: scale(1.12);
    animation: glow-breathe 4200ms ease-in-out infinite;
  }
}

@keyframes glow-breathe {
  0%, 100% { filter: blur(90px) saturate(1.7) brightness(1); }
  50%      { filter: blur(110px) saturate(1.95) brightness(1.15); }
}

/* Film frame — flush with --rail on both sides */
.film-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: calc(100vw - 2 * var(--rail));
  margin: 0 auto;
  aspect-ratio: 2.4 / 1;
  border-radius: clamp(6px, 0.5vw, 10px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 600ms var(--ease-out), box-shadow 700ms ease;
  /* Subtle shadow at idle, deeper on hover */
  box-shadow:
    0 20px 40px rgba(60, 40, 20, 0.12),
    0 6px 14px rgba(60, 40, 20, 0.08);
}

.film-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Subtle corner vignette — far less aggressive so cinematic grades stay honest */
  background: radial-gradient(ellipse at 50% 50%, transparent 72%, rgba(0, 0, 0, 0.14) 100%);
  pointer-events: none;
  content: "";
}

.film-still {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* No global colour grading — show the colourist's actual grade.
     Tiny saturation lift on hover only, no contrast/brightness push. */
  transition: transform 1200ms var(--ease-out), filter 700ms ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.is-scrolling) .film-card:hover .film-still,
  .film-card.is-hovered .film-still,
  .film-card:focus-visible .film-still {
    transform: scale(1.025);
    filter: saturate(1.04);
  }

  body:not(.is-scrolling) .film-card:hover .film-frame,
  .film-card.is-hovered .film-frame,
  .film-card:focus-visible .film-frame {
    box-shadow:
      0 40px 80px rgba(60, 40, 20, 0.26),
      0 12px 24px rgba(60, 40, 20, 0.16);
  }
}

/* ===== Four corner labels — sit at the edges of the centered frame ===== */
/* The corners are positioned at percentages of the card; with the frame at min(1380px, 86vw) centered,
   the frame's left/right edges are at (50% ∓ frame-half). We mirror that with calc() below. */
/* ===== Corner labels — flush with frame edges via --rail ===== */
.film-card__corner {
  position: absolute;
  z-index: 5;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--ink);
  pointer-events: none;
  transition: color 320ms ease, transform 320ms var(--ease-out), opacity 320ms ease;
}

/* Frame width = 100vw - 2*--rail, lives in flow. Vertical edges = --rail from each side.
   Frame height = (100vw - 2*--rail) / 2.4. Corner Y positions sit just inside the card's
   padding so they hug the frame's top/bottom edges without overlapping the image. */
.film-card__corner--tl,
.film-card__corner--bl { left: var(--rail); }

.film-card__corner--tr,
.film-card__corner--br {
  right: var(--rail);
  text-align: right;
}

.film-card__corner--tl,
.film-card__corner--tr {
  top: clamp(10px, 0.9vw, 16px);
}

.film-card__corner--bl,
.film-card__corner--br {
  bottom: clamp(10px, 0.9vw, 16px);
  max-width: 46%;
}

.film-card__corner--tl {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.film-card__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(14px, 1.05vw, 17px);
  color: var(--ink);
}

.film-card__total {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--ink-mute);
}

.film-card__corner--tr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.film-card__corner--bl,
.film-card__corner--br {
  font-weight: 500;
  font-size: clamp(14px, 1.05vw, 17px);
}

/* (legacy <em> styles for backwards-compat — markup no longer wraps in <em>) */
.film-card__corner--bl em,
.film-card__corner--br em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  font-size: inherit;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.005em;
  display: inline-block;
}

.film-card__corner--br { text-align: right; }

.film-card.is-hovered .film-card__corner--br {
  opacity: 1;
  transform: translateX(4px);
}

.film-card__cta-arrow {
  display: inline-block;
  width: clamp(22px, 1.6vw, 28px);
  height: clamp(10px, 0.8vw, 14px);
  vertical-align: middle;
  margin-left: 2px;
  color: currentColor;
  transition: transform 320ms var(--ease-out);
}

body:not(.is-scrolling) .film-card:hover .film-card__cta-arrow,
.film-card.is-hovered .film-card__cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  /* Cinematic — same family as desktop's 2.4:1, just slightly taller so the
     subject still reads on a small vertical viewport */
  .film-frame { aspect-ratio: 1.85 / 1; border-radius: 4px; }

  /* Extra zoom on Godrej still to guarantee no residual dark vignette shows.
     Frame's object-fit:cover already crops; this scales the image inside the
     frame so the edges land further out and the dark border is gone. */
  .film-still[src*="godrej-v2"] {
    transform: scale(1.08);
    transform-origin: center;
  }

  /* Drop the heavy corner vignette on phones — was reading as dark "bars" at
     the frame edges next to bright images */
  .film-frame::after { background: none; }

  /* Tighter corners so cards stack together more like a contact sheet */
  .film-card { padding: 26px 0 30px; }

  .film-card__corner { font-size: 11px; line-height: 1.15; }
  .film-card__num { font-size: 12px; }
  .film-card__total { font-size: 10px; }
  .film-card__corner--bl,
  .film-card__corner--br { font-size: 12px; max-width: 48%; }

  .film-card__corner--tl,
  .film-card__corner--tr { top: 6px; }
  .film-card__corner--bl,
  .film-card__corner--br { bottom: 6px; }

  .film-card__cta-arrow { width: 18px; height: 9px; }

  /* ===== Mobile: keep the ambient glow (same background mood as desktop),
     just freeze it. No hover brightening, no transitions, no animation —
     so a tap can't strobe it and there's no GPU-hungry breathing layer. */
  .film-card__glow {
    filter: blur(40px) saturate(1.4) brightness(0.9);
    transform: scale(1.04);
    opacity: 0.42;
    transition: none;
    animation: none;
  }
  .site-header {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .lightbox {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .grain { opacity: 0.08; }   /* lighter grain on mobile */
}

/* ===== Section heads ===== */
.section-head {
  display: grid;
  gap: clamp(10px, 1.4vw, 20px);
  margin-bottom: clamp(28px, 4vw, 56px);
}

.section-head--center { justify-items: center; text-align: center; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.section-head--center .section-kicker::before,
.section-head--center .section-kicker::after {
  width: clamp(20px, 3vw, 56px);
  height: 1px;
  background: var(--gold-line);
  content: "";
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.section-title em {
  font-style: normal;       /* PP Writer only, no italic mismatch */
  font-weight: 500;
  color: var(--ink);
}

/* ===== Marquee ===== */
.marquee {
  margin: clamp(32px, 4vw, 60px) 0;
  padding: clamp(24px, 2.4vw, 38px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee__viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  padding-right: clamp(20px, 2.4vw, 36px);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 22px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: var(--ink);
  animation: marquee-scroll 42s linear infinite;
}

.marquee__track span[aria-hidden="true"] {
  font-style: normal;
  color: var(--ink-mute);
  font-size: 0.7em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Awards ===== */
.awards, .contact {
  max-width: min(1520px, calc(100vw - clamp(28px, 6vw, 120px)));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 68px) 0;
}

.award-stage { display: block; }

.award-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: clamp(34px, 4.5vw, 76px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-list li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(160px, 11vw, 198px);
  padding: clamp(30px, 3.4vw, 50px) clamp(42px, 5vw, 82px);
  overflow: visible;
  opacity: 1;
  transition: transform 1100ms var(--ease-out);
}

body.is-awards-ready .award-list li { opacity: 1; transform: translateY(0); }
body.is-awards-ready .award-list li:nth-child(2n) { transition-delay: 90ms; }
body.is-awards-ready .award-list li:nth-child(3n) { transition-delay: 170ms; }
body.is-awards-ready .award-list li:nth-child(5n) { transition-delay: 230ms; }

.award-list li::before {
  position: absolute;
  inset: 18px 11%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 160, 86, 0.3), transparent 68%);
  content: "";
  opacity: 0.4;
  filter: blur(20px);
  transition: opacity 500ms ease, transform 600ms var(--ease-out);
}

.award-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.award-banner img {
  width: clamp(280px, 29vw, 405px);
  object-fit: contain;
  opacity: 0.82;
  filter: brightness(1.05) drop-shadow(0 0 16px rgba(232, 198, 127, 0.25));
  animation: award-banner-breathe 5600ms ease-in-out infinite;
  transition: filter 500ms ease, opacity 500ms ease, transform 700ms var(--ease-out);
}

.award-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 320px);
  text-align: center;
}

.award-list li:hover::before { opacity: 1; transform: scale(1.1); }

.award-list li:hover .award-banner img {
  opacity: 1;
  filter: brightness(1.2) drop-shadow(0 0 22px rgba(232, 198, 127, 0.5));
  transform: scale(1.02);
}

.award-list li:hover .award-copy {
  text-shadow: 0 0 16px rgba(232, 198, 127, 0.42);
}

.award-list span {
  color: rgba(232, 198, 127, 0.82);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.1em;
  line-height: 1;
}

.award-list p, .award-list em {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.005em;
  text-transform: none;
  font-style: normal;
  color: var(--ink);
}

.award-list p { font-size: clamp(16px, 1.4vw, 22px); }
.award-list em { font-size: clamp(13px, 1vw, 16px); color: var(--ink-soft); font-weight: 600; }

.award-list p { font-size: clamp(15px, 1.35vw, 22px); line-height: 1.18; }
.award-list em { font-size: clamp(11px, 0.85vw, 14px); font-style: normal; letter-spacing: 0.18em; line-height: 1.4; }

/* ===== Contact ===== */
.contact {
  position: relative;
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(80px, 9vw, 130px);
}

.contact__fin {
  display: block;
  margin-bottom: clamp(24px, 3vw, 44px);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 26px);
  font-style: italic;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
}

.contact__title { font-size: clamp(22px, 2.4vw, 36px); }

.contact-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px) clamp(32px, 5vw, 80px);
  margin-top: clamp(36px, 4vw, 60px);
  padding: clamp(28px, 4vw, 60px) clamp(20px, 3vw, 40px);
}

.contact-frame::before {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-line), transparent);
  content: "";
  transform: translateX(-50%);
}

@media (max-width: 720px) {
  .contact-frame { grid-template-columns: 1fr; gap: 36px; }
  .contact-frame::before {
    left: 0; right: 0; top: 50%; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-line), transparent);
    transform: translateY(-50%);
  }
}

.contact-card {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.contact-card__role {
  font-family: var(--serif);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

.contact-card__name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 20px);
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-card a {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 500;
  color: var(--ink);
  transition: color 320ms ease, transform 320ms var(--ease-out);
}

.contact-card a::after {
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--gold-line);
  content: "";
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 420ms var(--ease-out), background 320ms ease;
}

.contact-card a:hover { color: var(--gold); }
.contact-card a:hover::after { transform: scaleX(1); background: var(--gold); }

.contact-social {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: clamp(20px, 3vw, 40px);
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.contact-social a { position: relative; color: inherit; transition: color 320ms ease; }
.contact-social a:hover { color: var(--ink-soft); }

/* ===== Footer ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: min(1520px, calc(100vw - clamp(28px, 6vw, 120px)));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 48px);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.site-footer__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

/* ===== Vimeo lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 60px);
  background: rgba(5, 4, 3, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms var(--ease-out), visibility 400ms ease;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__frame {
  position: relative;
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: clamp(8px, 0.6vw, 14px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 60px 130px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(243, 230, 199, 0.22);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 520ms var(--ease-out), opacity 360ms ease;
}

.lightbox.is-open .lightbox__frame { transform: scale(1); opacity: 1; transition-delay: 80ms; }

.lightbox iframe { width: 100%; height: 100%; border: 0; display: block; }

.lightbox__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(243, 230, 199, 0.6);
  pointer-events: none;
  background: #000;
  opacity: 1;
  transition: opacity 360ms ease;
}

.lightbox.is-iframe-loaded .lightbox__loading { opacity: 0; }

/* Caption sits BELOW the player, dead-center, so it doesn't fight the Vimeo overlay
   in the top-right of the iframe (which we can't suppress without a Vimeo Pro account). */
.lightbox__caption {
  position: absolute;
  bottom: clamp(20px, 4vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 16px;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms ease;
  max-width: min(86%, 900px);
  text-align: center;
}

.lightbox.is-open .lightbox__caption { opacity: 1; transition-delay: 240ms; }

/* Both brand and title in the same italic Cormorant — matches the film card corners */
.lightbox__heading,
.lightbox__title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 26px);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.005em;
  display: inline-block;
}

.lightbox__heading + .lightbox__title::before {
  content: "· ";
  color: var(--ink-mute);
  margin-right: 2px;
}

.lightbox__sub { display: none; }

.lightbox__close {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  display: grid;
  place-items: center;
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
  border-radius: 50%;
  background: rgba(243, 230, 199, 0.92);
  color: var(--noir);
  z-index: 401;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  transition: transform 320ms var(--ease-out), background 220ms ease;
}

.lightbox__close:hover {
  background: var(--gold);
  transform: rotate(90deg);
}

/* ===== Now playing indicator ===== */
.now-playing {
  position: fixed;
  bottom: clamp(16px, 2vw, 28px);
  left: clamp(16px, 2vw, 28px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms var(--ease-out);
  font-family: var(--sans);
  color: var(--ink-mute);
  max-width: 60ch;
}

.now-playing.is-visible { opacity: 1; transform: translateY(0); }

.now-playing__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.now-playing__divider { opacity: 0.55; }

.now-playing__index {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.78;
}

.now-playing__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.15;
  color: rgba(26, 20, 14, 0.78);
}

@media (max-width: 640px) {
  .now-playing { bottom: 12px; left: 12px; gap: 2px; }
  .now-playing__title { font-size: 13px; }
}

body.is-modal-open .now-playing { opacity: 0; }

/* ===== Audio toggle ===== */
.audio-toggle {
  position: fixed;
  z-index: 250;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(243, 230, 199, 0.3);
  border-radius: 999px;
  background: rgba(20, 16, 11, 0.7);
  backdrop-filter: blur(6px);
  color: rgba(243, 230, 199, 0.78);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  transition: opacity 600ms ease, transform 600ms var(--ease-out), background 320ms ease, color 320ms ease, border-color 320ms ease;
  opacity: 1;
  pointer-events: auto;
  animation: pulse-invite 2400ms ease-in-out 0ms 3;
}

body.has-entered .audio-toggle { animation: none; }

@keyframes pulse-invite {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 230, 199, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(243, 230, 199, 0.22); }
}

.audio-toggle:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.audio-toggle__icon { width: 18px; height: 18px; }
.audio-toggle__on-arc, .audio-toggle__off-line { transition: opacity 220ms ease; }
.audio-toggle[aria-pressed="false"] .audio-toggle__on-arc { opacity: 0; }
.audio-toggle[aria-pressed="true"]  .audio-toggle__off-line { opacity: 0; }

.audio-toggle__hint {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--hand);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(243, 230, 199, 0.6);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 600ms ease;
}

body:not(.has-entered) .audio-toggle__hint { opacity: 1; }
.audio-toggle[aria-pressed="true"] .audio-toggle__hint { opacity: 0; }

.audio-toggle__waves {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
}

.audio-toggle[aria-pressed="true"] .audio-toggle__waves { opacity: 1; }

.audio-toggle__waves span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 230, 199, 0.4);
  border-radius: 999px;
  animation: ripple 2200ms ease-out infinite;
  opacity: 0;
}

.audio-toggle__waves span:nth-child(2) { animation-delay: 700ms; }
.audio-toggle__waves span:nth-child(3) { animation-delay: 1400ms; }

@keyframes ripple {
  0%   { transform: scale(0.96); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== Magnetic helper ===== */
[data-magnetic] {
  --mx: 0;
  --my: 0;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 360ms var(--ease-out);
}

[data-magnetic]:hover { transition: transform 80ms linear; }

/* ===== Shared keyframes ===== */
@keyframes signature-reveal {
  0%   { clip-path: inset(0 100% 0 0 round 2px); opacity: 0; }
  18%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round 2px); opacity: 1; }
}

@keyframes signature-pen {
  0%   { opacity: 0; transform: translateX(-95%) rotate(-4deg); }
  22%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateX(250%) rotate(5deg); }
}

@keyframes award-banner-breathe {
  0%, 100% { filter: brightness(1.05) drop-shadow(0 0 16px rgba(232, 198, 127, 0.22)); }
  52%      { filter: brightness(1.2) drop-shadow(0 0 24px rgba(232, 198, 127, 0.44)); }
}

@keyframes award-text-shine {
  0%, 56%   { background-position: 120% 0; }
  82%, 100% { background-position: -120% 0; }
}

@keyframes menu-award-shine {
  0%, 56%   { background-position: 120% 0; }
  82%, 100% { background-position: -120% 0; }
}

@media (max-width: 920px) { .award-list { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  /* Bigger, finger-sized Enter button on phones */
  .opening-enter {
    padding: 18px 44px;
    font-size: 14px;
    letter-spacing: 0.36em;
    min-height: 48px;
  }

  /* Header: signature only (byline already hidden via :399), nav compact */
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 60px;
    padding: 10px var(--rail);
  }
  .logotype__mark { width: 56px; }
  .primary-nav { justify-content: flex-end; gap: 14px; }
  .primary-nav__label { font-size: 13px; }

  /* Section titles tighter */
  .section-title { font-size: clamp(18px, 5vw, 24px); }
  .contact__title { font-size: clamp(20px, 6vw, 28px); }

  /* Awards: 1 column, laurel scaled up so the same desktop type proportions
     can fit inside without shrinking the type itself */
  .award-list { row-gap: 22px; }
  .award-list li {
    min-height: 210px;
    padding: 22px 10px;
  }
  .award-list li::before { display: none; }       /* drop the warm radial glow on mobile (perf) */
  .award-banner img {
    width: min(380px, 92vw);                      /* big laurel so the desktop-sized copy fits */
    filter: brightness(1.08) drop-shadow(0 0 10px rgba(232, 198, 127, 0.2));
    animation: none;                              /* drop the breathing on phones */
  }
  .award-copy {
    gap: 6px;
    width: min(240px, 64vw);                      /* matches the readable area of the wreath */
  }
  /* Keep the same type ratios as desktop (year:title:citation ≈ 12:18:12) */
  .award-list span {
    font-size: 12px;
    letter-spacing: 0.1em;
    line-height: 1;
  }
  .award-list p {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.005em;
  }
  .award-list em {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.35;
    color: var(--ink-soft);
  }

  /* Footer stacks */
  .site-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 11px;
  }
  .site-footer__rule { display: none; }

  /* Lightbox: bigger close button, simpler caption */
  .lightbox__close { width: 44px; height: 44px; top: 14px; right: 14px; }
  .lightbox__caption { bottom: 14px; max-width: calc(100% - 32px); }
  .lightbox__heading,
  .lightbox__title { font-size: 14px; }
  .lightbox__heading + .lightbox__title::before { content: " · "; }

  /* Contact: vertical stack, tighter gaps */
  .contact { padding-top: 40px; padding-bottom: 60px; }
  .contact-frame { padding: 20px 12px; }
  .contact-card a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .opening { display: none; }
  body.is-locked { overflow: auto; }
  body { cursor: auto; }

  .grain, .wash, .dust, .cursor, .cursor-trail { display: none; }

  .film-card { opacity: 1; transform: none; }
  body.is-awards-ready .award-list li { opacity: 1; transform: none; }
}
