/* ============================================================
   EM Photography & Film — shared site styles
   Loaded by every page EXCEPT the splash (which uses splash.css).
   Palette: white bg · cream #FFF5F2 · beige #F4DFD0 · taupe #DAD0C2 · sand #CDBBA7
   Text/dark: ink #1a1a1a (dark brown retired)
   ============================================================ */

:root {
  --white:  #ffffff;
  --cream:  #FFF5F2;
  --beige:  #F4DFD0;
  --taupe:  #DAD0C2;
  --tan:    #CDBBA7;
  --brown:  #1a1a1a;        /* legacy var name, now near-black ink */
  --brown-soft: #555555;
  --ink:    #1a1a1a;

  --font-display: "Google Sans", system-ui, -apple-system, sans-serif;
  --font-body:    "Poppins", system-ui, -apple-system, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --header-h: 78px;

  --shadow-soft: 0 2px 18px rgba(26,18,12,0.10);
  --shadow-pop:  0 6px 28px rgba(26,18,12,0.18);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--brown);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Lock scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

/* Pages without a full-bleed hero need top padding to clear the fixed header */
body.has-static-header { padding-top: var(--header-h); }

/* ---------- typography ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.h-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brown-soft);
  margin: 0 0 18px;
}
.h-1 { font-size: clamp(36px, 5.5vw, 64px); }
.h-2 { font-size: clamp(28px, 4vw, 44px); }
.h-3 { font-size: clamp(22px, 2.6vw, 28px); }
.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--brown-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid currentColor;
  transition: background 0.3s ease, color 0.3s ease, letter-spacing 0.3s ease;
  white-space: nowrap;
}
.btn:hover { letter-spacing: 0.34em; }
.btn-dark { color: var(--brown); border-color: var(--brown); }
.btn-dark:hover { background: var(--brown); color: var(--cream); }
.btn-light { color: var(--cream); border-color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--brown); }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(60px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.section-cream { background: var(--cream); }
.section-beige { background: var(--beige); }
.section-taupe { background: var(--taupe); }
.section-tan   { background: var(--tan); }
/* legacy class kept so older markup still renders, now mapped to a light tint */
.section-dark { background: var(--tan); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  color: var(--cream);
}
.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-header__brand img {
  height: 28px;
  width: auto;
  display: block;
}
.site-header__nav { display: flex; gap: 30px; align-items: center; }
.site-header__nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  transition: opacity 0.25s ease;
}
.site-header__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.site-header__nav a:hover::after,
.site-header__nav a.is-current::after { transform: scaleX(1); }

.site-header__hamburger {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.site-header__hamburger span::before,
.site-header__hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.site-header__hamburger span::before { top: -7px; }
.site-header__hamburger span::after  { top:  7px; }

/* Header solid state (after scroll past hero) */
.site-header.is-scrolled {
  background: var(--cream);
  color: var(--brown);
  box-shadow: var(--shadow-soft);
}

/* Mobile nav open state */
body.nav-open .site-header__hamburger span { background: transparent; }
body.nav-open .site-header__hamburger span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .site-header__hamburger span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--taupe);
  color: var(--brown);
  padding-block: 80px 28px;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.site-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}
.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  max-width: 30ch;
  opacity: 0.85;
  margin: 0;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--brown);
  opacity: 0.6;
}
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a { font-size: 14px; opacity: 0.85; transition: opacity 0.25s ease; }
.site-footer__nav a:hover { opacity: 1; }
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; opacity: 0.85; }
.site-footer__cta {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity 0.25s ease;
}
.site-footer__cta:hover { opacity: 0.7; }
.site-footer__social { display: flex; gap: 16px; margin-top: 18px; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.site-footer__social a:hover { opacity: 1; transform: translateY(-2px); }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__bottom {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid rgba(26,26,26,0.18);
  font-size: 12px;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__credit {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.site-footer__credit a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-footer__credit a:hover { border-bottom-color: currentColor; }

/* ---------- hero (used on /home) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0px, rgba(0,0,0,0) 220px),   /* dark band behind the header */
    linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.60) 100%);       /* darken bottom for hero copy */
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 800px;
  animation: heroFadeUp 1.4s ease 0.3s both;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
}
.hero__content .h-eyebrow { color: var(--beige); }
.hero__content h1 { margin: 0 0 22px; }
.hero__content p { margin: 0 0 32px; font-size: clamp(15px, 1.7vw, 18px); opacity: 0.92; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: currentColor;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.75; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- intro band (image + copy split) ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.intro__media {
  aspect-ratio: 4 / 5;
  background: var(--beige);
  overflow: hidden;
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__copy h2 { margin: 0 0 24px; }
.intro__copy p { margin: 0 0 20px; font-size: 16px; line-height: 1.7; }
.intro__copy .btn { margin-top: 12px; }

/* ---------- editorial portfolio teaser grid ---------- */
.teaser-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}
.teaser-head h2 { margin: 0; }
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 14px;
}
.editorial-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--beige);
}
.editorial-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.editorial-grid figure:hover img { transform: scale(1.04); }

/* Default 6-tile editorial layout: 12-col grid, mixed spans */
.editorial-grid figure:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.editorial-grid figure:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.editorial-grid figure:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.editorial-grid figure:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.editorial-grid figure:nth-child(5) { grid-column: span 5; grid-row: span 2; }
.editorial-grid figure:nth-child(6) { grid-column: span 3; grid-row: span 2; }

/* ---------- films teaser ---------- */
.film-teaser {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.film-teaser__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.film-teaser__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- reviews band ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}
.review {
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--beige);
}
.section-dark .review {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
.review p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.review cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-soft);
}
.section-dark .review cite { color: var(--beige); }

/* ---------- closing CTA ---------- */
.closing-cta {
  text-align: center;
  padding-block: clamp(80px, 12vw, 160px);
  background: var(--beige);
  color: var(--brown);
}
.closing-cta h2 { margin: 0 0 14px; }
.closing-cta p { margin: 0 auto 32px; max-width: 50ch; }

/* ---------- page header (used on internal pages) ---------- */
.page-header {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  background: var(--cream);
}
.page-header h1 { margin: 0; max-width: 22ch; }
.page-header .lede { color: var(--brown-soft); }

/* ---------- reviews page (Plandaro widget) ---------- */
.reviews-section { padding-top: clamp(20px, 3vw, 40px); }
.reviews-frame {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(0px, 2vw, 28px);
}
/* Theming hooks for the Plandaro widget — make it feel native to the site */
.plandaro-widget,
.plandaro-widget * {
  font-family: var(--font-body) !important;
}
/* Color ONLY text-bearing elements — leave SVGs/buttons/icons alone so the
   stars (which use currentColor or the data-accent fill) keep their color. */
.plandaro-widget label,
.plandaro-widget legend,
.plandaro-widget p,
.plandaro-widget h1,
.plandaro-widget h2,
.plandaro-widget h3,
.plandaro-widget h4,
.plandaro-widget h5 {
  color: var(--brown) !important;
  opacity: 1 !important;
}
.plandaro-widget a { color: var(--tan); }
.plandaro-widget a:hover { color: var(--brown); }
/* Rating picker stars — Unicode characters in <span>s. Empty stars need
   visible contrast against cream; active stars use the brand tan.
   Body prefix raises specificity above the widget's own scoped CSS. */
body .plandaro-widget .pw-rating-picker,
body .plandaro-widget .pw-rating-picker > * {
  color: rgba(73, 54, 40, 0.4) !important;
}
body .plandaro-widget .pw-rating-picker .active,
body .plandaro-widget .pw-rating-picker > *:hover {
  color: var(--tan) !important;
}
/* Display stars (rating summary in the header / under each review) */
body .plandaro-widget-header .pw-stars,
body .plandaro-widget-review .pw-stars {
  color: var(--tan) !important;
}
/* Inputs / textareas: light cream surface with dark text */
.plandaro-widget input,
.plandaro-widget textarea,
.plandaro-widget select {
  background: var(--white) !important;
  color: var(--brown) !important;
  border: 1px solid rgba(73, 54, 40, 0.25) !important;
}
.plandaro-widget input::placeholder,
.plandaro-widget textarea::placeholder {
  color: rgba(73, 54, 40, 0.5) !important;
}
/* Review body copy uses the editorial italic serif */
.plandaro-widget-review .pw-body {
  font-family: var(--font-display) !important;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- scroll reveal ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .film-teaser { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .editorial-grid figure:nth-child(n) { grid-column: span 12; grid-row: span 2; }
  .editorial-grid figure:nth-child(2n+1) { grid-column: span 7; }
  .editorial-grid figure:nth-child(2n) { grid-column: span 5; }
}
@media (max-width: 760px) {
  .site-header__nav { display: none; }
  .site-header__hamburger { display: inline-flex; }

  /* Mobile menu overlay */
  .site-header__nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 80px 20px;
    z-index: 95;
    color: var(--brown);
  }
  .site-header__nav.is-open a {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--brown);
  }
}
@media (max-width: 600px) {
  .editorial-grid figure:nth-child(n) {
    grid-column: span 12;
    grid-row: span 2;
  }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- blog cards (shared by home teaser + blog index) ---------- */
.blog-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.blog-card__media {
  display: block;
  position: relative;
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--beige);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.blog-card__media img,
.blog-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.blog-card__media:hover img,
.blog-card__media:hover .blog-card__img { transform: scale(1.04); }
.blog-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--brown);
  margin: 16px 2px 0;
}
.blog-card__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--brown);
  opacity: 0.65;
  margin: 4px 2px 0;
}
.blog-card__date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.5;
  margin: 10px 2px 0;
}

/* ---------- home blog teaser (staggered) ---------- */
.blog-teaser {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
/* When count=4: 4 equal cards in a row (3 cols each on the 12-col grid) */
.blog-teaser[data-count="4"] .blog-card { grid-column: span 3; }
/* When count=3: 4/4/4 equal */
.blog-teaser[data-count="3"] .blog-card { grid-column: span 4; }
/* When count=2: 6/6 */
.blog-teaser[data-count="2"] .blog-card { grid-column: span 6; }
/* When count=1: full width */
.blog-teaser[data-count="1"] .blog-card { grid-column: span 12; }

@media (max-width: 900px) {
  .blog-teaser[data-count] .blog-card { grid-column: span 6; }
}
@media (max-width: 600px) {
  .blog-teaser { grid-template-columns: 1fr; }
  .blog-teaser[data-count] .blog-card { grid-column: 1 / -1; }
  /* Per client: only 2 stories visible on mobile, regardless of count */
  .blog-teaser .blog-card:nth-child(n+3) { display: none; }
}

/* ---------- /blog/ index grid (catalog-style 4-up) ---------- */
.blog-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 3vw, 56px) clamp(20px, 2vw, 28px);
}
@media (max-width: 900px) {
  .blog-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-index { grid-template-columns: 1fr; gap: 40px; }
}
.blog-index__loading {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--brown);
  opacity: 0.6;
  padding: 40px 0;
}

/* ---------- blog lightbox (Pic Time embed renders into this) ---------- */
.blog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, background 0.32s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-lightbox[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  background: var(--cream);
}
.blog-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--brown);
  color: var(--cream);
  border: 1px solid var(--brown);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 2;
}
.blog-lightbox__close:hover { transform: rotate(90deg); }
.blog-lightbox__stage {
  max-width: 1200px;
  margin: clamp(60px, 8vw, 100px) auto;
  padding: 0 var(--gutter);
  transform: translateY(12px);
  transition: transform 0.32s ease;
}
.blog-lightbox[data-open="true"] .blog-lightbox__stage { transform: translateY(0); }
.blog-lightbox__content { width: 100%; }
body[data-blog-lightbox-open="true"] { overflow: hidden; }

/* ---------- films grid (shared by /films/ + home highlights) ---------- */
/* Mobile: 1 per row (per client). Desktop: 2 per row with stylized meta below. */
.films-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 760px) {
  .films-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(40px, 4vw, 56px) clamp(28px, 3vw, 40px);
  }
}

/* Home page highlights — same 2-up grid, just a class hook for any future tweaks */
.film-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 3vw, 48px);
}
@media (max-width: 760px) {
  .film-highlights { grid-template-columns: 1fr; gap: 36px; }
}

.film-card { display: flex; flex-direction: column; }
.film-card__trigger {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  isolation: isolate;
  border: 0;
  padding: 0;
}
.film-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.3s ease;
  z-index: 1;
}
.film-card__video-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  background: #000;
}
.film-card__video-slot iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.35);
  transform-origin: center center;
  pointer-events: none;
}
.film-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: clamp(14px, 2vw, 24px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.film-card__overlay-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
  margin: 0;
  transform: translateY(10px);
  transition: transform 0.4s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
@media (min-width: 1024px) and (hover: hover) {
  .film-card__trigger:hover .film-card__thumb,
  .film-card__trigger:focus-visible .film-card__thumb {
    transform: scale(1.03);
  }
  .film-card__trigger[data-playing="true"] .film-card__thumb { opacity: 0; }
  .film-card__trigger[data-playing="true"] .film-card__video-slot { opacity: 1; }
  .film-card__trigger:hover .film-card__overlay,
  .film-card__trigger:focus-visible .film-card__overlay { opacity: 1; }
  .film-card__trigger:hover .film-card__overlay-title,
  .film-card__trigger:focus-visible .film-card__overlay-title { transform: translateY(0); }
}

/* Meta block under thumbnail — always visible, stylized */
.film-card__meta {
  padding: clamp(18px, 1.6vw, 24px) 2px 0;
  text-align: center;
}
.film-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.25;
  margin: 0;
  color: var(--brown);
  letter-spacing: -0.005em;
}
.section-dark .film-card__title { color: var(--brown); }
.film-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--brown-soft);
  margin: 10px auto 0;
  max-width: 52ch;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* ---------- film status / skeleton ---------- */
.films-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--brown-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}
.films-status[data-state="error"] {
  color: #a33;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 14px;
}
.film-skeleton {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--beige) 0%, var(--cream) 50%, var(--beige) 100%);
  background-size: 200% 100%;
  animation: filmSkeletonShimmer 1.4s infinite linear;
}
.section-dark .film-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
  background-size: 200% 100%;
}
@keyframes filmSkeletonShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- film lightbox ---------- */
.film-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(10,10,10,0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, background 0.32s ease;
}
.film-lightbox[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  background: rgba(10,10,10,0.94);
}
.film-lightbox__stage {
  width: 100%;
  max-width: 1280px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(12px);
  transition: transform 0.32s ease;
}
.film-lightbox[data-open="true"] .film-lightbox__stage { transform: translateY(0); }
.film-lightbox__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.film-lightbox__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-lightbox__meta { color: var(--cream); }
.film-lightbox__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.film-lightbox__desc {
  font-size: 14px;
  color: rgba(253,239,239,0.78);
  line-height: 1.7;
  max-height: 22vh;
  overflow-y: auto;
  white-space: pre-wrap;
  margin: 0;
}
.film-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(253,239,239,0.12);
  color: var(--cream);
  border: 1px solid rgba(253,239,239,0.25);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.film-lightbox__close:hover {
  background: rgba(253,239,239,0.22);
  transform: rotate(90deg);
}
body[data-lightbox-open="true"] { overflow: hidden; }

/* ---------- about page: team photo grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.team-photo {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--beige);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ---------- portfolio page: Pic Time embed ---------- */
.pictime-embed {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin-block: clamp(20px, 3vw, 40px) clamp(60px, 9vw, 120px);
  background: var(--white);
  isolation: isolate;
}
.pictime-embed iframe {
  display: block;
  width: 100%;
  min-height: 100vh;
  border: 0;
  background: transparent;
}
.pictime-embed__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: var(--gutter);
}
.pictime-embed__fallback[data-show="true"] {
  opacity: 1;
  pointer-events: auto;
}
.pictime-embed__fallback p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--brown-soft);
  margin: 0 0 18px;
}
.pictime-embed__fallback a {
  display: inline-block;
  padding: 14px 32px;
  background: var(--brown);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--brown);
  transition: background 0.3s ease, color 0.3s ease, letter-spacing 0.3s ease;
}
.pictime-embed__fallback a:hover {
  background: transparent;
  color: var(--brown);
  letter-spacing: 0.34em;
}

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: clamp(36px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(60px, 9vw, 120px);
  padding-top: clamp(40px, 5vw, 80px);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Warm info card on the left — sand anchors the section in palette */
.contact-info {
  background: var(--tan);
  color: var(--brown);
  padding: clamp(36px, 4vw, 56px);
}
.contact-info__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
}
.contact-info__title em {
  font-style: italic;
  /* Italic style alone differentiates against the warm bg — no color shift */
}
.contact-info__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
  color: var(--brown);
  opacity: 0.75;
}
.contact-info__details {
  border-top: 1px solid rgba(26, 26, 26, 0.18);
  padding-top: 24px;
}
.contact-info__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
  align-items: baseline;
  font-family: var(--font-body);
}
.contact-info__label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--brown);
  opacity: 0.55;
}
.contact-info__value a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.contact-info__value a:hover { border-bottom-color: currentColor; }
.contact-info__social {
  display: flex;
  gap: 18px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.18);
}
.contact-info__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: var(--brown);
}
.contact-info__social a:hover { opacity: 1; transform: translateY(-2px); }
.contact-info__social svg { width: 18px; height: 18px; }
.contact-info__credit {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(26, 26, 26, 0.18);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.6;
}
.contact-info__credit a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.contact-info__credit a:hover { border-bottom-color: currentColor; }

/* Form wrap on the right */
.contact-form {
  position: relative;
  background: var(--white);
  min-height: 600px;
}
.contact-form__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--brown);
  opacity: 0.7;
  margin: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.contact-form[data-loaded="true"] .contact-form__loading { opacity: 0; }
.contact-form iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 600px;
  background: transparent;
}
