/* =============================================================
   AMBIENTACIONES ML — styles.css  (v2 · rediseño editorial cinematográfico)
   Mariana Lamas · El Palomar, Buenos Aires
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta de marca */
  --bg:          #F6F2EA;   /* crema claro */
  --bg-2:        #ECE5D8;   /* crema/sand */
  --bg-3:        #E2D9C8;   /* sand más profundo */
  --paper:       #FFFFFF;
  --ink:         #26261F;   /* charcoal cálido */
  --ink-soft:    #3B3B33;
  --ink-mute:    #706B5D;
  --olive:       #5D6552;   /* verde oliva — acento principal */
  --olive-dark:  #434A38;
  --olive-deep:  #2C3226;   /* fondos oscuros */
  --sage:        #A9B29A;   /* sage — acento secundario */
  --gray:        #B7B2A9;
  --gold:        #B98E52;   /* dorado — detalle */
  --gold-soft:   #CBA774;
  --line:        rgba(38,38,31,0.12);
  --line-soft:   rgba(38,38,31,0.07);

  /* Dark sections */
  --dark-bg:     #23281D;
  --dark-bg-2:   #2C3226;
  --dark-cream:  #EFEADD;
  --dark-mute:   #AFB4A1;
  --dark-line:   rgba(239,234,221,0.14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --gutter: 1.4rem;
}

@media (min-width: 720px) { :root { --gutter: 2.5rem; } }
@media (min-width: 1280px) { :root { --gutter: 3rem; } }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.012em; font-family: var(--serif); font-weight: 500; }
em { font-style: italic; }
::selection { background: var(--olive); color: var(--bg); }

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

/* Film grain + vignette texture overlay */
.grain {
  position: fixed; inset: -50%; z-index: 9998; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grainShift 6s steps(4) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6;
}

.section-head { max-width: 660px; margin-bottom: 3.4rem; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.section-head--on-dark .eyebrow { color: var(--sage); }
.section-head--on-dark h2 { color: var(--dark-cream); }
.section-head--on-dark h2 em { color: var(--gold-soft); }
h2 em { color: var(--olive); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.split-line { display: block; overflow: hidden; padding-block: 0.02em; }
.split-line > span { display: inline-block; transform: translateY(115%); transition: transform .9s var(--ease-out); }
.split-line.is-visible > span { transform: translateY(0); }

/* Image clip reveal */
.img-reveal { overflow: hidden; }
.img-reveal img { transform: scale(1.12); transition: transform 1.5s var(--ease-out), clip-path 1.4s var(--ease-out); clip-path: inset(0 0 100% 0); }
.img-reveal.is-visible img { transform: scale(1); clip-path: inset(0 0 0% 0); }

/* =============================================================
   4. Cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--bg); border-radius: 50%; }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px; border: 1px solid var(--bg); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s var(--ease-out);
}
.cursor-ring .cursor-label {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); opacity: 0; transition: opacity .3s var(--ease-out); white-space: nowrap;
}
.cursor.is-interactive .cursor-ring { width: 56px; height: 56px; margin: -28px; }
.cursor.is-drag .cursor-ring { width: 76px; height: 76px; margin: -38px; background: rgba(255,255,255,0.12); }
.cursor.is-drag .cursor-ring .cursor-label { opacity: 1; }
.cursor.is-drag .cursor-dot { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--olive-deep);
  display: grid; place-items: center;
  overflow: hidden;
}
.splash-inner { text-align: center; }
.splash-mark {
  font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 12vw, 5.5rem); color: var(--bg);
  line-height: 1; overflow: hidden; display: block;
}
.splash-mark span { display: inline-block; transform: translateY(110%); animation: splashUp .9s var(--ease-out) .1s forwards; }
.splash-sub {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sage); margin-top: 1rem; opacity: 0; animation: splashFade .8s var(--ease-out) .7s forwards;
}
.splash-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left;
  background: var(--gold); transform: scaleX(0); animation: splashBar 1.6s var(--ease-soft) forwards;
}
@keyframes splashUp { to { transform: translateY(0); } }
@keyframes splashFade { to { opacity: 1; } }
@keyframes splashBar { to { transform: scaleX(1); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
html.is-ready .splash { animation: splashOut .7s var(--ease-in) forwards; }

/* Content lifts in after splash */
.hero-content > * { opacity: 0; }
html.is-ready .hero-content > * { opacity: 1; animation: heroLift 1s var(--ease-out) forwards; } /* opacity:1 = fallback si la animación no dispara */
html.is-ready .hero-content > *:nth-child(1) { animation-delay: .05s; }
html.is-ready .hero-content > *:nth-child(2) { animation-delay: .15s; }
html.is-ready .hero-content > *:nth-child(3) { animation-delay: .30s; }
html.is-ready .hero-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes heroLift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding-block: 1.2rem;
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(246,242,234,0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding-block: 0.75rem;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.01em; display: flex; align-items: baseline; gap: 0.15rem; }
.nav-brand em { color: var(--olive); font-style: italic; }
.nav-brand.on-hero, .nav-brand.on-hero em { color: var(--bg); }
.nav.is-scrolled .nav-brand, .nav.is-scrolled .nav-brand em { color: var(--ink); }
.nav.is-scrolled .nav-brand em { color: var(--olive); }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: 0.9rem; }
.nav-links a:not(.btn) { position: relative; padding-block: 0.2rem; color: inherit; }
.nav.on-hero .nav-links a:not(.btn) { color: var(--bg); }
.nav.is-scrolled .nav-links a:not(.btn) { color: var(--ink); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--olive);
  transition: right .35s var(--ease-out);
}
.nav-links a:not(.btn):hover::after { right: 0; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-toggle { display: grid; gap: 5px; padding: 0.4rem; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s, background .3s; }
.nav.on-hero .nav-toggle span { background: var(--bg); }
.nav.is-scrolled .nav-toggle span { background: var(--ink); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle[aria-expanded="true"] span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-links.is-open {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem;
  position: fixed; inset: 0; top: 0; padding: 6rem 1.6rem 2rem;
  background: var(--bg); z-index: 400; font-size: 1.4rem; font-family: var(--serif);
}
.nav-links.is-open a:not(.btn) { color: var(--ink) !important; }

/* =============================================================
   7. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  transition: transform .4s var(--ease-soft), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn svg { width: 1em; height: 1em; }
.btn-primary { background: var(--olive); color: var(--bg); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-small { padding: 0.55rem 1.25rem; font-size: 0.8rem; }
.btn-large { padding: 1.15rem 2.3rem; font-size: 1rem; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; will-change: transform; transition: transform .8s var(--ease-soft); }

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 108%; object-fit: cover; object-position: center 42%; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(20,22,14,0.92) 0%, rgba(20,22,14,0.78) 30%, rgba(20,22,14,0.45) 55%, rgba(20,22,14,0.28) 78%, rgba(20,22,14,0.5) 100%);
}
.hero-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 90% at 50% 15%, transparent 45%, rgba(18,20,12,0.55) 100%);
}
.hero-meta {
  position: relative; z-index: 2; color: var(--bg-2);
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 7.5rem; padding-bottom: 2rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-meta span { display: flex; align-items: center; gap: 0.55rem; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.hero-meta .hero-meta-r { display: none; }
@media (min-width: 720px) { .hero-meta .hero-meta-r { display: flex; } }

.hero-content { position: relative; z-index: 2; color: var(--bg); padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.hero .kicker { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.4rem; text-shadow: 0 1px 8px rgba(18,20,12,0.5); }
.hero-title { font-size: clamp(2.6rem, 7.2vw, 5.4rem); color: var(--bg); max-width: 16ch; font-weight: 500; text-shadow: 0 2px 24px rgba(18,20,12,0.5), 0 1px 3px rgba(18,20,12,0.35); }
.hero-title em { color: var(--gold-soft); font-style: italic; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 42ch; margin-top: 1.6rem; color: #EDEAE0; text-shadow: 0 1px 10px rgba(18,20,12,0.55); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.4rem; }
.hero .btn-ghost { border-color: rgba(246,242,234,0.55); color: var(--bg); }
.hero .btn-ghost:hover { background: var(--bg); color: var(--ink); }

.hero-foot {
  position: relative; z-index: 2; padding-bottom: 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(246,242,234,0.16); margin-top: 2.4rem; padding-top: 1.3rem;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg-2); }
.hero-tags span { opacity: 0.85; }
.hero-scroll-cue { display: none; align-items: center; gap: 0.7rem; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bg-2); }
.hero-scroll-cue .line { width: 40px; height: 1px; background: rgba(246,242,234,0.5); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: cueSlide 2s var(--ease-soft) infinite; }
@keyframes cueSlide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (min-width: 720px) { .hero-scroll-cue { display: flex; } }

/* =============================================================
   9. Marquee
   ============================================================= */
.marquee {
  background: var(--olive-deep); color: var(--dark-cream);
  padding-block: 1.15rem; overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(0,0,0,0.2);
}
.marquee-track { display: inline-flex; gap: 3rem; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem);
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee-track span::after { content: "✦"; font-style: normal; font-size: 0.7em; color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   10. Philosophy
   ============================================================= */
.philosophy { padding-block: clamp(5rem, 11vw, 9rem); background: var(--bg); }
.philosophy-grid { display: grid; gap: 2rem; }
.philosophy-num { font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 12vw, 8rem); color: var(--bg-3); line-height: 0.8; }
.philosophy-lead { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.2; color: var(--ink); margin-bottom: 1.8rem; font-weight: 500; }
.philosophy-lead em { color: var(--olive); }
.philosophy-text p { max-width: 58ch; color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.05rem; }
@media (min-width: 960px) {
  .philosophy-grid { grid-template-columns: 180px 1fr; gap: 4.5rem; align-items: start; }
}

/* =============================================================
   11. Story
   ============================================================= */
.story { padding-block: clamp(4.5rem, 10vw, 8rem); background: var(--bg-2); }
.story-grid { display: grid; gap: 2.6rem; }
.story-figure { position: relative; }
.story-figure img { border-radius: 4px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story-badge {
  position: absolute; bottom: -1rem; right: -0.6rem;
  background: var(--olive); color: var(--bg); padding: 1rem 1.3rem; border-radius: 4px;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.2; max-width: 14ch;
  box-shadow: 0 18px 40px -18px rgba(38,38,31,0.5);
}
.story-text h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.story-text p { max-width: 54ch; color: var(--ink-soft); margin-bottom: 1.1rem; }
.story-signature { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1.25rem; margin-top: 1.6rem; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 0.82fr 1.18fr; gap: 5rem; align-items: center; }
}

/* =============================================================
   12. Services — interactive index
   ============================================================= */
.services { padding-block: clamp(5rem, 11vw, 9rem); background: var(--bg); position: relative; }
.services-index { border-top: 1px solid var(--line); position: relative; z-index: 2; }
.service-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  padding-block: 1.7rem; border-bottom: 1px solid var(--line);
  position: relative; transition: color .4s var(--ease-out);
}
.service-num { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--ink-mute); }
.service-name { font-family: var(--serif); font-size: clamp(1.6rem, 4.5vw, 2.9rem); font-weight: 500; line-height: 1.05; transition: transform .5s var(--ease-out), color .4s var(--ease-out); }
.service-name em { color: var(--olive); }
.service-arrow { font-size: 1.3rem; color: var(--olive); opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.service-desc { grid-column: 1 / -1; max-width: 52ch; color: var(--ink-mute); font-size: 0.98rem; margin-top: 0.4rem; padding-left: 2.3rem; }
.service-media { grid-column: 1 / -1; margin-top: 1rem; margin-left: 2.3rem; border-radius: 6px; overflow: hidden; }
.service-media img { width: 100%; height: auto; display: block; }

/* Floating image preview (desktop) */
.service-preview {
  position: fixed; top: 0; left: 0; width: 300px; height: 380px; border-radius: 6px; overflow: hidden;
  pointer-events: none; z-index: 350; opacity: 0; transform: translate(-50%, -50%) scale(0.92);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); will-change: transform;
  box-shadow: 0 30px 60px -24px rgba(38,38,31,0.5); display: none;
}
.service-preview img { width: 100%; height: 100%; object-fit: cover; }
.service-preview.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (hover: hover) and (pointer: fine) and (min-width: 860px) {
  .service-preview { display: block; }
  .service-desc, .service-media { display: none; } /* on desktop use floating preview instead */
  .service-row:hover .service-name { transform: translateX(14px); color: var(--olive-dark); }
  .service-row:hover .service-arrow { opacity: 1; transform: none; }
  .service-row.is-dim .service-name { color: var(--gray); }
}

.services-cta { margin-top: 3rem; }
.services-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.services-cta-row p { max-width: 40ch; color: var(--ink-soft); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }

/* =============================================================
   13. Gallery — draggable
   ============================================================= */
.gallery { padding-block: clamp(4.5rem, 10vw, 8rem); background: var(--dark-bg); overflow: hidden; }
.gallery .section-head { margin-bottom: 2.2rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; }
.gallery-hint { display: none; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark-mute); align-items: center; gap: 0.7rem; flex-shrink: 0; }
.gallery-hint svg { width: 34px; height: 12px; stroke: var(--gold); fill: none; }
@media (min-width: 860px) { .gallery-hint { display: flex; } }
.gallery-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter); padding-bottom: 1.2rem;
  scrollbar-width: none; cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track.is-dragging .gallery-item { pointer-events: none; }
@media (min-width: 720px) { .gallery-track { gap: 1.4rem; } }
.gallery-item {
  flex: 0 0 auto; width: min(80vw, 420px); aspect-ratio: 4/5; border-radius: 6px; overflow: hidden;
  scroll-snap-align: center; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem;
  background: linear-gradient(0deg, rgba(20,22,14,0.75), transparent);
  color: var(--dark-cream); font-size: 0.82rem; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.06); }
  .gallery-item:hover figcaption { opacity: 1; transform: none; }
}
.gallery-progress { max-width: var(--container); margin: 1.4rem auto 0; padding-inline: var(--gutter); }
.gallery-progress-bar { height: 2px; background: var(--dark-line); position: relative; overflow: hidden; border-radius: 2px; }
.gallery-progress-bar i { position: absolute; left: 0; top: 0; height: 100%; width: 30%; background: var(--gold); border-radius: 2px; transition: transform .1s linear; transform-origin: left; }

/* =============================================================
   14. Process — sticky big number
   ============================================================= */
.process { padding-block: clamp(5rem, 11vw, 9rem); background: var(--bg); }
.process-layout { display: grid; gap: 2.5rem; }
.process-sticky { display: none; }
.process-sticky-inner { position: sticky; top: 14vh; }
.process-bignum { font-family: var(--serif); font-style: italic; font-size: clamp(8rem, 20vw, 15rem); line-height: 0.8; color: var(--olive); transition: color .4s var(--ease-out); }
.process-bignum-label { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-top: 1rem; }
.timeline { list-style: none; position: relative; }
.timeline-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); transition: opacity .5s var(--ease-out); }
.timeline-item:first-child { border-top: 1px solid var(--line); }
.timeline-n {
  font-family: var(--serif); font-size: 1rem; color: var(--olive);
  width: 2.4rem; flex-shrink: 0;
}
.timeline-item h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.timeline-item p { color: var(--ink-mute); max-width: 52ch; font-size: 0.98rem; }
@media (min-width: 960px) {
  .process-layout { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
  .process-sticky { display: block; }
}

/* =============================================================
   15. Difference
   ============================================================= */
.difference { padding-block: clamp(5rem, 11vw, 9rem); background: var(--bg-2); }
.difference-grid { display: grid; gap: 1.6rem; margin-top: 1rem; }
.difference-card { background: var(--paper); padding: 2.4rem 2rem; border-radius: 6px; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.difference-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px -22px rgba(38,38,31,0.28); }
.difference-idx { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold); letter-spacing: 0.05em; display: block; margin-bottom: 1.4rem; }
.difference-card h3 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.difference-card p { color: var(--ink-soft); font-size: 0.98rem; }
@media (min-width: 960px) { .difference-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   16. Testimonials
   ============================================================= */
.testimonials { padding-block: clamp(5rem, 11vw, 9rem); background: var(--dark-bg-2); }
.testimonial-featured {
  max-width: 920px; margin: 0 auto 2.6rem; text-align: center; position: relative; padding: 2.4rem 1rem 0;
}
.testimonial-featured::before {
  content: "“"; font-family: var(--serif); font-size: 5rem; line-height: 0.5; color: var(--gold);
  display: block; margin-bottom: 0.4rem; opacity: 0.6;
}
.testimonial-featured p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.42; color: var(--dark-cream);
}
.testimonial-featured p em { color: var(--gold-soft); font-style: italic; }
.testimonial-featured footer {
  margin-top: 1.6rem; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark-mute);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.testimonial-featured footer::before, .testimonial-featured footer::after { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.7; }
.testimonial-grid { display: grid; gap: 1.4rem; margin-top: 1rem; }
.testimonial-card {
  background: rgba(239,234,221,0.04); border: 1px solid var(--dark-line);
  border-radius: 6px; padding: 2.2rem 1.9rem; position: relative;
}
.testimonial-card::before {
  content: "“"; font-family: var(--serif); font-size: 4rem; line-height: 0.6; color: var(--gold);
  position: absolute; top: 1.4rem; right: 1.5rem; opacity: 0.35;
}
.testimonial-card p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--dark-cream); line-height: 1.5; margin-bottom: 1.3rem; }
.testimonial-card footer { font-size: 0.8rem; color: var(--dark-mute); letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.6rem; }
.testimonial-card footer::before { content: ""; width: 18px; height: 1px; background: var(--gold); }
@media (min-width: 720px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   17. FAQ
   ============================================================= */
.faq { padding-block: clamp(5rem, 11vw, 9rem); background: var(--bg); }
.faq-grid { display: grid; gap: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink); padding-block: 1.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; position: relative;
  background:
    linear-gradient(var(--olive),var(--olive)) center/2px 100% no-repeat,
    linear-gradient(var(--olive),var(--olive)) center/100% 2px no-repeat;
  transition: transform .35s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { padding-bottom: 1.4rem; color: var(--ink-mute); max-width: 62ch; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.82fr 1.18fr; gap: 4.5rem; } }

/* =============================================================
   18. Final CTA
   ============================================================= */
.final-cta { padding-block: clamp(5.5rem, 13vw, 10rem); background: var(--olive); color: var(--bg); text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: "ML"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 60vw; color: rgba(246,242,234,0.05); pointer-events: none; line-height: 1;
}
.final-cta-inner { max-width: 660px; margin-inline: auto; position: relative; z-index: 2; }
.final-cta .eyebrow { color: var(--gold-soft); justify-content: center; }
.final-cta .eyebrow::before { display: none; }
.final-cta h2 { color: var(--bg); font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.4rem; }
.final-cta h2 em { color: var(--gold-soft); }
.final-cta-inner > p { color: var(--bg-2); max-width: 46ch; margin-inline: auto; }
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.4rem; }
.final-cta .btn-ghost { border-color: rgba(246,242,234,0.5); color: var(--bg); }
.final-cta .btn-ghost:hover { background: var(--bg); color: var(--olive-dark); }
.final-cta-meta { margin-top: 2.6rem; font-size: 0.86rem; color: var(--bg-2); display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.final-cta-meta a:hover { color: var(--gold-soft); }

/* =============================================================
   19. Footer
   ============================================================= */
.footer { padding-block: 3.4rem; background: var(--ink); color: var(--bg-2); }
.footer-inner { display: flex; flex-direction: column; gap: 1.3rem; align-items: center; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--bg); }
.footer-brand em { font-style: italic; color: var(--gold-soft); }
.footer-copy { font-size: 0.8rem; color: var(--gray); max-width: 40ch; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.84rem; }
.footer-links a { position: relative; }
.footer-links a:hover { color: var(--gold-soft); }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* =============================================================
   20. WhatsApp floating button
   ============================================================= */
.whatsapp-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--olive); display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(38,38,31,0.5);
  transition: transform .4s var(--ease-bounce);
}
.whatsapp-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--olive);
  animation: fabPulse 2.4s var(--ease-out) infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
.whatsapp-fab svg { width: 28px; height: 28px; fill: var(--bg); position: relative; z-index: 1; }
.whatsapp-fab:hover { transform: scale(1.08); }

/* =============================================================
   21. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track, .hero-scroll-cue .line::after, .whatsapp-fab::after { animation: none; }
  .splash-mark span { transform: none; animation: none; }
  .splash-sub, .hero-content > * { opacity: 1 !important; animation: none !important; }
  .img-reveal img { clip-path: none; transform: none; }
}
