/* Desk scene (11/21/26): the canvas behind the hero text, the buttons over the objects, the side panel and the monitor's desktop. */
.desk { position: absolute; inset: 0; pointer-events: none; } /* no z-index: its parts sit in the hero's own stacking order (canvas under the shade, buttons and panels over the text) */
/* 11/25/26: the layer itself is empty and covered the hero's links; only its real parts take the pointer */
.desk-canvas, .desk-panel, .desk-os, .desk-skip { pointer-events: auto; }
.desk[hidden] { display: none; }
.desk-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease-out); }
.desk-on .desk-canvas { opacity: 1; }
.desk-on .st-hero { --desk: 1; }
.desk-on .st-hero .st-hero-shade { background: linear-gradient(90deg, rgb(21 21 20 / .86) 0%, rgb(21 21 20 / .55) 30%, rgb(21 21 20 / 0) 55%), linear-gradient(180deg, rgb(21 21 20 / .35) 0%, rgb(21 21 20 / 0) 25%, rgb(21 21 20 / 0) 75%, rgb(21 21 20 / .6) 100%); pointer-events: none; }
.desk-on .st-hero-grid { pointer-events: none; }
.desk-on .st-hero-grid a, .desk-on .st-hero-grid button { pointer-events: auto; }
.desk-on .st-sample { display: none; }
/* while a panel is open the hero text steps back */
.desk.is-open ~ .st-hero-grid, .desk-on .st-hero:has(.desk.is-open) .st-hero-grid { opacity: 0; transition: opacity .3s; pointer-events: none; }
.desk-on .st-hero:has(.desk.is-open) .st-hero-shade { opacity: 0; transition: opacity .3s; }

/* buttons over the objects */
.desk-spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.desk-spot { position: absolute; left: 0; top: 0; pointer-events: auto; min-height: 32px; padding: 6px 12px 6px 22px; border: 1px solid rgb(236 233 227 / .28); border-radius: var(--r-pill); background: rgb(21 21 20 / .72); color: #ECE9E3; font: 500 .8125rem/1 var(--font-sans); white-space: nowrap; cursor: pointer; backdrop-filter: blur(8px); transition: background var(--dur-fast), border-color var(--dur-fast), opacity .3s; will-change: transform; }
.desk-spot::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #FF5A36; box-shadow: 0 0 0 3px rgb(255 90 54 / .25); }
.desk-spot:hover, .desk-spot.is-hover, .desk-spot:focus-visible { background: #ECE9E3; color: #151514; border-color: #ECE9E3; }
.desk-spot[aria-pressed="true"]::before { background: #FFE2B0; box-shadow: 0 0 0 3px rgb(255 226 176 / .35); }
.desk.is-open .desk-spot { opacity: 0; pointer-events: none; }

.desk-skip { position: absolute; left: var(--gutter); bottom: var(--s-5); z-index: 3; color: #ECE9E3; border-color: rgb(236 233 227 / .5); background: rgb(21 21 20 / .5); }
.desk.is-open .desk-skip { opacity: 0; pointer-events: none; }

/* side panel for every object but the monitor */
.desk-panel { position: absolute; top: calc(var(--nav-h) + 16px); right: var(--gutter); bottom: 24px; width: min(34rem, 42vw); z-index: 4; overflow: auto; overscroll-behavior: contain; padding: var(--s-5); border-radius: var(--r-float); background: var(--paper); color: var(--rebar); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); animation: desk-in .35s var(--ease-out); --text: var(--rebar); --text-2: var(--mortar); --bg: var(--paper); --bg-raised: #fff; --line-strong: rgb(26 26 25 / .2); }
.desk-panel[hidden], .desk-os[hidden] { display: none; }
.desk-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.desk-panel-head h2 { font-size: var(--fs-h3); outline: none; }
.desk-close { min-height: 36px; padding: 0 14px; border: 1px solid currentColor; border-radius: var(--r-pill); background: transparent; color: inherit; font: 500 .8125rem/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.desk-close span { margin-left: 6px; font-family: var(--font-mono); font-size: .6875rem; opacity: .6; }
@keyframes desk-in { from { opacity: 0; translate: 16px 0; } }
.desk-app { display: grid; gap: var(--s-4); }
.desk-app > img { width: 100%; height: auto; border-radius: 10px; }
.desk-app-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.desk-app .st-cars-stage, .desk-app .st-fs-stage { border-radius: 10px; }
.desk-app .st-form { padding: var(--s-4); }
.desk-prices .st-price-grid { grid-template-columns: 1fr !important; gap: var(--s-3); margin-top: 0; }
.desk-prices .st-price { padding: var(--s-4); }
.desk-prices .st-ret-title { margin-top: var(--s-5); }
.desk-board { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.desk-board a { display: grid; gap: 6px; color: inherit; text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.desk-board img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.desk-brief { padding: var(--s-5); background: #fff; border-radius: 4px; box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 12px 30px -12px rgb(0 0 0 / .25); }
.desk-brief dl, .desk-print dl { display: grid; gap: var(--s-3); margin: var(--s-4) 0; }
.desk-brief dt, .desk-print dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mortar); }
.desk-brief dd, .desk-print dd { margin: 2px 0 0; white-space: pre-wrap; }
.desk-brief-blank { display: block; height: 1.4em; border-bottom: 1px solid #cfcac1; }
.desk-brief-eyebrow, .desk-brief-foot { font-size: var(--fs-small); color: var(--mortar); }

/* the monitor: a desktop laid over the screen as the camera sees it */
.desk-os { position: fixed; z-index: 4; display: grid; grid-template-rows: 1fr auto; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #1F1F1D, #151514); color: #ECE9E3; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); animation: desk-fade .3s var(--ease-out); }
@keyframes desk-fade { from { opacity: 0; } }
.desk-os-wall { position: relative; overflow: hidden; }
.desk-os-dock { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: rgb(0 0 0 / .35); }
.desk-os-dock button { min-height: 34px; padding: 0 12px; border: 1px solid rgb(236 233 227 / .2); border-radius: 8px; background: rgb(255 255 255 / .06); color: inherit; font: 500 .8125rem/1 var(--font-sans); cursor: pointer; }
.desk-os-dock button:hover, .desk-os-dock button:focus-visible { background: #ECE9E3; color: #151514; }
.desk-os-dock .desk-close { margin-left: auto; border-radius: 8px; }
.desk-win { position: absolute; width: min(72%, 46rem); max-height: 88%; display: grid; grid-template-rows: auto 1fr; border-radius: 10px; overflow: hidden; background: var(--paper); color: var(--rebar); box-shadow: 0 24px 60px -16px rgb(0 0 0 / .7); --text: var(--rebar); --text-2: var(--mortar); --bg: var(--paper); --bg-raised: #fff; --line-strong: rgb(26 26 25 / .2); }
.desk-win-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; background: #E2DED6; font: 600 .8125rem/1 var(--font-sans); cursor: grab; user-select: none; touch-action: none; }
.desk-win-x { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 1.1rem; cursor: pointer; }
.desk-win-x:hover { background: rgb(0 0 0 / .08); }
.desk-win-body { overflow: auto; padding: var(--s-4); }

/* printing the brief: only the brief */
.desk-print { display: none; }
@media print {
  .desk-printing body > *:not(.desk-print) { display: none !important; }
  .desk-printing .desk-print { display: block; color: #000; font: 12pt/1.5 Arial, sans-serif; }
}

/* inside panels the hero's light-on-dark pills and links would vanish on paper: give them the page's own ink */
.desk-panel .pill-solid, .desk-win .pill-solid { background: var(--rebar); color: var(--paper); }
.desk-panel .pill-outline, .desk-win .pill-outline { color: var(--rebar); border-color: rgb(26 26 25 / .55); background: transparent; }
.desk-panel .tlink, .desk-win .tlink { color: var(--rebar); border-color: rgb(26 26 25 / .4); }
.desk-app .st-car-call, .desk-app .st-car-name, .desk-app .st-count { color: #ECE9E3; }
/* the wordmark keeps its ground while the camera is close to the bright wall */
.desk-open .nav-logo { background: rgb(21 21 20 / .7); border-radius: var(--r-pill); padding: 6px 12px; margin: -6px -12px; backdrop-filter: blur(8px); }
.desk-win { width: min(92%, 52rem); }
.desk-win .st-cars-stage, .desk-win .st-fs-stage { aspect-ratio: 21 / 9; }

/* panels fit their content on wide screens instead of always running to the bottom */
.desk-panel { bottom: auto; max-height: calc(100% - var(--nav-h) - 40px); }

/* ---- phones and tablets held upright (scene.js sets .is-narrow) ---- */
.desk.is-narrow .desk-spots { position: absolute; inset: auto 0 calc(var(--s-5) + 52px) 0; display: flex; gap: 8px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.desk.is-narrow .desk-spots::-webkit-scrollbar { display: none; }
.desk.is-narrow .desk-spot { position: static; flex: none; transform: none !important; min-height: 40px; scroll-snap-align: start; }
.desk.is-narrow .desk-skip { bottom: var(--s-4); }
.desk.is-narrow .desk-canvas { touch-action: pan-y; }
.desk.is-narrow .desk-panel { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72%; border-radius: 20px 20px 0 0; padding: var(--s-4) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); animation-name: desk-up; }
@keyframes desk-up { from { opacity: 0; translate: 0 24px; } }
.desk.is-narrow .desk-panel-head { position: sticky; top: calc(-1 * var(--s-4)); padding-top: var(--s-2); background: var(--paper); z-index: 1; }
.desk.is-narrow .desk-close span { display: none; }
.desk.is-narrow .desk-os { position: fixed; inset: var(--nav-h) 8px 8px 8px; width: auto; height: auto; border-radius: 14px; }
.desk.is-narrow .desk-os-dock { overflow-x: auto; flex-wrap: nowrap; }
.desk.is-narrow .desk-os-dock button { flex: none; }
/* 11/24/26: on phones the dock scrolls sideways, so the way out comes first and is always in view (it sat off-screen at the end) */
.desk.is-narrow .desk-os-dock .desk-close { order: -1; margin-left: 0; position: sticky; left: 0; z-index: 1; background: #ECE9E3; color: #151514; }
.desk.is-narrow .desk-win { left: 6px !important; right: 6px; top: 6px !important; width: auto; max-height: calc(100% - 12px); }
.desk.is-narrow .desk-win .st-cars-stage, .desk.is-narrow .desk-win .st-fs-stage { aspect-ratio: 16 / 10; }
/* the hero on an upright screen: words at the top, the desk below them */
.desk-on .st-hero:has(.desk.is-narrow) { align-items: start; min-height: max(100svh, 720px); padding-top: calc(var(--nav-h) + var(--s-5)); }
.desk-on .st-hero:has(.desk.is-narrow) .st-hero-shade { background: linear-gradient(180deg, rgb(21 21 20 / .94) 0%, rgb(21 21 20 / .85) 42%, rgb(21 21 20 / 0) 64%, rgb(21 21 20 / 0) 82%, rgb(21 21 20 / .7) 100%); }
.desk-on .st-hero:has(.desk.is-narrow) h1 { font-size: clamp(2.25rem, 1.4rem + 4.5vw, 3.75rem); }
.desk-on .st-hero:has(.desk.is-narrow) .lede { font-size: 1rem; }
/* the monitor's desktop: the wallpaper and icons the 3D screen shows */
.desk-os-wall { background: linear-gradient(rgb(21 21 20 / .55), rgb(21 21 20 / .55)), url(/assets/studio/room-walnut-800.webp) center / cover; }

.desk-os-icons { position: absolute; left: 12px; top: 12px; bottom: 12px; display: grid; align-content: start; gap: 10px; width: 112px; }
.desk-os-icons button { display: grid; gap: 4px; padding: 6px; border: 0; border-radius: 10px; background: transparent; color: #ECE9E3; font: 500 .75rem/1.2 var(--font-sans); text-align: center; cursor: pointer; }
.desk-os-icons button:hover, .desk-os-icons button:focus-visible { background: rgb(255 255 255 / .12); }
.desk-os-icons img, .desk-os-q { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .6); }
.desk-os-q { display: grid; place-items: center; background: #C23A1A; font-size: 1.6rem; font-weight: 700; }
.desk-win { z-index: 1; }
.desk.is-narrow .desk-os-icons { display: none; } /* phones: the dock opens the same apps */
.desk-app .st-car-name, .desk-win .st-car-name { font-size: clamp(1.25rem, .9rem + 1.4vw, 2rem); }
