/* =========================================================
   Lav Ghosh Photography
   Static site: index.html + style.css + script.js
   ========================================================= */

:root {
  /* Light wedding palette */
  --cream: #FDFBF7;        /* page background */
  --champagne: #F7E7CE;    /* portfolio band, panels */
  --champagne-2: #F2DFC2;  /* hover / pressed */
  --text: #2A211C;         /* main text, deep warm brown */
  --text-soft: #4A3F37;    /* body copy */
  --muted: #5F5347;        /* labels, secondary text */
  --gold: #C6A36A;         /* button fills, rules */
  --gold-text: #7C5E32;    /* small gold text and links (readable on cream) */
  --gold-deep: #B8925A;
  --line: rgba(42, 33, 28, 0.14);
  --white: #FFFFFF;

  /* Text that sits on photos and video */
  --on-photo: #FBF6EE;
  --on-photo-soft: rgba(251, 246, 238, 0.88);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --section-gap: clamp(5rem, 11vw, 9rem);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }

p { margin: 0 0 1.1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--text); color: var(--cream);
  padding: .5rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Small serif-italic label above a heading, sentence case */
.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-text);
  margin-bottom: .9rem;
}

.section { padding: var(--section-gap) var(--pad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.6rem;
  font: 600 .9rem/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--gold { background: var(--gold); color: var(--text); }
.btn--gold:hover { background: var(--text); color: var(--cream); }
.btn--ghost { border-color: rgba(42, 33, 28, .4); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(42, 33, 28, .05); }

/* Buttons sitting on photos or video stay light */
.hero .btn--ghost {
  border-color: rgba(251, 246, 238, .55);
  color: var(--on-photo);
}
.hero .btn--ghost:hover { border-color: var(--on-photo); background: rgba(251, 246, 238, .1); }
.hero .btn--gold:hover { background: var(--on-photo); color: var(--text); }
.btn--small { min-height: 40px; padding: .55rem 1.2rem; font-size: .82rem; }

.text-link {
  display: inline-block;
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--text); }

/* =========================================================
   Logo (text wordmark)
   ========================================================= */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: .38rem;
  border-bottom: 1px solid var(--gold);
}
.logo__sub {
  margin-top: .38rem;
  font-family: var(--sans);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .62em;
  margin-right: -.62em; /* balance trailing tracking */
  text-transform: uppercase;
  color: var(--gold-text);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--pad);
  color: var(--on-photo);
  transition: background-color .35s, border-color .35s, color .35s;
  border-bottom: 1px solid transparent;
}
.site-header .logo__sub { color: var(--gold); }
.site-header.is-solid .logo__sub { color: var(--gold-text); }
.site-header.is-solid {
  background: rgba(253, 251, 247, .94);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav { display: flex; gap: 2.2rem; }
.nav a {
  font-size: .9rem;
  text-decoration: none;
  color: inherit;
  opacity: .85;
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { opacity: 1; border-bottom-color: var(--gold); }

.header__actions { display: flex; align-items: center; gap: 1rem; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 24px; height: 1px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
  transition: transform .3s;
}
.menu-toggle__bars { transform: translateY(-4px); }
.menu-toggle__bars::before { content: ""; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--cream);
  color: var(--text);
  padding: calc(var(--header-h) + 2rem) var(--pad) calc(2rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-panel[hidden] { display: none; }
@media (min-width: 861px) { .menu-panel { display: none; } }
.menu-panel__nav { display: flex; flex-direction: column; }
.menu-panel__nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-panel__contact { display: flex; gap: .8rem; flex-wrap: wrap; }
.menu-panel__contact .btn--gold { color: var(--text); }
.menu-panel { overflow-y: auto; }
.menu-panel__nav { margin-bottom: 2rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1511;
  color: var(--on-photo);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(22, 18, 15, .92) 0%, rgba(22, 18, 15, .35) 42%, rgba(22, 18, 15, 0) 65%),
    linear-gradient(to right, rgba(22, 18, 15, .6) 0%, rgba(22, 18, 15, 0) 55%),
    linear-gradient(to bottom, rgba(22, 18, 15, .55) 0%, rgba(22, 18, 15, 0) 22%);
}
.hero__content {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: end;
  gap: 2rem 4rem;
  padding: 0 var(--pad) clamp(3.5rem, 8vh, 5.5rem);
}
.hero__place {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero__title {
  font-size: clamp(2.9rem, 6.2vw, 5.8rem);
  line-height: .98;
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; }
.hero__title .line + .line { padding-left: clamp(1.5rem, 8vw, 7rem); }
.hero__lead {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  color: var(--on-photo-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__sound {
  position: absolute;
  right: var(--pad);
  top: calc(var(--header-h) + 1rem);
  background: none;
  border: 0;
  color: rgba(251, 246, 238, .8);
  font: 500 .8rem var(--sans);
  cursor: pointer;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(251, 246, 238, .35);
}
.hero__sound:hover { color: var(--on-photo); }

/* One orchestrated entrance, page load only */
.js .hero__place,
.js .hero__title .line,
.js .hero__lead,
.js .hero__actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.is-loaded .hero__place { opacity: 1; transform: none; transition-delay: .15s; }
.is-loaded .hero__title .line:nth-child(1) { opacity: 1; transform: none; transition-delay: .35s; }
.is-loaded .hero__title .line:nth-child(2) { opacity: 1; transform: none; transition-delay: .6s; }
.is-loaded .hero__lead { opacity: 1; transform: none; transition-delay: .9s; }
.is-loaded .hero__actions { opacity: 1; transform: none; transition-delay: 1.05s; }

/* =========================================================
   About
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about__photo { margin: 0; position: relative; max-width: 30rem; }
.about__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__photo::after {           /* offset gold frame */
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--gold);
  z-index: -1;
}
.about__text { max-width: 36rem; }
.about__text h2 { font-size: clamp(3rem, 7vw, 5.6rem); margin-bottom: 1.6rem; }
.about__lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
}
.about__text > p:not(.kicker):not(.about__lead) { color: var(--text-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1.4rem 2.6rem;
  margin: 2.2rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }

/* =========================================================
   Moving frames (auto-scrolling photo strip)
   ========================================================= */
.reel {
  padding: 0 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
.reel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 2rem;
  padding: 0 var(--pad);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.reel__head .kicker { width: 100%; margin-bottom: .2rem; }
.reel__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.reel__hint { margin: 0; font-size: .85rem; color: var(--muted); }

.reel__viewport {
  --frame-h: clamp(270px, 30vw, 400px);
  position: relative;
  overflow: hidden;
  padding: 1.2rem 0 1.8rem; /* room for frame shadows */
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.reel__track {
  display: flex;
  width: max-content;
  animation: reel-move var(--strip-duration, 70s) linear infinite;
  will-change: transform;
}
@keyframes reel-move {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* script.js takes over the movement (smooth slow-down / speed-up) */
.reel--js .reel__track { animation: none; }

/* Fallback for browsers without that support: simple hover pause */
@media (hover: hover) {
  .reel:not(.reel--js) .reel__viewport:hover .reel__track { animation-play-state: paused; }
}
.reel:not(.reel--js) .reel__viewport:has(.reel__frame:focus-visible) .reel__track { animation-play-state: paused; }

.reel__frame {
  flex: 0 0 auto;
  height: var(--frame-h);
  margin-right: clamp(.8rem, 1.6vw, 1.4rem); /* margin, not gap, keeps the loop seamless */
  padding: 0;
  border: 6px solid var(--white);
  background: var(--champagne);
  box-shadow: 0 10px 26px rgba(74, 52, 30, .16);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.reel__frame:nth-child(odd)  { transform: translateY(-6px) rotate(-.6deg); }
.reel__frame:nth-child(even) { transform: translateY(6px) rotate(.6deg); }
.reel__frame:focus-visible {
  transform: translateY(-10px) rotate(0deg);
  box-shadow: 0 18px 36px rgba(74, 52, 30, .24);
}
@media (hover: hover) {
  .reel__frame:hover {
    transform: translateY(-10px) rotate(0deg);
    box-shadow: 0 18px 36px rgba(74, 52, 30, .24);
  }
}
.reel__frame:focus:not(:focus-visible) { outline: none; }
.reel__frame img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

@media (max-width: 560px) {
  .reel__viewport { --frame-h: 250px; }
  .reel__frame { border-width: 4px; }
  .reel__hint { display: none; }
}

/* Reduced motion: no auto-scroll, visitors swipe or scroll the row themselves */
@media (prefers-reduced-motion: reduce) {
  .reel__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    padding-left: var(--pad);
    scroll-snap-type: x proximity;
  }
  .reel__track { animation: none; }
  .reel__frame { scroll-snap-align: start; }
  .reel__frame[aria-hidden="true"] { display: none; }
}

/* =========================================================
   Portfolio folders
   ========================================================= */
.portfolio { background: var(--champagne); }

.section__head { max-width: 40rem; margin-bottom: clamp(3rem, 6vw, 5rem); }

.folders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.folder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* A small stack of prints */
.folder__stack {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.8rem;
}
.folder__stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 14px 30px rgba(74, 52, 30, .18), 0 2px 6px rgba(74, 52, 30, .1);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s;
}
.folder__stack img:nth-child(1) { transform: rotate(-5deg) translate(-4%, 2%); filter: brightness(.92) saturate(.85); }
.folder__stack img:nth-child(2) { transform: rotate(4deg) translate(4%, 1%);  filter: brightness(.96) saturate(.9); }
.folder__stack img:nth-child(3) { transform: none; }

.folder:hover .folder__stack img:nth-child(1),
.folder:focus-visible .folder__stack img:nth-child(1) { transform: rotate(-10deg) translate(-14%, 3%); filter: brightness(.9); }
.folder:hover .folder__stack img:nth-child(2),
.folder:focus-visible .folder__stack img:nth-child(2) { transform: rotate(9deg) translate(14%, 2%); filter: brightness(.95); }
.folder:hover .folder__stack img:nth-child(3),
.folder:focus-visible .folder__stack img:nth-child(3) { transform: translateY(-4%); }

.folder:focus-visible { outline-offset: 10px; }

.folder__name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.folder:hover .folder__name { border-bottom-color: var(--gold); }
.folder__meta { font-size: .85rem; color: var(--gold-text); margin: .3rem 0 .6rem; }
.folder__desc { font-size: .92rem; line-height: 1.55; color: var(--muted); }

/* =========================================================
   Reels (moving strip of client films + player)
   ========================================================= */
.films {
  padding: var(--section-gap) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.films__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: end;
  gap: 1.2rem 4rem;
  padding: 0 var(--pad);
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.films__side p { color: var(--text-soft); margin-bottom: .6rem; }

.films__viewport {
  --film-h: clamp(340px, 30vw, 460px);
  position: relative;
  overflow: hidden;
  padding: 1.2rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.films__track {
  display: flex;
  width: max-content;
  animation: reel-move var(--strip-duration, 90s) linear infinite;
  will-change: transform;
}
.films--js .films__track { animation: none; }
@media (hover: hover) {
  .films:not(.films--js) .films__viewport:hover .films__track { animation-play-state: paused; }
}

.film-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  margin-right: clamp(.9rem, 1.8vw, 1.6rem); /* margin, not gap, keeps the loop seamless */
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.film-card__media {
  position: relative;
  display: block;
  height: var(--film-h);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  border: 5px solid var(--white);
  background: var(--champagne);
  box-shadow: 0 12px 30px rgba(74, 52, 30, .18);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.film-card__media img,
.film-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.film-card__preview { opacity: 0; transition: opacity .4s; }
.film-card.is-previewing .film-card__preview { opacity: 1; }
.film-card__media::after { /* soft shade so the badges read on any poster */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 18, 15, .45), rgba(22, 18, 15, 0) 38%);
  pointer-events: none;
}
.film-card__play {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(253, 251, 247, .92);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .3s;
}
.film-card__play svg { margin-left: 2px; }
.film-card__time {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 1;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(22, 18, 15, .55);
  color: var(--on-photo);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.film-card__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.25;
  max-width: calc(var(--film-h) * 9 / 16);
}
@media (hover: hover) {
  .film-card:hover .film-card__media {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 52, 30, .24);
  }
  .film-card:hover .film-card__play { transform: scale(1.08); background: var(--gold); }
}
.film-card:focus-visible { outline: none; }
.film-card:focus-visible .film-card__media {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  transform: translateY(-8px);
}

/* Reel player */
.film-viewer {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 1.5rem 5rem;
  border: 0;
  background: var(--cream);
  color: var(--text);
}
.film-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: film-in .35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes film-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.film-viewer::backdrop { background: rgba(42, 33, 28, .45); }
.film-viewer__stage {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.film-viewer__stage video {
  display: block;
  height: min(calc(100vh - 7rem), calc((100vw - 10rem) * 16 / 9));
  height: min(calc(100svh - 7rem), calc((100vw - 10rem) * 16 / 9));
  aspect-ratio: 9 / 16;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  background: #16120f;
  box-shadow: 0 16px 50px rgba(74, 52, 30, .25);
}
.film-viewer__stage figcaption {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.film-viewer__title { font-family: var(--serif); font-size: 1.15rem; }
.film-viewer__count { font-size: .8rem; color: var(--muted); }
.film-viewer__close,
.film-viewer__nav {
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--serif);
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.film-viewer__close { top: .8rem; right: .8rem; font-size: 2.4rem; }
.film-viewer__nav { top: 50%; transform: translateY(-50%); font-size: 3.2rem; }
.film-viewer__prev { left: .8rem; }
.film-viewer__next { right: .8rem; }
.film-viewer__close:hover,
.film-viewer__nav:hover { color: var(--gold-text); }

@media (max-width: 860px) {
  .films__head { grid-template-columns: 1fr; }
  .film-viewer { padding: 4.2rem 0 4.2rem; }
  .film-viewer__stage video {
    height: auto;
    width: min(100vw, calc((100svh - 11rem) * 9 / 16));
    max-height: calc(100svh - 11rem);
    border-radius: 10px;
  }
  .film-viewer__nav { top: auto; bottom: .4rem; transform: none; }
  .film-viewer__close { top: .5rem; right: .5rem; background: rgba(253, 251, 247, .9); border-radius: 50%; }
}
@media (max-width: 560px) {
  .films__viewport { --film-h: 340px; }
  .film-card__title { font-size: 1rem; }
}

/* Reduced motion: no auto-scroll, no hover previews; visitors swipe the row */
@media (prefers-reduced-motion: reduce) {
  .films__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    padding-left: var(--pad);
    scroll-snap-type: x proximity;
  }
  .films__track { animation: none; }
  .film-card { scroll-snap-align: start; }
  .film-card[aria-hidden="true"] { display: none; }
}

/* =========================================================
   Services
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.services__photo { margin: 0; order: 2; max-width: 34rem; justify-self: end; }
.services__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.services__text { order: 1; }
.services__text h2 { max-width: 14ch; margin-bottom: 2.4rem; }

.service-list {
  list-style: none;
  margin: 0 0 2.6rem;
  padding: 0;
}
.service-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.25; }
.service-list p { margin: .25rem 0 0; font-size: .95rem; color: var(--muted); }

/* =========================================================
   Destinations
   ========================================================= */
.destinations {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: var(--section-gap) var(--pad);
  overflow: hidden;
}
.destinations__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.destinations__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22, 18, 15, .9) 0%, rgba(22, 18, 15, .65) 45%, rgba(22, 18, 15, .15) 100%);
}
.destinations__content { position: relative; max-width: 40rem; color: var(--on-photo); }
.destinations .kicker,
.destinations .places__label { color: var(--gold); }
.destinations__content h2 { margin-bottom: 1.4rem; }
.destinations__content > p:not(.kicker):not(.places__label) { max-width: 30rem; color: var(--on-photo-soft); }

.places__label { margin: 2.6rem 0 .6rem; font-size: .85rem; }
.places {
  list-style: none;
  margin: 0;
  padding: 0;
}
.places li {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}
.contact__main h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 1.4rem; }
.contact__main > p:not(.kicker) { max-width: 32rem; color: var(--text-soft); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.contact__links { list-style: none; margin: 0; padding: 0; }
.contact__links li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.contact__links li:last-child { border-bottom: 1px solid var(--line); }
.contact__links span { font-size: .85rem; color: var(--muted); padding-top: .15rem; }
.contact__links a { text-decoration: none; }
.contact__links a:hover { color: var(--gold-text); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 4rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  background: var(--champagne);
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.logo--footer { margin-bottom: 1.4rem; color: var(--text); }
.site-footer p { margin: 0 0 .4rem; }
.site-footer__copy { font-size: .8rem; }

.quickbar { display: none; }

/* =========================================================
   Gallery dialog (folder view)
   ========================================================= */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(42, 33, 28, .45); }

.gallery {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0 var(--pad) 4rem;
  border: 0;
  background: var(--cream);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.gallery[open] { animation: gallery-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes gallery-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.gallery__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: rgba(253, 251, 247, .96);
  border-bottom: 1px solid var(--line);
}
.gallery__back {
  background: none;
  border: 1px solid rgba(42, 33, 28, .3);
  border-radius: 999px;
  color: var(--text);
  font: 500 .85rem var(--sans);
  padding: .6rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
}
.gallery__back:hover { border-color: var(--gold-text); color: var(--gold-text); }
.gallery__heading { display: flex; align-items: baseline; gap: 1rem; }
.gallery__heading h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.gallery__heading p { margin: 0; font-size: .85rem; color: var(--gold-text); }

.gallery__desc {
  max-width: 38rem;
  margin: 2rem 0 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-soft);
}

.gallery__grid { columns: 3 22rem; column-gap: 1rem; }
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  break-inside: avoid;
  background: var(--champagne);
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .5s;
  opacity: 0;
}
.gallery__item img.is-ready { opacity: 1; }
.gallery__item:hover img { transform: scale(1.03); }

.gallery__end { text-align: center; padding-top: 3rem; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.lightbox__figure img {
  max-width: calc(100vw - 9rem);
  max-height: calc(100vh - 6rem);
  max-height: calc(100svh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity .3s;
  box-shadow: 0 12px 40px rgba(74, 52, 30, .18);
}
.lightbox__figure img.is-loading { opacity: .25; }
.lightbox__figure figcaption { font-size: .8rem; color: var(--muted); }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-family: var(--serif);
  line-height: 1;
  width: 56px;
  height: 56px;
  z-index: 2; /* always above the photo, even while it loads */
  touch-action: manipulation;
}
.lightbox__close { top: .8rem; right: .8rem; font-size: 2.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.2rem; }
.lightbox__prev { left: .8rem; }
.lightbox__next { right: .8rem; }
.lightbox__close:hover,
.lightbox__nav:hover { color: var(--gold-text); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .folders { gap: 1.6rem; }
  .folder__desc { font-size: .85rem; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4rem; }
  :root { --header-h: 66px; }

  .nav,
  .header__actions .btn { display: none; }
  .menu-toggle { display: block; }
  .logo__name { font-size: 1.25rem; }

  .about,
  .services,
  .contact { grid-template-columns: 1fr; }

  .about__photo { max-width: 26rem; margin-right: 1.4rem; }
  .services__photo { order: 0; max-width: 26rem; justify-self: start; }

  .hero__sound { display: none; }
  /* Shown only if the phone blocked autoplay */
  .hero-blocked .hero__sound,
  .hero-user-paused .hero__sound {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem 1.1rem;
    border: 1px solid rgba(251, 246, 238, .6);
    border-radius: 999px;
    background: rgba(22, 18, 15, .45);
    color: var(--on-photo);
    font-size: .85rem;
  }
  .hero__content { grid-template-columns: 1fr; gap: 1.4rem; }

  .destinations { min-height: 0; align-items: flex-end; }
  .destinations__shade {
    background: linear-gradient(to top, rgba(22, 18, 15, .95) 0%, rgba(22, 18, 15, .7) 55%, rgba(22, 18, 15, .35) 100%);
  }

  /* Mobile quick bar */
  .quickbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(253, 251, 247, .97);
    border-top: 1px solid var(--line);
    color: var(--text);
    box-shadow: 0 -4px 20px rgba(74, 52, 30, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a {
    text-align: center;
    padding: .95rem 0;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
  }
  .quickbar a:nth-child(2) { color: var(--text); background: var(--gold); }
  body { padding-bottom: 52px; }

  .lightbox__figure img { max-width: 100vw; max-height: calc(100svh - 11rem); }
  .lightbox[open] { padding: 4.5rem 0 4rem; } /* keep the photo clear of the buttons */
  .lightbox__close { background: rgba(253, 251, 247, .9); border-radius: 50%; }
  .lightbox__nav { top: auto; bottom: .6rem; transform: none; }
}

@media (max-width: 560px) {
  .folders { column-gap: 1.1rem; row-gap: 3rem; }
  .folder__stack { margin-bottom: 1.2rem; }
  .folder__stack img { border-width: 4px; }
  .folder__desc { display: none; }
  .gallery__grid { columns: 2; column-gap: .6rem; }
  .gallery__item { margin-bottom: .6rem; }
  .gallery__heading p { display: none; }
  .facts { grid-template-columns: 1fr; gap: .9rem; }
  .contact__links li { grid-template-columns: 5.5rem 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
