@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #292723;
  --paper: #f5f4ec;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --camera-duration: 1000ms;
  --ui-duration: 200ms;
  --os-ink: #191a17;
  --os-paper: #f3f3ed;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #d3c9bd;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #766539;
  outline-offset: 5px;
}
button {
  touch-action: manipulation;
}
::selection {
  color: #fff;
  background: #504f44;
}
svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#experience {
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.room {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform var(--camera-duration) var(--ease-in-out);
}
.room img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shade {
  position: absolute;
  inset: 0;
  background: #161713;
  opacity: 0;
  transition: opacity var(--camera-duration) var(--ease-in-out);
  pointer-events: none;
}
.home-ui {
  position: absolute;
  inset: 0;
  transition: opacity 300ms var(--ease-out);
  z-index: 4;
  pointer-events: none;
}
.home-ui button {
  pointer-events: auto;
}
.masthead {
  position: absolute;
  top: 34px;
  left: 3.35%;
  right: 3.35%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.name {
  font-size: clamp(16px, 1.65vw, 24px);
  font-weight: 650;
  letter-spacing: -0.035em;
}
.location {
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 450;
}
h1 {
  position: absolute;
  top: 8.8%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(38px, 5.05vw, 76px);
  line-height: 0.99;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 0;
}
h1 span {
  display: inline-block;
  color: #555049;
  margin-top: 6px;
}
.screen-trigger {
  position: absolute;
  background: transparent;
  border: 0;
  border-radius: 6%;
  z-index: 6;
}
.screen-trigger:focus-visible {
  outline-color: #f5f4ec;
  outline-offset: 5px;
}
.invitation {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  white-space: nowrap;
}
.enter-button {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ink);
  color: #f4ede2;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 25px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px #3c322615;
  transition:
    transform 160ms var(--ease-out),
    background 160ms ease;
}
.enter-button svg {
  width: 21px;
  height: 21px;
  transition: transform 200ms var(--ease-out);
}
.enter-button:active {
  transform: scale(0.97);
}
.invitation-note {
  font-size: 11px;
  color: #49443b;
  letter-spacing: 0.025em;
}
.home-footer {
  position: absolute;
  bottom: 3.5%;
  left: 3.35%;
  right: 3.35%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  font-weight: 500;
}
.explore-ui {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}
.back-button {
  position: absolute;
  left: 30px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #f6f3e9;
  font-size: 13px;
  padding: 8px;
}
.back-button svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}
.explore-name {
  position: absolute;
  right: 38px;
  top: 35px;
  font-size: 12px;
  color: #e6e1d6;
}
.explore-footer {
  position: absolute;
  bottom: 23px;
  left: 38px;
  right: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e6e1d6;
  font-size: 11px;
  gap: 15px;
}
.explore-footer button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 6px;
}
.explore-footer svg {
  width: 18px;
  height: 18px;
}
.screen {
  position: absolute;
  transform-origin: 0 0;
  z-index: 3;
  border: 7px solid #151713;
  border-radius: 18px;
  overflow: hidden;
  background: var(--os-paper);
  transition: transform var(--camera-duration) var(--ease-in-out);
  will-change: transform;
}
.os {
  height: 100%;
  position: relative;
  font:
    14px/1.4 "Courier New",
    monospace;
  font-weight: 600;
  color: var(--os-ink);
  background: #b5b6aa;
  overflow: hidden;
}
.menu-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--os-paper);
  height: 34px;
  border-bottom: 2px solid var(--os-ink);
  z-index: 12;
  padding: 0 8px;
  gap: 0;
}
.menu-bar button {
  border: 0;
  background: none;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}
.menu-bar .system-menu {
  padding: 4px 8px;
}
.system-menu svg {
  width: 20px;
  height: 24px;
}
.menu-bar time {
  margin-left: auto;
  align-self: center;
  padding: 0 7px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.desktop {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #b8b9ae;
  background-image: radial-gradient(#44463b 0.65px, transparent 0.75px);
  background-size: 3px 3px;
  overflow: hidden;
}
.desktop-items {
  position: absolute;
  inset: 0;
}
.desktop-icon {
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 110px;
  max-width: 150px;
  padding: 10px 6px;
  border: 0;
  background: none;
  line-height: 1.15;
  --icon-paper: #f3f3ed;
}
.desktop-icon svg {
  width: 49px;
  height: 48px;
  filter: drop-shadow(1px 1px 0 #efefe6);
}
.desktop-icon span {
  background: var(--os-paper);
  padding: 3px 5px;
  max-width: 142px;
  box-decoration-break: clone;
  font-size: 13px;
  font-weight: 600;
}
.birth-icon {
  left: 7%;
  top: 9%;
  width: 130px;
}
.projects-icon {
  right: 8%;
  top: 9%;
}
.side-icon {
  left: 7%;
  bottom: 13%;
}
.readme-icon {
  left: calc(50% - 55px);
  top: 36%;
}
.trash-icon {
  right: 8%;
  bottom: 10%;
}
.desktop-signature {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 80%;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  background: #b8b9ae;
  padding: 0 8px;
  pointer-events: none;
}
.desktop-signature span {
  font-size: 11px;
  font-weight: 400;
}
.crt-glass {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: inset 0 0 26px #1b1e151f;
  background: linear-gradient(120deg, #ffffff0b, transparent 35%);
}
.os-menu {
  position: fixed;
  inset: 34px auto auto 44px;
  margin: 0;
  padding: 4px 0;
  border: 2px solid var(--os-ink);
  background: var(--os-paper);
  color: var(--os-ink);
  box-shadow: 3px 5px 10px #0003;
  font:
    13px/1.5 "Courier New",
    monospace;
  min-width: 220px;
  max-width: calc(100vw - 30px);
}
.os-menu button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 15px;
}
.os-menu button span {
  float: right;
  margin-left: 20px;
}
.os-menu hr {
  border: 0;
  border-top: 1px solid;
  margin: 3px 0;
}
.view-menu {
  left: 120px;
  min-width: 180px;
}
.os-menu button[aria-pressed="true"]::before {
  content: "• ";
}
.mac-window {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 75%;
  max-width: 670px;
  max-height: 84%;
  margin: 0;
  padding: 0;
  border: 2px solid var(--os-ink);
  background: var(--os-paper);
  color: var(--os-ink);
  box-shadow: 7px 12px 24px #15190f30;
  overflow: hidden;
  font:
    13px/1.5 "Courier New",
    monospace;
  opacity: 1;
  transition:
    opacity var(--ui-duration) var(--ease-out),
    transform var(--ui-duration) var(--ease-out);
  flex-direction: column;
}
.mac-window[open] {
  display: flex;
}
.mac-window.closing {
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.97);
}
@starting-style {
  .mac-window[open] {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
}
.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: var(--os-paper);
  border-bottom: 2px solid;
  min-height: 31px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.window-titlebar:active {
  cursor: grabbing;
}
.window-titlebar h2 {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title-lines {
  flex: 1;
  height: 13px;
  background: repeating-linear-gradient(
    to bottom,
    var(--os-ink) 0 1px,
    transparent 1px 3px
  );
}
.window-close,
.window-maximize {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
  background: var(--os-paper);
  border: 1.5px solid;
  padding: 0;
  position: relative;
}
.window-maximize::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid;
}
.window-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.window-close svg {
  width: 18px;
  height: 18px;
}
.window-close::before {
  content: "";
  position: absolute;
  inset: -5px;
}
.window-close:focus-visible,
.window-maximize:focus-visible {
  outline-offset: 2px;
}
.window-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  border-bottom: 1px solid;
  padding: 4px 12px;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
}
.window-toolbar button {
  border: 0;
  background: transparent;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.window-content {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #64665a var(--os-paper);
  scrollbar-width: thin;
  min-height: 120px;
  flex: 1;
}
.window-status {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid;
  padding: 3px 7px;
  min-height: 22px;
  font-size: 11px;
  font-weight: 400;
}
.resize-mark {
  width: 12px;
  height: 12px;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 3px,
    #66685d 3px 4px
  );
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.mac-window.maximized {
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  max-width: none;
  max-height: none;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.mac-window.dragging {
  transition: none;
}
.folder-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 10px;
  padding: 30px 20px;
  min-height: 210px;
}
.file-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  background: none;
  border: 0;
  font: inherit;
  padding: 10px 5px;
  min-height: 105px;
}
.file-item svg {
  width: 43px;
  height: 43px;
}
.file-item span {
  padding: 2px 4px;
  text-align: center;
}
.file-item small {
  font-size: 11px;
  font-weight: 400;
}
.document {
  padding: 30px 35px;
  font-weight: 400;
}
.document h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0 0 20px;
}
.document p {
  margin: 0 0 15px;
  max-width: 65ch;
}
.document p:last-child {
  margin-bottom: 0;
}
.document .fine-print {
  font-size: 11px;
  color: #56584e;
  line-height: 1.6;
}
.document hr {
  border: 0;
  border-top: 1px solid #929588;
  margin: 24px 0;
}
.birth-document {
  text-align: center;
  padding: 28px 40px;
}
.birth-document h3 {
  font-family: Georgia, serif;
  letter-spacing: 0;
  font-size: 28px;
}
.birth-document .fiction {
  display: inline-block;
  border: 1px solid;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.07em;
  margin: 0 0 24px;
}
.birth-document dl {
  text-align: left;
  margin: 22px 0;
}
.birth-document dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dotted #96998e;
}
.birth-document dt {
  font-size: 11px;
}
.birth-document dd {
  margin: 0;
  font-weight: 700;
}
.birth-document .signature {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px;
  margin-top: 20px;
}
.welcome-mark {
  width: 48px;
  height: 54px;
  margin: 0 0 18px;
}
.placeholder-art {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: #e2e3d8;
  border: 1px dotted #727768;
}
.placeholder-art svg {
  width: 46px;
  height: 46px;
}
.document .placeholder-label {
  display: inline-block;
  padding: 3px 6px;
  background: #dfe1d5;
  font-size: 11px;
  margin-bottom: 12px;
}
.text-link {
  display: inline-block;
  color: inherit;
  margin-top: 8px;
  text-underline-offset: 4px;
}
.empty-document {
  text-align: center;
  padding: 30px;
}
.empty-document svg {
  margin: 0 auto 20px;
}
.empty-document h3 {
  font-size: 20px;
}
.desktop-items.list-view {
  inset: 22px 24px auto;
  display: flex;
  flex-direction: column;
  background: var(--os-paper);
  border: 1px solid;
  padding: 10px;
}
.list-view .desktop-icon {
  position: static;
  max-width: none;
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  min-height: 50px;
  padding: 7px 12px;
  border-bottom: 1px dotted #96998e;
}
.list-view .desktop-icon:last-child {
  border: 0;
}
.list-view .desktop-icon svg {
  width: 28px;
  height: 32px;
}
.list-view .desktop-icon span {
  max-width: none;
}
.no-script {
  position: absolute;
  z-index: 30;
  bottom: 15px;
  background: var(--paper);
  padding: 20px;
}
.no-script a {
  color: inherit;
}
body.exploring .home-ui {
  opacity: 0;
  pointer-events: none;
}
body.exploring .home-ui button {
  pointer-events: none;
}
body.exploring .shade {
  opacity: 0.83;
}
body.exploring .explore-ui {
  opacity: 1;
  transition-delay: 500ms;
}
body.exploring .explore-ui button {
  pointer-events: auto;
}
body.exploring .screen {
  z-index: 7;
}
.keyboard-action * {
  transition-duration: 0ms !important;
  animation-duration: 0ms !important;
}
.resizing .room,
.resizing .screen {
  transition: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .enter-button:hover {
    background: #413e36;
  }
  .enter-button:hover svg {
    transform: translateX(4px);
  }
  .desktop-icon:hover span,
  .desktop-icon:focus-visible span,
  .file-item:hover span,
  .file-item:focus-visible span {
    background: var(--os-ink);
    color: var(--os-paper);
  }
  .menu-bar button:hover,
  .os-menu button:hover {
    color: var(--os-paper);
    background: var(--os-ink);
  }
  .back-button:hover {
    color: #fff;
  }
  .window-close:hover {
    background: var(--os-ink);
    color: var(--os-paper);
  }
}
@media (min-aspect-ratio: 17/10) {
  h1 {
    top: 9%;
    font-size: clamp(32px, 7vh, 68px);
  }
  .invitation {
    bottom: 4%;
  }
  .masthead {
    top: 24px;
  }
  .home-footer {
    bottom: 4%;
  }
}
@media (max-width: 700px) {
  .masthead {
    top: 23px;
    left: 23px;
    right: 23px;
  }
  .name {
    font-size: 17px;
  }
  .location {
    font-size: 11px;
  }
  h1 {
    top: 12%;
    font-size: clamp(36px, 8.5vw, 54px);
  }
  .home-footer {
    bottom: 20px;
    left: 23px;
    right: 23px;
    font-size: 11px;
  }
  .home-footer span:first-child {
    max-width: 170px;
  }
  .invitation {
    bottom: 8%;
  }
  .enter-button {
    font-size: 13px;
    padding: 14px 19px;
    gap: 13px;
    border-radius: 10px;
  }
  .invitation-note {
    font-size: 11px;
  }
  .back-button {
    left: 12px;
    top: 17px;
    font-size: 12px;
  }
  .explore-name {
    display: none;
  }
  .explore-footer {
    left: 20px;
    right: 20px;
    bottom: 16px;
    font-size: 11px;
  }
  .explore-footer > span {
    max-width: 175px;
  }
  .screen {
    border-width: 5px;
    border-radius: 12px;
  }
  .menu-bar {
    height: 34px;
    padding: 0 4px;
  }
  .menu-bar button {
    font-size: 11px;
    padding: 0 8px;
  }
  .menu-bar time {
    font-size: 11px;
    padding: 0 3px;
  }
  .menu-bar .system-menu {
    padding: 5px;
  }
  .desktop-icon {
    min-width: 90px;
    max-width: 110px;
  }
  .desktop-icon svg {
    width: 43px;
    height: 43px;
  }
  .desktop-icon span {
    font-size: 12px;
  }
  .birth-icon {
    left: 3%;
    top: 7%;
    width: 110px;
  }
  .projects-icon {
    right: 3%;
    top: 7%;
  }
  .side-icon {
    left: 4%;
    bottom: 15%;
  }
  .trash-icon {
    right: 4%;
    bottom: 15%;
  }
  .readme-icon {
    left: calc(50% - 45px);
    top: 38%;
  }
  .desktop-signature {
    bottom: 12px;
    font-size: 11px;
  }
  .desktop-signature span {
    font-size: 11px;
  }
  .mac-window {
    width: calc(100% - 18px);
    max-height: 88%;
    top: 48%;
  }
  .window-titlebar {
    padding: 7px;
    gap: 7px;
    min-height: 37px;
  }
  .window-close,
  .window-maximize {
    width: 20px;
    height: 20px;
  }
  .window-close {
    width: 28px;
    height: 28px;
  }
  .window-titlebar h2 {
    font-size: 12px;
  }
  .document {
    padding: 24px 20px;
  }
  .document h3 {
    font-size: 21px;
  }
  .birth-document {
    padding: 24px 18px;
  }
  .birth-document h3 {
    font-size: 25px;
  }
  .birth-document dl > div {
    grid-template-columns: 90px 1fr;
    font-size: 11px;
  }
  .folder-files {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 12px;
    gap: 10px;
  }
  .file-item {
    font-size: 12px;
  }
  .view-menu {
    left: 70px;
  }
  .window-content {
    font-size: 12px;
  }
  .window-toolbar {
    font-size: 11px;
  }
  .window-status {
    font-size: 11px;
  }
}
@media (max-height: 600px) {
  .masthead {
    top: 16px;
  }
  h1 {
    top: 12%;
    font-size: 35px;
  }
  .invitation {
    bottom: 4%;
  }
  .invitation-note,
  .home-footer {
    display: none;
  }
  .enter-button {
    padding: 10px 17px;
  }
  .explore-footer {
    bottom: 10px;
  }
  .back-button {
    top: 8px;
  }
  .explore-name {
    top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --camera-duration: 180ms;
    --ui-duration: 120ms;
  }
  .room,
  .screen {
    transition: none;
  }
  .home-ui,
  .explore-ui,
  .shade {
    transition: opacity 150ms ease !important;
  }
  .enter-button,
  .enter-button svg {
    transition: none;
  }
  .mac-window {
    transition: opacity 120ms ease;
  }
  .mac-window.closing {
    transform: translate(-50%, -50%);
  }
  @starting-style {
    .mac-window[open] {
      transform: translate(-50%, -50%);
    }
  }
}

/* Preserve the approved camera proportions on wide displays; only empty wall and desk extend. */
.ambient {
  position: absolute;
  inset: 0;
  background-color: #b9ad9f;
  background-image: url("assets/room.webp");
  background-repeat: no-repeat;
  pointer-events: none;
}
.room img {
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.desktop-icon {
  transition: transform var(--camera-duration) var(--ease-in-out);
}

body:not(.exploring) .desktop {
  background-image: none;
}
body:not(.exploring) .desktop-signature {
  visibility: hidden;
}
@media (min-width: 701px) and (min-aspect-ratio: 17/10) {
  h1 {
    font-size: clamp(32px, 7vh, 68px);
    top: 10%;
  }
  .invitation {
    bottom: 3%;
  }
  .home-footer {
    bottom: 3.5%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-icon {
    transition: none;
  }
}

.initializing .room,
.initializing .screen {
  transition: none;
}
.preview-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 332px;
  height: 261px;
  transform-origin: 0 0;
  background: #b8b9ae;
  color: #171915;
  font:
    10px/1.1 "Courier New",
    monospace;
  font-weight: 700;
  z-index: 22;
  pointer-events: none;
  opacity: 1;
  transition: opacity 150ms ease;
}
.preview-menu {
  height: 29px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f3f3ed;
  border-bottom: 1px solid;
  padding: 5px 8px;
  font-size: 11px;
}
.preview-menu svg {
  width: 13px;
  height: 17px;
}
.preview-file {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 85px;
}
.preview-file svg {
  width: 39px;
  height: 39px;
}
.preview-file span {
  background: #f3f3ed;
  padding: 2px 4px;
  text-align: center;
}
.preview-birth {
  top: 43px;
  left: 18px;
}
.preview-projects {
  top: 49px;
  right: 16px;
}
.preview-aside {
  bottom: 25px;
  left: 18px;
}
.preview-trash {
  bottom: 21px;
  right: 16px;
}
.preview-welcome {
  top: 108px;
  left: 123px;
}
.preview-welcome svg {
  height: 52px;
  width: 48px;
}
.os {
  opacity: 0;
  transition: opacity 180ms ease;
}
.exploring .os {
  opacity: 1;
  transition-delay: 150ms;
}
.exploring .preview-desktop {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .preview-desktop,
  .os {
    transition: none !important;
  }
}
.ambient {
  filter: blur(24px);
  transform: scale(1.12);
}
.room img {
  mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 4%, #000 95%, transparent);
  mask-composite: intersect;
}
@media (max-width: 700px) {
  .invitation {
    bottom: 6%;
  }
}

@media (max-height: 480px) {
  body {
    overflow-y: auto;
  }
  h1 {
    font-size: 30px;
    top: 11%;
  }
}

/* Real documents remain readable; only the noninteractive miniature and system chrome are compact. */
.document {
  font-size: 14px;
  line-height: 1.65;
}
.document .fine-print {
  font-size: 12px;
}
.birth-document .fiction {
  font-size: 12px;
}
.cv-icon {
  left: 7%;
  top: 40%;
}
.preview-cv {
  left: 18px;
  top: 119px;
}
.preview-cv svg {
  width: 30px;
  height: 31px;
}
.cv-document h3 {
  margin-bottom: 6px;
  font-size: 26px;
}
.cv-document .cv-role {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.cv-document h4 {
  font-size: 16px;
  border-bottom: 1px solid;
  padding-bottom: 6px;
  margin: 30px 0 14px;
}
.cv-entry {
  margin: 0 0 22px;
}
.cv-entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cv-entry-heading h5 {
  font-size: 14px;
  margin: 0;
}
.cv-entry-heading span {
  font-size: 12px;
}
.cv-document .cv-job {
  font-weight: 700;
  margin: 3px 0 7px;
}
.cv-links {
  display: flex;
  gap: 24px;
}
.cv-links a {
  color: inherit;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .cv-icon {
    left: 3%;
    top: 39%;
  }
  .birth-document dl > div {
    font-size: 13px;
  }
  .birth-document dt {
    font-size: 12px;
  }
}

/* CRT ignition: one spatial reveal, contained entirely inside the physical glass. */
.screen {
  --power-duration: 1800ms;
}
.crt-startup {
  position: absolute;
  pointer-events: none;
}
.crt-power-cover {
  inset: 0;
  z-index: 30;
}
.crt-power-cover::before,
.crt-power-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50.1%;
  background: #10120f;
  transform: scaleY(1);
}
.crt-power-cover::before {
  top: 0;
  transform-origin: center top;
}
.crt-power-cover::after {
  bottom: 0;
  transform-origin: center bottom;
}
.crt-power-beam {
  inset: 0;
  z-index: 32;
  opacity: 0;
  transform-origin: center;
  background: linear-gradient(
    90deg,
    transparent 1%,
    #c8cec1 8%,
    #fffef1 35%,
    #fffef1 65%,
    #c8cec1 92%,
    transparent 99%
  );
}
.crt-power-spark {
  left: calc(50% - 5px);
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  z-index: 33;
  border-radius: 50%;
  background: #fffef1;
  opacity: 0;
  box-shadow: 0 0 16px 5px #f3f6da55;
}
.crt-power-scan {
  top: 0;
  left: 0;
  right: 0;
  height: 23%;
  z-index: 34;
  opacity: 0;
  background: linear-gradient(
    transparent,
    #f7f9e922 48%,
    #f7f9e947 50%,
    transparent 54%
  );
}
.crt-power-phosphor {
  inset: 0;
  z-index: 31;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, #e5ebd4aa, transparent 75%);
}
.powering-on .crt-power-cover::before,
.powering-on .crt-power-cover::after {
  animation: crt-open var(--power-duration) var(--ease-out) forwards;
}
.powering-on .crt-power-spark {
  animation: crt-spark var(--power-duration) var(--ease-out) forwards;
}
.powering-on .crt-power-beam {
  animation: crt-beam var(--power-duration) var(--ease-out) forwards;
}
.powering-on .crt-power-scan {
  animation: crt-scan var(--power-duration) linear forwards;
}
.powering-on .crt-power-phosphor {
  animation: crt-phosphor var(--power-duration) var(--ease-out) forwards;
}
@keyframes crt-open {
  0%,
  35% {
    transform: scaleY(1);
    opacity: 1;
  }
  43% {
    transform: scaleY(0.985);
    opacity: 1;
  }
  75% {
    transform: scaleY(0.001);
    opacity: 1;
  }
  80%,
  100% {
    transform: scaleY(0.001);
    opacity: 0;
  }
}
@keyframes crt-spark {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  10%,
  16% {
    opacity: 0.9;
    transform: scale(1);
  }
  28%,
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}
@keyframes crt-beam {
  0%,
  10% {
    opacity: 0;
    transform: scale(0.015, 0.006);
  }
  18% {
    opacity: 0.75;
    transform: scale(0.09, 0.008);
  }
  34% {
    opacity: 0.9;
    transform: scale(0.95, 0.008);
  }
  43% {
    opacity: 0.65;
    transform: scale(0.98, 0.025);
  }
  65% {
    opacity: 0.12;
    transform: scale(1, 1);
  }
  82%,
  100% {
    opacity: 0;
    transform: scale(1, 1);
  }
}
@keyframes crt-scan {
  0%,
  57% {
    opacity: 0;
    transform: translateY(-100%);
  }
  61% {
    opacity: 0.65;
    transform: translateY(-60%);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(455%);
  }
}
@keyframes crt-phosphor {
  0%,
  40% {
    opacity: 0;
  }
  57% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
  }
}
@keyframes crt-soft-reveal {
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .powering-on .crt-power-cover {
    animation: crt-soft-reveal 180ms ease forwards;
  }
  .powering-on .crt-power-cover::before,
  .powering-on .crt-power-cover::after {
    animation: none;
  }
  .powering-on .crt-power-spark,
  .powering-on .crt-power-beam,
  .powering-on .crt-power-scan,
  .powering-on .crt-power-phosphor {
    animation: none;
  }
}

/* Decorative startup transcript: no command is executed and no text is announced. */
.startup-terminal {
  top: 0;
  left: 0;
  width: 332px;
  height: 261px;
  z-index: 29;
  transform-origin: top left;
  padding: 25px 22px;
  background: #10120f;
  color: #f3f3ed;
  font:
    14px/1.55 "Courier New",
    monospace;
  text-align: left;
  opacity: 1;
}
.startup-terminal p {
  margin: 0 0 8px;
  white-space: nowrap;
}
.startup-terminal .terminal-host {
  color: #bec3b7;
  font-size: 12px;
  margin-bottom: 20px;
  opacity: 0;
}
.terminal-command span {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}
.terminal-output {
  opacity: 0;
}
.powering-on .terminal-host {
  animation: terminal-line 160ms ease 1200ms forwards;
}
.powering-on .terminal-cd span {
  animation: terminal-type 480ms steps(22, end) 1400ms forwards;
}
.powering-on .terminal-ls span {
  animation: terminal-type 100ms steps(4, end) 2050ms forwards;
}
.powering-on .terminal-files {
  animation: terminal-line 100ms ease 2200ms forwards;
}
.powering-on .terminal-run span {
  animation: terminal-type 340ms steps(14, end) 2450ms forwards;
}
.powering-on .terminal-welcome {
  animation: terminal-line 180ms ease 2950ms forwards;
}
.powering-on .startup-terminal {
  animation: terminal-dismiss 250ms var(--ease-out) 3750ms forwards;
}
@keyframes terminal-type {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes terminal-line {
  to {
    opacity: 1;
  }
}
@keyframes terminal-dismiss {
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .startup-terminal {
    display: none;
  }
}
