/* ─────────────────────────────────────────────────────────────────────────
   Barmeiers — Wow Edition · v1-wow
   Layered on top of styles.css + styles-flow.css.
   Adds: Goldene Stunde sundowner widget + Hayns-Park stairs scroll-trip intro
   ───────────────────────────────────────────────────────────────────────── */

/* ── Sundowner pill ────────────────────────────────────────────────── */
.sundowner-pill {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18), 3px 3px 0 rgba(212,165,80,0.55);
  font-family: var(--mono), ui-monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 600ms ease;
  opacity: 0;
  transform: translateY(8px);
}
.sundowner-pill.ready { opacity: 1; transform: translateY(0); }
.sundowner-pill:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,0.22), 3px 3px 0 rgba(212,165,80,0.7); }

.sundowner-arc {
  flex: 0 0 auto;
  width: 56px; height: 32px;
  display: block;
}
.sundowner-arc .arc-line { fill: none; stroke: rgba(245,240,230,0.35); stroke-width: 1.5; stroke-dasharray: 3 3; }
.sundowner-arc .arc-horizon { stroke: rgba(245,240,230,0.55); stroke-width: 1; }
.sundowner-arc .arc-sun { fill: var(--tan); filter: drop-shadow(0 0 6px rgba(243,208,62,0.55)); }
.sundowner-arc .arc-sun.below { fill: rgba(245,240,230,0.4); filter: none; }

.sundowner-text { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.sundowner-label { color: var(--tan); font-weight: 600; font-size: 9px; letter-spacing: 0.18em; }
.sundowner-value { color: var(--cream); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* Phase modifiers — tweak the look as the day moves */
.sundowner-pill.phase-golden { background: linear-gradient(90deg, #1a4a30 0%, #2c5a3e 100%); }
.sundowner-pill.phase-sunset { background: linear-gradient(90deg, #2a1f15 0%, #143a26 100%); }
.sundowner-pill.phase-night  { background: #0a2419; }
.sundowner-pill.phase-night .sundowner-label { color: rgba(245,240,230,0.55); }

@media (max-width: 540px) {
  .sundowner-pill {
    bottom: 78px; /* sit above the sticky mobile CTA */
    right: 12px;
    padding: 8px 14px 8px 10px;
    font-size: 10px;
  }
  .sundowner-arc { width: 44px; height: 26px; }
  .sundowner-value { font-size: 11px; }
}

/* On the dark video hero the saison-stamp at bottom-LEFT and sundowner at bottom-RIGHT make a nice pair. */
.saison-stamp + .sundowner-pill { /* no-op selector, just to document the relationship */ }

/* ── Hayns-Park stairs scroll-trip ─────────────────────────────────── */
.stairs-trip {
  position: relative;
  height: 240vh; /* gives ~1.4 viewports of pinning */
  background: var(--ink);
  color: var(--cream);
}
.stairs-trip .stairs-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.stairs-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 600ms ease, transform 4000ms cubic-bezier(0.2,0.7,0.2,1);
  z-index: 0;
}
.stairs-photo.visible {
  opacity: 0.78;
  transform: scale(1.0);
}
.stairs-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,58,38,0.30) 0%, rgba(14,58,38,0.10) 40%, rgba(14,58,38,0.70) 100%),
    radial-gradient(ellipse 1000px 600px at 50% 70%, transparent 0%, rgba(14,58,38,0.55) 70%);
  pointer-events: none;
}
.stairs-grain {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.stairs-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: opacity 600ms ease, transform 800ms cubic-bezier(0.2,0.7,0.2,1);
  opacity: 0;
  transform: translateY(20px);
}
.stairs-text.visible {
  opacity: 1;
  transform: translateY(0);
}
.stairs-text .eyebrow {
  color: rgba(245,240,230,0.7);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.stairs-text .eyebrow::before {
  content: ''; width: 28px; height: 1px; background: currentColor;
}
.stairs-text h2.h-display {
  color: var(--cream);
  max-width: 18ch;
  font-size: clamp(56px, 9vw, 132px);
  text-wrap: balance;
}
.stairs-text h2 em { color: var(--tan); }
.stairs-text .stairs-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  color: rgba(245,240,230,0.85);
  margin-top: 22px;
  max-width: 38ch;
  line-height: 1.4;
}

.stairs-progress {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  z-index: 4;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(245,240,230,0.55);
  text-transform: uppercase;
}
.stairs-progress .bar {
  width: 120px; height: 1px;
  background: rgba(245,240,230,0.18);
  position: relative; overflow: hidden;
}
.stairs-progress .bar::after {
  content: '';
  position: absolute; left: 0; top: 0; height: 100%;
  width: var(--p, 0%);
  background: var(--tan);
  transition: width 80ms linear;
}

@media (max-width: 540px) {
  .stairs-trip { height: 200vh; }
  .stairs-text .stairs-sub { max-width: 28ch; }
}
