/* R1B: widen the approved pilot and separate server wait from the card reveal. */
@media (min-width: 1181px) {
  .pitchory-site-header__inner { gap: clamp(22px, 2vw, 40px); }
  .pitchory-desktop-nav ul { gap: clamp(17px, 1.5vw, 30px); }
  .pitchory-header-actions { gap: 7px; }
  .pitchory-market-form { margin-right: 12px; }
  .pitchory-homepage .pitchory-hero__inner { gap: clamp(45px, 5.5vw, 110px); }
  .pitchory-tiers__grid { max-width: 1380px; gap: clamp(24px, 2.7vw, 44px); }
  .pitchory-tier__art { min-height: 330px; }
  .pitchory-tier__art .pitchory-box-visual { width: 198px; }
  .pitchory-stars__grid { gap: clamp(14px, 1.2vw, 22px); }
  .pitchory-open-draw__cards { gap: clamp(26px, 3vw, 54px); }
  .pitchory-open-draw__cards .pitchory-draw-card,
  .pitchory-open-draw__cards .pitchory-draw-reveal { width: min(100%, 470px); flex-basis: 470px; aspect-ratio: .78; }
}
.pitchory-hero__lead,
.pitchory-draw__copy > p:not(.pitchory-kicker),
.pitchory-open-draw__section-head > p:last-child { max-width: 650px; }
.pitchory-tier__route { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 20px 20px; padding: 12px 0 0; border-top: 1px solid var(--line); color: #dfe9e1; font-size: 10px; font-weight: 650; letter-spacing: .13em; }
.pitchory-tier__route > span { color: var(--lime); font-size: 19px; line-height: 1; }
.pitchory-tier:hover .pitchory-tier__route,
.pitchory-tier:focus-visible .pitchory-tier__route { color: #fff; }
#choose-your-way { scroll-margin-top: 20px; }
#choose-your-way:target .pitchory-section-heading h2 { text-shadow: 0 0 30px #c9f52755; }

/* Pending is sealed and visibly alive while the existing Core POST is in flight. */
.pitchory-draw-card--back.is-pending { isolation: isolate; border-color: #f5f7f4; }
.pitchory-draw-card--back.is-pending .pitchory-draw-card__slot { opacity: 0; }
.pitchory-draw-card--back.is-pending::after { content: ''; position: absolute; inset: 6px; z-index: 2; border: 2px solid #e9f8bf; pointer-events: none; animation: pitchory-r1b-pending 1.7s ease-in-out infinite; }
.pitchory-draw-pending-label { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 14px; padding: 10px 9px; background: #06121be8; color: #f2f8e9; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.pitchory-draw-error { width: 100%; margin: 0; padding: 12px 15px; border: 1px solid #f5f7f488; background: #172321; color: #f5f7f4; font-size: 12px; }
@keyframes pitchory-r1b-pending { 0%,100% { opacity: .25; } 50% { opacity: .9; } }

/* The result is already server-authoritative when this 3D transition begins. */
.pitchory-draw-reveal { position: relative; width: min(100%, 410px); aspect-ratio: .72; flex: 0 1 410px; perspective: 1300px; isolation: isolate; }
.pitchory-draw-reveal__inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(0deg); }
.pitchory-draw-reveal.is-flipping .pitchory-draw-reveal__inner { transform: rotateY(180deg); transition: transform 1100ms cubic-bezier(.65,0,.35,1); }
.pitchory-draw-reveal__back,
.pitchory-draw-reveal__front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pitchory-draw-reveal__front { transform: rotateY(180deg); pointer-events: none; }
.pitchory-draw-reveal .pitchory-draw-card { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; flex: none !important; }
.pitchory-draw-reveal.is-flipping { animation: pitchory-r1b-lift 1100ms cubic-bezier(.22,.7,.22,1) both; }
.pitchory-draw-reveal::after { content: ''; position: absolute; z-index: 4; inset: -5px; border: 2px solid #dff5ae; box-shadow: 0 0 30px #c9f52755; opacity: 0; transform: scaleX(1); pointer-events: none; }
.pitchory-draw-reveal.is-flipping::after { animation: pitchory-r1b-edge 1100ms ease-out both; }
@keyframes pitchory-r1b-lift { 0%,100% { transform: translateY(0) scale(1); } 23% { transform: translateY(-14px) scale(1.035); } 70% { transform: translateY(-8px) scale(1.025); } }
@keyframes pitchory-r1b-edge { 0%,25%,100% { opacity: 0; transform: scaleX(1); } 47% { opacity: .82; transform: scaleX(.035); } 76% { opacity: .25; transform: scaleX(1); } }

@media (max-width: 767px) {
  .pitchory-tier__route { margin: 0 15px 16px; font-size: 8px; }
  .pitchory-open-draw__cards .pitchory-draw-card--back,
  .pitchory-open-draw__cards .pitchory-draw-reveal { width: 100%; height: 210px; aspect-ratio: auto; flex: none; }
  .pitchory-open-draw__cards .pitchory-draw-card--back { background: radial-gradient(ellipse at center,#1a352d,#07121c 72%); }
  .pitchory-open-draw__cards .pitchory-draw-card--back > img { width: auto; max-width: 100%; height: 100%; margin-inline: auto; object-fit: contain; }
  .pitchory-draw-reveal .pitchory-draw-card--back > img { width: auto; max-width: 100%; height: 100%; margin-inline: auto; object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
  .pitchory-draw-card--back.is-pending::after { animation: none; opacity: .7; }
  .pitchory-draw-reveal.is-flipping,
  .pitchory-draw-reveal.is-flipping::after { animation: none; }
  .pitchory-draw-reveal.is-flipping .pitchory-draw-reveal__inner { transform: none; transition: none; }
  .pitchory-draw-reveal.is-flipping .pitchory-draw-reveal__back { opacity: 0; }
  .pitchory-draw-reveal__front { opacity: 0; }
  .pitchory-draw-reveal.is-flipping .pitchory-draw-reveal__front { opacity: 1; transform: none; transition: opacity 150ms ease-out; }
}
