/* ============================================================
   AINHOA BARRIO — PORTFOLIO STYLESHEET (single-page site)
   The palette lives in ":root" below — change a colour code
   there and it changes everywhere.
   ============================================================ */

:root {
  /* The five brand tones */
  --dusty-rose:   #9E7C81;
  /* --dark stays a near-black: it is the letterbox behind videos, never a
     page colour. The footer has its own tokens below. */
  --dusty-plum:   #70465B;
  --rosewood:     var(--dark);
  --antique-rose: #73525F;   /* muted labels */
  --dusty-mauve:  #735D69;

  /* The accent (Ainhoa 2026-09-02: "move it towards cherry, livelier") —
     interface forms only: hairlines, links, buttons, card edges, headings */
  --accent:      #841563;   /* accent: lines, card edges, buttons, underlines */
  --heading: #72195A;   /* headings in the display font */
  --brand-ink:   #72195A;   /* the name in the top bar */
  --box:         #FAF6F6;   /* cards and panels sitting on the background */
  /* The dark: footer, reading-room box, buttons. Aubergine with red in
     it, not brown (Ainhoa 2026-09-02). Options: see _palette-options.html */
  --dark:        #1A1016;
  /* Footer and the reading-room boxes: LIGHT now (Ainhoa 2026-09-02,
     "I wanted this site brighter"). Set --footer-bg to var(--dark) and
     --footer-ink to var(--pale) to go back to dark boxes. */
  --footer-bg:   #F6F0F0;
  --footer-ink:  #2B1D25;

  /* Very pale tint of the rose, used as the page background */
  --page-bg: #F6F0F0;

  /* The plum wash used on alternating bands (the screenwriter
     tint you liked, now used everywhere) */
  --band-bg: #EDE2E6;

  /* Body text colour */
  --ink: #2B1D25;

  /* Pale tone for text on dark backgrounds */
  --pale: #F6EFF0;

  /* Rounded corners, echoing the round font */
  --radius: 18px;
}

/* ---- Fantastica (display font, headings + name only) ---- */
@font-face {
  font-family: "Fantastica";
  src: url("../fonts/Fantastica.otf") format("opentype"),
       url("../fonts/Fantastica.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- Basics ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--page-bg);
  /* Subtle plaster/cement texture (code-generated placeholder).
     TO USE A REAL TEXTURE IMAGE LATER: replace the whole
     url("data:image/svg+xml,...") below with
     url("../images/your-texture-file.jpg") */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%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)' opacity='0.045'/%3E%3C/svg%3E");
}

h1, h2, h3, .brand {
  font-family: "Fantastica", "Inter", serif;
  font-weight: normal;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--heading); }

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

/* ---- Fade-in on scroll ----
   Elements with class "reveal" start invisible and glide up
   when they enter the screen (script in js/main.js). */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Placeholder blocks (until real images/videos arrive) ---- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--dusty-plum) 16%, #ffffff),
    color-mix(in srgb, var(--dusty-plum) 38%, #ffffff)
  );
}
.ph::after {
  content: attr(data-label);
  padding: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: color-mix(in srgb, var(--rosewood) 70%, transparent);
}

/* ============================================================
   STICKY TOP BAR — name left, section links right.
   Stays visible while scrolling so visitors can jump around.
   ============================================================ */
.site-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  /* Nearly transparent with a strong blur, so the bar takes on the
     colour of whatever sits behind it — seamless everywhere. */
  background: color-mix(in srgb, var(--page-bg) 25%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-bar .brand {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--brand-ink);
  text-decoration: none;
  margin: 0;
}

.site-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.7rem;
}

.site-bar nav a {
  color: var(--rosewood);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.site-bar nav a:hover,
.site-bar nav a:focus-visible {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

/* ============================================================
   HERO — portrait off-centre right, blended seamlessly into a
   background that matches the photo's own studio backdrop.
   ============================================================ */
.hero {
  /* The fixed bar floats on top, so the hero starts at the very
     top of the page and its gradient runs beneath the bar. */
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  align-items: end;
  gap: 2rem;
  padding: 7rem clamp(1.25rem, 7vw, 7rem) 0 clamp(1.25rem, 4vw, 3.5rem);
  /* Sampled from the headshot: pale lavender up top, warm rose
     at the bottom — so the photo has no visible box. */
  background: linear-gradient(180deg, #EAE7F2 0%, #E7DEE4 55%, #EBD9D6 100%);
}

.hero-kicker {
  margin: 0 0 12vh;
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 2.3;
  color: var(--antique-rose);
}

.hero-figure {
  margin: 0;
  height: min(78vh, 120vw);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Feathered edges: only the outer ~10% of each side melts into
     the background, so the face and hair stay crisp. The bottom
     edge stays solid where it meets the next section. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 8%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%),
              linear-gradient(180deg, transparent 0, #000 8%, #000 100%);
  mask-composite: intersect;
}

/* ============================================================
   SECTION BANDS — alternating pale / plum wash, with a
   discreet title off to the side and the work centre-stage.
   ============================================================ */
.band {
  padding: clamp(3rem, 7vh, 5rem) 0 clamp(3.5rem, 8vh, 5.5rem);
  /* Keeps section titles clear of the floating bar when jumping
     via the menu links */
  scroll-margin-top: 5.5rem;
}
/* Tinted bands fade in and out at their edges, so sections melt
   into each other instead of meeting in hard blocks. */
.band.tinted {
  background: linear-gradient(
    180deg,
    var(--page-bg) 0%,
    var(--band-bg) 14%,
    var(--band-bg) 86%,
    var(--page-bg) 100%
  );
}
/* The first band starts from the hero's bottom colour, so the
   hero fades straight into it. */
#photographer.band.tinted {
  background: linear-gradient(
    180deg,
    #EBD9D6 0%,
    var(--band-bg) 16%,
    var(--band-bg) 86%,
    var(--page-bg) 100%
  );
}

.band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Discreet section title: small, to the left, out of the way */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.75rem;
}
.sec-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--heading);
  margin: 0;
}
.sec-head h2::first-letter { font-size: 1.5em; }
.sec-head .sec-note {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-rose);
}

/* ============================================================
   CAROUSEL — main viewer centre-stage, neighbours peeking out
   beside and behind; swipe or use the arrows to move along.
   ============================================================ */
.carousel { position: relative; }

.car-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 16vw 2rem;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }

/* The negative margins make the photos overlap, so the neighbours
   sit clustered BEHIND the big centre photo. */
.car-item {
  flex: 0 0 auto;
  height: clamp(360px, 62vh, 600px);
  aspect-ratio: 3 / 4;
  margin: 0 clamp(-4.5rem, -6vw, -3rem);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: scale(0.62);
  opacity: 0.5;
  filter: saturate(0.85);
  transition: transform 0.45s ease, opacity 0.45s ease;
  cursor: pointer;
}
.car-item.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
  box-shadow: 0 22px 56px rgba(68, 47, 54, 0.3);
}
.car-item img,
.car-item .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.car-btn:hover { background: var(--rosewood); }
.car-prev { left: clamp(0.5rem, 3vw, 2rem); }
.car-next { right: clamp(0.5rem, 3vw, 2rem); }

.car-hint {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-rose);
  margin: 0;
}

/* ---- Full-screen viewer (opens when the centre photo is clicked) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(38, 22, 28, 0.93);
  padding: 3.5rem 1rem 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
}
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(246, 239, 240, 0.14);
  color: var(--pale);
  border-radius: 50%;
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.15rem;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(246, 239, 240, 0.3); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   SCREENWRITER — pilot cards
   ============================================================ */
.pilot {
  max-width: 780px;
  margin: 0 auto 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--box);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.pilot h3 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--heading);
}
.pilot h3::first-letter { font-size: 1.4em; }
.pilot .logline {
  font-style: italic;
  color: color-mix(in srgb, var(--ink) 85%, transparent);
}
.pilot .request {
  margin: 1.25rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dusty-plum);
}

/* ============================================================
   ACTOR — wide lead image, then image + text rows
   ============================================================ */
.actor-lead {
  margin: 0 0 2.5rem;
}
.actor-lead img {
  width: 100%;
  max-height: 66vh;
  object-fit: cover;
  border-radius: var(--radius);
}

.actor-row {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.actor-row:nth-of-type(even) { grid-template-columns: 1fr minmax(240px, 380px); }
.actor-row:nth-of-type(even) .actor-img { order: 2; }
.actor-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.actor-row h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--heading);
}
.actor-row h3::first-letter { font-size: 1.4em; }
.actor-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}
.actor-duo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

/* ============================================================
   FILMMAKER — one main viewer + thumbnails beside it that
   swap into the viewer when clicked
   ============================================================ */
.film-stage {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 240px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.film-viewer {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(68, 47, 54, 0.2);
}
.film-viewer iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.film-viewer figcaption,
.film-caption {
  margin-top: 0.8rem;
}
.film-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.video-thumb {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.video-thumb .ph,
.video-thumb img {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-thumb:hover .ph,
.video-thumb:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(68, 47, 54, 0.22);
}
.video-thumb .vt-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-rose);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  text-align: center;
  padding: 3rem 1.5rem;
}
.site-footer a { color: var(--footer-ink); }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin-bottom: 1.25rem;
}
.site-footer nav a {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { font-size: 0.8rem; opacity: 0.75; margin: 0; }

/* ============================================================
   PHONES & SMALL SCREENS
   ============================================================ */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 10rem; /* clears the two-row fixed bar on phones */
    padding-right: clamp(1.25rem, 4vw, 3.5rem);
    gap: 0;
  }
  .band { scroll-margin-top: 8.5rem; }
  .hero-kicker { display: none; }
  .hero-figure {
    height: auto;
    aspect-ratio: 4 / 5;
    width: min(100%, 440px);
    justify-self: end;
  }

  .car-track { padding: 1rem 14vw 1.5rem; }
  .car-item { height: clamp(280px, 48vh, 420px); margin: 0 -2.2rem; }

  .actor-row,
  .actor-row:nth-of-type(even) { grid-template-columns: 1fr; }
  .actor-row:nth-of-type(even) .actor-img { order: 0; }

  .film-stage { grid-template-columns: 1fr; }
  .film-thumbs { flex-direction: row; }
  .film-thumbs .video-thumb { flex: 1; }
}

/* ============================================================
   MULTI-PAGE SITE (added 2026-09-02) — landing doors, project
   pages, film grid, photo grid, actor credits, reading room.
   Everything below reuses the palette at the top of this file.
   ============================================================ */

/* ---- Top bar: mark the page you are on ---- */
.site-bar nav a[aria-current="page"] {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

/* ---- Landing page: name, one line, four doors ---- */
.landing {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 8rem clamp(1.25rem, 6vw, 6rem) 4rem;
  background: linear-gradient(180deg, #EAE7F2 0%, #E7DEE4 55%, #EBD9D6 100%);
}
.landing-name {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  color: var(--rosewood);
  margin: 0 0 0.35em;
}
.landing-line {
  max-width: 34rem;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 85%, transparent);
  margin: 0 0 3rem;
}
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.door {
  display: block;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--box);
  border-left: 4px solid var(--accent);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.door:hover, .door:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 14px 34px rgba(68, 47, 54, 0.16);
}
.door h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  overflow-wrap: anywhere;
  color: var(--heading);
  margin: 0 0 0.35em;
}
.door h2::first-letter { font-size: 1.4em; }
.door p { margin: 0; font-size: 0.92rem; }
.door .door-tag {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-rose);
}

/* ---- Inner pages: title block ---- */
.page-hero {
  padding: 8.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  color: var(--heading);
  margin: 0 0 0.3em;
}
.page-hero h1::first-letter { font-size: 1.35em; }
.page-hero .lede {
  max-width: 44rem;
  font-size: 1.12rem;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}
.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 5rem;
}
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1em; }

/* Small uppercase label used above groups of things */
.label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--antique-rose);
  margin: 3rem 0 1.2rem;
}

/* ---- Screenwriter: one card per project ---- */
.proj {
  max-width: 820px;
  margin: 0 0 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--box);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.proj h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: var(--heading);
  margin: 0 0 0.15em;
}
.proj h2::first-letter { font-size: 1.4em; }
.proj .format {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-rose);
  margin: 0 0 1.2rem;
}
.proj .logline {
  font-style: italic;
  font-size: 1.08rem;
  color: color-mix(in srgb, var(--ink) 90%, transparent);
}
.proj .materials {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.proj .materials strong {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--heading);
  display: block;
  margin-bottom: 0.3rem;
}
.proj .award {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  color: var(--dusty-plum);
}
.proj a { color: var(--heading); }

/* A short excerpt from a script, set like a script page */
.excerpt {
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.6rem;
  background: #FBF8F8;
  border-radius: calc(var(--radius) - 6px);
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--rosewood);
  white-space: pre-wrap;
  overflow-x: auto;
}
.excerpt-note {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-rose);
}

/* Two-up list of smaller projects (shorts, in development) */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 820px;
}
.proj-grid .proj { margin: 0; }
.proj-grid .proj h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }

/* Credentials: simple two-column list */
.creds {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.6rem 2rem;
}
.creds li {
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 0.92rem;
}
.creds li span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique-rose);
}

/* Reading-room call to action */
.cta {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  max-width: 820px;
  margin: 3rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--footer-bg);
  border-left: 4px solid var(--accent);
  color: var(--footer-ink);
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--heading); margin: 0 0 0.4em; }
.cta p { margin: 0 0 0.8em; }
.cta p:last-child { margin: 0; }
.cta a { color: var(--heading); }
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.cta .btn { color: var(--heading); border-color: var(--accent); }
.cta .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Filmmaker: grid of films, each plays in place ---- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.film {
  margin: 0;
}
.lite {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rosewood) center / cover no-repeat;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(68, 47, 54, 0.18);
}
.lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.lite .play span {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(246, 239, 240, 0.9);
  color: var(--rosewood);
  font-size: 1.4rem;
  padding-left: 0.3rem;
  transition: transform 0.3s ease;
}
.lite:hover .play span { transform: scale(1.08); }
.film h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  color: var(--heading);
  margin: 1rem 0 0.1em;
}
.film h2::first-letter { font-size: 1.4em; }
.film .format {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-rose);
  margin: 0 0 0.6rem;
}
.film p { margin: 0 0 0.5em; font-size: 0.95rem; }
.film .award {
  font-size: 0.86rem;
  color: var(--heading);
  font-weight: 500;
}

/* ---- Photographer: sections of masonry-ish grids ---- */
.photo-sec { margin-bottom: 3.5rem; }
.photo-sec h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--heading);
  margin: 0 0 1rem;
}
.photo-sec h2::first-letter { font-size: 1.5em; }
.photo-grid {
  columns: 3;
  column-gap: 1rem;
}
.photo-grid img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 6px);
  cursor: zoom-in;
  break-inside: avoid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(68, 47, 54, 0.2);
}
.photo-grid figure { margin: 0 0 1rem; break-inside: avoid; }
.photo-grid figure img { margin-bottom: 0.2rem; }
.photo-grid figcaption {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--antique-rose);
  margin-bottom: 0.6rem;
}
/* Draft-only block for photos still to be sorted — delete when done */
.draft-note {
  max-width: 820px;
  padding: 1rem 1.25rem;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---- Actor: credits table + skills ---- */
.actor-intro { max-width: 44rem; margin-bottom: 2.5rem; }
.credits {
  width: 100%;
  border-collapse: collapse;
  max-width: 820px;
  font-size: 0.92rem;
}
.credits th, .credits td {
  text-align: left;
  padding: 0.65rem 0.8rem 0.65rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  vertical-align: top;
}
.credits th {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique-rose);
}
.credits td:first-child { font-weight: 600; }
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem 1.5rem;
  max-width: 820px;
  font-size: 0.92rem;
}
.facts li span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique-rose);
}
.headshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}
.headshots img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

/* ---- Reading room: the gate, then the shelf ---- */
.gate {
  max-width: 30rem;
  margin: 1rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--box);
  border-left: 4px solid var(--accent);
}
.gate label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--antique-rose); margin-bottom: 0.5rem; }
.gate input {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.gate button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--pale);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.gate .err { color: #9B2C3F; font-size: 0.86rem; margin: 0.6rem 0 0; min-height: 1.2em; }
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
}
.shelf a {
  display: block;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--box);
  border-left: 4px solid var(--accent);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shelf a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(68, 47, 54, 0.16); }
.shelf h3 {
  font-size: 1.6rem;
  color: var(--heading);
  margin: 0 0 0.2em;
}
.shelf p { margin: 0; font-size: 0.88rem; }
.shelf .kind {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--antique-rose);
}
.hidden { display: none !important; }

@media (max-width: 760px) {
  .landing { padding-top: 9rem; }
  .page-hero { padding-top: 9.5rem; }
  .photo-grid { columns: 2; }
}
@media (max-width: 480px) {
  .photo-grid { columns: 1; }
}

/* Photo codes only show while the body carries class="draft" */
.photo-grid figcaption { display: none; }
body.draft .photo-grid figcaption { display: block; }

/* ============================================================
   REBUILD 2 Sept 2026 (evening): showreel home, project cards
   with a pop-up viewer, cherry accent. Inner pages have no
   big title any more — the menu shows where you are.
   ============================================================ */

/* ---- Home: the showreel is the hero ---- */
.reel-hero {
  padding: 7.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: 0;
}
.reel-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 1.4rem;
}
.reel-wrap { width: min(1040px, 100%); margin: 0 auto; }
.player-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rosewood);
  box-shadow: 0 26px 70px rgba(68, 47, 54, 0.28);
  cursor: pointer;
}
.player-hero video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease;
}
.player-hero video.swapping { opacity: 0; }
.player-hero .meta {
  position: absolute;
  left: 1.1rem; bottom: 0.95rem;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}
.sound-btn {
  position: absolute;
  right: 0.9rem; bottom: 0.8rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 0;
  background: rgba(246, 239, 240, 0.9);
  color: var(--rosewood);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.sound-btn:hover { transform: scale(1.06); background: #fff; }
.sound-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn .spk { fill: currentColor; stroke: none; }
.sound-btn .on { display: none; }
.sound-on .sound-btn .on { display: block; }
.sound-on .sound-btn .off { display: none; }
.reel-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 2rem;
  margin: 1.6rem 0 0;
}
.reel-links a {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heading);
  border-bottom: 1.5px solid transparent;
}
.reel-links a:hover { border-bottom-color: var(--accent); }

/* ---- Home: about me, under the reel ---- */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 5rem;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.about img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.about h2 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: var(--heading);
  margin: 0 0 0.4em;
}
.about h2::first-letter { font-size: 1.4em; }
.about .prose { max-width: 40rem; }

/* ---- Inner pages: the intro now starts the page (no big title) ---- */
.page-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7.5rem clamp(1.25rem, 4vw, 3rem) 1rem;
}
.page-intro .lede {
  max-width: 44rem;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.page-intro .prose p { color: color-mix(in srgb, var(--ink) 88%, transparent); }
.page-intro h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  color: var(--heading);
  margin: 2rem 0 0.5em;
}
.page-intro h2::first-letter { font-size: 1.4em; }

/* ---- Screenwriter: project cards. Click one and it opens in a
   pop-up window over the page. ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}
.card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.card-art {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #E7DEE4, #D9C6CE);
  box-shadow: 0 14px 36px rgba(68, 47, 54, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art.ph-art::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--heading);
}
.card:hover .card-art, .card:focus-visible .card-art {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(68, 47, 54, 0.22);
}
.card h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  color: var(--heading);
  margin: 0.9rem 0 0.1em;
}
.card h3::first-letter { font-size: 1.4em; }
.card .format {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-rose);
  margin: 0;
}
.card .award {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--heading);
}
.card .open-hint {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heading);
  border-bottom: 1.5px solid var(--accent);
}

/* The pop-up window. The page stays visible, dimmed, behind it. */
.modal {
  position: fixed; inset: 0;
  z-index: 90;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vh, 3rem) clamp(0.75rem, 3vw, 2rem);
  background: rgba(38, 22, 28, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal.open { display: flex; }
.modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--page-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -0.5rem -0.5rem 0 0;
  width: 2.6rem; height: 2.6rem;
  border: 0; border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover { background: var(--heading); }
.modal-panel h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: var(--heading);
  margin: 0 0 0.15em;
}
.modal-panel h2::first-letter { font-size: 1.4em; }
.modal-panel .format {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antique-rose);
  margin: 0 0 1.2rem;
}
.modal-panel .art {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  margin: 0 0 1.4rem;
  aspect-ratio: 21 / 9;
  background: linear-gradient(150deg, #E7DEE4, #D9C6CE);
}
.modal-panel .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-panel .logline {
  font-style: italic;
  font-size: 1.08rem;
  color: color-mix(in srgb, var(--ink) 90%, transparent);
}
.modal-panel .materials {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.modal-panel .materials strong {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--heading);
  display: block;
  margin-bottom: 0.3rem;
}
.modal-panel .award { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--heading); }
.modal-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.modal-nav button {
  font: inherit; cursor: pointer; border: 0; background: none;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--heading); padding: 0.3rem 0;
  border-bottom: 1.5px solid transparent;
}
.modal-nav button:hover { border-bottom-color: var(--accent); }
body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about img { max-width: 260px; }
  .reel-hero, .page-intro { padding-top: 9rem; }
}

/* ---- Filmmaker: poster → in-place player (streams from endlesss.ai) ---- */
.film .player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rosewood);
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(68, 47, 54, 0.18);
}
.film .player img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.film .player:hover img { transform: scale(1.03); }
.film .player video { position: absolute; inset: 0; width: 100%; height: 100%; display: none; background: #000; }
.film .player.is-playing video { display: block; }
.film .player.is-playing img, .film .player.is-playing .play { display: none; }
.film .player.is-playing { cursor: default; }
.film .player .play { position: absolute; inset: 0; display: grid; place-items: center; }
.film .player .play span {
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246, 239, 240, 0.9); color: var(--rosewood);
  font-size: 1.4rem; padding-left: 0.3rem; transition: transform 0.3s ease;
}
.film .player:hover .play span { transform: scale(1.08); }

/* ---- 2 Sept, late: alignment, buttons in the dark colour, PDF reader ---- */
.card { align-self: start; }
.gate button, .modal-close { background: var(--dark); }
.gate button:hover, .modal-close:hover { background: var(--heading); }
.shelf button {
  display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 1.4rem 1.5rem;
  border: 0; border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--box);
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shelf button:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(61, 20, 49, 0.16); }
/* The reader: documents open here, on the page, not as a download */
.reader {
  position: fixed; inset: 0; z-index: 95;
  display: none; align-items: center; justify-content: center;
  padding: clamp(0.75rem, 3vh, 2rem) clamp(0.5rem, 2vw, 1.5rem);
  background: rgba(20, 8, 16, 0.72);
}
.reader.open { display: flex; }
.reader-panel {
  position: relative;
  width: min(900px, 100%);
  height: 92vh;
  background: #EFE8EA;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.reader-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1rem 0.8rem 1.4rem;
  background: var(--footer-bg); color: var(--footer-ink);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.reader-bar button {
  border: 0; border-radius: 50%; width: 2.2rem; height: 2.2rem;
  background: var(--accent); color: #fff; font-size: 1rem; cursor: pointer;
}
.reader-bar button:hover { background: var(--heading); }
.reader-pages { flex: 1; overflow-y: auto; padding: 1rem; }
.reader-pages canvas {
  display: block; width: 100%; height: auto;
  margin: 0 auto 1rem; background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  -webkit-user-select: none; user-select: none;
}
.reader-note { text-align: center; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--antique-rose); padding: 1rem; }

/* ---- 3 Sept: prose columns sit in the middle of the page (Ainhoa:
   "the text doesn't go all the way, so centre it"). Cards stay wide. ---- */
.page-intro { text-align: center; }
.page-intro .lede { margin-left: auto; margin-right: auto; }
.intro-block {
  max-width: 46rem;
  margin: 3.5rem auto 0;
}
.intro-block p { margin-bottom: 1.1em; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.intro-block h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  color: var(--heading);
  margin: 2rem 0 0.5em;
}
.intro-block h2::first-letter { font-size: 1.4em; }
.creds, .cta { margin-left: auto; margin-right: auto; }
.page-main > .label { text-align: left; }
