/* v4 quiet step owns this file: quiet moment, chapter changes, Bark Line ticker */
.quiet {
  position: relative; width: 100%; margin: 0; overflow: hidden;
  min-height: clamp(520px, 80vh, 760px);
  background: #061416;
  isolation: isolate;
}
@media (min-width: 900px) { .quiet { min-height: clamp(640px, 112vh, 1100px); } }
.quiet picture { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.6) 14%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.6) 14%, #000 38%); }
@media (min-width: 900px) { .quiet picture { height: 66%; } }
.quiet-img {
  position: absolute; left: 0; width: 100%; top: -4%; height: 108%;
  aspect-ratio: auto; object-fit: cover; object-position: 50% 40%;
  will-change: transform;
}
/* soft vignette + blend of the image top into the dark space */
.quiet picture::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 55%, rgba(6,20,22,0) 55%, rgba(6,20,22,.7) 100%);
}
.quiet-glow {
  position: absolute; z-index: 1; left: 50%; top: 12%; width: 46%; height: 34%;
  transform: translate3d(-50%, 0, 0);
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(closest-side, rgba(95,235,230,.38), rgba(95,235,230,.12) 60%, rgba(95,235,230,0) 100%);
  pointer-events: none; opacity: .75;
  animation: quiet-pulse 5.5s ease-in-out infinite;
}
@keyframes quiet-pulse { 50% { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1.06); } }
.quiet-glow-name {
  display: none; max-width: 80%; padding: 0 4px;
  font-family: var(--font-display, "Space Grotesk", sans-serif); font-weight: 600;
  font-size: clamp(.6rem, 1.5vw, 1.05rem); letter-spacing: .04em;
  color: rgba(255,255,255,.92); text-shadow: 0 0 14px rgba(95,235,230,.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quiet.has-name .quiet-glow-name { display: block; }
.quiet .container {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0; bottom: auto;
  padding: clamp(40px, 9vh, 120px) var(--s-4, 16px) 0; background: none;
}
.quiet-line {
  margin: 0 auto; max-width: 16ch; text-align: center; color: #fff1df;
  font-family: var(--font-display, "Space Grotesk", sans-serif); font-weight: 700;
  font-size: clamp(2.1rem, 9.5vw, 6.5rem); line-height: 1.02; letter-spacing: -.02em;
  overflow-wrap: anywhere; text-wrap: balance;
}
@media (min-width: 900px) { .quiet-line { max-width: 18ch; } }
[data-quiet-name] { display: inline; }

/* Bark Line */
.bark-line {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .7rem; letter-spacing: .04em;
  color: rgba(255,241,223,.9);
  transition: opacity .22s ease, transform .22s ease;
}
.bark-line .bl-time { color: var(--cyan, #3ee6e0); flex: none; }
.bark-line .bl-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bark-line.is-out { opacity: 0; transform: translate3d(0, 5px, 0); }
.bark-line.is-paused .bl-text { color: #fff; }
.mh-card { flex-wrap: wrap; }
.mh-card > .bark-line {
  flex: 1 0 100%; contain: inline-size; max-width: 100%;
  padding-top: 6px; margin-top: 2px; border-top: 1px solid rgba(255,255,255,.1);
}
.bark-line.is-strip {
  position: fixed; left: 0; right: 0; top: calc(var(--header-h, 68px) + 28px); z-index: 44;
  padding: 3px var(--s-3, 16px); font-size: .66rem; pointer-events: none;
  background: rgba(10,30,34,.78); border-bottom: 1px solid var(--line, rgba(255,255,255,.14));
  opacity: 0; visibility: hidden;
}
.bark-line.is-strip.is-on { opacity: 1; visibility: visible; }
.bark-line.is-strip.is-out { opacity: 0; }

html.fx-off .quiet-glow { animation: none; opacity: .85; }
html.fx-off .quiet-img { transform: none !important; }
html.fx-off .bark-line { transition: none; }
html.fx-off .bark-line.is-out { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .quiet-glow { animation: none; opacity: .85; }
  .bark-line { transition: none; }
}
html.theme-day .quiet { background: #0e2a2e; }
html.theme-day .quiet-line { color: #fff; }
html.theme-day .bark-line.is-strip { background: rgba(255,255,255,.88); color: #1a2a2c; }
html.theme-day .mh-card > .bark-line { color: inherit; border-top-color: rgba(0,0,0,.12); }
