/* ---------- rose hero ---------- */

.rose-hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #0f1b15;
  margin-left: var(--rail-w);
  color: #F3EEE4;
}
/* soft extension of the photo's own edges fills whatever the frame does not cover
   (painted by js/rose-hero/extend.js from the photo's outer pixel rows and columns) */
.rose-ext { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
/* the photo itself, uniformly fitted, never stretched or cropped */
.rose-photo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.rose-canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .3s linear;
  touch-action: pan-y;
}
.rose-canvas.is-ready { opacity: 1; }

/* the image layer starts on the far-out-of-focus garden plate (no rose, 150 KB) straight from the
   markup, so the first paint is the soft garden and never the finished photo; the photo itself
   replaces it in the still fallback, without scripts, and once the rose is whole again */
.rose-photo { opacity: 1; }
.rose-static .rose-canvas { display: none; }
.rose-hero.rose-done .rose-canvas { opacity: 0; transition: opacity .6s ease; }

/* typography over the finished photo (no tint on the image: text and hairlines only) */
.rose-over {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  color: #F6DEDE;
}
.rose-over p, .rose-over h1 { margin: 0; }
.rose-over .ro-in {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.rose-hero.rose-text .ro-in, .rose-hero.rose-static .ro-in { opacity: 1; transform: none; }
.rose-over .ro-tag .ro-in { transition-delay: .25s; }
.rose-over .ro-kicker .ro-in { transition-delay: .5s; }
.rose-over .ro-left .ro-in { transition-delay: .65s; }
.rose-over .ro-right .ro-in { transition-delay: .8s; }
.rose-static.rose-plain .rose-over { display: none; }
html.shot .rose-over .ro-in, html.shot .rose-anim .rose-photo, html.shot .rose-done .rose-canvas { transition: none !important; }

.ro-centre {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-40%);
  text-align: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.ro-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: uppercase;
  letter-spacing: var(--display-track);
  line-height: .92;
  font-size: clamp(2.6rem, 8.2vw, 8rem);
  color: #F6DEDE;
  text-shadow: 0 2px 34px rgba(0, 0, 0, .42), 0 1px 3px rgba(0, 0, 0, .28);
}
.ro-name .ro-line { display: block; }
.ro-tag {
  margin-top: .9em !important;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  letter-spacing: .02em;
  color: #F3E6E3;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .45);
}
.ro-kicker {
  position: absolute; left: clamp(1.25rem, 5vw, 4.5rem); top: 31%;
  font-family: var(--font-label);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #EDE4D8;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.ro-kicker .ro-in { display: flex; align-items: center; gap: .8rem; }
.ro-rule { display: inline-block; width: 2.6rem; height: 1px; background: currentColor; opacity: .75; }
.ro-left, .ro-right {
  position: absolute; bottom: 6.2rem;
  font-family: var(--font-body);
  font-size: clamp(.86rem, 1.1vw, 1rem);
  line-height: 1.5;
  color: #EDE4D8;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}
.ro-left { left: clamp(1.25rem, 5vw, 4.5rem); max-width: 22ch; }
.ro-right { right: clamp(1.25rem, 5vw, 4.5rem); max-width: 30ch; text-align: right; }
@media (max-width: 720px) {
  .ro-left, .ro-right { display: none; }
  .ro-kicker { top: auto; bottom: 5.4rem; }
  .ro-centre { transform: translateY(-46%); }
}

@media (prefers-reduced-motion: reduce) {
  .rose-canvas { transition: none; }
}
@media (max-width: 1100px) {
  .rose-hero { margin-left: 0; }
}
