/* Pitch mode (pitch.js): the deck plays itself with a voice. While it runs the menu steps aside and
   snapping is off, so the player's own scroll is smooth. On screen: only an Esc hint for the first
   seconds. No controls, no transcript. An intro opens the pitch; it closes by itself. */
.pitch-open__dot { width: 8px; height: 8px; border-radius: 50%; background: #d7192d; }
html.is-pitch, html.is-pitch.is-full { scroll-snap-type: none !important; scroll-behavior: auto !important; }
html.is-pitch #nav { opacity: 0; pointer-events: none; transition: opacity 300ms ease; }

.pitch { position: fixed; inset: 0; z-index: 60; pointer-events: none; color: #fff; }
.pitch[hidden] { display: none; }

/* No transcript on screen: the voice carries the words. The caption line stays for screen readers
   (and still times the scroll in pitch.js), hidden from view. */
.pitch__cap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The only hint on screen: shown for the first seconds, then gone. */
.pitch__hint { position: absolute; top: 18px; left: 50%; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(8, 11, 20, 0.7); color: rgba(255, 255, 255, 0.85); font-size: 13px; transform: translateX(-50%); transition: opacity 600ms ease; }
.pitch__hint.is-gone, .pitch:not([data-state="play"]) .pitch__hint { opacity: 0; }
.pitch__hint kbd { padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 5px; font-family: var(--mono); font-size: 12px; }

/* Intro: a dark veil over the page with one action in the middle. */
.pitch__card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; background: rgba(6, 8, 15, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: center; opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s 500ms; }
.pitch[data-state="intro"] .pitch__intro { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 500ms ease; }
.pitch__h { margin: 0; font-family: var(--display, inherit); font-size: clamp(28px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.pitch__sub { margin: -6px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.pitch__play { position: relative; display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 10px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; transition: transform 200ms ease; }
.pitch__play:hover { transform: scale(1.06); }
.pitch__play i { width: 0; height: 0; margin-left: 7px; border-left: 30px solid #d7192d; border-block: 19px solid transparent; }
.pitch__play::before, .pitch__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); animation: pitch-ring 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.pitch__play::after { animation-delay: 1.2s; }
@keyframes pitch-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.pitch__play:focus-visible, .pitch__x:focus-visible { outline: 2px solid #9bb8ff; outline-offset: 3px; }
.pitch__x { position: absolute; top: 18px; right: 18px; display: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; pointer-events: auto; }
.pitch[data-state="intro"] .pitch__x { display: grid; }

@media (prefers-reduced-motion: reduce) {
  .pitch__play::before, .pitch__play::after { animation: none; }
}

/* First-visit offer (pitch.js offer()): a small card in the bottom-right corner, the hero still in view. */
.pitch-offer { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 22px 22px 18px; border-radius: 20px; background: var(--surface, #fff); color: var(--ink, #0a1020); box-shadow: 0 1px 2px rgba(10, 16, 32, 0.08), 0 16px 40px rgba(10, 16, 32, 0.18); opacity: 0; transform: translateY(16px); transition: opacity 400ms ease, transform 400ms var(--ease, ease); }
.pitch-offer.is-on { opacity: 1; transform: none; }
.pitch-offer__h { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.pitch-offer__p { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--slate, #5a6377); }
.pitch-offer__b { display: flex; flex-wrap: wrap; gap: 8px; }
.pitch-offer__b button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line, #dde1ea); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pitch-offer__b .pitch-offer__go { border-color: var(--ink, #0a1020); background: var(--ink, #0a1020); color: var(--paper, #fff); }
.pitch-offer__b button:focus-visible { outline: 2px solid var(--blue, #0b5cff); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pitch-offer { transition: none; } }
