:root {
  --ink: #101010;
  --paper: #f2f0eb;
  --muted: rgba(16, 16, 16, 0.62);
  --line: rgba(16, 16, 16, 0.14);
  --red: #a78bfa;
  --screen: #f5f2ec;
  --screen-dark: #171717;
  --metal: #9c9d9c;
  --folder: #f1b827;
  --green: #3dbb66;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: #c9c9c5;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

::selection {
  color: #fff;
  background: var(--red);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.desk-experience {
  min-height: 100vh;
}

.desk-scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 54px);
  perspective: 1400px;
  background:
    radial-gradient(
      circle at 74% 20%,
      rgba(255, 255, 255, 0.42),
      transparent 18rem
    ),
    radial-gradient(
      circle at 20% 24%,
      rgba(255, 255, 255, 0.6),
      transparent 16rem
    ),
    linear-gradient(180deg, #c7c7c3 0 45%, #d8d8d4 45% 100%);
}

.wall {
  position: absolute;
  inset: 0 0 45%;
  background:
    linear-gradient(118deg, transparent 0 56%, rgba(0, 0, 0, 0.05) 57% 100%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.28), transparent 40%), #bfc0bd;
}

.desk-surface {
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: -9vh;
  height: 55vh;
  background:
    radial-gradient(
      ellipse at 72% 18%,
      rgba(255, 255, 255, 0.58),
      transparent 24rem
    ),
    linear-gradient(100deg, #ededeb 0%, #dbdbd8 58%, #c8c8c4 100%);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.08);
  transform: rotateX(58deg) translateY(10vh);
  transform-origin: center top;
}

.desk-object {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.notebook {
  left: clamp(18px, 6vw, 96px);
  bottom: clamp(72px, 13vh, 150px);
  width: clamp(140px, 19vw, 250px);
  height: clamp(90px, 12vw, 154px);
  background: #c9a879;
  border-radius: 4px;
  box-shadow: 16px 18px 24px rgba(0, 0, 0, 0.18);
  transform: rotate(-3deg) skewX(-10deg);
}

.notebook::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 72%;
  width: 10px;
  background: #ef4a18;
}

.notebook::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 14px;
  background: #ece4d2;
  border-radius: 0 0 4px 4px;
}

.notebook span {
  position: absolute;
  right: 25px;
  top: -12px;
  width: 7px;
  height: 150px;
  background: #ec5b22;
  border-radius: 999px;
  transform: rotate(79deg);
  box-shadow: 0 0 0 2px rgba(90, 49, 22, 0.18);
}

.cup {
  left: clamp(48px, 10vw, 150px);
  bottom: clamp(145px, 24vh, 250px);
  width: clamp(70px, 9vw, 116px);
  height: clamp(62px, 8vw, 104px);
  background:
    radial-gradient(
      ellipse at 50% 14%,
      #fdfdfd 0 34%,
      #d9d9d6 35% 42%,
      transparent 43%
    ),
    linear-gradient(90deg, #f7f7f6, #d7d7d3);
  border-radius: 12px 12px 32px 32px;
  box-shadow: 20px 22px 28px rgba(0, 0, 0, 0.16);
}

.cup::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 28%;
  width: 34px;
  height: 34px;
  border: 8px solid #e7e7e4;
  border-left: 0;
  border-radius: 0 24px 24px 0;
}

.pencil-cup {
  left: clamp(180px, 27vw, 480px);
  bottom: clamp(180px, 27vh, 300px);
  width: clamp(74px, 9vw, 118px);
  height: clamp(88px, 11vw, 142px);
  border: 3px solid #191919;
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(
      90deg,
      transparent 0 8px,
      rgba(255, 255, 255, 0.28) 9px 10px,
      transparent 11px 18px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.08));
  background-size:
    18px 100%,
    auto;
  box-shadow: 18px 24px 26px rgba(0, 0, 0, 0.18);
}

.pencil-cup i {
  position: absolute;
  bottom: 54%;
  left: 48%;
  width: 8px;
  height: 130px;
  background: #df8f17;
  border-radius: 999px;
  transform-origin: bottom center;
}

.pencil-cup i:nth-child(1) {
  transform: rotate(-24deg);
}

.pencil-cup i:nth-child(2) {
  height: 116px;
  background: #1d1d1d;
  transform: rotate(-5deg);
}

.pencil-cup i:nth-child(3) {
  height: 126px;
  background: #d6a18f;
  transform: rotate(15deg);
}

.pencil-cup i:nth-child(4) {
  height: 110px;
  background: #f2f2ef;
  transform: rotate(30deg);
}

.laptop {
  position: relative;
  z-index: 5;
  width: min(58vw, 860px);
  min-width: 620px;
  transform: rotateX(5deg) rotateY(-9deg) rotateZ(3deg);
  transform-style: preserve-3d;
  filter: drop-shadow(34px 44px 34px rgba(0, 0, 0, 0.3));
}

.laptop-screen-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: clamp(10px, 1.3vw, 16px);
  background: linear-gradient(135deg, #111, #3b3b3d 56%, #121214);
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px 24px 10px 10px;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.84),
    inset 0 0 26px rgba(255, 255, 255, 0.12);
}

.laptop-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 3;
  width: 7px;
  height: 7px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.laptop-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, #f7f2e7 0%, #dedad0 100%);
  border-radius: 10px 10px 3px 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.laptop-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%);
  mix-blend-mode: screen;
}

.desktop-topbar,
.desktop-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(15, 15, 15, 0.86);
  backdrop-filter: blur(12px);
}

.desktop-topbar {
  top: 0;
  min-height: 38px;
  padding: 0 14px;
}

.desktop-brand,
.desktop-menu,
.desktop-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.desktop-menu {
  position: absolute;
  left: 168px;
  color: rgba(255, 255, 255, 0.56);
}

.desktop-status {
  color: rgba(255, 255, 255, 0.62);
}

.desktop-workspace {
  position: absolute;
  inset: 38px 0 34px;
  overflow: hidden;
}

.desktop-folders {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 5;
  display: grid;
  gap: 16px;
}

.folder {
  width: 86px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 5px 3px;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.folder:hover,
.folder:focus-visible,
.folder.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  outline: 0;
}

.folder-icon {
  width: 54px;
  height: 54px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.folder[data-window="about"] .folder-icon {
  background-image: url("assets/icons/abouticon.png");
}

.folder[data-window="portfolio"] .folder-icon {
  background-image: url("assets/icons/portfolioicon.png");
}

.folder[data-window="services"] .folder-icon {
  background-image: url("assets/icons/servicesicon.png");
}

.folder[data-window="contact"] .folder-icon {
  background-image: url("assets/icons/contacticon.png");
}

.folder strong {
  color: #151515;
  font-size: 0.72rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.desktop-window {
  position: absolute;
  left: 128px;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  overflow: hidden;
  background: var(--screen);
  border: 1px solid rgba(16, 16, 16, 0.24);
  border-radius: 10px;
  box-shadow: 12px 16px 26px rgba(0, 0, 0, 0.18);
}

.desktop-window.is-open {
  display: block;
  animation: windowIn 180ms ease both;
}

.desktop-window.is-expanded,
.laptop .desktop-window.is-expanded {
  left: 18px;
  top: 18px;
  width: calc(100vw - 36px);
  height: calc(100vh - 104px);
}

.section-frame {
  width: 100%;
  height: calc(100% - 38px);
  display: block;
  background: transparent;
  border: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.section-frame::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent), #151515;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-control {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5d5d5d;
  cursor: pointer;
}

.window-control.close {
  background: #ef4b4b;
}

.window-control.minimize {
  background: #f2bd35;
}

.window-control.expand {
  background: #38b261;
}

.window-control:hover,
.window-control:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  outline: 0;
}

.window-content {
  height: calc(100% - 32px);
  overflow: auto;
  padding: clamp(18px, 3vw, 34px);
}

.profile-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 22px;
  align-items: start;
}

.profile-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 18px 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0.4)
    ),
    rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 10px;
  text-align: center;
}

.profile-card img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  padding: 8px;
  background: #111;
  border-radius: 18px;
}

.profile-card strong {
  font-size: 0.9rem;
  line-height: 1;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 14px;
  color: #111;
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.about-window p:not(.eyebrow),
.window-content > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

.quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.quick-list span {
  padding: 8px 10px;
  color: #161616;
  background: rgba(167, 139, 250, 0.09);
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-card {
  margin-top: 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background: #111;
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: 10px;
}

.terminal-card div {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: #1d1d1d;
}

.terminal-card span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4b4b;
}

.terminal-card span:nth-child(2) {
  background: #f2bd35;
}

.terminal-card span:nth-child(3) {
  background: var(--green);
}

.terminal-card p {
  margin: 0;
  padding: 0 14px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.8rem;
}

.terminal-card div + p {
  padding-top: 12px;
}

.portfolio-window,
.contact-window {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.portfolio-window.is-open,
.contact-window.is-open {
  display: grid;
}

.finder-sidebar,
.mail-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(16, 16, 16, 0.1);
}

.finder-sidebar strong,
.mail-sidebar strong {
  margin-bottom: 5px;
  color: rgba(16, 16, 16, 0.42);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finder-sidebar span,
.mail-sidebar span,
.mail-sidebar a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: rgba(16, 16, 16, 0.66);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
}

.finder-sidebar .is-selected,
.mail-sidebar .is-selected {
  color: #fff;
  background: #151515;
}

.finder-main,
.mail-composer {
  min-width: 0;
  overflow: auto;
  padding: clamp(18px, 2.6vw, 28px);
}

.finder-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.finder-head a {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: #151515;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.dock-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.56)
    ),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 16, 16, 0.11);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.dock-card:hover,
.dock-card:focus-visible {
  background: #fff;
  border-color: rgba(167, 139, 250, 0.34);
  outline: 0;
  transform: translateY(-2px);
}

.dock-card img {
  width: 82px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
  filter: saturate(0.92) brightness(0.84);
}

.dock-card span {
  display: block;
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dock-card strong {
  display: block;
  overflow: hidden;
  color: #111;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-composer .eyebrow,
.mail-composer h2 {
  margin-left: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form span {
  color: rgba(16, 16, 16, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form .full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  color: #151515;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.14);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(167, 139, 250, 0.55);
  outline: 0;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(16, 16, 16, 0.16);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: #151515;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red);
  border-color: var(--red);
  outline: 0;
}

.direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.direct-links a {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.desktop-taskbar {
  bottom: 0;
  min-height: 34px;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 8px;
}

.desktop-taskbar button {
  display: none;
  min-height: 24px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.desktop-taskbar button.is-available {
  display: inline-flex;
  align-items: center;
}

.desktop-taskbar button:hover,
.desktop-taskbar button:focus-visible,
.desktop-taskbar button.is-active {
  color: #fff;
  background: rgba(167, 139, 250, 0.9);
  outline: 0;
}

.laptop-hinge {
  width: 86%;
  height: 14px;
  margin: 0 auto;
  background: linear-gradient(90deg, #555, #c4c4c1 16% 84%, #555);
  border-radius: 0 0 999px 999px;
}

.laptop-base {
  position: relative;
  width: 112%;
  height: clamp(120px, 12vw, 178px);
  margin-left: -6%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 34%),
    radial-gradient(
      ellipse at 50% 92%,
      rgba(255, 255, 255, 0.24),
      transparent 18%
    ),
    linear-gradient(180deg, #c6c7c5, #777878);
  border-radius: 8px 8px 36px 36px;
  transform: rotateX(67deg);
  transform-origin: top center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 24px 32px rgba(0, 0, 0, 0.22);
}

.keyboard {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 14%;
  height: 43%;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.24) 1px, transparent 1px),
    rgba(36, 36, 36, 0.42);
  background-size: 34px 18px;
}

.trackpad {
  position: absolute;
  left: 39%;
  top: 62%;
  width: 22%;
  height: 28%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(220, 220, 218, 0.3);
}

@keyframes windowIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
  }

  .desk-scene {
    min-height: 100svh;
    padding: 86px 14px 30px;
    place-items: start center;
  }

  .desk-object {
    opacity: 0.45;
  }

  .notebook {
    left: 8px;
    bottom: 38px;
  }

  .cup,
  .pencil-cup {
    display: none;
  }

  .laptop {
    width: min(100%, 720px);
    min-width: 0;
    transform: none;
  }

  .laptop-base {
    height: 110px;
  }

  .desktop-window {
    left: 96px;
  }

  .desktop-menu {
    display: none;
  }

  .profile-document {
    grid-template-columns: 1fr;
  }

  .profile-card {
    justify-items: start;
    text-align: left;
  }

  .portfolio-window,
  .contact-window {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .project-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .desk-scene {
    padding: 14px;
    align-content: center;
  }

  .desk-surface,
  .notebook {
    display: none;
  }

  .laptop-screen-shell {
    padding: 8px;
    border-radius: 18px;
  }

  .laptop-screen {
    min-height: 640px;
  }

  .desktop-topbar {
    min-height: 42px;
  }

  .desktop-status span:first-child {
    display: none;
  }

  .desktop-workspace {
    inset: 42px 0 36px;
    overflow: auto;
  }

  .desktop-folders {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .folder {
    width: auto;
  }

  .folder-icon {
    width: 44px;
    height: 44px;
  }

  .desktop-window {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    min-height: 450px;
    margin: 0 10px 10px;
  }

  .portfolio-window,
  .contact-window {
    display: none;
    grid-template-columns: 1fr;
  }

  .portfolio-window.is-open,
  .contact-window.is-open {
    display: grid;
  }

  .finder-sidebar,
  .mail-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 16, 16, 0.1);
  }

  .finder-sidebar strong,
  .mail-sidebar strong {
    display: none;
  }

  .finder-sidebar span,
  .mail-sidebar span,
  .mail-sidebar a {
    flex: 0 0 auto;
  }

  .finder-main,
  .mail-composer {
    padding: 18px;
  }

  .finder-head {
    display: grid;
  }

  .window-content {
    padding: 18px;
  }

  .portfolio-window,
  .contact-window {
    padding: 0;
  }

  h1,
  h2 {
    font-size: clamp(2.2rem, 15vw, 3.9rem);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .dock-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .dock-card img {
    width: 76px;
    height: 52px;
  }

  .laptop-hinge,
  .laptop-base {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Full desktop OS pass: the website is the computer. */
.desk-page {
  overflow: hidden;
  background: #151515;
}

.desk-page.is-locked .desktop-topbar,
.desk-page.is-locked .desktop-workspace,
.desk-page.is-locked .desktop-taskbar {
  filter: blur(10px);
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
}

.desk-scene {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: #050505;
  perspective: none;
}

.os-background-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1) brightness(0.82) contrast(1.05);
}

.desk-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, transparent, rgba(0, 0, 0, 0.18) 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

.wall,
.desk-surface,
.desk-object,
.laptop-hinge,
.laptop-base,
.laptop-camera {
  display: none;
}

.laptop,
.laptop.desktop-os {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: auto;
  min-width: 0;
  height: auto;
  filter: none;
  transform: none;
}

.laptop-screen-shell {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.laptop-screen {
  height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lock-screen {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  place-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 68px);
  color: #fff;
  background: linear-gradient(135deg, rgba(4, 4, 4, 0.82), rgba(8, 8, 8, 0.9));
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    visibility 360ms ease;
}

.desk-page:not(.is-locked) .lock-screen {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  pointer-events: none;
}

.lock-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 42%,
    transparent 0 26rem,
    rgba(0, 0, 0, 0.34) 48rem
  );
  mask-image: radial-gradient(circle at 50% 44%, black, transparent 72%);
}

.lock-time {
  position: relative;
  z-index: 1;
  grid-row: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.lock-time span {
  font-size: clamp(4.2rem, 11vw, 9.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.lock-time strong {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.user-select {
  position: relative;
  z-index: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(122px, 168px));
  gap: clamp(12px, 2vw, 22px);
}

.user-card {
  min-height: 168px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 10px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.user-card:hover,
.user-card:focus-visible {
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.32));
  outline: 0;
  transform: translateY(-5px);
}

.user-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.user-avatar img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.28));
}

.user-card strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.user-card em {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lock-hint {
  position: relative;
  z-index: 1;
  grid-row: 4;
  align-self: start;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.laptop-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    transparent 40%,
    rgba(0, 0, 0, 0.03)
  );
}

.laptop-screen::after {
  display: none;
}

.desktop-topbar {
  min-height: 42px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(12, 12, 12, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.desktop-brand,
.desktop-menu,
.desktop-status,
.laptop .desktop-brand,
.laptop .desktop-menu,
.laptop .desktop-status {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.desktop-brand img,
.laptop .desktop-brand img {
  width: 24px;
  height: 24px;
}

.desktop-menu {
  left: 210px;
}

.desktop-workspace,
.laptop .desktop-workspace {
  inset: 42px 0 44px;
  z-index: 2;
}

.desktop-taskbar,
.laptop .desktop-taskbar {
  min-height: 44px;
  padding: 0 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(12, 12, 12, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.desktop-taskbar button {
  min-height: 28px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.desktop-folders,
.laptop .desktop-folders {
  left: 20px;
  top: 18px;
  gap: 22px;
}

.folder,
.laptop .folder {
  width: 90px;
  gap: 8px;
  padding: 8px 4px;
}

.folder-icon,
.laptop .folder-icon {
  width: 58px;
  height: 58px;
}

.folder strong,
.laptop .folder strong {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.desktop-window,
.laptop .desktop-window {
  left: clamp(132px, 12vw, 188px);
  top: clamp(18px, 4vh, 42px);
  right: auto;
  bottom: auto;
  width: min(calc(100vw - clamp(170px, 15vw, 240px)), 1180px);
  height: min(calc(100vh - 118px), 840px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.34);
  background: rgba(246, 242, 234, 0.96);
  backdrop-filter: blur(18px);
}

.window-bar {
  height: 38px;
  padding: 0 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent), #111;
  font-size: 0.82rem;
}

.window-content,
.laptop .window-content {
  height: calc(100% - 38px);
  padding: clamp(24px, 3vw, 40px);
}

.laptop h1,
.laptop h2,
h1,
h2 {
  color: #070707;
  font-size: clamp(2.9rem, 5.8vw, 6.2rem);
  max-width: 720px;
}

.profile-document {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: clamp(24px, 5vw, 72px);
}

.profile-card,
.laptop .profile-card {
  padding: 28px 22px;
}

.profile-card img,
.laptop .profile-card img {
  width: 78px;
  height: 78px;
}

.about-window p:not(.eyebrow),
.window-content > p:not(.eyebrow) {
  color: rgba(7, 7, 7, 0.64);
  max-width: 620px;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
}

.about-window .terminal-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.quick-list {
  margin-top: 42px;
}

.quick-list span,
.laptop .quick-list span {
  padding: 10px 14px;
  font-size: 0.88rem;
}

.portfolio-window,
.contact-window {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 0;
}

.project-dock {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dock-card {
  grid-template-columns: 118px minmax(0, 1fr);
  padding: 12px;
}

.dock-card img {
  width: 118px;
  height: 76px;
}

.dock-card strong {
  font-size: 1.18rem;
}

.contact-form {
  max-width: 760px;
  gap: 14px;
}

@media (max-width: 980px) {
  .desk-page {
    overflow-y: auto;
  }

  .desk-scene {
    min-height: 100svh;
  }

  .desktop-menu {
    display: none;
  }

  .desktop-topbar {
    min-height: 44px;
    padding: 0 14px;
  }

  .desktop-workspace,
  .laptop .desktop-workspace {
    inset: 44px 0 42px;
    overflow: auto;
  }

  .desktop-folders,
  .laptop .desktop-folders {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .folder,
  .laptop .folder {
    width: auto;
  }

  .desktop-window,
  .laptop .desktop-window {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    min-height: calc(100svh - 166px);
    margin: 0 12px 12px;
  }

  .profile-document {
    grid-template-columns: 1fr;
  }

  .project-dock {
    grid-template-columns: 1fr;
  }

  .portfolio-window,
  .contact-window,
  .services-window {
    grid-template-columns: 1fr;
  }

  .user-select {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 680px);
  }
}

@media (max-width: 640px) {
  .desktop-status span:first-child {
    display: none;
  }

  .desktop-brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-window,
  .laptop .desktop-window {
    min-height: calc(100svh - 170px);
  }

  .window-content,
  .laptop .window-content {
    padding: 18px;
  }

  .laptop h1,
  .laptop h2,
  h1,
  h2 {
    font-size: clamp(2.45rem, 14vw, 4.4rem);
  }

  .dock-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .dock-card img {
    width: 82px;
    height: 56px;
  }

  .lock-screen {
    gap: 18px;
    padding: 22px 14px;
  }

  .user-select {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 370px);
  }

  .user-card {
    min-height: 104px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .user-avatar {
    width: 74px;
    height: 74px;
    border-radius: 0;
    grid-row: auto;
  }

  .user-avatar img {
    width: 74px;
    height: 74px;
  }

  .lock-hint {
    font-size: 0.68rem;
  }
}

/* Glass OS polish */
.desktop-window,
.laptop .desktop-window {
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.045)
    ),
    rgba(10, 10, 10, 0.66);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px) saturate(1.18);
}

.desktop-window.is-expanded,
.laptop .desktop-window.is-expanded {
  left: 18px;
  top: 18px;
  width: calc(100vw - 36px);
  height: calc(100vh - 104px);
}

.window-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    rgba(7, 7, 7, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window-content,
.laptop .window-content {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.035)
  );
}

.laptop h1,
.laptop h2,
h1,
h2 {
  color: #fff;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.about-window p:not(.eyebrow),
.window-content > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.profile-card,
.laptop .profile-card,
.finder-sidebar,
.mail-sidebar,
.dock-card,
input,
textarea {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.07)
    ),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.12);
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .desk-page {
    width: 100%;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .desktop-topbar,
  .laptop .desktop-topbar {
    min-height: 46px;
    padding: 0 14px;
  }

  .desktop-brand span {
    max-width: 170px;
  }

  .desktop-workspace,
  .laptop .desktop-workspace {
    inset: 46px 0 44px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
    padding: 10px;
  }

  .desktop-folders,
  .laptop .desktop-folders {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
  }

  .folder,
  .laptop .folder {
    min-height: 84px;
    width: auto;
    padding: 8px 6px;
    border-radius: 8px;
  }

  .folder-icon {
    width: 48px;
    height: 48px;
  }

  .folder strong {
    font-size: 0.78rem;
  }

  .desktop-window,
  .laptop .desktop-window {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 10px;
  }

  .desktop-window.is-open,
  .laptop .desktop-window.is-open {
    display: block;
  }

  .window-bar {
    height: 36px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .window-control {
    width: 9px;
    height: 9px;
  }

  .section-frame {
    height: calc(100% - 36px);
  }

  .desktop-taskbar,
  .laptop .desktop-taskbar {
    min-height: 44px;
    gap: 6px;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .desktop-taskbar::-webkit-scrollbar,
  .laptop .desktop-taskbar::-webkit-scrollbar {
    display: none;
  }

  .desktop-taskbar button {
    min-width: 82px;
    min-height: 30px;
    padding: 0 12px;
  }
}

.profile-card strong,
.dock-card strong {
  color: #fff;
}

.profile-card span,
.finder-sidebar strong,
.mail-sidebar strong,
.contact-form span {
  color: rgba(255, 255, 255, 0.52);
}

.finder-sidebar,
.mail-sidebar {
  border-right-color: rgba(255, 255, 255, 0.12);
}

.finder-sidebar span,
.mail-sidebar span,
.mail-sidebar a {
  color: rgba(255, 255, 255, 0.66);
}

.finder-sidebar .is-selected,
.mail-sidebar .is-selected {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(109, 70, 190, 0.9),
    rgba(48, 28, 92, 0.9)
  );
  box-shadow: 0 12px 26px rgba(167, 139, 250, 0.18);
}

.dock-card:hover,
.dock-card:focus-visible,
input:focus,
textarea:focus {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.1)
    ),
    rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.dock-card img {
  filter: saturate(0.98) brightness(0.78);
}

.quick-list span {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.34);
  backdrop-filter: blur(12px);
}

input,
textarea {
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.button.primary,
.finder-head a {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(109, 70, 190, 0.95),
    rgba(48, 28, 92, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 36px rgba(167, 139, 250, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible,
.finder-head a:hover,
.finder-head a:focus-visible {
  background: linear-gradient(135deg, #a78bfa, #5b35ad);
}

.direct-links a,
.eyebrow,
.dock-card span {
  color: #a78bfa;
}

.legal-links {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.34);
  text-decoration: none;
  transition: color 160ms ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: rgba(255, 255, 255, 0.76);
  outline: 0;
}

.legal-links span {
  color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
  .legal-links {
    right: 16px;
    bottom: 14px;
    font-size: 0.58rem;
  }
}

.cookie-notice {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 99999;
  width: min(360px, calc(100vw - 28px));
}

.cookie-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(18, 18, 18, 0.94), rgba(5, 5, 5, 0.9)),
    rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(1.12);
}

.cookie-card p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.cookie-card a {
  color: #a78bfa;
  font-weight: 900;
  text-decoration: none;
}

.cookie-card a:hover,
.cookie-card a:focus-visible {
  color: #fff;
  outline: 0;
}

.cookie-button {
  justify-self: end;
  min-height: 32px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(109, 70, 190, 0.95),
    rgba(48, 28, 92, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  background: linear-gradient(135deg, #a78bfa, #5b35ad);
  outline: 0;
}

.cookie-notice[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .cookie-notice {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
}
