/* Motion layer: everything here is switched off for visitors who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* hero: title block rises in on load */
  #top > * { animation: ott-up 1s cubic-bezier(.2,.7,.2,1) both; }
  #top > :nth-child(2) { animation-delay: .15s; }
  #top > :nth-child(3) { animation-delay: .3s; }
  #top > :nth-child(4) { animation-delay: .45s; }
  #top > :nth-child(5) { animation-delay: .6s; }

  /* blocks rise in as they come on screen */
  .ott-js .ott-reveal {
    opacity: 0; transform: translateY(64px);
    transition: opacity 1.1s cubic-bezier(.25,.6,.3,1), transform 1.1s cubic-bezier(.25,.6,.3,1);
    transition-delay: var(--d, 0s);
  }
  .ott-js .ott-reveal.ott-x { transform: translateX(28px); }
  .ott-js .ott-reveal.ott-in { opacity: 1; transform: none; }

  /* diamond rules draw out from the centre */
  .ott-js .ott-draw { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .25s; }
  .ott-js .ott-in .ott-draw, .ott-js .ott-draw.ott-in { transform: none; }
}
/* Computers only: the slow drift on the hero picture and the print-developing effect. Both are heavy on phones. */
@media (prefers-reduced-motion: no-preference) and (min-width: 701px) and (hover: hover) and (pointer: fine) {
  header > video, header > img { animation: ott-kenburns 26s ease-in-out infinite alternate; }
  .ott-js .ott-reveal .ott-still,
  .ott-js .ott-reveal.ott-char img:first-child,
  .ott-js .ott-reveal img.ott-photo { transition: filter 1.6s ease; transition-delay: calc(var(--d, 0s) + .15s); }
  .ott-js .ott-reveal:not(.ott-in) .ott-still,
  .ott-js .ott-reveal.ott-char:not(.ott-in) img:first-child,
  .ott-js .ott-reveal:not(.ott-in) img.ott-photo { filter: grayscale(1) brightness(.2) contrast(1.6) blur(3px) !important; }
}
/* Phones and tablets: a short, light fade so scrolling stays smooth */
@media (prefers-reduced-motion: no-preference) and (max-width: 700px), (prefers-reduced-motion: no-preference) and (pointer: coarse) {
  .ott-js .ott-reveal { transform: translateY(18px); transition-duration: .45s; transition-delay: 0s; }
  .ott-js .ott-reveal.ott-x { transform: none; }
  .ott-js .ott-draw { transition-duration: .5s; transition-delay: 0s; }
}
@keyframes ott-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes ott-kenburns { from { transform: scale(1); } to { transform: scale(1.1) translateY(-1.5%); } }

/* Up next card over the player when an episode ends */
.ott-next { position: absolute; inset: 6px; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: rgba(11,11,10,.88); color: #ece8df; text-align: center; }
.ott-next-k { font: 600 13px/1 'Josefin Sans', 'Libre Franklin', sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #d8c08a; }
.ott-next strong { font: 700 clamp(22px, 3.4vw, 34px)/1.15 Besley, Georgia, serif; }
.ott-next-t { font: 400 clamp(16px, 2vw, 20px)/1.3 Besley, Georgia, serif; color: #cfcabf; }
.ott-next-c { margin-top: 4px; font: 600 13px/1 'Josefin Sans', 'Libre Franklin', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #cfcabf; }
.ott-next-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.ott-next-b button { min-height: 44px; padding: 2px 22px 0; border: 1px solid #77736b; background: none; color: #ece8df; font: 700 13px/1 'Josefin Sans', 'Libre Franklin', sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.ott-next-b button[data-next="go"] { background: #d8c08a; border-color: #d8c08a; color: #0b0b0a; }

/* Opening title card (home page, once per visit) */
.ott-enter { display: none; }
.ott-gate .ott-enter { position: fixed; inset: 0; z-index: 100; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 24px; background: #0b0b0a; color: #d8c08a; text-align: center; transition: opacity .6s ease; }
.ott-gate .ott-enter.is-leaving { opacity: 0; pointer-events: none; }
.ott-gate body { overflow: hidden; }
.ott-enter img { display: block; width: min(420px, 78vw); height: auto; }
.ott-enter svg { max-width: 70vw; }
.ott-enter-btn { min-height: 56px; padding: 3px 56px 0; background: #d8c08a; color: #0b0b0a; border: 0; outline: 1px solid #d8c08a; outline-offset: 4px; font: 700 16px/1 'Josefin Sans', 'Libre Franklin', sans-serif; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
.ott-enter-btn:hover { background: #fff; outline-color: #fff; }
.ott-enter-quiet { margin-top: 4px; padding: 0 0 6px; background: none; border: 0; border-bottom: 1px solid #77736b; color: #cfcabf; font: 600 12px/1 'Josefin Sans', 'Libre Franklin', sans-serif; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.ott-enter-btn:focus-visible, .ott-enter-quiet:focus-visible { outline: 2px solid #ece8df; outline-offset: 5px; }

/* Music icon, top right of every page */
header > nav { box-sizing: border-box; }
header[style*="min-height"] > nav > div { margin-right: 64px; }
.ott-sound-wrap { position: fixed; top: 36px; right: max(5vw, calc((100vw - 1240px) / 2)); z-index: 60; }
.ott-sound-wrap.ott-home { top: 42px; right: 5vw; }
.ott-sound { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: rgba(11,11,10,.86); border: 1px solid #d8c08a; color: #ece8df; cursor: pointer; }
.ott-sound.is-on { background: #d8c08a; color: #0b0b0a; }
.ott-sound:hover { background: #ece8df; color: #0b0b0a; border-color: #ece8df; }
.ott-sound:focus-visible { outline: 2px solid #ece8df; outline-offset: 3px; }
.ott-ic { flex: 0 0 auto; }
.ott-sound .ott-ic-on { display: none; }
.ott-sound.is-on .ott-ic-on { display: block; }
.ott-sound.is-on .ott-ic-off { display: none; }
.ott-vol { position: absolute; top: calc(100% + 8px); right: 0; display: none; align-items: center; gap: 14px; padding: 9px 16px 9px 9px; background: rgba(11,11,10,.95); border: 1px solid #d8c08a; }
.ott-sound-wrap.is-open .ott-vol { display: flex; }
.ott-vol button { flex: 0 0 auto; min-width: 52px; height: 32px; padding: 2px 10px 0; background: none; border: 1px solid #77736b; color: #ece8df; font: 600 12px/1 'Josefin Sans', 'Libre Franklin', sans-serif; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.ott-vol button:hover { background: #ece8df; border-color: #ece8df; color: #0b0b0a; }
.ott-vol button:focus-visible, .ott-vol input:focus-visible { outline: 2px solid #ece8df; outline-offset: 3px; }
.ott-vol input { -webkit-appearance: none; appearance: none; width: 150px; height: 32px; margin: 0; padding: 0; background: none; cursor: pointer; }
.ott-vol input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #d8c08a var(--p, 90%), #77736b var(--p, 90%)); }
.ott-vol input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -6px; border: 0; border-radius: 0; background: #d8c08a; }
.ott-vol input::-moz-range-track { height: 2px; background: #77736b; }
.ott-vol input::-moz-range-progress { height: 2px; background: #d8c08a; }
.ott-vol input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 0; background: #d8c08a; }
@media (max-width: 700px) {
  header > nav > div { margin-right: 0 !important; }
  .ott-sound-wrap, .ott-sound-wrap.ott-home { top: 24px; right: 5vw; }
  .ott-sound { width: 40px; height: 40px; }
}
