/* 05b · App intro (owner, 17 Nov 2026), after the hero of Apple's iPhone Duo page: the copy centred above the hands
   film -- "Explore the PYRA app" in the hero's type and the Coming soon pill (the same as Explore the app's) -- fading
   in. (Tried and removed: "That’s a morning.", a platter under the film, the words beside the film.)
   The film's background was colour-matched to --paper (aimed a touch darker, as browsers draw video 2–4 levels
   lighter than page colour) and the page's own grain lies over it, so it has no edge. */
section.appintro { padding: clamp(64px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); text-align: center; overflow: hidden;
  position: relative; z-index: 1; margin-bottom: -2px; border-bottom: 2px solid transparent; background-clip: border-box; }
/* (it overlaps Explore by 2px: the two Sand sections meet on a fractional pixel, and the page's black body showed
   through the anti-aliased seam as a hairline) */

.ai-head { display: grid; gap: clamp(16px, 1.6vw, 24px); justify-items: center; padding: 0 24px; }
/* the hero's type (Sora, regular, tight), at hero size */
.ai-title { font-size: clamp(42px, 5.6vw, 84px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; color: var(--ink); }
.ai-head .ai-soon { justify-self: center; height: 44px; padding: 0 20px 0 17px; font-size: 15px; gap: 9px; }
.ai-head .ai-soon .apple { width: 17px; height: 17px; }

/* the film: big, sized so the copy and the film fit in one screen as Apple's hero does */
.ai-film { position: relative; width: min(100%, 1600px, calc((100svh - 230px) * 16 / 9)); aspect-ratio: 16 / 9;
  margin: clamp(8px, 1.4vw, 20px) auto 0; }
.ai-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
/* the page's grain over the film, and its edges eased into the page */
.ai-film::after { content: ""; position: absolute; inset: 0; background: var(--noise); pointer-events: none; }
.ai-film {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
              linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
  mask-composite: intersect; }

/* the copy fades in: the title as the section comes up, the pill a beat later (app-intro.js adds the classes) */
.ai-title, .ai-head .ai-soon { opacity: 0; transform: translateY(12px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
section.appintro.in .ai-title { opacity: 1; transform: none; }
section.appintro.in2 .ai-head .ai-soon { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .ai-title { font-size: clamp(36px, 10vw, 46px); }
  .ai-film { width: 100%; aspect-ratio: 4 / 5; margin-top: 6px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: add; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-title, .ai-head .ai-soon { opacity: 1; transform: none; transition: none; }
}
