/* Podium · « plan-séquence » stage layer
   Loaded after styles.css. One fixed image stage behind the page; sections roll over it
   as translucent paper. Motion: scene crossfade with a slow push-in, masked line rises,
   curtain reveals on photographs. */

:root {
  --veil: .9;
  --veil-edge: 140px;
  --rise: cubic-bezier(.19, 1, .22, 1);
  --curtain: cubic-bezier(.77, 0, .18, 1);
}

html { background: var(--ivory); }
body { background: transparent; }

/* Stage */
.stage {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  background: var(--sand);
}
.scene {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.scene.is-active { opacity: 1; }
.scene img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 10s cubic-bezier(.2, .6, .2, 1);
}
.scene.is-active img { transform: scale(1); }
.scene[data-scene="duo"] img { object-position: 72% 12%; }
.scene[data-scene="campaign"] img { object-position: 70% 35%; }

/* Header floats over the opening scene */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
}

/* Chapter index, desktop only */
/* A square paper tab: legible over stone, fabric and the dark visit section alike. */
.chapter {
  position: fixed; z-index: 4; right: 20px; top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 16px 9px;
  transform: translateY(-50%);
  background: rgba(246, 243, 236, .86);
  border: 1px solid var(--line);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.chapter-track { position: relative; width: 1px; height: 120px; background: currentColor; opacity: .25; }
.chapter-fill {
  position: absolute; left: -1px; top: 0; width: 3px; height: 100%;
  background: currentColor; transform-origin: top; transform: scaleY(var(--progress, 0));
  transition: transform .9s var(--rise);
}
.chapter-label { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.chapter.is-hidden { opacity: 0; }

/* The floating header crosses the photograph: keep only what reads on it. */
.header-location { display: none; }

/* Hero: the stage is the picture */
.hero {
  max-width: none;
  height: 100svh; min-height: 640px; max-height: none;
  background: transparent;
  overflow: visible;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(246,243,236,.55) 0%, rgba(246,243,236,.25) 38%, rgba(246,243,236,0) 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}
.hero-content { padding-top: 100px; }

/* Paper veils with soft edges, so sections roll into each other */
.veil { position: relative; isolation: isolate; background: transparent; border-top: 0; }
/* Veiled sections run full width; their content keeps the original measure through padding. */
.intro.veil, .boutique.veil { max-width: none; }
.intro.veil { padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); }
.boutique.veil { padding-inline: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter))); }
.veil::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(180deg,
    rgba(246,243,236,0) 0,
    rgba(246,243,236,var(--veil)) var(--veil-edge),
    rgba(246,243,236,var(--veil)) calc(100% - var(--veil-edge)),
    rgba(246,243,236,0) 100%);
}
.intro { --veil: .84; }
.boutique { --veil: .78; }

/* Campaign sits directly on the stage */
.campaign { background: transparent; max-width: none; overflow: visible; }
.campaign-content { margin-left: max(0px, calc((100vw - var(--shell)) / 2)); }

/* Visit: ink veil over the opening scene */
.visit {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(21,21,19,0) 0, rgba(21,21,19,.88) 110px, rgba(21,21,19,.92) 100%);
}

/* Footer is solid paper: the roll ends here */
.site-footer {
  position: relative;
  background: var(--ivory);
  box-shadow: 0 0 0 100vmax var(--ivory);
  clip-path: inset(0 -100vmax -100vmax);
}

/* Motion: masked line rise */
/* The mask clips only the bottom edge: accents above and italic overhangs at the sides stay visible,
   and the box adds no horizontal width. */
.line {
  display: block;
  padding-bottom: .14em; margin-bottom: -.14em;
  clip-path: inset(-.6em -.6em 0 -.6em);
}
.line > span { display: block; }
.js .line > span { transform: translateY(110%); transition: transform 1.2s var(--rise); }
.js .is-in .line > span { transform: none; }
.js .line:nth-child(2) > span { transition-delay: .12s; }
.js .line:nth-child(3) > span { transition-delay: .24s; }
.js h1[data-reveal], .js h2[data-reveal] { opacity: 1; transform: none; }

.js .hero-content > .hero-title { opacity: 1; transform: none; animation: none; }
.js .hero-title .line > span { animation: rise 1.3s var(--rise) .25s both; transition: none; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }

/* Motion: softer copy settle */
.js p[data-reveal], .js div[data-reveal], .js a[data-reveal] {
  transform: translateY(12px);
  transition: opacity 1.1s var(--ease) .15s, transform 1.1s var(--rise) .15s;
}

/* Motion: the facade photograph opens like a curtain.
   The observed container stays unclipped (a fully clipped target never reports as visible);
   the curtain runs on the figure inside it. */
.js .boutique-collage[data-reveal] { opacity: 1; transform: none; }
.js .boutique-collage[data-reveal] figure { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--curtain); }
.js .boutique-collage[data-reveal].is-in figure { clip-path: inset(0 0 0 0); }

/* ≤1100 */
@media (max-width: 1100px) {
  .chapter { display: none; }
}

/* ≤760: portrait scenes, copy over the stage */
@media (max-width: 760px) {
  :root { --veil-edge: 80px; }
  .hero { height: 100svh; min-height: 640px; max-height: none; background: transparent; }
  .hero::before { display: none; }
  .hero-content { padding-top: 0; }
  .scene[data-scene="duo"] img,
  .scene[data-scene="campaign"] img { object-position: 50% 0%; }

  .campaign {
    display: flex; align-items: flex-end;
    min-height: 100svh;
    background: transparent;
  }
  .campaign::before {
    display: block;
    background: linear-gradient(180deg, rgba(21,21,19,0) 34%, rgba(21,21,19,.55) 56%, rgba(21,21,19,.86) 78%, rgba(21,21,19,.92) 100%);
  }
  .campaign-content { margin: 0; padding: 0 var(--gutter) 64px; color: var(--paper); }
  .campaign-content .eyebrow { color: rgba(252, 250, 246, .8); }
  .campaign-content .button-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .campaign-note { color: rgba(252, 250, 246, .78); }
}

/* Reduced motion: still image, no rises or curtains */
@media (prefers-reduced-motion: reduce) {
  .scene img, .scene.is-active img { transform: none; }
  .js .line > span, .js .hero-title .line > span { transform: none; animation: none; }
  .js .boutique-collage[data-reveal] { clip-path: none; }
}
