/* A season, played (assets/season.js). Without script the chapter is an ordinary section:
   heading, the five stages and the closing note. With script it is one full-width film with
   the heading laid over the sky and the stages as chapters underneath, ending on the Infert
   symbol.
   With reduced motion the grown field is shown still. */
.season { --season-p: 0; --season-top: 74px; --veil-x: 62%; --veil-y: 50%; position: relative; background: #fff; padding-block: clamp(4rem, 8vw, 7rem) 0; }
.season-copy h2 { font-size: clamp(2.4rem, 4.3vw, 4.6rem); line-height: 1.04; max-width: 12ch; }
.season-scene { display: none; }

/* The five stages, without script: a list on a rail. */
.season-steps { position: relative; list-style: none; margin: clamp(1.8rem, 3.5vh, 2.8rem) 0 0; padding: 0; display: grid; gap: clamp(.7rem, 1.9vh, 1.2rem); }
.season-steps::before,
.season-steps::after { content: ""; position: absolute; inset-inline-start: .43rem; top: .6rem; bottom: .6rem; width: 2px; background: #dce6d6; }
.season-steps::after { background: #8ac148; bottom: auto; height: calc((100% - 1.2rem) * var(--season-p)); }
.season-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; padding-inline-start: 1.9rem; }
.season-steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #c9d8c1; z-index: 1; transition: background-color .3s ease, box-shadow .3s ease, transform .4s var(--brand-ease, ease); }
.season-num { font: 500 .78rem/1.9 "Jost", sans-serif; letter-spacing: .08em; color: #7d8c82; font-variant-numeric: tabular-nums; }
.season-name { font: 600 clamp(1.15rem, 1.6vw, 1.45rem)/1.3 "Outfit", "Jost", sans-serif; letter-spacing: -.01em; color: #0e2216; }
.season-steps p { grid-column: 2; margin: .1rem 0 0; color: #58665d; font-size: .98rem; line-height: 1.45; max-width: 34ch; }
.season-outro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); display: grid; gap: 1.4rem; justify-items: start; }
.season-outro p { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; max-width: 40ch; color: #0e2216; }

/* The film: full width, as tall as the window allows. */
.season-live,
.season-still { padding-top: 0; }
.season-live .season-stage,
.season-still .season-stage { position: relative; height: min(calc(100vh - var(--season-top) - 6.5rem), 880px); height: min(calc(100svh - var(--season-top) - 6.5rem), 880px); min-height: 34rem; overflow: hidden; isolation: isolate; background: #e2eed6; }
.season-live .season-scene,
.season-still .season-scene { display: block; position: absolute; inset: 0; }
.season-scene svg { display: block; width: 100%; height: 100%; }
.season-live .season-copy,
.season-still .season-copy { position: absolute; inset-inline: 0; top: clamp(1.6rem, 6vh, 4rem); z-index: 3; pointer-events: none; }

/* The close: a veil of light over the field, and the symbol drawing itself where the plant stood. */
.season-veil { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; background: radial-gradient(ellipse 62% 72% at var(--veil-x) var(--veil-y), rgb(251 253 247 / .97), rgb(248 252 242 / .92) 50%, rgb(238 246 228 / .9)); }
.season-end { position: absolute; z-index: 2; inset-block: 0; inset-inline: 24% 0; display: grid; place-content: center; justify-items: center; gap: clamp(.9rem, 2.4vh, 1.5rem); padding-bottom: 3rem; visibility: hidden; pointer-events: none; }
.season-symbol { display: block; height: clamp(8rem, 30vh, 15rem); width: auto; aspect-ratio: 70 / 80; overflow: visible; }
.season-word { display: block; width: clamp(9rem, 15vw, 12.5rem); height: auto; opacity: 0; }
[dir="rtl"] .season { --veil-x: 38%; }

/* The controls, under the film: play, pause or replay, and the five stages as chapters. */
.season-still .season-bar { display: none; }
.season-live .season-bar { display: flex; align-items: flex-end; gap: clamp(.8rem, 2vw, 1.4rem); padding-block: 1.1rem 0; }
.season-play { flex: none; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border: 1.5px solid #c9d8c1; border-radius: 50%; background: #fff; color: #0c3a20; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.season-play svg { width: 1.15rem; height: 1.15rem; }
.season-play:hover { background: #f1f7ea; border-color: #8ac148; }
.season-play:focus-visible,
.season-jump:focus-visible { outline: 2px solid #8ac148; outline-offset: 3px; }
.season-live .season-steps { flex: 1; min-width: 0; margin: 0; padding-top: 2.2rem; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 .2rem; }
.season-live .season-steps::before,
.season-live .season-steps::after { top: calc(2.2rem + .44rem); bottom: auto; inset-inline: 10%; width: auto; height: 2px; }
.season-live .season-steps::after { inset-inline-end: auto; width: calc(80% * var(--season-p)); }
.season-live .season-steps li { position: static; display: grid; grid-template-columns: 1fr; justify-items: center; gap: .3rem; padding: 0; }
.season-live .season-steps li::before { position: relative; inset: auto; top: 0; }
.season-live .season-steps li.is-past::before { background: #8ac148; box-shadow: none; }
.season-live .season-steps li[aria-current]::before { background: #8ac148; box-shadow: 0 0 0 5px rgb(138 193 72 / .22); transform: scale(1.15); }
.season-jump { appearance: none; margin: 0; padding: .15rem .45rem; border: 0; border-radius: .4rem; background: none; color: #7d8c82; cursor: pointer; transition: color .3s ease; }
.season-jump:hover,
.season-live li[aria-current] .season-jump { color: #0c3a20; }
.season-live .season-num { display: none; }
.season-live .season-name { font-size: clamp(.88rem, 1.1vw, 1rem); color: inherit; text-align: center; }
/* The current stage's line sits above the chapters. */
.season-live .season-steps p { position: absolute; inset-inline: 0; top: 0; margin: 0; max-width: none; text-align: center; color: #58665d; font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.4; opacity: 0; transition: opacity .35s ease; }
.season-live .season-steps li[aria-current] p { opacity: 1; }

/* Phones and narrow tablets: the heading over the sky, the plant below it. */
@media (max-width: 860px) {
  .season { --veil-x: 50%; --veil-y: 58%; }
  [dir="rtl"] .season { --veil-x: 50%; }
  .season-copy h2 br { display: none; }
  .season-copy h2 { max-width: 16ch; font-size: clamp(2rem, 8vw, 2.8rem); }
  .season-live .season-stage,
  .season-still .season-stage { height: min(calc(100vh - var(--season-top) - 7.5rem), 150vw); height: min(calc(100svh - var(--season-top) - 7.5rem), 150vw); min-height: 30rem; }
  .season-end { inset-block-start: 16%; inset-inline: 0; padding-bottom: 1rem; }
  .season-symbol { height: clamp(7rem, 24vh, 11rem); }
  .season-word { width: clamp(8rem, 36vw, 10rem); }
  .season-live .season-bar { gap: .6rem; }
  .season-play { inline-size: 2.5rem; block-size: 2.5rem; }
  .season-jump { padding-inline: .2rem; }
  .season-live .season-name { font-size: .82rem; }
  .season-live .season-steps p { font-size: .92rem; }
}

[lang="ar"] .season-num { letter-spacing: normal; }
[lang="ar"] .season-name { letter-spacing: normal; }

@media (prefers-reduced-motion: reduce) {
  .season-steps li,
  .season-steps li::before,
  .season-steps p { transition: none; }
}
