:root {
  --retro-teal: #008080;
  --retro-gray: #c0c0c0;
  --retro-navy: #000080;
  --retro-light: #ffffff;
  --retro-mid: #808080;
  --retro-dark: #101010;
  --modern-ink: #141619;
  --modern-paper: #e9e8e2;
  --modern-accent: #ff5c35;
  --modern-lime: #c9ff54;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  background: #030807;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: center;
  padding: clamp(24px, 6vw, 80px);
  color: #76ff73;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 3px),
    #030807;
  font-family: "VT323", monospace;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.02em;
  transition: opacity 500ms steps(8), visibility 500ms;
  -webkit-font-smoothing: none;
}

.boot-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.78) 130%);
}

.boot-terminal {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  min-height: 340px;
  text-shadow: 0 0 8px rgba(118, 255, 115, 0.34);
}

.boot-brand {
  margin: 0 0 24px;
  color: #e9ffe8;
}

.boot-log p {
  margin: 2px 0;
}

.boot-cursor {
  display: inline-block;
  animation: blink 550ms steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.retro-os {
  position: fixed;
  inset: 0;
  z-index: 10;
  color: #000;
  background: var(--retro-teal);
  font-family: "VT323", "Courier New", monospace;
  font-size: 19px;
  transition: opacity 500ms steps(7), visibility 500ms;
  -webkit-font-smoothing: none;
  user-select: none;
}

.retro-os::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-position: 0 0, 0 2px, 2px -2px, -2px 0;
  background-size: 4px 4px;
}

.desktop {
  position: absolute;
  inset: 0 0 44px;
  overflow: hidden;
}

.desktop-icons {
  display: grid;
  grid-template-columns: 100px;
  gap: 18px;
  align-content: start;
  padding: 22px 18px;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100px;
  padding: 3px;
  color: #fff;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  line-height: 0.92;
  text-align: center;
  text-shadow: 1px 1px #000;
  cursor: default;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  outline: 1px dotted #fff;
  outline-offset: -4px;
  background: rgba(0, 0, 128, 0.42);
}

.desktop-icon:active .pixel-icon {
  transform: translate(1px, 1px);
}

.pixel-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 45px;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.45));
}

.document-icon {
  width: 34px;
  height: 43px;
  border: 2px solid #111;
  background: #fff;
  clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
}

.document-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
}

.document-icon span,
.document-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  width: 20px;
  height: 2px;
  background: #000080;
  box-shadow: 0 6px #000080, 0 12px #000080, 0 18px #000080;
}

.document-icon span { top: 15px; }

.bin-icon {
  top: 5px;
  width: 32px;
  height: 35px;
  border: 3px solid #111;
  border-top: 0;
  background: repeating-linear-gradient(90deg, #e3e3e3 0 4px, #969696 4px 7px);
  transform: perspective(30px) rotateX(-4deg);
}

.bin-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -5px;
  width: 36px;
  height: 6px;
  border: 2px solid #111;
  background: #c0c0c0;
}

.bin-icon::after {
  content: "";
  position: absolute;
  top: -13px;
  left: 7px;
  width: 12px;
  height: 4px;
  border: 2px solid #111;
  background: #c0c0c0;
}

.lock-icon {
  top: 15px;
  width: 40px;
  height: 29px;
  border: 3px solid #181818;
  background: #c0c0c0;
  box-shadow: inset 3px 3px #fff, inset -3px -3px #696969;
}

.lock-icon::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 8px;
  width: 18px;
  height: 20px;
  border: 4px solid #ededed;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  box-shadow: 2px 0 #111, -2px 0 #111, 0 -2px #111;
}

.lock-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 16px;
  width: 6px;
  height: 10px;
  background: #000;
  clip-path: polygon(50% 0, 100% 40%, 75% 100%, 25% 100%, 0 40%);
}

.desktop-stamp {
  position: absolute;
  right: 32px;
  bottom: 20px;
  margin: 0;
  color: rgba(0, 53, 53, 0.55);
  font-size: clamp(22px, 3.2vw, 48px);
  line-height: 0.8;
  text-align: right;
  transform: rotate(-2deg);
}

.os-window {
  position: absolute;
  z-index: 20;
  min-width: 280px;
  padding: 3px;
  border: 0;
  background: var(--retro-gray);
  box-shadow:
    inset 2px 2px var(--retro-light),
    inset -2px -2px #202020,
    3px 3px 0 rgba(0, 0, 0, 0.28);
}

.os-window[hidden] {
  display: none;
}

.os-window.is-opening {
  animation: window-open 150ms steps(3);
}

@keyframes window-open {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.readme-window {
  top: 6%;
  left: 15%;
  width: min(720px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 72px));
}

.recycle-window {
  top: 17%;
  left: 43%;
  width: min(520px, calc(100vw - 28px));
  height: min(390px, calc(100vh - 80px));
}

.classified-window {
  top: 30%;
  left: 50%;
  width: min(470px, calc(100vw - 28px));
  transform: translateX(-50%);
}

.classified-window.is-opening {
  animation: classified-open 150ms steps(3);
}

@keyframes classified-open {
  from { opacity: 0; transform: translateX(-50%) scale(0.94); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 29px;
  padding: 2px 3px 2px 6px;
  color: #fff;
  background: var(--retro-navy);
  font-weight: 700;
  line-height: 1;
  cursor: move;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.titlebar-file,
.titlebar-bin,
.titlebar-lock {
  flex: 0 0 auto;
  width: 14px;
  height: 16px;
  border: 1px solid #000;
  background: #fff;
}

.titlebar-bin { background: linear-gradient(90deg, #fff 50%, #777 50%); }
.titlebar-lock { background: #ffd43b; }

.window-close,
.retro-button,
.start-button {
  border: 0;
  color: #000;
  background: var(--retro-gray);
  box-shadow:
    inset 2px 2px var(--retro-light),
    inset -2px -2px #202020;
  cursor: default;
}

.window-close {
  display: grid;
  place-items: center;
  width: 23px;
  height: 22px;
  padding: 0 0 3px;
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.window-close:active,
.retro-button:active,
.start-button:active,
.start-button[aria-expanded="true"] {
  padding-top: 2px;
  padding-left: 2px;
  box-shadow:
    inset 2px 2px #202020,
    inset -2px -2px var(--retro-light);
}

.window-close:focus-visible,
.retro-button:focus-visible,
.start-button:focus-visible,
.start-options button:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.menu-strip {
  display: flex;
  gap: 20px;
  height: 26px;
  padding: 3px 8px;
  border-bottom: 1px solid #777;
  line-height: 1;
}

.menu-strip span::first-letter {
  text-decoration: underline;
}

.window-content {
  margin: 0 2px;
  border: 2px solid;
  border-color: #777 #fff #fff #777;
  background: #fff;
  user-select: text;
}

.notepad-content {
  height: calc(100% - 82px);
  padding: 24px 28px;
  overflow: auto;
  font-size: 19px;
  line-height: 1.25;
}

.notepad-content p {
  max-width: 60ch;
  margin: 0 0 18px;
}

.notepad-content .history-kicker {
  color: #000080;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.notepad-content h1 {
  max-width: 18ch;
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 400;
  line-height: 0.95;
}

.history-intro {
  padding-bottom: 18px;
  border-bottom: 1px dotted #777;
}

.history-timeline {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.history-timeline li {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: start;
}

.history-timeline time {
  padding: 3px 5px;
  color: #fff;
  background: #000080;
  text-align: center;
}

.history-timeline span {
  padding-top: 3px;
}

.history-note {
  padding: 12px;
  border: 1px solid #777;
  background: #efefef;
}

.history-proceed {
  min-width: 190px;
  padding: 8px 14px;
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 18px;
  text-align: left;
}

.notepad-signoff {
  color: #686868;
  font-size: 17px;
}

.window-status {
  height: 24px;
  margin: 2px;
  padding: 1px 7px;
  border: 2px solid;
  border-color: #777 #fff #fff #777;
  line-height: 1;
}

.recycle-content {
  height: calc(100% - 82px);
  background: #fff;
}

.folder-bar {
  height: 28px;
  padding: 2px 7px;
  border-bottom: 2px solid #999;
  background: #c0c0c0;
}

.trash-grid {
  position: relative;
  display: grid;
  grid-template-columns: 90px 90px 1fr;
  gap: 24px;
  height: calc(100% - 28px);
  padding: 30px 20px;
}

.deleted-file {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  font-size: 16px;
  text-align: center;
}

.tiny-file {
  width: 30px;
  height: 36px;
  border: 2px solid #000;
  background: #fff;
  box-shadow: inset -5px -5px #dadada;
}

.sticky-note {
  position: absolute;
  top: 42%;
  right: 9%;
  width: 205px;
  padding: 24px 18px 18px;
  color: #302a10;
  background: #fff28a;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.25);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: 17px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-5deg);
}

.sticky-note p {
  margin: 3px 0;
}

.sticky-note strong {
  font-size: 20px;
}

.pin {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e83434;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.4);
}

.classified-content {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px 18px;
  padding: 24px 24px 20px;
  background: var(--retro-gray);
}

.classified-content h2 {
  margin: 0 0 5px;
  font-size: 25px;
}

.classified-content p {
  margin: 0;
  line-height: 1.1;
}

.security-mark {
  position: relative;
  grid-row: 1 / span 2;
  width: 68px;
  height: 62px;
  margin-top: 4px;
  border: 2px solid #111;
  background: #ffdf44;
  box-shadow: inset 4px 4px #fff7bd, inset -4px -4px #a97d00;
  clip-path: polygon(50% 0, 96% 18%, 86% 75%, 50% 100%, 14% 75%, 4% 18%);
}

.security-keyhole {
  position: absolute;
  top: 21px;
  left: 28px;
  width: 12px;
  height: 22px;
  background: #181818;
  clip-path: polygon(50% 0, 100% 30%, 72% 50%, 80% 100%, 20% 100%, 28% 50%, 0 30%);
}

#password-form {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

#password-input {
  min-width: 0;
  height: 31px;
  padding: 2px 7px;
  border: 2px solid;
  border-color: #555 #fff #fff #555;
  border-radius: 0;
  background: #fff;
  outline: 0;
  font-size: 22px;
  letter-spacing: 0.2em;
}

#password-input:focus {
  outline: 1px dotted #000080;
  outline-offset: -4px;
}

.retro-button {
  min-width: 76px;
  height: 32px;
  padding: 2px 10px;
}

.password-message {
  grid-column: 1 / -1;
  min-height: 20px;
  color: #9c0000;
}

.password-message.success {
  color: #006400;
}

.classified-window.shake {
  animation: shake-window 280ms steps(4);
}

@keyframes shake-window {
  0%, 100% { margin-left: 0; }
  25% { margin-left: -8px; }
  75% { margin-left: 8px; }
}

.taskbar {
  position: absolute;
  z-index: 9000;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 4px;
  background: var(--retro-gray);
  box-shadow: inset 0 2px #fff, inset 0 3px #dedede;
}

.start-area {
  position: relative;
  height: 35px;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 22px;
}

.start-flag {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 1px;
  transform: skewY(-7deg);
}

.start-flag i:nth-child(1) { background: #f44336; }
.start-flag i:nth-child(2) { background: #52a938; }
.start-flag i:nth-child(3) { background: #1688d4; }
.start-flag i:nth-child(4) { background: #ffd42a; }

.start-menu {
  position: absolute;
  bottom: 39px;
  left: 0;
  display: grid;
  grid-template-columns: 35px 220px;
  min-height: 240px;
  padding: 3px;
  background: var(--retro-gray);
  box-shadow:
    inset 2px 2px #fff,
    inset -2px -2px #202020,
    3px 3px 0 rgba(0, 0, 0, 0.22);
}

.start-menu[hidden] { display: none; }

.start-rail {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: #d7d7d7;
  background: #777;
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-rail span { color: #fff; font-weight: 400; }

.start-options {
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.start-options button {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  min-height: 48px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 21px;
  text-align: left;
}

.start-options button:hover {
  color: #fff;
  background: #000080;
}

.start-options button span {
  font-family: sans-serif;
  font-size: 22px;
  text-align: center;
}

.start-divider {
  height: 2px;
  margin: 4px 2px;
  background: #777;
  border-bottom: 1px solid #fff;
}

.taskbar-divider {
  width: 2px;
  height: 31px;
  border-left: 1px solid #777;
  border-right: 1px solid #fff;
}

.taskbar-hint {
  overflow: hidden;
  padding-left: 6px;
  color: #424242;
  white-space: nowrap;
}

.taskbar-clock {
  min-width: 82px;
  height: 32px;
  margin-left: auto;
  padding: 4px 9px;
  border: 2px solid;
  border-color: #777 #fff #fff #777;
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.retro-os.is-exiting {
  animation: os-collapse 900ms cubic-bezier(0.8, 0, 0.2, 1) forwards;
  transform-origin: center;
}

@keyframes os-collapse {
  0% { opacity: 1; transform: scale(1); filter: none; }
  40% { opacity: 1; transform: scale(1, 0.012); filter: brightness(3); }
  65% { opacity: 1; transform: scale(0.012, 0.012); filter: brightness(8); }
  100% { opacity: 0; transform: scale(0); filter: brightness(8); visibility: hidden; }
}

/* Modern reveal */
.modern-portfolio {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--modern-paper);
  background:
    linear-gradient(135deg, rgba(201, 255, 84, 0.06), transparent 33%),
    radial-gradient(circle at 85% 4%, #3c4546 0, transparent 31%),
    #141619;
  font-family: "DM Mono", monospace;
  opacity: 0;
  visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.modern-portfolio.is-revealed {
  z-index: 20;
  opacity: 1;
  visibility: visible;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient-orb {
  position: fixed;
  z-index: 0;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.22;
}

.orb-one { top: -18vw; right: -8vw; background: #cf6d4d; }
.orb-two { bottom: -30vw; left: -15vw; background: #718c65; }

.portfolio-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 48px));
  margin: 24px auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(25, 27, 29, 0.57);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(115%);
}

.modern-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  min-height: 120px;
  padding: 26px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.monogram {
  color: var(--modern-paper);
  font-family: "Syne", sans-serif;
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.monogram span { color: var(--modern-accent); }

.modern-nav > p {
  margin: 0;
  color: rgba(233, 232, 226, 0.58);
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
}

.modern-nav nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.modern-nav nav a {
  position: relative;
  color: var(--modern-paper);
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.modern-nav nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--modern-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.modern-nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.modern-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 80px));
  padding: 54px 5.5vw 70px;
  overflow: hidden;
}

.modern-hero::before {
  content: "";
  position: absolute;
  top: 11%;
  right: 7%;
  width: clamp(180px, 24vw, 350px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.modern-hero::after {
  content: "";
  position: absolute;
  top: 19%;
  right: 13%;
  width: clamp(100px, 14vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--modern-accent);
  mix-blend-mode: difference;
  opacity: 0.74;
}

.hero-index,
.section-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-index { color: rgba(233, 232, 226, 0.46); }

.eyebrow {
  margin: 76px 0 18px 1%;
  color: var(--modern-lime);
}

.modern-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(84px, 15vw, 222px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.68;
}

.modern-hero h1 span {
  display: inline-block;
  margin-left: 13%;
  color: transparent;
  -webkit-text-stroke: 1px var(--modern-paper);
}

.hero-footer {
  display: grid;
  grid-template-columns: minmax(280px, 500px) auto;
  justify-content: end;
  align-items: end;
  gap: 9vw;
  margin-top: 65px;
}

.hero-footer > p {
  margin: 0;
  color: rgba(233, 232, 226, 0.72);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.75;
}

.round-link {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  color: var(--modern-ink);
  border-radius: 50%;
  background: var(--modern-lime);
  text-decoration: none;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), background 200ms;
}

.round-link span { font-size: 11px; text-transform: uppercase; }

.round-link svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.round-link:hover { transform: rotate(-8deg) scale(1.08); background: var(--modern-paper); }

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(24px);
}

.about-section {
  display: grid;
  grid-template-columns: 0.75fr 2fr 1fr;
  gap: 6vw;
  margin: 0 24px;
  padding: clamp(42px, 7vw, 92px);
}

.section-label { color: var(--modern-accent); }

.about-copy h2,
.projects-heading h2,
.modern-footer h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  letter-spacing: -0.06em;
}

.about-copy h2 {
  max-width: 790px;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.96;
}

.about-copy p {
  max-width: 660px;
  margin: 42px 0 0;
  color: rgba(233, 232, 226, 0.65);
  font-size: 14px;
  line-height: 1.8;
}

.skill-stack {
  align-self: end;
}

.skill-stack span {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(233, 232, 226, 0.7);
  font-size: 10px;
  text-transform: uppercase;
}

.projects-section {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 6vw;
  padding: 150px 5.5vw;
}

.projects-heading {
  position: sticky;
  top: 40px;
  align-self: start;
}

.projects-heading h2 {
  margin-top: 25px;
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.88;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 100px 24px;
}

.project-card {
  display: block;
  color: var(--modern-paper);
  text-decoration: none;
}

.project-card-large { grid-column: 1 / -1; }
.project-card-offset { margin-top: 130px; }

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.2;
  overflow: hidden;
  background: #292c2d;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card-large .project-visual { aspect-ratio: 1.85; }

.project-card:hover .project-visual { transform: scale(0.985); }

.visual-number {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.visual-signal {
  background:
    linear-gradient(rgba(12, 18, 18, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 18, 0.18) 1px, transparent 1px),
    #91b38a;
  background-size: 32px 32px;
}

.signal-core {
  width: 24%;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 22, 25, 0.7);
  border-radius: 50%;
  background: var(--modern-accent);
  box-shadow: 0 0 0 30px rgba(255, 92, 53, 0.18), 0 0 0 90px rgba(255, 92, 53, 0.08);
  transition: transform 550ms ease;
}

.project-card:hover .signal-core { transform: scale(1.14); }

.signal-line {
  position: absolute;
  width: 72%;
  height: 1px;
  background: #17191c;
  transform-origin: center;
  transition: transform 650ms ease;
}

.line-one { transform: rotate(12deg); }
.line-two { transform: rotate(132deg); }
.line-three { transform: rotate(62deg); }
.project-card:hover .line-one { transform: rotate(28deg); }
.project-card:hover .line-two { transform: rotate(150deg); }
.project-card:hover .line-three { transform: rotate(48deg); }

.visual-archive { background: #ce6b4f; }

.archive-sheet {
  position: absolute;
  display: grid;
  place-items: end start;
  width: 47%;
  aspect-ratio: 0.72;
  padding: 18px;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: #ddd8c7;
  font-family: "Syne", sans-serif;
  font-size: clamp(20px, 2.2vw, 38px);
  font-weight: 700;
  line-height: 0.85;
  box-shadow: 12px 15px 0 rgba(20, 22, 25, 0.2);
  transition: transform 450ms ease;
}

.sheet-one { transform: rotate(-8deg) translate(-18%, 3%); }
.sheet-two { color: #e7e4d9; background: #202426; transform: rotate(8deg) translate(19%, -2%); }
.project-card:hover .sheet-one { transform: rotate(-13deg) translate(-25%, 1%); }
.project-card:hover .sheet-two { transform: rotate(13deg) translate(26%, -4%); }

.visual-cursor { background: #b7d64b; }

.cursor-window {
  position: relative;
  width: 64%;
  height: 54%;
  border: 2px solid #17191c;
  background: #e6e4da;
  box-shadow: 14px 14px 0 rgba(20, 22, 25, 0.22);
  transition: transform 450ms ease;
}

.project-card:hover .cursor-window { transform: translate(-7px, -7px); }

.cursor-window::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 25px;
  border-bottom: 2px solid #17191c;
}

.cursor-window span {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 9px 0 0 8px;
  border-radius: 50%;
  background: #17191c;
}

.cursor-window i {
  position: absolute;
  top: 47%;
  left: 52%;
  width: 18%;
  aspect-ratio: 0.75;
  border: 2px solid #17191c;
  background: var(--modern-accent);
  clip-path: polygon(0 0, 100% 65%, 61% 70%, 78% 100%, 62% 100%, 47% 72%, 18% 100%);
  transform: rotate(-12deg);
}

.project-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr auto;
  gap: 24px;
  padding: 22px 0 0;
}

.project-meta span {
  color: rgba(233, 232, 226, 0.42);
  font-size: 9px;
  text-transform: uppercase;
}

.project-meta h3 {
  margin: 8px 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(25px, 2.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-meta p {
  margin: 0;
  color: rgba(233, 232, 226, 0.58);
  font-size: 10px;
  line-height: 1.7;
}

.project-meta .project-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--modern-paper);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  font-size: 17px;
  transition: color 220ms, background 220ms, transform 220ms;
}

.project-card:hover .project-arrow {
  color: var(--modern-ink);
  background: var(--modern-lime);
  transform: rotate(45deg);
}

.modern-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  align-items: end;
  gap: 30px;
  margin: 0 24px 24px;
  padding: clamp(40px, 6vw, 80px);
}

.modern-footer p {
  margin: 0 0 13px;
  color: var(--modern-accent);
  font-size: 10px;
  text-transform: uppercase;
}

.modern-footer h2 {
  font-size: clamp(45px, 6vw, 88px);
  font-weight: 500;
}

.modern-footer a {
  color: var(--modern-paper);
  font-size: 12px;
  text-underline-offset: 7px;
}

#restart-os {
  padding: 0;
  color: rgba(233, 232, 226, 0.55);
  border: 0;
  border-bottom: 1px solid rgba(233, 232, 226, 0.3);
  background: none;
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
}

.is-revealed .modern-nav,
.is-revealed .modern-hero > *,
.is-revealed .modern-hero::before,
.is-revealed .modern-hero::after {
  animation: modern-enter 850ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.is-revealed .modern-hero .eyebrow { animation-delay: 100ms; }
.is-revealed .modern-hero h1 { animation-delay: 180ms; }
.is-revealed .modern-hero .hero-footer { animation-delay: 280ms; }
.is-revealed .modern-hero::before,
.is-revealed .modern-hero::after { animation-delay: 330ms; }

@keyframes modern-enter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .modern-nav { grid-template-columns: 1fr 1fr; }
  .modern-nav > p { display: none; }
  .hero-footer { justify-content: start; }
  .about-section { grid-template-columns: 1fr 2fr; }
  .skill-stack { grid-column: 2; }
  .projects-section { grid-template-columns: 1fr; padding-top: 110px; }
  .projects-heading { position: static; }
  .project-list { margin-top: 30px; }
  .modern-footer { grid-template-columns: 1fr 1fr; }
  #restart-os { justify-self: start; }
}

@media (max-width: 650px) {
  .desktop-stamp,
  .taskbar-hint { display: none; }

  .desktop-icons {
    grid-template-columns: repeat(3, 92px);
    justify-content: space-around;
    gap: 5px;
    padding: 18px 4px;
  }

  .desktop-icon { width: 92px; font-size: 16px; }

  .os-window {
    right: auto !important;
    left: 14px !important;
    max-width: calc(100vw - 28px);
    transform: none;
  }

  .readme-window { top: 3%; height: calc(100vh - 70px); }
  .recycle-window { top: 20%; height: min(410px, calc(100vh - 120px)); }
  .classified-window { top: 29%; }

  .notepad-content { padding: 18px; font-size: 17px; }
  .notepad-content h1 { font-size: 27px; }
  .history-timeline li { grid-template-columns: 56px 1fr; gap: 9px; }
  .history-proceed { width: 100%; }

  .classified-window.is-opening { animation: window-open 150ms steps(3); }
  .classified-content { grid-template-columns: 58px 1fr; padding: 18px 14px; }
  .security-mark { width: 56px; height: 52px; }
  .security-keyhole { top: 17px; left: 23px; }
  #password-form { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
  .submit-button { grid-column: 2; justify-self: end; }

  .trash-grid { grid-template-columns: 62px 62px; gap: 5px; padding: 25px 10px; }
  .sticky-note { top: 38%; right: 5%; width: 185px; }

  .portfolio-shell { width: calc(100% - 20px); margin: 10px auto; }
  .modern-nav { min-height: 90px; padding: 22px 18px; }
  .modern-nav nav { gap: 12px; }
  .modern-nav nav a { font-size: 10px; }
  .modern-hero { min-height: 650px; padding: 42px 18px 60px; }
  .modern-hero::before { top: 19%; right: -13%; }
  .modern-hero::after { top: 25%; right: -2%; }
  .eyebrow { margin-top: 70px; }
  .modern-hero h1 { font-size: clamp(58px, 20vw, 98px); line-height: 0.76; }
  .modern-hero h1 span { margin-left: 4%; }
  .hero-footer { grid-template-columns: 1fr; gap: 30px; margin-top: 80px; }
  .round-link { width: 96px; height: 96px; justify-self: end; }

  .about-section { grid-template-columns: 1fr; gap: 35px; margin: 0 10px; padding: 48px 24px; }
  .skill-stack { grid-column: auto; }
  .projects-section { padding: 100px 24px; }
  .project-list { grid-template-columns: 1fr; gap: 80px; }
  .project-card-large { grid-column: auto; }
  .project-card-offset { margin-top: 0; }
  .project-card-large .project-visual,
  .project-visual { aspect-ratio: 1.05; }
  .project-meta { grid-template-columns: 1fr auto; }
  .project-meta p { grid-column: 1 / -1; }
  .project-meta .project-arrow { grid-column: 2; grid-row: 1; }

  .modern-footer { grid-template-columns: 1fr; margin: 0 10px 10px; padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
