/* A moving wash of cobalt: the material language of the porcelain. */
:root {
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
  --muted: #4b6175;
  scrollbar-color: #6d94b2 #e6eceb;
  scrollbar-width: thin;
}

.hero {
  background: linear-gradient(118deg, #f8f4e9 2%, #e6efeb 45%, #b1cedc 100%);
  isolation: isolate;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  width: 115%;
  height: 120%;
  top: -12%;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 45%, #5e9dbc65, #92b7c638 38%, transparent 70%);
  animation: glaze-flow 16s ease-in-out infinite alternate paused;
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: 12% -10% 6% -12%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse, #f7fbefbb 5%, #d1e5e557 48%, transparent 72%);
  animation: kiln-light 10s ease-in-out infinite alternate paused;
}

.hero .vase-image {
  animation: porcelain-breathe 7s ease-in-out infinite paused;
  transform-origin: 50% 75%;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  filter: saturate(.92);
}

.hero[data-in-view='true']::before,
.hero[data-in-view='true'] .hero-art::before,
.hero[data-in-view='true'] .vase-image {
  animation-play-state: running;
}

.hero .title-wrap.hero-enter {
  animation: ink-unfold 780ms var(--motion-ease) 80ms both;
}

.hero .red-seal {
  animation: seal-impression 430ms var(--motion-ease) 500ms both;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  gap: 28px;
}

.hero-description, .hero .song-credits dt {
  color: #3e5c74;
}

.hero-english {
  color: #234c70;
  opacity: 1;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #234c833d;
  background: #f2f5ef66;
  color: #24496f;
  font-size: 11px;
  min-height: 40px;
  letter-spacing: 1px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { background: #f4f7f0cc; border-color: #234c83; }
.motion-toggle svg { width: 16px; height: 16px; }
.pause-icon { fill: none; stroke: currentColor; stroke-width: 1.5; }
.resume-icon { fill: currentColor; display: none; }
.motion-toggle[aria-pressed='true'] .pause-icon { display: none; }
.motion-toggle[aria-pressed='true'] .resume-icon { display: block; }

.primary-link {
  background: linear-gradient(115deg, #173b6a, #2c618e 68%, #396f98);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.primary-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, #e2f5ff29 50%, transparent 75%);
  transform: translateX(-110%);
  transition: transform 550ms var(--motion-ease);
}

.primary-link:hover, .primary-link:focus-visible {
  background: linear-gradient(115deg, #15365f, #245480 68%, #30668f);
}

.primary-link:hover::before, .primary-link:focus-visible::before {
  transform: translateX(110%);
}

.intro {
  background: linear-gradient(165deg, #f5f2e9, #f2f0e9 52%, #e9efeb);
}
.step-tag, .listen-service { opacity: .9; }

.quote-section {
  background: linear-gradient(118deg, #112f56, #245678 56%, #346e8b);
}

.quote-rain {
  inset: 0;
  transform: none;
  opacity: 1;
  background: radial-gradient(ellipse at 80% 15%, #8bd6d31a, transparent 60%);
}

.rain-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.rain-lines line {
  stroke: #c3e8ef;
  stroke-width: .7;
  opacity: .16;
  stroke-dasharray: 24 600;
  animation: rain-fall var(--rain-speed, 5s) linear infinite paused;
  animation-delay: var(--rain-delay, 0s);
}

.quote-section[data-in-view='true'] .rain-lines line { animation-play-state: running; }
.quote-section.is-revealed blockquote { animation: ink-unfold 750ms var(--motion-ease) both; }
.quote-label { opacity: .88; }
.quote-attribution { opacity: .84; }
.quote-bottom { opacity: .8; }

.intro-grid.is-revealed .ink-word { display: inline-block; animation: character-imprint 700ms var(--motion-ease) both; }
.reading-steps article.is-revealed .step-number { animation: character-imprint 450ms var(--motion-ease) both; }
.reading-steps article.is-revealed h3 { animation: panel-in 400ms var(--motion-ease) both; }
.listen-section { background: linear-gradient(125deg, #e9efe9, #c6dce4 66%, #aac9dc); }

html[data-motion-paused='true'] .hero::before,
html[data-motion-paused='true'] .hero .hero-art::before,
html[data-motion-paused='true'] .hero .vase-image,
html[data-motion-paused='true'] .quote-section .rain-lines line {
  animation-play-state: paused;
}

@keyframes glaze-flow {
  from { transform: translate(-5%, 3%) scale(.94); opacity: .6; }
  to { transform: translate(6%, -3%) scale(1.12); opacity: 1; }
}

@keyframes kiln-light {
  from { transform: translate(-5%, 3%) scale(.92); opacity: .6; }
  to { transform: translate(5%, -4%) scale(1.08); opacity: 1; }
}

@keyframes porcelain-breathe {
  0%, 100% { transform: translateY(0) rotate(-.35deg); }
  50% { transform: translateY(-9px) rotate(.35deg); }
}

@keyframes ink-unfold {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes seal-impression {
  from { transform: scale(1.3) rotate(9deg); opacity: 0; }
  to { transform: scale(1) rotate(4deg); opacity: 1; }
}



@keyframes character-imprint {
  from { transform: scale(1.06); opacity: .1; }
  to { transform: scale(1); }
}

@keyframes rain-fall {
  from { stroke-dashoffset: 624; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 1100px) {
  .hero-bottom { gap: 18px; }
  .motion-toggle { letter-spacing: .5px; padding: 6px 8px; }
}

@media (max-width: 800px) {
  .hero-bottom { flex-wrap: wrap; gap: 15px; }
  .hero-bottom .song-credits { flex: 1 1 auto; }
  .scroll-cue { display: none; }
}

@media (max-width: 540px) {
  .hero { background: linear-gradient(155deg, #f8f4e9 5%, #e5efe9 41%, #bbd5df 80%, #cbdde2); }
  .hero::before { width: 160%; left: -30%; top: 12%; }
  .hero-bottom { gap: 16px; }
  .hero-bottom .song-credits { flex-basis: 100%; }
  .motion-toggle { margin-left: 0; padding: 5px 9px; }
  .hero .vase-image { animation-name: porcelain-breathe-small; }
  @keyframes porcelain-breathe-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-art::before, .hero .vase-image,
  .hero .title-wrap.hero-enter, .hero .red-seal,
  .quote-section .rain-lines line, .quote-section.is-revealed blockquote,
  .intro-grid.is-revealed .ink-word, .reading-steps article.is-revealed .step-number,
  .reading-steps article.is-revealed h3{
    animation: none;
    transform: none;
    clip-path: none;
  }
  .hero::before { opacity: .75; }
  .motion-toggle { display: none; }

}
