/* =====================================================================
   L5P PICTURE SHOW — styles.css
   Design system ported EXACTLY from www.joelsilverman.com (Calluna Sans body,
   Cormorant Garamond + Lato headings, the four-edge feather "blur" on every
   video, the layered drop-shadow elevation stack), with two deliberate
   departures requested for this site:
     • Wordmark  = Bungee (gold #f1ce72 face) + Bungee Shade (black shade layer)
     • Page bg   = #14406c
   Cache-buster: this file is linked as styles.css?v=N — bump N on every edit.
   ===================================================================== */

/* ---- Fonts (all served local; see fonts/) -------------------------- */
@font-face {
  font-family: "calluna-sans";
  src: url("fonts/CallunaSansRegular/font.woff2") format("woff2"),
       url("fonts/CallunaSansRegular/font.woff")  format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "calluna";
  src: url("fonts/CallunaRegular/font.woff2") format("woff2"),
       url("fonts/CallunaRegular/font.woff")  format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
/* Cormorant Garamond + Lato come from fonts/google-fonts.css   */
/* Bungee + Bungee Shade come from fonts/bungee-fonts.css       */

:root {
  --l5p-blue:   #14406c;   /* page background (poster blue)        */
  --l5p-blue-2: #102f50;   /* slightly darker for footer/panels    */
  --l5p-gold:   #f1ce72;   /* wordmark + accent gold               */
  --l5p-cream:  #f3efe2;   /* warm off-white body text on blue     */
  --l5p-ink:    #0a1a2c;   /* deep shadow ink                      */

  --body-font:    "calluna-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --heading-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --label-font:   "Lato", -apple-system, "Helvetica Neue", Helvetica, sans-serif;
}

/* ---- Base ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--l5p-blue);
  color: var(--l5p-cream);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--heading-font); font-weight: 600; line-height: 1.1; margin: 0 0 0.4em; }
a { color: var(--l5p-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(1100px, 92vw); margin-inline: auto; }
.section { padding: clamp(3rem, 8vh, 6rem) 0; }

/* small caps label (the poster's "ATLANTA EXPERIMENTAL CINEMA" style) */
.label {
  font-family: var(--label-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--l5p-gold);
  font-size: 0.82rem;
}

/* =====================================================================
   WORDMARK — the only type departure from joelsilverman.com.
   Bungee (gold #f1ce72 face) with a stacked black "long shadow" extruded
   down-right → the poster's 3D black drop-shadow. Shadow depth is in `em`,
   so it scales with the wordmark at any size. (Bungee Shade as a second
   overlay font was abandoned: its glyph advances are wider than Bungee's,
   so the layers drift apart across a word.)
   ===================================================================== */
.wordmark {
  margin: 0;
  display: inline-flex; flex-direction: column;
  font-family: "Bungee", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--l5p-gold);
  line-height: 1.04;
  text-shadow:
    0.02em 0.02em 0 #000, 0.04em 0.04em 0 #000, 0.06em 0.06em 0 #000,
    0.08em 0.08em 0 #000, 0.10em 0.10em 0 #000, 0.12em 0.12em 0 #000,
    0.14em 0.14em 0 #000;
}
.wm-line { display: block; white-space: nowrap; }

/* =====================================================================
   HERO  — full-bleed orbit video, gold wordmark (no header; branding is here)
   ===================================================================== */
.hero {
  position: relative;
  /* Full-width banner. The clip is pre-cropped to 3840x1700 (2.259:1), shown
     whole at full width. Wordmark sits over the truck (top), tagline under it
     (bottom), credit bottom-right. */
  width: 100%;
  aspect-ratio: 3840 / 1700;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center;
  overflow: hidden;
  padding: clamp(0.8rem, 3.2vh, 2.6rem) 1rem;
}
/* wrapper around video + credit: inert on desktop (display:contents → no box, so the
   video/credit behave exactly as before), becomes the video frame on mobile (see media query) */
.hero__media { display: contents; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;   /* center band */
  z-index: 0;
}
/* clip credit — flush to the bottom-right of the banner, right-justified, 9pt */
/* clip credit — runs vertically up the right edge (Calluna Sans bold, 14pt),
   reading top-to-bottom, anchored to the BOTTOM-right corner. */
.hero__credit {
  position: absolute; right: 0.25rem; bottom: 0.4rem; z-index: 2; margin: 0;
  padding-bottom: 0.5em;     /* sit two spaces up from the bottom */
  writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap;
  font-family: "calluna-sans", -apple-system, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 700;          /* Calluna Sans Bold (faux-bold; kit ships Regular only) */
  font-size: 14pt;
  color: #fff;
  opacity: 0.8;              /* no drop-shadow */
  pointer-events: none;
}
.hero__credit em { font-style: italic; }
/* No artificial scrim — the video is shown as-is (the wordmark's own black
   long-shadow carries legibility). Darkening, if wanted, is done in the video. */
/* wordmark (top, over the truck) + tagline (bottom, under the truck) sit above the video */
.hero > .wordmark, .hero > .hero__tagline { position: relative; z-index: 2; }
.hero .wordmark { align-items: center; font-size: clamp(1.5rem, 6.4vw, 5rem); }   /* sized to fit on ONE line */
.hero__tagline {
  font-family: var(--label-font); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--l5p-gold);
  font-size: clamp(1.3rem, 3.3vw, 22pt);   /* 22pt at desktop */
  position: relative; top: 1.2em;          /* nudge down ~one line — clear the sidewalk */
  /* hard black drop-shadow + halo so it reads over any video frame */
  text-shadow: 1.5px 1.5px 0 #000, 0 0 5px #000;
}
.hero__tagline span { white-space: nowrap; }

/* =====================================================================
   MEDIA TREATMENT  (ported verbatim from joelsilverman.com)
   The "blur": four-edge feather mask. 25px for an internally-served
   <video>; 10px for an embedded Vimeo <iframe>.
   ===================================================================== */
video.sqs-native-video-local {
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 25px, #000 calc(100% - 25px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 25px, #000 calc(100% - 25px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0, #000 25px, #000 calc(100% - 25px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 25px, #000 calc(100% - 25px), transparent 100%);
  mask-composite: intersect;
}
iframe[src*="player.vimeo.com"] {
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  mask-composite: intersect;
}
/* Still photos: layered "elevation stack" drop-shadow, biased bottom-right. */
.elevated {
  filter:
    drop-shadow(1px 2px 3px rgba(0,0,0,0.34))
    drop-shadow(6px 9px 12px rgba(0,0,0,0.24))
    drop-shadow(16px 24px 34px rgba(0,0,0,0.16));
}

/* =====================================================================
   CONTENT SECTIONS
   ===================================================================== */
.intro { text-align: center; padding-top: 3.3rem; padding-bottom: 0.5rem; }   /* reduced top gap; tight before "This Season" */
.intro .wrap { width: min(1500px, 96vw); }   /* wide enough to keep the first half on one line (2-line intro, full font) */
.intro p {
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  line-height: 1.7;
  margin: 1.2rem 0 0;   /* full width — no artificial measure cap */
}
.intro a { border-bottom: 1px solid rgba(241,206,114,0.5); }

.section h2 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--l5p-cream);
}
.section h2 em { color: var(--l5p-gold); font-style: italic; }

/* schedule */
.schedule { text-align: center; padding-top: 2.75rem; }   /* gap after the intro */
.schedule__grid {
  display: grid; gap: 1rem; margin-top: 0;   /* "This Season" heading removed */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* tighten the gap between the schedule cards and the Call-for-Entries box */
#entries { padding-top: 2.5rem; }
.schedule__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(241,206,114,0.22);
  border-radius: 10px; padding: 1.4rem 1.2rem;
}
.schedule__card .when { font-family: var(--heading-font); font-size: 1.6rem; color: var(--l5p-gold); }
.schedule__card .when-date { font-size: 1.45rem; font-weight: 700; line-height: 1.5; margin-top: 0.7rem; white-space: nowrap; }   /* enlarged + bold, one line */
.schedule__artist { font-size: 1.45rem; line-height: 1.5; margin-top: 0.9rem; }   /* match the date size */
.schedule__artist a { color: var(--l5p-gold); border-bottom: 1px solid rgba(241,206,114,0.4); }
.schedule__card .where-addr { font-size: 1.6rem; line-height: 1.45; }   /* match the "Where" heading size */

/* "Masha Vlasova" — ROYGBIV rainbow glow, 4000ms, linear (no ramp) */
@property --name-hue { syntax: "<number>"; inherits: false; initial-value: 0; }
.rainbow-name {
  animation: name-rainbow 4000ms linear infinite;
  text-shadow:
    0 0 5px  hsl(calc(var(--name-hue) * 1deg) 100% 60%),
    0 0 12px hsl(calc(var(--name-hue) * 1deg) 100% 55%),
    0 0 22px hsl(calc(var(--name-hue) * 1deg) 100% 50%);
}
@keyframes name-rainbow { to { --name-hue: 360; } }
.placeholder { color: var(--l5p-gold); opacity: 0.85; font-style: italic; }

/* call for entries */
.cfe { text-align: center; background: var(--l5p-blue-2); border-radius: 14px; padding: clamp(2.2rem,5vw,3.5rem); }
.cfe p { max-width: 50ch; margin: 1rem auto 0; font-size: 1.12rem; }
.cfe .cfe__body { max-width: none; font-size: clamp(1.15rem, 2.3vw, 1.5rem); }   /* full width; match the intro body size */
.btn {
  display: inline-block; margin-top: 1.8rem;
  font-family: var(--label-font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--l5p-gold); color: var(--l5p-ink);
  padding: 0.95rem 1.9rem; border-radius: 999px;
  box-shadow: 0 6px 0 #c9a23e, 0 14px 22px -10px rgba(0,0,0,0.6);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { text-decoration: none; transform: translateY(2px); box-shadow: 0 4px 0 #c9a23e, 0 10px 18px -10px rgba(0,0,0,0.6); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 #c9a23e; }

/* =====================================================================
   SPONSORS / FOOTER
   ===================================================================== */
.site-footer { background: var(--l5p-blue-2); padding: clamp(2.5rem,6vw,4rem) 0 3rem; text-align: center; border-top: 1px solid rgba(241,206,114,0.18); }
/* label sits to the LEFT of the logos, on one row (saves vertical space) */
.sponsors { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); }
.sponsors__line { margin: 0; font-family: var(--label-font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--l5p-cream); opacity: 0.85; }
.sponsors__logos { display: flex; flex-wrap: wrap; gap: clamp(2rem,6vw,4rem); align-items: center; justify-content: center; margin: 0; }
/* Transparent logos sit directly on the blue (no chip). Sized for optical
   balance: the Porter is a wide horizontal lockup; the Alliance is a taller
   badge with "ALLIANCE" stacked under the circle. */
.sponsors__logos img { width: auto; }
.sponsors__logos img.logo-porter   { height: clamp(40px, 8vw, 60px); }
.sponsors__logos img.logo-alliance { height: clamp(70px, 13vw, 100px); }
.colophon { font-size: 0.85rem; opacity: 0.7; margin-top: 3rem; text-align: right; }
.colophon a { border-bottom: 1px solid rgba(241,206,114,0.4); }

/* =====================================================================
   RESPONSIVE — MOBILE (iPhone / Android phones, ≤600px)
   The DESKTOP design is locked; every rule below lives inside this media
   query so it NEVER affects ≥601px. The strategy: stop cropping the
   landscape hero into a portrait sliver — stack it (wordmark → whole video
   → tagline → caption) — and ramp every desktop-sized value down to phone
   scale while killing the nowrap / fixed-pt / manual-<br> traps.
   ===================================================================== */
@media (max-width: 600px) {
  body { font-size: 17px; }

  /* ---- HERO: stack, don't crop. Show the WHOLE box-truck banner. ---- */
  .hero {
    aspect-ratio: auto;        /* drop the 2.26:1 crop box */
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1rem 1.4rem;
    overflow: visible;
  }
  .hero .wordmark {
    order: 1;
    font-size: clamp(1.5rem, 7.2vw, 2.6rem);   /* holds one line down to 320px */
  }
  /* the wrapper becomes the contained video frame + positioning context for the credit */
  .hero__media {
    order: 2;
    display: block; position: relative;
    width: 100%; aspect-ratio: 3840 / 1700;    /* whole clip */
    border-radius: 7px; overflow: hidden;
  }
  .hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  /* credit sits OVER the clip, bottom-right (mirrors the desktop placement) */
  .hero__credit {
    position: absolute; right: 0.5rem; bottom: 0.35rem; z-index: 3; margin: 0;
    writing-mode: horizontal-tb; text-orientation: mixed;
    white-space: nowrap; padding: 0;
    font-size: clamp(8px, 2.6vw, 10px);
    color: #fff; opacity: 0.95; text-align: right;
    text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 7px rgba(0,0,0,0.7);  /* legible over video */
  }
  .hero__tagline {
    order: 3;
    position: static; top: auto;               /* undo the desktop "clear the sidewalk" nudge */
    font-size: clamp(0.72rem, 3.2vw, 0.92rem); /* small enough each phrase fits one line @320 */
    letter-spacing: 0.08em;
    line-height: 1.5;
  }
  .hero__tagline span { white-space: nowrap; }            /* each phrase stays whole */
  .hero__tagline span:first-of-type::after {              /* one break after phrase 1 → exactly 2 lines */
    content: "\A"; white-space: pre;
  }

  /* ---- INTRO: drop the desktop hard break; ease the measure; even out the spacing
     around the "A series…" paragraph (one return off the top, one onto the gap below it) ---- */
  .intro { padding-top: 1rem; }                /* was 2.2rem — trims the gap above "A series" */
  .intro .wrap { width: 90vw; }
  .intro p { font-size: 1.12rem; line-height: 1.6; }
  .intro p.intro__credit { margin-top: 2.2rem; } /* was 1.2rem — adds the gap UNDER "A series" so it sits evenly (needs p.* to beat .intro p) */
  .intro-br { display: none; }                 /* hide the desktop <br>; a real space remains */

  /* ---- SCHEDULE: one column, no nowrap, phone-scale type ---- */
  .schedule { padding-top: 2rem; padding-bottom: 0.4rem; }   /* kill the huge .section bottom gap before #entries */
  .schedule__grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .schedule__card { padding: 1.25rem 1.1rem; }
  .schedule__card .when { font-size: 1.35rem; }
  .schedule__card .when-date { font-size: 1.18rem; white-space: normal; }  /* was nowrap → overflowed */
  .schedule__artist { font-size: 1.12rem; }
  .schedule__card .where-addr { font-size: 1.18rem; }

  /* ---- CALL FOR ENTRIES: full-width tappable button ---- */
  #entries { padding-top: 1.4rem; }
  .cfe { padding: 1.8rem 1.3rem; }
  .cfe .cfe__body { font-size: 1.1rem; }
  .btn { display: block; width: 100%; padding: 1.05rem 1rem; margin-top: 1.5rem; }

  /* ---- FOOTER: center + enlarge the tiny right-aligned colophon ---- */
  .sponsors { gap: 1.1rem; }
  .colophon { text-align: center; font-size: 0.95rem; opacity: 0.85; margin-top: 1.8rem; line-height: 1.9; }
}

/* Respect reduced-motion: the hero video still shows its poster frame */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   EXPERIMENT — rainbow shimmer on the wordmark drop-shadow.
   Cycles ONLY the drop-shadow color through the full spectrum
   (ROYGBIV) every 2000ms; the gold text is untouched.
   TO REVERT: delete this entire block (original black shadow
   lives in the .wordmark rule above; backup: styles_v25_pre-rainbow.css).
   ============================================================ */
@property --wm-hue {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.wordmark.__rainbow_on {   /* GLOW OFF for live — rename to ".wordmark" to re-enable */
  animation: wm-rainbow 8000ms cubic-bezier(0.85, 0, 0.15, 1) infinite;   /* slower still (8s), longer speed-ramp */
  text-shadow:
    /* 2px pure-black separator first (on top, nearest the gold) */
    1px 1px 0 #000,
    2px 2px 0 #000,
    /* then the rainbow extrusion behind it */
    0.024em 0.024em 0 hsl(calc(var(--wm-hue) * 1deg) 100% 50% / 0.1),
    0.048em 0.048em 0 hsl(calc(var(--wm-hue) * 1deg) 100% 50% / 0.1),
    0.072em 0.072em 0 hsl(calc(var(--wm-hue) * 1deg) 100% 50% / 0.1),
    0.096em 0.096em 0 hsl(calc(var(--wm-hue) * 1deg) 100% 50% / 0.1),
    0.12em 0.12em 0 hsl(calc(var(--wm-hue) * 1deg) 100% 50% / 0.1),
    0.144em 0.144em 0 hsl(calc(var(--wm-hue) * 1deg) 100% 50% / 0.1),
    0.168em 0.168em 0 hsl(calc(var(--wm-hue) * 1deg) 100% 50% / 0.1);
}
@keyframes wm-rainbow { to { --wm-hue: 360; } }
