/* Homepage hero. One pot, five seasons. The pot stays; the scene changes on scroll. */
.seasonal-personality {
  --season-height: 100svh;
  --scene-ink: #45233d;
  --scene-track: #45233d40;
  position: relative;
  color: var(--scene-ink);
  background: var(--porcelain);
}
.seasonal-personality[data-season-theme='dark'] { --scene-ink: #fffdf9; --scene-track: #fffdf966; }
.seasonal-personality.is-scroll-story { height: calc(var(--season-height) * var(--season-steps)); }
.seasonal-stage {
  position: relative;
  height: var(--season-height);
  min-height: 560px;
  isolation: isolate;
  overflow: hidden;
  background: #e7dacb;
}
.is-scroll-story .seasonal-stage { position: sticky; top: 0; }

/* A light wash keeps the copy readable on the day scenes; the night scenes get a dark one. */
.seasonal-stage::before, .seasonal-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 550ms ease;
}
.seasonal-stage::after {
  background: linear-gradient(180deg, #fffdf9e6, #fffdf9a0 26%, transparent 44%, transparent 76%, #fffdf9cc 100%);
}
.seasonal-stage::before {
  background: linear-gradient(180deg, #080b16bf, #080b1666 28%, transparent 46%, transparent 76%, #080b16b3 100%);
  opacity: 0;
}
[data-season-theme='dark'] .seasonal-stage::before { opacity: 1; }
[data-season-theme='dark'] .seasonal-stage::after { opacity: 0; }

.seasonal-scene { position: absolute; inset: 0; }
.seasonal-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 550ms ease;
}
.seasonal-photo.is-active { opacity: 1; }

.seasonal-heading {
  position: absolute;
  z-index: 5;
  top: clamp(20px, 4svh, 44px);
  left: var(--gutter);
  right: var(--gutter);
  text-align: center;
}
.seasonal-heading h1 { margin: 0; font-size: clamp(36px, 4.8vw, 66px); line-height: 1.02; }
.seasonal-heading p { margin: 12px auto 0; max-width: 34ch; font-size: clamp(15px, 1.4vw, 18px); }
.seasonal-heading .hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
}
.seasonal-heading .text-link { color: inherit; border-color: currentColor; }
[data-season-theme='dark'] .seasonal-heading .button { background: #fffdf9; color: #45233d; }

.seasonal-footer {
  position: absolute;
  z-index: 5;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  justify-items: center;
  gap: 4px;
}
/* The caption and dots sit just under the pot; the arrow stays at the bottom edge. */
.seasonal-caption, .seasonal-choices { transform: translateY(-4svh); }
.seasonal-caption { order: 1; }
.seasonal-choices { order: 2; }
.seasonal-scroll-cue {
  order: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 10px;
  color: inherit;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: seasonal-bounce 1.6s ease-in-out infinite;
}
.seasonal-scroll-cue:hover { color: inherit; }
@keyframes seasonal-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .seasonal-scroll-cue { animation: none; } }
.seasonal-heading, .seasonal-footer { transition: color 550ms ease; }
.seasonal-caption { margin: 0; font-size: 14px; text-align: center; }
.seasonal-caption a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* Season controls: five thin bars. The active one fills as you scroll. */
/* Season controls: one dot per season. The current season's dot stretches into a pill that fills as you scroll. */
.seasonal-choices { display: flex; justify-content: center; align-items: center; gap: 8px; }
.seasonal-choices button {
  display: grid;
  place-items: center;
  height: 28px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.seasonal-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--scene-track);
  overflow: hidden;
  transition: width 260ms ease, background 200ms ease;
}
.seasonal-dot::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--scene-ink);
  transform: scaleX(0);
  transform-origin: left;
}
.seasonal-choices button.is-complete .seasonal-dot { background: var(--scene-ink); }
.seasonal-choices button[aria-pressed='true'] .seasonal-dot { width: 44px; }
.seasonal-choices button[aria-pressed='true'] .seasonal-dot::after { transform: scaleX(var(--season-progress, 1)); }
.seasonal-personality :focus-visible { outline-color: var(--scene-ink); }

@media (max-width: 760px) {
  .seasonal-heading { top: clamp(16px, 3svh, 32px); }
  .seasonal-heading h1 { font-size: clamp(34px, 9vw, 50px); }
  .seasonal-heading p { margin-top: 10px; font-size: 15px; }
  .seasonal-heading .hero-actions { flex-direction: column; gap: 12px; margin-top: 16px; }
  .seasonal-caption { font-size: 13px; }
  .seasonal-caption, .seasonal-choices { transform: translateY(-6svh); }
  .seasonal-photo { object-position: center 46%; }
}
@media (max-height: 700px) {
  .seasonal-heading { top: 20px; }
  .seasonal-heading h1 { font-size: clamp(30px, 4.5vw, 44px); }
  .seasonal-heading p { margin-top: 8px; }
  .seasonal-heading .hero-actions { margin-top: 14px; }
  .seasonal-footer { bottom: 14px; }
}
@media (max-height: 559px), (prefers-reduced-motion: reduce) {
  .seasonal-personality.is-scroll-story { height: auto; }
  .is-scroll-story .seasonal-stage { position: relative; }
  .seasonal-photo, .seasonal-heading, .seasonal-footer,
  .seasonal-stage::before, .seasonal-stage::after { transition: none; }
}
