/* ============================================
   REID PETRO // CINEMATOGRAPHER
   Clean rebuild of the homepage
   ============================================ */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: #000000;
  color: #e8e8e8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  --scroll-progress: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: calc(28px - 14px * var(--scroll-progress)) 40px;
  background-color: rgba(0, 0, 0, calc(var(--scroll-progress) * 0.85));
  box-shadow: 0 1px 8px rgba(0, 0, 0, calc(var(--scroll-progress) * 0.4));
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 100%;
}

.primary-nav {
  display: flex;
  gap: 28px;
  justify-self: start;
}

.secondary-nav {
  display: flex;
  gap: 28px;
  justify-self: end;
}

.primary-nav a,
.secondary-nav a {
  font-size: 13.2px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #ffffff;
  opacity: 0.8;
}

body[data-page="home"] .primary-nav,
body[data-page="home"] .secondary-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

body[data-page="home"] .site-header.nav-revealed .primary-nav,
body[data-page="home"] .site-header.nav-revealed .secondary-nav {
  opacity: 1;
  pointer-events: auto;
}

.primary-nav a:hover,
.secondary-nav a:hover {
  opacity: 1;
}

.branding {
  text-align: center;
  justify-self: center;
}

.site-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  opacity: 0.85;
}

.site-tagline {
  display: block;
  margin-top: -5px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: #ffffff;
  opacity: 0.8;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  background-color: rgba(0, 0, 0, 0.92);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #fff;
  opacity: 0.85;
}

/* ============================================
   HERO BANNER (Vimeo background video)
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 1em;
  box-sizing: border-box;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 1.5em;
}

#banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 177.78vh; /* 100vh * 16/9 — ensures cover when container is taller */
  height: 56.25vw;  /* 100vw * 9/16 — ensures cover when container is wider */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.banner-titles {
  position: absolute;
  bottom: 15.5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  z-index: 5;
}

.banner-item {
  display: block;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 500ms ease-out, transform 500ms ease-out;
  font-size: clamp(16px, 2.75vh, 30px);
  line-height: 1.45;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.banner-item:hover,
.banner-item.active {
  opacity: 1;
  transform: scale(1.08);
}

.banner-item:not(:last-child) {
  margin-right: 5.5rem;
}

.banner-item-title {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.banner-item-subtitle {
  color: #fff;
  font-weight: 400;
  font-size: 0.8em;
  white-space: nowrap;
}

/* ============================================
   WORK GALLERY
   ============================================ */
.work-gallery {
  padding: 6vh 3vh 4vh;
  text-align: center;
}

.gallery-row {
  position: relative;
  overflow: hidden;
  transition: border-radius 800ms;
}

.gallery-row-commercial {
  border-top-left-radius: 43px;
}

.gallery-row-commercial:hover {
  border-radius: 43px;
}

.gallery-row-narrative {
  border-bottom-right-radius: 43px;
}

.gallery-row-narrative:hover {
  border-radius: 43px;
}

.gallery-row + .gallery-row {
  margin-top: 1.7vh;
}

.gallery-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7vh 0;
}

.gallery-row-label {
  position: absolute;
  top: 16%;
  left: 0;
  margin-left: 10px;
  transform: translateY(-50%);
  z-index: 10;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 8.5vw, 145px);
  line-height: 0.5;
  letter-spacing: 0.44em;
  pointer-events: none;
  color: #ffffffe0;
  will-change: transform;
  font-variant: all-petite-caps;
  transition: opacity 300ms ease;
}

.gallery-row:hover .gallery-row-label {
  opacity: 0.5;
}

.gallery-row-label:hover {
  opacity: 1 !important;
}

.gallery-row-label--narrative {
  left: auto;
  right: 0;
  margin-left: 0;
  margin-right: 10px;
}

@property --glow-color {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}

.work-item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  --glow-color: transparent;
  box-shadow: 0 0 42px 13px var(--glow-color);
  transition: --glow-color 80ms linear;
}

.work-item.glow-active {
  z-index: 5;
}

.work-still,
.work-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-overlay {
  visibility: hidden;
  opacity: 0;
  transition: visibility 100ms, opacity 350ms linear;
  z-index: 2;
}

.work-overlay-dim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 350ms ease;
}

.work-title {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 100%;
  padding: 0 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 1.5vh, 26px);
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 350ms ease, transform 350ms ease;
}

.work-director {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 10px));
  z-index: 4;
  width: 100%;
  padding: 0 25px;
  opacity: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 1.5vh, 19px);
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 350ms ease, transform 350ms ease;
}

.work-director .first-name {
  font-weight: 600;
}

.work-director .last-name {
  font-weight: 400;
  margin-left: 0.6em;
}

@media (min-width: 800px) {
  .work-item:hover .work-overlay {
    visibility: visible;
    opacity: 1;
  }

  .work-item:hover .work-overlay-dim {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .work-item:hover .work-title {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px));
  }

  .work-item:hover .work-director {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 960px) {
  .gallery-row-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 750px) {
  .gallery-row-grid {
    grid-template-columns: 1fr;
  }

  .gallery-row-label {
    font-size: clamp(24px, 8vw, 60px);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 3vh 4vh 4vh;
  text-align: center;
}

.social-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
}

.social-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 1.5vh, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0.5;
  transition: opacity 150ms ease;
}

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

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 900px) {
  .site-header {
    padding: 18px 20px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .primary-nav,
  .secondary-nav {
    display: none;
  }

  .branding {
    justify-self: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 0.5em;
  }

  .banner-titles {
    bottom: 26%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 14px;
  }

  .banner-item:not(:last-child) {
    margin-right: 0;
  }
}

@media (max-width: 500px) {
  .site-title {
    font-size: 18px;
  }

  .site-tagline {
    font-size: 9px;
  }
}

/* ============================================
   COMMERCIAL PAGE
   Edge-to-edge tiles, no gaps, bottom-left title.
   ============================================ */

body[data-page="commercial"] .site-header {
  --scroll-progress: 1;
}

body[data-page="commercial"] main {
  padding-top: 90px;
}

body[data-page="commercial"] .work-gallery {
  padding: 0;
}

body[data-page="commercial"] .gallery-row-commercial,
body[data-page="commercial"] .gallery-row-commercial:hover {
  border-radius: 0;
}

body[data-page="commercial"] .gallery-row-grid {
  gap: 0;
}

body[data-page="commercial"] .work-title,
body[data-page="commercial"] .work-director {
  top: auto;
  bottom: 18px;
  left: 25px;
  width: auto;
  padding: 0;
  text-align: left;
}

body[data-page="commercial"] .work-title {
  transform: translateY(0);
}

body[data-page="commercial"] .work-director {
  transform: translateY(8px);
}

@media (min-width: 800px) {
  body[data-page="commercial"] .work-item:hover .work-title {
    opacity: 0;
    transform: translateY(-8px);
  }

  body[data-page="commercial"] .work-item:hover .work-director {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   NARRATIVE PAGE
   Same layout as commercial.
   ============================================ */

body[data-page="narrative"] .site-header {
  --scroll-progress: 1;
}

body[data-page="narrative"] main {
  padding-top: 90px;
}

body[data-page="narrative"] .work-gallery {
  padding: 0;
}

body[data-page="narrative"] .gallery-row-narrative,
body[data-page="narrative"] .gallery-row-narrative:hover {
  border-radius: 0;
}

body[data-page="narrative"] .gallery-row-grid {
  gap: 0;
}

body[data-page="narrative"] .work-title,
body[data-page="narrative"] .work-director {
  top: auto;
  bottom: 18px;
  left: 25px;
  width: auto;
  padding: 0;
  text-align: left;
}

body[data-page="narrative"] .work-title {
  transform: translateY(0);
}

body[data-page="narrative"] .work-director {
  transform: translateY(8px);
}

@media (min-width: 800px) {
  body[data-page="narrative"] .work-item:hover .work-title {
    opacity: 0;
    transform: translateY(-8px);
  }

  body[data-page="narrative"] .work-item:hover .work-director {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PROJECT PAGE
   Two-column title → full-width video →
   stills grid (left) + credits sidebar (right)
   ============================================ */

body[data-page="project"] {
  background-color: #000000;
}

body[data-page="project"] .site-header {
  --scroll-progress: 1;
}

body[data-page="project"] main {
  padding-top: 90px;
}

/* ─── Title header ─── */
.project-header {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 36px 12.5% 0;
  position: relative;
  z-index: 2;
}

.project-title-col {
  flex: 1;
}

.project-meta-col {
  flex: 1;
  text-align: right;
}

.project-main-title {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #ffffff;
}

.project-client-title {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #ffffff;
}

.project-client-title strong {
  font-weight: 700;
}

/* ─── Video embed ─── */
.project-video {
  padding: 0 12.5% 64px;
}

.project-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow:
    0 0 240px 6px rgba(255, 255, 255, 0.04),
    -90px -50px 260px 6px rgba(255, 255, 255, 0.025),
    90px -50px 260px 6px rgba(255, 255, 255, 0.025),
    -90px 50px 260px 6px rgba(255, 255, 255, 0.025),
    90px 50px 260px 6px rgba(255, 255, 255, 0.025);
}

.project-video-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Stills section — wider than video ─── */
.project-stills-section {
  padding: 0 6.25%;
}

/* ─── Credits + back link ─── */
.project-content {
  display: flex;
  flex-direction: column;
  padding: 0 12.5% 80px;
  position: relative;
}

/* ─── Stills grid ─── */
.project-stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.project-still {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  animation: still-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.project-still:focus:not(:focus-visible) {
  outline: none;
}

.project-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes still-reveal {
  from {
    filter: brightness(0.35);
  }
  to {
    filter: brightness(1);
  }
}

/* ─── Credits — movie poster style, centered below gallery ─── */
.project-credits {
  margin-top: 28px;
  text-align: center;
  line-height: 2;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.project-credits-item {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: #262626;
  white-space: nowrap;
  transition: transform 220ms ease;
  transform-origin: center;
  transform: scale(var(--proximity-scale, 1));
  color: #e8e8e8;
}

.credit-role {
  opacity: 0.5;
}

.project-credits-item a {
  border-bottom: 1px solid rgba(232, 232, 232, 0.25);
  transition: border-color 150ms ease, opacity 150ms ease;
}

.project-credits-item a:hover {
  opacity: 0.7;
  border-bottom-color: rgba(38, 38, 38, 0.6);
}

.credit-sep {
  display: inline-block;
  width: 2.5em;
  opacity: 0;
}

/* ─── Back link ─── */
.project-back-link {
  position: absolute;
  top: 28px;
  left: 6.25%;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #e8e8e8;
}

.project-back-link a {
  opacity: 0.6;
  border-bottom: 1px solid rgba(232, 232, 232, 0.3);
}

.project-back-link a:hover {
  opacity: 0.9;
}

/* ─── Cinema Mode ─── */
body[data-page="project"] .project-header,
body[data-page="project"] .project-stills-section,
body[data-page="project"] .project-content,
body[data-page="project"] .site-header,
body[data-page="project"] .site-footer {
  transition: opacity 600ms ease;
}

body[data-page="project"].video-playing .project-header,
body[data-page="project"].video-playing .project-stills-section,
body[data-page="project"].video-playing .project-content,
body[data-page="project"].video-playing .site-header,
body[data-page="project"].video-playing .site-footer {
  opacity: 0.08;
  pointer-events: none;
}

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
  animation: lightbox-bg-in 600ms ease forwards;
}

.lightbox.closing {
  display: flex;
  animation: lightbox-bg-out 220ms ease forwards;
}

@keyframes lightbox-bg-in {
  from {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

@keyframes lightbox-bg-out {
  from {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  to {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@keyframes lightbox-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lightbox-zoom-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.88);
  }
}

.lightbox-img {
  max-width: 67.5vw;
  max-height: 66vh;
  object-fit: contain;
  display: block;
  user-select: none;
  animation: lightbox-zoom-in 220ms ease-out forwards;
}

.lightbox.closing .lightbox-img {
  animation: lightbox-zoom-out 220ms ease-in forwards;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 60px;
  cursor: pointer;
  opacity: 0.4;
  line-height: 1;
  padding: 0 20px;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.9;
}

.lightbox-prev {
  left: calc(50% - 33.75vw - 56px);
}

.lightbox-next {
  right: calc(50% - 33.75vw - 56px);
}

/* ============================================
   ABOUT PAGE — Cinematic (Variation B)
   ============================================ */
body[data-page="about"] {
  background-color: #000000;
}

body[data-page="about"] .site-header {
  --scroll-progress: 1;
}

body[data-page="about"] main {
  padding-top: 90px;
}

/* ─── Cinematic hero — widescreen photo with ghost + foreground title ─── */
.about-cinema {
  position: relative;
  margin: 0 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.about-cinema-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 28 / 9;
  background: #000;
  overflow: hidden;
}

/* Diagonal placeholder weave when no portraits are loaded yet */
.about-cinema-photo:empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.018) 12px,
    rgba(255, 255, 255, 0.018) 13px
  );
}

/* Continuous right-to-left photo marquee inside the cinema hero */
.about-hero-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  width: max-content;
  will-change: transform;
  animation: hero-scroll-rtl 100s linear infinite;
}

.about-hero-marquee-half {
  display: flex;
  align-items: flex-start;
  height: 100%;
  flex-shrink: 0;
}

.about-hero-slide {
  display: block;
  height: 85%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 24px;
  user-select: none;
  -webkit-user-drag: none;
}

.about-hero-slide.v-top    { align-self: flex-start; }
.about-hero-slide.v-center { align-self: center; }
.about-hero-slide.v-bottom { align-self: flex-end; }
.about-hero-slide.v-full   { align-self: stretch; height: 100%; }

/* Frosted-glass edges — images blur in/out as they enter and exit */
.about-cinema-photo:not(:empty)::before,
.about-cinema-photo:not(:empty)::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-cinema-photo:not(:empty)::before {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, transparent 100%);
}

.about-cinema-photo:not(:empty)::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black 0%, transparent 100%);
  mask-image: linear-gradient(to left, black 0%, transparent 100%);
}

@keyframes hero-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Ghost title — large gradient-fill watermark behind photo title */
.about-cinema-title-ghost {
  position: absolute;
  top: 50%;
  left: calc(2.5% + 40px);
  transform: translateY(-58%);
  font-size: clamp(120px, 17vw, 240px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.about-cinema-title-ghost span {
  display: block;
}

.about-cinema-title-ghost span:nth-child(2) {
  font-weight: 200;
  font-style: italic;
}

/* Foreground title — crisp, anchored bottom-left */
.about-cinema-title {
  position: absolute;
  bottom: clamp(20px, 3vw, 36px);
  left: calc(2.5% + clamp(28px, 4.5vw, 56px));
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  color: #ffffff;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.about-cinema-title span {
  display: block;
}

.about-cinema-title span:nth-child(2) {
  font-weight: 200;
  font-style: italic;
  opacity: 0.78;
}

.about-cinema-title .tw-span::after {
  content: '|';
  animation: tw-blink 0.7s step-end infinite;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Bio — headline | body | portrait, grid centered on page ─── */
.about-bio {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1270px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(40px, 6.5vw, 84px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.about-bio-portrait {
  display: flex;
  justify-content: center;
}

.about-bio-portrait-img {
  width: clamp(120px, 14vw, 180px);
  height: clamp(120px, 14vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.about-bio-headline {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.about-bio-headline em {
  font-style: italic;
}

.about-bio-headline strong {
  font-weight: 700;
}

.about-bio-body {
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.9;
  font-weight: 400;
  color: #aaaaaa;
  max-width: 62ch;
}

.about-bio-body em {
  font-style: italic;
}

.about-bio-body strong {
  font-weight: 700;
  color: #ffffff;
}

/* ─── Clients — 4-col text grid ─── */
.about-clients {
  padding: clamp(44px, 5vw, 64px) clamp(40px, 6.5vw, 84px);
}

.about-clients-label {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.28;
  margin-bottom: 36px;
}

.about-clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.about-clients-marquee:last-child {
  margin-bottom: 0;
}

.about-clients-track {
  --client-gap: clamp(100px, 15vw, 220px);
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation-name: clients-scroll-ltr;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 40s;
}

.about-clients-track-half {
  display: flex;
  align-items: center;
  gap: var(--client-gap);
  padding-right: var(--client-gap);
  flex-shrink: 0;
}

.about-clients-marquee--fast .about-clients-track {
  animation-duration: 28s;
}

.about-clients-marquee--slow .about-clients-track {
  animation-duration: 52s;
}

@keyframes clients-scroll-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.about-client-name {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.28;
  transition: opacity 200ms ease;
}

.about-client-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(1);
  pointer-events: none;
  flex-shrink: 0;
}

a.about-client-name:hover {
  opacity: 0.7;
}

/* ─── Contact — full-width centered statement ─── */
.about-contact {
  padding: clamp(64px, 8vw, 96px) clamp(40px, 6.5vw, 84px);
  text-align: center;
}

.about-contact-location {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.28;
  margin-bottom: 28px;
}

.about-contact-heading {
  font-size: clamp(48px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #ffffff;
  margin-bottom: 44px;
}

.about-contact-line {
  display: block;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #e8e8e8;
  opacity: 0.55;
  margin-bottom: 10px;
  transition: opacity 200ms ease;
}

.about-contact-line:hover {
  opacity: 1;
}

/* ================================================================
   BLOG INDEX  (data-page="blog")
   BLOG POST   (data-page="blog-post")
   ================================================================ */

body[data-page="blog"] .site-header,
body[data-page="blog-post"] .site-header {
  --scroll-progress: 1;
}

body[data-page="blog"] main,
body[data-page="blog-post"] main {
  padding-top: 90px;
}

body[data-page="blog"] .secondary-nav a[href="blog.html"],
body[data-page="blog-post"] .secondary-nav a[href="blog.html"] {
  opacity: 1;
}

/* ─── Shared primitives ─── */
.blog-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ecfdf;
  flex-shrink: 0;
}

.blog-eyebrow-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
}

/* ─── Page container ─── */
.blog-page {
  padding: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 96px);
}

.blog-content {
  max-width: 1241px;
  margin: 0 auto;
}

/* ─── Head: title + search ─── */
.blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blog-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.blog-subtitle {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: #888;
  margin: 8px 0 40px;
}

.blog-search-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.blog-search-icon {
  color: #444;
  flex-shrink: 0;
}

.blog-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  width: 260px;
  padding: 10px 0;
}

.blog-search-input::placeholder {
  color: #444;
}

.blog-search-clear {
  background: transparent;
  border: none;
  color: #555;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 150ms ease;
}

.blog-search-clear:hover {
  color: #fff;
}

/* ─── Search result count ─── */
.blog-search-count {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin: 0;
}

.blog-search-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2a2a2a;
  padding: 2px 4px 2px 18px;
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Featured post ─── */
.blog-featured {
  margin-left: 96px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 48px;
}

.blog-featured-inner {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-featured-img {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 64px;
  position: relative;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  display: block;
}

.blog-featured-inner:hover .blog-featured-img img {
  transform: scale(1.03);
}

.blog-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 72px 48px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  border-radius: 0 0 64px 64px;
}

.blog-rule {
  height: 1px;
  background: #2a2a2a;
  width: 90%;
  margin: 0 auto 48px;
}

.blog-featured-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}

.blog-featured-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
}

.blog-featured-cat-name,
.blog-carousel-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7ecfdf;
  display: inline-block;
}

@keyframes blog-cat-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.blog-carousel-cat.blog-cat-slide {
  animation: blog-cat-in 220ms ease forwards;
}

.blog-featured-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.blog-featured-excerpt {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 12px;
  font-weight: 400;
}

.blog-featured-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Featured carousel ─── */
.blog-carousel {
  position: relative;
}

.blog-carousel-track {
  display: flex;
  gap: 48px;
  will-change: transform;
}

.blog-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  opacity: 0.6;
  transition: opacity 500ms ease;
}

.blog-carousel-slide.active {
  opacity: 1;
}

.blog-carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.blog-carousel-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: #444;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, width 200ms ease;
}

.blog-carousel-dot.active {
  background: #7ecfdf;
  width: 44px;
}

.blog-carousel-dot:not(.active):hover {
  background: #666;
}

/* ─── Blog body: category rail + roll ─── */
.blog-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
}

/* ─── Category rail ─── */
.blog-cat-rail {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  height: fit-content;
}

.blog-cat-item {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: transparent;
  border: none;
  color: #444;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0;
  transition: color 150ms ease;
}

.blog-cat-item:hover {
  color: #888;
}

.blog-cat-item.active {
  color: #fff;
}

.blog-cat-line {
  width: 1px;
  min-height: 60px;
  flex: 1 0 60px;
  background: #2a2a2a;
}

/* ─── Roll: list of entries ─── */
.blog-roll {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.blog-entry {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2a2a2a;
  text-decoration: none;
  color: inherit;
}

.blog-entry-img {
  flex: 0 0 432px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
}

.blog-entry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.blog-entry:hover .blog-entry-img img {
  transform: scale(1.04);
}

.blog-entry-content {
  flex: 1;
  padding-top: 4px;
}

.blog-entry-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-entry-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  transition: opacity 150ms ease;
}

.blog-entry:hover .blog-entry-title {
  opacity: 0.8;
}

.blog-entry-excerpt {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-entry-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

.blog-entry:first-child {
  padding-top: 0;
}

.blog-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ─── No results ─── */
.blog-no-results {
  text-align: center;
  color: #555;
  font-size: 16px;
  letter-spacing: 0.1em;
  padding: 64px 0;
}

/* ================================================================
   BLOG POST  (data-page="blog-post")
   ================================================================ */

/* ─── Breadcrumb ─── */
.post-crumb {
  padding: 20px clamp(32px, 5vw, 96px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

.post-crumb a {
  color: #888;
  text-decoration: none;
  transition: color 150ms ease;
}

.post-crumb a:hover {
  color: #fff;
}

/* ─── Hero ─── */
.post-hero-wrap {
  padding: 0 24px;
}

.post-hero {
  position: relative;
  height: 520px;
  border-radius: 92px 92px 0 0;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 56px;
  gap: 16px;
}

.post-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 50%;
}

.post-hero-glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  border-left: 1.5px solid rgba(255, 255, 255, 0.2);
  border-right: 1.5px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.35);
  padding: 14px 48px;
  width: 50%;
}

.post-hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.05;
  text-align: left;
  padding-right: 100px;
}

/* ─── Byline ─── */
.post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  gap: 16px;
  width: 50%;
}

.post-byline-left,
.post-byline-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-share-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.post-share-btn:hover {
  color: #fff;
  border-color: #555;
}

/* ─── Dek / subhead ─── */
.post-title-block {
  max-width: 60ch;
  margin: 48px auto;
  text-align: center;
  font-size: 18px;
  color: #ccc;
  line-height: 1.6;
  padding: 0 24px;
}

/* ─── Article body ─── */
.post-body {
  max-width: 660px;
  margin: 0 auto 64px;
  font-size: 16px;
  line-height: 1.75;
  color: #d0d0d0;
  padding: 0 24px;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 2em 0 0.5em;
}

.post-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 2em 0 0.5em;
}

.post-body strong {
  color: #fff;
  font-weight: 600;
}

.post-body a {
  color: #7ecfdf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-pullquote {
  border-left: 2px solid #7ecfdf;
  margin: 32px 0;
  padding-left: 24px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.post-body figure {
  margin: 2em -10%;
}

.post-body figure img {
  width: 100%;
  border-radius: 16px;
}

.post-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

.post-caption::before {
  content: '';
  flex: 1;
  border-top: 1px solid #2a2a2a;
}

/* ─── Drop cap ─── */
.post-drop-cap {
  float: left;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.95;
  padding: 6px 14px 0 0;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

/* ─── End credits ─── */
.post-end-credits {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px 80px;
}

.post-rule {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 40px 0;
}

.post-filed-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 64px;
}

.post-tag {
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-family: inherit;
  color: #888;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.post-tag:hover {
  color: #fff;
  border-color: #555;
}

.post-related-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin: 40px 0 24px;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

.post-related-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-related-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

.post-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.post-related-item:hover .post-related-img img {
  transform: scale(1.04);
}

.post-related-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}

.post-related-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
