.belief-wave, .sea-canvas { display: none; }
html[data-concept="stoic"] main > section.belief {
  position: relative;
  isolation: isolate;
  overflow: clip;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
  color: #332b44;
  background: var(--stoic-grain), #e5dff4;
}
html[data-concept="stoic"] .belief > .wrap {
  position: relative;
  z-index: 2;
  margin-top: 0;
  text-shadow: 0 1px 16px #f4effa66;
}
html[data-concept="stoic"] .belief .section-lead { color: #332b44; }
/* Quiet centered copy, with enough space left for the water. */
html[data-concept="stoic"] .belief .belief-poem {
  max-width: 28em;
  font-size: 28px;
  margin-inline: auto;
  text-align: center;
}
html[data-concept="stoic"] .belief .poem-stanza {
  margin: 0;
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0;
  text-wrap: balance;
  color: inherit;
}
html[data-concept="stoic"] .belief .poem-stanza + .poem-stanza {
  margin-top: .8em;
}
@media (max-width: 760px) {
  html[data-concept="stoic"] .belief .belief-poem { font-size: 22px; }
}
html[data-concept="stoic"] .belief-wave {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* The hero ends on this same lilac; water emerges without a section edge. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%);
  mask-image: linear-gradient(to bottom, transparent, #000 32%);
}
html[data-concept="stoic"] .belief-wave img,
html[data-concept="stoic"] .sea-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-concept="stoic"] .belief-wave[data-sea-ready="true"] img { visibility: hidden; }
html[data-concept="stoic"] .belief::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 54%, #eee7f740, #eee7f700 75%);
}
/* The clear wide-wave image supplies its own light; avoid a milky overlay. */
html[data-concept="stoic"][data-water="wide"] .belief::after {
  background: transparent;
}
html[data-concept="stoic"][data-water="wide"] .belief > .wrap {
  text-shadow: none;
}
html[data-concept="stoic"][data-water="lavender"] .belief,
html[data-concept="stoic"][data-water="lavender"] .belief .section-lead {
  color: #292331;
}
html[data-concept="stoic"][data-water="night"] .belief,
html[data-concept="stoic"][data-water="night"] .belief .section-lead {
  color: #332b44;
}
html[data-concept="stoic"][data-water="night"] .belief {
  background: #cec2f1;
}
html[data-concept="stoic"][data-water="night"] .belief > .wrap {
  text-shadow: none;
}
html[data-concept="stoic"][data-water="night"] .belief::after {
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}
html[data-concept="stoic"][data-water="twilight"] .belief,
html[data-concept="stoic"][data-water="twilight"] .belief .section-lead {
  color: #211f25;
}
html[data-concept="stoic"][data-water="twilight"] .belief {
  background: #c5b8d3;
}
html[data-concept="stoic"][data-water="twilight"] .site-header.is-scrolled .wrap {
  background: #f3edfa;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-concept="stoic"][data-water="twilight"] .belief > .wrap {
  text-shadow: none;
}
html[data-concept="stoic"][data-water="twilight"] .belief .section-lead {
  text-shadow: 0 0 1px #fff, 0 0 3px #fbf6ff;
}
html[data-concept="stoic"][data-water="twilight"] .belief::after {
  background: transparent;
}
/* Separate-background variants start cleanly at the section boundary.
   Shared night/violet surfaces keep their existing continuous treatment. */
html[data-concept="stoic"]:is([data-water="caustics"], [data-water="wide"], [data-water="lavender"], [data-water="twilight"]) .belief-wave,
html[data-concept="stoic"]:is([data-water="caustics"], [data-water="wide"], [data-water="lavender"], [data-water="twilight"]) .belief::after {
  -webkit-mask-image: none;
  mask-image: none;
}
html[data-concept="stoic"]:is([data-water="caustics"], [data-water="wide"], [data-water="lavender"], [data-water="twilight"]) .belief-wave.is-revealing {
  animation: none;
}
html[data-concept="stoic"][data-water="violet"] .belief,
html[data-concept="stoic"][data-water="violet"] .belief .section-lead {
  color: #fff;
}
html[data-concept="stoic"][data-water="violet"] .belief {
  background: #30205a;
}
html[data-concept="stoic"][data-water="violet"] .belief > .wrap {
  text-shadow: 0 1px 2px #39265fc0, 0 0 1px #39265fe6;
}
html[data-concept="stoic"][data-water="violet"] .belief-wave {
  -webkit-mask-image: none;
  mask-image: none;
}
html[data-concept="stoic"][data-water="violet"] .belief::after {
  background: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-concept="stoic"] .belief-wave.is-revealing {
    animation: belief-wave-in 1.2s ease-out both;
  }
}
@keyframes belief-wave-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* A single calm text group rides the surface without bending the glyphs. */
html[data-concept="stoic"][data-water="wide"] .belief .section-head {
  text-align: center;
  color: #302d38;
  text-shadow: none;
}
/* The glass moves with the copy; only the water behind it is softened. */
html[data-concept="stoic"][data-water="wide"] .belief .belief-poem {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  padding: 40px 48px;
}
html[data-concept="stoic"][data-water="wide"] .belief .belief-poem::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 32px;
  background: linear-gradient(135deg, rgb(246 240 255 / 14%), rgb(231 219 251 / 7%));
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  box-shadow: none;
}
@media (max-width: 760px) {
  html[data-concept="stoic"][data-water="wide"] .belief .belief-poem {
    padding: 24px 20px;
  }
  html[data-concept="stoic"][data-water="wide"] .belief .belief-poem::before {
    border-radius: 24px;
  }
}
html[data-concept="stoic"][data-water="wide"] .belief .section-lead {
  color: #3e314e;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  html[data-concept="stoic"][data-water="wide"] .belief .belief-poem {
    translate: none !important;
  }
}
.belief-poem .poem-line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  html[data-concept="stoic"][data-water="wide"] .belief .belief-poem[data-copy-reveal="pending"]::before {
    opacity: 0;
  }
  html[data-concept="stoic"][data-water="wide"] .belief .belief-poem[data-copy-reveal="enter"]::before {
    animation: poem-glass-arrive 1600ms cubic-bezier(.22, .61, .36, 1) both;
  }
  .belief-poem[data-copy-reveal="pending"] .poem-line {
    opacity: 0;
    transform: translateY(10px);
  }
  .belief-poem[data-copy-reveal="enter"] .poem-line {
    animation: poem-arrive 1600ms cubic-bezier(.22, .61, .36, 1) var(--arrival-delay, 0ms) both;
  }
}
@keyframes poem-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes poem-glass-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
