/* V2-00 · the intro film (owner's Higgsfield cut, 10 Nov 2026), replacing the CSS stand-in (hero-film.*).
   The Hub turns in the dark, the linen dissolves in, it settles into the pillow and the Deactivator lands beside it.
   Plays once, muted, and holds on the last frame. --d (0 → 1) follows the dissolve to linen and turns the headline,
   points and nav from white to ink (hero-video.js).
   Phones: the 16:9 film sits as a wide band between the headline and the buy row, so both devices stay in shot, and a
   blurred copy of the same frame fills the screen behind it. */
.hero { --d: 0; background: #000; }
.hv { position: absolute; inset: 0; overflow: hidden; background: #000; }
.hv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hv-fill { display: none; }
/* Desktop: the film's devices sit high in its frame (centre at 38% of its height), so the film drops 16% (12% before the centred headline, 13 Nov 2026) to bring the
   pair to the middle of the screen; the band it leaves at the top is the film's own top edge, stretched and blurred
   (hero-video.js paints it), and the film fades into it (owner, 10 Nov 2026). */
@media (min-width: 900px) {
  .hv-fill { display: block; position: absolute; left: -5%; top: -5%; width: 110%; height: 110%; filter: blur(30px); }
  .hv-video { top: var(--hv-drop, 16%); object-position: 50% 0%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 10%); }
}
.hv-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(235,227,214,calc(var(--d) * .45)) 0%, rgba(235,227,214,0) 30%),
              linear-gradient(0deg, rgba(235,227,214,calc(var(--d) * .35)) 0%, rgba(235,227,214,0) 22%); }

@media (max-width: 899px) {
  /* turned on its side (owner, 13 Nov 2026): on phones the film runs down the screen, rotated a quarter turn
     clockwise, so the pair stacks one above the other and fills the tall screen. --hv-w (hero-video.js) is the
     film's length: up to 2.4 screen widths, less on short phones so the pair stays between the headline and the
     price pill. It shifts left by an eighth of its height so the pair (38% down the film) sits in the middle. The
     blurred backdrop is turned the same way, so its colour matches the film's edges. */
  .hv-fill { display: block; position: absolute; left: 50%; top: 50%; width: calc(max(100svh, 600px) * 1.2); height: 120vw;
    transform: translate(-50%, -50%) rotate(90deg); filter: blur(26px); }
  .hv-video { inset: auto; left: 50%; top: var(--hv-mid, 55%); width: var(--hv-w, 240vw); height: auto; aspect-ratio: 16 / 9;
    transform: translate(calc(-50% - var(--hv-w, 240vw) * .0703), -50%) rotate(90deg);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
                        linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
                        linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-composite: intersect; }
}


/* Phones (owner, 17 Nov 2026): the 9:16 hero film in place of the desktop film (and of the kitchen photo before it).
   It fills the screen; the devices sit in the middle of its frame, so the sides can crop on narrow phones. Dark all
   through, so the words stay white (hero-video.js). */
.hv-phone { display: none; }
@media (max-width: 899px) {
  .hv { background: #000; }
  .hv-video, .hv-fill { display: none; }
  .hv-phone { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
}

/* The two parts named under the devices on phones (owner, 17 Nov 2026): a small spaced label and one plain line each,
   left-aligned under its own device (left/top/width come from hero-video.js), in on the Deactivator's arrival */
.hero-pair { display: none; }
@media (max-width: 899px) {
  .hero-pair { display: block; position: absolute; z-index: 1; inset: 0; pointer-events: none; }
  .hp { position: absolute; display: grid; gap: 6px; margin: 0; font-size: clamp(12.5px, 3.5vw, 15px); font-weight: 300;
    line-height: 1.4; color: rgba(242, 238, 232, .78); align-content: start;
    opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
  .hp-name { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(242, 238, 232, .55); }
  .hp-de { gap: 0; }
  .hp-de .hp-name { margin-bottom: 6px; }                 /* each sentence on its own line, the label spaced as above */
  .hp.on { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hp { transition: none; } }

/* The words over the film: white in the dark, ink once the linen is in */
.hero .hero-foot, .hero .hero-claim { color: color-mix(in srgb, var(--ink) calc(var(--d) * 100%), #f2eee8); }

/* After Apple's product hero (owner, 13 Nov 2026): the name small, the line large, both centred over the film; the
   price and Pre-order in a frosted platter, bottom centre */
.hero .hero-claim { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 30px);
  display: grid; gap: 8px; justify-items: center; text-align: center; }
.hero-eyebrow { font-size: 17px; font-weight: 400; letter-spacing: .06em; }   /* "2 PART ALARM SYSTEM", in capitals (owner, 13 Nov 2026) */
.hero .hero-claim h1 { max-width: 12ch; font-size: 44px; font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.hero .hero-foot { grid-template-columns: 1fr; justify-items: center; bottom: 24px; }
.hero .hero-buy { justify-content: center; width: 100%; }
.hero-platter { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 560px;
  padding: 10px 10px 10px 20px; border-radius: 999px; color: var(--ink);
  background: rgba(240, 233, 222, .62); border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 40px -24px rgba(22, 19, 15, .35); }
.hero .hero-price { display: grid; gap: 1px; font-size: 13px; line-height: 1.35; font-weight: 400; letter-spacing: 0; text-align: left; }
.hero .hero-price span { white-space: nowrap; }
.hero .hero-price span + span { color: var(--ink-soft); font-weight: 300; }
.hero-platter .btn { flex: 0 0 auto; height: 44px; padding: 0 20px; min-width: 0; }
@media (min-width: 900px) {
  .hero .hero-claim { top: calc(var(--nav-h) + 40px); gap: 10px; }
  .hero-eyebrow { font-size: clamp(17px, 1.5vw, 21px); }
  .hero .hero-claim h1 { max-width: none; font-size: clamp(52px, 6vw, 84px); }
  .hero .hero-foot { grid-template-columns: 1fr; bottom: 36px; }
  .hero-platter { width: auto; max-width: none; gap: 36px; padding: 12px 12px 12px 30px; }
  .hero .hero-price { font-size: 15px; }
  .hero-platter .btn { height: 46px; padding: 0 28px; }
}

/* The name, the line and the platter wait in the dark and fade in as the Hub falls into the pillow */
.hero .hero-eyebrow, .hero .hero-claim h1, .hero .hero-buy { opacity: 0; will-change: opacity, transform; }

/* Pinned (owner, 12 Nov 2026): the hero holds still and the next section slides up over it, like Order under Pro.
   The film keeps its last frame underneath until it is covered. */
.hero { position: sticky; top: 0; z-index: 0; }
.hero + .intro { position: relative; z-index: 1; box-shadow: 0 -24px 60px rgba(22, 19, 15, .10); }
.hero-pin { position: relative; }

/* 02 · The intro as frosted glass (owner, 17 Nov 2026), after Apple Vision Pro's statement panel: it slides up over the
   pinned hero, the film blurred behind it, and three short centred paragraphs say what PYRA is. Its foot melts into
   the Sand of Why PYRA. Phones carry the same frost as desktop (owner, 17 Nov 2026; it was a denser, nearly solid Sand). */
section.intro.intro-glass { display: grid; grid-template-columns: 1fr; place-items: center; min-height: 100svh;
  padding: calc(var(--nav-h) + 64px) var(--gutter) 128px;
  background: rgba(236, 229, 217, .58) var(--noise);
  -webkit-backdrop-filter: blur(48px) saturate(1.25); backdrop-filter: blur(48px) saturate(1.25); }
section.intro.intro-glass::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; pointer-events: none;
  background: var(--paper) var(--noise);                                /* the page's Sand, grain and all, faded in */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000); mask-image: linear-gradient(180deg, transparent, #000); }
.ig-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.05em; max-width: 22ch; text-align: center;
  font-size: clamp(26px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.ig-copy p { margin: 0; }
.ig-copy p span { color: var(--ink-soft); }
/* Phones don't show this panel (owner, 17 Nov 2026: "delete this section only for mobile"); the hero runs straight
   into Why PYRA. (Tried there first: the same frost as desktop, and Why PYRA rising into the panel's empty foot.) */
@media (max-width: 899px) {
  section.intro.intro-glass { display: none; }
  /* the hero still pins on phones (owner, 17 Nov 2026): it holds still for a screen while Why PYRA slides up over it.
     The pin's room (a screen-tall spacer: sticky can't run into padding) is handed straight back by Why PYRA's
     negative margin, so the page's length and everything after it are unchanged. */
  .hero-pin::after { content: ""; display: block; height: 100svh; }
  .hero-pin + .why-open { margin-top: -100svh; z-index: 1; box-shadow: 0 -24px 60px rgba(22, 19, 15, .18); }
}
