@font-face {
  font-family: Vercetti;
  src: url("./assets/fonts/Vercetti-Regular.woff") format("woff");
  font-weight: 400 700;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: #f4ead4;
  background: #080806;
  font-family: Vercetti, Inter, system-ui, sans-serif;
}

button {
  font: inherit;
}

.experience {
  --crt-glow: 0.8;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 45%, rgb(244 224 183 / 0.18), transparent 28%),
    radial-gradient(circle at 12% 88%, rgb(102 161 133 / 0.16), transparent 22%),
    linear-gradient(180deg, #15130f 0%, #080806 100%);
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: grab;
  touch-action: none;
  transition: opacity 600ms ease, filter 600ms ease, transform 700ms ease;
}

#scene.is-rotating {
  cursor: grabbing;
}

.experience:not([data-state="idle"]) #scene {
  opacity: 0.2;
  filter: blur(2px) saturate(0.8);
  pointer-events: none;
  transform: scale(1.08);
}

.scene-controls {
  position: fixed;
  z-index: 4;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  display: flex;
  width: max-content;
  gap: 7px;
  transition: opacity 300ms ease;
}

.scene-control {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(244 234 212 / 0.36);
  border-radius: 50%;
  color: #f4ead4;
  background: rgb(8 8 6 / 0.56);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.5);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.scene-control:hover,
.scene-control:focus-visible {
  color: #111;
  background: #f4ead4;
  outline: none;
}

.experience:not([data-state="idle"]) .scene-controls {
  opacity: 0;
  pointer-events: none;
}

.hud {
  position: fixed;
  z-index: 5;
  top: clamp(20px, 5vw, 54px);
  left: clamp(18px, 5vw, 72px);
  width: min(520px, calc(100vw - 36px));
  pointer-events: none;
  transition: opacity 350ms ease, transform 350ms ease;
}

.intro-hud {
  display: none;
}

.experience:not([data-state="idle"]) .intro-hud {
  opacity: 0;
  transform: translateY(-16px);
}

.eyebrow,
.status-strip {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b7d8bd;
  font-size: 12px;
}

.hud h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 700;
  line-height: 0.82;
  text-transform: uppercase;
}

.hud p:last-child {
  max-width: 310px;
  margin: 20px 0 0;
  color: #d8ceb6;
  font-size: 15px;
  line-height: 1.5;
}

.screen-layer {
  position: fixed;
  z-index: 3;
  top: 31.9%;
  left: 55%;
  right: auto;
  bottom: auto;
  width: min(252px, 14.8vw);
  aspect-ratio: 1.34 / 1;
  transform: translate(-50%, -50%) perspective(760px) rotateX(-2deg) rotateY(0deg) rotateZ(-0.4deg);
  opacity: 0.96;
  pointer-events: none;
  transition:
    inset 700ms cubic-bezier(0.18, 0.88, 0.22, 1),
    width 700ms cubic-bezier(0.18, 0.88, 0.22, 1),
    opacity 320ms ease,
    transform 700ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.experience[data-state="idle"] .screen-layer {
  display: none;
}

.experience[data-state="booting"] .screen-layer,
.experience[data-state="login"] .screen-layer,
.experience[data-state="desktop"] .screen-layer {
  inset: clamp(10px, 2vw, 24px);
  width: auto;
  aspect-ratio: auto;
  opacity: 1;
  transform: none;
  clip-path: none;
  pointer-events: auto;
}

.screen-layer::before {
  position: absolute;
  inset: -12px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgb(142 255 175 / 0.42), transparent 68%);
  filter: blur(14px);
}

.screen-layer::after {
  position: absolute;
  inset: 0;
  z-index: 20;
  content: "";
  pointer-events: none;
  border: 3px solid rgb(0 0 0 / 0.88);
  border-radius: 12px;
  background:
    linear-gradient(115deg, transparent 0 11%, rgb(255 255 255 / 0.34) 12%, rgb(255 255 255 / 0.08) 19%, transparent 31%),
    radial-gradient(circle at 50% 46%, transparent 54%, rgb(0 0 0 / 0.3) 100%),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.16) 0 1px, transparent 1px 4px);
  box-shadow:
    inset 0 0 34px rgb(0 0 0 / 0.56),
    inset 0 0 90px rgb(173 255 190 / 0.16);
  mix-blend-mode: multiply;
}

.crt,
.finder-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid #171717;
  border-radius: 10px;
  color: #111;
  background:
    radial-gradient(circle at 50% 45%, rgb(248 255 224 / 0.78), transparent 62%),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.05) 0 1px, transparent 1px 3px),
    #cbd8bd;
  box-shadow:
    inset 0 0 28px rgb(0 0 0 / 0.45),
    0 0 calc(18px + (38px * var(--crt-glow))) rgb(178 255 193 / calc(0.12 + (0.28 * var(--crt-glow))));
  font-family: "Courier New", monospace;
}

.crt::after,
.finder-view::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0.28), transparent 34%),
    radial-gradient(circle at 50% 45%, transparent 55%, rgb(0 0 0 / 0.24));
  mix-blend-mode: multiply;
}

.experience.scanlines-off .screen-layer::after {
  background:
    linear-gradient(115deg, transparent 0 11%, rgb(255 255 255 / 0.34) 12%, rgb(255 255 255 / 0.08) 19%, transparent 31%),
    radial-gradient(circle at 50% 46%, transparent 54%, rgb(0 0 0 / 0.3) 100%);
}

.sleep-view,
.boot-view,
.login-view,
.finder-view {
  display: none;
}

.experience[data-state="idle"] .sleep-view,
.experience[data-state="booting"] .boot-view,
.experience[data-state="login"] .login-view,
.experience[data-state="desktop"] .finder-view {
  display: grid;
}

.sleep-view {
  place-items: stretch;
}

.mini-desktop {
  display: grid;
  grid-template-rows: 24px 1fr;
  min-height: 100%;
}

.mini-menu {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-bottom: 2px solid #111;
  background: #f8f8ee;
  font-size: clamp(6px, 0.72vw, 10px);
}

.mini-prompt {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  font-size: clamp(7px, 0.78vw, 11px);
  font-weight: 700;
  text-align: center;
}

.mini-cursor {
  width: clamp(24px, 4vw, 42px);
  height: clamp(20px, 3.2vw, 34px);
  border: 2px solid #111;
  border-radius: 7px;
  background: #f8f8ee;
  box-shadow: 4px 4px 0 rgb(17 17 17 / 0.18);
}

.boot-view {
  place-items: center;
  align-content: center;
  gap: 20px;
  text-align: center;
}

.happy-mac {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 3px solid #111;
  border-radius: 12px;
  background: #f8f8ee;
  box-shadow: 6px 6px 0 rgb(17 17 17 / 0.18);
  font-size: 30px;
  font-weight: 700;
}

.boot-view p {
  margin: 0;
  font-weight: 700;
}

.boot-track {
  width: min(260px, 68%);
  height: 16px;
  padding: 2px;
  border: 2px solid #111;
  background: #f8f8ee;
}

.boot-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #111 0 8px, #f8f8ee 8px 12px);
  animation: boot-progress 1300ms steps(12) both;
}

.login-view {
  grid-template-rows: 29px 1fr;
  place-items: stretch;
}

.login-menu {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 11px;
  border-bottom: 2px solid #111;
  background: #f8f8ee;
  font-size: 12px;
}

.login-apple {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #111;
  font-size: 9px;
}

.login-menu-label {
  margin-left: auto;
  font-size: 10px;
}

.login-workspace {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 28px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgb(248 255 224 / 0.64), transparent 58%),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.035) 0 1px, transparent 1px 4px);
}

.login-dialog {
  z-index: 1;
  width: min(460px, calc(100% - 24px));
  border: 2px solid #111;
  background: #f8f8ee;
  box-shadow: 8px 8px 0 rgb(17 17 17 / 0.2);
  animation: login-dialog-in 360ms steps(5, end) both;
}

.login-dialog > .titlebar {
  min-height: 27px;
  border: 0;
  border-bottom: 2px solid #111;
  cursor: default;
  touch-action: auto;
}

.login-dialog .dialog-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.login-profile {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 18px;
}

.login-profile p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.login-computer-icon {
  position: relative;
  display: block;
  width: 64px;
  height: 56px;
  border: 3px solid #111;
  background: #dce8cb;
  box-shadow: inset 0 0 0 5px #f8f8ee;
}

.login-computer-icon::before {
  position: absolute;
  right: 12px;
  bottom: -11px;
  left: 12px;
  height: 8px;
  border: 3px solid #111;
  border-top: 0;
  content: "";
  background: #f8f8ee;
}

.login-computer-icon::after {
  position: absolute;
  right: 5px;
  bottom: -17px;
  left: 5px;
  height: 4px;
  content: "";
  background: #111;
}

.login-computer-icon span {
  position: absolute;
  right: 15px;
  bottom: 12px;
  width: 6px;
  height: 6px;
  background: #111;
}

.login-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid #777;
  font-size: 12px;
  font-weight: 700;
}

.login-field input {
  min-width: 0;
  height: 30px;
  padding: 4px 8px;
  border: 2px solid #111;
  border-radius: 0;
  color: #111;
  background: #fff;
  outline: 0;
  font: 700 13px "Courier New", monospace;
  box-shadow: inset 2px 2px 0 rgb(17 17 17 / 0.18);
}

.login-field input:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-actions small {
  color: #444;
  font-size: 10px;
}

.login-actions button {
  min-width: 142px;
  padding: 7px 15px;
  border: 2px solid #111;
  border-radius: 3px;
  color: #111;
  background: #fff;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 3px #111;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.login-actions button:hover,
.login-actions button:focus-visible {
  color: #fff;
  background: #111;
  outline: none;
  box-shadow: none;
}

.login-actions button:active {
  transform: translate(1px, 1px);
}

.login-disk {
  position: absolute;
  right: 26px;
  bottom: 24px;
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 9px;
}

.login-disk span {
  width: 38px;
  height: 34px;
  border: 2px solid #111;
  background:
    linear-gradient(#111 0 0) 7px 7px / 24px 3px no-repeat,
    #f8f8ee;
  box-shadow: 3px 3px 0 rgb(17 17 17 / 0.16);
}

.finder-view {
  grid-template-rows: 29px 1fr;
  background:
    radial-gradient(circle at 45% 42%, rgb(244 255 221 / 0.55), transparent 50%),
    repeating-linear-gradient(135deg, rgb(17 17 17 / 0.025) 0 1px, transparent 1px 5px),
    #cbd8bd;
}

.menu-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 29px;
  padding: 0 10px;
  border-bottom: 2px solid #111;
  background: #f8f8ee;
  box-shadow: 0 2px 0 rgb(17 17 17 / 0.12);
  font-size: 13px;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.menu-root {
  position: relative;
  height: 100%;
}

.menu-trigger {
  height: 100%;
  padding: 0 2px;
  border: 0;
  color: #111;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.menu-trigger:hover,
.menu-trigger:focus-visible,
.menu-trigger.is-open {
  color: #f8f8ee;
  background: #111;
  outline: none;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: -7px;
  z-index: 60;
  display: grid;
  min-width: 190px;
  padding: 4px;
  border: 2px solid #111;
  background: #f8f8ee;
  box-shadow: 6px 6px 0 rgb(17 17 17 / 0.2);
}

.menu-dropdown.hidden {
  display: none;
}

.menu-dropdown button {
  min-height: 25px;
  padding: 4px 9px;
  border: 0;
  color: #111;
  background: transparent;
  cursor: pointer;
  font: 12px "Courier New", monospace;
  text-align: left;
  white-space: nowrap;
}

.menu-dropdown button:hover,
.menu-dropdown button:focus-visible {
  color: #f8f8ee;
  background: #111;
  outline: none;
}

.menu-separator {
  display: block;
  height: 0;
  margin: 4px 3px;
  border-top: 1px solid #111;
}

.menu-command {
  padding: 2px 8px;
  border: 1px solid #111;
  color: #111;
  background: #fff;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}

.menu-command:active {
  color: #fff;
  background: #111;
}

.system-logo {
  position: relative;
  display: grid;
  width: 23px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 1px solid #111;
  color: #111;
  background: #f8f8ee;
  cursor: pointer;
  flex: 0 0 23px;
}

.system-logo::before {
  content: "MB";
  font: 700 8px/1 "Courier New", monospace;
}

.system-logo::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 3px;
  height: 3px;
  content: "";
  background: #111;
}

.system-logo:hover,
.system-logo:focus-visible {
  color: #f8f8ee;
  background: #111;
  outline: none;
}

.desktop-icons {
  position: absolute;
  top: 48px;
  right: 13px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 72px);
  grid-auto-rows: 72px;
  gap: 12px 8px;
  width: 152px;
}

.desktop-icon {
  display: grid;
  width: 72px;
  min-height: 72px;
  justify-items: center;
  align-content: start;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 11px;
  text-align: center;
  user-select: none;
}

.desktop-icon strong {
  max-width: 72px;
  padding: 1px 4px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-icon:hover .desktop-glyph {
  transform: translateY(-2px);
}

.desktop-icon:hover strong,
.desktop-icon.is-selected strong {
  color: #f8f8ee;
  background: #111;
}

.desktop-icon:focus-visible {
  outline: 1px dotted #111;
  outline-offset: 3px;
}

.desktop-glyph {
  position: relative;
  display: block;
  width: 46px;
  height: 44px;
  filter: drop-shadow(3px 3px 0 rgb(17 17 17 / 0.16));
  transition: transform 120ms steps(2, end);
}

.computer-icon {
  width: 44px;
  height: 35px;
  border: 2px solid #111;
  background: #f8f8ee;
  box-shadow: inset 0 0 0 4px #f8f8ee;
}

.computer-icon::before {
  position: relative;
  display: block;
  width: 30px;
  height: 21px;
  margin: 5px;
  border: 2px solid #111;
  content: "";
  background:
    linear-gradient(120deg, rgb(255 255 255 / 0.7), transparent 45%),
    #cbd8bd;
}

.computer-icon::after {
  position: absolute;
  right: 7px;
  bottom: -9px;
  left: 7px;
  height: 7px;
  border: 2px solid #111;
  border-top: 0;
  content: "";
  background: #f8f8ee;
}

.computer-icon i {
  position: absolute;
  right: 9px;
  bottom: 10px;
  z-index: 1;
  width: 4px;
  height: 4px;
  background: #111;
}

.folder-icon {
  height: 34px;
  margin-top: 7px;
  border: 2px solid #111;
  background: #f8f8ee;
}

.folder-icon::before {
  position: absolute;
  top: -8px;
  left: -2px;
  width: 22px;
  height: 8px;
  border: 2px solid #111;
  border-bottom: 0;
  content: "";
  background: #f8f8ee;
}

.folder-icon::after {
  position: absolute;
  right: 4px;
  bottom: 5px;
  left: 4px;
  height: 2px;
  content: "";
  background: #111;
  box-shadow: 0 -6px 0 rgb(17 17 17 / 0.25);
}

.briefcase-icon {
  height: 34px;
  margin-top: 7px;
  border: 2px solid #111;
  background:
    linear-gradient(90deg, transparent 0 44%, #111 44% 56%, transparent 56%) center / 100% 6px no-repeat,
    #f8f8ee;
}

.briefcase-icon::before {
  position: absolute;
  top: -8px;
  left: 13px;
  width: 16px;
  height: 8px;
  border: 2px solid #111;
  border-bottom: 0;
  content: "";
  background: #f8f8ee;
}

.briefcase-icon::after {
  position: absolute;
  right: -2px;
  left: -2px;
  top: 14px;
  height: 2px;
  content: "";
  background: #111;
}

.extensions-icon {
  margin-top: 2px;
  border: 2px solid #111;
  background:
    linear-gradient(90deg, transparent 45%, #111 45% 55%, transparent 55%),
    linear-gradient(transparent 45%, #111 45% 55%, transparent 55%),
    #f8f8ee;
}

.extensions-icon::before,
.extensions-icon::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #111;
  border-radius: 50%;
  content: "";
  background: #cbd8bd;
}

.extensions-icon::before {
  top: -7px;
  left: 15px;
}

.extensions-icon::after {
  right: -7px;
  bottom: 7px;
}

.mail-icon {
  height: 34px;
  margin-top: 7px;
  overflow: hidden;
  border: 2px solid #111;
  background: #f8f8ee;
}

.mail-icon::before,
.mail-icon::after {
  position: absolute;
  top: 5px;
  width: 34px;
  height: 2px;
  content: "";
  background: #111;
}

.mail-icon::before {
  left: -2px;
  transform: rotate(32deg);
  transform-origin: left center;
}

.mail-icon::after {
  right: -2px;
  transform: rotate(-32deg);
  transform-origin: right center;
}

.document-icon {
  width: 36px;
  height: 44px;
  border: 2px solid #111;
  background:
    linear-gradient(135deg, transparent 0 8px, #111 8px 10px, #f8f8ee 10px) top right / 12px 12px no-repeat,
    #f8f8ee;
}

.document-icon::before {
  position: absolute;
  top: 13px;
  right: 6px;
  left: 6px;
  height: 2px;
  content: "";
  background: #111;
  box-shadow: 0 7px #111, 0 14px #111;
}

.calculator-icon {
  width: 38px;
  height: 44px;
  border: 2px solid #111;
  background: #f8f8ee;
}

.calculator-icon::before {
  position: absolute;
  top: 5px;
  right: 5px;
  left: 5px;
  height: 8px;
  border: 1px solid #111;
  content: "";
  background: #cbd8bd;
}

.calculator-icon::after {
  position: absolute;
  top: 19px;
  left: 6px;
  width: 5px;
  height: 5px;
  content: "";
  background: #111;
  box-shadow: 9px 0 #111, 18px 0 #111, 0 9px #111, 9px 9px #111, 18px 9px #111, 0 18px #111, 9px 18px #111, 18px 18px #111;
}

.terminal-icon {
  width: 42px;
  height: 36px;
  margin-top: 4px;
  border: 3px solid #111;
  background: #111;
  box-shadow: inset 0 0 0 3px #f8f8ee;
}

.terminal-icon::before {
  position: absolute;
  top: 8px;
  left: 7px;
  content: ">";
  color: #f8f8ee;
  font: 700 17px "Courier New", monospace;
}

.terminal-icon::after {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 11px;
  height: 2px;
  content: "";
  background: #f8f8ee;
}

.camera-icon {
  width: 44px;
  height: 31px;
  margin-top: 7px;
  border: 2px solid #111;
  background: #f8f8ee;
}

.camera-icon::before {
  position: absolute;
  top: -7px;
  left: 7px;
  width: 15px;
  height: 7px;
  border: 2px solid #111;
  border-bottom: 0;
  content: "";
  background: #f8f8ee;
}

.camera-icon::after {
  position: absolute;
  top: 6px;
  left: 15px;
  width: 12px;
  height: 12px;
  border: 3px double #111;
  border-radius: 50%;
  content: "";
  background: #cbd8bd;
}

.camera-icon i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  background: #111;
}

.city-icon {
  width: 46px;
  height: 40px;
  border-bottom: 3px solid #111;
  background:
    linear-gradient(#111 0 0) 4px 17px / 12px 23px no-repeat,
    linear-gradient(#111 0 0) 18px 6px / 11px 34px no-repeat,
    linear-gradient(#111 0 0) 31px 13px / 12px 27px no-repeat;
}

.city-icon::before {
  position: absolute;
  inset: 11px 7px 5px;
  content: "";
  background:
    repeating-linear-gradient(90deg, #dce8cb 0 3px, transparent 3px 7px),
    repeating-linear-gradient(0deg, #dce8cb 0 3px, transparent 3px 8px);
}

.clock-icon {
  width: 42px;
  height: 42px;
  border: 3px double #111;
  border-radius: 50%;
  background: #f8f8ee;
}

.clock-icon::before,
.clock-icon::after {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 13px;
  height: 2px;
  content: "";
  background: #111;
  transform-origin: left center;
}

.clock-icon::before {
  transform: rotate(-90deg);
}

.clock-icon::after {
  transform: rotate(-24deg);
}

.control-icon {
  width: 42px;
  height: 42px;
  border: 2px solid #111;
  background: #f8f8ee;
}

.control-icon::before {
  position: absolute;
  inset: 8px 6px;
  content: "";
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  box-shadow: 0 8px 0 #111;
}

.control-icon::after {
  position: absolute;
  top: 5px;
  left: 9px;
  width: 7px;
  height: 7px;
  content: "";
  border: 2px solid #111;
  background: #f8f8ee;
  box-shadow: 15px 8px 0 -2px #f8f8ee, 15px 8px 0 0 #111, 4px 16px 0 -2px #f8f8ee, 4px 16px 0 0 #111;
}

.classic-window {
  position: absolute;
  z-index: 2;
  display: flex;
  min-width: 190px;
  min-height: 118px;
  width: min(68%, 360px);
  overflow: hidden;
  border: 2px solid #111;
  flex-direction: column;
  background: #f8f8ee;
  box-shadow: 7px 7px 0 rgb(17 17 17 / 0.18);
  animation: open-window 180ms steps(4) both;
}

.utility-window {
  width: min(58%, 300px);
}

.calc-window {
  width: 188px;
}

.terminal-window {
  width: min(62%, 340px);
  height: 280px;
}

.camera-window {
  width: min(76%, 570px);
  height: min(76%, 520px);
}

.city-window {
  width: min(78%, 610px);
  height: min(78%, 530px);
}

.clock-window {
  width: 190px;
}

.control-window {
  width: 260px;
}

.system-window {
  width: min(72%, 440px);
}

.secret-window {
  width: min(64%, 390px);
}

.experience-window {
  width: min(78%, 660px);
  height: min(72%, 560px);
}

.projects-window {
  width: min(76%, 640px);
  height: min(72%, 570px);
}

.contact-window {
  width: min(72%, 470px);
}

.classic-window.is-active {
  box-shadow:
    8px 8px 0 rgb(17 17 17 / 0.24),
    0 0 0 1px #111;
}

.classic-window.hidden {
  display: none;
}

.classic-window:not(.is-active) .titlebar {
  background:
    repeating-linear-gradient(0deg, rgb(17 17 17 / 0.46) 0 1px, transparent 1px 3px),
    #f8f8ee;
}

.titlebar {
  display: grid;
  grid-template-columns: 16px 1fr 16px;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  padding: 0 7px;
  border-bottom: 2px solid #111;
  background:
    repeating-linear-gradient(0deg, #111 0 1px, transparent 1px 3px),
    #f8f8ee;
  font-size: 12px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.titlebar:active {
  cursor: grabbing;
}

.titlebar strong {
  justify-self: center;
  padding: 0 8px;
  background: #f8f8ee;
  white-space: nowrap;
}

.close-box {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #111;
  background: #f8f8ee;
  cursor: pointer;
}

.close-box:active {
  background: #111;
}

.window-body {
  min-height: 0;
  padding: 15px;
  overflow: auto;
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

.window-body h2 {
  margin: 0 0 11px;
  font-family: Vercetti, "Courier New", monospace;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.window-body p {
  margin: 0 0 8px;
}

.window-kicker {
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-detail h3 {
  margin: -6px 0 12px;
  font-size: 13px;
}

.project-browser {
  display: grid;
  gap: 18px;
}

.project-entry + .project-entry {
  padding-top: 18px;
  border-top: 2px solid #111;
}

.project-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.project-heading h2 {
  margin-bottom: 8px;
}

.project-heading a {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #111;
  color: #111;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.project-heading a:hover {
  color: #f8f8ee;
  background: #111;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.project-stack span {
  padding: 2px 6px;
  border: 1px solid #111;
  background: #dce8cb;
  font-size: 9px;
  font-weight: 700;
}

.resume-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  text-transform: none;
}

.career-list {
  display: grid;
  gap: 20px;
}

.career-list section + section {
  padding-top: 18px;
  border-top: 2px solid #111;
}

.career-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.career-heading h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.career-heading p {
  font-size: 11px;
}

.career-heading time {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid #111;
  background: #dce8cb;
  font-size: 10px;
  font-weight: 700;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.skill-groups section {
  padding: 8px;
  border: 1px solid #111;
  background: #fff;
}

.skill-groups strong {
  display: block;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px dotted #111;
}

.skill-groups p {
  margin: 0;
  font-size: 11px;
}

.contact-sheet {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
}

.contact-sheet h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.contact-links {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.contact-links a {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px;
  color: #111;
  text-decoration: none;
}

.contact-links a > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: #f8f8ee;
  background: #111;
  outline: none;
}

.social-icon {
  display: grid;
  width: 25px;
  height: 23px;
  place-items: center;
  border: 1px solid currentColor;
  background: #f8f8ee;
  color: #111;
  font: 700 10px/1 "Courier New", monospace;
}

.contact-links a:hover .social-icon,
.contact-links a:focus-visible .social-icon {
  border-color: #f8f8ee;
  color: #f8f8ee;
  background: #111;
}

.email-social {
  font-size: 14px;
}

.linkedin-social {
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.contact-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #111;
  background:
    repeating-linear-gradient(135deg, transparent 0 3px, rgb(17 17 17 / 0.08) 3px 4px),
    #dce8cb;
  font-size: 17px;
  font-weight: 700;
}

.window-body ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  text-transform: uppercase;
}

.window-body .resume-list {
  gap: 8px;
  margin: 10px 0 0;
  text-transform: none;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-grid span {
  padding: 4px 7px;
  border: 2px solid #111;
  background: #fff;
}

.resize-handle {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 4;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  border-top: 1px solid #111;
  border-left: 1px solid #111;
  background:
    linear-gradient(135deg, transparent 0 42%, #111 43% 50%, transparent 51% 64%, #111 65% 72%, transparent 73%),
    #f8f8ee;
  cursor: nwse-resize;
  touch-action: none;
}

.system-about {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
}

.system-about h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.system-about p {
  margin-bottom: 12px;
}

.system-about dl {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
}

.system-about dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.system-about dt {
  font-weight: 700;
}

.system-about dd {
  margin: 0;
}

.system-about small {
  display: block;
  padding-top: 9px;
  border-top: 1px dotted #111;
}

.system-mac {
  position: relative;
  display: block;
  width: 76px;
  height: 68px;
  border: 3px solid #111;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 0.75), transparent 40%),
    #cbd8bd;
  box-shadow: inset 0 0 0 7px #f8f8ee;
}

.system-mac::before {
  position: absolute;
  right: 10px;
  bottom: -14px;
  left: 10px;
  height: 11px;
  border: 3px solid #111;
  border-top: 0;
  content: "";
  background: #f8f8ee;
}

.system-mac::after {
  position: absolute;
  right: 3px;
  bottom: -20px;
  left: 3px;
  height: 4px;
  content: "";
  background: #111;
}

.system-mac i {
  position: absolute;
  right: 13px;
  bottom: 14px;
  width: 6px;
  height: 6px;
  background: #111;
}

.secret-about {
  display: grid;
  gap: 12px;
  text-align: center;
}

.secret-about > strong {
  padding: 8px;
  color: #f8f8ee;
  background: #111;
  letter-spacing: 0.08em;
}

.secret-about code {
  padding: 8px;
  border: 1px dashed #111;
  background: #dce8cb;
  font-weight: 700;
}

.notes-app {
  display: grid;
  gap: 8px;
}

.notes-app label {
  font-weight: 700;
}

.notes-app textarea {
  width: 100%;
  min-height: 150px;
  resize: none;
  border: 2px solid #111;
  background: #fff;
  font: 12px/1.4 "Courier New", monospace;
}

.calculator-app {
  display: grid;
  gap: 8px;
}

.calculator-app output {
  display: block;
  min-height: 28px;
  padding: 5px 7px;
  overflow: hidden;
  border: 2px solid #111;
  background: #dfe4d1;
  font: 700 16px "Courier New", monospace;
  text-align: right;
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.calc-keys button {
  min-height: 28px;
  border: 2px solid #111;
  background: #fff;
  cursor: pointer;
  font: 700 13px "Courier New", monospace;
}

.calc-keys button:active {
  color: #fff;
  background: #111;
}

.terminal-app {
  display: flex;
  min-height: 0;
  padding: 10px;
  color: #dce8cb;
  flex-direction: column;
  background: #111;
  font: 12px/1.45 "Courier New", monospace;
}

.terminal-output {
  min-height: 0;
  overflow: auto;
  flex: 1;
  scrollbar-color: #dce8cb #111;
}

.terminal-output p {
  margin: 0 0 4px;
  white-space: pre-wrap;
}

.terminal-command {
  color: #fff;
}

.terminal-error {
  color: #ffb6a8;
}

.terminal-success {
  color: #b7ffc8;
}

.terminal-output.matrix-mode {
  animation: terminal-flicker 120ms steps(2, end) 10;
  text-shadow: 0 0 5px #b7ffc8;
}

.terminal-prompt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #dce8cb;
}

.terminal-prompt label {
  color: #fff;
  font-weight: 700;
}

.terminal-prompt input {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  outline: 0;
  caret-color: #dce8cb;
  font: inherit;
}

.camera-app,
.city-app {
  display: flex;
  min-height: 0;
  gap: 8px;
  flex: 1;
  flex-direction: column;
}

.city-app {
  position: relative;
  padding-bottom: 48px;
}

.camera-toolbar,
.city-toolbar {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
}

.camera-toolbar > strong {
  margin-left: auto;
  font: 700 10px "Courier New", monospace;
}

.camera-toolbar button,
.city-toolbar button,
.city-controls button {
  min-height: 25px;
  border: 2px solid #111;
  color: #111;
  background: #f8f8ee;
  box-shadow: 2px 2px 0 #111;
  cursor: pointer;
  font: 700 10px "Courier New", monospace;
}

.camera-toolbar button:active,
.city-toolbar button:active,
.city-controls button:active {
  color: #f8f8ee;
  background: #111;
  box-shadow: none;
  transform: translate(2px, 2px);
}

.camera-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.camera-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 3px double #111;
  aspect-ratio: 4 / 3;
  flex: 1;
  background: #080b09;
  box-shadow: inset 0 0 28px rgb(179 255 190 / 0.18);
}

.camera-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(118deg, rgb(255 255 255 / 0.16), transparent 24% 72%, rgb(255 255 255 / 0.08)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(0 0 0 / 0.16) 3px 4px);
}

#camera-video {
  display: none;
}

#camera-canvas,
#camera-ascii {
  width: 100%;
  height: 100%;
}

#camera-canvas {
  display: none;
}

#camera-ascii {
  display: grid;
  margin: 0;
  overflow: hidden;
  color: #c9e5b9;
  place-content: center;
  background: #080b09;
  font: 700 7px/0.78 "Courier New", monospace;
  letter-spacing: 0;
  white-space: pre;
  text-shadow: 0 0 4px rgb(183 255 200 / 0.45);
}

#camera-status {
  min-height: 14px;
  margin: 0;
  font: 10px/1.2 "Courier New", monospace;
}

.city-toolbar {
  justify-content: space-between;
  font: 700 10px "Courier New", monospace;
}

.city-toolbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#city-canvas {
  width: 100%;
  height: calc(100% - 38px);
  min-height: 0;
  border: 3px double #111;
  outline: none;
  flex: 1;
  background: #333a36;
  image-rendering: pixelated;
}

#city-canvas:focus {
  box-shadow: 0 0 0 2px #d9f56a;
}

.city-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 5px;
  transform: translateX(-50%);
}

.city-controls button {
  width: 34px;
  height: 28px;
  padding: 0;
  font-size: 17px;
}

.clock-app {
  text-align: center;
}

.clock-app time {
  display: block;
  margin-bottom: 8px;
  font: 700 26px "Courier New", monospace;
}

.control-app {
  display: grid;
  gap: 12px;
}

.control-app label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.control-app input[type="range"] {
  width: 90px;
}

.trash-icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 78px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.trash-icon .info-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #111;
  border-radius: 50%;
  background: #f8f8ee;
  box-shadow: 3px 3px 0 rgb(17 17 17 / 0.16);
}

.info-icon i {
  font: 700 25px Georgia, serif;
}

.trash-icon strong {
  padding: 1px 4px;
}

.trash-icon:hover strong {
  color: #f8f8ee;
  background: #111;
}

.status-strip {
  position: fixed;
  z-index: 5;
  right: clamp(14px, 4vw, 42px);
  bottom: clamp(14px, 4vw, 32px);
  left: clamp(14px, 4vw, 42px);
  display: none;
  justify-content: space-between;
  gap: 16px;
  color: #d9cfb8;
  font-size: 11px;
  pointer-events: none;
}

.experience[data-state="idle"] .status-strip {
  display: none;
}

@keyframes boot-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes open-window {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes login-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes terminal-flicker {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.68;
  }
}

@media (max-width: 720px) {
  .screen-layer {
    top: 33%;
    left: 55%;
    width: 29vw;
    transform: translate(-50%, -50%) perspective(700px) rotateX(-1deg);
  }

  .experience[data-state="booting"] .screen-layer,
  .experience[data-state="login"] .screen-layer,
  .experience[data-state="desktop"] .screen-layer {
    inset: 10px;
    width: auto;
    transform: none;
  }

  .menu-bar {
    gap: 7px;
    font-size: 10px;
  }

  .menu-actions time {
    display: none;
  }

  .menu-bar > strong {
    display: none;
  }

  .menu-root {
    flex: 0 0 auto;
  }

  .menu-dropdown-right {
    right: -72px;
    left: auto;
  }

  .menu-actions {
    gap: 4px;
  }

  .menu-command {
    padding: 1px 5px;
    font-size: 9px;
  }

  .login-menu {
    gap: 9px;
    font-size: 10px;
  }

  .login-menu-label {
    display: none;
  }

  .login-workspace {
    padding: 16px;
  }

  .login-dialog {
    width: min(420px, 100%);
  }

  .login-dialog .dialog-body {
    gap: 15px;
    padding: 17px;
  }

  .login-profile {
    grid-template-columns: 58px 1fr;
    gap: 13px;
  }

  .login-computer-icon {
    width: 52px;
    height: 46px;
  }

  .login-profile p {
    font-size: 10px;
  }

  .login-field {
    grid-template-columns: 90px 1fr;
    gap: 9px;
    font-size: 10px;
  }

  .login-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .login-actions button {
    width: 100%;
  }

  .login-disk {
    display: none;
  }

  .desktop-icons {
    right: 7px;
    grid-template-columns: repeat(2, 62px);
    grid-auto-rows: 62px;
    gap: 8px 4px;
    width: 128px;
    transform: scale(0.9);
    transform-origin: top right;
  }

  .desktop-icon {
    width: 62px;
    min-height: 62px;
    font-size: 9px;
  }

  .desktop-icon strong {
    max-width: 62px;
  }

  .classic-window {
    left: 10px;
    width: calc(100% - 146px);
  }

  .utility-window,
  .terminal-window,
  .camera-window,
  .city-window,
  .control-window,
  .system-window,
  .secret-window,
  .experience-window,
  .projects-window,
  .contact-window {
    width: calc(100% - 146px);
  }

  .window-body {
    padding: 10px;
    font-size: 10px;
  }

  .system-about {
    grid-template-columns: 1fr;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .career-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .system-mac {
    transform: scale(0.76);
    transform-origin: top left;
  }

  .status-strip {
    align-items: end;
    flex-direction: column;
  }
}
