/* Isolated courtyard review. Original site styles and interactions are retained. */
.site-header { position:absolute; top:28px; left:7%; right:7%; border-radius:60px; background:#fffaf7; backdrop-filter:none; }
.site-header::after { display:none; }
.site-header__inner { min-height:68px; padding:0 30px; width:100%; max-width:none; }
.brand { position:absolute; left:50%; top:-24px; transform:translateX(-50%); z-index:2; }
.brand__logo { height:145px; width:auto; }
.site-header.is-scrolled .brand__logo { height:145px; }
.site-nav { width:100%; justify-content:space-between; }
.site-nav ul { gap:26px; }
.site-nav__cta { margin-left:auto; }
.courtyard-hero { position:relative; isolation:isolate; width:100%; aspect-ratio:16/9; min-height:660px; max-height:1100px; overflow:hidden; background:#a698ab; }
.courtyard { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%; }
.courtyard-title { position:absolute; left:26%; top:47%; width:48%; margin:0; max-width:none; z-index:2; line-height:0; }
.courtyard-title img { width:100%; height:auto; }
.courtyard-rider { position:absolute; z-index:3; object-fit:contain; width:23%; height:49%; }
.courtyard-boy { left:11%; top:17%; }
.courtyard-girl { right:7%; top:24%; }
.courtyard-actions { position:absolute; top:85%; left:0; width:100%; display:flex; justify-content:center; gap:28px; z-index:4; }
.courtyard-actions .btn { border:4px solid #fff9ee; border-radius:50px; min-height:58px; min-width:240px; font-size:18px; box-shadow:0 4px 0 #c7b29e; }
.courtyard-primary { background:linear-gradient(#ffdf38,#ffcb00); color:#33200d; }
.courtyard-primary:hover { background:#ffe65d; }
.courtyard-secondary { background:linear-gradient(#ad42d3,#7e249f); color:#fff; }
.courtyard-secondary:hover { background:#6c238d; }
.review-note { padding:24px; text-align:center; background:#fff5db; color:#493620; }
@media(min-width:900px) and (max-width:1150px) { .site-nav ul{gap:16px}.site-header__inner{padding:0 20px}.site-nav a{font-size:14px}.brand__logo{height:118px}.brand{top:-16px} }
@media(max-width:899px) {
 .site-header { top:14px; left:4%; right:4%; }
 .site-header__inner { height:70px; padding:0 15px; justify-content:flex-end; }
 .brand { left:18px; top:0; transform:none; }
 .brand__logo,.site-header.is-scrolled .brand__logo { height:90px; }
 .site-nav { border-radius:22px; padding:22px; }
 .site-nav__cta { margin-top:16px; }
 .courtyard-hero { height:760px; min-height:0; max-height:none; aspect-ratio:auto; }
 .courtyard { object-position:50% 0; }
 .courtyard-title { width:76%; left:12%; top:54%; }
 .courtyard-boy { width:30%; height:34%; left:8%; top:25%; }
 .courtyard-girl { width:30%; height:34%; right:6%; top:27%; }
 .courtyard-actions { top:82%; gap:18px; }
 .courtyard-actions .btn { min-width:220px; }
}
@media(max-width:599px) {
 .courtyard-hero { height:690px; }
 .courtyard { object-fit:cover; object-position:50% 0; }
 .courtyard-title { width:94%; left:3%; top:58%; }
 .courtyard-boy { width:45%; height:29%; left:3%; top:29%; }
 .courtyard-girl { width:45%; height:29%; right:1%; top:30%; }
 .courtyard-actions { top:82%; padding:0 20px; gap:12px; flex-direction:column; align-items:center; }
 .courtyard-actions .btn { width:100%; max-width:300px; min-width:0; min-height:48px; border-width:3px; font-size:16px; padding:8px 18px; }
 .brand__logo,.site-header.is-scrolled .brand__logo { height:84px; }
}
@media(prefers-reduced-motion:reduce){ *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important} }

/* Composition revision 2: keep the approved headline artwork intact. */
.courtyard-chalk { position:absolute; inset:0; width:100%; height:100%; object-fit:fill; z-index:1; pointer-events:none; }
.courtyard-welcome { position:absolute; left:32%; top:34%; width:36%; height:16%; object-fit:contain; z-index:2; }
.courtyard-rider { width:25.5%; height:54%; }
.courtyard-boy { left:8%; top:12%; }
.courtyard-girl { right:5%; top:20%; }
@media(max-width:899px) {
 .courtyard-welcome { left:26%; top:43%; width:48%; height:12%; }
 .courtyard-boy { width:33%; height:37%; left:4%; top:19%; }
 .courtyard-girl { width:33%; height:37%; right:3%; top:21%; }
 .courtyard-chalk { object-fit:cover; }
}
@media(max-width:599px) {
 .courtyard-welcome { left:17%; top:49%; width:66%; height:10%; }
 .courtyard-boy { width:48%; height:29%; left:0; top:23%; }
 .courtyard-girl { width:48%; height:29%; right:0; top:24%; }
 .courtyard-chalk { object-fit:fill; }
}

/* Motion-only layers. Resting geometry above is deliberately unchanged. */
.rider-pose-source { display:none; }
.opening-pending .courtyard-rider, .opening-playing .courtyard-rider { visibility:hidden; }
.rider-motion { position:absolute; left:0; top:0; z-index:3; pointer-events:none; will-change:transform; }
.rider-motion img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.motion-up { opacity:0; }
@media(prefers-reduced-motion:reduce) {
 .opening-pending .courtyard-rider,.opening-playing .courtyard-rider { visibility:visible; }
 .rider-motion { display:none; }
}

/* Progressive reveal (Claude, motion pass 2). Only active while the opening plays;
   the resting artwork, sizes and positions above are unchanged. */
.opening-pending .courtyard-title img, .opening-pending .courtyard-welcome { opacity: 0; }
.opening-playing .courtyard-welcome {
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--boy-x, 120%) - 5%), #000 calc(var(--boy-x, 120%) + 5%));
          mask-image: linear-gradient(90deg, transparent calc(var(--boy-x, 120%) - 5%), #000 calc(var(--boy-x, 120%) + 5%));
}
/* Top line ("Little Minds.") is drawn in behind the boy, who rides right to left.
   Bottom line ("Big Beginnings." and the underline) is drawn in behind the girl, who rides left to right. */
.opening-playing .courtyard-title img {
  -webkit-mask-image:
    linear-gradient(90deg, transparent calc(var(--boy-x, 120%) - 5%), #000 calc(var(--boy-x, 120%) + 5%)),
    linear-gradient(90deg, #000 calc(var(--girl-x, -20%) - 5%), transparent calc(var(--girl-x, -20%) + 5%));
          mask-image:
    linear-gradient(90deg, transparent calc(var(--boy-x, 120%) - 5%), #000 calc(var(--boy-x, 120%) + 5%)),
    linear-gradient(90deg, #000 calc(var(--girl-x, -20%) - 5%), transparent calc(var(--girl-x, -20%) + 5%));
  -webkit-mask-size: 100% 41%, 100% 59%; mask-size: 100% 41%, 100% 59%;
  -webkit-mask-position: 0 0, 0 100%; mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.reveal-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.rider-motion .flip { position: absolute; inset: 0; transform-origin: 50% 55%; }
.rider-motion .flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rider-motion .rest { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .opening-pending .courtyard-title img, .opening-pending .courtyard-welcome { opacity: 1; }
  .opening-playing .courtyard-title img, .opening-playing .courtyard-welcome { -webkit-mask-image: none; mask-image: none; }
  .reveal-dust { display: none; }
}

/* Sample: "Mini Minds / Learning House" lettering takes the space of Welcome and the old headline */
.courtyard-title--brand { top: 38%; width: 44%; left: 28%; }
@media (max-width: 899px) { .courtyard-title--brand { top: 50%; width: 64%; left: 18%; } }
@media (max-width: 599px) { .courtyard-title--brand { top: 50%; width: 94%; left: 3%; } }
.opening-playing .courtyard-title--brand img {
  -webkit-mask-size: 100% 47%, 100% 57%; mask-size: 100% 47%, 100% 57%;
}
.rider-motion img.pose { position: absolute; right: auto; bottom: auto; max-width: none; object-fit: fill; transform-origin: 50% 58%; }
.rider-motion img.rest { transition: none; }
