.office-entry {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
}

.office-entry::backdrop { background: var(--night); }

.entry-camera {
  position: absolute;
  inset: 0;
  background: linear-gradient(#0b1d2c15, #0b1d2c24), url('/desk.avif') center / cover;
}

.entry-monitor {
  position: absolute;
  top: 51%;
  left: 50%;
  width: min(89vw, 90vh, 740px);
  transform: translate(-50%, -50%);
  aspect-ratio: 1448 / 1086;
}

.entry-shell { display: block; width: 100%; height: 100%; }

.entry-screen {
  position: absolute;
  top: 13.8%;
  left: 12.2%;
  width: 75.7%;
  height: 53.7%;
  clip-path: polygon(1.8% 0,98.3% 0,100% 100%,0 100%);
  background: #050b08;
}

.entry-terminal {
  display: flex;
  align-items: flex-start;
  padding: 8%;
  color: #9aeda0;
  font: 1rem/1.3 ui-monospace, SFMono-Regular, monospace;
}

.entry-command {
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  animation: entry-type 350ms steps(13, end) 180ms both;
}

.entry-cursor {
  width: .58em;
  height: 1.3em;
  background: currentColor;
  animation: entry-blink 420ms steps(1, end) infinite;
}

.entry-ready {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--paper);
  opacity: 0;
  animation: entry-ready 110ms ease-out 620ms forwards;
}

.entry-ready span {
  display: block;
  padding: 3% 6%;
  background: var(--night);
  color: var(--cream);
  font: 600 clamp(.57rem, 1.5vw, 1rem)/1.2 system-ui, sans-serif;
}

.entry-ready img { width: 100%; height: 100%; object-fit: contain; }

.entry-skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  background: var(--night);
  color: var(--cream);
}

@keyframes entry-type { to { width: 13ch; } }
@keyframes entry-blink { 50% { opacity: 0; } }
@keyframes entry-ready { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .office-entry { display: none; }
}
