/* ============================================================
   John Black Productions
   Dark, cinematic single-page. Built static / host-agnostic.
   ============================================================ */

:root {
  --black:      #050505;
  --black-2:    #0a0a0b;
  --bone:       #e9e6df;   /* warm off-white text */
  --mute:       #8c8b85;   /* muted captions */
  --faint:      #4a4a47;   /* hairlines */
  --silver:     #cdd0d2;   /* chrome from the logo */
  --green:      #8fbf93;   /* metallic green accent (logo) */
  --green-dim:  #5f7e63;
  --red:        #c4202a;   /* crimson — Miss del Río */
  --red-soft:   #d9636a;

  --display: "Fraunces", "Georgia", serif;          /* modern editorial display */
  --serif:   "Cormorant Garamond", Georgia, serif;  /* readable body */
  --sans:    "Jost", "Helvetica Neue", Arial, sans-serif; /* labels / nav */

  --measure: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Lenis smooth scroll (active only when JS adds the .lenis classes) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

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

.wrap {
  width: min(var(--measure), 88vw);
  margin-inline: auto;
}

/* ---------- Shared display type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.8rem;
  padding-left: 0.46em; /* optical: counter the trailing tracking */
}
.eyebrow--red { color: var(--red-soft); }

.rule {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--green-dim), transparent);
}

/* ============================================================
   ATMOSPHERE — grain, vignette, opening veil
   ============================================================ */

/* Opening veil — sits over everything, then lifts on load */
.veil {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.4s ease 0.2s;
}
body.lit .veil { opacity: 0; }

/* Animated film grain. Kept exactly viewport-sized (inset:0) so it can never
   cause horizontal overflow; the flicker comes from shifting the tiled texture. */
.grain {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 0.6s steps(4) infinite;
  will-change: background-position;
}
@keyframes grain {
  0%   { background-position: 0 0; }
  25%  { background-position: -34px 42px; }
  50%  { background-position: 24px -32px; }
  75%  { background-position: -22px -24px; }
  100% { background-position: 34px 22px; }
}

/* Soft vignette — pulls the eye to centre, deepens the edges */
.vignette {
  position: fixed; inset: 0;
  z-index: 190;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 42%, transparent 52%, rgba(0,0,0,0.55) 100%);
}

/* Slow drifting light — a barely-there breath of life across the dark */
.lightdrift {
  position: fixed; inset: -20%;
  z-index: 185;
  pointer-events: none;
  background: radial-gradient(38% 38% at 50% 50%, rgba(143,191,147,0.05), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  0%   { transform: translate(-12%, -8%) scale(1); }
  50%  { transform: translate(10%, 6%)  scale(1.15); }
  100% { transform: translate(8%, -10%) scale(1); }
}

/* ============================================================
   CUSTOM CURSOR  (enabled by JS only on fine-pointer devices)
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(233,230,223,0.55);
  border-radius: 50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease,
              width 0.35s var(--ease), height 0.35s var(--ease),
              margin 0.35s var(--ease),
              background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.cursor::after { /* centre dot */
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--bone);
  transition: opacity 0.3s ease;
}
body.has-cursor.lit .cursor { opacity: 1; }
/* grow + tint over interactive things */
.cursor.is-hover {
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-color: var(--green);
  background: rgba(143,191,147,0.08);
}
.cursor.is-hover::after { opacity: 0; }
body.has-cursor,
body.has-cursor a,
body.has-cursor .film__cover,
body.has-cursor .contact__email { cursor: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.4rem, 4vw, 3.2rem);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
/* scrim sits behind the links: solid at the top edge, fading to nothing at the
   bottom so there is no hard line and the links stay legible over any text. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -2.4rem; /* extend the fade below the bar */
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5,5,5,0.95) 0%,
    rgba(5,5,5,0.80) 38%,
    rgba(5,5,5,0.40) 70%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.nav.show { opacity: 1; transform: none; pointer-events: auto; }

.nav__mark {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav__mark-john  { color: var(--silver); }
.nav__mark-black { color: var(--green); }

.nav__links { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav__links a {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.4s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ============================================================
   HERO — the logo resolving from darkness
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* slow ambient light behind the logo */
.hero__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,191,147,0.12), transparent 65%);
  filter: blur(30px);
  opacity: 0;
  animation: glowIn 4s var(--ease) 0.6s forwards, glowBreathe 9s ease-in-out 4.6s infinite;
}
@keyframes glowIn { to { opacity: 1; } }
@keyframes glowBreathe {
  0%, 100% { transform: scale(1);    opacity: 0.9; }
  50%      { transform: scale(1.08); opacity: 0.5; }
}

.hero__logo {
  width: min(680px, 80vw);
  position: relative;
  z-index: 2;
}
/* a single light sheen sweeps across the chrome once it has resolved.
   Masked by the logo alpha so the highlight only touches the letters. */
.hero__sheen {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.6) 50%, transparent 58%);
  background-size: 250% 100%;
  background-position: 160% 0;
  -webkit-mask-image: url("assets/jbp-logo-alpha.png");
          mask-image: url("assets/jbp-logo-alpha.png");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: 0;
  animation: sheen 1.9s var(--ease) 3.4s 1;
}
@keyframes sheen {
  0%   { background-position: 160% 0; opacity: 0; }
  18%  { opacity: 1; }
  100% { background-position: -60% 0; opacity: 0; }
}
.hero__logo img {
  width: 100%;
  display: block;
  /* logo now has a true transparent background (alpha baked from luminance),
     so it composites cleanly on the dark page with no box. */
  /* the resolve-from-darkness animation */
  opacity: 0;
  filter: blur(24px) brightness(0.4);
  transform: scale(1.04);
  animation: resolve 3.6s var(--ease) 0.5s forwards;
}
@keyframes resolve {
  0%   { opacity: 0;    filter: blur(24px) brightness(0.4); transform: scale(1.04); }
  60%  { opacity: 1; }
  100% { opacity: 1;    filter: blur(0)    brightness(1);   transform: scale(1); }
}

.hero__tag {
  z-index: 2;
  margin-top: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--mute);
  padding-left: 0.5em;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 3s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 3.6s forwards;
  z-index: 2;
}
.scroll-cue__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--green), transparent);
  animation: cueSlide 2.2s ease-in-out infinite;
}
.scroll-cue__text {
  font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--mute); padding-left: 0.4em;
}
@keyframes cueSlide {
  0%, 100% { transform: scaleY(1);   transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(0.5); transform-origin: top; opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(7rem, 16vh, 13rem) 0; }
.about__lede {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.2vw, 3.3rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  max-width: 75%; /* ~3/4 of the page; full width on tablet & below */
  text-wrap: balance;
}
.about__lede em { font-style: italic; color: var(--green); }
.about__house {
  margin-top: clamp(3rem, 7vw, 5rem);
  max-width: 46ch;
  margin-left: auto;
}
.about__house .rule { margin-bottom: 1.6rem; }
.about__house p {
  font-size: 1.02rem;
  color: var(--mute);
  line-height: 1.85;
}
.about__house em { color: var(--bone); font-style: italic; }

/* ============================================================
   MISS DEL RÍO
   ============================================================ */
.film {
  position: relative;
  padding: clamp(7rem, 16vh, 13rem) 0 clamp(8rem, 18vh, 14rem);
  overflow: hidden;
}
/* Red atmosphere that fades in/out vertically so there is no hard seam
   where this section meets the pure-black sections above and below it. */
.film::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(72% 55% at 78% 34%, rgba(196,32,42,0.14), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.film__inner { position: relative; z-index: 2; }

.film__title {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 1.4rem;
}
.film__title-l { display: block; }
.film__title-l .rise { display: block; }
.film__title-l:first-child .rise {
  font-size: clamp(2.8rem, 8.5vw, 6.6rem);
  font-weight: 400;
  color: var(--bone);
  margin-left: -0.02em;
}
.film__title-l:last-child .rise {
  font-size: clamp(3.6rem, 11.5vw, 9rem);
  color: var(--red);
  text-shadow: 0 0 70px rgba(196,32,42,0.4);
}

.film__head { margin-bottom: clamp(3rem, 7vw, 5.5rem); }

/* Portrait + copy, side by side */
.film__stage {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}

/* Dolores portrait dissolving out of the black.
   No overflow:hidden — the mask provides the soft edges, and clipping here would
   expose a hard cut when the parallax shifts the image a few pixels. */
.film__portrait { position: relative; }
.film__portrait img {
  width: 100%;
  display: block;
  /* the photo's near-black background is crushed to pure black, so `screen`
     leaves nothing behind — only her lit figure shows. */
  mix-blend-mode: screen;
  /* Dedicated fade on every edge, intersected: she dissolves into the dark on
     all four sides (with a longer fade at the bottom) while her face stays crisp
     in the centre. Even feathering needs per-edge gradients — a radial only
     reaches the corners, leaving the mid-edges visible. */
  -webkit-mask-image:
    linear-gradient(to top,    #000 80%, transparent 100%),
    linear-gradient(to bottom, #000 48%, transparent 92%),
    linear-gradient(to left,   #000 76%, transparent 100%),
    linear-gradient(to right,  #000 76%, transparent 100%);
  -webkit-mask-composite: source-in, source-in, source-in, source-in;
  mask-image:
    linear-gradient(to top,    #000 80%, transparent 100%),
    linear-gradient(to bottom, #000 48%, transparent 92%),
    linear-gradient(to left,   #000 76%, transparent 100%),
    linear-gradient(to right,  #000 76%, transparent 100%);
  mask-composite: intersect;
  /* slow Ken Burns drift — `scale` is independent of `transform`, so it
     composes with the JS parallax translate rather than overwriting it. */
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform, scale;
}
@keyframes kenburns {
  from { scale: 1;    }
  to   { scale: 1.07; }
}

.film__copy p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.55;
  font-weight: 400;
  color: #d6d3cc;
  margin-bottom: 1.6rem;
  max-width: 34ch;
}
.film__copy em { color: var(--bone); font-style: italic; }

.film__status {
  font-family: var(--sans) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: 2.2rem;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-soft);
  box-shadow: 0 0 0 0 rgba(217,99,106,0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,99,106,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(217,99,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,99,106,0); }
}

/* Source novel — book cover as a key-lit object beside a short note */
.film__source {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 720px;
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.film__cover { position: relative; }
.film__cover img {
  width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow:
    0 30px 60px -18px rgba(0,0,0,0.9),
    0 0 45px -12px rgba(196,32,42,0.28);
  transform: perspective(1200px) rotateY(-7deg);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.film__cover:hover img {
  transform: perspective(1200px) rotateY(0deg) translateY(-6px);
  box-shadow:
    0 40px 75px -18px rgba(0,0,0,0.95),
    0 0 65px -8px rgba(196,32,42,0.42);
}
.film__source-text .eyebrow { margin-bottom: 1.1rem; }
.film__source-text p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--mute);
  max-width: 32ch;
}
.film__source-text em { font-style: italic; color: var(--bone); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  padding: clamp(8rem, 20vh, 15rem) 0;
  text-align: center;
}
/* soft green halo, masked top & bottom so it never seams */
.contact::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(143,191,147,0.07), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.contact__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow { padding-left: 0; margin-bottom: 1.8rem; }

.contact__lead {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  color: var(--bone);
  max-width: 18ch;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  text-wrap: balance;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--bone);
  padding: 0.7em 0;
  position: relative;
}
.contact__email-text { position: relative; }
.contact__email-text::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.contact__email-arrow {
  display: inline-block;
  color: var(--green);
  transform: translateX(0);
  transition: transform 0.45s var(--ease);
}
.contact__email:hover { color: #fff; }
.contact__email:hover .contact__email-text::after { transform: scaleX(1); }
.contact__email:hover .contact__email-arrow { transform: translateX(6px); }

.contact__place {
  margin-top: 2.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--mute);
  padding-left: 0.36em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  background: linear-gradient(180deg, transparent, rgba(143,191,147,0.025));
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.foot__mark {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.foot__mark-john  { color: var(--silver); }
.foot__mark-black { color: var(--green); }
.foot__tag {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mute);
}
.foot__note {
  margin-top: 1.6rem;
  max-width: 38ch;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--faint);
}

.foot__col-title {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin-bottom: 1.4rem;
}
.foot__nav { display: flex; flex-direction: column; gap: 0.85rem; }
.foot__nav a,
.foot__contact a {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  width: fit-content;
  transition: color 0.35s ease;
}
.foot__nav a:hover,
.foot__contact a:hover { color: var(--bone); }
.foot__contact a { font-size: 0.95rem; }
.foot__place {
  margin-top: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot__base {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* Cinematic line reveal: the text rises from behind a mask (film-title style) */
.reveal-rise {
  overflow: hidden;
  /* a touch of padding so italic overhangs / descenders are never clipped */
  padding-bottom: 0.08em;
}
.reveal-rise .rise {
  display: block;
  transform: translateY(110%);
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
.reveal-rise.in-view .rise { transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .about__lede { max-width: 100%; }
  .about__house { margin-left: 0; max-width: 52ch; }

  .film__stage { grid-template-columns: 1fr; gap: 2.5rem; }
  .film__portrait { width: 78%; max-width: 340px; margin: 0 auto; }
  .film__copy { text-align: center; }
  .film__copy p { max-width: 42ch; margin-inline: auto; }
  .film__status { justify-content: center; }

  .film__source { grid-template-columns: 150px 1fr; gap: 1.8rem; }
  .film__cover img { transform: none; }

  .foot__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
  .foot__brand { grid-column: 1 / -1; }

  .nav__mark { font-size: 0.82rem; letter-spacing: 0.24em; }
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: 0.66rem; letter-spacing: 0.16em; }
}

@media (max-width: 520px) {
  .nav { padding: 1.1rem 1.2rem; }
  .nav__mark span { display: none; } /* keep nav clean on small screens */
  .nav__mark::before { content: "JBP"; letter-spacing: 0.3em; color: var(--silver); }

  /* Source novel: stack and centre under the cover */
  .film__source {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    justify-items: center;
    text-align: center;
    padding-top: clamp(2.5rem, 8vw, 4rem);
  }
  .film__cover { width: 60%; max-width: 200px; }
  .film__source-text p { max-width: 34ch; margin-inline: auto; }

  .foot__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .foot__brand { grid-column: auto; }
  .foot__base { flex-direction: column; gap: 0.6rem; text-align: center; }
}

/* ============================================================
   ACCESSIBILITY — respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .hero__logo img { opacity: 1; filter: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-rise .rise { transform: none; }
  .film__portrait img { scale: 1; }
  .grain, .lightdrift, .hero__sheen, .cursor { display: none; }
}
