/* ==========================================================================
   Home — Label (24:09, H3: the fifth). The daydream: the brightest, quietest
   room. Paper, turning to mist at the wind-chime band; one night inside the
   day at 小满; the three pillars stand in the thirds of the string.
   Tokens and anatomy live in css/home.css (loaded after this file).
   ========================================================================== */

/* The season's colours (seasons.js → label.js) are registered, so where they
   step rather than scrub they can cross-fade. Initial values: 立春. */
@property --s-ground { syntax: "<color>"; inherits: true; initial-value: #e5ede4; }
@property --s-surface { syntax: "<color>"; inherits: true; initial-value: #f2f5ee; }
@property --s-ink { syntax: "<color>"; inherits: true; initial-value: #173a32; }
@property --s-ink2 { syntax: "<color>"; inherits: true; initial-value: #3d5c53; }
@property --s-accent { syntax: "<color>"; inherits: true; initial-value: #33705f; }
@property --s-line { syntax: "<color>"; inherits: true; initial-value: #3d5c53; }
@property --s-glowA { syntax: "<color>"; inherits: true; initial-value: #d3e6c5; }
@property --s-glowB { syntax: "<color>"; inherits: true; initial-value: #f6dade; }
@property --frost { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --haze { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --sunset { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --dark { syntax: "<number>"; inherits: true; initial-value: 0; }

html[data-page="home"] .label {
  --vapour: #7dc7db;
  --dream: #2f5f9e;
  --wash: rgba(226, 191, 77, 0.45);
}

/* The mist runs to the section's end (it is the ground above the Imprint's edge). */
html[data-page="home"] .label.section {
  padding-bottom: 0;
}

/* --- Feature: logotype, statement, body, meta --------------------------------- */
/* The title stands on the same axis as the statement and the copy (column 5). */
@media (min-width: 901px) {
  html[data-page="home"] .label .section-head__title {
    grid-column: 5 / -1;
  }
}

html[data-page="home"] .label .label__feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
  align-items: start;
  padding-bottom: clamp(40px, 5vw, 88px);
}

html[data-page="home"] .label .label__logo {
  --lw: min(28vw, 100%);
  grid-column: 1 / span 4;
  position: relative;
  display: grid;
  gap: clamp(18px, 2vw, 30px);
  justify-items: start;
  width: var(--lw);
  margin: 0;
  padding-top: clamp(6px, 0.8vw, 14px);
  color: var(--fg);
}

html[data-page="home"] .label .label__mark {
  --mark-h: clamp(20px, 2.1vw, 36px);
  --mark-color: var(--vermilion);
}

/* The <img> keeps its alt and stays in place, invisible; the ink logotype is a
   mask layer cropped to the two lines of the wordmark (x 316–1688, y 807–1194). */
html[data-page="home"] .label .label__logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1372 / 387;
  object-fit: cover;
  opacity: 0;
}

html[data-page="home"] .label .label__logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1372 / 387;
  background: currentColor;
  -webkit-mask: url("/assets/rev3rie-logotype-light.webp") no-repeat;
  mask: url("/assets/rev3rie-logotype-light.webp") no-repeat;
  -webkit-mask-size: calc(100% * 2000 / 1372) auto;
  mask-size: calc(100% * 2000 / 1372) auto;
  /* Percent positions are relative to (box − image); with the image 2000/1372
     of the box wide, x = 316/628 and y = 807/1613 of that remainder. */
  -webkit-mask-position: 50.318% 50.031%;
  mask-position: 50.318% 50.031%;
  pointer-events: none;
}

html[data-page="home"] .label .label__copy {
  grid-column: 5 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.2vw, 34px);
  min-width: 0;
}

html[data-page="home"] .label .label__tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

html[data-page="home"] .label .label__tag::before {
  content: "";
  width: clamp(28px, 4vw, 64px);
  height: 1px;
  background: currentColor;
}

/* The statement: written in vapour, condensed into ink. */
html[data-page="home"] .label .label__statement {
  position: relative;
  margin: 0;
  max-width: 100%;
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4.6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--fg);
  text-wrap: balance;
  font-synthesis: none;
}

/* CJK: set as a two-line poem at every width — 把「白日梦」转化为 / 可持续的现实作品,
   白日夢を、/ 続いていく作品へ (the word groups never break inside). */
html[data-page="home"]:is([lang="zh-Hans"], [lang="ja-JP"]) .label .label__statement {
  max-inline-size: 9.2em;
}

html[data-page="home"][lang="en"] .label .label__statement {
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

html[data-page="home"] .label .label__vapour {
  display: block;
}

html[data-page="home"][data-i18n-ready="false"] .label .label__vapour {
  opacity: 0;
}

/* Until label.js has written the view (no JS, or it failed), the leaf itself
   is the statement. With JS on it waits a moment before showing, so a normal
   load never flashes ink before the vapour. */
html[data-page="home"] .label .label__statement:not(.is-ready) > .visually-hidden {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  animation: label-leaf-late 1ms linear 1.6s both;
}

html[data-page="home"]:not(.js) .label .label__statement:not(.is-ready) > .visually-hidden {
  animation: none;
}

html[data-page="home"] .label .label__statement:not(.is-ready) > .label__vapour {
  display: none;
}

@keyframes label-leaf-late {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Each grapheme is its own box; label.js trims punctuation and kana to their
   ink (inline margins, measured on the full-width forms), so neither 'palt'
   nor the browser's own trimming may act as well. */
html[data-page="home"] .label .label__vapour {
  font-feature-settings: normal;
  text-spacing-trim: space-all;
}

html[data-page="home"] .label .label__vapour .w,
html[data-page="home"] .label .label__vapour .dream {
  display: inline-block;
  white-space: nowrap;
}

html[data-page="home"] .label .label__vapour .u {
  display: inline-block;
  color: var(--vapour);
  opacity: 0.22;
  transform: translate3d(var(--dx, 0), 0.25em, 0);
  transition:
    color 900ms var(--ease-settle),
    opacity 900ms var(--ease-settle),
    transform 900ms var(--ease-settle),
    filter 900ms var(--ease-settle);
  transition-delay: var(--d, 0ms);
}

html[data-page="home"][data-tier="high"] .label .label__vapour .u {
  filter: blur(14px);
}

html[data-page="home"] .label .is-condensed .label__vapour .u {
  color: var(--fg);
  opacity: 1;
  transform: none;
  filter: none;
}

/* The daydream condenses last and stays azure, washed with gold. */
html[data-page="home"] .label .label__vapour .dream {
  background: linear-gradient(transparent var(--wash-from, 60%), var(--wash) var(--wash-from, 60%), var(--wash) var(--wash-to, 87%), transparent var(--wash-to, 87%)) no-repeat 0 0 / 0% 100%;
  transition: background-size 1100ms var(--ease-settle) var(--wash-delay, 1000ms);
}

html[data-page="home"][lang="en"] .label .label__vapour .dream {
  --wash-from: 58%;
  --wash-to: 92%;
  font-style: italic;
  padding-inline: 0.04em 0.08em;
}

html[data-page="home"] .label .is-condensed .label__vapour .dream {
  background-size: 100% 100%;
}

html[data-page="home"] .label .is-condensed .label__vapour .dream .u {
  color: var(--dream);
}

html[data-page="home"] .label .label__body {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.96rem + 0.3vw, 1.25rem);
  line-height: 1.85;
  color: var(--fg-2);
  text-wrap: pretty;
}

html[data-page="home"][lang="en"] .label .label__body {
  max-width: 62ch;
  line-height: 1.6;
}

html[data-page="home"] .label .label__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(4px, 0.6vw, 10px) 0 0;
  padding: 0;
  list-style: none;
}

html[data-page="home"] .label .label__meta li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 18px 7px 14px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
}

html[data-page="home"] .label .label__meta li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermilion);
}

/* --- The lower half: mist ------------------------------------------------------
   Its ground is painted under the node lines (z −2 in the section's stacking
   context), so the thirds keep running through it; the paper above breathes
   into mist over a soft gradient. */
html[data-page="home"] .label .label__mist {
  position: relative;
  padding-bottom: var(--section);
  color: var(--fg);
}

html[data-page="home"] .label .label__mist::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #d6e9e7;
  pointer-events: none;
}

/* --- Wind chimes: the year in four seasons (四时) --------------------------------------
   The band's colours are the season's (label.js writes --s-* from seasons.js as
   the term under the centre changes); everything inside reads them through the
   usual tokens, so the night at 小满 and the season mix in one place. */
html[data-page="home"] .label .chimes {
  --band-h: clamp(440px, 64svh, 660px);
  --rail-y: 48px;
  --chime: min(clamp(200px, 22vw, 340px), calc(var(--band-h) - 270px));
  --term: clamp(2.75rem, 6vw, 6.5rem);
  --gap: calc(var(--term) * 1.1 + clamp(24px, 3vw, 56px));
  --slip-w: clamp(54px, 4.6vw, 76px);
  --slip-gap: clamp(30px, 3.4vw, 60px);
  --seasons-w: min(372px, 38vw);
  --night: 0;
  /* Text crosses to bone in the middle third of the dusk, never through grey. */
  --night-text: clamp(0, (var(--night) - 0.35) / 0.3, 1);
  --chime-ground: color-mix(in oklab, #141842 calc(var(--night) * 100%), var(--s-ground));
  --fg: color-mix(in oklab, #f7f1f3 calc(var(--night-text) * 100%), var(--s-ink));
  --fg-2: color-mix(in oklab, #ccbac8 calc(var(--night-text) * 100%), var(--s-ink2));
  --fg-3: color-mix(in oklab, #ccbac8 calc(var(--night-text) * 100%), var(--s-ink2));
  --line: color-mix(in oklab, var(--fg) 16%, transparent);
  /* The seal: the season's accent by day, firefly gold at night. */
  --seal: color-mix(in oklab, #e9c452 calc(var(--night-text) * 100%), var(--s-accent));
  --slip-bg: color-mix(in oklab, #1c2152 calc(var(--night) * 100%), var(--s-surface));
  position: relative;
  /* --runway is written by label.js once the chimes are measured; until then
     an estimate for the full year holds the space (see the wide block below). */
  height: calc(100svh + var(--runway, var(--runway-est, 0px)));
  --breath: clamp(96px, 26svh, 280px);
  /* The paper's breath into the season (above) and the season's into the
     pillars' mist (below) go out with the night, so the night is one clean
     field and never a grey smear at its edges. */
  --breath-a: calc(1 - var(--night));
  background-color: var(--chime-ground);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / 3 - 1px),
      rgb(from var(--fg) r g b / 0.06) calc(100% / 3 - 1px),
      rgb(from var(--fg) r g b / 0.06) calc(100% / 3)
    ),
    linear-gradient(180deg, rgb(238 244 241 / var(--breath-a)), rgb(238 244 241 / 0) var(--breath)),
    linear-gradient(0deg, rgb(214 233 231 / var(--breath-a)), rgb(214 233 231 / 0) var(--breath));
  color: var(--fg);
  /* While the band scrubs, label.js writes the colours step by step and
     nothing eases (no transition is declared, so no transition is checked on
     every write); where it steps per half term or per season (low tier,
     reduced motion) the registered colours cross-fade. */
  --s-fade: 900ms;
}

html[data-page="home"][data-tier="low"] .label .chimes {
  transition-property: --s-ground, --s-surface, --s-ink, --s-ink2, --s-accent, --s-line, --s-glowA, --s-glowB, --frost, --haze, --sunset, --dark;
  transition-duration: var(--s-fade);
  transition-timing-function: var(--ease-in-out);
}

@supports not (color: rgb(from red r g b)) {
  html[data-page="home"] .label .chimes {
    background-image:
      linear-gradient(180deg, rgb(238 244 241 / var(--breath-a)), rgb(238 244 241 / 0) var(--breath)),
      linear-gradient(0deg, rgb(214 233 231 / var(--breath-a)), rgb(214 233 231 / 0) var(--breath));
  }
}

/* label.js's scrub for the year (covers at pitch P = chime + gap, slips and
   seals between): the travel at 3× the scroll, plus what the night at 小满
   adds so that it lasts 72svh of scroll. Sixteen covers, eight slips. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html[data-page="home"].js .label .chimes {
    --runway-est: max(
      60svh,
      calc(
        (16 * (var(--chime) + var(--gap)) + 8 * (var(--slip-w) + var(--slip-gap)) + 4 * (68px + 1.5 * var(--slip-gap)) - 64vw) / 3 +
          max(0px, 76.8svh - 0.53 * (var(--chime) + var(--gap)))
      )
    );
  }
}

html[data-page="home"] .label .chimes__stage {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
  /* The rail hangs a little below the middle third, so the covers fill the
     frame rather than leaving air under the captions. */
  padding-top: 8svh;
  overflow-x: clip;
}

/* The season's light: two broad pools of the season's colour that drift and
   breathe (composited: only their transform and opacity move), gone at night. */
html[data-page="home"] .label .chimes__glow {
  position: absolute;
  inset: -10%;
  z-index: 0;
  opacity: calc((1 - var(--night)) * (1 - 0.25 * var(--dark)));
  pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent 2%, #000 20%, #000 82%, transparent 98%);
  mask: linear-gradient(180deg, transparent 2%, #000 20%, #000 82%, transparent 98%);
}

html[data-page="home"] .label .chimes__glow::before,
html[data-page="home"] .label .chimes__glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

html[data-page="home"] .label .chimes__glow::before {
  left: -8%;
  top: 0;
  width: 78%;
  height: 92%;
  background: radial-gradient(closest-side, var(--s-glowA), rgb(from var(--s-glowA) r g b / 0.55) 45%, transparent);
  animation: label-glow-a 8.5s ease-in-out infinite alternate;
}

html[data-page="home"] .label .chimes__glow::after {
  right: -10%;
  bottom: -6%;
  width: 72%;
  height: 96%;
  background: radial-gradient(closest-side, var(--s-glowB), rgb(from var(--s-glowB) r g b / 0.55) 45%, transparent);
  animation: label-glow-b 11s ease-in-out infinite alternate;
}

@supports not (color: rgb(from red r g b)) {
  html[data-page="home"] .label .chimes__glow::before {
    background: radial-gradient(closest-side, var(--s-glowA), transparent);
  }
  html[data-page="home"] .label .chimes__glow::after {
    background: radial-gradient(closest-side, var(--s-glowB), transparent);
  }
}

@keyframes label-glow-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate3d(16%, 9%, 0) scale(1.24);
    opacity: 1;
  }
}

@keyframes label-glow-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.12);
    opacity: 1;
  }
  to {
    transform: translate3d(-14%, -11%, 0) scale(0.9);
    opacity: 0.66;
  }
}

/* 清明: a green haze — long banks of mist drifting through the band. */
html[data-page="home"] .label .chimes__haze {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: calc(var(--haze) * (1 - var(--night)));
  pointer-events: none;
}

html[data-page="home"] .label .chimes__haze::before,
html[data-page="home"] .label .chimes__haze::after {
  content: "";
  position: absolute;
  left: -40%;
  width: 180%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(240 248 244 / 0.92), rgb(226 240 234 / 0.5) 45%, transparent 72%);
  will-change: transform;
}

html[data-page="home"] .label .chimes__haze::before {
  top: 10%;
  height: 42%;
  animation: label-haze 19s ease-in-out infinite alternate;
}

html[data-page="home"] .label .chimes__haze::after {
  top: 46%;
  height: 56%;
  animation: label-haze 26s ease-in-out -9s infinite alternate-reverse;
}

@keyframes label-haze {
  from {
    transform: translate3d(-14%, 0, 0) scaleY(0.9);
  }
  to {
    transform: translate3d(14%, -5%, 0) scaleY(1.15);
  }
}

/* 霜降: low, warm sunlight slanting in from the upper right. */
html[data-page="home"] .label .chimes__rays {
  position: absolute;
  inset: -25% -15%;
  z-index: 0;
  background: repeating-linear-gradient(
    114deg,
    transparent 0%,
    rgb(255 222 150 / 0.72) 3.2%,
    rgb(255 196 112 / 0.26) 5.6%,
    transparent 8.5%,
    transparent 12%
  );
  -webkit-mask: radial-gradient(95% 90% at 90% 4%, #000 10%, transparent 80%);
  mask: radial-gradient(95% 90% at 90% 4%, #000 10%, transparent 80%);
  opacity: calc(var(--sunset) * (1 - var(--night)));
  pointer-events: none;
  will-change: transform;
  animation: label-rays 12s ease-in-out infinite alternate;
}

@keyframes label-rays {
  from {
    transform: translate3d(-2.5%, 0, 0) rotate(-1.2deg);
  }
  to {
    transform: translate3d(2.5%, 1%, 0) rotate(1.2deg);
  }
}

/* 寒霭: from 霜降 a cold haze gathers along the foot of the band. */
html[data-page="home"] .label .chimes__stage::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 46%;
  background:
    radial-gradient(70% 70% at 30% 86%, rgb(250 252 254 / 0.75), transparent 70%),
    radial-gradient(60% 60% at 78% 88%, rgb(244 248 252 / 0.6), transparent 72%);
  /* On the snow night only a breath of it: pale text hangs above the foot. */
  opacity: calc(var(--frost) * (1 - var(--night)) * (1 - 0.75 * var(--dark)));
  pointer-events: none;
  /* Gone again at the very foot, so the band still breathes into the mist below. */
  -webkit-mask: linear-gradient(0deg, transparent, #000 34%);
  mask: linear-gradient(0deg, transparent, #000 34%);
}

html[data-page="home"][data-tier="low"] .label .chimes__glow::before,
html[data-page="home"][data-tier="low"] .label .chimes__glow::after,
html[data-page="home"][data-tier="low"] .label .chimes__haze::before,
html[data-page="home"][data-tier="low"] .label .chimes__haze::after,
html[data-page="home"][data-tier="low"] .label .chimes__rays {
  animation: none;
}

/* The phenology: far behind the chimes, near in front; both fade at the
   stage's top and foot, so nothing is cut off at an edge. */
html[data-page="home"] .label :is(.chimes__sky, .chimes__near) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
}

html[data-page="home"] .label .chimes__sky {
  z-index: 0;
}

html[data-page="home"] .label .chimes__near {
  z-index: 2;
}

/* No stacking context of its own: the chimes hang between the far and near
   air, while the caption and the seasons stay above both. */
html[data-page="home"] .label .chimes__band {
  position: relative;
  width: 100%;
  height: var(--band-h);
}

html[data-page="home"] .label .chimes__rail {
  position: absolute;
  left: 0;
  top: calc(var(--rail-y) - 12px);
  width: 100%;
  height: 24px;
  overflow: visible;
  pointer-events: none;
}

html[data-page="home"] .label .chimes__rail path {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.42;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

html[data-page="home"] .label .chimes__track {
  position: absolute;
  left: 0;
  top: var(--rail-y);
  display: flex;
  align-items: flex-start;
  width: max-content;
  padding-right: var(--gap);
}

html[data-page="home"] .label .chimes.is-live .chimes__track {
  will-change: transform;
}

/* The band's caption, above the rail: the imprint and its span of dates. It
   hangs from its bottom edge, 14px over the rail, so a caption that wraps
   (English on a phone) grows upwards and never sits on the string. */
html[data-page="home"] .label .chimes__label {
  position: absolute;
  left: var(--gutter);
  right: calc(var(--gutter) + var(--seasons-w) + 24px);
  bottom: calc(100% - var(--rail-y) + 14px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  margin: 0;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

html[data-page="home"] .label .chimes__label b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--fg);
}

html[data-page="home"] .label .chimes__label b::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermilion);
}

/* --- The four seasons: a seal for each over a ruler of the twenty-four terms -------------- */
html[data-page="home"] .label .seasons {
  position: absolute;
  right: var(--gutter);
  bottom: calc(100% - var(--rail-y) + 10px);
  z-index: 4;
  width: var(--seasons-w);
  color: var(--fg);
}

html[data-page="home"] .label .seasons__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-page="home"] .label .season {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 4px 6px 6px 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--fg-3);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html[data-page="home"] .label .season__glyph {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-2);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fg) 26%, transparent);
  transition:
    background-color 700ms var(--ease-in-out),
    color 700ms var(--ease-in-out),
    box-shadow 320ms var(--ease-in-out);
}

html[data-page="home"] .label .season__en {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 700ms var(--ease-in-out);
}

/* The season in view is stamped: a filled seal (白文印), the ground's colour cut through it. */
html[data-page="home"] .label .season[aria-current="true"] .season__glyph {
  background: var(--seal);
  color: var(--chime-ground);
  box-shadow:
    inset 0 0 0 2px var(--seal),
    inset 0 0 0 3px color-mix(in oklab, var(--chime-ground) 55%, transparent);
}

html[data-page="home"] .label .season[aria-current="true"] .season__en {
  color: var(--fg);
}

@media (hover: hover) {
  html[data-page="home"] .label .season:hover .season__glyph {
    box-shadow: inset 0 0 0 1px var(--fg);
  }
  html[data-page="home"] .label .season[aria-current="true"]:hover .season__glyph {
    box-shadow:
      inset 0 0 0 2px var(--seal),
      inset 0 0 0 3px var(--chime-ground);
  }
}

html[data-page="home"] .label .season:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

html[data-page="home"] .label .seasons__ruler {
  position: relative;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: start;
  height: 12px;
  border-top: 1px solid color-mix(in oklab, var(--fg) 30%, transparent);
  color: var(--fg);
}

html[data-page="home"] .label .seasons__ruler i {
  justify-self: center;
  width: 1px;
  height: 4px;
  background: currentColor;
  opacity: 0.32;
}

/* Each season opens on a longer tick; today's term is the vermilion one. */
html[data-page="home"] .label .seasons__ruler i:nth-child(6n + 1) {
  height: 8px;
  opacity: 0.6;
}

html[data-page="home"] .label .seasons__ruler i.is-now {
  width: 2px;
  height: 9px;
  background: var(--vermilion);
  opacity: 1;
}

html[data-page="home"] .label .seasons__needle {
  position: absolute;
  left: -3.5px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 0 2px var(--chime-ground);
  will-change: transform;
}

/* --- What hangs: covers, slips and the chapter seals ---------------------------------------- */
html[data-page="home"] .label .chime {
  position: relative;
  flex: none;
  width: var(--chime);
  margin: 0 var(--gap) 0 0;
  transform-origin: 50% 0;
  --term-color: color-mix(in oklab, var(--ramp) calc(100% - var(--night) * 22%), #f7f1f3);
}

html[data-page="home"] .label .chime--night {
  --term-color: color-mix(in oklab, var(--ramp) calc(100% - var(--night) * 100%), #e9c452);
}

/* 小满's term turns to firefly gold the long way round the hue wheel, through
   dusk violet and rose, rather than through olive. */
@supports (color: color-mix(in oklch longer hue, red, blue)) {
  html[data-page="home"] .label .chime--night {
    --term-color: color-mix(in oklch longer hue, var(--ramp) calc(100% - var(--night) * 100%), #e9c452);
  }
}

/* The hook on the rail and the thread down to the cover. */
html[data-page="home"] .label .chime__string {
  position: relative;
  display: block;
  width: 1px;
  height: calc(var(--hang, 64px) * var(--hang-k, 1));
  margin-inline: auto;
  background: currentColor;
  opacity: 0.4;
}

html[data-page="home"] .label .chime__string::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--chime-ground);
}

/* 今: the term in force today, a small seal beside its hook. */
html[data-page="home"] .label .chime__now {
  position: absolute;
  z-index: 2;
  left: calc(50% + 9px);
  top: 9px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: var(--signal-ink);
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--chime-ground);
}

html[data-page="home"] .label .chime.is-now .chime__string {
  opacity: 0.7;
}

html[data-page="home"] .label .chime__body {
  position: relative;
  display: block;
}

/* While the band is in view each chime, its term and its paper are their own
   layers, so swinging, staging and parallax never repaint the row. */
html[data-page="home"] .label .chimes.is-air :is(.chime, .chime__term, .slip, .chime__halo) {
  will-change: transform, opacity;
}

/* Centre stage: behind the cover in the middle a soft light of its own colour
   opens and breathes (label.js sets its opacity from how centred it is). */
html[data-page="home"] .label .chime__halo {
  position: absolute;
  z-index: 0;
  left: -34%;
  top: -30%;
  width: 168%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, color-mix(in oklab, var(--ramp) 70%, #fff) 0%, color-mix(in oklab, var(--ramp) 55%, transparent) 38%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

html[data-page="home"] .label .chime.is-focus .chime__halo {
  animation: label-halo 3.8s ease-in-out infinite alternate;
}

@keyframes label-halo {
  from {
    scale: 0.9;
  }
  to {
    scale: 1.08;
  }
}

/* The centred cover lifts off the ground: a deeper shadow under it. */
html[data-page="home"] .label .chime.is-focus .chime__cover {
  box-shadow:
    0 1px 1px rgb(16 24 58 / 0.1),
    0 34px 60px -26px rgb(16 24 58 / 0.6);
}

html[data-page="home"] .label .chime__cover {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: color-mix(in oklab, var(--ramp) 45%, var(--s-ground));
  box-shadow:
    0 1px 1px rgb(16 24 58 / 0.08),
    0 22px 44px -24px rgb(16 24 58 / 0.45);
}

html[data-page="home"] .label .chime__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease-settle);
}

html[data-page="home"] .label .chime__cover img.is-loaded {
  opacity: 1;
}

/* Rime: from 霜降 a breath of frost gathers at the covers' and slips' edges.
   Gradients, not blurred shadows (those cost a repaint on every swing), and
   only while there is frost at all (label.js sets .is-frost). */
html[data-page="home"] .label .chimes.is-frost .chime__cover::before,
html[data-page="home"] .label .chimes.is-frost .slip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(65% 62% at 50% 42%, transparent 56%, rgb(242 247 251 / 0.5));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.34);
  opacity: var(--frost);
  pointer-events: none;
}

/* On a cover the rime stays at the very edge: the artwork keeps its face. */
html[data-page="home"] .label .chimes.is-frost .chime__cover::before {
  background: radial-gradient(65% 62% at 50% 42%, transparent 66%, rgb(242 247 251 / 0.34));
}

/* Night falls on the other covers; 小满 keeps its own light. */
html[data-page="home"] .label .chime:not(.chime--night) .chime__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #141842;
  opacity: calc(var(--night) * 0.42);
  pointer-events: none;
}

html[data-page="home"] .label .chime--night .chime__body::before {
  content: "";
  position: absolute;
  left: -22%;
  top: -22%;
  width: 144%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(233 196 82 / 0.3), rgb(233 196 82 / 0.08) 55%, transparent);
  opacity: var(--night);
  pointer-events: none;
}

/* The solar term, set vertically behind the cover and offset to the right. */
html[data-page="home"] .label .chime__term {
  position: absolute;
  z-index: 0;
  top: 7%;
  left: calc(100% + 0.1em);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: var(--term);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--term-color);
  white-space: nowrap;
  user-select: none;
  transition: translate 700ms var(--ease-settle);
}

html[data-page="home"] .label .chime.is-struck .chime__term {
  translate: 0 -24px;
}

html[data-page="home"] .label .chime__cap {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--fg);
  line-height: 1.3;
}

html[data-page="home"] .label .chime__cap b {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

html[data-page="home"] .label .chime__cap span {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

html[data-page="home"] .label .chime__cap em {
  margin-left: auto;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

html[data-page="home"] .label .chime__flies {
  display: none;
}

/* A term with no release yet: an empty paper slip (短册) bearing its name and
   its first pentad, with this cycle's date below. Lighter than a cover, so the
   rail keeps its air. */
html[data-page="home"] .label .chime--slip {
  width: var(--slip-w);
  margin-right: var(--slip-gap);
}

html[data-page="home"] .label .slip {
  position: relative;
  transform-origin: 50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(var(--chime) * 0.76);
  padding: 22px 0 14px;
  border-radius: 2px;
  background: var(--slip-bg);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--fg) 13%, transparent),
    0 18px 30px -24px rgb(16 24 58 / 0.4);
  color: var(--fg);
}

/* The hole where the thread is tied. */
html[data-page="home"] .label .slip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fg) 42%, transparent);
}

html[data-page="home"] .label :is(.slip__term, .slip__pentad) {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  user-select: none;
}

html[data-page="home"] .label .slip__term {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
}

html[data-page="home"] .label .slip__pentad {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  color: var(--fg-2);
}

html[data-page="home"] .label .chime--slip .chime__cap {
  justify-content: center;
  margin-top: 12px;
}

html[data-page="home"] .label .chime--slip .chime__cap span {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* A chapter opens: the season's seal, its name and its six terms' span. */
html[data-page="home"] .label .chime--mark {
  width: auto;
  margin-right: var(--slip-gap);
  margin-left: calc(var(--slip-gap) * 0.5);
}

html[data-page="home"] .label .chime--mark:first-child {
  margin-left: 0;
}

html[data-page="home"] .label .chapter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

html[data-page="home"] .label .chapter__seal {
  display: grid;
  place-items: center;
  width: clamp(52px, 4.4vw, 68px);
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--seal);
  color: var(--chime-ground);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  box-shadow:
    inset 0 0 0 3px var(--seal),
    inset 0 0 0 4px color-mix(in oklab, var(--chime-ground) 60%, transparent),
    0 16px 30px -20px rgb(16 24 58 / 0.5);
  user-select: none;
}

html[data-page="home"] .label .chapter__en {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

html[data-page="home"] .label .chapter__range {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--fg-2);
  white-space: nowrap;
}

html[data-page="home"] .label .chapter__range i {
  display: inline-block;
  inline-size: 1.4em;
  block-size: 1px;
  margin-block: 0;
  margin-inline: 0.35em;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.5;
}

/* --- Pillars: standing in the thirds ------------------------------------------------ */
html[data-page="home"] .label .pillars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: clamp(80px, 9vw, 150px) 0 0;
  list-style: none;
}

/* After the pinned band the stage's own air is the lead-in; the pillars follow
   close behind instead of after a second empty field of mist. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html[data-page="home"] .label .pillars {
    padding-top: clamp(16px, 2vw, 40px);
  }
}

html[data-page="home"] .label .pillar {
  --pad: clamp(18px, 2.6vw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 36px) var(--pad) 0;
}

html[data-page="home"] .label .pillar:first-child {
  padding-left: var(--gutter);
}

html[data-page="home"] .label .pillar:last-child {
  padding-right: var(--gutter);
}

html[data-page="home"] .label .pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fg);
  opacity: 0.55;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1200ms var(--ease-tape) var(--reveal-delay, 0ms);
}

html[data-page="home"] .label .pillar.is-in::before,
html[data-page="home"]:not(.js) .label .pillar::before {
  transform: none;
}

html[data-page="home"] .label .pillar__num {
  display: block;
  margin: 0 0 clamp(14px, 2vw, 30px) -0.04em;
  font-family: var(--f-latin);
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--fg);
  font-synthesis: none;
  user-select: none;
}

@supports not (-webkit-text-stroke: 1px black) {
  html[data-page="home"] .label .pillar__num {
    color: var(--fg);
    opacity: 0.18;
  }
}

html[data-page="home"] .label .pillar__tag {
  margin: 0;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

html[data-page="home"] .label .pillar__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.375rem, 2vw, 2rem);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

html[data-page="home"][lang="en"] .label .pillar__title {
  font-weight: 760;
  font-variation-settings: "wdth" 108;
  font-stretch: 108%;
  letter-spacing: -0.012em;
  line-height: 1.08;
}

html[data-page="home"] .label .pillar__body {
  margin: 0;
  max-width: 26em;
  line-height: 1.85;
  color: var(--fg-2);
  text-wrap: pretty;
}

html[data-page="home"][lang="en"] .label .pillar__body {
  max-width: 34ch;
  line-height: 1.6;
}

/* --- Narrow: the logotype above, a native snap row, stacked pillars ------------------ */
@media (max-width: 900px) {
  html[data-page="home"] .label .label__logo {
    --lw: 40vw;
    grid-column: 1 / -1;
    padding-top: 0;
  }

  html[data-page="home"] .label .label__copy {
    grid-column: 1 / -1;
  }

  html[data-page="home"] .label .label__feature {
    padding-bottom: clamp(88px, 18vw, 140px);
  }

  html[data-page="home"] .label .chimes {
    --chime: min(64vw, 340px, calc(78svh - 130px));
    --term: clamp(2.5rem, 11vw, 4.25rem);
    --gap: calc(var(--term) * 1.08 + 18px);
    --slip-w: clamp(52px, 14vw, 66px);
    --slip-gap: 26px;
    --rail-y: 64px;
    --hang-k: 0.55;
    --breath: 72px;
    height: auto;
    background-image:
      repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent calc(100% / 3 - 1px),
        rgb(from var(--fg) r g b / 0.06) calc(100% / 3 - 1px),
        rgb(from var(--fg) r g b / 0.06) calc(100% / 3)
      ),
      linear-gradient(180deg, rgb(238 244 241 / var(--breath-a)), rgb(238 244 241 / 0) var(--breath)),
      linear-gradient(0deg, rgb(214 233 231 / var(--breath-a)), rgb(214 233 231 / 0) 40px);
  }

  /* Without relative colours the thirds go, but the breaths stay. */
  @supports not (color: rgb(from red r g b)) {
    html[data-page="home"] .label .chimes {
      background-image:
        linear-gradient(180deg, rgb(238 244 241 / var(--breath-a)), rgb(238 244 241 / 0) var(--breath)),
        linear-gradient(0deg, rgb(214 233 231 / var(--breath-a)), rgb(214 233 231 / 0) 40px);
    }
  }

  /* Clipped (not a scroll container): the light, haze and sun rays stay
     inside the band instead of spilling over the copy above it. */
  html[data-page="home"] .label .chimes__stage {
    position: relative;
    display: block;
    height: auto;
    overflow: clip;
    padding-block: clamp(24px, 6vw, 48px) 0;
  }

  /* The row first, then the four seasons under it, within reach of a thumb. */
  html[data-page="home"] .label .chimes__band {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  html[data-page="home"] .label .chimes__label {
    right: var(--gutter);
  }

  html[data-page="home"] .label .seasons {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    width: auto;
    max-width: 440px;
    margin: 0 var(--gutter) clamp(20px, 6vw, 36px);
  }

  html[data-page="home"] .label .season {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0 8px;
  }

  html[data-page="home"] .label .chimes__rail {
    top: calc(var(--rail-y) - 12px);
  }

  html[data-page="home"] .label .chimes__track {
    position: relative;
    top: 0;
    width: auto;
    max-width: 100%;
    padding: var(--rail-y) max(var(--gutter), calc(50% - var(--chime) / 2)) 36px var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    transform: none !important;
    will-change: auto;
  }

  html[data-page="home"] .label .chimes__track::-webkit-scrollbar {
    display: none;
  }

  html[data-page="home"] .label .chime {
    scroll-snap-align: center;
  }

  html[data-page="home"] .label .pillars {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(24px, 6vw, 56px);
  }

  html[data-page="home"] .label .pillar,
  html[data-page="home"] .label .pillar:first-child,
  html[data-page="home"] .label .pillar:last-child {
    padding: clamp(24px, 6vw, 36px) var(--gutter) clamp(36px, 9vw, 56px);
  }

  html[data-page="home"] .label .pillar::before {
    left: var(--gutter);
    right: var(--gutter);
  }

  html[data-page="home"] .label .pillar__num {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }
}

/* --- Reduced motion: a still grid of cards, each on its own ramp -------------------- */
@media (prefers-reduced-motion: reduce) {
  html[data-page="home"] .label .label__vapour .u {
    color: var(--fg);
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  html[data-page="home"] .label .label__vapour .dream {
    background-size: 100% 100%;
    transition: none;
  }

  html[data-page="home"] .label .label__vapour .dream .u {
    color: var(--dream);
  }

  /* The season's colours still change with the chapter in view: a slow
     cross-fade of colour, nothing that travels. */
  html[data-page="home"] .label .chimes {
    --night: 0;
    --s-fade: 800ms;
    height: auto;
    transition-property: --s-ground, --s-surface, --s-ink, --s-ink2, --s-accent, --s-line, --s-glowA, --s-glowB, --frost, --haze, --sunset, --dark;
    transition-duration: var(--s-fade) !important;
    transition-timing-function: var(--ease-in-out);
  }

  /* Clipped (not a scroll container): the sticky layers below never hang
     past the band's foot into the pillars. */
  html[data-page="home"] .label .chimes__stage {
    position: relative;
    display: block;
    height: auto;
    overflow: clip;
    padding-block: clamp(48px, 6vw, 96px) clamp(8px, 2vw, 24px);
  }

  /* The phenology holds still, one viewport tall, while the grid passes over
     it (it takes no room of its own); the light spans the band and fades out
     at its head and foot into the paper and the mist. */
  html[data-page="home"] .label .chimes__sky {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: 100svh;
    margin-bottom: -100svh;
  }

  html[data-page="home"] .label .chimes__glow {
    inset: 0;
    animation: none;
    -webkit-mask: linear-gradient(180deg, transparent, #000 240px, #000 calc(100% - 240px), transparent);
    mask: linear-gradient(180deg, transparent, #000 240px, #000 calc(100% - 240px), transparent);
  }

  html[data-page="home"] .label .chimes__band {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  html[data-page="home"] .label :is(.chimes__near, .chimes__rail, .chime__string, .chime__halo) {
    display: none;
  }

  html[data-page="home"] .label :is(.chimes__haze, .chimes__rays) {
    inset: 0;
    animation: none;
  }

  /* The caption sits in flow above the grid, on the grid's own measure. */
  html[data-page="home"] .label .chimes__label {
    position: static;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto clamp(16px, 2vw, 28px);
    padding-inline: var(--gutter);
  }

  /* The seasons stay at hand above the grid while it scrolls. */
  html[data-page="home"] .label .seasons {
    position: sticky;
    top: calc(var(--bar-h, 64px) + 8px);
    right: auto;
    bottom: auto;
    z-index: 3;
    align-self: center;
    width: min(440px, calc(100% - 2 * var(--gutter)));
    margin-bottom: clamp(16px, 2vw, 28px);
    padding: 8px 14px 4px;
    border-radius: 10px;
    background: color-mix(in oklab, var(--s-surface) 92%, transparent);
    box-shadow:
      inset 0 0 0 1px var(--line),
      0 16px 32px -24px rgb(16 24 58 / 0.45);
  }

  html[data-page="home"] .label .seasons__needle {
    display: none;
  }

  html[data-page="home"] .label .chimes__track {
    position: static;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--col-gap);
    width: auto;
    max-width: var(--max);
    margin-inline: auto;
    padding: 0 var(--gutter);
    overflow: visible;
    transform: none !important;
    will-change: auto;
  }

  html[data-page="home"] .label .chime {
    margin: 0;
  }

  /* Each chapter opens on its own row: the seal, the season, its span. */
  html[data-page="home"] .label .chime--mark {
    grid-column: 1 / -1;
    margin: clamp(12px, 2vw, 28px) 0 0;
    scroll-margin-top: calc(var(--bar-h, 64px) + 104px);
  }

  html[data-page="home"] .label .chime--mark:first-child {
    margin-top: 0;
  }

  html[data-page="home"] .label .chapter {
    flex-direction: row;
    gap: 16px;
  }

  html[data-page="home"] .label .chapter__seal {
    width: 48px;
    font-size: 1.625rem;
  }

  html[data-page="home"] .label .chapter__range {
    writing-mode: horizontal-tb;
    letter-spacing: 0.16em;
  }

  html[data-page="home"] .label .chapter__range i {
    inline-size: 1.4em;
  }

  html[data-page="home"] .label .chime--slip {
    display: flex;
    flex-direction: column;
    width: auto;
    padding: 12px 12px 14px;
    border-radius: 10px;
    background: var(--slip-bg);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  html[data-page="home"] .label .chime--slip .slip {
    flex: 1;
    height: auto;
    min-height: 9.5rem;
    padding: 8px 0 4px;
    background: none;
    box-shadow: none;
  }

  html[data-page="home"] .label .chime--slip .slip::before {
    display: none;
  }

  html[data-page="home"] .label .chime__now {
    left: auto;
    right: 10px;
    top: 10px;
  }

  html[data-page="home"] .label .chime--cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    gap: 14px 10px;
    width: auto;
    padding: 12px 12px 16px;
    border-radius: 10px;
    background: var(--card, var(--ramp));
    color: var(--on-ramp);
    transform: none !important;
    overflow: hidden;
  }

  html[data-page="home"] .label .chime--cover .chime__body {
    display: contents;
  }

  html[data-page="home"] .label .chime__cover {
    grid-column: 1 / -1;
    grid-row: 1;
    box-shadow: none;
  }

  html[data-page="home"] .label .chime__cover img {
    opacity: 1;
    transition: none;
  }

  html[data-page="home"] .label .chime__term {
    position: static;
    grid-column: 2;
    grid-row: 2;
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    color: inherit;
    opacity: 0.9;
    translate: none !important;
  }

  html[data-page="home"] .label .chime--cover .chime__cap {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    color: inherit;
  }

  html[data-page="home"] .label .chime__cap :is(span, em) {
    margin: 0;
    color: inherit;
  }

  /* The large vertical term already names the card. */
  html[data-page="home"] .label .chime__cap b {
    display: none;
  }

  html[data-page="home"] .label .chime--night {
    background: #141842;
    color: #f7f1f3;
  }

  html[data-page="home"] .label .chime--night .chime__body::before {
    display: none;
  }

  html[data-page="home"] .label .chime__flies {
    position: absolute;
    inset: 12px 12px 40% 12px;
    z-index: 2;
    display: block;
    pointer-events: none;
  }

  html[data-page="home"] .label .chime__flies .firefly {
    position: absolute;
    left: var(--fx);
    top: var(--fy);
    width: var(--fs);
    height: var(--fs);
    border-radius: 50%;
    background: #fff3c4;
    box-shadow:
      0 0 calc(var(--fs) * 1.6) calc(var(--fs) * 0.5) rgb(233 196 82 / 0.85),
      0 0 calc(var(--fs) * 6) calc(var(--fs) * 1.2) rgb(233 196 82 / 0.28);
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 901px) and (max-width: 1180px) {
  html[data-page="home"] .label .chimes__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  html[data-page="home"] .label .chimes__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-page="home"] .label .seasons {
    order: 0;
    margin-inline: auto;
  }

  html[data-page="home"] .label .season {
    flex-direction: row;
    align-items: center;
  }
}
