/* ========================================================================
   rosé floral studio — Cinematic Scroll Site
   ========================================================================
   Brand: light, minimal, romantic, contemporary.
   Palette: ivory white + sage / dark olive + dusty rose + muted gold.
   Typography: Cormorant Garamond (serif) + Inter (sans-serif).
   Each <section class="scene"> is a pinned full-viewport "frame" of the film.
   ======================================================================== */


/* ---------------- 1. RESET & TOKENS ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: auto; } /* Lenis handles smoothness */

:root {
  /* Brand palette — light, minimal, refined */
  --c-bg:         #F8F5F1;   /* warm ivory page background */
  --c-bg-soft:    #F2EBE3;   /* slight blush variation     */
  --c-paper:      #FBF7F2;   /* warm white card surface    */
  --c-ink:        #14120F;   /* primary text (warm near-black, deepened for readability) */
  --c-ink-soft:   #2F2C28;   /* secondary text (deepened from #4A4744 for better contrast) */
  --c-mute:       rgba(31, 29, 27, 0.55);
  --c-line:       rgba(31, 29, 27, 0.14);

  --c-olive:      #3A4A3A;   /* primary brand accent (deep sage)  */
  --c-olive-soft: #6F7C6B;
  --c-pink:       #C9879A;   /* dusty rose accent          */
  --c-pink-soft:  #E8C5CF;
  --c-gold:       #B59670;   /* muted brushed gold         */

  /* Type */
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --pad-x:     clamp(1.5rem, 5vw, 6rem);
  --pad-y:     clamp(2rem, 6vh, 5rem);
  --max-w:     1280px;

  /* Easing */
  --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
}

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }


/* ---------------- 2. TOPBAR ---------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--pad-x);
  pointer-events: none;
  color: var(--c-ink);
  transition: opacity 0.5s var(--ease-cinematic);
}
.topbar > * { pointer-events: auto; }

.topbar__brand {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}
.topbar__brand strong {
  font-weight: 400;       /* serif weight is enough */
  font-style: normal;
}
.topbar__brand small {
  font-family: var(--f-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  opacity: 0.85;
}

.topbar__cta {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--c-ink);
  border-radius: 999px;
  color: var(--c-ink);
  background: rgba(251, 247, 242, 0.5);
  backdrop-filter: blur(6px);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.topbar__cta:hover {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}

/* On dark hero scenes, brand inverts for legibility */
.topbar.is-on-dark { color: var(--c-paper); }
.topbar.is-on-dark .topbar__brand small { color: rgba(251, 247, 242, 0.8); }
.topbar.is-on-dark .topbar__cta {
  color: var(--c-paper);
  border-color: var(--c-paper);
  background: rgba(0, 0, 0, 0.15);
}
.topbar.is-on-dark .topbar__cta:hover {
  background: var(--c-paper);
  color: var(--c-ink);
}

/* Scene-aware topbar — the topbar is fixed at the top of every scene, so
   its legibility depends on the image directly behind the top edge.
   Scenes 1 (hero atelier) and 5 (orders, dark wood w/ crystal vases) are
   the dark ones; topbar inverts to cream over them. Other scenes have a
   light tablescape / window / wash near the top edge so dark text reads.
   data-active-scene is set by the existing IntersectionObserver in
   initSegmentBar (scroll-engine.js). Initial value is "1" on <body>. */
body[data-active-scene="1"] .topbar,
body[data-active-scene="5"] .topbar {
  color: var(--c-paper);
}
body[data-active-scene="1"] .topbar__brand,
body[data-active-scene="5"] .topbar__brand {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
body[data-active-scene="1"] .topbar__brand small,
body[data-active-scene="5"] .topbar__brand small {
  color: rgba(251, 247, 242, 0.85);
}
body[data-active-scene="1"] .topbar__cta,
body[data-active-scene="5"] .topbar__cta {
  color: var(--c-paper);
  border-color: rgba(251, 247, 242, 0.7);
  background: rgba(0, 0, 0, 0.22);
}
body[data-active-scene="1"] .topbar__cta:hover,
body[data-active-scene="5"] .topbar__cta:hover {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--c-paper);
}


/* ---------------- 3. PROGRESS BAR ---------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 99;
  background: rgba(31, 29, 27, 0.06);
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-olive), var(--c-pink));
  transition: width 0.05s linear;
}


/* ---------------- 4. SCROLL HINT ---------------- */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-sans);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.4s, color 0.4s;
}
.scroll-hint.is-hidden { opacity: 0; }
.scroll-hint__line {
  width: 1px;
  height: 44px;
  background: rgba(31, 29, 27, 0.18);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-olive);
  animation: scrollLine 2.4s var(--ease-cinematic) infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}
.scroll-hint.is-on-dark { color: rgba(251, 247, 242, 0.85); }
.scroll-hint.is-on-dark .scroll-hint__line { background: rgba(251, 247, 242, 0.25); }
.scroll-hint.is-on-dark .scroll-hint__line::after { background: var(--c-paper); }


/* ---------------- 5. SCENE — base ----------------
   Each scene is a sticky full-viewport stage.
   GSAP pins it; CSS makes the layered media + text.
*/
.scene {
  position: relative;
  height: 100vh;
  height: 100svh; /* mobile fix — small viewport unit ne reagira na URL bar show/hide */
  width: 100%;
  overflow: hidden;
  background: var(--c-bg);
}

/* Media layer (image + overlay) */
.scene__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.scene__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform, opacity;
}

/* Overlays — light theme uses subtle washes that fade image into bg color
   for text legibility, while keeping editorial light feel */
.scene__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Sprint 2 Task 8 — per-scena dynamic vignette strength.
     scroll-engine scrubs --vignette-strength preko cfg.vignette.from→to.
     filter: opacity() koristi se umjesto CSS opacity-a da ne kolidira sa
     outro step-om koji animira inline style.opacity. */
  filter: opacity(var(--vignette-strength, 1));
  will-change: filter;
}

/* Sprint 2 Task 4 — color grade je primijenjen na .scene__media (ne img),
   da ne kolidira sa blur filterom koji camera move postavlja na .scene__img. */
.scene__media {
  will-change: filter;
}

/* Used when text needs strong dark backdrop (rare — kept for dramatic CTA) */
.scene__overlay--dark {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
}

/* Light wash — fades image gently to ivory bg for legible dark type
   (strengthened pass for readability — bumped mid/bottom stops) */
.scene__overlay--soft {
  background: linear-gradient(180deg,
    rgba(248, 245, 241, 0.18) 0%,
    rgba(248, 245, 241, 0.68) 55%,
    rgba(248, 245, 241, 0.92) 100%);
}

/* Side wash — text on left, image on right */
.scene__overlay--side {
  background: linear-gradient(90deg,
    rgba(248, 245, 241, 0.96) 0%,
    rgba(248, 245, 241, 0.78) 35%,
    rgba(248, 245, 241, 0.18) 75%,
    rgba(248, 245, 241, 0.0) 100%);
}

/* Side wash mirror — text on right */
.scene__overlay--side-right {
  background: linear-gradient(270deg,
    rgba(248, 245, 241, 0.96) 0%,
    rgba(248, 245, 241, 0.78) 35%,
    rgba(248, 245, 241, 0.18) 75%,
    rgba(248, 245, 241, 0.0) 100%);
}

/* Centered vignette — for hero, gentle frame */
.scene__overlay--vignette {
  background: radial-gradient(ellipse at center,
    rgba(248, 245, 241, 0) 30%,
    rgba(248, 245, 241, 0.35) 100%);
}

/* Content layer */
.scene__content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.scene__content--center { align-items: center; text-align: center; }
.scene__content--right  { align-items: flex-end; text-align: right; margin-left: auto; }
.scene__content--left   { align-items: flex-start; }


/* ---------------- 5b. SPRINT 4 — Cinemagraph layer ----------------
   Video sjedi u istom .scene__media stage-u kao .scene__img. Kad svira,
   pokriva sliku. Kad fallback (reduced-motion / saveData / slow conn /
   error) — flipa na is-fallback i .scene__img ispod se vidi. */
.scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  background: var(--c-bg);
  will-change: opacity;
}
.scene__video.is-fallback { display: none; }


/* ---------------- 6. TYPOGRAPHY ---------------- */
.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--c-olive);
  margin: 0 0 1.75rem;
  opacity: 0;
}

/* Hero text inverts to cream/paper over the warm-tan damask + dark-wood
   atelier photo (movie-poster pattern). Olive on tan was muddy and
   ivory text-shadow alone can't lift dark text off a mid-tone bg.
   Display + lead get the same treatment so the block reads as one. */
.scene--hero .eyebrow {
  color: rgba(251, 247, 242, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 0, 0, 0.32);
}
.scene--hero .display {
  color: var(--c-paper);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.4);
}
.scene--hero .display .italic {
  color: var(--c-pink-soft);
}
.scene--hero .lead {
  color: rgba(251, 247, 242, 0.86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 1.5rem;
  color: var(--c-ink);
  text-shadow: 0 1px 26px rgba(248, 245, 241, 0.5);
}
.display .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--c-olive);
}
.display > span { display: block; }   /* line wrappers only; .char inside stays inline-block */

.lead {
  font-family: var(--f-sans);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  max-width: 40ch;
  color: var(--c-ink-soft);
  margin: 0 0 1.25rem;
  opacity: 0;
  /* Soft ivory halo so body type stays crisp on bright photo washes */
  text-shadow: 0 1px 14px rgba(248, 245, 241, 0.55);
}
.lead--small {
  font-size: 0.92rem;
  opacity: 0.75;
}

.quote {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 24ch;
  color: var(--c-ink);
  text-shadow: 0 1px 22px rgba(248, 245, 241, 0.55);
}
.quote .italic {
  font-style: italic;
  color: var(--c-olive);
}
.quote-source {
  margin-top: 1.5rem;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-mute);
}

/* ---------------- 6b. QUOTE MANIFEST (Scene 2 — 4 visions) ----------------
   Same 4 words ("Dynamic / Colors / Signature / Arrangements") rebuilt as
   a vertical manifest: each on its own line, alternating italic in olive,
   separated by a hairline rule. Char-stagger reveal still works through
   the existing data-anim="line" path. */
.quote--manifest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 2.2vw, 2rem);
  max-width: none;
  line-height: 1;
  letter-spacing: 0.015em;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}
.quote--manifest .vision {
  display: block;
  position: relative;
  padding-bottom: clamp(1.2rem, 1.8vw, 1.6rem);
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1;
}
/* Hairline rule beneath each vision (skipped on the last one) */
.quote--manifest .vision::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(28px, 3vw, 44px);
  height: 1px;
  background: var(--c-olive);
  opacity: 0.45;
  transform: translateX(-50%);
  transition: width 0.7s var(--ease-cinematic), opacity 0.7s var(--ease-cinematic);
}
.quote--manifest .vision:last-child::after {
  display: none;
}
/* Soft progressive widening of the rule so the eye descends — micro-detail */
.quote--manifest .vision:nth-child(1)::after { width: clamp(24px, 2.4vw, 32px); opacity: 0.40; }
.quote--manifest .vision:nth-child(2)::after { width: clamp(36px, 3.6vw, 52px); opacity: 0.50; }
.quote--manifest .vision:nth-child(3)::after { width: clamp(28px, 3vw, 40px); opacity: 0.45; }

.bullets {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--c-ink-soft);
  opacity: 0;
}
.bullets li {
  position: relative;
  padding-left: 1.75rem;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 14px;
  height: 1px;
  background: var(--c-olive);
}

.link-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-olive);
  border-bottom: 1px solid var(--c-olive);
  padding-bottom: 0.35rem;
  opacity: 0;
  transition: gap 0.3s, color 0.3s, border-color 0.3s;
}
.link-arrow:hover { color: var(--c-pink); border-color: var(--c-pink); }


/* ---------------- 7. GALLERY (Scene 4) — editorial spread ----------------
   Asymmetric stagger like a magazine spread. Numbered items, captions below
   the frame on a hairline olive rule. Slow Ken Burns + soft lift on hover.
   No 3D tilt — that read as cheap "billboard" affordance. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  margin-top: 2.75rem;
  width: 100%;
  max-width: 980px;
  opacity: 0;
  align-items: start;
}
.gallery__item {
  margin: 0;
  position: relative;
  display: block;
  background: transparent;
  /* note: GSAP animates translateY on .gallery__item for stagger reveal,
     so do NOT use transform here for offset — use padding-top instead. */
}
/* Editorial offset: middle column drops, right column rises slightly.
   Reads as a hand-laid magazine spread, not a generic 3-up grid. */
.gallery--editorial .gallery__item--a { padding-top: 0; }
.gallery--editorial .gallery__item--b { padding-top: clamp(2rem, 4vw, 3.25rem); }
.gallery--editorial .gallery__item--c { padding-top: clamp(0.75rem, 1.6vw, 1.25rem); }

.gallery__index {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--c-olive);
  margin-bottom: 0.85rem;
  opacity: 0.78;
}

.gallery__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--c-bg-soft);
  box-shadow: 0 1px 0 0 var(--c-line);
  transition: transform 0.9s var(--ease-cinematic),
              box-shadow 0.9s var(--ease-cinematic);
}
.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.6s var(--ease-cinematic),
              filter 0.9s ease;
}
.gallery__item:hover .gallery__frame {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -28px rgba(31, 29, 27, 0.22),
              0 1px 0 0 transparent;
}
.gallery__item:hover .gallery__frame img {
  transform: scale(1.07);
  filter: brightness(1.03) saturate(1.04);
}

.gallery__caption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.05rem;
  padding: 0;
  background: none;
  position: static;
}
.gallery__line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-olive);
  opacity: 0.6;
  transition: width 0.6s var(--ease-cinematic),
              opacity 0.6s var(--ease-cinematic);
  flex-shrink: 0;
}
.gallery__item:hover .gallery__line {
  width: 56px;
  opacity: 0.9;
}
.gallery__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--c-ink);
  letter-spacing: 0.005em;
  line-height: 1;
}


/* ---------------- 8. CONTACT (Scene 7) ---------------- */
.contact {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 540px;
  opacity: 0;
}
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
}
.contact__label {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-olive);
  flex-shrink: 0;
}
.contact__value {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-ink);
  text-align: right;
  transition: color 0.3s;
}
a.contact__value:hover { color: var(--c-pink); }

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}
.btn {
  font-family: var(--f-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.05rem 2.6rem;
  border-radius: 999px;
  transition: all 0.35s var(--ease-cinematic);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn--primary {
  background: var(--c-ink);
  color: var(--c-paper);
  border: 1px solid var(--c-ink);
}
.btn--primary:hover {
  background: var(--c-olive);
  border-color: var(--c-olive);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-ink);
}
.btn--ghost:hover {
  background: var(--c-ink);
  color: var(--c-paper);
}

.footer-line {
  margin-top: 2.5rem;
  font-family: var(--f-sans);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-mute);
}


/* ---------------- 9. MONOGRAM ----------------
   The brand "ŕ" mark — three variants per brand book.
   Used in loading sequence and as fixed corner mark. */
.monogram {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: 0;
}
.monogram--lg { font-size: clamp(5rem, 12vw, 9rem); }


/* ---------------- 10. RESPONSIVE ---------------- */
@media (max-width: 768px) {
  :root {
    --pad-x: 1.25rem;
  }

  /* Mobile scroll fix — sprijeci browser bounce/overscroll i horizontalni jitter */
  html, body {
    overscroll-behavior-y: none;
    overflow-x: hidden;
  }

  /* iOS dynamic viewport — uses available height (excluding browser chrome
     when collapsed) so 100vh scenes don't get cropped under URL bar. */
  .scene { min-height: 100svh; }

  /* No tap highlight flash on links/buttons */
  a, button { -webkit-tap-highlight-color: transparent; }

  .display { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .quote   { font-size: clamp(1.7rem, 8vw, 2.6rem); }

  /* Force every scene's text content to center on mobile.
     Side-aligned layouts (Scene 3 left, Scene 5 right) push text into the
     edge under a horizontal overlay that doesn't cover the whole screen on
     portrait — unreadable. Centered + soft wash works everywhere. */
  .scene__content,
  .scene__content--left,
  .scene__content--right {
    align-items: center !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  .lead { max-width: 36ch; margin-left: auto; margin-right: auto; }

  /* Bullets center-align: hide the left dash, drop the indent */
  .bullets li { padding-left: 0; }
  .bullets li::before { display: none; }

  .usp-pills { justify-content: center; }

  /* Override side / vignette overlays with the soft vertical ivory wash —
     horizontal gradients don't carry the text on a portrait screen. */
  .scene__overlay--side,
  .scene__overlay--side-right,
  .scene__overlay--vignette {
    background: linear-gradient(180deg,
      rgba(248, 245, 241, 0.20) 0%,
      rgba(248, 245, 241, 0.72) 55%,
      rgba(248, 245, 241, 0.94) 100%) !important;
  }

  .gallery { grid-template-columns: 1fr; max-width: 360px; gap: 2rem; }
  .gallery__frame { aspect-ratio: 4 / 3; }
  /* drop the editorial stagger on mobile — column reads better flush */
  .gallery--editorial .gallery__item--a,
  .gallery--editorial .gallery__item--b,
  .gallery--editorial .gallery__item--c { padding-top: 0; }
  .gallery__index { font-size: 0.58rem; margin-bottom: 0.7rem; }
  .gallery__title { font-size: 1.05rem; }

  /* Gallery scene grows past 100svh on mobile (3 stacked items don't fit
     in one viewport). Base .scene rule clips with overflow:hidden, so the
     third item disappears under the next scene. Let this one scene expand. */
  .scene--events {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: 4rem;
  }
  .scene--events .scene__content {
    height: auto;
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: clamp(5rem, 14vw, 7rem);
  }
  /* Bg image would stretch across the full tall scene — drop it; soft ivory
     wash handles the backdrop and gallery item N°02 already shows the image. */
  .scene--events .scene__media { display: none; }

  .usp-pills { gap: 0.4rem 0.45rem; }
  .usp-pills li { font-size: 0.62rem; padding: 0.38rem 0.75rem; letter-spacing: 0.1em; }

  /* Contact rows: keep label/value pair centered on mobile */
  .contact__row {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    text-align: center;
  }
  .contact__value { text-align: center; }

  .scroll-hint { font-size: 0.58rem; }
  .scroll-hint__line { height: 32px; }

  /* ---------- 10b. SPRINT 4 — Snap-scroll stories ---------- */
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
  }
  .scene {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .scene--events {
    scroll-snap-stop: always;
    scroll-snap-align: start;
  }

  /* ---------- 10c. SPRINT 4 — Ken Burns mobile ---------- */
  @keyframes kenBurnsA {
    from { transform: scale(1.00) translate(0, 0); }
    to   { transform: scale(1.08) translate(8px, -10px); }
  }
  @keyframes kenBurnsB {
    from { transform: scale(1.00) translate(0, 0); }
    to   { transform: scale(1.07) translate(-10px, 8px); }
  }
  .scene--story  .scene__img,
  .scene--events .scene__img,
  .scene--orders .scene__img,
  .scene--atelier .scene__img,
  .scene--cta    .scene__img {
    animation: kenBurnsA 11s ease-in-out infinite alternate;
    animation-play-state: running;
  }
  .scene--orders .scene__img,
  .scene--atelier .scene__img {
    animation-name: kenBurnsB;
  }
  .scene--hero    .scene__img,
  .scene--weddings .scene__img {
    animation: none;
  }
  .scene[data-offscreen="true"] .scene__img {
    animation-play-state: paused;
  }
}

@media (hover: none) and (pointer: coarse) {
  html {
    scroll-snap-type: y mandatory;
  }
  .scene {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (max-width: 480px) {
  .topbar { padding: 1.1rem 1.25rem; }
  .topbar__brand { font-size: 1.2rem; }
  .topbar__brand small { font-size: 0.55rem; letter-spacing: 0.28em; }
  .topbar__cta { font-size: 0.66rem; padding: 0.55rem 1.1rem; }
}


/* ---------------- 11. SPLIT TEXT (chars / words) ----------------
   GSAP scrub timelines animiraju .char i .word spanove unutar
   [data-anim="title"], [data-anim="lead"], [data-anim="line"].
   .char--italic / .word--italic dobijaju drama-pause delay u JS.
*/
.char, .word {
  display: inline-block;
  will-change: transform, opacity;
  /* prevent inherited line-height collapsing inline-block descenders */
  line-height: inherit;
}
/* Italic chars/words — slight optical adjustment so the family swap
   ne stvara visual jitter tokom reveal-a */
.char--italic, .word--italic { letter-spacing: 0.005em; }


/* ---------------- 11b. CUSTOM CURSOR (Sprint 3 / Task 5) ----------------
   .cursor-dot — instant tracker (5px disc).
   .cursor-circle — lerp follower (32px outline), gets variant classes
   on hover targets. Visible only when body.has-custom-cursor (set by JS
   after pointer-fine detect). */

@media (pointer: fine) {
  body.has-custom-cursor { cursor: none; }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor [data-cursor] { cursor: none; }
}

.cursor-dot,
.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 0.25s ease, width 0.3s ease, height 0.3s ease,
              border-color 0.3s ease, background-color 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: rgba(60, 50, 45, 0.95);
  mix-blend-mode: multiply;
}

.cursor-circle {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(60, 50, 45, 0.55);
  background: transparent;
}

/* Variant: link (default for <a>, <button>) — slight grow */
.cursor-circle--link {
  width: 48px;
  height: 48px;
  border-color: rgba(60, 50, 45, 0.85);
}

/* Variant: view (gallery images) — bigger filled */
.cursor-circle--view {
  width: 72px;
  height: 72px;
  background: rgba(140, 90, 80, 0.18);
  border-color: rgba(140, 90, 80, 0.55);
}

/* Variant: cta — solid filled, accent */
.cursor-circle--cta {
  width: 56px;
  height: 56px;
  background: rgba(140, 90, 80, 0.92);
  border-color: rgba(140, 90, 80, 0.95);
}

/* Variant: infinity (reserved for scene 3 hero / signature) */
.cursor-circle--infinity {
  width: 64px;
  height: 64px;
  border-color: rgba(140, 90, 80, 0.7);
  border-width: 1.5px;
}


/* ---------------- 11c. MICRO-INTERACTIONS (Sprint 3) ----------------
   Light hover affordances — never aggressive, premium tier. */

.btn {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.35s ease,
              background-color 0.35s ease,
              color 0.35s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(60, 50, 45, 0.12);
}

.link-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.link-arrow:hover { transform: translateX(4px); }

/* gallery hover handled in section 7 (editorial spread) */


/* ---------------- 11e. USP PILLS (Olga 4 USP — scena 6 atelier) ----------------
   Inline horizontalne tačke sa diskretnim border-om. Reuse data-anim="bullets"
   pa scroll-engine ih automatski stagger-uje. */
.usp-pills {
  list-style: none;
  margin: 1.4rem 0 0.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.usp-pills li {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(60, 50, 45, 0.22);
  border-radius: 999px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(60, 50, 45, 0.78);
  background: rgba(248, 245, 241, 0.55);
  backdrop-filter: blur(2px);
}


/* ---------------- 11d. 3D PARALLAX (Sprint 3 / Task 9) ----------------
   Disabled on gallery (read as cheap billboard tilt). Generic hint kept
   for any other element that opts in via [data-parallax-3d]. */
[data-parallax-3d] {
  transform-style: preserve-3d;
  will-change: transform;
}


/* ---------------- 12. REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  .scene__img { transform: none !important; filter: none !important; animation: none !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .char, .word { transform: none !important; opacity: 1 !important; }
  .scene__video { display: none !important; }
}


/* ---------------- 13. SPRINT 4 — Top segment bar (mobile) ---------------- */
.progress-segments {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: 3px;
  padding: 0 6px;
  gap: 4px;
  pointer-events: none;
  transition: opacity 600ms var(--ease-cinematic);
}
.progress-segments.is-faded { opacity: 0; }
.progress-segments__seg {
  flex: 1 1 auto;
  height: 0.5px;
  margin-top: 1.25px;
  background: var(--c-olive);
  opacity: 0.30;
  border-radius: 2px;
  transition: opacity 350ms var(--ease-cinematic);
}
.progress-segments__seg.is-active {
  opacity: 1;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .progress-segments {
    display: flex;
  }
}
