/* =========================================================
   JATARI PHOTOGRAPHY: stylesheet (v4, "viewfinder")
   Concept: the site behaves like a camera. The hero opens like
   a shutter and locks focus with pink viewfinder brackets; photos
   get a focus-frame cursor; everything else stays quiet so the
   photographs lead.
   Mobile-first. Tablet = 768px+, desktop = 1024px+.
   ========================================================= */

/* ---------- 0. FONTS (self-hosted; no requests to Google) ----------
   Variable fonts: one file per family covers every weight used. */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dm-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand palette (no new colors added) */
  --ink: #141414;
  --cream: #FAF6F2;
  --pink-deep: #C72F66;   /* buttons, pink text on cream */
  --pink: #E0457B;        /* display type, brackets, accents */
  --pink-light: #F06A98;  /* small pink text on ink */
  --cocoa: #3B2A26;       /* body text on cream */
  --white: #FFFFFF;
  --mist: #CFC7C1;        /* secondary text on ink */
  --line-light: rgba(59, 42, 38, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-img: 0;      /* photos as sharp-edged prints */
  --radius-ctl: 2px;    /* buttons and controls */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shutter: cubic-bezier(0.77, 0, 0.18, 1);

  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --wordmark: url("../images/jatari-wordmark-1000.webp");  /* 6 KB instead of 52 KB; the .png stays for the JSON-LD logo */
  /* Hero frame shape (width / height). 2:3 fits every slideshow photo uncropped top-to-bottom */
  --hero-ratio: 0.6667;
  --slide-time: 6s;     /* how long each hero slide shows */
  /* Owner's handmade paper textures for section backgrounds (never over photos) */
  --grain-dark: url("../images/textures/paper-black.webp");
  --grain-light: url("../images/textures/paper-cream.webp");
}

/* Smooth fade between pages of this site (browsers that support it) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--cocoa); background: var(--cream) var(--grain-light); background-size: 640px 640px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
::selection { background: var(--pink); color: var(--white); }
section { padding: var(--section-y) var(--gutter); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 0.75rem 1.25rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Section heading: left-aligned to the content edge */
.section-head {
  max-width: var(--container); margin: 0 auto clamp(2rem, 5vw, 3.25rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.section-sub { margin: 0; max-width: 46ch; opacity: 0.78; font-size: 1rem; }
.center { text-align: center; margin-top: clamp(2.5rem, 6vw, 4rem); }
.center.cta-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.dark { background: var(--ink) var(--grain-dark); background-size: 640px 640px; color: #EDE6E1; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .section-sub { color: var(--mist); opacity: 1; }

/* ---------- 3. BUTTONS (sharp editorial rectangles) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.85rem 1.9rem; border-radius: var(--radius-ctl); border: 1.5px solid transparent;
  font: 600 0.95rem/1.2 var(--font-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-pink { background: var(--pink-deep); color: var(--white); border-color: var(--pink-deep); }
.btn-pink:hover, .btn-pink:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dark .btn-pink:hover, .hero .btn-pink:hover, .dark .btn-pink:focus-visible, .hero .btn-pink:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-outline-light { border-color: var(--pink-light); color: var(--pink-light); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: var(--pink-light); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.5rem 1.35rem; font-size: 0.88rem; }

/* ---------- 4. CONTACT LINKS (email first, phone under) ---------- */
a[href^="mailto:"], a[href^="tel:"] {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; overflow-wrap: anywhere;
}
a[href^="mailto:"]:hover span, a[href^="tel:"]:hover span { text-decoration: none; }
.contact-icon { width: 17px; height: 17px; flex: 0 0 17px; }

/* ---------- 5. HEADER ----------
   Solid cream by default (legal pages). On the homepage it is
   transparent over the dark hero, then turns cream on scroll. */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: var(--cream); border-bottom: 1px solid rgba(59, 42, 38, 0.08);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header.scrolled { border-bottom-color: var(--line-light); }
.nav {
  max-width: calc(var(--container) + 4rem); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: block; line-height: 0; position: relative; z-index: 120; border-radius: 4px; }
.logo-circle { display: block; width: 102px; height: 58px; }
.logo-circle span {
  display: block; width: 100%; height: 100%; background: var(--pink-deep);
  -webkit-mask: var(--wordmark) center / 100% auto no-repeat;
          mask: var(--wordmark) center / 100% auto no-repeat;
  transition: background-color 0.3s;
}
.logo:hover .logo-circle span { background: var(--pink); }

.nav-toggle {
  width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative; z-index: 120;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s, background-color 0.3s;
}
.nav-toggle span:nth-child(2) { width: 70%; margin-left: auto; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Over the hero */
.site-header.over-hero { background: rgba(250, 246, 242, 0); border-color: rgba(59, 42, 38, 0); }
.over-hero .logo-circle span { background: var(--pink); }
.over-hero .nav-toggle span { background: var(--cream); }
.nav-open .site-header { background: var(--cream); }
.nav-open .nav-toggle span { background: var(--ink); }
.nav-open .logo-circle span { background: var(--pink-deep); }

/* Phone/tablet menu: full-screen panel, links rise in */
.nav-menu {
  position: fixed; inset: 0 0 auto 0; height: 100dvh; background: var(--cream);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.35rem; padding: 0 calc(var(--gutter) + 0.5rem);
  visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.nav-open .nav-menu { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
.nav-menu > li { overflow: hidden; }
.nav-menu a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-size: clamp(2.6rem, 11vw, 3.4rem); font-weight: 600; line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.nav-menu a:not(.btn):hover { color: var(--pink-deep); }
.nav-menu > li:nth-last-child(2) { margin-top: 1.5rem; }
.nav-open .nav-menu > li:nth-child(6) > * { transition-delay: 0.25s; }
.js .nav-menu > li > * { transform: translateY(110%); transition: transform 0.6s var(--ease); }
.nav-open .nav-menu > li > * { transform: none; }
.nav-open .nav-menu > li:nth-child(2) > * { transition-delay: 0.05s; }
.nav-open .nav-menu > li:nth-child(3) > * { transition-delay: 0.1s; }
.nav-open .nav-menu > li:nth-child(4) > * { transition-delay: 0.15s; }
.nav-open .nav-menu > li:nth-child(5) > * { transition-delay: 0.2s; }
.nav-open main, .nav-open .site-footer, .nav-open .sticky-book { visibility: hidden; }

/* ---------- 6. HERO ----------
   Phone: Dani fills the screen, headline sits over the photo.
   Desktop: giant headline left, framed photo right. */
.hero { position: relative; padding: 0 0 2.75rem; overflow: hidden; }
.hero-text { display: contents; }
/* Owner's pink light leak, drifting slowly behind the headline (never over the photo) */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: -18vw; bottom: -10vw; width: min(110vw, 900px); aspect-ratio: 1;
  background: url("../images/textures/light-leak-pink.webp") center / contain no-repeat;
  opacity: 0.5; animation: leakDrift 24s ease-in-out infinite alternate;
}
.hero-grid { position: relative; z-index: 1; }
@keyframes leakDrift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(4vw, -3vw) rotate(10deg); } }
.hero-grid {
  --cap: 3.4rem; /* height of the caption row under the photo */
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "photo" "actions" "contact";
}
.hero-photo { grid-area: photo; margin: 0; }
.hero-copy {
  grid-area: photo; align-self: start; position: relative; z-index: 3;
  padding: calc(var(--header-h) + 1.1rem) var(--gutter) 0; pointer-events: none;
}
.service-area { margin: 0 0 0.8rem; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; color: var(--pink-light); }
.hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); line-height: 0.92; letter-spacing: -0.025em; }
.hero h1 .line { display: block; overflow: visible; padding-bottom: 0.3em; margin-bottom: -0.18em; }
.hero h1 .line > * { display: inline-block; }
.hero h1 .line > span { color: var(--white); }
.hero h1 em { color: var(--pink); font-style: normal; font-weight: 600; }

.viewfinder { position: relative; }
.hero-frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4.4;
  background: #1d1d1d;
}
.hero-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform-origin: 50% 100%; }
/* Phone: darken the lower part so the headline reads over the photo */
.hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.7) 30%, rgba(20,20,20,0) 52%, rgba(20,20,20,0) 82%, rgba(20,20,20,0.6) 100%);
}


.hero .caption-row { padding-inline: var(--gutter); }

/* ---------- 6b. HERO SLIDESHOW ----------
   Favorites rotate in the hero. Next photo arrives as vertical "blinds"
   that drop in one after another; a thin bar under each slide shows time. */
.hero-blinds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-blinds img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  transform-origin: 50% 100%;
  clip-path: inset(0 var(--r) 100% var(--l));
  transition: clip-path 0.95s var(--shutter) var(--d, 0s);
}
.hero-blinds img.open { clip-path: inset(0 var(--r) 0 var(--l)); }
.slide-progress {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3; display: flex; gap: 5px; pointer-events: none;
}
.slide-progress i { flex: 1; height: 2px; background: rgba(250, 246, 242, 0.35); overflow: hidden; }
.slide-progress i::after { content: ""; display: block; height: 100%; background: var(--cream); transform: scaleX(0); transform-origin: left; }
.slide-progress i.done::after { transform: scaleX(1); }
.slide-progress i.run::after { animation: slideTimer var(--slide-time) linear forwards; }
.hero-photo.is-paused .slide-progress i.run::after { animation-play-state: paused; }
@keyframes slideTimer { to { transform: scaleX(1); } }
.slide-name { transition: opacity 0.35s; }
.slide-name.swap { opacity: 0; }
.slide-actions { display: inline-flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.slide-toggle {
  min-height: 44px; padding: 0 0.1rem; border: 0; background: none; cursor: pointer; color: inherit;
  font: 500 0.86rem var(--font-body); letter-spacing: 0.01em; opacity: 0.75; transition: opacity 0.2s;
}
.slide-toggle:hover, .slide-toggle:focus-visible { opacity: 1; }
.dark .slide-toggle { color: var(--cream); }
.hero .caption-row > span { padding-top: 0.8rem; }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.1rem var(--gutter) 0; }
.hero-actions .btn { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
.hero-contact { grid-area: contact; display: flex; flex-direction: row; align-items: center; gap: clamp(0.6rem, 2vw, 1.75rem); padding: 1rem var(--gutter) 0; }
.hero-contact a { white-space: nowrap; font-size: clamp(10px, 2.65vw, 14px); line-height: 1.5; color: var(--cream) !important; gap: 6px; }
.hero-contact .contact-icon { color: var(--pink-light); }

/* --- Hero load sequence: shutter opens, focus locks, lines rise --- */
.js .hero-frame { clip-path: inset(49.5% 0 49.5% 0); }
.js .hero-frame img { scale: 1.14; }
.js .hero h1 .line > * { transform: translateY(105%); }
.js .service-area, .js .hero-actions, .js .hero-contact, .js .hero .caption-row { opacity: 0; }

.is-loaded .hero-frame { clip-path: inset(0); transition: clip-path 1.15s var(--shutter); }
.is-loaded .hero-frame img { scale: 1; transition: scale 1.8s var(--ease), translate 0.9s var(--ease); }
.is-loaded .hero h1 .line > * { transform: none; transition: transform 1s var(--ease); }
.is-loaded .hero h1 .line:nth-child(1) > * { transition-delay: 0.35s; }
.is-loaded .hero h1 .line:nth-child(2) > * { transition-delay: 0.47s; }
.is-loaded .hero h1 .line:nth-child(3) > * { transition-delay: 0.59s; }
.is-loaded .service-area, .is-loaded .hero-actions, .is-loaded .hero-contact, .is-loaded .hero .caption-row {
  opacity: 1; transition: opacity 0.8s ease 1s;
}

/* ---------- 6c. LENS INTRO (page load / refresh) ----------
   A paper camera or lens appears on black paper, the shutter clicks, and the
   page opens through its iris. Shown only when <html> has .intro (set by the
   small script in index.html's <head>). Never blocks for more than ~3.5s. */
@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
.intro-screen { display: none; }
.intro .intro-screen {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center; gap: 1.6rem;
  background: radial-gradient(circle at 50% 44%, rgba(224, 69, 123, 0.2), transparent 40%), var(--ink) var(--grain-dark);
  background-size: auto, 640px 640px; cursor: pointer;
  --hole: 0px;
  -webkit-mask: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--hole), #000 calc(var(--hole) + 0.5px));
          mask: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--hole), #000 calc(var(--hole) + 0.5px));
  animation: introBail 0.4s 9s forwards; /* safety: hides itself even if scripts fail */
}
.intro-lens { position: relative; will-change: scale; perspective: 900px; transform-style: preserve-3d; }
/* Ready for a 3D camera: a module can mount a canvas here (see CLAUDE.md section 8).
   When it does, .is-3d hides the flat cutout and the canvas takes the same footprint. */
.intro-lens.is-3d .intro-prop { display: none; }
.intro-lens > canvas, .intro-lens > model-viewer {
  display: block; width: min(74vw, 420px); aspect-ratio: 1; height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55));
}
.intro-prop {
  display: block; width: min(64vw, 360px); height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55));
  opacity: 0; transform: translateY(14px) rotate(-3deg) scale(0.94);
}
.intro-screen.is-clear .intro-prop { animation: propIn 0.7s var(--ease) 0.05s forwards; }
.intro-mark {
  width: 156px; height: 88px; background: var(--pink);
  -webkit-mask: var(--wordmark) center / contain no-repeat;
          mask: var(--wordmark) center / contain no-repeat;
  opacity: 0;
}
.intro-screen.is-clear .intro-mark { animation: markIn 0.6s var(--ease) 0.3s forwards; }
/* The curtain: butterflies fill the screen until the cursor clears them */
.intro-swarm { position: absolute; inset: 0; overflow: hidden; z-index: 3; pointer-events: none; }
.intro-screen.is-clear .intro-swarm { pointer-events: none; }
.intro-hint {
  position: absolute; left: 0; right: 0; bottom: clamp(2rem, 9vh, 5rem); z-index: 4;
  margin: 0; text-align: center; pointer-events: none;
  font: 500 0.72rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250, 246, 242, 0.55);
  opacity: 0; animation: markIn 0.9s var(--ease) 1.1s forwards;
}
.intro-screen.is-clear .intro-hint { animation: none; opacity: 0; transition: opacity 0.35s; }

/* The click: a short press, then a flash from the iris */
.intro-screen.is-click .intro-lens { animation: shutterPress 0.24s var(--ease); }
.intro-screen::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%);
}
.intro-screen.is-click::after { animation: flash 0.32s ease-out; }
/* The open: the iris shows the page inside the lens, then the prop rushes
   toward you and the page fills the screen. --r0/--r1 are set by main.js. */
.intro-screen.is-click { --hole: var(--r0, 0px); transition: --hole 0.26s var(--ease); }
.intro-screen.is-open { --hole: var(--r1, 150vmax); pointer-events: none; transition: --hole 0.9s var(--shutter), opacity 0.25s ease 0.8s; opacity: 0; }
.intro-screen.is-open .intro-lens { scale: var(--zoom, 30); transition: scale 0.9s var(--shutter); }
.intro-screen.is-open .intro-mark { opacity: 0 !important; transition: opacity 0.2s; animation: none; }

@keyframes propIn { to { opacity: 1; transform: none; } }
@keyframes markIn { to { opacity: 1; } }
@keyframes shutterPress { 40% { translate: 0 3px; } }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes introBail { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- 6d. SCROLL ANIMATION (GSAP) ----------
   Only the styles the animation needs; the motion itself lives in js/motion.js.
   SplitText wraps each heading line in .sp-line, which masks the words as they
   rise. The padding keeps descenders (g, y, p) from being clipped by the mask. */
.sp-line { overflow: hidden; padding-bottom: 0.12em; }

/* Content for screen readers that should not take up space on screen. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Selectable social options in the footer. Named, not icons: a person should be
   able to read where they are going before they tap it. */
.social-pick { margin-bottom: 0.5rem; }
.social-chip {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.45rem 1.1rem; border: 1px solid rgba(250, 246, 242, 0.35); border-radius: var(--radius-ctl);
  font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: inherit;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social-chip:hover, .social-chip:focus-visible { background: var(--pink-deep); border-color: var(--pink-deep); color: var(--cream); }

/* Phones and anything that skipped GSAP get the same idea for nothing: the
   browser's own scroll timeline. Where it is unsupported the content is simply
   visible, which is the correct fallback. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.no-gsap .strip-item,
    html.no-gsap .service-row,
    html.no-gsap .section-head {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 20%;
    }
    @keyframes riseIn { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
  }
}

/* Lenis adds these classes to <html> while smooth scrolling is running. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }                 /* Lenis does the easing instead */
html.lenis.lenis-stopped { overflow: clip; }         /* page held still behind the menu/viewer */
html.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- 7. CAPTION ROW ---------- */
.caption-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem;
  padding-top: 0.55rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4;
}
.caption-row > span { min-width: 0; padding-top: 0.85rem; transition: color 0.3s; }
.caption-row a {
  display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; white-space: nowrap;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
  color: inherit; text-decoration: underline; text-decoration-color: var(--pink);
  text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  transition: color 0.3s, text-underline-offset 0.3s;
}
.caption-row a:hover { color: var(--pink-deep); text-underline-offset: 8px; }
.dark .caption-row a { color: var(--white); }
.dark .caption-row a:hover { color: var(--pink-light); }
.gallery-kind { display: block; margin-top: 3px; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.02em; opacity: 0.7; }

/* ---------- 8. RECENT GALLERIES ---------- */
.featured { padding-left: 0; padding-right: 0; }
.featured .section-head { padding: 0 var(--gutter); }
.strip {
  display: flex; gap: 0.9rem; overflow-x: auto; padding: 0 var(--gutter) 0.25rem;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-item { flex: 0 0 80vw; margin: 0; scroll-snap-align: start; }
.frame { display: block; overflow: hidden; border-radius: var(--radius-img); aspect-ratio: 4 / 5; background: #e9e1db; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; pointer-events: none; }
.strip-item:hover .caption-row > span { color: var(--pink-deep); }
/* Swipe progress (phones/tablets) */
.strip-progress { height: 2px; margin: 1.4rem var(--gutter) 0; background: var(--line-light); border-radius: 2px; overflow: hidden; }
.strip-progress span { display: block; height: 100%; width: 34%; background: var(--pink-deep); border-radius: 2px; transform-origin: left; transition: transform 0.15s linear; }

/* Video loop (replaces a still when a clip is set in VIDEO_LOOPS) */
.frame { position: relative; }
.loop-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.frame.is-playing .loop-video { opacity: 1; }
/* Play badge: shows a frame holds video */
.play-badge {
  position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; pointer-events: none;
  background: rgba(20, 20, 20, 0.5); border: 1px solid rgba(250, 246, 242, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s var(--ease);
}
.play-badge::before {
  content: ""; margin-left: 3px; width: 0; height: 0;
  border-left: 12px solid var(--cream); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.frame:hover .play-badge, .frame:focus-visible .play-badge { transform: scale(1.08); background: var(--pink-deep); border-color: transparent; }
.frame.is-playing .play-badge { opacity: 0; }

/* Full player, opened by clicking a video frame */
.vplayer { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(10, 10, 10, 0.93); }
.vplayer[hidden] { display: none; }
.vplayer video { max-width: min(100%, 1100px); max-height: 84svh; border-radius: var(--radius-img); background: #000; }
.vplayer-close {
  position: absolute; top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem);
  min-height: 44px; padding: 0.5rem 1.1rem; border: 1px solid rgba(250, 246, 242, 0.4); border-radius: var(--radius-ctl);
  background: transparent; color: var(--cream); font: 600 0.82rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.vplayer-close:hover { background: var(--pink-deep); border-color: var(--pink-deep); }

/* ---------- 9. PORTFOLIO ---------- */
/* Filters: text tabs with a sliding pink underline */
.filters {
  position: relative; display: inline-flex; gap: 1.6rem; max-width: 100%;
  border-bottom: 1px solid var(--line-dark);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; align-self: flex-start;
}
.filters::-webkit-scrollbar { display: none; }
.filter-indicator {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--pink-light);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease); pointer-events: none;
}
.no-indicator .filter-indicator { display: none; }
.filter {
  position: relative; flex: 0 0 auto; min-height: 44px; padding: 0.5rem 0; border-radius: 0;
  background: transparent; color: var(--mist); border: 0;
  font: 500 0.95rem var(--font-body); letter-spacing: 0.01em; cursor: pointer; transition: color 0.3s;
}
.filter:hover { color: var(--white); }
.filter.is-active, .filter.is-active:hover { color: var(--white); }
.no-indicator .filter.is-active { box-shadow: inset 0 -2px 0 var(--pink-light); }

/* Grid: 2 columns on phones, 6-track grid from tablet up */
.gallery { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-item { aspect-ratio: 3 / 4; }
.g-item.landscape { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.g-item.is-hidden { display: none; }
.g-item.fade-in { animation: develop 0.6s var(--ease) both; }
@keyframes develop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.g-btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: var(--radius-img); overflow: hidden; cursor: zoom-in; background: #1f1f1f;
}
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.5s; }
/* Dim the other photos while one is hovered (desktop) */
@media (hover: hover) {
  .gallery:has(.g-btn:hover) .g-btn:not(:hover) img { filter: brightness(0.55) saturate(0.8); }
}

/* Loading state: a soft tone shimmer until each photo arrives, then it fades in */
.img-wait { background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.featured .img-wait { background-image: linear-gradient(100deg, rgba(59,42,38,0) 30%, rgba(59,42,38,0.08) 50%, rgba(59,42,38,0) 70%); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.js img.fade-img { opacity: 0; transition: opacity 0.6s ease, filter 0.5s; }
.js img.fade-img.is-in { opacity: 1; }

/* ---------- 10. LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(12, 12, 12, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; padding: 4.5rem 1rem 1.25rem;
}
.lightbox[hidden] { display: none; }
.lb-stage { width: min(94vw, 1100px); height: min(72vh, 880px); display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-img); }
.lb-caption:empty { display: none; }
.lb-caption { margin: 0; color: #EDE6E1; text-align: center; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; }
.lb-controls { display: flex; align-items: center; gap: 1rem; }
.lb-close, .lb-prev, .lb-next {
  min-height: 44px; padding: 0.5rem 1.3rem; border-radius: var(--radius-ctl);
  background: rgba(255, 255, 255, 0.1); color: var(--white); border: 0;
  font: 500 0.9rem var(--font-body); cursor: pointer; transition: background-color 0.3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--pink-deep); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
.lb-count { color: var(--mist); font-size: 0.85rem; margin: 0; min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; }
::view-transition-group(lb-photo) { animation-duration: 0.5s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

/* ---------- 11. SERVICES (editorial index) ---------- */
.service-list { max-width: var(--container); margin: 0 auto; border-top: 1px solid var(--line-light); }
.service-list li { border-bottom: 1px solid var(--line-light); }
.service-row {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: center;
  padding: 1.6rem 0.25rem; text-decoration: none; color: var(--cocoa); isolation: isolate;
  transition: color 0.4s var(--ease), padding 0.5s var(--ease);
}
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pink-deep);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.service-name {
  margin: 0;
  grid-column: 1; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 7.5vw, 3.6rem); line-height: 1.13; letter-spacing: -0.015em; color: var(--ink);
  transition: color 0.4s var(--ease);
}
.service-desc { grid-column: 1; font-size: 0.98rem; line-height: 1.65; max-width: 38ch; opacity: 0.9; text-wrap: pretty; }
.service-cta {
  grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.45rem 1.15rem; border-radius: var(--radius-ctl); border: 1.5px solid var(--pink-deep);
  font-size: 0.9rem; font-weight: 600; color: var(--pink-deep);
  transition: color 0.4s, border-color 0.4s, background-color 0.4s;
}
.service-row:hover, .service-row:focus-visible { color: var(--cream); padding-left: 1.25rem; padding-right: 1.25rem; }
.service-row:hover::before, .service-row:focus-visible::before { transform: scaleX(1); }
.service-row:hover .service-name, .service-row:focus-visible .service-name { color: var(--white); }
.service-row:hover .service-cta, .service-row:focus-visible .service-cta { color: var(--pink-deep); background: var(--white); border-color: var(--white); }

/* ---------- 12. FOOTER ---------- */
.site-footer { background: var(--cream) var(--grain-light); background-size: 640px 640px; color: var(--cocoa); padding: 2rem var(--gutter) 7rem; scroll-margin-top: 90px; }
.footer-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.footer-logo { display: inline-block; line-height: 0; margin: 0 auto 2rem; border-radius: 4px; }
.footer-wordmark, .footer-logo .logo-circle {
  display: block; width: 250px; height: 125px; background: var(--pink-deep);
  -webkit-mask: var(--wordmark) center / 100% auto no-repeat;
          mask: var(--wordmark) center / 100% auto no-repeat;
  transition: background-color 0.3s;
}
.footer-logo:hover .footer-wordmark, .footer-logo:hover .logo-circle { background: var(--pink); }
.footer-logo .logo-circle span { display: none; }
.footer-cta { font-size: 0.9rem; font-weight: 500; color: var(--pink-deep); margin: -0.75rem 0 2rem; }
.footer-rows {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0; text-align: left; align-items: start;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.footer-rows > div:last-child { grid-column: 1 / -1; }
.footer-heading { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: 0 0 0.75rem; letter-spacing: 0; }
.footer-rows a { font-size: 0.95rem; }
.footer-rows > * > ul:not(.social-icons) { display: grid; gap: 0.35rem; }
.footer-rows a[href^="mailto:"] span { white-space: nowrap; }
.footer-location { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.95rem; }
.footer-rows a[href^="mailto:"], .footer-rows a[href^="tel:"] { font-size: 0.95rem; }
.site-footer a:not(.footer-logo) { color: var(--cocoa); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:not(.footer-logo):hover { color: var(--pink-deep); }
.site-footer a:not(.footer-logo):not([href^="mailto:"]):not([href^="tel:"]):hover { text-decoration: none; }
.footer-bottom { padding-top: 1.25rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin-bottom: 0.75rem; font-size: 0.88rem; }
.copyright { font-size: 0.82rem; opacity: 0.72; margin: 0 auto; max-width: 62ch; }

/* Social icons (Facebook/TikTok are placeholders until profiles exist) */
.social-icons { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.social-icon {
  display: inline-grid !important; place-items: center; width: 44px; height: 44px; min-height: 44px;
  border-radius: var(--radius-ctl); border: 1.5px solid var(--line-light); color: var(--cocoa);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.social-icon svg { width: 18px; height: 18px; }
a.social-icon:hover { color: var(--white) !important; background: var(--pink-deep); border-color: var(--pink-deep); text-decoration: none !important; }
.social-icon.is-soon { cursor: default; }
.social-icon.is-soon:hover { color: var(--pink-deep); border-color: var(--pink-deep); }
.menu-social .social-icons { margin-top: 1.25rem; }
.nav-menu .social-icon { color: var(--ink); }

/* ---------- 13. STICKY BOOK BUTTON (phones/tablets) ---------- */
.sticky-book {
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90;
  transform: translateY(160%); transition: transform 0.5s var(--ease);
}
.sticky-book.show { transform: none; }

/* ---------- 14. FOCUS CURSOR (desktop mouse only) ---------- */
.focus-cursor {
  position: fixed; top: 0; left: 0; z-index: 400; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  pointer-events: none; opacity: 0; transform: translate3d(-200px, -200px, 0);
  display: none;
}
.has-focus-cursor .focus-cursor { display: block; }
.focus-cursor.on { opacity: 1; }
.fc { position: absolute; width: 18px; height: 18px; border: 0 solid var(--white); transition: inset 0.35s var(--ease); }
.fc-tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.fc-tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.fc-bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.fc-br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.focus-cursor.on .fc-tl { top: 0; left: 0; }
.focus-cursor.on .fc-tr { top: 0; right: 0; }
.focus-cursor.on .fc-bl { bottom: 0; left: 0; }
.focus-cursor.on .fc-br { bottom: 0; right: 0; }
.fc-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 0.8rem var(--font-body); letter-spacing: 0.04em; color: var(--white);
  /* This label sits directly on a photo, so it has to stay readable on a pale one.
     Layered shadows carry the contrast without putting a box over the picture. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 0, 0, 0.5);
}
.has-focus-cursor [data-cursor], .has-focus-cursor [data-cursor] * { cursor: none; }

/* ---------- 14b. PAPER BUTTERFLIES ----------
   Decorative, once per page load. Never blocks clicks. */
.butterflies { position: fixed; inset: 0; z-index: 350; pointer-events: none; overflow: hidden; }
.bf { position: absolute; top: 0; left: 0; width: var(--size); height: calc(var(--size) * 0.6); margin: calc(var(--size) * -0.3) 0 0 calc(var(--size) * -0.5); will-change: transform; }
.bf-tilt { position: absolute; inset: 0; perspective: 260px; transform: rotateX(22deg); transform-style: preserve-3d; filter: drop-shadow(0 6px 6px rgba(20, 20, 20, 0.18)); }
.bf-wing { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.bf-wing svg, .bf-wing img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bf.has-art { height: calc(var(--size) * 0.8); margin-top: calc(var(--size) * -0.4); }
.bf-r { left: 50%; transform-origin: 0 50%; animation: flapR var(--flap) ease-in-out infinite alternate; }
.bf-l { right: 50%; transform-origin: 100% 50%; animation: flapL var(--flap) ease-in-out infinite alternate; }
.bf-l svg { transform: scaleX(-1); }
@keyframes flapR { from { transform: rotateY(-4deg); } to { transform: rotateY(-58deg); } }
@keyframes flapL { from { transform: rotateY(4deg); } to { transform: rotateY(58deg); } }

/* ---------- 15. LEGAL PAGES ---------- */
.page { overflow-wrap: anywhere; }
.page h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
.page h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 2.2rem 0 0.6rem; scroll-margin-top: 100px; }
.page .updated { font-size: 0.85rem; opacity: 0.75; }
.page a[href^="mailto:"] { min-height: 0; }
.eyebrow { font-size: 0.9rem; font-weight: 600; color: var(--pink-deep); margin: 0 0 1rem; }

/* =========================================================
   TABLET (768px+)
   ========================================================= */
@media (min-width: 768px) {
  .logo-circle { width: 112px; height: 64px; }
  .hero h1 { font-size: clamp(4rem, 10vw, 5.5rem); }
  .hero-frame { aspect-ratio: 3 / 4; }
  .hero-actions .btn { padding: 0.85rem 1.9rem; font-size: 0.95rem; }

  .section-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; }
  .section-head.split .section-sub { text-align: right; }
  #portfolio .section-head.split .section-sub { text-align: left; }

  .strip-item { flex-basis: 44vw; }

  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .g-item { grid-column: span 2; }
  .g-item.landscape { grid-column: span 3; }

  .service-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 2rem; padding: 2.1rem 0.25rem; }
  .service-name, .service-desc, .service-cta { grid-column: auto; grid-row: auto; }

  .footer-wordmark, .footer-logo .logo-circle { width: 300px; height: 150px; }
  .footer-rows { grid-template-columns: 1fr 1fr minmax(15rem, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); }
  .footer-rows > div:last-child { grid-column: auto; }
}

/* =========================================================
   DESKTOP (1024px+)
   ========================================================= */
@media (min-width: 1024px) {
  /* Inline menu */
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; height: auto; flex-direction: row; align-items: center; gap: 2.25rem; padding: 0;
    background: none; visibility: visible; opacity: 1; transition: none;
  }
  .nav-menu > li:nth-last-child(2) { margin-top: 0; }
  .nav-menu .menu-social { display: none; }
  .js .nav-menu > li > * { transform: none; }
  .nav-menu a:not(.btn) {
    position: relative; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--ink);
    transition: color 0.3s;
  }
  .nav-menu a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: 8px; width: 100%; height: 1.5px;
    background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
  }
  .nav-menu a:not(.btn):hover::after, .nav-menu a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .over-hero .nav-menu a:not(.btn) { color: var(--cream); }

  /* Hero: full-bleed editorial. Dani runs the full screen height and bleeds
     off the top and right edges (still uncropped); type fills the left. */
  .hero { min-height: 100svh; padding: 0; display: block; }
  .hero-grid {
    --cap: 3.4rem;
    min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none;
  }
  .hero-text {
    display: block; grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 3;
    padding: calc(var(--header-h) + 2rem) 2.5rem 3rem max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  }
  .hero-copy { padding: 0; margin: 0 0 2.5rem; pointer-events: auto; }
  .hero h1 { font-size: clamp(5rem, 9.6vw, 10rem); line-height: 0.88; letter-spacing: -0.03em; margin-right: -14vw; text-shadow: 0 2px 30px rgba(20, 20, 20, 0.35); }
  .service-area { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-actions { padding: 0; gap: 0.9rem; }
  .hero-contact { padding: 1.75rem 0 0; flex-direction: row; gap: 1.75rem; }
  .hero-photo { grid-column: 2; grid-row: 1; align-self: start; width: calc((100svh - var(--cap)) * var(--hero-ratio)); max-width: 56vw; }
  .viewfinder { height: calc(100svh - var(--cap)); max-height: calc(56vw / var(--hero-ratio)); }
  .hero-frame { height: 100%; aspect-ratio: auto; border-radius: 0; }
  .hero-frame img { object-position: center bottom; }
  /* Keep the menu readable where it crosses the photo */
  .hero-frame::after { display: block; z-index: 2; background: linear-gradient(180deg, rgba(20,20,20,0.72) 0%, rgba(20,20,20,0.35) 12%, rgba(20,20,20,0) 26%), linear-gradient(0deg, rgba(20,20,20,0.35) 0%, rgba(20,20,20,0) 10%); }
  .hero .caption-row { padding: 0 1.5rem 0 1.25rem; height: var(--cap); }
  .hero .caption-row > span { padding-top: 0; align-self: center; }
  .hero .caption-row a { align-self: center; }
  /* Pointer parallax: horizontal drift, bottom-anchored so feet stay in frame */
  .is-loaded .has-parallax .hero-frame img { scale: 1; translate: none; }
  .slide-progress { left: 18px; right: 18px; bottom: 16px; }

  /* Galleries: staggered editorial row */
  /* Image accordion: the gallery you point at opens wider */
  .strip {
    display: flex; gap: 1.25rem; align-items: flex-start;
    max-width: var(--container); margin: 0 auto; padding: 0; overflow: visible;
  }
  .strip-item { flex: 1 1 0; min-width: 0; transition: flex-grow 0.7s var(--ease); }
  .strip:hover .strip-item, .strip:focus-within .strip-item { flex-grow: 0.72; }
  .strip .strip-item:hover, .strip .strip-item:focus-within { flex-grow: 1.9; }
  .featured .frame { aspect-ratio: auto; height: clamp(440px, 42vw, 600px); }
  .strip-item:hover .caption-row > span, .strip-item:focus-within .caption-row > span { color: var(--pink-deep); }
  /* Heading and photos share the same left/right edges */
  .featured { padding-left: var(--gutter); padding-right: var(--gutter); }
  .featured .section-head { padding: 0; }
  .strip-progress { display: none; }

  .gallery { gap: 18px; }

  .service-row { padding: 2.4rem 0.25rem; }
  .service-row:hover, .service-row:focus-visible { padding-left: 2rem; padding-right: 2rem; }

  .footer-wordmark, .footer-logo .logo-circle { width: 360px; height: 180px; }
  .sticky-book { display: none; }
  .site-footer { padding-bottom: 3rem; }
}

@media (min-width: 1440px) { body { font-size: 1.125rem; } }

/* Touch screens: show photo names softly (no hover) */
@media (hover: none) {
  .footer-logo:hover { transform: none; }
}

/* =========================================================
   REDUCED MOTION: skip the shutter, parallax and slides
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .hero-frame { clip-path: none; }
  .js .hero-frame img, .is-loaded .has-parallax .hero-frame img { scale: 1; translate: none; }
  .hero::before { animation: none; }
  .js .hero h1 .line > *, .js .nav-menu > li > * { transform: none; }
  .js .service-area, .js .hero-actions, .js .hero-contact, .js .hero .caption-row { opacity: 1; }
  .img-wait { animation: none; }
  .js img.fade-img { opacity: 1; }
}

.services-location { max-width: var(--container); margin: 1.5rem auto 0; padding: 0 var(--gutter); color: var(--pink-deep); font-weight: 600; letter-spacing: .12em; font-size: .95rem; }

/* The gallery deck uses native scrolling; perspective belongs to each photo,
   never to the text or the page. No pinning or artificial scroll runway. */
.featured.has-gallery-deck { overflow: hidden; padding-inline: 0; }
.has-gallery-deck .section-head { padding-inline: var(--gutter); }
.has-gallery-deck .strip {
  --deck-width: min(58vw, 440px);
  display: flex; gap: clamp(12px, 2vw, 32px); align-items: flex-start;
  max-width: none; margin: 0; padding: 28px calc((100% - var(--deck-width)) / 2) 12px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - var(--deck-width)) / 2);
  touch-action: pan-x pan-y; cursor: grab; isolation: isolate;
}
.has-gallery-deck .strip-item,
.has-gallery-deck .strip:hover .strip-item,
.has-gallery-deck .strip:focus-within .strip-item {
  flex: 0 0 var(--deck-width); min-width: 0; scroll-snap-align: center;
  transition: none; perspective: 900px;
}
.has-gallery-deck .frame {
  height: clamp(330px, 42vw, 560px); aspect-ratio: auto;
  transform: rotateY(var(--deck-angle, 0deg)) scale(var(--deck-scale, 1));
  transform-origin: center; border-radius: 3px; backface-visibility: hidden;
  box-shadow: 0 18px 28px -24px rgba(40,25,20,.55);
}
.has-gallery-deck .frame img { object-fit: contain; object-position: center; background: #201c1a; }
.has-gallery-deck .caption-row { min-height: 64px; gap: 16px; font-size: .75rem; padding-top: 20px; }
.has-gallery-deck .caption-row > span { max-width: 65%; }
.gallery-controls { display: none; }
.has-gallery-deck .gallery-controls { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 22px auto 0; }
.gallery-controls button { border: 0; padding: 10px 4px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.gallery-controls button:hover { color: var(--pink-deep); }
.gallery-controls button:disabled { opacity: .3; cursor: default; }
.gallery-position { margin: 0; min-width: 42px; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.has-gallery-deck .strip-progress { display: block; max-width: 190px; margin: 20px auto 0; }
.has-gallery-deck .strip.dragging { scroll-snap-type: none; cursor: grabbing; }
.has-gallery-deck .strip.dragging a { cursor: grabbing; }
@media (max-width: 767px) {
  .has-gallery-deck .strip { --deck-width: 76vw; gap: 16px; padding-top: 12px; }
  .has-gallery-deck .frame { height: min(106vw, 510px); }
  .has-gallery-deck .caption-row { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .has-gallery-deck .frame { transform: none; }
  .has-gallery-deck .strip { scroll-behavior: auto; }
}

/* A continuous editorial sequence: cream galleries, dark portfolio, cream services. */
.featured.has-gallery-deck { padding-block: clamp(48px, 6vw, 88px) 48px; }
.has-gallery-deck .section-head { margin-bottom: 12px; }
.has-gallery-deck .frame { transition: box-shadow .25s ease; }
.has-gallery-deck .strip-progress { margin-top: 12px; }
#services { padding-top: clamp(36px, 5vw, 64px); }
#services .service-list { border-top: 0; }
@media (max-width:767px) {
  .featured.has-gallery-deck { padding-bottom: 32px; }
  .has-gallery-deck .gallery-controls { margin-top: 10px; }
}

.logo-circle span,.logo:hover .logo-circle span,.over-hero .logo-circle span,.nav-open .logo-circle span,.intro-mark,.footer-wordmark,.footer-logo .logo-circle,.footer-logo:hover .footer-wordmark,.footer-logo:hover .logo-circle{background-color:#e0457b}
