/* ==============================================================
   STUDIO APERTURE — STYLESHEET
   A photography studio site built around one idea: the aperture
   iris. Dark "darkroom" palette, deep cinematic red accent — the
   studio's actual brand red — editorial serif + clean sans type.
   ============================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }
html.has-lenis { scroll-behavior: auto; } /* Lenis takes over once it boots */

/* ---------- Design tokens ---------- */
:root{
  /* colour */
  --ink: #0c0c0e;
  --ink-soft: #131217;
  --panel: #18171c;
  --panel-2: #201e24;
  --line: rgba(244, 240, 230, 0.1);
  --line-strong: rgba(244, 240, 230, 0.18);
  --paper: #f4f0e6;
  --paper-dim: #a39e93;
  --paper-faint: #726d64;
  --red: #b52828;
  --red-light: #d55353;
  --red-deep: #661414;
  --shadow: rgba(0, 0, 0, 0.5);

  /* type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --fs-hero: clamp(3rem, 8.5vw, 7.3rem);
  --fs-h1: clamp(2.6rem, 6vw, 4.6rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.1rem);
  --fs-h3: clamp(1.3rem, 2.3vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* layout */
  --container: 1280px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --radius-sm: 3px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-s: 0.35s;
  --dur-m: 0.6s;
}

/* ---------- Base ---------- */
body{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* subtle sitewide film-grain texture */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
p { color: var(--paper-dim); }
strong { color: var(--paper); font-weight: 600; }

::selection { background: var(--red); color: var(--ink); }

/* thin red scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--red-deep); border-radius: 10px; }

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

.visually-hidden{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: fixed; top: -60px; left: 1rem; z-index: 999;
  background: var(--red); color: var(--ink); padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 700; transition: top var(--dur-s) var(--ease);
}
.skip-link:focus{ top: 1rem; }

/* ---------- Layout utilities ---------- */
.container{ max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.section{ padding-top: var(--section-pad); padding-bottom: var(--section-pad); position: relative; }
.section--alt{ background: var(--ink-soft); }
.section--tight{ padding-top: calc(var(--section-pad) * 0.55); padding-bottom: calc(var(--section-pad) * 0.55); }

.section-head{ max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--center{ margin-inline: auto; text-align: center; }
.section-head--row{ max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before{ content: ""; width: 22px; height: 1px; background: var(--red); display: inline-block; }

.section-head h2{ font-size: var(--fs-h2); color: var(--paper); }
.section-head p{ margin-top: 1rem; font-size: var(--fs-lead); }

/* buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.02em; padding: 1rem 1.9rem; border-radius: var(--radius-pill);
  transition: transform var(--dur-s) var(--ease), background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn--solid{ background: var(--red); color: var(--ink); }
.btn--solid:hover{ background: var(--red-light); transform: translateY(-2px); }
.btn--outline{ border-color: var(--line-strong); color: var(--paper); }
.btn--outline:hover{ border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn--block{ width: 100%; }
.btn--sm{ padding: 0.75rem 1.4rem; font-size: var(--fs-micro); }

/* reveal-on-scroll hook — GSAP tweens these directly (see main.js), this is just the pre-state */
.reveal{ opacity: 0; transform: translateY(28px); }
/* hero content that reveals right after the preloader (not scroll-triggered) */
.hero-reveal{ opacity: 0; transform: translateY(24px); }

/* ---------- Preloader ---------- */
/* The whole overlay IS the iris: it starts covering the screen and
   clip-paths open to a point, revealing the page beneath — like a
   camera waking up. */
.preloader{
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  clip-path: circle(150% at 50% 50%);
}
.preloader__content{ display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.preloader__mark{ width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 24px rgba(181,40,40,0.35)); }
.preloader__label{
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.3em;
  color: var(--paper-faint);
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding-block: 1.4rem; transition: padding var(--dur-s) var(--ease), background var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  padding-block: 0.85rem; background: rgba(12,12,14,0.86); backdrop-filter: blur(14px);
  border-color: var(--line);
}
.site-header__inner{ display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand{ display: flex; align-items: center; gap: 0.7rem; }
.brand__logo{ height: 42px; width: auto; display: block; }
.brand--footer .brand__logo{ height: 56px; }

.nav-desktop{ display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); margin-inline: auto; }
.nav-desktop a{
  font-size: var(--fs-small); font-weight: 600; color: var(--paper-dim); position: relative; padding-block: 0.3rem;
  transition: color var(--dur-s) var(--ease);
}
.nav-desktop a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--red);
  transition: right var(--dur-m) var(--ease);
}
.nav-desktop a:hover, .nav-desktop a.is-active{ color: var(--paper); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after{ right: 0; }

.nav-cta{ flex-shrink: 0; }

.nav-social{ display: flex; align-items: center; gap: 0.6rem; }
.nav-social a{
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--paper-dim);
  font-size: 0.85rem; transition: all var(--dur-s) var(--ease);
}
.nav-social a:hover{ border-color: var(--red); color: var(--red); }

@media (max-width: 860px){ .nav-social{ display: none; } }

.nav-toggle{ display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; z-index: 600; }
.nav-toggle__bar{ width: 100%; height: 1.5px; background: var(--paper); transition: transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2){ opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile{
  position: fixed; inset: 0; z-index: 450; background: var(--ink-soft);
  display: flex; flex-direction: column; justify-content: space-between; padding: 7rem 1.75rem 2.5rem;
  transform: translateY(-100%); transition: transform 0.55s var(--ease); visibility: hidden;
}
.nav-mobile.is-open{ transform: translateY(0); visibility: visible; }
.nav-mobile__links{ display: flex; flex-direction: column; gap: 0.4rem; }
.nav-mobile__links a{
  font-family: var(--font-display); font-size: 2.6rem; color: var(--paper-dim); padding-block: 0.35rem;
  overflow: hidden; display: block;
}
.nav-mobile__links a span{ display: inline-block; }
.nav-mobile__links a.is-active, .nav-mobile__links a:hover{ color: var(--red); }
.nav-mobile__footer{ display: flex; flex-direction: column; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.nav-mobile__footer a{ font-size: var(--fs-small); color: var(--paper-dim); display: flex; align-items: center; gap: 0.6rem; }
.nav-mobile__social{ display: flex; gap: 1.25rem; margin-top: 0.4rem; }
.nav-mobile__social a{ font-size: 1.1rem; color: var(--paper); }

@media (max-width: 860px){
  .nav-desktop, .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ---------- Hero ---------- */
/* isolation:isolate makes .hero its own stacking context, so every layer
   below is stacked predictably INSIDE the hero. Nothing uses a negative
   z-index any more — negative indices push layers behind the parent and
   are a common cause of "my background video won't show up". */
.hero{
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; padding-top: 8rem; padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
/* Layer 0 — base gradient + video wrapper.
   Taller than the section so the GSAP parallax drift never exposes a bare
   edge at the bottom of the hero. */
.hero__bg{ position: absolute; top: 0; left: 0; right: 0; height: 118%; z-index: 0; }
.hero__bg .ph{ position: absolute; inset: 0; height: 100%; border-radius: 0; }

/* Layer 1 — the looping background film, sitting over the gradient base. */
.hero__video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.58;
  z-index: 1;
  pointer-events: none;
  /* nudges the video slightly darker/cooler so the cream headline stays readable */
  filter: saturate(0.9) contrast(1.05);
}
/* Layer 2 — darkening scrim that guarantees text contrast. */
.hero__overlay{
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(12,12,14,0.35) 0%, rgba(12,12,14,0.25) 55%, var(--ink) 100%);
}
/* Layer 3 — the actual hero copy, always on top. */
.hero__inner{ position: relative; z-index: 3; width: 100%; }
.hero__eyebrow{ color: var(--red-light); }
.hero__title{
  font-size: var(--fs-hero); color: var(--paper); max-width: 16ch; font-weight: 500;
}
.hero__title .word{ display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .word span{ display: inline-block; will-change: transform; }
.hero__subtitle{ margin-top: 1.75rem; max-width: 46ch; font-size: var(--fs-lead); color: var(--paper-dim); }
.hero__actions{ margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll-cue{
  position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: -1rem; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem; color: var(--paper-faint);
}
.hero__scroll-cue span{ font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.2em; writing-mode: vertical-rl; }
.hero__scroll-cue i{ animation: bob 2s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(8px); } }

/* Centers the homepage hero only — .hero--page banners on other pages
   are untouched since they don't carry this class. */
.hero--centered{ align-items: center; text-align: center; }
.hero--centered .hero__title,
.hero--centered .hero__subtitle{ margin-inline: auto; }
.hero--centered .hero__actions{ justify-content: center; }

@media (max-width: 640px){
  .hero{ align-items: center; padding-top: 7rem; text-align: left; }
  .hero--centered{ text-align: center; } 
  .hero__scroll-cue{ display: none; }
  /* Portrait phones crop a landscape video hard, so lean the overlay darker
     and the video lighter — keeps the headline readable no matter which
     part of the frame happens to land behind it. */
  .hero__video{ opacity: 0.58; }
  .hero__overlay{
    background: linear-gradient(180deg, rgba(12,12,14,0.55) 0%, rgba(12,12,14,0.28) 55%, var(--ink) 100%);
  }
}

/* page hero (services / gallery / contact banners) */
.hero--page{ min-height: 62svh; align-items: center; padding-top: 9rem; padding-bottom: 4rem; }
.hero--page .hero__title{ max-width: 14ch; }
.breadcrumb{ font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-faint); margin-top: 1.5rem; }
.breadcrumb a{ color: var(--paper-dim); }
.breadcrumb a:hover{ color: var(--red); }

/* ---------- Marquee ---------- */
.marquee{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding-block: 1.6rem; background: var(--ink-soft); }
.marquee__track{ display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item{
  display: flex; align-items: center; gap: 1.5rem; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--paper-faint); padding-inline: 1.5rem; white-space: nowrap;
}
.marquee__item i{ color: var(--red); font-size: 0.9rem; font-style: normal; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media{ position: relative; }
.about__media .ph{ aspect-ratio: 4/5; }

.about__media img{
  width: 100%;
  aspect-ratio: 10/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.about__media-tag{
  position: absolute; bottom: -1.25rem; left: -1.25rem; background: var(--panel); border: 1px solid var(--line-strong);
  padding: 1rem 1.35rem; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: 0.08em; color: var(--red-light); max-width: 220px;
}
.about__content p{ font-size: var(--fs-lead); }
.about__content p + p{ margin-top: 1.1rem; }
.about__quote{
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--paper);
  border-left: 2px solid var(--red); padding-left: 1.25rem; margin-top: 2rem;
}
.about__stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.stat__num{ font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--red); display: flex; align-items: baseline; }
.stat__label{ font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-faint); margin-top: 0.35rem; }

@media (max-width: 900px){
  .about__grid{ grid-template-columns: 1fr; }
  .about__media-tag{ left: 1rem; }
}
@media (max-width: 480px){
  .about__stats{ grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Services ---------- */
.services-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card{
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 2.25rem 1.85rem; transition: transform var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), background var(--dur-m) var(--ease);
}
.service-card:hover{ transform: translateY(-6px); border-color: var(--line-strong); background: var(--panel-2); }
.service-card__top{ display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.service-card__icon{ width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 1.05rem; }
.service-card__fstop{ font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--paper-faint); letter-spacing: 0.05em; }
.service-card__title{ font-size: 1.3rem; margin-top: 1.5rem; color: var(--paper); }
.service-card__desc{ margin-top: 0.6rem; font-size: var(--fs-small); }
.service-card__link{ display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1.4rem; font-size: var(--fs-small); font-weight: 700; color: var(--red); }
.service-card__link i{ transition: transform var(--dur-s) var(--ease); font-size: 0.8em; }
.service-card:hover .service-card__link i{ transform: translateX(4px); }

@media (max-width: 900px){ .services-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

/* Why-Us section becomes a swipeable dot-carousel on mobile only.
   Targeted by #id, not .class — an ID always outranks any class,
   so this can never lose to the .services-grid rules above no
   matter what order anything ends up in. */
.why-dots{ display: none; }

@media (max-width: 620px){
  #whySlider{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #whySlider::-webkit-scrollbar{ display: none; }
  #whySlider .service-card{ flex: 0 0 100%; scroll-snap-align: center; }

  #whyDots{
    display: flex;
    justify-content: center; gap: 0.5rem; margin-top: 1.25rem;
  }
  #whyDots button{ width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: all 0.3s var(--ease); }
  #whyDots button.is-active{ background: var(--red); width: 22px; border-radius: 999px; }
}

/* services.php detail rows */
.service-row{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.service-row:first-of-type{ border-top: none; }
.service-row--reverse .service-row__media{ order: 2; }
.service-row__media .ph{ aspect-ratio: 5/4; }

.service-row__media img{
  width: 100%;
  /* aspect-ratio: 4/5; */
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.service-row__fstop{
  display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--font-mono); font-size: var(--fs-micro);
  color: var(--red); letter-spacing: 0.08em; border: 1px solid var(--line-strong); padding: 0.4rem 0.8rem; border-radius: var(--radius-pill);
}
.service-row h3{ font-size: var(--fs-h2); margin-top: 1.25rem; color: var(--paper); }
.service-row p{ margin-top: 1rem; font-size: var(--fs-lead); max-width: 46ch; }
.service-row__features{ margin-top: 1.5rem; display: grid; gap: 0.65rem; }
.service-row__features li{ display: flex; align-items: baseline; gap: 0.75rem; font-size: var(--fs-small); color: var(--paper-dim); }
.service-row__features i{ color: var(--red); font-size: 0.7rem; }

@media (max-width: 760px){
  .service-row{ grid-template-columns: 1fr; }
  .service-row--reverse .service-row__media{ order: 0; }
}

/* ---------- Gallery ---------- */
.gallery-grid{ display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 14vw; gap: 0.85rem; }
.gallery-grid .gallery-tile:nth-child(4n+1){ grid-row: span 2; }
.gallery-grid .gallery-tile:nth-child(6n+3){ grid-column: span 2; }

.gallery-filters{ display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn{
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.65rem 1.15rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--paper-dim);
  transition: all var(--dur-s) var(--ease);
}
.filter-btn:hover{ color: var(--paper); border-color: var(--paper-dim); }
.filter-btn.is-active{ background: var(--red); border-color: var(--red); color: var(--ink); }

.masonry{ column-count: 3; column-gap: 0.9rem; }
.masonry .gallery-tile{ break-inside: avoid; margin-bottom: 0.9rem; }
.masonry .gallery-tile .ph{ height: auto; aspect-ratio: var(--tile-ratio, 4/5); }
.masonry .gallery-tile img, .masonry .gallery-tile video{ height: auto; aspect-ratio: var(--tile-ratio, 4/5); }

.gallery-tile{ position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; }
.gallery-tile .ph{ height: 100%; transition: transform 0.8s var(--ease); }
.gallery-tile:hover .ph{ transform: scale(1.06); }
.gallery-tile img, .gallery-tile video{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.gallery-tile:hover img, .gallery-tile:hover video{ transform: scale(1.06); }
.gallery-tile__play{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(244,240,230,0.95); font-size: 2.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.6); pointer-events: none;
}
.gallery-tile__overlay{
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,14,0) 45%, rgba(12,12,14,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem 1.25rem;
  opacity: 0; transition: opacity var(--dur-s) var(--ease);
}
.gallery-tile:hover .gallery-tile__overlay{ opacity: 1; }
.gallery-tile__cat{ font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-light); }
.gallery-tile__expand{
  position: absolute; top: 0.9rem; right: 0.9rem; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(12,12,14,0.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  color: var(--paper); opacity: 0; transform: scale(0.8); transition: all var(--dur-s) var(--ease);
}
.gallery-tile:hover .gallery-tile__expand{ opacity: 1; transform: scale(1); }

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 30vw; }
  .masonry{ column-count: 2; }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-grid .gallery-tile{ aspect-ratio: 4/3; grid-row: auto !important; grid-column: auto !important; }
  .masonry{ column-count: 1; }
}

/* lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 800; background: rgba(8,8,9,0.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-m) var(--ease);
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox__stage{ position: relative; width: min(900px, 90vw); }
.lightbox__img-wrap{ width: 100%; aspect-ratio: 4/3; clip-path: circle(0% at 50% 50%); transition: clip-path 0.7s var(--ease); background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.lightbox__img-wrap img, .lightbox__img-wrap video{ width: 100%; height: 100%; object-fit: contain; background: #000; }
.lightbox.is-open .lightbox__img-wrap{ clip-path: circle(75% at 50% 50%); }
.lightbox__caption{ margin-top: 1.25rem; display: flex; justify-content: space-between; color: var(--paper-dim); font-size: var(--fs-small); }
.lightbox__close, .lightbox__prev, .lightbox__next{
  position: absolute; color: var(--paper); font-size: 1.1rem; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-s) var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover{ border-color: var(--red); color: var(--red); }
.lightbox__close{ top: -4rem; right: 0; }
.lightbox__prev{ left: clamp(-3.5rem, -6vw, -1rem); top: 50%; transform: translateY(-50%); }
.lightbox__next{ right: clamp(-3.5rem, -6vw, -1rem); top: 50%; transform: translateY(-50%); }

@media (max-width: 760px){
  .lightbox__prev{ left: 0.25rem; }
  .lightbox__next{ right: 0.25rem; }
  .lightbox__close{ top: -3.25rem; }
}

/* ---------- Watch Our Films (YouTube facade embed) ---------- */
.film-embed{ max-width: 900px; margin-inline: auto; }
.film-embed__facade{
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden;
  background-size: cover; background-position: center; background-color: var(--panel);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.film-embed__facade::before{
  content: ""; position: absolute; inset: 0; background: rgba(12,12,14,0.4); transition: background var(--dur-s) var(--ease);
}
.film-embed__facade:hover::before{ background: rgba(12,12,14,0.18); }
.film-embed__play{
  position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.85rem;
  transition: transform var(--dur-s) var(--ease); box-shadow: 0 10px 30px rgba(181,40,40,0.4);
}

.yt-btn{
  color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; 
  box-shadow: 0 0 40px 10px rgba(181,40,40,0.55);
}
.film-embed__facade:hover .film-embed__play{ transform: scale(1.08); }
.film-embed__cta{ position: relative; z-index: 1; color: var(--paper); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.02em; }
.film-embed__iframe{ width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); border: 0; display: block; }

/* ---------- Testimonials ---------- */
.testimonials{ position: relative; }
.testimonial-track{ display: flex; overflow: hidden; transition: transform 0.7s var(--ease); }
.testimonial-card{
  flex: 0 0 100%; padding: clamp(1rem, 4vw, 2rem);
}
.testimonial-card blockquote{
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--paper); max-width: 46ch; line-height: 1.4;
}
.testimonial-card cite{ display: block; margin-top: 1.5rem; font-style: normal; font-size: var(--fs-small); color: var(--red-light); }
.testimonial-card cite span{ display: block; color: var(--paper-faint); font-size: var(--fs-micro); margin-top: 0.2rem; }
.t-dots{ display: flex; gap: 0.6rem; margin-top: 2rem; }
.t-dots button{ width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: all var(--dur-s) var(--ease); }
.t-dots button.is-active{ background: var(--red); width: 22px; border-radius: var(--radius-pill); }

/* ---------- CTA banner ---------- */
.cta-banner{ text-align: center; }
.cta-banner__title{ font-size: var(--fs-h1); color: var(--paper); max-width: 18ch; margin-inline: auto; }
.cta-banner__title em{ color: var(--red); font-style: italic; }
.cta-banner__actions{ margin-top: 2.25rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.info-card{ display: flex; gap: 1.1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.info-card:first-child{ border-top: none; padding-top: 0; }
.info-card__icon{ width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.info-card h4{ font-family: var(--font-body); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-faint); }
.info-card p, .info-card a{ margin-top: 0.3rem; color: var(--paper); font-size: 1.02rem; }
.map-embed{ margin-top: 2rem; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); filter: grayscale(0.4) invert(0.92) contrast(0.9); }
.map-embed iframe{ width: 100%; height: 280px; border: 0; display: block; }

.contact-form{ background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(1.75rem, 4vw, 2.75rem); }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group{ margin-bottom: 1.4rem; }
.form-group label{ display: block; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-faint); margin-bottom: 0.55rem; }
.form-control{
  width: 100%; background: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem; color: var(--paper); font-size: 0.98rem; transition: border-color var(--dur-s) var(--ease);
}
.form-control::placeholder{ color: var(--paper-faint); }
.form-control:focus{ border-color: var(--red); outline: none; }
textarea.form-control{ resize: vertical; min-height: 120px; }
.form-note{ font-size: var(--fs-micro); color: var(--paper-faint); margin-top: 1rem; text-align: center; }
.form-status{ padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: var(--fs-small); margin-bottom: 1.4rem; display: none; }
.form-status.is-visible{ display: block; }
.form-status--error{ background: rgba(196,90,60,0.14); border: 1px solid rgba(196,90,60,0.4); color: #e8a892; }
/* honeypot field, hidden from real visitors */
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink-soft); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer__grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer__col{ display: flex; flex-direction: column; gap: 0.85rem; }
.footer__col a{ color: var(--paper-dim); font-size: var(--fs-small); transition: color var(--dur-s) var(--ease); }
.footer__col a:hover{ color: var(--red); }
.footer__heading{ font-family: var(--font-mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper-faint); margin-bottom: 0.4rem; }
.footer__blurb{ font-size: var(--fs-small); max-width: 30ch; margin-top: 0.75rem; }
.footer__social{ display: flex; gap: 1rem; margin-top: 0.5rem; }
.footer__social a{ width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer__social a:hover{ border-color: var(--red); color: var(--red); }
.footer__text{ font-size: var(--fs-small); color: var(--paper-dim); }
.footer__text--dim{ color: var(--paper-faint); }
.footer__bottom{ border-top: 1px solid var(--line); }
.footer__bottom-inner{ padding-block: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer__bottom p{ font-size: var(--fs-micro); color: var(--paper-faint); }

@media (max-width: 900px){ .footer__grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer__grid{ grid-template-columns: 1fr; } }

/* ---------- Floating buttons ---------- */
.floating-stack{
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 400;
  display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end;
}
.floating-btn{
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--ink); box-shadow: 0 8px 24px var(--shadow); position: relative;
  transition: transform var(--dur-s) var(--ease);
}
.floating-btn--call{ background: var(--red); }
.floating-btn--whatsapp{ background: #3fbb5a; }
.floating-btn--top{
  background: var(--panel); color: var(--paper); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none;
}
.floating-btn--top.is-visible{ opacity: 1; transform: none; pointer-events: auto; }
.floating-btn:hover{ transform: scale(1.08); }
.floating-btn__tip{
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--panel); color: var(--paper); font-size: var(--fs-micro); padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm); white-space: nowrap; opacity: 0; visibility: hidden;
  transition: all var(--dur-s) var(--ease); border: 1px solid var(--line);
}
.floating-btn:hover .floating-btn__tip{ opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

@media (max-width: 640px){
  .floating-btn{ width: 46px; height: 46px; font-size: 1.02rem; }
  .floating-btn__tip{ display: none; }
}

/* ---------- Image placeholders ---------- */
.ph{
  position: relative; border-radius: var(--radius-sm); overflow: hidden; height: 100%;
  display: flex; align-items: center; justify-content: center; isolation: isolate;
}
.ph::after{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05), transparent 60%);
}
.ph__icon{ color: rgba(244,240,230,0.16); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.ph__label{
  position: absolute; bottom: 0.9rem; left: 0.9rem; font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.06em; color: rgba(244,240,230,0.3); text-transform: uppercase;
}
.ph--1{ background: linear-gradient(135deg, #1c1a17, #2a2419); }
.ph--2{ background: linear-gradient(135deg, #1a1717, #2b1e1a); }
.ph--3{ background: linear-gradient(135deg, #17191a, #1e2b28); }
.ph--4{ background: linear-gradient(135deg, #1a1815, #2f2515); }
.ph--5{ background: linear-gradient(135deg, #191718, #241a24); }
.ph--6{ background: linear-gradient(135deg, #181a17, #23281c); }
.ph--7{ background: linear-gradient(135deg, #1b1917, #2b2015); }
.ph--8{ background: linear-gradient(135deg, #17181a, #1e2229); }

/* ---------- Custom cursor (desktop only, added via JS) ---------- */
.cursor-dot{
  position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); mix-blend-mode: difference;
}
.cursor-ring{
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid var(--red); border-radius: 50%;
  pointer-events: none; z-index: 9997; transform: translate(-50%, -50%); transition: width var(--dur-s) var(--ease), height var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
  opacity: 0.6;
}
.cursor-ring.is-hover{ width: 56px; height: 56px; opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button{ cursor: none; }

/* ---------- Thank-you page ---------- */
.ty-page{
  min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 2rem; position: relative; overflow: hidden;
}
.ty-ring{ position: absolute; top: 50%; left: 50%; width: 120vmax; height: 120vmax; color: rgba(244,240,230,0.025); transform: translate(-50%,-50%); animation: spin 140s linear infinite; }
.ty-content{ position: relative; max-width: 480px; }
.ty-check{ width: 84px; height: 84px; margin-inline: auto 1.75rem; color: var(--red); }
.ty-check circle{ stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1s var(--ease) forwards 0.2s; }
.ty-check path{ stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.5s var(--ease) forwards 1s; }
@keyframes draw{ to{ stroke-dashoffset: 0; } }
.ty-content h1{ font-size: clamp(2.1rem, 5vw, 3rem); color: var(--paper); }
.ty-content p{ margin-top: 1rem; font-size: var(--fs-lead); }
.ty-progress{ margin-top: 2.5rem; height: 2px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.ty-progress__bar{ height: 100%; width: 0%; background: var(--red); }
.ty-countdown{ margin-top: 0.9rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; color: var(--paper-faint); text-transform: uppercase; }
.ty-actions{ margin-top: 2rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal{ opacity: 1; transform: none; }
  /* A constantly looping video is exactly what this setting is meant to stop.
     JS pauses it too (see main.js) — this hides it so the poster/gradient shows. */
  .hero__video{ display: none; }
}