:root {
  --ink: #161618;
  --muted: #66666b;
  --white: #fff;
  --surface: rgba(247, 247, 247, 0.48);
  --surface-strong: rgba(247, 247, 247, 0.78);
  --dark-glass: rgba(24, 24, 26, 0.62);
  --stroke: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 55px rgba(20, 20, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: #bdbdbd;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
}

.desktop {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
}

.wallpaper {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.92) contrast(1.02);
}

.wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(238, 238, 238, 0.45), rgba(238, 238, 238, 0.12) 45%, rgba(20, 20, 20, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 36%, rgba(0, 0, 0, 0.08));
}

.glass {
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(125%);
}

/* Liquid refraction layer removed — clean frosted glass everywhere,
   matching the case-study pages. */

.window {
  border-radius: 22px;
}

.window-bar {
  min-height: 42px;
  margin: 8px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(226,226,226,0.44));
  font-size: 14px;
}

.drag-handle {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.draggable-window {
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.draggable-window.dragging {
  box-shadow: 0 28px 80px rgba(20, 20, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: scale(1.01);
}

.draggable-window.dragging .drag-handle {
  cursor: grabbing;
}

.topbar {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 6;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 12px;
  border-radius: 24px;
}

.pill {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(248, 248, 248, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), inset 0 -1px 2px rgba(255,255,255,0.4), 0 8px 26px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px) saturate(150%);
  transition: transform 380ms cubic-bezier(0.34, 1.8, 0.4, 1), box-shadow 200ms ease;
}

.pill:hover {
  transform: scale(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 2px rgba(255,255,255,0.5), 0 12px 32px rgba(0,0,0,0.12);
}

.pill:active {
  transform: scale(0.95);
  transition-duration: 110ms;
}

.action-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 12px;
  font-weight: 700;
}

.action-dot span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #f8f8f8;
  background: radial-gradient(circle at center, #050505 0 34%, #d8ff2d 36% 100%);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sound-toggle input {
  position: absolute;
  opacity: 0;
}

.sound-toggle i {
  position: relative;
  width: 48px;
  height: 24px;
  display: block;
  border: 1px solid white;
  border-radius: 999px;
  background: rgba(255,255,255,0.36);
}

.sound-toggle i::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  transition: transform 180ms ease, background 180ms ease;
}

.sound-toggle input:checked + i::before {
  transform: translateX(21px);
  background: #d8ff2e;
}

.hero-copy {
  position: absolute;
  left: 36px;
  top: 106px;
  z-index: 3;
  width: min(520px, calc(100vw - 72px));
  color: #101012;
  text-shadow: 0 1px 16px rgba(255,255,255,0.32);
}

.hero-copy p,
.hero-copy h1 {
  margin: 0;
}

.eyebrow {
  margin-bottom: 10px !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 500px;
  margin-bottom: 12px;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 410px;
  color: rgba(20,20,22,0.78);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.profile-window {
  position: absolute;
  left: 36px;
  bottom: 118px;
  z-index: 5;
  width: 358px;
  min-height: 361px;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  margin: 24px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}

.avatar span {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  border: 2px solid #111;
  position: relative;
}

.avatar span::before,
.avatar span::after {
  content: "";
  position: absolute;
  background: #111;
}

.avatar span::before {
  left: 7px;
  top: 18px;
  width: 34px;
  height: 9px;
  border-radius: 8px;
  box-shadow: 0 12px 0 -5px #111;
}

.avatar span::after {
  left: 15px;
  top: -4px;
  width: 20px;
  height: 13px;
  border-radius: 18px 18px 4px 4px;
}

.avatar-photo {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.92);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-window h2 {
  margin: 0;
  font-size: 21px;
}

.role {
  width: 300px;
  max-width: calc(100% - 32px);
  margin: 2px auto 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.bio {
  width: 305px;
  max-width: calc(100% - 32px);
  margin: 0 auto 22px;
  font-size: 14px;
  line-height: 1.42;
}

.skill-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
}

.skill-row div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.badge-group {
  display: inline-flex;
  width: 38px;
}

.badge-group i {
  width: 17px;
  height: 17px;
  margin-right: -6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 7px;
  font-style: normal;
  background: #101010;
}

.badge-group i:nth-child(2) { background: #0477ff; }
.badge-group i:nth-child(3) { background: #ed46e9; }
.badge-group.warm i { background: #ff7d59; }
.badge-group.warm i:nth-child(2) { background: #25a6ff; }
.badge-group.dark i { background: #101010; }
.badge-group.dark i:nth-child(2) { background: #1e18aa; }

.floating-projects {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.float-project {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 178px;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 7px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
  animation: float 7s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * -1s);
}

.float-project img {
  width: 82px;
  height: 82px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 19px;
  background: transparent;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.28));
  transition: transform 460ms cubic-bezier(0.34, 1.9, 0.4, 1), filter 220ms ease;
}

.float-project:hover img,
.float-project:focus-visible img {
  transform: translateY(-8px) scale(1.1);
  filter: drop-shadow(0 24px 34px rgba(0,0,0,0.34));
}

.float-project:active img {
  transform: translateY(-2px) scale(0.96);
  transition-duration: 120ms;
}

.launch-window {
  position: absolute;
  top: 112px;
  right: 34px;
  z-index: 5;
  width: 352px;
  min-height: 168px;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px 16px 20px;
}

.launch-grid button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 13px;
}

.launch-grid img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.album-window {
  position: absolute;
  right: 44px;
  bottom: 116px;
  z-index: 5;
  width: 240px;
  min-height: 395px;
  padding: 8px;
}

.album-head {
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 15px 15px 6px 6px;
  background: rgba(238,238,238,0.82);
  font-size: 13px;
}

.album-head i {
  width: 16px;
  height: 10px;
  border: 1px solid #111;
  box-shadow: inset 0 -2px 0 #111;
}

.deck-module {
  padding: 10px 10px 14px;
}

.deck-housing {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #2b2e34, #1b1d22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -8px 18px rgba(0,0,0,0.4);
  padding: 16px 16px 0;
  overflow: hidden;
}

.deck-disc {
  position: relative;
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, rgba(0,0,0,0.10) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 38% 32%, var(--c1, #35e2b6), var(--c2, #0b8f6a));
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.08);
  transition: background 400ms ease;
}

.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,0.28) 0 18deg, transparent 18deg 168deg, rgba(255,255,255,0.12) 168deg 196deg, transparent 196deg 360deg);
  animation: vinyl-spin 7s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.album-window.playing .vinyl-sheen {
  animation-play-state: running;
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3c3f45, #101114 70%);
  box-shadow: 0 0 0 5px rgba(0,0,0,0.55), inset 0 1px 1px rgba(255,255,255,0.25);
  pointer-events: none;
}

.hub::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #cfd2d8;
}

.deck-disc:hover .vinyl {
  box-shadow: 0 10px 26px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.16);
}

.deck-plate {
  position: relative;
  margin: -54px -16px 0;
  padding: 12px 18px 14px;
  background: rgba(20, 21, 25, 0.72);
  backdrop-filter: blur(6px);
  color: #eceef2;
}

.deck-plate-row {
  display: flex;
  justify-content: space-between;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(236,238,242,0.55);
}

.deck-name {
  margin-top: 4px;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.deck-sub {
  margin-top: 3px;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: rgba(236,238,242,0.5);
}

.deck-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 4px;
}

.deck-nav button {
  width: 34px;
  height: 26px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 9px;
  background: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 300ms cubic-bezier(0.34, 1.8, 0.4, 1);
}

.deck-nav button:active { transform: scale(0.9); }

.deck-play {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #16161a !important;
  border: 0 !important;
  display: grid;
  place-items: center;
}

.deck-play i {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.album-window.playing .deck-play i {
  width: 12px;
  height: 14px;
  margin-left: 0;
  border: 0;
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
}

.deck-dots-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 2px;
}

.deck-dots { display: inline-flex; gap: 6px; }

.deck-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(20,20,22,0.25);
}

.deck-dots i.on { background: rgba(20,20,22,0.85); }

.deck-yt {
  margin: 12px 2px 6px;
}

.deck-yt iframe {
  display: block;
  width: 100%;
  height: 118px;
  border: 0;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.deck-yt-hint {
  margin: 6px 2px 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: center;
  color: rgba(20,20,22,0.45);
}

.deck-knobs {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 4px 6px 0;
}

.knob-wrap {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(20,20,22,0.6);
}

.knob {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #ffffff, #d9dade 78%);
  box-shadow: 0 5px 12px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.95);
  cursor: grab;
  touch-action: none;
}

.knob.large { width: 62px; height: 62px; }

.knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 12px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #26282e;
}

.knob:active { cursor: grabbing; }

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

.album-stack {
  height: 138px;
  position: relative;
  border-radius: 0 0 15px 15px;
  background: rgba(224,224,224,0.78);
  overflow: hidden;
}

.album-stack img {
  position: absolute;
  top: 35px;
  left: 50%;
  width: 96px;
  height: 86px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
  transition: transform 220ms ease;
}

.album-stack img:nth-child(1) { transform: translateX(-104px) rotate(-4deg); }
.album-stack img:nth-child(2) { transform: translateX(-48px) translateY(-12px) rotate(1deg); z-index: 2; }
.album-stack img:nth-child(3) { transform: translateX(30px) rotate(3deg); }

.click-wheel {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 14px auto 8px;
  border-radius: 50%;
  background: rgba(226,226,226,0.94);
  user-select: none;
  touch-action: none;
}

.click-wheel span {
  position: absolute;
  top: 24px;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.click-wheel button {
  position: absolute;
  border: 0;
  background: transparent;
}

.wheel-center {
  inset: 56px;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 9px 22px rgba(0,0,0,0.12);
}

.wheel-prev,
.wheel-next {
  top: 88px;
  width: 18px;
  height: 18px;
}

.wheel-prev { left: 18px; }
.wheel-next { right: 18px; }

.wheel-prev::before,
.wheel-next::before,
.wheel-prev::after,
.wheel-next::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.wheel-prev::before { left: 2px; border-right: 6px solid #111; }
.wheel-prev::after { left: 8px; border-right: 6px solid #111; }
.wheel-next::before { right: 2px; border-left: 6px solid #111; }
.wheel-next::after { right: 8px; border-left: 6px solid #111; }

.wheel-play {
  left: 84px;
  bottom: 22px;
  width: 24px;
  height: 18px;
}

.wheel-play::before {
  content: "";
  position: absolute;
  left: 4px;
  border-left: 8px solid #111;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.wheel-play::after {
  content: "";
  position: absolute;
  right: 4px;
  width: 2px;
  height: 12px;
  background: #111;
  box-shadow: 4px 0 0 #111;
}

.how-window {
  position: absolute;
  left: 430px;
  bottom: 118px;
  z-index: 5;
  width: 316px;
}

.how-list {
  margin: 4px 0 0;
  padding: 6px 18px 18px 38px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  counter-reset: how;
}

.how-list li::marker {
  color: rgba(20, 20, 22, 0.45);
  font-weight: 800;
  font-size: 12px;
}

.map-card {
  position: absolute;
  left: 430px;
  bottom: 116px;
  z-index: 5;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
}

.map-trigger {
  width: 100%;
  height: 45px;
  padding: 0 14px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(248,248,248,0.9);
  text-align: left;
  font-size: 17px;
  white-space: nowrap;
}

.pin {
  width: 20px;
  height: 28px;
  display: inline-block;
  border-radius: 50% 50% 50% 0;
  background: #111;
  transform: rotate(-45deg);
  box-shadow: -8px 8px 0 #d8ff2f;
}

.pin::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 6px;
  top: 6px;
  border-radius: 50%;
  background: white;
}

.chev {
  margin-left: auto;
  font-size: 28px;
}

.map-preview {
  position: relative;
  height: 158px;
  margin: 0 14px 14px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(235,235,235,0.78), rgba(211,211,211,0.72));
  border: 1px solid rgba(255,255,255,0.72);
}

.map-preview i {
  position: absolute;
  width: 28px;
  height: 22px;
  border-radius: 3px;
  background: rgba(130,130,130,0.5);
}

.map-preview i:nth-child(1) { left: 24px; top: 30px; }
.map-preview i:nth-child(2) { left: 55px; top: 45px; height: 38px; }
.map-preview i:nth-child(3) { left: 94px; top: 24px; width: 36px; height: 54px; }
.map-preview i:nth-child(4) { left: 136px; top: 18px; }
.map-preview i:nth-child(5) { right: 21px; top: 31px; }
.map-preview i:nth-child(6) { left: 20px; bottom: 31px; }
.map-preview i:nth-child(7) { left: 86px; bottom: 22px; }
.map-preview i:nth-child(8) { right: 70px; bottom: 23px; }
.map-preview i:nth-child(9) { right: 22px; bottom: 14px; }
.map-preview i:nth-child(10) { left: 122px; bottom: 43px; }

.dock {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 9;
  height: 66px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  transform: translateX(-50%);
}

.dock a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  transition: transform 420ms cubic-bezier(0.34, 1.8, 0.4, 1);
}

.dock a:first-child {
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
}

.dock a:hover,
.dock a:focus-visible {
  transform: translateY(-10px) scale(1.12);
}

.dock a:active {
  transform: translateY(-4px) scale(0.94);
  transition-duration: 120ms;
}

.dock img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dock a:not(:first-child) img {
  width: 108%;
  height: 108%;
}

.dock span {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,0.16);
}

.projects-modal {
  position: fixed;
  inset: 8vh 7vw auto;
  z-index: 20;
  min-height: 70vh;
  padding: 16px;
  border-radius: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.projects-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.modal-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head button,
.detail-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  font-size: 18px;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 14px;
  background: rgba(255,255,255,0.54);
  text-align: left;
}

.project-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  display: block;
}

.project-card div {
  padding: 10px;
}

.project-card h3 {
  margin: 0;
  font-size: 15px;
}

.project-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.detail-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.46);
  backdrop-filter: blur(12px);
}

.detail-card {
  position: relative;
  width: min(920px, 100%);
  height: min(760px, calc(100svh - 48px));
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  grid-template-rows: 100%;
  overflow: hidden;
  border-color: rgba(255,255,255,0.38);
  border-radius: 22px;
  background: rgba(246,246,246,0.82);
}

.detail-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #f1efea;
}

.detail-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 34px 38px;
  min-height: 0;
  overflow-y: auto;
}

.detail-kicker,
.detail-content p,
.project-facts {
  margin: 0;
}

.detail-kicker {
  color: rgba(20,20,22,0.58);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: 0;
}

.detail-content p {
  color: rgba(20,20,22,0.78);
  font-size: 16px;
  line-height: 1.55;
}

.project-facts {
  display: grid;
  gap: 12px;
}

.project-facts div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
}

.project-facts dt {
  color: rgba(20,20,22,0.52);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: rgba(20,20,22,0.84);
  font-size: 14px;
  line-height: 1.4;
}

.case-link[hidden] {
  display: none;
}

.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.feedback-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.feedback-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 26px 26px 22px;
}

.feedback-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.feedback-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: rgba(20,20,22,0.65);
}

.feedback-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(20,20,22,0.15);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.feedback-actions button {
  padding: 10px 18px;
  border: 1px solid rgba(20,20,22,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 700;
}

.feedback-actions button.primary {
  background: #16161a;
  border-color: #16161a;
  color: #fff;
}

body.focus-mode .profile-window,
body.focus-mode .launch-window,
body.focus-mode .album-window {
  opacity: 0.2;
}

body.focus-mode .float-project img {
  width: 94px;
  height: 94px;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

@media (max-width: 1120px) {
  .album-window,
  .how-window {
    display: none;
  }

  .profile-window {
    left: 22px;
    bottom: 112px;
    width: min(358px, calc(100vw - 44px));
  }

  .hero-copy {
    top: 104px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-y: auto;
  }

  .desktop {
    height: 100svh;
    min-height: 900px;
  }

  .topbar {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .topbar-right time {
    display: none;
  }

  .hero-copy {
    left: 22px;
    top: 92px;
    width: calc(100vw - 44px);
  }

  .hero-copy h1 {
    max-width: 350px;
    font-size: 38px;
  }

  .hero-copy p:last-child {
    max-width: 310px;
    font-size: 13px;
  }

  .launch-window {
    display: none;
  }

  .float-project {
    left: var(--mx);
    top: var(--my);
    width: 140px;
    gap: 10px;
    font-size: 14px;
  }

  .float-project img {
    width: 74px;
    height: 74px;
  }

  .profile-window {
    left: 22px;
    bottom: 118px;
    width: calc(100vw - 44px);
    min-height: 330px;
  }

  .dock {
    bottom: 34px;
    width: calc(100vw - 44px);
    max-width: 356px;
    justify-content: center;
    gap: 10px;
  }

  .dock a {
    width: 44px;
    height: 44px;
  }

  .projects-modal {
    inset: 3vh 12px auto;
    max-height: 94svh;
    overflow-y: auto;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .detail-modal {
    padding: 14px;
  }

  .detail-card {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    max-height: calc(100svh - 28px);
    overflow-y: auto;
  }

  .detail-content {
    overflow-y: visible;
  }

  .detail-image {
    min-height: 240px;
    max-height: 320px;
  }

  .detail-content {
    padding: 26px 22px;
  }

  .project-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .album-window {
    display: none;
  }

  .hero-copy h1 {
    max-width: 390px;
    font-size: 54px;
  }

  .hero-copy p:last-child {
    display: none;
  }

  .profile-window {
    left: auto;
    right: 34px;
    bottom: 100px;
    width: 358px;
    min-height: 340px;
  }
}
