/* A personal desktop: paper, type, time, and one tactile chrome object. */
.desktop-surface { --desktop-tint: #75aaff; --desktop-glow: #c2dcff; --toy-accent: #007aff; --pointer-x: 50%; --pointer-y: 40%; }
.desktop-surface[data-desktop-accent="lilac"] { --desktop-tint: #cfc3e6; --desktop-glow: #eee5ff; --toy-accent: #a28bc8; }
.desktop-surface[data-desktop-accent="peach"] { --desktop-tint: #e4c3b3; --desktop-glow: #fff0e7; --toy-accent: #d69776; }
.desktop-surface::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 65% at var(--pointer-x) var(--pointer-y), var(--desktop-glow), transparent); opacity: .8; pointer-events: none; }
.hero__ghost { top: 18px; color: var(--desktop-tint); opacity: .55; transition: color 500ms; }
.desktop-grid--toys { top: 40%; height: clamp(312px, 44vh, 450px); gap: 16px; width: calc(100% - 128px); }
.desktop-card { --depth-x: 0px; --depth-y: 0px; --drag-x: 0px; --drag-y: 0px; translate: calc(var(--depth-x) + var(--drag-x)) calc(var(--depth-y) + var(--drag-y)); transition: translate 350ms cubic-bezier(.2,.75,.2,1), box-shadow 250ms; }
.desktop-card:focus-within { z-index: 10; }
.window-handle { width: 100%; border: 0; border-bottom: 1px solid #00000008; text-align: left; cursor: grab; touch-action: none; user-select: none; }
.window-handle:hover { background: #fff9; color: #363c49; }
.window-handle:focus-visible { outline-offset: -3px; }
.window-handle > svg { flex-shrink: 0; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.window-bar__grip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.desktop-card.is-window-dragging { z-index: 12; transition: none; box-shadow: 0 30px 65px #262d3f35, 0 4px 12px #15192a15; }
.is-window-dragging .window-handle { cursor: grabbing; }

/* The note is an actual text field, including native selection, undo, and scrolling. */
.desktop-card--note { grid-column: 1 / 5; grid-row: 1 / 7; z-index: 3; display: flex; flex-direction: column; border-color: #fff9; border-radius: 6px 6px 26px 6px; background: #fff6cc; box-shadow: 0 22px 38px #57462019, 0 2px 4px #5746200c; backdrop-filter: none; }
.desktop-card--note .window-bar { height: 40px; background: #fff9dc; color: #9c8c50; border-bottom-color: #b8a14c15; }
.scratchpad { flex: 1; min-height: 0; padding: 26px 26px 0; background: transparent; }
.scratchpad textarea { display: block; width: 100%; height: 100%; min-height: 0; resize: none; border: 0; border-radius: 0; outline-offset: 3px; background: transparent; color: #615735; font: calc(450 + var(--weight-offset, 0)) calc(clamp(22px, 2.4vw, 31px) * var(--text-scale, 1))/1.16 var(--font); letter-spacing: -.045em; caret-color: #b88723; scrollbar-width: thin; scrollbar-color: #d7c37f transparent; }
.scratchpad textarea::placeholder { color: #ac9d63; }
.scratchpad-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px 12px 26px; color: #9c8e58; font-size: calc(10px * var(--text-scale, 1)); }
.note-reset { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.note-reset:hover { color: #615735; background: #b09e4212; }
.note-reset svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* The original logo, extruded in WebGL. The same SVG remains visible without GPU support. */
.desktop-card--sculpture { grid-column: 5 / 10; grid-row: 1 / 7; z-index: 4; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; backdrop-filter: none; }
.sculpture-viewport { position: absolute; inset: 0 -24px; border-radius: 50%; touch-action: pan-y; cursor: grab; outline-offset: -12px; perspective: 800px; }
.sculpture-viewport.is-rotating { cursor: grabbing; }
.sculpture-viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sculpture-shadow { position: absolute; left: 19%; right: 19%; bottom: 2%; height: 12%; background: radial-gradient(ellipse, #3d4d6b35, #3d4d6b08 55%, transparent 72%); filter: blur(8px); scale: 1 .7; pointer-events: none; }
.toy-fallback { position: absolute; top: 50%; left: 50%; width: 72%; height: 72%; object-fit: contain; transform: translate(-50%,-50%) rotateZ(var(--logo-z, -.04rad)) rotateY(var(--logo-y, -.38rad)) rotateX(var(--logo-x, -.14rad)); filter: drop-shadow(3px 5px 1px #6a748677); pointer-events: none; }
.sculpture-viewport[data-renderer="webgl"] .toy-fallback { display: none; }

.desktop-card--clock { display: flex; flex-direction: column; grid-column: 10 / 13; z-index: 5; border-radius: 20px; background: #ffffffc7; }
.desktop-card--clock { grid-row: 4 / 7; z-index: 6; }
.clock-face { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding-top: 5px; }
.clock-face time { font-size: calc(clamp(28px, 3.3vw, 43px) * var(--text-scale, 1)); line-height: 1.1; font-weight: calc(450 + var(--weight-offset, 0)); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.clock-date { color: #8c919d; font-size: calc(10px * var(--text-scale, 1)); }

/* Each preview has its own composition, but an identical outer media slot. */
.live-preview { overflow: visible; --preview-progress: 0; --preview-travel: 0px; position: relative; border: 0; background: transparent; isolation: isolate; }
.preview-art { position: absolute; inset: 0; pointer-events: none; }
.preview-window, .preview-table, .preview-shop, .preview-page { position: absolute; overflow: hidden; border: 1px solid #ffffffd9; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px #283b5b16, 0 1px 3px #283b5b12; }
.preview-slide { position: absolute; inset: 0; opacity: 0; transform: translate3d(20px, 0, 0) scale(.985); transition: opacity 450ms, transform 700ms cubic-bezier(.2,.75,.2,1); }
.preview-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
[data-preview-state="0"] [data-preview-frame="0"], [data-preview-state="1"] [data-preview-frame="1"], [data-preview-state="2"] [data-preview-frame="2"] { opacity: 1; transform: none; }

/* Booking: a small working browser, search → price matrix → dashboard. */
.preview-window { inset: 8px 8px 12px; transform: perspective(900px) rotateX(3deg) rotateY(-4deg); transition: transform 700ms cubic-bezier(.2,.75,.2,1); }
.preview-screen { position: absolute; inset: 0; overflow: hidden; }
.preview-screen .preview-slide img { object-fit: cover; object-position: left top; }
.is-preview-active .preview-window { transform: perspective(900px) rotateX(0) rotateY(0); }

/* Prepaid: the actual table, with its original action inspector brought into focus. */
.preview-table { inset: 10px 6px 12px; transform: perspective(900px) rotateY(4deg); transition: transform 700ms; }
.preview-table .preview-slide img { width: 132%; max-width: none; object-fit: cover; object-position: left top; }
.preview-inspector { position: absolute; z-index: 3; top: 5px; right: 12px; bottom: 16px; width: 34%; padding: 8px; overflow: hidden; border: 1px solid #fff; border-radius: 10px; background: #fff; box-shadow: -12px 8px 32px #30204624; opacity: 0; transform: translateX(30px) rotate(4deg); transition: opacity 400ms, transform 650ms cubic-bezier(.2,.75,.2,1); }
.preview-inspector > img { width: 100%; }
.live-preview--prepaid[data-preview-state="2"] .preview-inspector { opacity: 1; transform: none; }
.live-preview--prepaid[data-preview-state="2"] .preview-table { transform: perspective(900px) translateX(-14px) rotateY(0); }

/* Dovgan: a catalogue that opens into product and basket views. */
.preview-shop { inset: 6px 20px 12px; transform: rotate(-3deg); transition: transform 650ms cubic-bezier(.2,.75,.2,1); }
.preview-shop .preview-slide { transform: translateY(24px) scale(.98); }
.preview-shop .preview-slide img { object-position: center top; }
.live-preview--dovgan[data-preview-state="0"] [data-preview-frame="0"], .live-preview--dovgan[data-preview-state="1"] [data-preview-frame="1"], .live-preview--dovgan[data-preview-state="2"] [data-preview-frame="2"] { transform: none; }
.is-preview-active .preview-shop { transform: rotate(0); }

/* OpenOSI: three physical screens, with an explorable centre phone. */
.preview-phone { position: absolute; top: 15px; left: 50%; height: 125%; aspect-ratio: 393 / 852; overflow: hidden; border: 5px solid #fff; border-radius: 23px; background: #fff; box-shadow: 0 12px 22px #1e3c661c, 0 0 0 1px #1c3b6312; transition: transform 700ms cubic-bezier(.2,.75,.2,1); }
.preview-phone > img, .preview-phone .preview-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.preview-phone--main { z-index: 2; transform: translateX(-50%); }
.preview-phone--left { transform: translateX(-125%) translateY(25px) rotate(-12deg) scale(.88); }
.preview-phone--right { transform: translateX(25%) translateY(25px) rotate(12deg) scale(.88); }
.is-preview-active .preview-phone--left { transform: translateX(-140%) translateY(18px) rotate(-8deg) scale(.88); }
.is-preview-active .preview-phone--right { transform: translateX(40%) translateY(18px) rotate(8deg) scale(.88); }
.preview-phone .preview-slide { transform: translateX(35px); }
.live-preview--osi[data-preview-state="0"] [data-preview-frame="0"], .live-preview--osi[data-preview-state="1"] [data-preview-frame="1"], .live-preview--osi[data-preview-state="2"] [data-preview-frame="2"] { transform: none; }

/* ENANDE: a real, continuous page, revealed by moving across the preview. */
.preview-page { inset: 4px 24px 12px; background: #f8f7f2; transform: perspective(900px) rotateY(-4deg); transition: transform 700ms; }
.preview-page__bar { display: flex; justify-content: space-between; align-items: center; height: 26px; padding-inline: 12px; border-bottom: 1px solid #3b342b0a; font-size: calc(8px * var(--text-scale, 1)); letter-spacing: .1em; color: #665e50; background: #faf9f5; }
.preview-page__bar > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: #c8b690; }
.preview-page__viewport { position: absolute; inset: 26px 0 0; overflow: hidden; }
.preview-scroll-image { width: 100%; max-width: none; height: auto; transform: translateY(calc(var(--preview-progress) * var(--preview-travel) * -1)); transition: transform 1100ms cubic-bezier(.2,.65,.2,1); }
.preview-scrollbar { position: absolute; top: 36px; bottom: 10px; right: 4px; width: 3px; border-radius: 3px; background: #342b1e0b; }
.preview-scrollbar span { display: block; position: absolute; top: calc(var(--preview-progress) * 76%); width: 3px; height: 24%; border-radius: 3px; background: #a39075; transition: top 1100ms cubic-bezier(.2,.65,.2,1); }
.is-preview-active .preview-page { transform: perspective(900px) rotateY(0); }

/* The sixth tile is an invitation to the draggable playground. */
.experiment-preview { overflow: visible; }
.experiment-preview > img { transition: transform 550ms cubic-bezier(.2,.75,.2,1) !important; }
.bento--garden:hover .experiment-preview > img:nth-child(1) { transform: translate(-5px,-5px) rotate(-5deg); }
.bento--garden:hover .experiment-preview > img:nth-child(2) { transform: translate(5px,-5px) rotate(5deg); }
.bento--garden:hover .experiment-preview > img:nth-child(3) { transform: translate(-5px,5px) rotate(4deg); }
.bento--garden:hover .experiment-preview > img:nth-child(4) { transform: translate(5px,5px) rotate(-4deg); }

@media (max-width: 1100px) {
  .desktop-grid--toys { width: calc(100% - 80px); gap: 12px; }
  .scratchpad { padding: 20px 20px 0; }.scratchpad-footer { padding-left: 20px; }

}
@media (max-width: 700px) {
  .desktop-scene { min-height: 740px; }
  .desktop-stage { min-height: 740px; }
  .desktop-grid--toys { top: 53%; width: calc(100% - 36px); height: 376px; grid-template-columns: minmax(0, 1fr) minmax(144px, 1fr); grid-template-rows: 220px 144px; gap: 12px; }
  .desktop-card--note { grid-column: 1; grid-row: 1; border-radius: 5px 5px 20px 5px; }
  .desktop-card--sculpture { grid-column: 2; grid-row: 1; }
  .desktop-card--clock { grid-column: 2; grid-row: 2; }
  .desktop-card--clock { border-radius: 14px; }
  .window-handle, .desktop-card--note .window-bar { height: 44px; font-size: calc(8px * var(--text-scale, 1)); }
  .window-bar__grip { display: none; }
  .scratchpad { padding: 12px 13px 0; background-size: auto 24px; }
  .scratchpad textarea { font-size: calc(20px * var(--text-scale, 1)); line-height: 1.18; }
  .scratchpad-footer { padding: 0 4px 2px 12px; font-size: calc(8px * var(--text-scale, 1)); line-height: 1.35; gap: 0; }
  .sculpture-viewport { inset: 12px -14px; }

  .clock-face { padding-top: 0; }.clock-face time { font-size: calc(30px * var(--text-scale, 1)); }.clock-date { font-size: calc(8px * var(--text-scale, 1)); }
  .hero__ghost { top: 190px; }
  .preview-shop { inset-inline: 8px; }.preview-page { inset-inline: 8px; }
  .preview-phone { border-width: 4px; border-radius: 18px; }
}
@media (max-height: 800px) and (min-width: 701px) {
  .desktop-grid--toys { top: 38%; height: 312px; }
  .scratchpad { padding: 18px 22px 0; }.scratchpad textarea { font-size: calc(25px * var(--text-scale, 1)); }
  .clock-face time { font-size: calc(31px * var(--text-scale, 1)); }.clock-date { font-size: calc(9px * var(--text-scale, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-card { translate: var(--drag-x) var(--drag-y); }
  .bento--garden:hover .experiment-preview > img { transform: none; }
  .preview-window, .preview-table, .preview-shop, .preview-page { transform: none !important; }
  .is-preview-active .preview-phone--left { transform: translateX(-125%) translateY(25px) rotate(-12deg) scale(.88); }
  .is-preview-active .preview-phone--right { transform: translateX(25%) translateY(25px) rotate(12deg) scale(.88); }
}

/* Personal identity, cropped from the existing album until the final avatar arrives. */
.hero-avatar { position: relative; display: block; flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.note-send { padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; color: #65531f; font-size: calc(12px * var(--text-scale, 1)); font-weight: calc(550 + var(--weight-offset, 0)); text-decoration: none; }
.note-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.note-send[aria-disabled="true"] { opacity: .4; cursor: default; }
.note-send:not([aria-disabled="true"]):hover { color: #1d1d1f; }
.desktop-card--clock { background: linear-gradient(145deg,#fff,#f5f5f7); }
.clock-switch { display: flex; margin: 5px 12px 10px; padding: 3px; border-radius: 9px; background: #e8e9ed; }
.clock-switch button { flex: 1; min-width: 0; min-height: 28px; padding: 3px 6px; border: 0; border-radius: 7px; background: transparent; color: #777c86; font-size: calc(9px * var(--text-scale, 1)); }
.clock-switch button[aria-pressed="true"] { background: #fff; color: #202124; box-shadow: 0 1px 4px #00000013; }
.clock-face { position: relative; }
.clock-dial { display: none; position: relative; height: 100%; max-height: 92px; aspect-ratio: 1; border: 1px solid #e2e3e7; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #00000008; }
[data-clock-mode="analogue"] .clock-dial { display: block; }
[data-clock-mode="analogue"] .clock-date { display: none; }
[data-clock-mode="analogue"] time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dial-number { position: absolute; color: #33353a; font-size: calc(10px * var(--text-scale, 1)); font-weight: calc(600 + var(--weight-offset, 0)); line-height: 1; }
.dial-number--12 { top: 5px; left: 50%; translate: -50% 0; }.dial-number--6 { bottom: 5px; left: 50%; translate: -50% 0; }
.dial-number--3 { right: 6px; top: 50%; translate: 0 -50%; }.dial-number--9 { left: 6px; top: 50%; translate: 0 -50%; }
.clock-hand { position: absolute; bottom: 50%; left: calc(50% - 1.5px); width: 3px; border-radius: 3px; background: #25262a; transform-origin: 50% 100%; }
.clock-hand--hour { height: 25%; transform: rotate(var(--hour-angle)); }.clock-hand--minute { height: 35%; width: 2px; left: calc(50% - 1px); transform: rotate(var(--minute-angle)); }
.clock-pin { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 5px; height: 5px; border-radius: 50%; background: #ff914f; }
@media (max-width: 700px) {
  .clock-switch { margin: 3px 6px 4px; padding: 2px; }.clock-switch button { min-height: 28px; }
  .clock-face { min-height: 58px; }.clock-dial { max-height: 58px; }.dial-number { font-size: calc(8px * var(--text-scale, 1)); }
  .desktop-card--clock .window-handle { height: 38px; min-height: 38px; }
  .note-send { font-size: calc(10px * var(--text-scale, 1)); }
}

.note-status { display: block; padding: 0 26px 12px; color: #79662e; font-size: calc(10px * var(--text-scale, 1)); line-height: 1.35; }
.note-status:empty { display: none; }
@media (max-width: 700px) { .note-status { padding: 0 12px 8px; font-size: calc(9px * var(--text-scale, 1)); } }

/* Standalone Prepaid inspector, rendered at its native portrait aspect ratio. */
.preview-inspector > img[src*="/prepaid/bulk-inspector-ui"] { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
