/* SHREYAS OS v4 — approved v1 desktop composition */

:root {
  --desktop-ink: #17131b;
  --desktop-paper: #fff8dc;
  --desktop-wine: #7b1635;
  --desktop-line: rgba(23, 19, 27, .11);
  --desktop-glass: rgba(255, 248, 220, .86);
}

#os {
  color: var(--desktop-ink);
  transition: color .28s ease, background-color .28s ease;
}
.os-window,
.window-body { color: #17131b; }

.menubar {
  height: 42px;
  padding: 0 18px;
  gap: 18px;
  background: rgba(255, 248, 220, .94);
  border-bottom: 2px solid var(--desktop-ink);
  color: var(--desktop-ink);
  backdrop-filter: blur(16px) saturate(1.2);
}

.brand-menu { gap: 9px; }
.brand-pixel {
  width: 24px;
  height: 24px;
  font-size: 7px;
  box-shadow: 2px 2px 0 rgba(23,19,27,.18);
}

.theme-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(23,19,27,.28);
  background: rgba(255,255,255,.46);
}

.theme-switch button {
  min-width: 46px;
  padding: 6px 8px;
  background: transparent;
  font: 6px/1 var(--pixel);
}

.theme-switch button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--wine);
}

.system-status { margin-left: 0; }

.desktop {
  position: relative;
  height: calc(100dvh - 42px);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 71% 28%, rgba(255,255,255,.58), transparent 14%),
    radial-gradient(circle at 88% 87%, rgba(174,211,232,.72), transparent 27%),
    linear-gradient(145deg, #ee9db5 0%, #f4b7b7 32%, #f7dabb 65%, #c7dfea 100%);
  transition: background .28s ease;
}

.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.05), rgba(255,255,255,.21) 48%, transparent 73%);
}

.desktop-glow {
  position: absolute;
  z-index: -2;
  right: -8vw;
  bottom: -22vh;
  width: 62vw;
  height: 72vh;
  border-radius: 50%;
  background: rgba(182,220,239,.48);
  filter: blur(70px);
}

.ambient-grid {
  z-index: -1;
  opacity: .18;
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, black 0 46%, transparent 82%);
}

.night-stars { display: none; }

.cloud {
  position: absolute;
  z-index: 0;
  width: 58px;
  height: 10px;
  background: rgba(255,255,255,.72);
  pointer-events: none;
  animation: v4CloudDrift 18s ease-in-out infinite alternate;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: inherit;
}
.cloud::before { left: 11px; width: 20px; height: 19px; }
.cloud::after { left: 28px; width: 25px; height: 26px; }
.cloud-a { top: 38%; left: 61%; transform: scale(.55); }
.cloud-b { top: 12%; left: 48%; transform: scale(.35); animation-delay: -6s; }
.cloud-c { top: 58%; right: 24%; transform: scale(.26); animation-delay: -11s; }

.theme-orb {
  position: absolute;
  z-index: 0;
  top: 70px;
  right: 44px;
  width: 92px;
  height: 92px;
  border: 3px solid var(--desktop-ink);
  border-radius: 50%;
  background: #ffd95a;
  box-shadow: 8px 8px 0 rgba(23,19,27,.2), inset 0 0 0 10px rgba(255,255,255,.28);
  transition: background .28s ease, transform .28s ease, box-shadow .28s ease;
}

.activity-stack {
  position: absolute;
  z-index: 5;
  top: 30px;
  left: 30px;
  width: 238px;
  display: grid;
  border: 2px solid var(--desktop-ink);
  background: rgba(255,248,220,.94);
  box-shadow: 7px 8px 0 rgba(23,19,27,.2);
}

.activity-stack header {
  height: 31px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--desktop-ink);
  background: var(--desktop-wine);
  color: var(--desktop-paper);
  font: 7px/1 var(--pixel);
}

.activity-stack header i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--desktop-paper);
  background: #72d18f;
  animation: blink 1.4s steps(2) infinite;
}

.activity-stack > button {
  position: relative;
  padding: 9px 10px 10px 37px;
  min-height: 53px;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(23,19,27,.22);
  background: transparent;
  text-align: left;
}
.activity-stack > button:last-child { border-bottom: 0; }
.activity-stack > button::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--desktop-ink);
  background: var(--lime);
  box-shadow: 2px 2px 0 rgba(23,19,27,.18);
}
.activity-stack > button:hover { background: rgba(199,243,107,.23); }
.activity-stack time { font: 5px/1 var(--pixel); color: var(--desktop-wine); }
.activity-stack strong { font: 500 8px/1.3 var(--mono); }
.activity-stack small { font: 5px/1 var(--pixel); opacity: .62; }
.motivation-card {
  min-height: 142px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 13px;
}
.motivation-card time { font-size: 7px; }
.motivation-card blockquote {
  margin: 0;
  color: #17131b;
  font: 22px/.95 var(--serif);
  letter-spacing: -.025em;
}
.motivation-card small { font-size: 6px; }

.desktop-intro {
  z-index: 3;
  left: clamp(30px, 5vw, 82px);
  top: clamp(250px, 35%, 360px);
  width: min(490px, 39vw);
}

.welcome-line {
  width: max-content;
  margin: 0 0 11px !important;
  padding: 6px 8px;
  border-left: 4px solid var(--desktop-wine);
  background: rgba(255,248,220,.54);
  font: 7px/1 var(--pixel) !important;
}

.desktop-intro .eyebrow { margin-bottom: 9px; font-size: 8px; }
.desktop-intro h1 {
  font: clamp(82px, 9vw, 148px)/.7 var(--serif);
  letter-spacing: -.06em;
  text-shadow: 7px 8px 0 rgba(255,255,255,.18);
}
.desktop-intro h1 em { color: var(--desktop-wine); }
.desktop-intro > p:not(.eyebrow):not(.welcome-line) {
  max-width: 470px;
  margin: 31px 0 21px;
  font-size: 13px;
  line-height: 1.65;
}
.intro-actions .os-button:not(.primary) { color: #17131b; }

.app-grid {
  z-index: 4;
  left: auto;
  top: 52px;
  right: clamp(145px, 12vw, 205px);
  grid-template-columns: repeat(5, 94px);
  gap: 19px 8px;
}

.desktop-app {
  width: 94px;
  min-height: 106px;
  gap: 4px;
}

.desktop-app .pixel-icon {
  width: 62px;
  height: 62px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.desktop-app .pixel-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(4px 5px 0 rgba(23,19,27,.15));
}
.desktop-app strong {
  max-width: 92px;
  padding: 3px 5px;
  border: 1px solid rgba(23,19,27,.25);
  background: rgba(255,248,220,.88);
  box-shadow: 2px 2px 0 rgba(23,19,27,.12);
  text-transform: uppercase;
}
.desktop-app strong { color: #17131b; font-size: 9px; }
.desktop-app small { max-width: 94px; font-size: 8px; line-height: 1.3; }
.desktop-app > b {
  position: absolute;
  top: -4px;
  right: 0;
  padding: 3px 4px;
  border: 1px solid var(--desktop-ink);
  background: var(--lime);
  font: 4px/1 var(--pixel);
}
.desktop-app:hover {
  transform: translateY(-5px) scale(1.025);
  filter: none;
}
.featured-app .pixel-icon { width: 70px; height: 70px; }
.featured-app strong { color: var(--paper); background: var(--desktop-wine); border-color: var(--desktop-ink); }

.portrait-zone {
  position: absolute;
  z-index: 2;
  right: 2.1%;
  bottom: 62px;
  width: min(260px, 18vw);
  height: 55%;
  padding: 0;
  background: transparent;
  pointer-events: auto;
}
.portrait-zone > span {
  position: absolute;
  z-index: 3;
  top: 1%;
  left: 50%;
  width: max-content;
  padding: 6px 8px;
  border: 2px solid var(--desktop-ink);
  background: rgba(255,248,220,.92);
  box-shadow: 3px 3px 0 rgba(23,19,27,.18);
  transform: translateX(-50%);
  font: 5px/1 var(--pixel);
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}
.portrait-zone:hover > span,
.portrait-zone:focus-visible > span { opacity: 1; transform: translate(-50%, -4px); }
.portrait-zone img {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  image-rendering: pixelated;
  filter: drop-shadow(11px 13px 0 rgba(23,19,27,.12));
  animation: portraitIdle 5s ease-in-out infinite;
}
.portrait-zone > i {
  position: absolute;
  left: 18%;
  right: 9%;
  bottom: 2px;
  height: 20px;
  border-radius: 50%;
  background: rgba(37,63,79,.18);
  filter: blur(8px);
}

.proof-rail {
  z-index: 8;
  left: 30px;
  bottom: 18px;
  gap: 8px;
}
.proof-rail button {
  width: 132px;
  min-height: 72px;
  padding: 10px 12px;
  border: 2px solid var(--desktop-ink);
  background: rgba(255,248,220,.92);
  box-shadow: 4px 5px 0 rgba(23,19,27,.2);
  text-align: left;
}
.proof-rail button:hover { transform: translateY(-3px); }
.proof-rail strong { display: block; font: 27px/.9 var(--serif); color: var(--desktop-wine); }
.proof-rail span { display: block; margin-top: 9px; font: 7px/1.25 var(--pixel); }

.dock {
  z-index: 7000;
  bottom: 14px;
  min-width: 0;
  height: 68px;
  padding: 7px 10px;
  gap: 5px;
  border: 2px solid var(--desktop-ink);
  border-radius: 0;
  background: rgba(255,248,220,.91);
  box-shadow: 8px 8px 0 rgba(23,19,27,.24);
  backdrop-filter: blur(14px);
}
.dock button { width: 50px; height: 50px; }
.dock-icon {
  position: absolute;
  left: 5px;
  bottom: 2px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dock-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.dock .home-glyph {
  border: 2px solid var(--desktop-ink);
  background: var(--pink);
  box-shadow: 2px 2px 0 rgba(23,19,27,.2);
}
.dock button small { bottom: 54px; }

.journey-list { margin-top: 24px; display: grid; }
.journey-entry {
  display: grid;
  grid-template-columns: 105px 1fr;
  border-top: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--milestone) 0 105px, transparent 105px);
}
.journey-entry:last-child { border-bottom: 2px solid var(--ink); }
.journey-entry time { padding: 22px 16px; font: 20px/1 var(--serif); color: var(--wine); }
.journey-entry div { padding: 18px 20px; border-left: 2px solid var(--ink); }
.journey-entry h3 { margin: 0 0 6px; font: 8px/1 var(--pixel); }
.journey-entry p { margin: 0; max-width: 620px; font-size: 10px; line-height: 1.55; }

.notepad-app {
  min-height: 100%;
  padding: 34px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(23,19,27,.09) 31px 32px),
    #f5ed73;
}
.notepad-app header { display: flex; justify-content: space-between; font: 8px/1 var(--pixel); }
.notepad-lead { margin: 52px 0 34px !important; font: 52px/.84 var(--serif) !important; letter-spacing: -.035em; }
.notepad-app > p:not(.notepad-lead) { max-width: 680px; font-size: 12px; line-height: 1.7; }
.notepad-app blockquote { margin: 34px 0; padding-left: 18px; border-left: 5px solid var(--wine); font: italic 27px/1 var(--serif); color: var(--wine); }
.notepad-app footer { margin-top: 42px; font: 7px/1 var(--pixel); }

.social-garden {
  position: relative;
  min-height: 130px;
  margin-top: 22px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: linear-gradient(#d8eef0 0 56%, #b7d690 56%);
}
.social-garden img { position: absolute; left: 18px; bottom: -5px; width: 110px; image-rendering: pixelated; }
.social-garden span { position: absolute; inset: 0 0 0 130px; display: flex; align-items: end; justify-content: space-around; padding: 0 40px 26px; }
.social-garden i { position: relative; width: 7px; height: 46px; background: #4b9258; }
.social-garden i::before { content: ""; position: absolute; top: -13px; left: -7px; width: 21px; height: 21px; border: 4px solid #fff0b5; background: #d95a79; box-shadow: 0 0 0 2px var(--ink); transform: rotate(45deg); }
.social-garden p { position: absolute; right: 14px; bottom: 8px; margin: 0; padding: 5px; background: var(--paper); font: 6px/1 var(--pixel); }

.os-window[data-app="testimonials"] {
  width: min(1020px, calc(100vw - 56px));
  height: min(720px, calc(100dvh - 110px));
}

.os-window.proof-cinema-window {
  inset: 12px 14px 0 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

.video-proof-app { padding-bottom: 112px; }
.proof-theater { display: grid; gap: 14px; }
.proof-screen {
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #111218;
  color: #fff8dc;
  box-shadow: 8px 8px 0 rgba(23,19,27,.24);
}
.proof-screen-bar {
  min-height: 38px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #fff8dc;
  background: #201d28;
}
.proof-screen-bar span,
.proof-screen-bar strong,
.proof-screen-bar small { font: 7px/1 var(--pixel); }
.proof-screen-bar span { display: flex; align-items: center; gap: 7px; color: #c7f36b; }
.proof-screen-bar span i { width: 8px; height: 8px; border: 1px solid #fff8dc; background: #f05e66; animation: blink 1.3s steps(2) infinite; }
.proof-screen-bar strong { text-align: center; color: #fff8dc; }
.proof-screen-bar small { color: #ffd95a; }
.proof-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #050507; }
.proof-frame-wrap::before {
  content: "LOADING YOUTUBE PROOF…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,248,220,.42);
  font: 7px/1 var(--pixel);
}
.proof-frame-wrap iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: #050507; }
.proof-screen-actions {
  min-height: 43px;
  padding: 7px 9px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 2px solid #fff8dc;
  background: #201d28;
}
.proof-screen-actions button,
.proof-screen-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #fff8dc;
  background: transparent;
  color: #fff8dc;
  text-decoration: none;
  font: 6px/1 var(--pixel);
}
.proof-screen-actions button:hover,
.proof-screen-actions a:hover { color: #17131b; background: #ffd95a; }
.proof-screen-actions button[aria-pressed="true"] { color: #17131b; background: #c7f36b; }

.proof-playlist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.proof-video-card {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fffdf4;
  box-shadow: 4px 4px 0 rgba(23,19,27,.2);
  text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.proof-video-card:hover { transform: translateY(-3px); box-shadow: 6px 7px 0 rgba(23,19,27,.22); }
.proof-video-card.active { outline: 4px solid var(--lime); outline-offset: 1px; }
.proof-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); background: linear-gradient(135deg,#f5a39c,#a8d7e8); }
.proof-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; background: #111218; }
.proof-thumb > i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 28px;
  border: 2px solid #fff8dc;
  border-radius: 7px;
  background: rgba(123,22,53,.9);
  box-shadow: 3px 3px 0 rgba(0,0,0,.3);
  transform: translate(-50%,-50%);
}
.proof-thumb > i::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 7px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff8dc;
}
.proof-thumb time { position: absolute; right: 5px; bottom: 5px; padding: 3px 4px; background: rgba(17,18,24,.9); color: #fff8dc; font: 5px/1 var(--pixel); }
.proof-card-copy { min-width: 0; padding: 10px 9px 11px; display: grid; gap: 5px; }
.proof-card-copy small { color: var(--wine); font: 5px/1 var(--pixel); }
.proof-card-copy strong { overflow: hidden; text-overflow: ellipsis; font: 7px/1.25 var(--pixel); }
.proof-card-copy em { color: #5f5760; font: normal 7px/1.3 var(--mono); }
.proof-thumb.thumb-error::after { content: "YOUTUBE"; position: absolute; inset: 0; display: grid; place-items: center; font: 7px/1 var(--pixel); color: var(--wine); }

.proof-theater.cinema-mode { grid-template-columns: minmax(0, 1fr) 230px; align-items: start; }
.proof-theater.cinema-mode .proof-playlist { grid-template-columns: 1fr; max-height: calc(100dvh - 205px); overflow: auto; padding-right: 6px; }
.proof-theater.cinema-mode .proof-video-card { grid-template-columns: 92px 1fr; grid-template-rows: 1fr; }
.proof-theater.cinema-mode .proof-thumb { height: 100%; min-height: 74px; border-right: 2px solid var(--ink); border-bottom: 0; }

/* v5 personal world */
.ambient-character {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  will-change: transform, opacity;
}
.day-energy-runner {
  width: clamp(110px, 12vw, 190px);
  top: 49%;
  left: -210px;
  animation: dayRunnerFlyby 24s linear infinite;
}
.night-cat-rocket {
  width: clamp(130px, 15vw, 240px);
  top: 30%;
  left: -260px;
}
#os[data-theme="night"] .night-cat-rocket { animation: nightCatFlyby 28s linear infinite; }
#os[data-theme="night"] .day-energy-runner,
#os[data-theme="dark"] .day-energy-runner { display: none; }

.desktop-sos {
  position: absolute;
  z-index: 9;
  top: 180px;
  right: 42px;
  width: 92px;
  min-height: 66px;
  padding: 8px;
  border: 3px solid var(--desktop-ink);
  background: #f15f5f;
  color: #fff8dc;
  box-shadow: 6px 6px 0 rgba(23,19,27,.24);
  text-align: center;
}
.desktop-sos:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 rgba(23,19,27,.24); }
.desktop-sos strong { display: block; font: 17px/1 var(--pixel); }
.desktop-sos span { display: block; margin-top: 7px; font: 5px/1.35 var(--pixel); }

.learn-cluster { position: absolute; z-index: 7; top: 55px; left: 285px; width: 148px; height: 96px; }
.learn-secret,
.learn-sticky {
  position: absolute;
  inset: 0;
  width: 148px;
  min-height: 92px;
  border: 2px solid var(--desktop-ink);
  box-shadow: 5px 6px 0 rgba(23,19,27,.2);
}
.learn-secret {
  padding: 16px;
  background: #a8d7e8;
  font: 8px/1.35 var(--pixel);
}
.learn-secret small { font: 6px/1 var(--pixel); }
.learn-sticky {
  z-index: 2;
  padding: 12px;
  display: grid;
  align-content: space-between;
  text-align: left;
  background: #f5ed73;
  transform: rotate(-3deg);
  cursor: grab;
  touch-action: none;
  transition: box-shadow .12s ease;
}
.learn-sticky:active { cursor: grabbing; }
.learn-sticky span,
.learn-sticky small { font: 5px/1 var(--pixel); }
.learn-sticky strong { font: 9px/1.35 var(--mono); }
.learn-cluster.revealed .learn-secret { outline: 4px solid var(--lime); }

.secret-folder {
  position: absolute;
  z-index: 1;
  right: 4.4%;
  bottom: 92px;
  width: 136px;
  min-height: 78px;
  padding: 30px 8px 7px;
  overflow: visible;
  border: 2px solid var(--desktop-ink);
  background: #7b1635;
  color: #fff8dc;
  box-shadow: 5px 6px 0 rgba(23,19,27,.22);
  opacity: .06;
  transform: translateX(8px) rotate(3deg);
  transition: opacity .2s ease, transform .2s ease;
}
.secret-folder::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -2px;
  width: 61px;
  height: 17px;
  border: 2px solid var(--desktop-ink);
  border-bottom: 0;
  background: #d74e73;
}
.secret-folder strong,
.secret-folder small { display: block; font: 6px/1.25 var(--pixel); }
.secret-folder small { margin-top: 5px; color: #ffd95a; font-size: 4px; }
.secret-folder.revealed { z-index: 3; opacity: 1; transform: translateX(-5px) rotate(-2deg); }
.portrait-zone { transition: transform .25s ease; }
.portrait-zone.secret-revealed { transform: translateX(-80px); }

.game-icon { overflow: hidden; border: 2px solid var(--desktop-ink) !important; background: #111218 !important; }
.game-icon img { object-fit: cover !important; filter: none !important; }

.music-deck {
  position: absolute;
  z-index: 6999;
  left: 50%;
  bottom: 91px;
  width: min(610px, calc(100vw - 580px));
  min-width: 430px;
  min-height: 48px;
  padding: 5px;
  display: grid;
  grid-template-columns: 46px 54px 46px minmax(120px,1fr) minmax(70px,1fr) 78px;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--desktop-ink);
  background: rgba(255,248,220,.94);
  box-shadow: 5px 6px 0 rgba(23,19,27,.2);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}
.music-deck > button {
  min-height: 36px;
  border: 1px solid var(--desktop-ink);
  background: #fffdf4;
  font: 5px/1 var(--pixel);
}
.music-deck .music-play { color: #fff8dc; background: var(--desktop-wine); }
.music-copy { min-width: 0; padding: 5px 8px; display: grid; gap: 3px; text-align: left; }
.music-copy strong,
.music-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-copy strong { font: 6px/1 var(--pixel); }
.music-copy small { font: 7px/1 var(--mono); opacity: .7; }
.music-deck input[type="range"] { width: 100%; accent-color: var(--desktop-wine); }

.music-library { margin-top: 24px; display: grid; border-top: 2px solid var(--ink); }
.music-library button {
  min-height: 74px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 42px minmax(130px,1fr) minmax(150px,1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: #fffdf4;
  text-align: left;
}
.music-library button:hover,
.music-library button.active { background: #f7d8e3; }
.music-library span,
.music-library strong { font: 7px/1 var(--pixel); }
.music-library small { font: 10px/1.3 var(--mono); }
.music-library time { font: 8px/1 var(--mono); }

.garage-mail-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.garage-mail { display: grid; gap: 11px; padding: 16px; border: 2px solid var(--ink); background: #fffdf4; box-shadow: 6px 7px 0 rgba(23,19,27,.16); }
.garage-mail header { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.garage-mail header span,
.garage-mail header small { font: 6px/1 var(--pixel); }
.garage-mail label { display: grid; gap: 6px; font: 7px/1 var(--pixel); }
.garage-mail input,
.garage-mail textarea { width: 100%; padding: 10px; border: 2px solid var(--ink); border-radius: 0; background: #fff; font: 11px/1.4 var(--mono); resize: vertical; }
.garage-mail button[type="submit"] { min-height: 44px; border: 2px solid var(--ink); background: var(--wine); color: var(--paper); font: 6px/1 var(--pixel); }
.suggestion-mail button[type="submit"] { color: var(--ink); background: var(--lime); }
.form-status { min-height: 14px; margin: 0; font: 6px/1.4 var(--pixel); }
.form-status a { color: var(--wine); }
.form-trap,
.netlify-form-blueprints {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.os-window[data-app="games"] { width: min(1120px, calc(100vw - 48px)); height: min(820px, calc(100dvh - 74px)); }
.game-room { min-height: 100%; padding: 22px; background: #17131b; color: #fff8dc; }
.game-room > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.game-room > header span { font: 6px/1 var(--pixel); color: var(--lime); }
.game-room h2 { margin: 8px 0 0; font: 54px/.8 var(--serif); }
.game-room h2 em { color: #f4b6cf; }
.game-room nav { display: flex; gap: 8px; }
.game-room nav button { min-height: 44px; padding: 0 14px; border: 2px solid #fff8dc; background: transparent; color: #fff8dc; font: 6px/1 var(--pixel); }
.game-room nav button.active { color: #17131b; background: var(--lime); }
.game-stage { border: 3px solid #fff8dc; background: #06070a; }
.game-stage-bar { min-height: 38px; padding: 0 10px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; border-bottom: 2px solid #fff8dc; font: 5px/1 var(--pixel); }
.game-stage-bar a { color: #ffd95a; }
.game-stage iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #050507; }
.game-case-files { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.game-case-files article { display: grid; grid-template-columns: 145px 1fr; border: 2px solid #fff8dc; background: #24212b; }
.game-case-files img { width: 145px; height: 82px; object-fit: cover; border-right: 2px solid #fff8dc; }
.game-case-files div { padding: 12px; display: grid; align-content: center; gap: 6px; }
.game-case-files strong,
.game-case-files span { font: 6px/1.3 var(--pixel); }
.game-case-files span { color: #ffd95a; font-size: 5px; }
.game-case-files .neon-feature { grid-template-columns: minmax(230px, 46%) 1fr; grid-column: 1 / -1; }
.game-case-files .neon-feature img { width: 100%; height: 160px; }
.game-case-files .neon-feature strong { font-size: 10px; }
.game-case-files .neon-feature span { font-size: 7px; }

.learn-grid { margin-top: 24px; display: grid; gap: 10px; }

.journey-map {
  position: relative;
  margin: 24px 0 8px;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 45%, rgba(168,215,232,.48), transparent 45%),
    linear-gradient(135deg, #18172a, #2d2745);
}
.journey-map img { width: min(100%, 720px); max-height: 310px; object-fit: contain; image-rendering: pixelated; }
.journey-map figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 7px 9px;
  color: #17131b;
  background: #fff8dc;
  font: 7px/1.25 var(--pixel);
}

.case-study-overview {
  margin: 24px 0;
  display: grid;
  grid-template-columns: minmax(260px,.9fr) minmax(360px,1.1fr);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #18172a;
  box-shadow: 7px 8px 0 rgba(23,19,27,.18);
}
.case-study-overview > img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: contain;
  image-rendering: pixelated;
  background: radial-gradient(circle at 50% 50%, rgba(168,215,232,.32), transparent 58%);
}
.service-matrix { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-left: 2px solid #fff8dc; }
.service-matrix article { padding: 16px; display: grid; align-content: center; gap: 8px; color: #fff8dc; border-right: 1px solid rgba(255,248,220,.28); border-bottom: 1px solid rgba(255,248,220,.28); }
.service-matrix span { color: #ffd95a; font: 8px/1 var(--pixel); }
.service-matrix strong { font: 9px/1.2 var(--pixel); }
.service-matrix p { margin: 0; font-size: 11px; line-height: 1.5; }
.projects-app .project-card p { font-size: 12px; line-height: 1.55; }
.projects-app .project-card strong { font-size: 12px; }

.voice-embed-slot {
  margin: 14px 22px 0;
  padding: 16px;
  display: grid;
  gap: 8px;
  border: 2px dashed var(--ink);
  background: rgba(199,243,107,.2);
}
.voice-embed-slot header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.voice-embed-slot header div { display: grid; gap: 6px; }
.voice-embed-slot span,
.voice-embed-slot strong,
.voice-embed-slot small { font: 8px/1.25 var(--pixel); }
.voice-embed-slot small { color: var(--wine); }
.voice-embed-slot nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.voice-embed-slot nav button { min-height: 40px; border: 2px solid var(--ink); background: #fffdf4; font: 7px/1 var(--pixel); }
.voice-embed-slot nav button.active { background: var(--lime); }
.voice-embed-slot iframe { width: 100%; min-height: 360px; border: 2px solid var(--ink); background: #151521; }
.voice-embed-slot p { margin: 0; max-width: 680px; font-size: 11px; line-height: 1.55; }

.learn-library { display: grid; gap: 18px; }
.learn-player {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #12131b;
  box-shadow: 6px 7px 0 rgba(23,19,27,.18);
}
.learn-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #08090d; }
.learn-player > div {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  color: #fff8dc;
}
.learn-player strong { font-size: 12px; line-height: 1.35; }
.learn-player a,
.youtube-library-link {
  color: #ffd95a;
  font: 7px/1.2 var(--pixel);
}
.learn-video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.learn-video-grid button {
  min-height: 112px;
  padding: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fffdf4;
  text-align: left;
  box-shadow: 4px 5px 0 rgba(23,19,27,.16);
}
.learn-video-grid button.active { outline: 4px solid var(--lime); }
.learn-video-grid img { width: 150px; height: 100%; min-height: 108px; object-fit: cover; border-right: 2px solid var(--ink); }
.learn-video-grid span { padding: 12px; display: grid; align-content: center; gap: 8px; }
.learn-video-grid small { color: var(--wine); font: 7px/1 var(--pixel); }
.learn-video-grid strong { font-size: 11px; line-height: 1.35; }
.youtube-library-link {
  width: max-content;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  color: #fff8dc;
  background: var(--wine);
}
.fake-keys { min-height: 100%; padding: 22px; background: #12141b; color: #c7f36b; }
.fake-keys header { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid #fff8dc; font: 7px/1 var(--pixel); }
.fake-keys pre { margin: 24px 0; white-space: pre-wrap; font: 12px/1.75 var(--mono); }
.fake-keys button { min-height: 44px; padding: 0 15px; border: 2px solid #fff8dc; background: transparent; color: #fff8dc; font: 6px/1 var(--pixel); }

.prank-app { min-height: 100%; padding: 38px; background: repeating-linear-gradient(135deg,#fff8dc 0 20px,#f8dfa2 20px 40px); }
.prank-actions { margin: 28px 0; display: flex; gap: 10px; }
.prank-actions button,
.api-decoy { min-height: 48px; padding: 0 16px; border: 2px solid var(--ink); font: 6px/1 var(--pixel); }
.prank-actions [data-prank-next] { color: #fff8dc; background: var(--wine); }
.prank-actions [data-prank-exit] { background: #fffdf4; }
.api-decoy { background: #a8d7e8; }

@keyframes dayRunnerFlyby {
  0%, 72% { opacity: 0; transform: translate3d(-50px,20px,0) rotate(-4deg); }
  75% { opacity: .92; }
  92% { opacity: .92; }
  96%, 100% { opacity: 0; transform: translate3d(calc(100vw + 400px),-110px,0) rotate(-9deg); }
}
@keyframes nightCatFlyby {
  0%, 62% { opacity: 0; transform: translate3d(-120px,190px,0) rotate(8deg); }
  65% { opacity: .96; }
  88% { opacity: .96; }
  94%, 100% { opacity: 0; transform: translate3d(calc(100vw + 520px),-260px,0) rotate(8deg); }
}

/* Night: atmospheric indigo, same desktop */
#os[data-theme="night"] { --desktop-ink: #fff6db; --desktop-paper: #1a1d3c; --desktop-wine: #ff96b5; }
#os[data-theme="night"] .menubar { color: #fff8dc; background: rgba(14,17,39,.94); border-color: #f4e9c8; }
#os[data-theme="night"] .brand-pixel { border-color: #fff8dc; }
#os[data-theme="night"] .theme-switch { border-color: rgba(255,248,220,.48); background: rgba(255,255,255,.08); }
#os[data-theme="night"] .theme-switch button[aria-pressed="true"] { color: #17131b; background: #ffd95a; }
#os[data-theme="night"] .desktop {
  background:
    radial-gradient(circle at 71% 24%, rgba(142,128,202,.24), transparent 18%),
    linear-gradient(150deg, #151936 0%, #282650 45%, #44315c 72%, #263b58 100%);
}
#os[data-theme="night"] .night-stars {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .9;
  background-image:
    radial-gradient(circle at 12% 18%, #fff4c5 0 1px, transparent 2px),
    radial-gradient(circle at 36% 11%, #ffd95a 0 1px, transparent 2px),
    radial-gradient(circle at 58% 24%, #fff4c5 0 1px, transparent 2px),
    radial-gradient(circle at 82% 14%, #fff4c5 0 1px, transparent 2px),
    radial-gradient(circle at 92% 38%, #ffd95a 0 1px, transparent 2px),
    radial-gradient(circle at 23% 46%, #fff4c5 0 1px, transparent 2px);
  background-size: 270px 190px;
}
#os[data-theme="night"] .theme-orb { background: #e9edff; box-shadow: 8px 8px 0 rgba(0,0,0,.28), inset -17px -7px 0 #b9c0df; }
#os[data-theme="night"] .activity-stack,
#os[data-theme="night"] .proof-rail button,
#os[data-theme="night"] .dock { color: #17131b; }
#os[data-theme="night"] .welcome-line { color: #17131b; }
#os[data-theme="night"] .desktop-app small { color: #fff8dc; }
#os[data-theme="night"] .desktop-app strong { color: #17131b; }
#os[data-theme="night"] .featured-app strong { color: #fff8dc; }
#os[data-theme="night"] .music-deck,
#os[data-theme="night"] .music-deck button { color: #17131b; }
#os[data-theme="night"] .portrait-zone > span { color: #17131b; }

/* Dark: professional near-black workstation */
#os[data-theme="dark"] { --desktop-ink: #f4eee1; --desktop-paper: #0b0d12; --desktop-wine: #ff7f9d; }
#os[data-theme="dark"] .menubar { color: #f4eee1; background: rgba(8,9,13,.96); border-color: #efeadf; }
#os[data-theme="dark"] .brand-pixel { border-color: #f4eee1; background: #d54c6e; }
#os[data-theme="dark"] .theme-switch { border-color: rgba(244,238,225,.35); background: #151820; }
#os[data-theme="dark"] .theme-switch button[aria-pressed="true"] { color: #0b0d12; background: #c7f36b; }
#os[data-theme="dark"] .desktop {
  background:
    radial-gradient(circle at 80% 80%, rgba(70,100,116,.25), transparent 33%),
    radial-gradient(circle at 20% 22%, rgba(123,22,53,.2), transparent 27%),
    #0b0d12;
}
#os[data-theme="dark"] .desktop::before { opacity: .34; }
#os[data-theme="dark"] .ambient-grid { opacity: .14; }
#os[data-theme="dark"] .cloud,
#os[data-theme="dark"] .theme-orb { display: none; }
#os[data-theme="dark"] .activity-stack,
#os[data-theme="dark"] .proof-rail button,
#os[data-theme="dark"] .dock { color: #17131b; }
#os[data-theme="dark"] .welcome-line { color: #17131b; }
#os[data-theme="dark"] .desktop-app small { color: #f4eee1; }
#os[data-theme="dark"] .desktop-app strong { color: #17131b; }
#os[data-theme="dark"] .featured-app strong { color: #fff8dc; }
#os[data-theme="dark"] .music-deck,
#os[data-theme="dark"] .music-deck button { color: #17131b; }
#os[data-theme="dark"] .portrait-zone > span { color: #17131b; }

@keyframes portraitIdle { 50% { transform: translate(-50%, -5px); } }
@keyframes v4CloudDrift { to { transform: translateX(25px) scale(.55); } }

@media (max-width: 1180px) {
  .app-grid { right: 125px; grid-template-columns: repeat(4, 86px); }
  .desktop-app { width: 86px; }
  .portrait-zone { width: 205px; }
  .theme-orb { right: 24px; width: 72px; height: 72px; }
  .proof-rail button { width: 112px; }
}

@media (max-width: 900px) {
  .system-status #date,
  .system-status #timezone { display: none; }
  .activity-stack { width: 205px; }
  .activity-stack > button:nth-of-type(3) { display: none; }
  .desktop-intro { top: 33%; width: 46vw; }
  .desktop-intro h1 { font-size: 90px; }
  .app-grid { top: 35px; right: 22px; grid-template-columns: repeat(3, 78px); gap: 12px 4px; }
  .desktop-app { width: 78px; min-height: 90px; }
  .desktop-app .pixel-icon { width: 53px; height: 53px; }
  .featured-app .pixel-icon { width: 59px; height: 59px; }
  .portrait-zone { width: 170px; right: 1%; }
  .proof-rail { gap: 5px; }
  .proof-rail button { width: 94px; min-height: 62px; }
  .proof-rail strong { font-size: 22px; }
  .learn-cluster { left: 220px; transform: scale(.82); transform-origin: top left; }
  .desktop-sos { right: 12px; top: 350px; width: 74px; }
  .music-deck { width: 430px; min-width: 430px; }
  .garage-mail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menubar { height: 36px; padding: 0 8px; gap: 6px; }
  .brand-menu strong { display: none; }
  .menu-links { display: none; }
  .theme-switch { margin-left: 4px; }
  .theme-switch button { min-width: 39px; padding: 5px 4px; font-size: 5px; }
  .system-status { margin-left: auto; gap: 6px; }
  .system-status .status-live,
  .system-status .signal { display: none; }
  .desktop { height: calc(100dvh - 36px); }
  .activity-stack { top: 44px; left: 8px; width: 150px; }
  .activity-stack header { height: 25px; }
  .activity-stack > button { min-height: 46px; padding: 7px 7px 7px 30px; }
  .activity-stack > button::before { left: 9px; top: 13px; width: 8px; height: 8px; }
  .activity-stack > button:nth-of-type(n+2) { display: none; }
  .activity-stack strong { font-size: 7px; }
  .activity-stack small { display: none; }
  .desktop-intro { left: 10px; top: 155px; width: 58vw; }
  .welcome-line { font-size: 5px !important; margin-bottom: 8px !important; }
  .desktop-intro .eyebrow { font-size: 5px; }
  .desktop-intro h1 { font-size: clamp(56px, 18vw, 76px); }
  .desktop-intro > p:not(.eyebrow):not(.welcome-line) { margin: 22px 0 14px; font-size: 9px; line-height: 1.45; }
  .intro-actions { gap: 6px; }
  .os-button { padding: 8px 9px; font-size: 6px; }
  .app-grid { top: 43px; left: auto !important; right: 5px; width: 195px; grid-template-columns: repeat(3, 65px); gap: 8px 0; }
  .desktop-app { width: 65px; min-height: 70px; gap: 1px; }
  .desktop-app .pixel-icon,
  .featured-app .pixel-icon { width: 43px; height: 43px; }
  .desktop-app strong { max-width: 63px; padding: 2px; font-size: 5px; }
  .desktop-app small { display: none; }
  .desktop-app > b { display: none; }
  .theme-orb { display: none; }
  .portrait-zone { right: 0; bottom: 54px; width: 120px; height: 37%; }
  .portrait-zone > span { display: none; }
  .proof-rail { left: 7px; bottom: 62px; display: grid; grid-template-columns: repeat(2, 82px); }
  .proof-rail button { width: 82px; min-height: 48px; padding: 6px; }
  .proof-rail strong { font-size: 18px; }
  .proof-rail span { margin-top: 5px; font-size: 4px; }
  .desktop-sos { top: auto; right: 6px; bottom: 58px; width: 72px; min-height: 48px; padding: 5px; }
  .desktop-sos strong { font-size: 12px; }
  .desktop-sos span { display: none; }
  .learn-cluster { top: 113px; left: 8px; width: 132px; height: 76px; transform: scale(.72); transform-origin: top left; }
  .secret-folder { right: 9px; bottom: 118px; width: 100px; min-height: 62px; }
  .portrait-zone.secret-revealed { transform: translateX(-48px); }
  .ambient-character { display: none !important; }
  .music-deck {
    left: 5px;
    right: 5px;
    bottom: 63px;
    width: auto;
    min-width: 0;
    min-height: 43px;
    grid-template-columns: 38px 44px 38px minmax(84px,1fr) 70px;
    transform: none;
  }
  .music-deck > button { min-height: 34px; }
  .music-deck [data-music-volume] { display: none; }
  .music-copy small { display: none; }
  .dock { bottom: 5px; height: 55px; padding: 5px 6px; gap: 1px; box-shadow: 4px 4px 0 rgba(23,19,27,.22); }
  .dock button { width: 38px; height: 42px; }
  .dock-icon { left: 3px; width: 34px; height: 34px; }
  .dock button small { display: none; }
  .dock-divider { height: 31px; }
  .journey-entry { grid-template-columns: 72px 1fr; background: linear-gradient(90deg, var(--milestone) 0 72px, transparent 72px); }
  .journey-entry time { padding: 17px 10px; font-size: 16px; }
  .journey-entry div { padding: 13px; }
  .journey-map { min-height: 170px; }
  .journey-map figcaption { right: 8px; font-size: 5px; }
  .case-study-overview { grid-template-columns: 1fr; }
  .case-study-overview > img { min-height: 210px; }
  .service-matrix { border-left: 0; border-top: 2px solid #fff8dc; grid-template-columns: 1fr; }
  .learn-video-grid { grid-template-columns: 1fr; }
  .learn-video-grid button { grid-template-columns: 112px 1fr; }
  .learn-video-grid img { width: 112px; }
  .learn-player > div { grid-template-columns: 1fr; }
  .voice-embed-slot { margin: 12px; }
  .notepad-app { padding: 22px; }
  .notepad-lead { margin: 36px 0 24px !important; font-size: 39px !important; }
  .os-window[data-app="testimonials"],
  .os-window[data-app="testimonials"].proof-cinema-window { inset: 8px !important; width: auto !important; height: auto !important; }
  .video-proof-app { padding: 14px 14px 96px; }
  .proof-screen-bar { grid-template-columns: 92px 1fr auto; padding: 0 7px; gap: 5px; }
  .proof-screen-bar span,
  .proof-screen-bar strong,
  .proof-screen-bar small { font-size: 7px; }
  .proof-screen-actions { justify-content: stretch; }
  .proof-screen-actions button,
  .proof-screen-actions a { flex: 1; min-height: 44px; padding: 0 7px; font-size: 7px; }
  .proof-frame-wrap { aspect-ratio: 9 / 16; max-height: 68dvh; }
  .proof-playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-theater.cinema-mode { grid-template-columns: 1fr; }
  .proof-theater.cinema-mode .proof-playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; padding: 0; }
  .proof-theater.cinema-mode .proof-video-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .proof-theater.cinema-mode .proof-thumb { height: auto; border-right: 0; border-bottom: 2px solid var(--ink); }
  .garage-mail-grid { grid-template-columns: 1fr; }
  .garage-mail { padding: 12px; }
  .music-library button { grid-template-columns: 32px 1fr auto; }
  .music-library button small { grid-column: 2 / 3; }
  .os-window[data-app="games"] { inset: 8px !important; width: auto !important; height: auto !important; }
  .game-room { padding: 12px; }
  .game-room > header { display: grid; }
  .game-room h2 { font-size: 42px; }
  .game-room nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-stage-bar { grid-template-columns: 1fr auto; }
  .game-stage-bar span { display: none; }
  .game-stage iframe { aspect-ratio: 4/5; }
  .game-case-files { grid-template-columns: 1fr; }
  .game-case-files article { grid-template-columns: 108px 1fr; }
  .game-case-files img { width: 108px; height: 72px; }
  .game-case-files .neon-feature { grid-template-columns: 118px 1fr; }
  .game-case-files .neon-feature img { width: 118px; height: 92px; }
  .prank-app { padding: 22px; }
  .prank-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-zone img,
  .cloud { animation: none !important; }
  .ambient-character { display: none !important; }
}
