/* ==========================================================================
   PILI MILI FILMS — site.css
   Shared stylesheet for Films and About/Contact: left rail nav with logo
   and gradient background, bold accent palette, grey placeholder stills.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Work+Sans:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Gallique';
  src: url('assets/fonts/Gallique-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Calibre';
  src: url('assets/fonts/Calibre-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Pantone-sampled palette */
  --p-purple: #7A4589;
  --p-orange: #D46027;
  --p-peach:  #E8B48C;
  --p-lime:   #D6DF85;
  --p-pink:   #ED8AAC;
  --p-coral:  #E38B94;

  --ink: #141414;
  --paper: #FAFAF7;
  --grey-tile: #DCD9D2;
  --grey-tile-dark: #C7C3BA;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Film titles only */
  --font-film-title: 'Gallique', Georgia, serif;
  /* Nav menu + footer copyright only */
  --font-nav: 'Calibre', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  background: var(--p-lime);
  color: var(--ink);
  font-family: var(--font-body);
}

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

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Page shell — left rail + main content
   ========================================================================== */

.page-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.rail {
  background: linear-gradient(180deg,
    var(--p-purple) 0%,
    var(--p-purple) 22%,
    var(--p-orange) 55%,
    var(--p-coral) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail-top .logo {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  background-color: var(--paper);
  -webkit-mask-image: url('assets/logo.png');
  mask-image: url('assets/logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left top;
  mask-position: left top;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.rail-nav a {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  width: fit-content;
  padding-bottom: 8px;
}

.rail-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  transition: opacity 0.2s ease;
  opacity: 0.45;
}

.rail-nav a:hover::after,
.rail-nav a[aria-current="page"]::after {
  opacity: 1;
}

.rail-nav a[href="index.html"]::after,
.rail-nav a[href="index-preview.html"]::after {
  background: var(--p-pink);
}

.rail-nav a[href="about.html"]::after,
.rail-nav a[href="about-preview.html"]::after {
  background: var(--p-lime);
}

.rail-foot .caption {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  color: rgba(250,250,247,0.85);
}

/* ==========================================================================
   Film grid — neutral grey placeholder tiles
   ========================================================================== */

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.film-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.film-tile-still {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--grey-tile) 0%, var(--grey-tile-dark) 100%);
}

.film-tile-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-tile-still-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.4);
  text-align: center;
  padding: 16px;
}

.film-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.film-tile:hover::after,
.film-tile:focus-visible::after {
  opacity: 1;
}

.film-tile-title {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--font-film-title);
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: 0.005em;
  color: var(--paper);
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-box {
  background: var(--paper);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Video embed container — 16:9 */
.lightbox-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  flex-shrink: 0;
}

.lightbox-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Still image container — 16:9 crop */
.lightbox-still {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--grey-tile) 0%, var(--grey-tile-dark) 100%);
  flex-shrink: 0;
  overflow: hidden;
}

.lightbox-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-info {
  padding: clamp(24px, 4vw, 44px);
}

.lightbox-title {
  font-family: var(--font-film-title);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 10px;
  line-height: 1.1;
}

.lightbox-meta {
  display: flex;
  gap: 0 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.lightbox-meta span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(20,20,20,0.55);
}

.lightbox-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 20px;
  color: rgba(20,20,20,0.25);
}

.lightbox-desc {
  font-family: var(--font-body);
  color: rgba(20,20,20,0.75);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.lightbox-credits {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(20,20,20,0.5);
  line-height: 1.9;
  border-top: 1px solid rgba(20,20,20,0.1);
  padding-top: 14px;
  margin-top: 4px;
}

.lightbox-credits strong {
  font-weight: 600;
  color: rgba(20,20,20,0.7);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,20,20,0.65);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--paper);
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--ink);
}

/* ==========================================================================
   About page content (right-hand column, next to rail)
   ========================================================================== */

.about-main {
  padding: clamp(40px, 6vw, 80px) clamp(32px, 6vw, 80px);
  max-width: 960px;
}

.about-main .eyebrow {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.55);
  display: block;
  margin-bottom: 14px;
}

/* Intro blurb — single unified block */
.about-intro {
  margin-bottom: 52px;
}

.about-intro p {
  font-family: var(--font-nav);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(20,20,20,0.85);
}

.about-intro p + p {
  margin-top: 14px;
}

/* Laurels image — blends with lime background via mix-blend-mode */
/* Consulting section */
.consulting-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(20,20,20,0.12);
}

.consulting-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(20,20,20,0.08);
}

.consulting-block:last-child {
  border-bottom: none;
}

.consulting-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.consulting-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.68;
  color: rgba(20,20,20,0.78);
  padding-top: 6px;
}

.about-laurels {
  margin-bottom: 52px;
  text-align: center;
}

.about-laurels img {
  width: 100%;
  max-width: 400px;
  display: inline-block;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* Team section */
.team-section {
  margin-bottom: 52px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 60px);
  margin-top: 0;
}

.team-member {
  display: flex;
  flex-direction: column;
}

/* Circular portrait */
.team-photo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 16px;
  display: block;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.team-role {
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-orange);
  margin-bottom: 12px;
  display: block;
}

.team-bio {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.68;
  color: rgba(20,20,20,0.78);
  flex: 1;
}

.team-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.team-links a {
  font-family: var(--font-nav);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.team-links a:hover {
  opacity: 0.6;
}

/* Contact */
.contact-block {
  border-top: 1px solid rgba(20,20,20,0.12);
  padding-top: 40px;
}

.contact-block .eyebrow {
  margin-bottom: 16px;
}

.contact-email {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
}

.contact-email:hover {
  opacity: 0.65;
}

.contact-social {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.contact-social a {
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.contact-social a:hover {
  opacity: 0.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */


@media (max-width: 880px) {
  .page-shell {
    grid-template-columns: 160px 1fr;
  }

  .rail {
    padding: 24px 16px;
  }

  .rail-top .logo {
    max-width: 100px;
  }

  .film-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-info {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .page-shell {
    grid-template-columns: 120px 1fr;
  }

  .rail {
    padding: 20px 12px;
  }

  .rail-top .logo {
    max-width: 80px;
  }

  .rail-nav a {
    font-size: 0.72rem;
  }

  .film-grid {
    grid-template-columns: 1fr;
  }
}

}
