/* ---------------------------------------------------------------
   Design tokens — dark, cinematic. Swap for Ian's brand if he
   supplies colors/fonts.
   --------------------------------------------------------------- */
:root {
  --color-bg: #0e0e0e;
  --color-surface: #1a1a1a;
  --color-text: #f2f2f2;
  --color-muted: #9a9a9a;
  --color-accent: #e4572e; /* placeholder accent */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font-body);
  --max-width: 1200px;
  --space: 1.5rem;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Placeholder blocks until real media arrives */
.ph {
  background: var(--color-surface);
  border: 1px dashed #333;
  border-radius: 2px;
  min-height: 240px;
}

/* ---------------------------------------------------------------
   Splash homepage (alanaswaringen-style: name, enter link, socials)
   --------------------------------------------------------------- */
.splash-page { display: grid; min-height: 100vh; place-items: center; }

/* Background slideshow: stacked full-viewport layers that crossfade.
   Works with placeholder divs now and <img class="slide"> later. */
.slideshow { position: fixed; inset: 0; z-index: -2; }
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* applies when slides become <img> */
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slideshow .slide.is-active { opacity: 1; }

/* Scrim between slideshow and text: dark pool behind the name for
   readability, fading out so the photos stay vivid at the edges */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 65% 55% at 50% 48%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12) 78%);
}

.splash { text-align: center; padding: var(--space); }
.splash-name {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  margin: 0;
  letter-spacing: 0.02em;
}
.splash-tagline {
  color: var(--color-muted);
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0.75rem 0 3rem;
}
.splash-enter {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.splash-enter:hover { color: var(--color-accent); }
.splash-socials { margin-top: 4rem; display: flex; gap: 2rem; justify-content: center; }
.splash-socials a { color: var(--color-muted); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.splash-socials a:hover { color: var(--color-text); }

/* ---------------------------------------------------------------
   Inner-page header / nav (lorentoney-style category tabs)
   --------------------------------------------------------------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space);
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo { font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.nav a {
  color: var(--color-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 2px;
}
.nav a:hover { color: var(--color-text); }
.nav a.active { color: var(--color-text); border-bottom: 1px solid var(--color-accent); }

main { max-width: var(--max-width); margin: 0 auto; padding: var(--space); }

/* ---------------------------------------------------------------
   Masonry photo grid (veesanders/Format-style)
   --------------------------------------------------------------- */
.masonry { columns: 3 300px; column-gap: 1rem; }
.masonry > * {
  break-inside: avoid;
  margin-bottom: 1rem;
  width: 100%;
}
.masonry img {
  background: var(--color-surface); /* placeholder tone while loading */
  transition: opacity 0.5s ease-out;
}
.masonry img.is-loading { opacity: 0; }
.masonry img:hover { opacity: 0.85; }
/* placeholder aspect variety so the masonry shape reads before photos exist */
.masonry .ph { min-height: 260px; }
.masonry .ph-tall { min-height: 420px; }
.masonry .ph-wide { min-height: 180px; }

/* ---------------------------------------------------------------
   Video grids (music videos + short films)
   --------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.film-list { display: grid; gap: 3rem; max-width: 900px; margin: 0 auto; }

.video-frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
  width: 100%;
  position: relative;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-title { font-size: 1.1rem; margin: 0.75rem 0 0.15rem; }
.video-meta { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

.section-heading {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 3.5rem 0 1.5rem;
}
.section-heading:first-of-type { margin-top: 0.5rem; }

/* Collapsible full cast/crew list under a video card */
.credits {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.credits summary { cursor: pointer; width: fit-content; }
.credits summary:hover { color: var(--color-accent); }
.credits p { margin: 0.5rem 0 0; line-height: 1.7; }
.credits h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0.9rem 0 0.1rem;
  color: var(--color-text);
}

/* ---------------------------------------------------------------
   About (izqueerdo-style: portrait, bio below)
   --------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 3rem;
  align-items: start;
}
.about-portrait { margin: 0; }
/* stack portrait above text on narrow screens */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-portrait { max-width: 480px; }
}
.about-bio h1 { font-size: 2.25rem; margin-top: 0; }
.about-bio p { color: #d5d5d5; }
.about-signoff { font-style: italic; margin-top: 2rem; }
.about-contact { margin-top: 3rem; }
.about-contact h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); }
.about-email { border-bottom: 1px solid var(--color-accent); }
.about-email:hover { color: var(--color-accent); }
.about-socials { margin-top: 1rem; display: flex; gap: 1.5rem; }
.about-socials a { color: var(--color-muted); }
.about-socials a:hover { color: var(--color-text); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  padding: var(--space);
  border-top: 1px solid #262626;
  color: var(--color-muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer a:hover { color: var(--color-text); }
.footer-socials { display: flex; gap: 1.5rem; }
