/* Concept 1, Pressure: the live hatch behind the hero and The Flow. */

.pz { position: relative; overflow-x: clip; }
.pz__canvas { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.pz > section { position: relative; z-index: 1; }

/* hero */
.pz-hero { cursor: default; }
.pz-hero .hero__mark { top: auto; bottom: 6%; left: 0; transform: none; font-size: clamp(140px, 30vw, 520px); -webkit-text-stroke-color: rgba(255,255,255,.06); }
.pz-hero .hero__title { font-size: clamp(50px, min(9.6vw, 17svh), 140px); max-width: none; }
.pz-hero .hero__title .hc { display: inline-block; }
.pz-hero .hero__lede { max-width: 44ch; }
.pz-hero .hero__row { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.pz-hero .hero__facts { max-width: 760px; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.pz-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pz-hint .key { min-width: 20px; height: 20px; font-size: 10px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
@media (max-width: 999px) {
  .pz-hero .hero__inner { padding-top: 46svh; }
  .pz-hero .hero__title { font-size: clamp(44px, 13vw, 96px); }
  .pz-hint { display: none; }
}
/* phones: the hero content sits over the airlock instead of below it. The hatch is dimmed behind, and the text and buttons
   are full white with a soft dark halo so they stay crisp over the dial */
@media (max-width: 560px) {
  .pz-hero { padding-top: var(--nav-h); }
  .pz-hero .hero__inner { padding-top: 3svh; padding-bottom: 28px; }
  #pzCanvas { opacity: .35; }
  .pz-hero .hero__title, .pz-hero .hero__lede, .pz-hero .cta__sub, .pz-hero .hero__facts .label, .pz-hero .hero__facts b, .pz-hero .hero__eyebrow, .pz-hero .hero__eyebrow * { color: #fff; }
  .pz-hero .hero__title .line > span { text-shadow: 0 0 22px rgba(0, 0, 0, .85), 0 0 60px rgba(0, 0, 0, .8); }
  .pz-hero .hero__lede, .pz-hero .cta__sub { text-shadow: 0 0 14px rgba(0, 0, 0, .9); }
  /* the two buttons: stacked, the same width and height, the label on the left and its arrow on the right */
  .pz-hero .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .pz-hero .hero__cta .btn { width: 100%; min-height: 68px; padding: 0 24px; justify-content: space-between; }
}

/* The Flow, pinned */
@media (max-width: 999px) {
}

/* menu bar */
.mb__rule { margin-bottom: clamp(36px, 5vw, 64px); }   /* the SEQ line runs the full width, above the window and the text */
.mb__fig { position: relative; display: grid; place-items: center; padding: clamp(20px, 4vw, 60px); }
/* the menu bar window, built in HTML to match the app (laid out at 340×404, scaled to its column by js/site.js) */
.mb__comets { position: absolute; left: -30%; top: -30%; width: 160%; height: 160%; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent); mask-image: radial-gradient(closest-side, #000 50%, transparent); }
.mbx { --din: "DIN Alternate", "DIN", var(--display); position: relative; width: min(100%, 340px); aspect-ratio: 340 / 404; border-radius: 12px; overflow: hidden; color: #e9edf2; font-family: var(--din);
  background: radial-gradient(ellipse 100% 72% at 0 0, rgb(8, 20, 25), #000);   /* sampled from the app: a teal glow from the top-left corner */
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 50px 100px -30px rgba(0,0,0,.9), 0 0 280px -10px rgba(84,209,255,.34); }
.mbx .acc { color: var(--accent); } .mbx .amb { color: var(--warn); }
.mbx__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.mbx__in { position: absolute; left: 0; top: 0; width: 340px; height: 404px; transform-origin: 0 0; transform: scale(var(--k, 1)); display: grid; grid-template-rows: auto auto auto 1fr auto; padding: 0 20px; }
.mbx__hd { display: flex; align-items: center; gap: 8px; height: 30px; }
.mbx__hd svg { width: 19px; height: 19px; margin-left: -1px; }
.mbx__hd b { font: 700 14px/1 var(--din); letter-spacing: .24em; }
.mbx__hd svg, .mbx__hd b { position: relative; top: 3px; }   /* the logo and name sit a little lower than the row */
.mbx__live { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 600 10px/1 var(--din); letter-spacing: .12em; color: #3fd17c; }
.mbx__live i { width: 7px; height: 7px; border-radius: 50%; background: #3fd17c; box-shadow: 0 0 8px #3fd17c; animation: mbxpulse 2.4s ease-in-out infinite; }
.mbx__stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 19px -9px 0; }
.mbx__stats b { display: block; font: 700 24px/1 var(--din); }
.mbx__stats span { display: block; margin-top: 9px; font: 600 9px/1 var(--din); letter-spacing: .22em; color: #8d96a1; text-transform: uppercase; }
.mbx__wait { margin-top: 26px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.mbx__wl { display: flex; justify-content: space-between; font: 600 9.5px/1 var(--din); letter-spacing: .16em; color: #8d96a1; }
.mbx__wl em { font-style: normal; color: #cfd5dc; letter-spacing: .08em; }
.mbx__bar { position: relative; height: 2px; margin-top: 9px; background: rgba(255,255,255,.08); }
.mbx__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 80%; background: var(--warn); box-shadow: 0 0 8px rgba(255,184,51,.8); }
.mbx__next { padding-top: 17px; }
.mbx__next > span { display: block; font: 600 9.5px/1 var(--din); letter-spacing: .19em; color: #8d96a1; }
.mbx__next ul { display: grid; margin-top: 6px; }
.mbx__next li { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; height: 30px; }
.mbx__next li em { font: 600 10.5px/1 var(--din); font-style: normal; letter-spacing: .08em; }
.mbx__next li span { font: 500 13.8px/1 var(--din); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbx__tray { display: flex; align-items: center; gap: 10px; height: 30px; margin-top: 15px; padding: 0 12px 0 16px; border: 1px solid rgba(255,184,51,.45); background: rgba(255,184,51,.06); color: var(--warn); font: 500 12.7px/1 var(--din); }
.mbx__tray svg { width: 13px; height: 13px; } .mbx__tray svg:last-child { margin-left: auto; }
.mbx__ft { display: flex; align-items: center; height: 38px; padding: 4px 20px 0; margin: 0 -20px; border-top: 1px solid rgba(255,255,255,.07); }
.mbx__open { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--din); letter-spacing: .15em; color: var(--accent); }
.mbx__open svg { width: 12px; height: 12px; }
.mbx__ft .i { width: 17px; height: 17px; color: #c9ced4; }
.mbx__ft .i:first-of-type { margin-left: auto; } .mbx__ft .i + .i { margin-left: 25px; }
.mbx__quit { margin-left: 17px; font: 500 12.5px/1 var(--din); color: #c9ced4; }
@keyframes mbxpulse { 50% { opacity: .45; box-shadow: 0 0 3px #3fd17c; } }
#menubar .sh { margin-bottom: 36px; }
.pz-hero .hero__title .hw { display: inline-block; white-space: nowrap; }

/* Tidy Up: a rule list on the left, the app at its real size on the right, cut off at the container's edge */
.tidy__title { max-width: none; }
.tidy__split { margin-top: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .tidy__split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
/* the list: five items spread down the height of the window, each rule drawn in on scroll (see site.js) */
.tidy__list li, .ejx__feats li, .shx__feats li, .tray__feats li, .mb__feats li, .prv__rules li { position: relative; border-top-color: transparent; }
.tidy__list li:last-child, .ejx__feats li:last-child, .shx__feats li:last-child, .tray__feats li:last-child, .mb__feats li:last-child, .prv__rules li:last-child { border-bottom-color: transparent; }
.tidy__list li::before, .tidy__list li:last-child::after, .ejx__feats li::before, .ejx__feats li:last-child::after, .shx__feats li::before, .shx__feats li:last-child::after, .tray__feats li::before, .tray__feats li:last-child::after, .mb__feats li::before, .mb__feats li:last-child::after, .prv__rules li::before, .prv__rules li:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(var(--ln, 1)); transform-origin: left; }
.tidy__list li:last-child::after, .ejx__feats li:last-child::after, .shx__feats li:last-child::after, .tray__feats li:last-child::after, .mb__feats li:last-child::after, .prv__rules li:last-child::after { top: auto; bottom: -1px; }
@media (min-width: 1000px) {
  .tidy__list { grid-auto-rows: 1fr; height: 660px; }
  .tidy__list li { align-content: center; padding-block: 0; gap: 18px; grid-template-columns: 40px 1fr; }
  .tidy__list b { font-size: 16px; margin-bottom: 8px; }
  .tidy__list span { font-size: 16px; line-height: 1.55; }
}
.tidy__view { position: relative; overflow: hidden; box-sizing: border-box; height: 940px; margin: -120px 0 -120px -120px; padding: 120px 0 120px 120px;
  --fade-b: linear-gradient(to bottom, #000 0, #000 calc(100% - 260px), transparent calc(100% - 120px)); --fade-r: linear-gradient(to right, #000 0, #000 calc(100% - 260px), transparent 100%);
  -webkit-mask-image: var(--fade-b), var(--fade-r); -webkit-mask-composite: source-in; mask-image: var(--fade-b), var(--fade-r); mask-composite: intersect; }
@media (max-width: 999px) { .tidy__view { height: 760px; } }
.tidy__img { display: block; width: 1440px; max-width: none; height: 900px; border-radius: 12px 0 0 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.13), 0 2px 0 rgba(255,255,255,.06) inset, 0 50px 120px -20px rgba(0,0,0,.9), 0 0 280px -10px rgba(84,209,255,.34); }
/* more room above and left of the window, so its glow isn't clipped */
@media (min-width: 1000px) { .tidy__view { height: 1140px; margin: -320px 0 -120px -320px; padding: 320px 0 120px 320px; } }
@media (max-width: 999px) { .tidy__img { border-radius: 12px; } }

/* Installers: a Finder sidebar over the app's Installers list; the installer drives eject as you scroll (js/eject.js) */
.ejx { margin-top: clamp(8px, 2vw, 24px); overflow-x: clip; }
.ejx__stage { position: relative; display: grid; padding-bottom: 24px; }
.ejx__stage > * { grid-area: 1 / 1; }
.ejx__app { position: relative; align-self: start; margin: 0 0 0 clamp(60px, 14%, 150px); }
.ejx__app img { display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.13), 0 2px 0 rgba(255,255,255,.06) inset, 0 50px 120px -20px rgba(0,0,0,.9), 0 0 220px -20px rgba(84,209,255,.32); }
.ejx__tray { position: absolute; right: 18px; bottom: -18px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(0,0,0,.78); border: 1px solid var(--warn); transition: box-shadow .4s; }
.ejx__tray .label { color: var(--warn); }
.ejx__tray b { font: 700 22px/1 var(--display); color: var(--warn); font-variant-numeric: tabular-nums; }
.ejx__tray span:last-child { font-size: 11px; color: var(--dim); }
.ejx[data-done="1"] .ejx__tray { box-shadow: 0 0 26px rgba(255,184,51,.35); }
.ejx__feats { margin-top: clamp(32px, 5vw, 56px); }
/* shorter desktop screens: tighten the header and list so the whole pinned section fits under the nav */
@media (min-width: 1000px) and (max-height: 900px) {
  #installers .sh { gap: 18px; margin-bottom: 28px; }
  .ejx__feats li { padding-block: 11px; }
  .ejx__stage .fdr__row { height: 24px; } .ejx__stage .fdr__h { padding-top: 11px; }
}
/* wide: the mirror of Tidy Up. The app bleeds off the left edge and fades out (left and bottom), the Finder sidebar sits
   over its right side, and the list is on the right. The figure's padding leaves room for the glow inside the mask. */
@media (min-width: 1000px) {
  .ejx__pin { --appw: clamp(600px, min(60vw, calc((100svh - 400px) * 1.6)), 1000px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
  .ejx__feats { margin-top: clamp(14px, 1.8vw, 26px); align-self: start; }   /* a little below the top of the screenshot */
  .ejx__stage { display: block; height: calc(var(--appw) * .625); padding: 0; }
  /* the frame spans the column (so the left fade lands on the container edge); the image overhangs it to the left and is masked */
  .ejx__app { position: absolute; left: 0; right: 0; top: -120px; display: flex; justify-content: flex-end; margin: 0; padding: 120px 120px 0 0;
    --fade-l: linear-gradient(to right, transparent 0, #000 300px); --fade-b: linear-gradient(to bottom, #000 calc(100% - 240px), transparent calc(100% - 20px));
    -webkit-mask-image: var(--fade-l), var(--fade-b); -webkit-mask-composite: source-in; mask-image: var(--fade-l), var(--fade-b); mask-composite: intersect; }
  .ejx__app img { flex: none; width: var(--appw); max-width: none; border-radius: 0 12px 12px 0; }
  .ejx__tray { right: 300px; top: 102px; bottom: auto; }
  .ejx__stage .fdr { position: absolute; inset: 0 0 0 auto; height: max-content; margin: auto 0; }
}

/* the Finder sidebar, in Ullage blue glass */
.fdr { position: relative; z-index: 2; justify-self: start; align-self: start; width: 250px; margin-top: clamp(40px, 9%, 90px); padding: 14px 10px 18px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(24,48,72,.82), rgba(10,22,36,.88)); border: 1px solid rgba(160,215,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 90px -20px rgba(0,0,0,.9), 0 0 60px -20px rgba(84,209,255,.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  font: 400 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: #e8eef5; }
.fdr__lights { display: flex; gap: 8px; padding: 2px 8px 16px; }
.fdr__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .fdr__lights i:nth-child(2) { background: #febc2e; } .fdr__lights i:nth-child(3) { background: #28c840; }
.fdr__h { padding: 16px 10px 7px; font-size: 11px; font-weight: 600; color: rgba(220,235,250,.45); }
.fdr__row { --hl: 0; display: flex; align-items: center; gap: 9px; height: 27px; margin-bottom: 1px; padding: 0 10px; border-radius: 6px; overflow: hidden; background: rgba(84,209,255, calc(var(--hl) * .16)); }
.fdr__row.is-sel { background: rgba(140,190,230,.18); font-weight: 600; }
.fdr__row span { flex: 1; white-space: nowrap; }
.fdr__row svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fdr__row--g svg { stroke: rgba(225,236,248,.75); }
.fdr__row svg.fdr__ej { width: 13px; height: 13px; stroke: none; opacity: calc(.6 + var(--hl) * .4);
  fill: rgb(calc(190 - var(--hl) * 106), calc(200 + var(--hl) * 9), calc(212 + var(--hl) * 43)); filter: drop-shadow(0 0 calc(var(--hl) * 8px) rgba(84,209,255,.9)); }
@media (max-width: 999px) {
  .ejx__stage { display: block; }
  .ejx__app { margin: 0; }
  .fdr { width: min(240px, 70%); margin: -40px auto 0 12px; padding: 12px 8px 12px; font-size: 12px; }
  .fdr__row { height: 23px; } .fdr__h { padding: 11px 10px 5px; } .fdr__lights { padding-bottom: 10px; }
  .ejx__tray { top: 10px; bottom: auto; right: 10px; padding: 6px 9px; } .ejx__tray b { font-size: 18px; }
}
/* phones: no screenshot or eject animation, just the headline, sub title and the feature list (js/eject.js skips its pin too) */
@media (max-width: 560px) {
  .ejx__stage { display: none; }
  .ejx { margin-top: 0; }
  .ejx__feats { margin-top: 0; }
}


/* ───────── Screenshots: the robot arm stage (js/arm3d.js) ───────── */
.shx { margin-top: clamp(8px, 2vw, 24px); }
.shx__pin { display: grid; gap: clamp(32px, 5vw, 56px); }
.shx__stage { position: relative; height: clamp(400px, 40vw, 560px); }
.shx__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent); mask-composite: intersect; }
@media (min-width: 1000px) {
  .shx__pin { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(40px, 5vw, 80px); }
  .shx__feats { position: relative; z-index: 3; margin-top: clamp(14px, 1.8vw, 26px); }
  /* the scene is bigger than its column: it reaches back under the feature list and up into the space above */
  .shx__stage { height: clamp(560px, 50vw, 760px); margin: clamp(-75px, -4.2vw, -35px) 0 0 clamp(-260px, -16vw, -140px); }
}
