/* =====================================================
   TOKENS
===================================================== */
:root{
  --mat: #46564B;
  --mat-deep: #3A493F;
  --mat-grid-line: rgba(255,255,255,0.055);
  --mat-grid-line-strong: rgba(255,255,255,0.09);
  --desk-edge: #2C3730;

  --paper: #F6F1E4;
  --paper-warm: #EFE6D2;
  --ink: #26221B;
  --ink-soft: #6b6558;
  --ink-faint: #948c7b;

  --copper: #C97C3D;
  --copper-deep: #A85F27;
  --teal: #2F6F62;
  --steel: #8A9199;
  --steel-dark: #565C63;
  --brass: #C7A15A;

  --shadow-soft: rgba(15,20,16,0.28);
  --shadow-hard: rgba(10,14,11,0.42);
  --sun: rgba(255,246,214,0.5);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hand: 'Caveat', cursive;

  --lift: 0px;
}

*{ box-sizing: border-box; }
html,body{
  margin:0; padding:0; width:100%; height:100%;
  overflow:hidden;
  background:var(--desk-edge);
  font-family: var(--font-body);
  -webkit-font-smoothing:antialiased;
}
button{ font-family:inherit; }

/* =====================================================
   DESK / MAT
===================================================== */
.desk{
  position:relative;
  width:100vw; height:100vh;
  overflow:hidden;
  perspective: 1400px;
}


.mat{
  position:absolute;
  inset: 2.2vh 2.2vw;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(155deg, var(--mat) 0%, var(--mat-deep) 100%);
  box-shadow:
    0 40px 80px var(--shadow-hard),
    0 2px 0 rgba(255,255,255,0.08) inset,
    0 -30px 60px rgba(0,0,0,0.25) inset;
  transform: rotateX(5deg);
  transform-origin: 50% 30%;
  border: 1px solid rgba(255,255,255,0.04);
}

.mat-grid{
  position:absolute; inset:0; border-radius:inherit;
  background-image:
    repeating-linear-gradient(0deg, var(--mat-grid-line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--mat-grid-line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, var(--mat-grid-line-strong) 0 1px, transparent 1px 200px),
    repeating-linear-gradient(90deg, var(--mat-grid-line-strong) 0 1px, transparent 1px 200px);
  mix-blend-mode: overlay;
  opacity:0.9;
}

.mat-ruler {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
}
.mat-ruler--top {
  top: 0; left: 40px; right: 40px; height: 12px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.4) 0 1px, transparent 1px 10px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0 1px, transparent 1px 50px);
}
.mat-ruler--left {
  top: 40px; left: 0; bottom: 40px; width: 12px;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.4) 0 1px, transparent 1px 10px),
                    repeating-linear-gradient(0deg, rgba(255,255,255,0.85) 0 1px, transparent 1px 50px);
}

.mat-stain{
  position:absolute; left:var(--x); top:var(--y);
  transform:translate(-50%,-50%) rotate(var(--rot,0deg));
  pointer-events:none; opacity:0.5;
}
.mat-stain--ring{
  width:86px; height:86px; border-radius:50%;
  border:6px solid rgba(0,0,0,0.10);
  filter: blur(0.4px);
}
.mat-stain--faint{ opacity:0.25; width:60px; height:60px; }
.mat-stain--scratch{
  width:70px; height:2px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 3px 0 rgba(0,0,0,0.06);
}
.mat-corner-mark{
  position:absolute; right:1.4%; bottom:1.2%;
  color: rgba(255,255,255,0.14);
}

.sunlight{
  position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(60% 50% at 8% 2%, var(--sun), transparent 60%);
  mix-blend-mode: soft-light;
  animation: sunDrift 26s ease-in-out infinite alternate;
}
@keyframes sunDrift{
  from{ opacity:0.85; transform: translate(0,0); }
  to{ opacity:1; transform: translate(1.2%, 1%); }
}

.dust-field{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.dust{
  position:absolute; border-radius:50%;
  background: rgba(255,250,230,0.55);
  filter: blur(0.3px);
  animation: dustFloat linear infinite;
}
@keyframes dustFloat{
  from{ transform: translate(0,0); opacity:0; }
  8%{ opacity: var(--dust-op, 0.5); }
  92%{ opacity: var(--dust-op, 0.5); }
  to{ transform: translate(var(--dx,40px), var(--dy,-120px)); opacity:0; }
}

/* Center breathing space */
.welcome{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  text-align:center;
  pointer-events:none;
  z-index:2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.welcome-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass);
  background: rgba(0, 0, 0, 0.32);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(199, 161, 90, 0.35);
  backdrop-filter: blur(4px);
}
.welcome-title{
  font-family: var(--font-display);
  font-weight:700;
  font-size: clamp(22px, 2.6vw, 34px);
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
  margin:0;
  text-shadow: 0 3px 16px rgba(0,0,0,0.4);
}
.welcome-sub{
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 14px);
  color: rgba(255,255,255,0.6);
  margin:0;
}

/* =====================================================
   GENERIC OBJECT WRAPPER + INTERACTION STATES
===================================================== */
.desk-object{
  position:absolute;
  left:var(--x); top:var(--y);
  width:var(--w);
  z-index: 3;
  transform: translate(-50%,-50%) rotate(var(--rot,0deg)) translateY(var(--lift,0px)) scale(var(--scale,1));
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 var(--sh-y,10px) var(--sh-blur,14px) var(--shadow-soft));
  transition: filter .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.desk-object:hover{ --sh-y: 16px; --sh-blur: 22px; }
.desk-object.is-dragging{
  cursor: grabbing;
  z-index: 50;
  transition: none;
  --sh-y: 26px; --sh-blur: 30px;
}
.desk-object.is-bouncing{
  animation: objBounce .38s cubic-bezier(.33,1.6,.6,1) 1;
}
@keyframes objBounce{
  0%{ transform: translate(-50%,-50%) rotate(var(--rot,0deg)) translateY(-6px) scale(1.02); }
  100%{ transform: translate(-50%,-50%) rotate(var(--rot,0deg)) translateY(0) scale(1); }
}
.desk-object[data-opens]{ cursor: pointer; }
.desk-object[data-opens]:hover{ --lift: -4px; }

.obj{ width:100%; position:relative; }

/* =====================================================
   NOTEBOOK
===================================================== */
.notebook{ aspect-ratio: 3/4; }
.notebook-cover{
  width:100%; height:100%; border-radius:6px;
  background: linear-gradient(155deg, #3E5C55, #2E453F);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 -6px 10px rgba(0,0,0,0.25) inset;
  position:relative; overflow:hidden;
}
.notebook-cover::before{
  content:''; position:absolute; inset:0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.05) 0 6px, transparent 6px 7px);
  opacity:0.35;
}
.notebook-elastic{
  position:absolute; right:14%; top:0; bottom:0; width:6px;
  background: var(--copper-deep);
  box-shadow: -2px 0 4px rgba(0,0,0,0.25);
}
.notebook-title{
  position:absolute; left:14%; top:40%;
  font-family: var(--font-hand); font-size: 22px; color: rgba(255,255,255,0.7);
  transform: rotate(-2deg);
}

/* =====================================================
   STICKY NOTES
===================================================== */
.sticky-stack{ aspect-ratio: 1/1; position:relative; }
.sticky{
  position:absolute; inset:0; border-radius:2px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.18);
}
.sticky--1{ background:#F4C954; transform: rotate(-3deg); display:flex; align-items:center; justify-content:center; }
.sticky--2{ background:#F2A65A; transform: rotate(4deg) translate(4px,3px); }
.sticky--3{ background:#EDE28E; transform: rotate(9deg) translate(8px,7px); }
.sticky--1 span{
  font-family: var(--font-hand); font-size:16px; color:#3d2e0a; font-weight:600;
}

/* =====================================================
   BUSINESS CARD
===================================================== */
.card{
  aspect-ratio: 1.6/1; border-radius:6px;
  background: linear-gradient(160deg, var(--paper), var(--paper-warm));
  box-shadow: 0 6px 14px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.05) inset;
  display:flex; flex-direction:column; justify-content:center; gap:4px;
  padding: 12px 14px;
}
.card-name{ font-family: var(--font-display); font-weight:700; font-size:13px; color: var(--ink); }
.card-role{ font-family: var(--font-mono); font-size:8.5px; color: var(--ink-soft); letter-spacing:0.03em; }
.card-line{ width:26px; height:2px; background: var(--copper); margin-top:2px; }

/* =====================================================
   PLANT
===================================================== */
.plant{ aspect-ratio: 1/1.2; position:relative; }
.pot{
  position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:56%; height:38%; border-radius: 4px 4px 10px 10px;
  background: linear-gradient(160deg, #B5714A, #8F5636);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}
.leaf{
  position:absolute; left:50%; bottom:32%; width:20px; height:56px;
  background: linear-gradient(200deg, #6FA26A, #3F6F49);
  border-radius: 0 100% 0 100%;
  transform-origin: bottom center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.12);
  animation: leafSway 4.5s ease-in-out infinite;
}
.leaf--1{ transform: translateX(-30px) rotate(-24deg); animation-delay:0s; }
.leaf--2{ transform: translateX(-6px) rotate(-4deg) scale(1.15); height:64px; animation-delay:0.6s; }
.leaf--3{ transform: translateX(14px) rotate(18deg); animation-delay:1.1s; }
.leaf--4{ transform: translateX(-16px) rotate(-46deg) scale(0.8); animation-delay:1.6s; }
@keyframes leafSway{
  0%,100%{ rotate: 0deg; }
  50%{ rotate: 3deg; }
}

/* =====================================================
   CAMERA
===================================================== */
.camera{ aspect-ratio: 1.3/1; }
.camera-body{
  width:100%; height:78%; margin-top:10%; border-radius:10px;
  background: linear-gradient(160deg, #2E2E2E, #171717);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position:relative;
}
.camera-lens{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:52%; aspect-ratio:1/1; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, #4b4b4b, #0c0c0c 70%);
  box-shadow: 0 0 0 4px #111, 0 4px 8px rgba(0,0,0,0.4);
}
.camera-lens-glass{
  position:absolute; inset:22%; border-radius:50%;
  background: radial-gradient(circle at 30% 25%, rgba(150,200,255,0.55), rgba(20,30,40,0.9) 60%);
}
.camera-flash{
  position:absolute; left:12%; top:14%; width:14%; height:12%;
  background: #dcdcdc; border-radius:2px;
}
.camera-shutter{
  position:absolute; right:10%; top:16%; width:10%; aspect-ratio:1/1;
  border-radius:50%; background: var(--copper);
}

/* =====================================================
   BREADBOARD
===================================================== */
.breadboard{ aspect-ratio: 2.1/1; }
.breadboard::before{ content:''; }
.bb-rail{ height:14%; background:#e7e3d6; border-radius:3px; margin-bottom:6%; box-shadow:0 3px 5px rgba(0,0,0,0.15); }
.bb-rail--bottom{ margin-bottom:0; margin-top:6%; }
.bb-holes{
  height:44%; background:#dcd8c9; border-radius:2px;
  background-image: radial-gradient(circle, rgba(0,0,0,0.22) 1px, transparent 1.4px);
  background-size: 8% 30%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.bb-wire{ position:absolute; height:3px; border-radius:2px; }
.bb-wire--1{ width:36%; left:10%; top:20%; background:#d64545; transform: rotate(2deg); }
.bb-wire--2{ width:44%; left:30%; top:52%; background:#3d7fd6; transform: rotate(-4deg); }
.bb-wire--3{ width:26%; left:52%; top:38%; background:#e8c33e; transform: rotate(6deg); }

/* =====================================================
   ESP32
===================================================== */
.esp32{ aspect-ratio: 1.7/1; }
.esp32-chip{
  width:100%; height:100%; border-radius:4px;
  background: linear-gradient(160deg, #2b2b2b, #131313);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
  position:relative;
}
.esp32-chip::before{
  content:''; position:absolute; inset:16% 22%;
  background: #3a3a3a; border-radius:2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.esp32-pins{ position:absolute; top:8%; bottom:8%; width:4%; background: repeating-linear-gradient(180deg, var(--brass) 0 3px, transparent 3px 7px); }
.esp32-pins--left{ left:-2%; }
.esp32-pins--right{ right:-2%; }
.esp32-led{
  position:absolute; right:16%; top:14%; width:6%; aspect-ratio:1/1; border-radius:50%;
  background:#e0473e; box-shadow:0 0 6px 1px rgba(224,71,62,0.8);
  animation: ledBlink 3.2s steps(1) infinite;
}
@keyframes ledBlink{ 0%,92%,100%{ opacity:1; } 94%,98%{ opacity:0.15; } }
.esp32-label{
  position:absolute; left:50%; bottom:16%; transform:translateX(-50%);
  font-family: var(--font-mono); font-size:6.5px; color: rgba(255,255,255,0.55); letter-spacing:0.02em;
}

/* =====================================================
   TOOLBOX
===================================================== */
.toolbox{ aspect-ratio: 1.5/1; position:relative; }
.toolbox-body{
  position:absolute; bottom:0; width:100%; height:70%; border-radius: 4px;
  background: linear-gradient(160deg, var(--copper), var(--copper-deep));
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.toolbox-lid{
  position:absolute; top:6%; width:82%; left:9%; height:34%; border-radius: 4px 4px 0 0;
  background: linear-gradient(160deg, #D48C51, var(--copper));
}
.toolbox-handle{
  position:absolute; top:-6%; left:38%; width:24%; height:16%; border-radius:6px 6px 0 0;
  border: 4px solid var(--steel-dark); border-bottom:none;
}
.toolbox-latch{
  position:absolute; top:38%; left:46%; width:8%; height:10%; background: var(--steel);
  border-radius:2px;
}

/* =====================================================
   LAPTOP
===================================================== */
.laptop{ aspect-ratio: 1.55/1; }
.laptop-screen{
  width:92%; margin: 0 auto; height:64%; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(160deg, #d8d9da, #b7b9bc);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding:5%;
}
.laptop-bezel{
  width:100%; height:100%; border-radius:4px; background:#0d0f10; position:relative; overflow:hidden;
}
.laptop-glow{
  position:absolute; inset:0;
  background: radial-gradient(120% 100% at 20% 0%, rgba(90,150,200,0.35), transparent 60%);
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse{ 0%,100%{ opacity:0.7; } 50%{ opacity:1; } }
.laptop-code-line{ position:absolute; left:10%; height:4%; border-radius:2px; background: rgba(120,220,180,0.55); }
.l1{ top:22%; width:50%; }
.l2{ top:36%; width:30%; background: rgba(140,180,240,0.5); }
.l3{ top:50%; width:40%; background: rgba(230,190,110,0.5); }
.laptop-base{
  width:100%; height:38%; margin-top:-2%; border-radius: 3px 3px 10px 10px;
  background: linear-gradient(160deg, #c7c9cb, #9ea1a5);
  box-shadow: 0 8px 14px rgba(0,0,0,0.28);
  position:relative;
}
.laptop-trackpad{
  position:absolute; left:50%; top:20%; transform:translateX(-50%);
  width:26%; height:55%; border-radius:4px; background: rgba(0,0,0,0.08);
}

/* =====================================================
   COFFEE MUG
===================================================== */
.coffee{ aspect-ratio: 1/1; position:relative; }
.coffee-mug{
  position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:70%; height:66%; border-radius: 0 0 12px 12px / 0 0 16px 16px;
  background: linear-gradient(160deg, #f2f2ef, #d8d7d1);
  box-shadow: 0 6px 10px rgba(0,0,0,0.22);
}
.coffee-liquid{
  position:absolute; top:0; left:8%; right:8%; height:14%; border-radius:50%;
  background: #3b2416;
}
.coffee-handle{
  position:absolute; right:-22%; top:22%; width:34%; height:44%;
  border: 7px solid #d8d7d1; border-left:none; border-radius: 0 40% 40% 0;
}
.coffee-steam{
  position:absolute; bottom:60%; width:6px; border-radius:6px;
  background: rgba(255,255,255,0.35);
  filter: blur(2px);
  animation: steamRise 3.2s ease-in-out infinite;
}
.s1{ left:38%; height:26px; animation-delay:0s; }
.s2{ left:50%; height:32px; animation-delay:0.7s; }
.s3{ left:62%; height:22px; animation-delay:1.4s; }
@keyframes steamRise{
  0%{ transform: translateY(0) scaleX(1); opacity:0; }
  30%{ opacity:0.6; }
  100%{ transform: translateY(-34px) scaleX(1.6); opacity:0; }
}

/* =====================================================
   KEYBOARD
===================================================== */
.keyboard{ aspect-ratio: 2.4/1; }
.keyboard{
  background: linear-gradient(160deg, #e8e6e1, #c9c7c0);
  border-radius:8px; padding: 8% 6%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.22);
}
.key-row{ display:flex; gap:4%; margin-bottom:6%; }
.key-row::before{ content:''; }
.key-row{ height:14%; }
.key-row::after{ content:''; display:block; }
.key-row{
  background-image: repeating-linear-gradient(90deg, #fdfdfb 0 7%, transparent 7% 9%);
  border-radius:2px;
}
.key-row--space{ background-image:none; background:#fdfdfb; border-radius:2px; width:60%; margin: 0 auto; }

/* =====================================================
   PHONE
===================================================== */
.phone{ aspect-ratio: 0.52/1; }
.phone-notch{ position:absolute; left:50%; top:4%; transform:translateX(-50%); width:26%; height:3%; background:#000; border-radius:4px; z-index:2; }
.phone-screen{
  width:100%; height:100%; border-radius:16px; background:#111;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3), 0 0 0 3px #1c1c1c;
  position:relative; overflow:hidden;
}
.phone-screen::before{
  content:''; position:absolute; inset:0;
  background: linear-gradient(200deg, #2a3a4a, #131b22);
}
.phone-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24%;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  user-select: none;
  z-index: 1;
}
.phone-time {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.phone-date {
  font-size: 5px;
  opacity: 0.85;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.phone-temp {
  font-size: 5.5px;
  font-weight: 500;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 4px;
  border-radius: 6px;
  backdrop-filter: blur(2px);
}
.phone-notif{
  position:absolute; bottom:12%; left:10%; right:10%; height:14%;
  background: rgba(255,255,255,0.14); border-radius:6px;
  display:flex; align-items:center; justify-content:flex-end; padding-right:8%;
  animation: notifPulse 3.6s ease-in-out infinite;
  z-index: 2;
}
.phone-notif span{
  background: var(--copper); color:#fff; font-size:8px; font-family:var(--font-mono);
  width:14px; height:14px; border-radius:50%; display:flex; align-items:center; justify-content:center;
}
@keyframes notifPulse{ 0%,80%,100%{ opacity:0.9; } 90%{ opacity:0.4; } }

/* =====================================================
   USB DRIVE
===================================================== */
.usb{ aspect-ratio: 1/2.2; position:relative; }
.usb-body{
  position:absolute; bottom:0; width:100%; height:60%; border-radius:4px;
  background: linear-gradient(160deg, var(--steel), var(--steel-dark));
  box-shadow: 0 5px 8px rgba(0,0,0,0.22);
}
.usb-connector{
  position:absolute; top:0; left:22%; width:56%; height:42%;
  background: #d8d8d8; border-radius:2px 2px 0 0;
}
.usb-led{
  position:absolute; bottom:14%; left:50%; transform:translateX(-50%);
  width:12%; aspect-ratio:1/1; border-radius:50%; background:#5fd67a;
  box-shadow: 0 0 4px 1px rgba(95,214,122,0.8);
}

/* =====================================================
   RULER
===================================================== */
.ruler{ aspect-ratio: 8/1; }
.ruler{
  background: linear-gradient(160deg, #dedad0, #c9c4b6);
  border-radius:2px; box-shadow: 0 5px 8px rgba(0,0,0,0.2);
  position:relative;
}
.ruler-ticks{
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(90deg, rgba(30,30,25,0.55) 0 1px, transparent 1px 5%);
}

/* =====================================================
   PENCIL / PEN
===================================================== */
.pencil{ aspect-ratio: 9/1; display:flex; align-items:center; }
.pencil-body{ flex:1; height:38%; background: linear-gradient(180deg, var(--copper), var(--copper-deep)); }
.pencil-tip{ width:8%; height:0; border-top:7px solid transparent; border-bottom:7px solid transparent; border-right:14px solid #e8cfa0; }
.pencil-eraser{ width:6%; height:60%; background:#d97b8f; border-radius:0 4px 4px 0; }

.pen{ aspect-ratio: 10/1; display:flex; align-items:center; position:relative; }
.pen-body{ flex:1; height:30%; background: linear-gradient(180deg, #2e3236, #16181a); border-radius:2px; }
.pen-tip{ width:6%; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-right:12px solid var(--brass); }
.pen-clip{ position:absolute; top:-40%; left:12%; width:20%; height:60%; border:3px solid var(--steel); border-bottom:none; border-radius: 3px 3px 0 0; }

/* =====================================================
   DRAWER
===================================================== */
.drawer{
  position:absolute; left:50%; bottom:2vh; transform:translateX(-50%);
  width: min(280px, 22vw); height: 34px;
  z-index:4; cursor:pointer;
}
.drawer-front{
  width:100%; height:100%; border-radius: 6px 6px 4px 4px;
  background: linear-gradient(160deg, #5c4632, #40311f);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.08) inset;
  display:flex; align-items:center; justify-content:center; gap:10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.drawer-handle{ width:52px; height:6px; border-radius:3px; background: var(--brass); box-shadow:0 2px 3px rgba(0,0,0,0.3); }
.drawer-label{
  font-family: var(--font-mono); font-size:10px; letter-spacing:0.05em;
  color: rgba(255,255,255,0.55); text-transform:uppercase;
}
.drawer:hover .drawer-front{ transform: translateY(-3px); box-shadow: 0 10px 18px rgba(0,0,0,0.4); }

/* =====================================================
   CONTENT PANEL (a document pulled toward the viewer)
===================================================== */
.panel-overlay{
  position:fixed; inset:0; z-index:100;
  background: rgba(15,18,15,0.35);
  backdrop-filter: blur(3px);
  display:flex; align-items:center; justify-content:flex-end;
  opacity:0; pointer-events:none;
  transition: opacity .3s ease;
}
.panel-overlay.is-open{ opacity:1; pointer-events:auto; }

.panel{
  width: min(560px, 92vw);
  height: 100%;
  background: linear-gradient(170deg, var(--paper), var(--paper-warm));
  box-shadow: -30px 0 60px rgba(0,0,0,0.35);
  padding: 48px 44px;
  overflow-y: auto;
  position:relative;
  transform: translateX(40px);
  opacity:0;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.panel-overlay.is-open .panel{ transform: translateX(0); opacity:1; }

.panel-close{
  position:absolute; top:24px; right:24px;
  width:34px; height:34px; border-radius:50%;
  background: rgba(0,0,0,0.06); border:none; color: var(--ink-soft);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition: background .2s ease;
}
.panel-close:hover{ background: rgba(0,0,0,0.12); }

.panel-content{ color: var(--ink); }
.panel-eyebrow{
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--copper-deep); margin:0 0 6px;
}
.panel-title{
  font-family: var(--font-display); font-weight:700; font-size: clamp(26px,3.4vw,36px);
  margin:0 0 18px; color: var(--ink); letter-spacing:-0.01em;
}
.panel-body p{ line-height:1.65; color: var(--ink-soft); font-size:15px; margin:0 0 14px; }
.panel-body strong{ color: var(--ink); }

.panel-grid{ display:grid; gap:16px; margin-top:8px; }
.panel-item{
  border: 1px solid rgba(0,0,0,0.08); border-radius:10px; padding:16px 18px;
  background: rgba(255,255,255,0.4);
}
.panel-item h3{ margin:0 0 4px; font-family: var(--font-display); font-size:16px; color:var(--ink); }
.panel-item p{ margin:0; font-size:13.5px; color: var(--ink-soft); }
.panel-item .tag{
  display:inline-block; margin-top:8px; font-family:var(--font-mono); font-size:10px;
  color: var(--teal); background: rgba(47,111,98,0.1); padding:2px 8px; border-radius:20px;
}

/* =====================================================
   SKILLS PANEL — CATEGORY CARDS
===================================================== */
.panel-item[style*="border-left"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.panel-item[style*="border-left"]:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.panel-item .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* =====================================================
   SECRET NOTE (revealed by dragging the coffee mug)
===================================================== */
.secret-note{
  position:absolute; z-index:2;
  width: 190px; padding: 14px 16px; border-radius:2px;
  background: #fbf7ec;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  font-family: var(--font-hand); color:#3a2f1f; font-size:16px; line-height:1.35;
  opacity:0; transform: scale(0.9);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events:none;
}
.secret-note.is-visible{ opacity:1; transform: scale(1); }
.secret-note-small{ font-size:13px; opacity:0.7; margin-top:6px; }

/* =====================================================
   INTRO ANIMATIONS
===================================================== */
@keyframes matIntro {
  from {
    opacity: 0;
    transform: rotateX(8deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: rotateX(5deg) scale(1);
  }
}

@keyframes welcomeIntro {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes drawerIntro {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes objIntro {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.85) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

.mat-intro {
  animation: matIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.welcome-intro {
  animation: welcomeIntro 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

.drawer-intro {
  animation: drawerIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.8s;
}

/* =====================================================
   AMBIENT SYNTHESIZER WORKBENCH OBJECT
===================================================== */
.synth-box {
  aspect-ratio: 1.4/1;
}
.synth-body {
  width: 100%; height: 100%; border-radius: 8px;
  background: linear-gradient(150deg, #2b2e30 0%, #17181a 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 -4px 8px rgba(0,0,0,0.3) inset,
    0 10px 18px var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  overflow: hidden;
}
.synth-grill {
  display: flex; gap: 4px; padding: 2px 4px;
}
.grill-slot {
  flex: 1; height: 3px; background: rgba(0,0,0,0.4); border-radius: 1px;
}
.synth-interface {
  display: flex; justify-content: space-around; align-items: center; margin: 4px 0;
}
.synth-knob {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #df995e, var(--copper) 60%);
  border: 1px solid rgba(0,0,0,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  position: relative;
}
.synth-knob::before {
  content: ''; position: absolute; top: 1px; left: 5px; width: 2px; height: 4px;
  background: #fff; opacity: 0.8; border-radius: 1px;
}
.synth-led-indicator {
  width: 7px; height: 7px; border-radius: 50%;
  background: #444;
  box-shadow: 0 0 1px rgba(0,0,0,0.4);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.synth-led-indicator.is-active {
  background: #3ee1bf;
  box-shadow: 0 0 8px #3ee1bf, 0 0 2px #fff;
  animation: ledPulse 1.8s ease-in-out infinite alternate;
}
@keyframes ledPulse {
  0% { opacity: 0.65; box-shadow: 0 0 4px #3ee1bf; }
  100% { opacity: 1; box-shadow: 0 0 10px #3ee1bf, 0 0 2px #fff; }
}
.synth-keys {
  display: flex; height: 45%; background: rgba(0,0,0,0.2); border-radius: 3px; overflow: hidden; position: relative;
}
.s-key {
  position: relative; flex: 1; height: 100%; transition: background-color 0.1s;
}
.s-key--w {
  background: #fbfbf9; border-right: 1px solid #dcdcdc; border-bottom: 2px solid #e0e0d8;
  z-index: 1;
}
.s-key--w:last-child { border-right: none; }
.s-key--b {
  background: #1e2022; border-radius: 0 0 2px 2px;
  width: 9%; height: 60%;
  margin-left: -4.5%; margin-right: -4.5%;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.s-key:active {
  background: var(--copper);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 820px){
  .mat{ inset: 1.4vh 1.4vw; }
  .welcome-title{ font-size:18px; }
  .panel{ padding: 32px 20px; }
  .desk-object { width: calc(var(--w) * 0.72) !important; }
  .guide-btn { top: 3vh; left: 3vw; padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 580px){
  .desk-object { width: calc(var(--w) * 0.58) !important; }
  .welcome-title { font-size: 15px; }
  .welcome-sub { font-size: 11px; }
  .welcome-chip { font-size: 8.5px; padding: 2px 8px; }
  .desk-tooltip { font-size: 9px; padding: 4px 8px; }
  .guide-card { padding: 18px; }
  .guide-steps { gap: 10px; font-size: 12.5px; }
  .panel-grid { grid-template-columns: 1fr !important; }
  /* Collapse gallery to single column on small screens */
  .panel-content div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}


@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =====================================================
   DESK TOOLTIPS
===================================================== */
.desk-tooltip {
  position: absolute;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-6px) scale(0.9);
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.08);
}
.desk-tooltip.is-visible {
  opacity: 0.96;
  transform: translate(-50%, -100%) translateY(-6px) scale(1);
}

/* =====================================================
   GUIDE BUTTON & INSTRUCTION MODAL
===================================================== */
.guide-btn {
  position: absolute;
  top: 4vh;
  left: 4vw;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 10px var(--shadow-soft);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.guide-btn:hover {
  transform: translateY(-2px);
  background: var(--paper-warm);
  box-shadow: 0 6px 14px var(--shadow-hard);
}
.guide-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 16, 0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.guide-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.guide-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 26px;
  width: min(440px, 92vw);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-image: 
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0),
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.guide-modal.is-open .guide-card {
  transform: translateY(0) scale(1);
}
.guide-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 8px;
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.guide-step-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.guide-step-text strong {
  color: var(--ink);
  display: inline-block;
  margin-right: 4px;
}
.guide-close {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-top: 24px;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(47,111,98,0.25);
}
.guide-close:hover {
  background: #25584e;
  transform: translateY(-1px);
}

/* =====================================================
   PROJECTS SHOWCASE (LAPTOP PANEL)
===================================================== */
.projects-control-bar {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-search-wrapper {
  position: relative;
  width: 100%;
}

.project-search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.project-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.project-search-input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 111, 98, 0.12);
}

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tab {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-tab:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.project-tab.active {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(47, 111, 98, 0.25);
}

.project-tab .tab-count {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 6px;
  border-radius: 10px;
  color: inherit;
}

.project-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--copper);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.project-card-compact {
  cursor: pointer;
  padding: 16px 18px;
}

.project-card-media {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover .project-card-media {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card-img {
  transition: transform 0.35s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.03);
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-explore-project {
  background: var(--teal);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(47, 111, 98, 0.2);
}

.btn-explore-project:hover {
  background: #23554b;
  transform: translateX(2px);
  box-shadow: 0 4px 10px rgba(47, 111, 98, 0.3);
}

.btn-github-link {
  padding: 5px 11px;
  font-size: 11px;
  border-radius: 14px;
  background: #24292e;
  color: #ffffff;
  border: 1px solid #1b1f23;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.btn-github-link:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.btn-live-link {
  padding: 5px 11px;
  font-size: 11px;
  border-radius: 14px;
  background: rgba(47, 111, 98, 0.12);
  color: var(--teal);
  border: 1px solid rgba(47, 111, 98, 0.3);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 3px rgba(47, 111, 98, 0.1);
  flex-shrink: 0;
}

.btn-live-link:hover {
  background: var(--teal);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(47, 111, 98, 0.25);
}

.btn-rescan-github {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-rescan-github:hover {
  background: #24292e;
  color: #ffffff;
  border-color: #24292e;
}

.btn-rescan-github.scanning {
  pointer-events: none;
  opacity: 0.7;
}

.btn-rescan-github.scanning svg {
  animation: spinAround 1s linear infinite;
}

@keyframes spinAround {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.project-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.project-subtitle {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--copper-deep);
  font-weight: 500;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-featured { background: rgba(201, 124, 61, 0.12); color: var(--copper); border: 1px solid rgba(201, 124, 61, 0.25); }
.badge-robotics { background: rgba(47, 111, 98, 0.12); color: var(--teal); border: 1px solid rgba(47, 111, 98, 0.25); }
.badge-award { background: rgba(234, 179, 8, 0.15); color: #b45309; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-web { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.25); }
.badge-iot { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-agri { background: rgba(34, 197, 94, 0.12); color: #15803d; border: 1px solid rgba(34, 197, 94, 0.25); }
.badge-ai { background: rgba(168, 85, 247, 0.12); color: #6b21a8; border: 1px solid rgba(168, 85, 247, 0.25); }
.badge-saas { background: rgba(99, 102, 241, 0.12); color: #4338ca; border: 1px solid rgba(99, 102, 241, 0.25); }
.badge-pos { background: rgba(244, 63, 94, 0.12); color: #be123c; border: 1px solid rgba(244, 63, 94, 0.25); }
.badge-culture { background: rgba(217, 119, 6, 0.12); color: #92400e; border: 1px solid rgba(217, 119, 6, 0.25); }
.badge-edtech { background: rgba(14, 165, 233, 0.12); color: #0369a1; border: 1px solid rgba(14, 165, 233, 0.25); }
.badge-hotel { background: rgba(236, 72, 153, 0.12); color: #be185d; border: 1px solid rgba(236, 72, 153, 0.25); }

.project-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 8px 0 12px;
}

.project-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 10px;
  margin-bottom: 6px;
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.feature-chip {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: rgba(47, 111, 98, 0.08);
  color: var(--teal);
  border: 1px solid rgba(47, 111, 98, 0.18);
  padding: 2px 8px;
  border-radius: 14px;
  font-weight: 500;
}

/* =====================================================
   RESPONSIVE MOBILE & TABLET STYLES FOR PROJECTS & PANEL
===================================================== */
@media (max-width: 768px) {
  .panel {
    width: 100vw;
    max-width: 100%;
    padding: 36px 24px 40px;
    border-radius: 16px 16px 0 0;
    transform: translateY(40px);
  }

  .panel-overlay.is-open .panel {
    transform: translateY(0);
  }

  .panel-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.08);
  }

  .projects-control-bar {
    margin-bottom: 16px;
  }

  .project-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 24px 14px 32px;
  }

  .panel-eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .panel-title {
    font-size: 22px;
    margin-bottom: 14px;
    padding-right: 40px; /* Leave space for panel close button */
  }

  .projects-control-bar {
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  .project-search-input {
    font-size: 13.5px;
    padding: 9px 12px 9px 34px;
  }

  /* Horizontal swipeable filter tabs on narrow screens */
  .project-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: -4px;
    scrollbar-width: none;
  }

  .project-tabs::-webkit-scrollbar {
    display: none;
  }

  .project-tab {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 10px;
  }

  .project-card {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-title {
    font-size: 15px;
  }

  .project-subtitle {
    font-size: 11px;
  }

  .project-badge {
    align-self: flex-start;
    font-size: 9px;
    padding: 2px 7px;
  }

  .project-desc {
    font-size: 12.5px;
    line-height: 1.5;
    margin: 6px 0 10px;
  }

  .chips-grid, .tech-tags {
    gap: 4px;
  }

  .feature-chip {
    font-size: 10.5px;
    padding: 2px 6px;
    max-width: 100%;
    word-break: break-word;
  }

  .tech-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* =====================================================
   CUSTOM TACTILE SCROLLBAR & SELECTION
===================================================== */
::selection {
  background: var(--copper);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(47, 111, 98, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* Tactile Object Interaction Affordance */
.desk-object[data-opens] {
  cursor: pointer;
}
.desk-object[data-opens]:active {
  transform: translate(-50%,-50%) rotate(var(--rot,0deg)) scale(0.97);
}
.desk-object[data-opens]::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 10px;
  border: 1px dashed rgba(199, 161, 90, 0);
  pointer-events: none;
  transition: border-color 0.25s ease;
}
.desk-object[data-opens]:hover::after {
  border-color: rgba(199, 161, 90, 0.45);
}

/* Binder clip on paper panel */
.panel::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 36px;
  width: 44px;
  height: 10px;
  background: linear-gradient(180deg, var(--brass), #9a7232);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  z-index: 5;
}

/* Accessible & SEO crawler fallback utility */
.sr-only {
  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-width: 0 !important;
}

/* =====================================================
   VANITY FOG MIRROR (Breath on Glass by @strawluck)
===================================================== */
.mirror-obj {
  aspect-ratio: 1/1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.mirror-rim {
  width: 84%;
  aspect-ratio: 1/1.2;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4edf0 0%, #7d8e93 35%, #cbd6d9 65%, #566468 100%);
  padding: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.3) inset, 0 0 12px rgba(242,166,90,0.15);
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mirror-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a4c2cb, #3c5d64 80%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}
.mirror-glare {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 40%;
  height: 25%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 75%);
  transform: rotate(-25deg);
  pointer-events: none;
}
.mirror-fog-mist {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(245,248,248,0.75) 0%, rgba(220,235,238,0.45) 60%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
  animation: mirrorMistPulse 6s ease-in-out infinite alternate;
}
@keyframes mirrorMistPulse {
  0% { opacity: 0.65; transform: scale(0.98); }
  100% { opacity: 0.9; transform: scale(1.02); }
}
.mirror-wipe-line {
  position: absolute;
  left: 28%;
  top: 38%;
  width: 44%;
  height: 3px;
  background: rgba(40, 75, 82, 0.65);
  border-radius: 2px;
  transform: rotate(-15deg);
  box-shadow: 0 0 4px rgba(255,255,255,0.4);
}
.mirror-stem {
  width: 12px;
  height: 22px;
  margin-top: -3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #6c7c80, #c8d5d8 50%, #4f5d61);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.desk-object[data-object="mirror"]:hover .mirror-rim {
  box-shadow: 0 10px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.5) inset, 0 0 20px rgba(255,207,139,0.35);
}


