/* PC-screen opening. Coordinates match the 1672 × 941 stationary room. */
html.computer-pending { overflow: hidden; }
.computer-pending .site-loader { display: none !important; }
.computer-pending .pointer-fx { visibility: hidden; }
.computer-pending:not(.intro-arriving) :is(header, .hero-top, .hero-bottom, #hero-title, #catch, .hero .eyebrow, .hero-tag, .hero > .space-field, .hero > .digital-scene, .hero > .orb, #hero-photo) { opacity: 1; }
.computer-opening { position: fixed; inset: 0; z-index: 2500; isolation: isolate; overflow: hidden; color: #fff; }
.computer-opening, .computer-opening * { cursor: auto !important; }
.computer-opening:focus { outline: none; }
.computer-visual { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, #64a9ef, #164dbe 70%, #173fa1); }
.computer-world { position: absolute; left: 50%; top: 50%; width: var(--world-w); height: var(--world-h); margin-left: calc(var(--world-w) / -2); margin-top: calc(var(--world-h) / -2); transform-origin: 49.91% 50.27%; will-change: transform; }
/* The room and CRT are one stationary plate. Details move independently during typing; the scene itself scales only for the final monitor zoom. */
.computer-front { position: absolute; inset: 0; width: 100%; height: 100%; }
.computer-room-details { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.computer-cone { animation: computer-cone-beat 1.24s ease-out var(--beat-delay) infinite; }
.computer-cone-ring { animation: computer-rim-light 1.24s ease-out var(--beat-delay) infinite; }
.computer-glint { animation: computer-glint-light var(--period) ease-in-out var(--delay) infinite; transform-origin: 0 0; }
@keyframes computer-cone-beat {
  0%, 47%, 100% { transform: scale(1); }
  13% { transform: scale(1.19); }
  62% { transform: scale(1.10); }
}
@keyframes computer-rim-light { 0%, 48%, 100% { opacity: 0; } 15% { opacity: .66; } 62% { opacity: .3; } }
@keyframes computer-glint-light {
  0%, 65%, 100% { opacity: .06; transform: scale(.45); }
  29% { opacity: .94; transform: scale(1.37); }
}
.computer-window { position: absolute; height: auto; pointer-events: none; animation: computer-window-float var(--period) ease-in-out var(--delay) infinite alternate; }
.computer-window-planet { left: 14%; top: 18%; width: 13.75%; --period: 3.8s; --delay: -.8s; --drift-x: 3%; --drift-y: -6%; }
.computer-window-folder { left: 70.5%; top: 34.8%; width: 10.65%; --period: 4.4s; --delay: -2.5s; --drift-x: -3%; --drift-y: 7%; }
@keyframes computer-window-float { from { transform: translate(0,0); } to { transform: translate(var(--drift-x),var(--drift-y)); } }
@media (max-aspect-ratio: 1/1) {
  /* Keep the windows in the sky above the bezel when the sides are cropped. */
  .computer-window-planet { left: 31.5%; top: 5.5%; width: 10%; }
  .computer-window-folder { left: 60%; top: 9%; width: 8.6%; }
}
.computer-monitor-content { position: absolute; left: 37.26%; top: 34.22%; width: 25.3%; height: 32.1%; border-radius: 8% / 9%; overflow: hidden; container-type: inline-size; display: grid; place-items: center; opacity: 0; background: #e8f8ff; color: #16417b; }
.computer-monitor-content::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, #1b55810a 3px 4px); opacity: .5; }
.computer-type { width: 85%; text-align: center; font: 500 5.1cqw/1.65 Menlo, Consolas, monospace; letter-spacing: -.035em; }
@media (max-aspect-ratio: 1/1) { .computer-type { width: 94%; font-size: 6.15cqw; } }
.computer-type-line { display: block; min-height: 3.3em; white-space: pre-wrap; overflow-wrap: normal; }
.computer-type-name { display: block; margin-top: .3em; min-height: 1.4em; font-size: 15cqw; font-weight: 700; letter-spacing: .025em; line-height: 1.4; }
.computer-caret::after { content: ''; display: inline-block; width: .45em; height: 1em; margin-left: .18em; background: #258cb9; vertical-align: -.1em; }
.computer-screen-logo { position: absolute; width: 82%; opacity: 0; }
.computer-screen-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.computer-logo-echo { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.computer-screen-noise { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.computer-screen-noise i { position: absolute; left: 0; width: 100%; height: 2%; background: linear-gradient(90deg, transparent 5%, #26bdd680 10% 42%, #ec85b87a 43% 60%, transparent 61%); }
.computer-screen-noise i:nth-child(1) { top: 21%; }
.computer-screen-noise i:nth-child(2) { top: 45%; height: 5%; transform: translateX(-14%); }
.computer-screen-noise i:nth-child(3) { top: 68%; transform: translateX(18%); }
.computer-boot-noise { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.computer-boot-noise i { position: absolute; height: 2%; background: linear-gradient(90deg,#20c5e2 0 19%,transparent 19% 24%,#b1e8fa 24% 43%,#438ad2 43% 61%,transparent 61% 68%,#ed8fcb 68% 100%); box-shadow: 3px 1px 0 #ea98cd80,-3px -1px 0 #39cde47a; transform-origin: center; }
.computer-boot-noise i:nth-child(1) { top: 18%; left: 9%; width: 48%; height: 1%; }
.computer-boot-noise i:nth-child(2) { top: 31%; left: 28%; width: 67%; height: 4%; }
.computer-boot-noise i:nth-child(3) { top: 39%; left: 3%; width: 72%; height: 1%; }
.computer-boot-noise i:nth-child(4) { top: 51%; left: 16%; width: 69%; height: 7%; background-size: 100% 3px; background-image: repeating-linear-gradient(90deg,#54bcd7 0 9%,transparent 9% 13%,#c3a7ea 13% 28%,#95dced 28% 49%,transparent 49% 56%); }
.computer-boot-noise i:nth-child(5) { top: 65%; left: 36%; width: 56%; }
.computer-boot-noise i:nth-child(6) { top: 74%; left: 8%; width: 31%; height: 3%; }
.computer-boot-noise i:nth-child(7) { top: 83%; left: 41%; width: 45%; height: 1%; }
.computer-opening-header { position: absolute; top: max(22px,env(safe-area-inset-top)); left: max(28px,env(safe-area-inset-left)); right: 28px; display: flex; align-items: center; gap: 9px; font: 10px/1.4 Menlo,Consolas,monospace; letter-spacing: .15em; text-shadow: 0 1px 4px #073471; }
.computer-opening-header::before { content: ''; width: 5px; height: 5px; background: #9dedff; }
.computer-opening-skip { position: absolute; right: max(24px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); min-width: 66px; min-height: 44px; border: 0; padding: 10px; background: transparent; color: white; font: 600 12px/1 Menlo,Consolas,monospace; letter-spacing: .14em; text-shadow: 0 1px 5px #133c82; cursor: pointer !important; }
.computer-opening-skip:hover { color: #d2f8ff; }
.computer-opening-skip:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.computer-visual.is-portal { mask-image: linear-gradient(#fff 0 0), linear-gradient(rgb(255 255 255 / var(--portal-alpha, 1)) 0 0); mask-size: 100% 100%, var(--portal-w) var(--portal-h); mask-position: 0 0, var(--portal-x) var(--portal-y); mask-repeat: no-repeat; mask-composite: exclude; -webkit-mask-composite: xor; }
@media(max-width:600px) { .computer-opening-header { top: max(26px,env(safe-area-inset-top)); left: 20px; font-size: 9px; } .computer-opening-skip { right: 16px; } }
@media(prefers-reduced-motion:reduce) { .computer-opening { display: none; } }
