/* The device sheet. The device first — large, floating, lit by a glow of its own colour —
   then its name, what it is for, three facts and one Buy pill; below, plain rows with hairline
   rules, no boxes and no bracketed labels. The panel's position and the page behind are
   driven from sheet.js; this file animates only the content. */
html.sheet-open, html.sheet-open body { overflow: hidden; }
#device-sheet {
  --ink: #fef9ed;
  --muted: rgba(254, 249, 237, .6);
  --faint: rgba(254, 249, 237, .38);
  --rule: rgba(254, 249, 237, .1);
  --panel: #141413;
  --yellow: #fbe154;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  color: var(--ink);
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#device-sheet[hidden] { display: none; }
/* The sheet's tokens, for its pieces on other pages (the device page's facts, Buy pill and rows). */
.sh-scope { --ink: #fef9ed; --muted: rgba(254, 249, 237, .6); --faint: rgba(254, 249, 237, .38); --rule: rgba(254, 249, 237, .1); --yellow: #fbe154; color: var(--ink); }
/* Tags as one line of text with dots between. */
.sh-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0 0; font: 600 12px/1.3 'Inter Display', Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(254, 249, 237, .55); }
.sh-tagline i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
/* The pill in a sticky bar: shorter, no shop name. */
.sh-buy.is-compact { width: auto; height: 48px; padding: 0 5px 0 20px; }
.sh-buy.is-compact .sh-buy-word, .sh-buy.is-compact .sh-buy-price { font-size: 16px; }
.sh-buy.is-compact .sh-buy-arrow { width: 38px; height: 38px; margin-left: 14px; }
.sh-scrim { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .55); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); opacity: 0; cursor: default; }

.sh-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 640px);
  margin-left: calc(min(100%, 640px) / -2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--tint, #3b3a36) 42%, transparent) 0%, transparent 70%), var(--panel);
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(254, 249, 237, .08);
  outline: none;
  touch-action: pan-y;
  will-change: transform;
}
.sh-panel.dragging { cursor: grabbing; }

/* The handle and the two buttons have their own 64px strip; the content scrolls below it,
   never under the buttons. The whole strip drags the sheet. */
.sh-grab { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; padding-top: 10px; height: 64px; cursor: grab; }
.sh-grab span { width: 40px; height: 5px; border-radius: 3px; background: rgba(254, 249, 237, .28); }
.sh-tools { position: absolute; top: 12px; right: 14px; z-index: 4; display: flex; gap: 8px; }
/* A true circle: the site's 44px minimum for buttons used to stretch this 40px one into an oval. */
.sh-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: rgba(24, 24, 22, .66); box-shadow: inset 0 0 0 1px rgba(254, 249, 237, .14), 0 6px 18px -8px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); cursor: pointer; transition: background 160ms ease, transform 200ms cubic-bezier(.23, 1, .32, 1); }
.sh-icon:hover { background: rgba(58, 57, 53, .8); }
.sh-icon:active { transform: scale(.92); }
.sh-icon:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sh-icon.is-done { background: var(--yellow); color: #151515; }
.sh-share-url { margin: 64px 20px 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; background: rgba(254,249,237,.06); color: var(--ink); font: 500 14px/1.3 inherit; }

.sh-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 22px calc(36px + env(safe-area-inset-bottom)); scrollbar-width: none; margin-top: 64px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
.sh-body::-webkit-scrollbar { display: none; }

/* ——— hero ——— */
.sh-hero { padding-top: 6px; }
.sh-stage { position: relative; height: clamp(190px, 30vh, 300px); margin: 0 -22px; display: grid; place-items: center; cursor: grab; }
.sh-glow { position: absolute; left: 50%; top: 50%; width: 70%; height: 80%; object-fit: contain; transform: translate(-50%, -50%) scale(1.25); filter: blur(46px) saturate(1.6) brightness(.9); opacity: .55; pointer-events: none; }
.sh-float { position: relative; width: 78%; height: 84%; display: grid; place-items: center; animation: sh-float 6s ease-in-out infinite alternate; }
/* Absolutely centred in .sh-float: a percentage max-height inside a grid track doesn't resolve,
   and a tall cut-out used to grow past the stage and over the device's name. */
.sh-art { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sh-art.is-cut { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); }
.sh-art.is-photo { max-height: 92%; border-radius: 18px; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .7); }
@keyframes sh-float { from { transform: translateY(-2.5%); } to { transform: translateY(2.5%); } }
.sh-stage::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 5%; height: 8%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); pointer-events: none; }
/* The T-Deck's live model sits over the still and fades in once ready. */
.sh-live { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; cursor: grab; touch-action: pan-y; }
.sh-live canvas { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%); }
.sh-stage.is-live .sh-live { opacity: 1; }
.sh-stage.is-live .sh-float { opacity: 0; transition: opacity 500ms ease; }
.sh-stage.has-live { height: clamp(260px, 42vh, 420px); }

.sh-id { text-align: center; padding: 6px 8px 0; }
.sh-maker { margin: 0; font: 600 11px/1.3 'Inter Display', Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sh-name { margin: 8px 0 0; font: 700 clamp(36px, 9vw, 52px)/.9 'News Cycle', Impact, 'Arial Narrow', sans-serif; letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.sh-line { max-width: 34ch; margin: 12px auto 0; font: 400 16px/1.45 'Instrument Sans', Inter, sans-serif; color: var(--muted); text-wrap: balance; }

.sh-facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 22px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sh-facts div { min-width: 0; padding: 14px 6px; text-align: center; }
.sh-facts div + div { border-left: 1px solid var(--rule); }
.sh-facts dt { font: 600 10px/1.2 'Inter Display', Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sh-facts dd { margin: 7px 0 0; font: 500 14px/1.25 'Instrument Sans', Inter, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.sh-facts dd b { font: 700 22px/1 'News Cycle', Impact, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sh-facts dd small { display: block; margin-top: 5px; font: 500 11px/1.2 'Inter Display', Inter, sans-serif; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-dot { display: inline-flex; align-items: center; gap: 7px; }
.sh-dot i, .sh-state i, .sh-verdict i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.sh-dot.st-listed i, .sh-shop.is-in .sh-state i { background: #7fe3a0; box-shadow: 0 0 8px rgba(127, 227, 160, .7); }
.sh-dot.st-preorder i, .sh-dot.st-crowdfunding i { background: var(--yellow); }
.sh-dot.st-soldout i { background: #ff7a66; }
.bp-open-hardware i { background: #7fe3a0 !important; box-shadow: 0 0 8px rgba(127, 227, 160, .7); }
.bp-schematics i { background: var(--yellow) !important; box-shadow: 0 0 8px rgba(251, 225, 84, .6); }

.sh-cta-row { display: flex; justify-content: center; margin: 20px 0 6px; }
.sh-buy { display: flex; align-items: center; width: 100%; max-width: none; height: 58px; padding: 0 8px 0 24px; border-radius: 999px; background: linear-gradient(180deg, #ffe86e 0%, #fbe154 55%, #f3d63f 100%); color: #151515; text-decoration: none; box-shadow: 0 16px 36px -14px rgba(251, 225, 84, .55), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(21, 21, 21, .12); transition: transform 220ms cubic-bezier(.23, 1, .32, 1), box-shadow 220ms ease; }
.sh-buy-word { font: 600 17px/1 'Instrument Sans', Inter, sans-serif; letter-spacing: -.015em; }
.sh-buy-price { margin-left: 10px; font: 500 17px/1 'Instrument Sans', Inter, sans-serif; color: rgba(21, 21, 21, .62); font-variant-numeric: tabular-nums; }
.sh-buy-from { flex: 1; min-width: 0; margin: 0 12px; overflow: hidden; text-align: right; white-space: nowrap; text-overflow: ellipsis; font: 500 12px/1 'Inter Display', Inter, sans-serif; color: rgba(21, 21, 21, .5); }
.sh-buy-arrow { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #151515; color: var(--yellow); transition: transform 260ms cubic-bezier(.23, 1, .32, 1); }
.sh-buy:hover { transform: translateY(-2px); }
.sh-buy:hover .sh-buy-arrow { transform: translate(2px, -2px) scale(1.04); }
.sh-buy:active { transform: scale(.97); transition-duration: 90ms; }
.sh-buy:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sh-buy.is-quiet { background: rgba(254, 249, 237, .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(254, 249, 237, .26); }
.sh-buy.is-quiet .sh-buy-from { color: var(--faint); }
.sh-buy.is-quiet .sh-buy-arrow { background: rgba(254, 249, 237, .12); color: var(--ink); }

/* ——— sections ——— */
.sh-section { margin-top: 34px; }
.sh-h { margin: 0 0 6px; font: 600 11px/1.3 'Inter Display', Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sh-text { margin: 8px 0 0; font: 400 15px/1.5 'Instrument Sans', Inter, sans-serif; color: var(--muted); }
.sh-note { margin: 10px 0 0; font: 400 12px/1.45 'Instrument Sans', Inter, sans-serif; color: var(--faint); }

.sh-rows { margin: 0; padding: 0; list-style: none; }
.sh-row > a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.sh-row-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sh-row-title { display: flex; align-items: center; gap: 10px; font: 500 16px/1.25 'Instrument Sans', Inter, sans-serif; overflow-wrap: anywhere; }
.sh-row-text { font: 400 14px/1.45 'Instrument Sans', Inter, sans-serif; color: var(--muted); }
.sh-row-sub { font: 500 12px/1.3 'Inter Display', Inter, sans-serif; color: var(--faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sh-go { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(254, 249, 237, .07); color: var(--muted); transition: background 160ms ease, color 160ms ease, transform 220ms cubic-bezier(.23, 1, .32, 1); }
.sh-row > a:hover .sh-go { background: var(--yellow); color: #151515; transform: translate(1px, -1px); }
.sh-state { display: inline-flex; align-items: center; gap: 7px; flex: none; font: 500 13px/1 'Instrument Sans', Inter, sans-serif; color: var(--muted); }
.sh-shop.is-in .sh-state { color: var(--ink); }
.sh-stars { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/1 'Inter Display', Inter, sans-serif; color: var(--yellow); }
.sh-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -1px 0 0; padding: 10px 0 14px; border-bottom: 1px solid var(--rule); font: 500 13px/1.3 'Instrument Sans', Inter, sans-serif; color: var(--muted); }
.sh-code button { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 12px; border: 1px dashed rgba(251, 225, 84, .5); border-radius: 999px; background: rgba(251, 225, 84, .06); color: var(--ink); cursor: pointer; }
.sh-code code { font: 600 13px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .04em; }
.sh-code b { padding: 5px 9px; border-radius: 999px; background: var(--yellow); color: #151515; font: 600 11px/1 'Inter Display', Inter, sans-serif; text-transform: uppercase; }

.sh-verdict { display: flex; align-items: center; gap: 9px; margin: 10px 0 0; font: 700 22px/1 'News Cycle', Impact, sans-serif; letter-spacing: -.01em; text-transform: uppercase; }
.sh-more { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink); text-decoration: none; font: 600 14px/1 'Instrument Sans', Inter, sans-serif; }
.sh-more span { color: var(--faint); font-weight: 500; }
.sh-more svg { margin-left: auto; }
.sh-more:hover { color: var(--yellow); }

.sh-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 10px 0 0; }
.sh-inline a { color: var(--ink); font: 600 15px/1.3 'Instrument Sans', Inter, sans-serif; text-decoration: none; }
.sh-inline a:hover { color: var(--yellow); }
.sh-inline i { width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: var(--faint); }

.sh-fit { margin: 4px 0 0; }
.sh-fit div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sh-fit dt { font: 600 12px/1.45 'Inter Display', Inter, sans-serif; color: var(--faint); }
.sh-fit dd { margin: 0; font: 400 15px/1.45 'Instrument Sans', Inter, sans-serif; color: var(--ink); }

.sh-group { border-bottom: 1px solid var(--rule); }
.sh-group summary { display: flex; align-items: center; gap: 10px; min-height: 54px; cursor: pointer; list-style: none; font: 500 16px/1.2 'Instrument Sans', Inter, sans-serif; }
.sh-group summary::-webkit-details-marker { display: none; }
.sh-count { font: 500 12px/1 'Inter Display', Inter, sans-serif; color: var(--faint); }
.sh-chev { margin-left: auto; display: grid; color: var(--muted); transition: transform 240ms cubic-bezier(.23, 1, .32, 1); }
.sh-group[open] .sh-chev { transform: rotate(180deg); }
.sh-group dl { margin: 0 0 12px; }
.sh-group dl div { display: grid; grid-template-columns: minmax(7em, 38%) 1fr; gap: 14px; padding: 9px 0; }
.sh-group dl div + div { border-top: 1px solid rgba(254, 249, 237, .05); }
.sh-group dt { font: 500 13px/1.45 'Instrument Sans', Inter, sans-serif; color: var(--faint); }
.sh-group dd { margin: 0; font: 400 14px/1.45 'Instrument Sans', Inter, sans-serif; color: var(--ink); overflow-wrap: anywhere; }

.sh-similar { display: flex; gap: 12px; margin: 10px -22px 0; padding: 0 22px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-similar::-webkit-scrollbar { display: none; }
.sh-sim { flex: 0 0 140px; scroll-snap-align: start; display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.sh-sim-art { position: relative; display: block; height: 120px; border-radius: 18px; background: radial-gradient(80% 70% at 50% 40%, rgba(254, 249, 237, .08), rgba(254, 249, 237, .02)); }
.sh-sim-art img { position: absolute; inset: 0; margin: auto; max-width: 78%; max-height: 78%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); transition: transform 300ms cubic-bezier(.23, 1, .32, 1); }
.sh-sim:hover .sh-sim-art img { transform: translateY(-3px) scale(1.04); }
.sh-sim-name { margin-top: 6px; font: 600 14px/1.2 'Instrument Sans', Inter, sans-serif; }
.sh-sim-price { font: 500 12px/1 'Inter Display', Inter, sans-serif; color: var(--muted); }

.sh-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rule); font: 500 12px/1.3 'Inter Display', Inter, sans-serif; color: var(--faint); }
.sh-foot a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 20px; border-radius: 999px; background: rgba(254, 249, 237, .07); box-shadow: inset 0 0 0 1px rgba(254, 249, 237, .16); color: var(--ink); font: 600 14px/1 'Instrument Sans', Inter, sans-serif; text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.sh-foot a:hover { background: rgba(254, 249, 237, .14); }
.sh-foot a:active { transform: scale(.97); }

/* ——— entrance: the device rises, then the words, then the rest ——— */
@keyframes sh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sh-arrive { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
#device-sheet.is-entering .sh-stage > .sh-float > .sh-art { animation: sh-arrive 700ms cubic-bezier(.23, 1, .32, 1) both; }
#device-sheet.is-entering :is(.sh-id, .sh-facts, .sh-cta-row, .sh-section) { animation: sh-rise 560ms cubic-bezier(.23, 1, .32, 1) both; }
#device-sheet.is-entering .sh-id { animation-delay: 70ms; }
#device-sheet.is-entering .sh-facts { animation-delay: 130ms; }
#device-sheet.is-entering .sh-cta-row { animation-delay: 180ms; }
#device-sheet.is-entering .sh-section { animation-delay: 240ms; }

@media (hover: none) { .sh-row > a:hover .sh-go { background: rgba(254, 249, 237, .07); color: var(--muted); transform: none; } }
@media (max-width: 520px) {
  .sh-body { padding-left: 18px; padding-right: 18px; }
  .sh-stage { margin: 0 -18px; }
  .sh-similar { margin: 10px -18px 0; padding: 0 18px 4px; }
  .sh-facts dd b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-float { animation: none; }
  #device-sheet.is-entering * { animation: none !important; }
  .sh-buy, .sh-icon, .sh-go, .sh-chev { transition: none; }
}

/* ═══ The desktop stage (stage.js) ═══════════════════════════════════════════════════════
   The device flies off its card, grows on the left and gains depth; its name rises huge and
   hollow behind it; the sheet's content arrives from the right as a floating side panel. */
html.stage-open, html.stage-open body { overflow: hidden; }
#device-stage {
  --ink: #fef9ed; --muted: rgba(254, 249, 237, .6); --faint: rgba(254, 249, 237, .38); --rule: rgba(254, 249, 237, .1); --yellow: #fbe154;
  --panel-w: clamp(440px, 36vw, 560px);
  position: fixed; inset: 0; z-index: 2147483000; color: var(--ink);
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
#device-stage[hidden] { display: none; }
@keyframes st-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-fade-out { from { opacity: 1; } to { opacity: 0; } }

.st-backdrop { position: absolute; inset: 0; cursor: zoom-out;
  background: radial-gradient(58% 72% at 32% 52%, color-mix(in srgb, var(--tint, #3b3a36) 42%, rgba(12, 12, 11, .88)) 0%, rgba(11, 11, 10, .95) 64%);
  -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15); }
#device-stage.is-in .st-backdrop { animation: st-fade-in 560ms ease both; }
#device-stage.is-out .st-backdrop { animation: st-fade-out 460ms ease both; }

/* The name, hollow and huge, behind the device. */
.st-title { position: absolute; left: 24px; top: 50%; z-index: 1; display: flex; justify-content: center; transform: translateY(-50%); pointer-events: none; }
.st-title-line { font: 700 var(--size, 180px)/.84 'News Cycle', Impact, 'Arial Narrow', sans-serif; letter-spacing: -.03em; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(254, 249, 237, .17); text-wrap: balance; }
.st-w { display: inline-block; overflow: hidden; padding-bottom: .06em; vertical-align: top; white-space: nowrap; }
.st-l { display: inline-block; }
#device-stage.is-in .st-l { animation: st-rise 1000ms cubic-bezier(.2, .9, .12, 1) both; animation-delay: calc(260ms + var(--i) * 34ms); }
#device-stage.is-out .st-l { animation: st-sink 360ms cubic-bezier(.5, 0, .75, 0) both; }
@keyframes st-rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes st-sink { to { transform: translateY(-108%); } }

/* The object: a stack of the cut-out, lit, on a soft floor shadow. */
.st-show { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.st-object, .st-floor, .st-hint, .st-live { pointer-events: auto; }
.st-object { position: absolute; perspective: 1400px; opacity: 0; cursor: grab; touch-action: none; }
#device-stage.has-object .st-object { opacity: 1; }
#device-stage.is-turning .st-object { cursor: grabbing; }
.st-rot { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.st-layer, .st-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.st-layer { filter: brightness(var(--shade, .5)) saturate(.85); }
.st-face { transform: translateZ(0); }
.st-shine { position: absolute; inset: 0; pointer-events: none; transform: translateZ(.6px); mix-blend-mode: soft-light;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, .34) 47%, rgba(255, 255, 255, .06) 55%, transparent 66%) 50% 50% / 280% 280% no-repeat; }
#device-stage.is-sweep .st-shine { animation: st-sweep 1300ms cubic-bezier(.2, .9, .12, 1) both; }
@keyframes st-sweep { from { background-position: 150% 30%; } }
.st-floor { position: absolute; height: 44px; margin-top: -22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); filter: blur(6px); opacity: 0; transition: opacity 600ms ease 200ms; }
#device-stage.has-object .st-floor { opacity: 1; }
.st-hint { position: absolute; display: flex; align-items: center; gap: 9px; margin: 0; transform: translateX(-50%); font: 600 11px/1 'Inter Display', Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); opacity: 0; transition: opacity 600ms ease 1200ms; pointer-events: none; }
#device-stage.has-object .st-hint { opacity: 1; }
#device-stage.is-out .st-hint, #device-stage.is-out .st-floor { transition-delay: 0s; opacity: 0; }
.st-live { position: absolute; opacity: 0; transition: opacity 800ms ease; cursor: grab; }
.st-live canvas { display: block; width: 100%; height: 100%; }
#device-stage.is-live .st-live { opacity: 1; }
#device-stage.is-live .st-object { opacity: 0; transition: opacity 600ms ease; }

/* The flight: a copy of the cut-out travelling from the card to the stage. */
.st-fly { position: fixed; z-index: 2147483001; margin: 0; object-fit: contain; pointer-events: none; transform-origin: 50% 50%; will-change: transform, filter; }

/* The side panel: the sheet's own content, floating on the right. */
.st-panel { position: absolute; top: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; flex-direction: column; width: calc(var(--panel-w) - 32px); overflow: hidden; border-radius: 30px;
  background: linear-gradient(180deg, rgba(30, 30, 28, .9), rgba(18, 18, 17, .94)); -webkit-backdrop-filter: blur(26px) saturate(1.2); backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(254, 249, 237, .08), inset 0 0 0 1px rgba(254, 249, 237, .07), 0 50px 90px -30px rgba(0, 0, 0, .85); outline: none; }
#device-stage.is-in .st-panel { animation: st-panel-in 860ms cubic-bezier(.2, .9, .12, 1) 90ms both; }
#device-stage.is-out .st-panel { animation: st-panel-out 440ms cubic-bezier(.5, 0, .75, 0) both; }
@keyframes st-panel-in { from { transform: translateX(calc(100% + 48px)) rotate(1.5deg); } to { transform: none; } }
@keyframes st-panel-out { to { transform: translateX(calc(100% + 48px)); } }
#device-stage .sh-grab { display: none; }
#device-stage .sh-body { margin-top: 40px; padding: 30px 28px 36px; }
#device-stage .sh-stage { display: none; }
#device-stage .sh-hero { padding-top: 0; }
#device-stage .sh-id { text-align: left; padding: 0; }
#device-stage .sh-name { font-size: clamp(38px, 3.4vw, 54px); text-wrap: balance; }
#device-stage .sh-line { margin-left: 0; margin-right: 0; }
#device-stage.is-in :is(.sh-id, .sh-facts, .sh-cta-row, .sh-section) { animation: sh-rise 700ms cubic-bezier(.23, 1, .32, 1) both; }
#device-stage.is-in .sh-id { animation-delay: 300ms; }
#device-stage.is-in .sh-facts { animation-delay: 380ms; }
#device-stage.is-in .sh-cta-row { animation-delay: 450ms; }
#device-stage.is-in .sh-section { animation-delay: 540ms; }

/* Reduce Motion: nothing flies or rises; things fade, and the device rests level. */
#device-stage.is-reduced.is-in .st-panel { animation: st-fade-in 240ms ease both; }
#device-stage.is-reduced.is-out .st-panel { animation: st-fade-out 200ms ease both; }
#device-stage.is-reduced .st-l, #device-stage.is-reduced.is-in :is(.sh-id, .sh-facts, .sh-cta-row, .sh-section) { animation: none; }
#device-stage.is-reduced.is-out .st-title { animation: st-fade-out 200ms ease both; }
#device-stage.is-reduced .st-object { transition: opacity 260ms ease; }
/* The landing: a bloom of the device's own colour spreads behind it as it gains depth. */
.st-object::before { content: ''; position: absolute; inset: -34%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint, #8a8577) 70%, #fff 8%), transparent 72%); filter: blur(24px); }
#device-stage.is-sweep .st-object::before { animation: st-bloom 1400ms cubic-bezier(.2, .9, .12, 1) both; }
@keyframes st-bloom { 0% { opacity: 0; transform: scale(.55); } 30% { opacity: .55; } 100% { opacity: .16; transform: scale(1.08); } }
#device-stage.is-reduced .st-object::before { animation: none; opacity: .14; }
