/* Homepage studio hero: neutral controls and a lilac P.P-to-Pocket-Pixel introduction. */
.pdh-refined .pdh-initial { color:#b9a2e8; }
.pdh-refined .pdh-word { display:inline-flex; white-space:nowrap; }
.pdh-refined .pdh-initial,.pdh-refined .pdh-tail { display:inline-block; }
.pdh-refined .pdh-word--pocket > .pdh-initial { position:relative; }
.pdh-refined .pdh-word--pocket > .pdh-initial::after {
  content:'.'; position:absolute; left:100%; top:0; opacity:0; pointer-events:none;
}
.name-intro-pending .pdh-refined .pdh-name { visibility:hidden; }

/* A single brand introduction: hold P.P, then open into Pocket Pixel.
   Only the text moves; its final line boxes are reserved from the first paint. */
@media(prefers-reduced-motion:no-preference) {
  .pdh-refined .pdh-name--intro { --intro-rate:1; }
  .pdh-refined .pdh-name--intro .pdh-word--pixel {
    animation:pdh-initial-open calc(650ms * var(--intro-rate)) cubic-bezier(.77,0,.175,1) calc(320ms * var(--intro-rate)) both;
  }
  .pdh-refined .pdh-name--intro .pdh-tail--pocket {
    animation:pdh-tail-open calc(650ms * var(--intro-rate)) cubic-bezier(.77,0,.175,1) calc(320ms * var(--intro-rate)) both;
  }
  .pdh-refined .pdh-name--intro .pdh-tail--pixel {
    animation:pdh-tail-open calc(650ms * var(--intro-rate)) cubic-bezier(.23,1,.32,1) calc(380ms * var(--intro-rate)) both;
  }
  .pdh-refined .pdh-name--intro .pdh-word--pocket > .pdh-initial::after {
    animation:pdh-dot-away calc(160ms * var(--intro-rate)) cubic-bezier(.23,1,.32,1) calc(320ms * var(--intro-rate)) both;
  }
}
@keyframes pdh-initial-open {
  from { transform:translate(var(--initial-x),var(--initial-y)); }
  to { transform:translate(0,0); }
}
@keyframes pdh-tail-open {
  from { opacity:0; clip-path:inset(0 100% 0 0); }
  to { opacity:1; clip-path:inset(0 0 0 0); }
}
@keyframes pdh-dot-away { from { opacity:1; } to { opacity:0; } }
.pdh-vh { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* Small navigation actions share the same corner geometry, with less emphasis. */
body.pp-refined :is(#pp-header,#pp-menu) .pp-shop {
  border:1px solid rgba(243,243,240,.28); border-radius:4px;
  background:transparent; color:#f3f3f0; min-height:34px;
}
body.pp-refined :is(#pp-header,#pp-menu) .pp-shop__price { color:#b7b9bd; }
body.pp-refined :is(#pp-header,#pp-menu) .pp-shop__price::before { background:rgba(243,243,240,.24); }
body.pp-refined :is(#pp-header,#pp-menu) .pp-btn { border-radius:4px; }
body.pp-refined #pp-menu .pp-shop--wide { background:#eeefeb; color:#17191c; }
body.pp-refined #pp-menu .pp-shop--wide .pp-shop__price { color:#55595c; }
body.pp-refined .pdh-skip { background:#eeefeb; color:#17191c; }

/* Premium product hero: editorial type, quiet retro cues, equal model choices. */
.pp-hero-premium.s1 {
  display:block; min-height:0; padding:52px 0 44px; overflow:clip;
  background:#131519; color:#f3f3f0; color-scheme:dark;
  font-family:'Inter',Arial,sans-serif; -webkit-font-smoothing:antialiased;
}
.pph-wrap { width:min(calc(100% - 112px),1200px); margin-inline:auto; }
.pph-intro { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(250px,.7fr); align-items:end; gap:48px; }
.pp-hero-premium.s1 .pph-title {
  max-width:none; margin:0; font:700 clamp(64px,7.2vw,102px)/1.04 'Space Grotesk',Arial,sans-serif;
  letter-spacing:-.065em; text-wrap:initial;
}
.pph-title > .pdh-name { display:block; color:inherit; }
.pph-subtitle { margin:12px 0 0; color:#adb0b6; font:400 clamp(14px,1.4vw,18px)/1.5 'Inter',Arial,sans-serif; letter-spacing:-.02em; }
.pph-count-plus { color:#c5ad79; }
.pph-intro-side { padding:0 0 5px; }
.pph-description { margin:0; color:#adb0b6; font:400 15px/1.7 'Inter',Arial,sans-serif; letter-spacing:-.025em; }
.pph-description strong { color:#f3f3f0; font-weight:500; }
.pph-compare { display:inline-flex; align-items:center; gap:15px; min-height:44px; margin-top:13px; color:#d8d9dc; text-decoration:none; font-size:12px; font-weight:500; }
.pph-compare > span { color:#b9a2e8; font-size:19px; line-height:1; }
.pph-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:48px; margin-top:42px; }
.pph-product { min-width:0; padding-top:16px; border-top:1px solid #3d3f45; }
.pph-format { display:flex; align-items:center; gap:9px; margin:0; color:#aeb0b7; font:400 10px/1.5 'IBM Plex Mono',monospace; letter-spacing:.06em; text-transform:uppercase; }
.pph-format-mark { position:relative; display:block; flex:none; width:15px; height:9px; border:1px solid #8e9199; border-radius:2px; }
.pph-format-mark::after { content:''; position:absolute; inset:2px 4px; border:1px solid #8e9199; border-radius:1px; }
.pph-format-mark--s { width:9px; height:13px; }
.pph-format-mark--s::after { inset:2px 1px 5px; }
.pph-visual { display:flex; align-items:flex-end; justify-content:center; height:360px; margin:0; color:inherit; isolation:isolate; }
/* R36S crops the source photograph; R36H uses its own crop of it with the casing edges slimmed 15%. */
.pph-art { position:relative; display:block; flex:none; overflow:hidden; }
.pph-art img {
  position:absolute; max-width:none; height:auto; mix-blend-mode:lighten;
  -webkit-mask-image:url('art/hero-studio/hero-console-mask.svg?v=20261021-premium'); mask-image:url('art/hero-studio/hero-console-mask.svg?v=20261021-premium');
  -webkit-mask-size:100% 100%; mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-composite:source-over; mask-composite:add;
}
/* Both consoles stand flush on one floor line: each drops by the empty space under it in its picture (19.9% R36H, 8.2% R36S). */
.pph-art--h { width:min(115%,618px); aspect-ratio:930/520; transform:translateY(calc(19.9% - 19px)); }
.pph-art--h img { width:100%; left:0; top:0; -webkit-mask-image:url('art/hero-studio/hero-console-mask-white-slim.svg?v=20261021-short-floor'); mask-image:url('art/hero-studio/hero-console-mask-white-slim.svg?v=20261021-short-floor'); }
.pph-art--s { width:229px; aspect-ratio:500/840; transform:translateY(calc(8.2% - 19px)); }
.pph-art--s img { width:333.6%; left:-210%; top:-8.333333%; }
.pph-details { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 0 20px; }
.pph-details h2 { margin:0; color:#f3f3f0; font:500 22px/1.05 'Space Grotesk',Arial,sans-serif; letter-spacing:-.05em; }
.pph-model-end { color:#c5ad79; }
.pph-colour { display:flex; align-items:center; gap:7px; margin-top:9px; color:#aeb0b7; font-size:12px; line-height:1.2; }
.pph-swatch { width:7px; height:7px; flex:none; border-radius:50%; border:1px solid rgba(255,255,255,.35); }
.pph-swatch--white { background:#eeefeb; }
.pph-swatch--purple { background:#a585de; }
.pph-price { margin:0; color:#f3f3f0; font:400 24px/1.2 'Inter',Arial,sans-serif; letter-spacing:-.05em; white-space:nowrap; }
.pph-price > span { display:inline-block; margin-left:2px; color:#aeb0b7; font:400 10px/1 'IBM Plex Mono',monospace; letter-spacing:0; }
.pph-shop { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:50px; padding:13px 18px; border:1px solid #eeefeb; border-radius:6px; color:#17191c; background:#eeefeb; font:500 13px/1.3 'Inter',Arial,sans-serif; letter-spacing:-.02em; text-decoration:none; transition:background-color 150ms ease,border-color 150ms ease; }
.pph-shop svg { flex:none; }
.pph-assurances { display:flex; justify-content:center; align-items:center; gap:36px; margin:30px 0 0; padding:22px 0 0; border-top:1px solid #2d3035; list-style:none; color:#aeb0b7; font-size:11px; line-height:1.5; }
.pph-assurances li { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.pph-assurances svg { color:#b9a2e8; flex:none; }
.pp-hero-premium a:focus-visible { outline:2px solid #b9a2e8; outline-offset:5px; border-radius:4px; }
@media(hover:hover) and (pointer:fine) {
  .pph-shop:hover { color:#17191c; background:#fff; border-color:#fff; }
  .pph-compare:hover { color:#fff; text-decoration:underline; text-underline-offset:5px; }
  body.pp-refined :is(#pp-header,#pp-menu) .pp-shop:hover { background:rgba(255,255,255,.08); }
  body.pp-refined #pp-menu .pp-shop--wide:hover { background:#fff; }
}
@media(max-width:1100px) {
  .pph-wrap { width:calc(100% - 72px); }
  .pph-intro { grid-template-columns:minmax(0,1.8fr) minmax(220px,.8fr); gap:28px; }
  .pp-hero-premium.s1 .pph-title { font-size:clamp(58px,6.6vw,74px); }
  .pph-description { font-size:13px; }
  .pph-products { gap:36px; }
  .pph-visual { height:315px; }
  .pph-art--s { width:194px; }
}
@media(max-width:760px) {
  .pp-hero-premium.s1 { padding:32px 0; }
  .pph-wrap { width:calc(100% - 48px); }
  .pph-intro { grid-template-columns:minmax(0,1fr); gap:20px; }
  .pp-hero-premium.s1 .pph-title { font-size:clamp(48px,9.6vw,72px); }
  .pph-intro-side { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:0; }
  .pph-description { font-size:14px; line-height:1.55; }
  .pph-compare { margin:0; font-size:11px; gap:8px; }
  .pph-products { gap:24px; margin-top:28px; }
  .pph-visual { height:248px; }
  .pph-art--h { transform:translateY(calc(19.9% - 16px)); }
  .pph-art--s { width:154px; transform:translateY(calc(8.2% - 16px)); }
  .pph-details { gap:8px; padding-bottom:17px; }
  .pph-details h2 { font-size:20px; }
  .pph-price { font-size:21px; }
  .pph-price > span { font-size:8px; }
  .pph-assurances { gap:22px; }
}
@media(max-width:480px) {
  .pph-wrap { width:calc(100% - 40px); }
  .pp-hero-premium.s1 { padding-top:28px; }
  .pp-hero-premium.s1 .pph-title { font-size:clamp(44px,13.2vw,62px); line-height:1.08; }
  .pph-intro { gap:18px; }
  .pph-intro-side { display:block; }
  .pph-description { font-size:13px; }
  .pph-description br { display:none; }
  .pph-description strong { display:block; }
  .pph-compare { margin-top:5px; }
  .pph-products { gap:20px; margin-top:23px; }
  .pph-format { font-size:9px; gap:6px; letter-spacing:.015em; }
  .pph-format-mark { transform:scale(.9); }
  .pph-visual { height:206px; }
  .pph-art--h { width:calc(103% + 54px); transform:translate(3px,calc(19.9% - 16px)); }
  .pph-art--s { width:123px; transform:translate(6px,calc(8.2% - 16px)); }
  .pph-details { display:block; padding-bottom:15px; }
  .pph-details h2 { font-size:20px; }
  .pph-colour { margin-top:7px; font-size:11px; }
  .pph-price { margin-top:14px; font-size:22px; }
  .pph-price > span { font-size:9px; }
  .pph-shop { min-height:46px; padding:12px; font-size:12px; }
  .pph-shop svg { width:17px; height:17px; }
  .pph-assurances { flex-wrap:wrap; justify-content:flex-start; gap:10px 16px; margin-top:24px; padding-top:19px; font-size:11px; }
  .pph-assurances li:first-child { width:100%; }
}
@media(min-width:761px) {
  .pph-art--h { width:min(103%,536px); }
}
@media(min-width:761px) and (max-height:850px) {
  .pp-hero-premium.s1 { padding-top:32px; padding-bottom:30px; }
  .pp-hero-premium.s1 .pph-title { font-size:clamp(58px,6.5vw,88px); }
  .pph-products { margin-top:30px; }
  .pph-visual { height:274px; }
  .pph-art--h { width:min(103%,464px); }
  .pph-art--s { width:167px; }
  .pph-assurances { margin-top:24px; padding-top:18px; }
}
@media(prefers-reduced-motion:reduce) {
  .pph-shop { transition:none; }
}

/* Shopping from the hero (22 Oct 2026): each card is one link, a short layout line under each name,
   and one clear yellow "Choose your console" action under the two prices (the same action as the
   sections below). The name's link stretches over its whole card, so the picture, name and price all open it.
   No arrow after the names (owner, 22 Oct): hover, press and keyboard focus light the card's top line and turn the
   name lilac, the P's colour in Pocket Pixel (style.css would otherwise turn it violet on hover). The gold H and S stay gold. */
.pph-product { position:relative; -webkit-tap-highlight-color:transparent; transition:border-color 160ms ease; }
.pph-details { align-items:flex-start; }
.pph-details .pph-price { margin-top:-3px; }
.pph-link { color:inherit; text-decoration:none; transition:color 150ms ease; }
.pp-hero-premium .pph-link:hover { color:inherit; }
.pph-link::after { content:''; position:absolute; inset:0; z-index:1; border-radius:6px; }
.pp-hero-premium .pph-link:focus-visible { outline:none; }
.pph-link:focus-visible::after { outline:2px solid #b9a2e8; outline-offset:6px; }
.pph-layout { margin:7px 0 0; color:#aeb0b7; font:400 13px/1.35 'Inter',Arial,sans-serif; letter-spacing:-.01em; }
.pph-visual { transform-origin:50% 100%; transition:transform 160ms cubic-bezier(.23,1,.32,1); }
.pph-product:has(.pph-link:focus-visible) { border-top-color:#b9a2e8; }
.pph-product:active { border-top-color:#b9a2e8; }
.pp-hero-premium .pph-product:active .pph-link, .pph-product:has(.pph-link:focus-visible) .pph-link { color:#b9a2e8; }
.pph-product:active .pph-visual { transform:scale(.98); transition-duration:100ms; }

.pph-cta { display:flex; justify-content:center; margin-top:30px; }
.pp-hero-premium .pph-choose {
  display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:54px; padding:15px 26px 15px 30px;
  border-radius:7px; background:#ffd25a; color:#272619; font:600 17px/1.2 'Barlow',Arial,sans-serif; letter-spacing:0;
  text-decoration:none; white-space:nowrap; -webkit-tap-highlight-color:transparent;
  transition:background-color 150ms ease, transform 160ms cubic-bezier(.23,1,.32,1);
}
.pph-choose svg { flex:none; transition:transform 160ms cubic-bezier(.23,1,.32,1); }
.pp-hero-premium .pph-choose:active { transform:scale(.97); }
.pp-hero-premium .pph-choose:focus-visible { outline:2px solid #f3f3f0; outline-offset:4px; border-radius:7px; }
/* the three ticks now read as the button's small print */
.pph-cta + .pph-assurances { margin-top:16px; padding-top:0; border-top:0; }
@media(hover:hover) and (pointer:fine) {
  .pph-product:hover:not(:active) { border-top-color:rgba(185,162,232,.75); }
  .pp-hero-premium .pph-link:hover { color:#b9a2e8; }
  .pp-hero-premium .pph-choose:hover { background:#ffdb79; color:#272619; }
  .pph-choose:hover svg { transform:translateX(3px); }
}
@media(max-width:760px) {
  .pph-layout { font-size:12px; }
  .pph-cta { margin-top:22px; }
}
/* Phones: less air above and between the two cards, so both prices and the button sit above the cookie notice
   on first load in the Instagram and Facebook browsers (about 390 x 664). The consoles keep their size, except
   that the upright R36S is a little smaller on short screens. */
@media(max-width:480px) {
  .pp-hero-premium.s1 { padding-top:16px; padding-bottom:28px; }
  .pp-hero-premium.s1 .pph-title { font-size:clamp(44px,12vw,62px); }
  .pph-subtitle { margin-top:8px; }
  .pph-intro { gap:14px; }
  .pph-products { margin-top:14px; }
  .pph-product { padding-top:12px; }
  .pph-details { padding-bottom:10px; }
  .pph-layout { margin-top:4px; }
  .pph-details .pph-price { margin-top:6px; }
  .pph-cta { margin-top:12px; }
  .pp-hero-premium .pph-choose { width:100%; min-height:52px; }
  .pph-cta + .pph-assurances { justify-content:center; margin-top:14px; }
  .pph-cta + .pph-assurances li:first-child { width:auto; }
}
/* Phones from 340px wide: "The original software" and "20,000+ classic games." share one row under the name. */
@media(min-width:340px) and (max-width:480px) {
  .pph-intro { grid-template-columns:auto auto; justify-content:space-between; align-items:start; column-gap:16px; row-gap:8px; }
  .pph-intro > div:first-child { display:contents; }
  .pp-hero-premium.s1 .pph-title { grid-column:1 / -1; }
  .pph-subtitle { margin:0; }
  .pph-intro-side { padding-top:2px; }
}
@media(max-width:480px) and (max-height:740px) {
  .pph-visual { height:190px; }
  .pph-art--s { width:112px; }
  /* "Plays out of the box" under the button says the same */
  .pph-description__more { display:none; }
}
@media(max-width:480px) and (max-height:600px) {
  .pph-visual { height:176px; }
  .pph-art--s { width:104px; }
}
@media(min-width:761px) and (max-height:850px) {
  .pph-cta { margin-top:24px; }
}
@media(prefers-reduced-motion:reduce) {
  .pph-product, .pph-visual, .pph-choose, .pph-choose svg { transition:none; }
  .pph-product:active .pph-visual, .pp-hero-premium .pph-choose:active { transform:none; }
  .pph-choose:hover svg { transform:none; }
}
