/*
Theme Name: Ekachitra Photography
Theme URI: https://yourdomain.com
Author: Ekachitra Studio
Description: A luminous, full-window photography and film theme. Minimal, airy, editorial.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ekachitra
Tags: photography, portfolio, light, minimal, full-width, video
*/

/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --ivory:      #faf9f7;
  --paper:      #f4f2ee;
  --mist:       #ede9e3;
  --stone:      #c8c2b8;
  --ash:        #9e9890;
  --ink:        #2c2a27;
  --ink-light:  #5a5750;
  --accent:     #8c7355;
  --accent-2:   #b09a7e;
  --white:      #ffffff;

  --serif:  'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans:   'Raleway', 'Montserrat', sans-serif;

  --nav-h:  68px;
  --ease:   0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─────────────────────────────────────────────
   CURSOR — CAMERA ART
───────────────────────────────────────────── */

/* Hide default cursor everywhere */
*, *::before, *::after { cursor: none !important; }

/* Camera cursor element — follows mouse */
.cam-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  transition: transform .12s ease, opacity .2s ease;
  mix-blend-mode: multiply;
}

/* Outer ring that lags behind */
.cam-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(140,115,85,.35);
  border-radius: 50%;
  transition: width .35s ease, height .35s ease, border-color .35s ease, opacity .2s ease;
}

.cam-ring.hover {
  width: 72px;
  height: 72px;
  border-color: rgba(140,115,85,.7);
}

/* Click flash */
.cam-cursor.click {
  transform: translate(-50%,-50%) scale(.75);
}

/* ─────────────────────────────────────────────
   LOADER — EKA fixed · CHITRA cycles
───────────────────────────────────────────── */
#eka-loader {
  position: fixed; inset: 0;
  background: var(--ivory);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  padding: 20px;                      /* prevents edge bleed on mobile */
  overflow: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
#eka-loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* Row: EKA · [cycling CHITRA] */
.loader-logo-wrap {
  display: flex;
  align-items: center;
  line-height: 1;
  max-width: 100%;                    /* never wider than screen */
  overflow: hidden;
}

/* EKA — always visible */
.loader-eka {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 64px);  /* scales down on small screens */
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-right: 0.06em;
  flex-shrink: 0;
  white-space: nowrap;
}

/* separator dot */
.loader-dot {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 64px);
  font-weight: 200;
  color: var(--accent);
  padding: 0 0.12em;
  flex-shrink: 0;
  line-height: 1;
}

/* CHITRA cycling container */
.loader-chitra-wrap {
  position: relative;
  width: clamp(110px, 40vw, 280px);   /* responsive width */
  height: clamp(38px, 10vw, 76px);
  overflow: visible;
  display: flex;
  align-items: center;
  flex-shrink: 1;
}

/* Each CHITRA word */
.loader-chitra {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 64px);  /* matches EKA size */
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

/* English last word */
.loader-chitra.en {
  letter-spacing: 0.2em;             /* matches EKA spacing */
  text-transform: uppercase;
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.loader-chitra.active {
  opacity: 1;
  transform: translateY(0);
}

/* Progress bar */
.loader-bar-wrap {
  width: min(200px, 60vw);
  height: 1px;
  background: var(--mist);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background var(--ease), border-color var(--ease);
}

/* When hero is visible — transparent nav over photo */
#site-nav.on-hero {
  background: transparent;
}

/* After scrolling past hero */
#site-nav.scrolled {
  background: rgba(250,249,247,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}

.nav-logo {
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 28px);  /* bigger — was 18px fixed */
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--ease);
  z-index: 901;
}
#site-nav.scrolled .nav-logo { color: var(--ink); }

.nav-links {
  display: flex; gap: 44px; align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 1px;
  background: currentColor;
  transition: width var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

#site-nav.scrolled .nav-links a { color: var(--ash); }
#site-nav.scrolled .nav-links a:hover { color: var(--ink); }

/* Book link — no underline, subtle */
.nav-book {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,.4);
  padding: 9px 22px !important;
  transition: border-color var(--ease), color var(--ease), background var(--ease) !important;
}
.nav-book::after { display: none !important; }
.nav-book:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.8) !important;
}
#site-nav.scrolled .nav-book {
  color: var(--ink) !important;
  border-color: var(--stone) !important;
}
#site-nav.scrolled .nav-book:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-ham {
  display: none; flex-direction: column;
  gap: 6px; cursor: pointer; z-index: 901; padding: 6px;
}
.nav-ham span {
  display: block; width: 26px; height: 1px;
  background: var(--white);
  transition: var(--ease);
}
#site-nav.scrolled .nav-ham span { background: var(--ink); }
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.mob-menu {
  position: fixed; inset: 0;
  background: var(--ivory);
  z-index: 899;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
  opacity: 0; visibility: hidden;
  transition: var(--ease);
}
.mob-menu.open { opacity: 1; visibility: visible; }
.mob-menu a {
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: color var(--ease);
}
.mob-menu a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   HERO — FULL WINDOW IMAGE + VIDEO BANNER
───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Slides container */
.hero-slides {
  position: absolute; inset: 0;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }

/* Photo slide */
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 9s ease;
}
.hero-slide.active img { transform: scale(1); }

/* Video slide (YouTube/Vimeo/self-hosted) */
.hero-slide .hero-video-wrap {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-slide .hero-video-wrap iframe,
.hero-slide .hero-video-wrap video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; /* 16:9 */
  min-width: 100%;
  min-height: 56.25vw;
  height: 100%;
  border: none;
}

/* Subtle light vignette from bottom only */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 55%,
    rgba(255,255,255,0.25) 80%,
    rgba(255,255,255,0.55) 100%
  );
  z-index: 1;
}

/* Centered minimal text over hero */
.hero-text {
  position: absolute;
  bottom: 10vh; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  animation: fu .9s ease 0.6s forwards;
  display: block;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--white);
  opacity: 0;
  animation: fu 1s ease 0.8s forwards;
}
.hero-title em { font-style: italic; font-weight: 200; }

/* Slide dots — bottom center */
.hero-dots {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 20px; height: 1px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--ease), width var(--ease);
}
.hero-dot.active { background: rgba(255,255,255,0.9); width: 40px; }

/* Scroll nudge */
.scroll-hint {
  position: absolute; bottom: 32px; right: 48px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  animation: fu 1s ease 1.4s forwards;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: sp 2s ease infinite;
}
@keyframes sp {
  0%,100% { opacity:.3; transform: scaleY(.7); }
  50%      { opacity:1;  transform: scaleY(1); }
}

/* ─────────────────────────────────────────────
   PORTFOLIO GRID — EDGE-TO-EDGE
───────────────────────────────────────────── */
.gallery-section {
  padding: 100px 0 0;
  background: var(--ivory);
}

.gallery-intro {
  padding: 0 60px 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
}
.section-heading em { font-style: italic; font-weight: 200; color: var(--accent-2); }

/* Filter pills */
.filter-bar { display: flex; gap: 3px; flex-wrap: wrap; }
.fpill {
  font-family: var(--sans);
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 9px 20px;
  border: 1px solid var(--mist);
  background: transparent;
  cursor: pointer;
  transition: var(--ease);
}
.fpill:hover, .fpill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Full-width masonry */
.gallery-grid {
  columns: 3;
  column-gap: 3px;
  padding: 0 3px;
}

.gitem {
  break-inside: avoid;
  margin-bottom: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.gitem img {
  width: 100%; display: block;
  transition: transform .8s ease;
}
.gitem:hover img { transform: scale(1.04); }

.gitem-cap {
  position: absolute; inset: 0;
  background: rgba(250,249,247,0);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  transition: background var(--ease);
}
.gitem:hover .gitem-cap { background: rgba(250,249,247,0.18); }

.gitem-cap h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 300;
  color: var(--white);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease);
}
.gitem-cap span {
  font-family: var(--sans);
  font-size: 8.5px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--ease) .05s, transform var(--ease) .05s;
}
.gitem:hover .gitem-cap h3,
.gitem:hover .gitem-cap span {
  opacity: 1; transform: translateY(0);
}

/* View all link */
.gallery-more {
  text-align: center;
  padding: 72px 0;
}
.view-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap var(--ease), color var(--ease);
}
.view-link::after {
  content: '';
  display: block; width: 40px; height: 1px;
  background: var(--ink);
  transition: width var(--ease);
}
.view-link:hover { color: var(--accent); gap: 20px; }
.view-link:hover::after { width: 64px; background: var(--accent); }

/* ─────────────────────────────────────────────
   VIDEO SECTION — FULL WINDOW FIRST VIDEO
───────────────────────────────────────────── */
.films-section {
  background: var(--paper);
  padding: 0;
}

.film-feature {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}
.film-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
  filter: brightness(.92);
}
.film-feature:hover img { transform: scale(1.02); }

.film-feature-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(250,249,247,.08);
  transition: background var(--ease);
}
.film-feature:hover .film-feature-overlay { background: rgba(250,249,247,.16); }

.film-play {
  width: 76px; height: 76px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}
.film-feature:hover .film-play {
  transform: scale(1.08);
  border-color: var(--white);
  background: rgba(255,255,255,.12);
}
.film-play svg { width: 22px; height: 22px; fill: var(--white); margin-left: 4px; }

.film-feature-label {
  position: absolute; bottom: 48px; left: 60px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
}
.film-feature-sublabel {
  position: absolute; bottom: 36px; right: 60px;
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* Small film grid below */
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px 0 0;
}
.film-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--mist);
}
.film-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.88);
  transition: transform .7s ease, filter .7s ease;
}
.film-item:hover img { transform: scale(1.05); filter: brightness(.75); }

.film-item-ov {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 12px;
}
.film-play-sm {
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s ease;
}
.film-item:hover .film-play-sm { transform: scale(1.12); }
.film-play-sm svg { width: 16px; height: 16px; fill: var(--white); margin-left: 3px; }
.film-item-title {
  font-family: var(--serif);
  font-size: 16px; font-weight: 300;
  color: var(--white); letter-spacing: .06em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.film-item:hover .film-item-title { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────
   VIDEO MODAL
───────────────────────────────────────────── */
.vmodal {
  position: fixed; inset: 0;
  background: rgba(250,249,247,.97);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--ease);
}
.vmodal.open { opacity: 1; visibility: visible; }

.vmodal-inner {
  position: relative;
  width: 92vw; max-width: 1280px;
}
.vmodal-inner iframe,
.vmodal-inner video {
  width: 100%; aspect-ratio: 16/9;
  border: none; display: block;
}
.vmodal-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none;
  font-family: var(--sans);
  font-size: 9.5px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash); cursor: pointer;
  transition: color var(--ease);
}
.vmodal-close:hover { color: var(--ink); }

/* ─────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────── */
.lbox {
  position: fixed; inset: 0;
  background: rgba(250,249,247,.98);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--ease);
}
.lbox.open { opacity: 1; visibility: visible; }

.lbox-img {
  max-width: 88vw; max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,.1);
}
.lbox-close {
  position: absolute; top: 24px; right: 36px;
  background: none; border: none;
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ash); cursor: pointer;
  transition: color var(--ease);
}
.lbox-close:hover { color: var(--ink); }
.lbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none;
  border: 1px solid var(--mist);
  color: var(--ash);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  transition: var(--ease);
}
.lbox-nav:hover { border-color: var(--ink); color: var(--ink); }
.lbox-prev { left: 28px; }
.lbox-next { right: 28px; }

/* ─────────────────────────────────────────────
   CONTACT — MINIMAL
───────────────────────────────────────────── */
.contact-section {
  padding: 130px 60px;
  background: var(--ivory);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-left p {
  font-family: var(--sans);
  font-size: 14px; font-weight: 300;
  line-height: 1.9; color: var(--ash);
  margin-top: 20px; max-width: 380px;
}

.cdetails { margin-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.cdetail-label {
  font-family: var(--sans);
  font-size: 8.5px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}
.cdetail-value {
  font-family: var(--sans);
  font-size: 14px; font-weight: 300; color: var(--ink-light);
}

/* Form */
.cform { display: flex; flex-direction: column; gap: 32px; }
.cfield { display: flex; flex-direction: column; gap: 7px; }
.cfield label {
  font-family: var(--sans);
  font-size: 8.5px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone);
}
.cfield input,
.cfield select,
.cfield textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mist);
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px; font-weight: 300;
  outline: none; width: 100%;
  transition: border-color var(--ease);
  -webkit-appearance: none;
}
.cfield input:focus,
.cfield select:focus,
.cfield textarea:focus { border-bottom-color: var(--accent); }
.cfield textarea { resize: none; min-height: 90px; }
.cfield select option { background: var(--ivory); }

.csend {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: none; padding: 16px 44px;
  cursor: pointer;
  transition: background var(--ease);
}
.csend:hover { background: var(--accent); }

/* ─────────────────────────────────────────────
   FOOTER — ULTRA MINIMAL
───────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid var(--mist);
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 20px;
  background: var(--ivory);
}

.footer-logo-sm {
  font-family: var(--serif);
  font-size: 15px; font-weight: 300;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--ink);
}

.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ash);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-family: var(--sans);
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.1em; color: var(--stone);
}

.footer-social { display: flex; gap: 20px; }
.footer-social a {
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ash);
  transition: color var(--ease);
}
.footer-social a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   KEYFRAMES + REVEALS
───────────────────────────────────────────── */
@keyframes fu {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s ease, transform .85s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
  .film-grid { grid-template-columns: 1fr 1fr; }
  .contact-section { grid-template-columns: 1fr; gap: 60px; padding: 100px 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  #site-nav { padding: 0 24px; }
  .gallery-intro { padding: 0 24px 48px; }
  .gallery-grid { columns: 1; padding: 0 2px; }
  .film-grid { grid-template-columns: 1fr; }
  .film-feature-label { left: 24px; bottom: 36px; }
  .film-feature-sublabel { right: 24px; }
  .contact-section { padding: 80px 24px; }
  #site-footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .scroll-hint { display: none; }
}

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

/* ─────────────────────────────────────────────
   INNER PAGES EXTRA STYLES
───────────────────────────────────────────── */

/* Pagination */
.nav-links .page-numbers,
.pagination .page-numbers {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ash);
  padding: 10px 16px;
  border: 1px solid var(--mist);
  transition: var(--ease);
  display: inline-block;
  margin: 0 2px;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Film grid inner pages */
.film-grid { grid-template-columns: repeat(3,1fr); }

/* About page responsive */
@media (max-width: 900px) {
  .film-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* About grid */
  section[style*="grid-template-columns:1fr 1fr"],
  section[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 72px 24px !important;
  }
  section[style*="grid-template-columns:repeat(3,1fr)"],
  section[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  /* Single portfolio strip */
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
  .film-grid { grid-template-columns: 1fr !important; }
  /* Contact form grid */
  #contactMain {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 60px 24px !important;
  }
}

/* Film featured full section on archive-film */
.films-section .film-feature {
  cursor: pointer;
}

/* Smooth image hover on about team */
img { transition: transform .7s ease; }


/* ─────────────────────────────────────────────
   PORTFOLIO ARCHIVE — CONTROLS & RESPONSIVE GRID
───────────────────────────────────────────── */
.portfolio-controls {
  padding: 40px 60px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.portfolio-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Gallery grid — fluid masonry */
.gallery-grid {
  columns: 3;
  column-gap: 4px;
  padding: 28px 4px 0;
}

@media (max-width: 1100px) {
  .gallery-grid { columns: 2; }
}

@media (max-width: 600px) {
  .gallery-grid {
    columns: 1;
    padding: 16px 2px 0;
  }
  .portfolio-controls {
    padding: 28px 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .filter-bar { flex-wrap: wrap; }
  .fpill { padding: 8px 14px; font-size: 8.5px; }
}

.gitem {
  break-inside: avoid;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--mist);
}

.gitem img {
  width: 100%;
  display: block;
  transition: transform 0.75s ease;
  object-fit: cover;
}

.gitem:hover img { transform: scale(1.05); }

.gitem-cap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  background: rgba(250,249,247,0);
  transition: background var(--ease);
}

.gitem:hover .gitem-cap { background: rgba(250,249,247,.12); }

.gitem-cap h3 {
  font-family: var(--serif);
  font-size: 17px; font-weight: 300;
  color: var(--white);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.gitem-cap span {
  font-family: var(--sans);
  font-size: 8.5px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--ease) .05s, transform var(--ease) .05s;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.gitem:hover .gitem-cap h3,
.gitem:hover .gitem-cap span { opacity: 1; transform: translateY(0); }

/* Pagination */
.portfolio-pagination {
  text-align: center;
  padding: 64px 40px 80px;
}

.portfolio-pagination .page-numbers {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--ash);
  padding: 10px 16px;
  border: 1px solid var(--mist);
  display: inline-block;
  margin: 0 2px;
  transition: var(--ease);
}

.portfolio-pagination .page-numbers:hover,
.portfolio-pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ── GALLERY MORE LINK ─────────────────────── */
.gallery-more {
  text-align: center;
  padding: 64px 0 80px;
}

/* ── GALLERY SECTION INTRO ─────────────────── */
.gallery-intro {
  padding: 0 60px 52px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 600px) {
  .gallery-intro {
    padding: 0 20px 36px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── CONTACT SECTION RESPONSIVE ────────────── */
@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr !important;
    gap: 52px !important;
    padding: 80px 32px !important;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 64px 20px !important;
  }
  .cform {
    gap: 24px !important;
  }
}

/* ── HERO RESPONSIVE ────────────────────────── */
@media (max-width: 600px) {
  .hero-title { font-size: 38px !important; }
  .scroll-hint { display: none; }
  .hero-dots { bottom: 20px; }
}

/* ─────────────────────────────────────────────
   PORTFOLIO ARCHIVE — FULL RESPONSIVE REBUILD
───────────────────────────────────────────── */

/* Hero */
.port-hero {
  position: relative;
  width: 100vw;
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
  background: #e8e4de;
  display: flex;
  align-items: flex-end;
}

.port-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1634470990399-b5dade86c9e4?w=1920&q=80&fit=crop');
  background-size: cover;
  background-position: center;
}

.port-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250,249,247,0) 30%,
    rgba(250,249,247,.72) 100%
  );
}

.port-hero-text {
  position: relative;
  z-index: 2;
  padding: 0 60px 64px;
}

/* Filter bar */
.port-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 36px 60px 0;
  align-items: center;
  justify-content: flex-start;
}

/* ── MASONRY GRID ─────────────────────────── */
.port-grid {
  padding: 36px 24px 0;
  columns: 3;
  column-gap: 6px;
}

.port-card {
  break-inside: avoid;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--mist);
}

/* Taller cards for visual rhythm (every 2nd in middle column) */
.port-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.port-card-img-wrap img {
  width: 100%;
  display: block;
  transition: transform .85s ease;
  object-fit: cover;
}

.port-card:hover .port-card-img-wrap img {
  transform: scale(1.05);
}

/* Caption slides up on hover */
.port-card-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(250,249,247,.85) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

.port-card:hover .port-card-cap {
  transform: translateY(0);
}

.port-card-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: .04em;
  margin: 0 0 3px;
}

.port-card-loc {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

/* Demo note */
.port-demo-note {
  text-align: center;
  padding: 36px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
}
.port-demo-note a { color: var(--accent); }

/* Pagination */
.port-pagination {
  text-align: center;
  padding: 64px 40px;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1100px) {
  .port-grid { columns: 2; }
}

@media (max-width: 768px) {
  .port-hero-text { padding: 0 24px 48px; }
  .port-filter-bar { padding: 28px 20px 0; gap: 3px; }
  .port-grid { columns: 2; padding: 20px 8px 0; column-gap: 4px; }
  .port-card { margin-bottom: 4px; }
  .port-card-cap { transform: translateY(0); background: linear-gradient(to top, rgba(250,249,247,.7) 0%, transparent 100%); }
  .port-card-cap .port-card-name { font-size: 14px; }
}

@media (max-width: 480px) {
  .port-grid { columns: 1; padding: 16px 8px 0; }
  .port-hero { height: 50vh; }
}

/* ── GALLERY GRID (homepage) tweaks ─────── */
.gallery-grid {
  columns: 3;
  column-gap: 4px;
  padding: 0 4px;
}

.gitem {
  break-inside: avoid;
  margin-bottom: 4px;
}

/* Make middle item tall on desktop for visual interest */
@media (min-width: 769px) {
  .gitem--tall img { height: 520px !important; object-fit: cover; }
}

@media (max-width: 900px) {
  .gallery-grid { columns: 2; }
  .gallery-intro { padding: 0 24px 40px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .gallery-grid { columns: 1; }
  .gallery-section { padding: 72px 0 0; }
}
