/* ============================================================
   GIANLUCA PISATI — Global CSS
   Design: cream-first editorial, Ever.co.id inspired, Italian luxury B2B
   v2 — lighter, more sensual, cream default + dark accent sections
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #ECD5BC; /* match body — prevents browser-default gray/white gap between sections during scroll */
  /* clip (not hidden) kills horizontal overflow from entrance-animation
     transforms without creating a scroll container — keeps position:sticky working */
  overflow-x: clip;
}

/* ===== DESIGN TOKENS ===== */
:root {
  /* === NEW PALETTE (v15 — sabbia rosa) === */
  --cream:          #ECD5BC;  /* Sabbia Rosa — sfondo principale */
  --cream-dark:     #DFC4A8;  /* Sabbia Media — sfondo sezioni secondarie */
  --charcoal:       #B87055;  /* Cotto Rosa — sezioni dominanti */
  --charcoal-mid:   #9A5A40;  /* Cotto Scuro — card backgrounds, profondità */
  --ink:            #3A2018;  /* Testo scuro — leggibile su tutti gli sfondi */
  --mauve:          #C89050;  /* Ocra Dorata — CTA, accenti, bottoni */
  --mauve-dark:     #A87030;  /* Ocra Scura — hover stato */
  --brown:          #B87055;  /* alias Cotto Rosa */
  --white:          #FFFFFF;
  --black:          #3A2018;  /* dark text, alias ink */
  --terra-rosa:     #CC8B78;  /* Terra Rosa — sfondo sezioni dark, footer */

  /* === Nomi espliciti nuova palette (v15 — Sabbia Rosa) === */
  --sabbia-rosa:    #ECD5BC;  /* sfondo principale */
  --sabbia-media:   #DFC4A8;  /* sfondo secondario */
  --cotto-rosa:     #B87055;  /* dominante sezioni */
  --cotto-scuro:    #9A5A40;  /* profondità */
  --ocra-dorata:    #C89050;  /* CTA e accenti */
  --ocra-scura:     #A87030;  /* hover */
  --nero-bruciato:  #3A2018;  /* testo scuro */
  /* alias legacy */
  --artic-daisy:    #ECD5BC;
  --olive-petal:    #B87055;
  --golden-clover:  #DFC4A8;
  --rose-blush:     #B87055;
  --peach-blossom:  #C89050;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-script:  'Dancing Script', cursive;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  3rem;
  --text-hero: clamp(4.5rem, 11vw, 13rem);
  --text-display: clamp(3rem, 7vw, 8rem);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 0.4s var(--ease-out);
}

/* ===== BASE ===== */
body {
  font-family: var(--font-sans);
  background: var(--artic-daisy);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== SECTION THEMES ===== */

/* Terra Rosa sections — dark ink text on warm rosa bg */
.section-dark {
  background: var(--terra-rosa);
  color: var(--ink);
}
.section-dark .section-title,
.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--ink);
}
.section-dark .section-body,
.section-dark p {
  color: rgba(58, 32, 24, 0.72);
}
.section-dark .section-label {
  color: var(--mauve-dark);
}

/* Same as section-dark — alias for legacy code */
.section-black {
  background: var(--terra-rosa);
  color: var(--ink);
}
.section-black .section-title,
.section-black h2,
.section-black h3 { color: var(--ink); }
.section-black p { color: rgba(58, 32, 24, 0.70); }

/* Cotto Rosa accent sections — cream text on cotto bg */
.section-rose {
  background: var(--rose-blush);
  color: var(--artic-daisy);
}
.section-rose .section-title,
.section-rose h1,
.section-rose h2,
.section-rose h3 {
  color: var(--artic-daisy);
}
.section-rose .section-label {
  color: rgba(236, 213, 188, 0.6);
}
.section-rose .section-body,
.section-rose p {
  color: rgba(236, 213, 188, 0.80);
}

/* Light sections (default — Artic Daisy) */
.section-light {
  background: var(--artic-daisy);
  color: var(--ink);
}
/* Golden Clover sections */
.section-cream-dark {
  background: var(--golden-clover);
  color: var(--ink);
}

/* Prevent subpixel rendering gap between adjacent sections on all pages */
section {
  display: block;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-sans);
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s ease;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s ease;
}

.cursor.hover {
  width: 6px;
  height: 6px;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 255, 255, 0.92);
}

/* Hide custom cursor on touch/pointer-coarse devices */
@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }
  body {
    cursor: auto;
  }
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  z-index: 1000;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s ease;
}

.nav.scrolled {
  background: rgba(236, 213, 188, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(204, 139, 120, 0.08);
}

/* Navbar on dark hero pages — logo/links white, swap to dark on scroll */
.nav--on-dark .nav-links a { color: rgba(247, 237, 224, 0.82); }
.nav--on-dark.scrolled .nav-links a { color: var(--ink); }
.nav--on-dark .nav-burger span { background: var(--artic-daisy); }
.nav--on-dark.scrolled .nav-burger span { background: var(--ink); }
.nav--on-dark .nav-logo { filter: brightness(0) invert(1); }
.nav--on-dark.scrolled .nav-logo { filter: none; }
/* nav-cta pill stays ink text regardless */
.nav--on-dark .nav-cta { color: var(--ink) !important; }
.nav--on-dark .nav-links a:hover { color: var(--cream) !important; opacity: 1; }
.nav--on-dark.scrolled .nav-links a:hover { color: var(--mauve) !important; }

.nav-logo {
  height: 38px;
  width: auto;
  filter: none;
  transition: filter 0.4s var(--ease-out), opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mauve);
  transition: width 0.35s var(--ease-out);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: var(--mauve);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--mauve-dark);
  opacity: 1 !important;
}

/* Mobile nav toggle */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
}

/* ===== MARQUEE TICKER ===== */
.marquee-wrap {
  overflow: hidden;
  background: var(--mauve);
  padding: 0.75rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--artic-daisy);
  padding: 0 2.5rem;
}

.marquee-track span.dot {
  opacity: 0.5;
  padding: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION UTILITIES ===== */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  text-wrap: balance;
}

.section-title.on-dark { color: var(--artic-daisy); }

h1, h2, h3 { text-wrap: balance; }

/* Section label on olive/dark backgrounds */
.section-label.on-dark { color: var(--rose-blush); }

.section-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(58, 32, 24, 0.65);
  max-width: 65ch;
  text-wrap: pretty;
}

.section-body.on-dark { color: rgba(58, 32, 24, 0.72); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
}

.btn-primary {
  background: var(--mauve);
  color: var(--ink);
  border: 1px solid var(--mauve);
}

.btn-primary:hover {
  background: var(--mauve-dark);
  border-color: var(--mauve-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 237, 224, 0.35);
}

.btn-outline:hover {
  border-color: var(--mauve);
  color: var(--mauve);
  transform: translateY(-2px);
}

.btn-outline.dark {
  color: var(--ink);
  border-color: rgba(204, 139, 120, 0.3);
}

.btn-outline.dark:hover {
  border-color: var(--mauve);
  color: var(--mauve);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve);
  transition: gap 0.3s var(--ease-out);
}

.btn-arrow:hover {
  gap: 0.9rem;
}

.btn-arrow svg {
  width: 18px;
  height: 18px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--terra-rosa);
  padding: var(--space-xl) clamp(1.5rem, 5vw, 5rem) var(--space-lg);
  border-top: 1px solid rgba(58, 32, 24, 0.10);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(58, 32, 24, 0.10);
}

.footer-brand .footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0);
  opacity: 0.55;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: rgba(58, 32, 24, 0.55);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(58, 32, 24, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
  color: rgba(58, 32, 24, 0.50);
  font-size: 14px;
}

.footer-social a:hover {
  border-color: var(--mauve-dark);
  color: var(--mauve-dark);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(58, 32, 24, 0.45);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(58, 32, 24, 0.65);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--mauve-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(58, 32, 24, 0.40);
  letter-spacing: 0.05em;
}

.footer-made {
  font-size: var(--text-xs);
  color: rgba(58, 32, 24, 0.35);
  letter-spacing: 0.05em;
}

.footer-made span {
  color: var(--mauve-dark);
}

/* ===== FORM STYLES ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 237, 224, 0.5);
}

.form-label.dark {
  color: rgba(204, 139, 120, 0.5);
}

.form-input {
  background: rgba(247, 237, 224, 0.05);
  border: 1px solid rgba(247, 237, 224, 0.12);
  color: var(--cream);
  padding: 0.9rem 1.1rem;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  border-radius: 2px;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
  width: 100%;
}

.form-input.dark {
  background: rgba(204, 139, 120, 0.04);
  border-color: rgba(204, 139, 120, 0.15);
  color: var(--ink);
}

.form-input::placeholder {
  color: rgba(247, 237, 224, 0.25);
}

.form-input.dark::placeholder {
  color: rgba(204, 139, 120, 0.3);
}

.form-input:focus {
  border-color: var(--mauve);
  background: rgba(200, 144, 80, 0.05);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ===== PARALLAX CONTAINER ===== */
.parallax-img {
  will-change: transform;
  overflow: hidden;
}

.parallax-img img {
  transform-origin: center center;
  will-change: transform;
}

/* ===== REVEAL ANIMATIONS — initial state set by GSAP fromTo (content visible if JS fails) ===== */

/* ===== SPLIT TEXT ANIMATION ===== */
.split-word {
  display: inline-block;
  overflow: hidden;
}

.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
}

/* ===== IMAGE HOVER ===== */
.img-hover-wrap {
  overflow: hidden;
  position: relative;
}

.img-hover-wrap img {
  transition: transform 0.7s var(--ease-out);
}

.img-hover-wrap:hover img {
  transform: scale(1.05);
}

/* ===== OVERLAY ===== */
.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.75) 0%, rgba(10, 9, 8, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

.overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.45);
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  /* Reduce large spacing tokens on tablet */
  :root {
    --space-xl: 6rem;
    --space-2xl: 8rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger {
    display: flex;
    /* Enlarge hit area for touch — minimum 44px */
    padding: 10px 8px;
    margin: -10px -8px;
    /* Stay above the full-screen open menu panel (z-index 999) so a tap
       on the burger closes the menu instead of hitting the overlay */
    position: relative;
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--ink);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .nav-links.open a {
    font-size: var(--text-xl);
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--artic-daisy);
    /* Generous tap target */
    padding: 0.5rem 1.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-links.open .nav-cta {
    background: var(--rose-blush);
    color: var(--ink) !important;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Reduce spacing further on mobile */
  :root {
    --space-lg: 3rem;
    --space-xl: 4.5rem;
    --space-2xl: 6rem;
  }

  /* Buttons — full-width on mobile when stacked */
  .btn {
    padding: 0.9rem 1.8rem;
    min-height: 44px;
    justify-content: center;
  }

  /* Footer — reduce padding on mobile */
  .footer {
    padding: var(--space-lg) var(--space-sm) var(--space-md);
  }
}

/* ===== 480px — SMALL PHONES ===== */
@media (max-width: 480px) {
  /* Nav */
  .nav {
    height: 60px;
    padding: 0 1.2rem;
  }
  .nav-logo {
    height: 30px;
  }

  /* Footer — single column, compact */
  .footer-top {
    gap: 2rem;
  }
  .footer-tagline {
    font-size: var(--text-base);
  }

  /* Buttons — minimum touch target */
  .btn {
    padding: 0.85rem 1.4rem;
    width: 100%;
    justify-content: center;
  }
  .btn-arrow {
    min-height: 44px;
  }

  /* Lightbox — nearly full screen on tiny phones */
  #lb-img-wrap {
    max-width: 100vw;
    max-height: 90vh;
  }
  #lb-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
  }
}

/* ===== INTERACTIVE SECTIONS — new v2 ===== */

/* --- Expand on scroll --- */
.expand-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  background: var(--cream);
}

.expand-img-wrap {
  width: 220px;
  height: 280px;
  overflow: hidden;
  will-change: width, height;
  position: relative;
  box-shadow: 0 20px 60px rgba(204, 139, 120,0.18);
}

.expand-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* expand-caption styles moved to index.html page-specific CSS */

/* --- Horizontal scroll section (Ever cards style) --- */
.h-scroll-outer {
  overflow: hidden;
  background: var(--charcoal);
  position: relative;
}

.h-scroll-pin-wrap {
  /* GSAP pins this */
}

.h-scroll-track {
  display: flex;
  gap: 16px;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  will-change: transform;
}

.h-scroll-card {
  flex: 0 0 clamp(280px, 35vw, 520px);
  height: clamp(380px, 55vw, 680px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal-mid);
}

.h-scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
}

.h-scroll-card:hover img {
  transform: scale(1.06);
}

.h-scroll-card__label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.h-scroll-card:hover .h-scroll-card__label {
  opacity: 1;
  transform: translateY(0);
}

.h-scroll-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.h-scroll-card:hover .h-scroll-card__overlay {
  opacity: 1;
}

/* --- Scattered collage section --- */
.scatter-section {
  position: relative;
  min-height: 600px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 10rem) 2rem;
}

.scatter-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--ink);
  text-align: center;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  max-width: 600px;
}

.scatter-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scatter-photo {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(204, 139, 120,0.15);
}

.scatter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scattered positions */
.scatter-photo:nth-child(1) { width: 180px; height: 220px; top: 5%; left: 3%; transform: rotate(-4deg); }
.scatter-photo:nth-child(2) { width: 140px; height: 180px; top: 8%; right: 5%; transform: rotate(3deg); }
.scatter-photo:nth-child(3) { width: 160px; height: 200px; bottom: 10%; left: 8%; transform: rotate(2deg); }
.scatter-photo:nth-child(4) { width: 200px; height: 240px; bottom: 5%; right: 3%; transform: rotate(-3deg); }
.scatter-photo:nth-child(5) { width: 120px; height: 150px; top: 40%; left: 1%; transform: rotate(5deg); }
.scatter-photo:nth-child(6) { width: 120px; height: 150px; top: 35%; right: 1%; transform: rotate(-5deg); }

/* --- Text-behind-photo (Janet style) --- */
.text-behind-section {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem) 0 0;
}

.text-behind-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(5rem, 15vw, 18rem);
  line-height: 0.85;
  color: var(--ink);
  text-align: center;
  position: relative;
  z-index: 0;
  padding: 0 clamp(1rem, 3vw, 3rem);
  user-select: none;
}

.text-behind-photo {
  position: relative;
  z-index: 1;
  width: clamp(260px, 45vw, 600px);
  margin: -8vw auto 0;
  display: block;
  overflow: hidden;
}

.text-behind-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* --- Big running text marquee (Janet style overlay) --- */
.running-text-section {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.running-text-photo {
  width: 100%;
  height: clamp(280px, 45vw, 550px);
  overflow: hidden;
  position: relative;
}

.running-text-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.running-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}

.running-text-inner {
  display: flex;
  white-space: nowrap;
  animation: running-text 18s linear infinite;
}

.running-text-inner span {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  color: rgba(247,237,224,0.92);
  padding: 0 2rem;
  line-height: 1;
}

.running-text-inner .sep {
  color: var(--mauve);
  opacity: 0.8;
}

@keyframes running-text {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

/* Cursor hint on lightbox-eligible images */
.lb-trigger {
  cursor: zoom-in;
}

/* Overlay */
#lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 9, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

/* Image container */
#lb-img-wrap {
  position: relative;
  max-width: min(88vw, 1100px);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}

#lb-overlay.lb-open #lb-img {
  opacity: 1;
  transform: scale(1);
}

/* Caption bar */
#lb-caption {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(10,9,8,0.85) 0%, transparent 100%);
  pointer-events: none;
}

#lb-caption-text {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(247,237,224,0.75);
  letter-spacing: 0.04em;
  font-style: italic;
}

#lb-counter {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,237,224,0.4);
}

/* Close button */
#lb-close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247,237,224,0.2);
  border-radius: 50%;
  background: transparent;
  color: rgba(247,237,224,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 9001;
}

#lb-close:hover {
  border-color: var(--mauve);
  color: var(--mauve);
  background: rgba(200,144,80,0.08);
}

/* Prev / Next arrows */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247,237,224,0.15);
  border-radius: 50%;
  background: transparent;
  color: rgba(247,237,224,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 9001;
}

.lb-nav:hover {
  border-color: var(--mauve);
  color: var(--mauve);
  background: rgba(200,144,80,0.08);
}

#lb-prev { left: 1.2rem; }
#lb-next { right: 1.2rem; }

/* Season badge */
#lb-badge {
  position: fixed;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .lb-nav { display: none; }
  #lb-img-wrap { max-width: 96vw; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .running-text-inner {
    animation: none !important;
    transform: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Elements that start hidden and are only revealed by a JS entrance
     animation (which is skipped under reduced-motion) must stay visible. */
  .hero-subtitle,
  .hero-desc,
  .hero-cta,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
  outline: 2px solid var(--rose-blush);
  outline-offset: 3px;
}