:root {
  --cream: #FAF6F0;
  --cream-dark: #F0E8DC;
  --paper-white: #F8F4EE;
  --paper-shadow: #E8DDD0;
  --ink: #2C2420;
  --ink-light: #5C524A;
  --ink-faint: #9B8F85;
  --terracotta: #C4653A;
  --terracotta-soft: #D4783C;
  --sage: #6B7F5E;
  --sage-light: #A8C098;
  --highlight: rgba(212, 120, 60, 0.12);
  --border: rgba(44, 36, 32, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; font-family: 'Lora', Georgia, serif; }
body { background: #1a1510; }
::selection { background: var(--highlight); color: var(--ink); }

/* ==========================================
   DESK SURFACE — rich wood with warm light
   ========================================== */
.desk-scene {
  width: 100vw; height: 100vh;
  position: relative; overflow: hidden;
  background:
    /* Fine wood grain */
    repeating-linear-gradient(93deg, transparent, transparent 18px, rgba(90,65,35,0.04) 18px, rgba(90,65,35,0.04) 19px),
    repeating-linear-gradient(94deg, transparent, transparent 45px, rgba(70,50,28,0.03) 45px, rgba(70,50,28,0.03) 46.5px),
    repeating-linear-gradient(91deg, transparent, transparent 90px, rgba(60,42,22,0.05) 90px, rgba(60,42,22,0.05) 92px),
    /* Wider planks */
    repeating-linear-gradient(92deg, transparent, transparent 200px, rgba(50,35,18,0.06) 200px, rgba(50,35,18,0.06) 203px),
    /* Wood knot hints */
    radial-gradient(ellipse 30px 20px at 25% 65%, rgba(80,55,30,0.08) 0%, transparent 100%),
    radial-gradient(ellipse 25px 15px at 72% 30%, rgba(80,55,30,0.06) 0%, transparent 100%),
    /* Base wood color */
    linear-gradient(180deg, #B89868 0%, #A8875A 40%, #9A7A50 100%);
}

/* Warm lamp light — centered pool */
.desk-scene::before {
  content: '';
  position: absolute;
  top: -10%; left: 10%;
  width: 70%; height: 85%;
  background: radial-gradient(ellipse at 45% 45%,
    rgba(255, 225, 170, 0.22) 0%,
    rgba(255, 210, 150, 0.12) 30%,
    rgba(255, 195, 130, 0.05) 55%,
    transparent 75%
  );
  pointer-events: none; z-index: 1;
}

/* Vignette — deeper, warmer */
.desk-scene::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 38% 42%, transparent 35%, rgba(20, 14, 8, 0.5) 100%);
  pointer-events: none; z-index: 2;
}

/* ==========================================
   NAMEPLATE — brass
   ========================================== */
.desk-nameplate {
  position: absolute;
  bottom: 2rem; left: 2.5rem;
  z-index: 10;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 168, 130, 0.6);
  background: linear-gradient(180deg, rgba(196,168,130,0.12) 0%, rgba(196,168,130,0.06) 100%);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(196,168,130,0.15);
  border-radius: 2px;
}

.desk-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 10;
  font-family: 'Caveat', cursive; font-size: 1rem;
  color: rgba(196, 168, 130, 0.55);
  transition: opacity 2s ease;
}

.desk-hint.hidden { opacity: 0; }

/* ==========================================
   DESK ITEMS — shared realistic shadow system
   ========================================== */
.desk-item {
  position: absolute; z-index: 5;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25,0.1,0.25,1),
              filter 0.35s ease,
              box-shadow 0.35s ease;
}
.desk-item:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  z-index: 8;
}

.desk-item:hover {
  z-index: 8;
}

.desk-item-label {
  position: absolute;
  bottom: -30px; left: 50%; transform: translateX(-50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 168, 130, 0.6);
  background: linear-gradient(180deg, rgba(196,168,130,0.12) 0%, rgba(196,168,130,0.06) 100%);
  border: 1px solid rgba(196,168,130,0.15);
  border-radius: 2px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes brassTagGlow {
  0%   { color: rgba(196, 168, 130, 0.6); }
  30%  { color: rgba(196, 168, 130, 1.0); }
  100% { color: rgba(196, 168, 130, 0.6); }
}
.desk-item-label.brass-glow {
  animation: brassTagGlow 0.8s ease-out;
}

.desk-item.visited::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--terracotta-soft);
  border-radius: 50%; opacity: 0.5;
}

/* ==========================================
   NOTEBOOK — writing zone (upper-left)
   Realistic leather with depth
   ========================================== */
.notebook {
  bottom: 26%; left: 6%;
  width: 150px;
  transform: rotate(-20deg);
}

.notebook:hover {
  transform: rotate(-20deg) translateY(-5px) scale(1.03);
}

.notebook-body {
  width: 150px; height: 200px;
  background: linear-gradient(160deg, #3A302A 0%, #2A2220 30%, #201A16 70%, #1A1512 100%);
  border-radius: 4px 10px 10px 4px;
  position: relative; overflow: hidden;
  /* Multi-layer realistic shadow */
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.12),
    0 16px 40px rgba(20,14,8,0.2),
    /* Contact shadow */
    0 1px 3px rgba(0,0,0,0.3);
}

/* Leather grain texture */
.notebook-body::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(255,255,255,0.005) 4px, rgba(255,255,255,0.005) 5px);
  border-radius: 4px 10px 10px 4px;
}

/* Embossed title on notebook */
.notebook-title {
  position: absolute;
  top: 40%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196,168,130,0.25);
  text-align: center;
}

.notebook-spine {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.08) 40%, transparent);
  border-radius: 4px 0 0 4px;
}

.notebook-band {
  position: absolute; right: -6px; top: 46%;
  width: 12px; height: 3px;
  background: var(--terracotta-soft); border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.notebook-pages {
  position: absolute; right: 3px; top: 6px; bottom: 6px;
  width: 5px;
  background: repeating-linear-gradient(180deg,
    #F0E8DC 0px, #F0E8DC 1.5px,
    #E0D4C4 1.5px, #E0D4C4 2px
  );
  border-radius: 0 2px 2px 0;
  box-shadow: inset 1px 0 2px rgba(0,0,0,0.1);
}

/* ==========================================
   PEN — brass/gold, lying near notebook
   ========================================== */
.pen {
  bottom: 18%; left: 16%;
  width: 170px; height: 14px;
  transform: rotate(-15deg);
  z-index: 6; pointer-events: none;
  filter: drop-shadow(2px 3px 5px rgba(20,14,8,0.35));
}

.pen-body {
  width: 125px; height: 8px;
  background: linear-gradient(180deg, #C4A868 0%, #A8884C 30%, #8C7240 100%);
  border-radius: 2px;
  position: absolute; right: 0; top: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
}

.pen-clip {
  position: absolute; right: 10px; top: 0;
  width: 3px; height: 14px;
  background: linear-gradient(180deg, #D4B878 0%, #B8A060 100%);
  border-radius: 1px;
  box-shadow: 1px 0 1px rgba(0,0,0,0.1);
}

.pen-tip {
  position: absolute; left: 0; top: 4px;
  width: 45px; height: 6px;
  background: linear-gradient(90deg, #E0D0B8, #C4A868 25%, #A8884C 25%);
  clip-path: polygon(0% 50%, 22% 0%, 100% 0%, 100% 100%, 22% 100%);
}

.pen-ring {
  position: absolute; right: 125px; top: 2px;
  width: 6px; height: 10px;
  background: linear-gradient(180deg, #D4B878, #B8A060);
  border-radius: 1px;
}

/* ==========================================
   COFFEE CUP — between zones
   ========================================== */
.coffee {
  top: 44%; left: 61%;
  width: 114px; height: 114px; z-index: 6;
}

.coffee:hover { transform: scale(1.04); }

.coffee-ring-stain {
  position: absolute;
  top: -24px; left: -24px;
  width: 162px; height: 162px;
  border-radius: 50%;
  background: radial-gradient(circle,
    transparent 38px,
    rgba(100,70,40,0.04) 39px,
    rgba(100,70,40,0.04) 42px,
    transparent 43px
  );
  pointer-events: none;
}

.coffee-saucer {
  position: absolute;
  top: -12px; left: -12px;
  width: 138px; height: 138px;
  background: radial-gradient(circle at 42% 42%,
    #F0E8DC 0%, #E0D4C4 60%, #D0C4B4 100%
  );
  border-radius: 50%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.12),
    0 6px 16px rgba(20,14,8,0.15),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.coffee-cup-body {
  position: absolute;
  top: 9px; left: 9px;
  width: 96px; height: 96px;
  background: radial-gradient(circle at 42% 42%,
    #F5EDE3 0%, #E8DDD0 50%, #DDD0C0 100%
  );
  border-radius: 50%;
  border: 2px solid #D4C8B8;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.05),
    0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

.coffee-liquid {
  position: absolute;
  top: 9px; left: 9px; right: 9px; bottom: 9px;
  background: radial-gradient(circle at 38% 38%,
    #8A6438 0%, #6A4828 40%, #523820 70%, #4A3220 100%
  );
  border-radius: 50%;
}

.coffee-shine {
  position: absolute; top: 16px; left: 18px;
  width: 21px; height: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%; transform: rotate(-25deg);
}

.coffee-shine-2 {
  position: absolute; top: 24px; left: 30px;
  width: 9px; height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%; transform: rotate(-20deg);
}

.coffee-handle {
  position: absolute; right: -9px; top: 33px;
  width: 21px; height: 33px;
  border: 3px solid #D4C8B8;
  border-left: none;
  border-radius: 0 9px 9px 0;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Coffee steam */
.coffee-steam {
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 50px;
  pointer-events: none;
  z-index: 7;
}
.coffee-steam .steam-wisp {
  position: absolute;
  bottom: 0;
  width: 6px;
  background: rgba(255,245,230,0.6);
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0;
  animation-duration: 4.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
}
.coffee-steam .steam-wisp:nth-child(1) {
  left: 8px;
  animation-name: steamLeft;
  animation-delay: 0s;
}
.coffee-steam .steam-wisp:nth-child(2) {
  left: 17px;
  animation-name: steamCenter;
  animation-delay: 1.1s;
}
.coffee-steam .steam-wisp:nth-child(3) {
  left: 26px;
  animation-name: steamRight;
  animation-delay: 0.5s;
}
@keyframes steamLeft {
  0%   { height: 0; opacity: 0; transform: translateX(0); }
  10%  { opacity: 0.35; }
  35%  { height: 38px; opacity: 0.2; transform: translateX(-6px); }
  65%  { height: 50px; opacity: 0; transform: translateX(-10px) translateY(-18px); }
  65.1%, 100% { height: 0; opacity: 0; transform: translateX(0); }
}
@keyframes steamCenter {
  0%   { height: 0; opacity: 0; transform: translateX(0); }
  10%  { opacity: 0.4; }
  35%  { height: 42px; opacity: 0.2; transform: translateX(1px); }
  65%  { height: 55px; opacity: 0; transform: translateX(-2px) translateY(-22px); }
  65.1%, 100% { height: 0; opacity: 0; transform: translateX(0); }
}
@keyframes steamRight {
  0%   { height: 0; opacity: 0; transform: translateX(0); }
  10%  { opacity: 0.3; }
  35%  { height: 35px; opacity: 0.18; transform: translateX(5px); }
  65%  { height: 48px; opacity: 0; transform: translateX(8px) translateY(-16px); }
  65.1%, 100% { height: 0; opacity: 0; transform: translateX(0); }
}

/* ==========================================
   LAPTOP — slightly cracked open, screen glow
   ========================================== */
.laptop {
  top: 46%; left: 23%;
  width: 504px;
  transform: rotate(0deg);
}

.laptop:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.01);
}

.laptop-lid {
  width: 504px; height: 336px;
  background: linear-gradient(155deg, #D0CBC5 0%, #C4BEB8 20%, #BAB4AE 50%, #AEA8A2 100%);
  border-radius: 12px;
  position: relative;
  transform-origin: bottom center;
  transform: perspective(800px) rotateX(2deg);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.15),
    0 3px 6px rgba(0,0,0,0.1),
    0 8px 20px rgba(20,14,8,0.15),
    0 14px 35px rgba(20,14,8,0.12),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* Brushed aluminum texture */
.laptop-lid::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(90deg,
    transparent, transparent 1px,
    rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px
  );
  border-radius: 12px;
}

/* Screen glow cast upward onto lid */
.laptop-lid::after {
  content: '';
  position: absolute; bottom: 0; left: 10%; right: 10%;
  height: 40px;
  background: linear-gradient(to top, rgba(255,195,120,0.06) 0%, transparent 100%);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}

/* Apple logo */
.laptop-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 48px;
  opacity: 0.2;
}

.laptop-logo svg {
  width: 100%; height: 100%;
  fill: rgba(60, 55, 50, 0.5);
}

/* Small stickers */
.laptop-sticker {
  position: absolute;
  font-size: 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.sticker-1 {
  bottom: 28px; right: 36px;
  background: rgba(107, 127, 94, 0.2);
  color: rgba(107, 127, 94, 0.8);
  border: 1px solid rgba(107, 127, 94, 0.15);
}

.sticker-2 {
  bottom: 28px; right: 100px;
  background: rgba(196, 101, 58, 0.15);
  color: rgba(196, 101, 58, 0.7);
  border: 1px solid rgba(196, 101, 58, 0.12);
}

/* Screen glow strip — visible edge of the screen */
.laptop-screen-glow {
  width: 504px; height: 7px;
  background: linear-gradient(90deg,
    rgba(255,210,140,0.1) 0%,
    rgba(255,195,120,0.6) 20%,
    rgba(255,210,140,0.8) 50%,
    rgba(255,195,120,0.6) 80%,
    rgba(255,210,140,0.1) 100%
  );
  border-radius: 1px;
  box-shadow:
    0 0 15px rgba(255,195,120,0.3),
    0 0 40px rgba(255,195,120,0.15),
    0 -8px 25px rgba(255,195,120,0.1);
  animation: screenBreathe 7s ease-in-out infinite;
}

@keyframes screenBreathe {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255,195,120,0.3),
      0 0 40px rgba(255,195,120,0.15),
      0 -8px 25px rgba(255,195,120,0.1);
  }
  50% {
    box-shadow:
      0 0 15px rgba(255,195,120,0.36),
      0 0 40px rgba(255,195,120,0.18),
      0 -8px 25px rgba(255,195,120,0.12);
  }
}

/* Hinge line at bottom */
.laptop-hinge-line {
  width: 504px; height: 3px;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
  border-radius: 0 0 2px 2px;
}

/* ==========================================
   POLAROIDS — memory zone (upper-right)
   ========================================== */
.polaroid {
  padding: 8px 8px 32px;
  background: linear-gradient(145deg, #F8F4EE 0%, #F0EAE0 100%);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.1),
    0 10px 25px rgba(20,14,8,0.12);
}

.polaroid-inner {
  width: 100%; aspect-ratio: 1;
  overflow: hidden;
}

/* Mountains polaroid — topographic hint */
.polaroid-mountains {
  background:
    repeating-linear-gradient(160deg,
      transparent, transparent 8px,
      rgba(107,127,94,0.06) 8px, rgba(107,127,94,0.06) 9px
    ),
    repeating-linear-gradient(170deg,
      transparent, transparent 14px,
      rgba(107,127,94,0.04) 14px, rgba(107,127,94,0.04) 15px
    ),
    linear-gradient(180deg, #DED8CE 0%, #C8C0B4 100%);
}

/* Cities polaroid — grid hint */
.polaroid-cities {
  background:
    repeating-linear-gradient(0deg,
      transparent, transparent 12px,
      rgba(44,36,32,0.04) 12px, rgba(44,36,32,0.04) 13px
    ),
    repeating-linear-gradient(90deg,
      transparent, transparent 12px,
      rgba(44,36,32,0.04) 12px, rgba(44,36,32,0.04) 13px
    ),
    linear-gradient(135deg, #DED8CE 0%, #C8C0B4 100%);
}

.polaroid-caption {
  position: absolute; bottom: 8px; left: 12px;
  font-family: 'Caveat', cursive; font-size: 0.7rem;
  color: var(--ink-faint);
}

.photo-1 {
  top: 5%; right: 14%; width: 130px;
  transform: rotate(5deg);
}
.photo-1:hover { transform: rotate(5deg) translateY(-5px) scale(1.03); }

.photo-2 {
  top: 12%; right: 28%; width: 120px;
  transform: rotate(-4deg); z-index: 4;
}
.photo-2:hover { transform: rotate(-4deg) translateY(-5px) scale(1.03); }

/* ==========================================
   POSTCARD — overlapping with photos
   ========================================== */
.postcard-item {
  top: 28%; right: 8%;
  width: 240px; height: 158px;
  background: linear-gradient(155deg, #F8F4EE 0%, #F0EAE0 50%, #E8E0D4 100%);
  border-radius: 3px;
  transform: rotate(-3deg);
  padding: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.1),
    0 3px 8px rgba(0,0,0,0.08),
    0 8px 20px rgba(20,14,8,0.1);
}

.postcard-item:hover { transform: rotate(-3deg) translateY(-4px) scale(1.02); }

/* Postage stamp area */
.postcard-stamp {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 42px;
  border: 1.5px dashed rgba(196,101,58,0.2);
  border-radius: 1px;
}

.postcard-stamp-inner {
  position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px;
  background: rgba(196,101,58,0.06);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive; font-size: 0.5rem;
  color: rgba(196,101,58,0.3);
}

.postcard-title {
  font-family: 'Caveat', cursive; font-size: 1.05rem;
  color: var(--ink); margin-bottom: 5px;
}

.postcard-body {
  font-family: 'Caveat', cursive; font-size: 0.8rem;
  color: var(--ink-faint); line-height: 1.45; max-width: 155px;
}

.postcard-divider {
  position: absolute; top: 10px; bottom: 10px; right: 72px;
  width: 1px; background: rgba(44,36,32,0.08);
}

.postcard-lines {
  position: absolute; right: 14px; bottom: 35px; width: 46px;
}

.postcard-lines div {
  height: 1px; background: rgba(44,36,32,0.1); margin-bottom: 11px;
}

/* ==========================================
   SKETCHBOOK — near laptop, working zone
   ========================================== */
.sketchbook {
  top: 8%; left: 6%;
  width: 330px; transform: rotate(4deg);
}
.sketchbook.breathing {
  animation: sketchBreathe 7s ease-in-out infinite;
}
@keyframes sketchBreathe {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-2.5px); }
}

.sketchbook:hover { transform: rotate(4deg) translateY(-4px) scale(1.03); }

.sketchbook-body {
  width: 330px; height: 250px;
  background: linear-gradient(170deg, #FAF6F0 0%, #F0E8DC 100%);
  border-radius: 2px; position: relative; overflow: hidden;
  border: 1px solid rgba(44,36,32,0.05);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.1),
    0 3px 8px rgba(0,0,0,0.08),
    0 8px 18px rgba(20,14,8,0.1);
}

/* Red margin line */
.sketchbook-body::before {
  content: '';
  position: absolute; top: 0; left: 20px;
  width: 1px; height: 100%;
  background: rgba(196,80,50,0.12);
}

/* Faint ruled lines */
.sketchbook-body::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(180deg,
    transparent, transparent 14px,
    rgba(44,36,32,0.03) 14px, rgba(44,36,32,0.03) 15px
  );
}

.sketch-lines {
  position: absolute; bottom: 22px; left: 28px; right: 14px;
  height: 52px; display: flex; align-items: flex-end; gap: 2.5px;
  z-index: 1;
}

.sketch-line {
  background: rgba(44,36,32,0.1);
  border-radius: 1px 1px 0 0; flex-shrink: 0;
}

.sketch-caption {
  position: absolute; bottom: 6px; left: 28px;
  font-family: 'Caveat', cursive; font-size: 0.6rem;
  color: rgba(44,36,32,0.2); z-index: 1;
}

/* Sketchbook flippable pages */
.sketchbook-body {
  perspective: 800px;
}

.sketchbook-page {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  border-radius: 2px;
  backface-visibility: hidden;
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.4s ease;
}

/* States for page flip */
.sketchbook-page {
  opacity: 0;
  transform: rotateY(-90deg);
  pointer-events: none;
}

.sketchbook-page-active {
  opacity: 1;
  transform: rotateY(0deg);
  pointer-events: all;
  z-index: 2;
}

.sketchbook-page-exiting {
  opacity: 1;
  transform: rotateY(60deg);
  z-index: 3;
}

/* Page corner fold - appears during flip */
.page-corner-fold {
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  z-index: 4;
  transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  pointer-events: none;
}

.page-corner-fold::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0;
  border-color: transparent;
  transition: border-width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Idle corner peek on hover - inviting */
.sketchbook:hover .sketchbook-page-active .page-corner-fold::before {
  border-width: 0 0 22px 22px;
  border-color: transparent transparent rgba(196,168,130,0.5) transparent;
}

.sketchbook:hover .sketchbook-page-active .page-corner-fold::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent #F0E8DC transparent;
}

/* During flip - larger fold */
.sketchbook-page-exiting .page-corner-fold::before {
  border-width: 0 0 50px 50px !important;
  border-color: transparent transparent rgba(160,140,115,0.6) transparent !important;
}

.sketchbook-page-exiting .page-corner-fold::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important; right: 0 !important;
  width: 0 !important; height: 0 !important;
  border-style: solid !important;
  border-width: 0 0 46px 46px !important;
  border-color: transparent transparent #E8DDD0 transparent !important;
}

/* Page shadow during flip */
.sketchbook-page-exiting::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.sketchbook-flip-hint {
  position: absolute;
  bottom: 8px; right: 8px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(248,244,238,0.75);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.sketchbook:hover .sketchbook-flip-hint {
  opacity: 1;
}

.sketchbook-dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sketchbook:hover .sketchbook-dots {
  opacity: 1;
}

.sketch-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(44,36,32,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.sketch-dot-active {
  background: var(--terracotta-soft);
  transform: scale(1.3);
}

.sketchbook-spiral {
  position: absolute; top: -3px; left: 6px;
  display: flex; gap: 10px;
}

.spiral-ring {
  width: 6px; height: 6px;
  border: 1.5px solid #A0A0A0; border-radius: 50%;
  background: #B8956A;
  box-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

/* ==========================================
   INTRO OVERLAY
   ========================================== */
.intro-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1),
              transform 1s cubic-bezier(0.4,0,0.2,1),
              visibility 1s ease;
}

.intro-overlay.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(1.15);
}

.intro-name {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem; font-weight: 300;
  color: var(--ink); margin-bottom: 0.5rem;
  opacity: 0; animation: introFade 1s ease 0.3s forwards;
}

.intro-sub {
  font-family: 'Caveat', cursive; font-size: 1.15rem;
  color: var(--ink-faint);
  opacity: 0; animation: introFade 1s ease 0.8s forwards;
}

.intro-enter {
  margin-top: 3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terracotta);
  cursor: pointer; border: 1px solid var(--terracotta);
  background: none; padding: 0.8rem 2rem;
  border-radius: 100px;
  opacity: 0; animation: introFade 1s ease 1.5s forwards;
  transition: background 0.3s, color 0.3s;
}

.intro-enter:hover { background: var(--terracotta); color: var(--cream); }

@keyframes introFade { to { opacity: 1; } }

/* Desk items hidden until entrance, then stagger in.
   Uses `translate` (separate from `transform`) to avoid overriding rotations. */
.desk-item, .pen, .desk-nameplate, .desk-hint {
  opacity: 0;
}
.desk-item.entered, .pen.entered, .desk-nameplate.entered, .desk-hint.entered {
  animation: deskLandOpacity 0.7s cubic-bezier(0.16,1,0.3,1) forwards,
             deskLandSlide 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes deskLandOpacity {
  0%   { opacity: 0; }
  40%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes deskLandSlide {
  0%   { translate: 0 -28px; scale: 0.93; }
  60%  { translate: 0 3px; scale: 1.01; }
  100% { scale: 1; }
}

@keyframes coffeePulse {
  0%   { box-shadow: 0 0 0 0 rgba(196,101,58,0.35); }
  50%  { box-shadow: 0 0 0 14px rgba(196,101,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(196,101,58,0); }
}
.coffee.nudge .coffee-cup-body {
  animation: coffeePulse 1.6s ease-out 1;
}

/* ==========================================
   PANELS — card + notebook fullscreen
   ========================================== */
.panel-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,21,16,0.55);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}

.panel-backdrop.active { opacity: 1; pointer-events: all; }

.panel-card {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -44%) scale(0.97);
  width: 90%; max-width: 640px; max-height: 85vh;
  background: var(--cream);
  border-radius: 16px; z-index: 101;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1),
              transform 0.45s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(26,21,16,0.35), 0 8px 24px rgba(26,21,16,0.15);
}

.panel-card.active { opacity: 1; pointer-events: all; transform: translate(-50%,-50%) scale(1); }
.panel-card.closing {
  opacity: 0; pointer-events: none;
  transform: translate(-50%,-46%) scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1),
              transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.panel-card::after {
  content: '';
  position: sticky;
  bottom: 0; left: 0;
  display: block;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, var(--cream) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 4;
}
.panel-card.scrolled-bottom::after { opacity: 0; }

.panel-close-btn {
  position: sticky; top: 0; float: right;
  margin: 1.2rem 1.2rem 0 0;
  width: 36px; height: 36px;
  border: none; background: var(--cream);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.3s;
}

.panel-close-btn:hover { background: var(--paper-shadow); }
.panel-close-btn svg { width: 14px; height: 14px; stroke: var(--ink-faint); stroke-width: 2; fill: none; }

.panel-inner { padding: 2.5rem 2.5rem 3rem; }

.panel-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.8rem;
}

.panel-title {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem; font-weight: 400;
  color: var(--ink); margin-bottom: 1.5rem; line-height: 1.3;
}

.panel-body {
  font-family: 'Lora', serif;
  font-size: 0.95rem; line-height: 1.85; color: var(--ink-light);
}

.panel-body p { margin-bottom: 1.2rem; }
.panel-body em { color: var(--ink); }

.panel-note {
  font-family: 'Caveat', cursive;
  font-size: 1rem; color: var(--sage);
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* About panel — redesigned layout */
.about-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}
.about-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: 0 3px 12px rgba(44,36,32,0.1);
}
.about-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cream-dark), var(--paper-shadow));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--terracotta-soft);
}
.about-intro {
  flex: 1;
}
.about-intro p {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-light);
  margin: 0;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.about-fact-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.about-fact-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--ink-light);
  line-height: 1.45;
}
.about-fact-text strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.about-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--terracotta);
  border-radius: 100px;
  transition: background 0.3s, color 0.3s;
}
.about-links a:hover {
  background: var(--terracotta);
  color: var(--cream);
}

.mountains-hero {
  width: 100%; border-radius: 10px;
  margin-bottom: 1.2rem;
  height: auto;
}

/* Community card — "Before all of that" rows */
.community-before-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.community-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.community-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.community-row-img {
  width: 72px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(44,36,32,0.1);
}
.community-row-text {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-light);
}
.community-row-text strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.trail-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
.trail-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--sage);
  color: var(--sage);
  letter-spacing: 0.02em;
}

/* Interview — hero stats row */
.interview-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1.8rem 0 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.interview-stat {
  flex: 1;
  text-align: center;
}
.interview-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1.1;
}
.interview-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}

/* Interview — section subheadings */
.interview-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin: 2rem 0 0.8rem;
}

/* Interview insight callout */
.interview-insight {
  margin: 1.8rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--terracotta-soft);
  background: linear-gradient(135deg, rgba(212,120,60,0.04), rgba(212,120,60,0.01));
  border-radius: 0 8px 8px 0;
}
.interview-insight p {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

/* Interview — result highlight */
.interview-result {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--sage);
  line-height: 1.5;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

/* Journey timeline — description above each photo */
.journey-line {
  position: relative;
  margin-top: 2.5rem;
  padding: 1rem 0 2rem;
}
.journey-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--terracotta-soft), var(--border), var(--sage));
  transform: translateX(-50%);
}
.journey-stop {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.75rem;
  gap: 0;
}
.journey-stop:last-child { margin-bottom: 0; }
.journey-dot {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  border: 2px solid var(--cream);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(212,120,60,0.15);
}
.journey-left {
  flex-direction: column;
  align-items: flex-end;
  padding-right: calc(50% + 1.5rem);
}
.journey-left .journey-note,
.journey-left .journey-caption {
  text-align: right;
  width: 100%;
}
.journey-left .journey-note {
  display: block;
  order: 1;
}
.journey-right {
  flex-direction: column;
  align-items: flex-start;
  padding-left: calc(50% + 1.5rem);
}
.journey-right .journey-note,
.journey-right .journey-caption {
  text-align: left;
  width: 100%;
}
.journey-right .journey-note {
  display: block;
  order: 1;
}
.journey-photo-wrap {
  max-width: 200px;
  position: relative;
  order: 3;
  width: 100%;
}
.journey-photo {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(44,36,32,0.14), 0 1px 4px rgba(44,36,32,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journey-photo-wrap:hover .journey-photo {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(44,36,32,0.18);
}
/* Note above caption, caption above photo — all full width, stacked vertically */
.journey-caption {
  order: 2;
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sage);
  line-height: 1.45;
  margin: 0 0 0.5rem;
  width: 100%;
}
.journey-note {
  order: 1;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin: 0 0 0.2rem;
  width: 100%;
}

/* Mobile: stack photos vertically, description above photo */
@media (max-width: 600px) {
  .journey-line::before { left: 16px; }
  .journey-dot { left: 16px; }
  .journey-left, .journey-right {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
    padding-right: 0;
  }
  .journey-left .journey-note,
  .journey-left .journey-caption,
  .journey-right .journey-note,
  .journey-right .journey-caption {
    text-align: left;
  }
  .journey-photo-wrap {
    max-width: 100%;
  }
  .journey-note { margin-bottom: 0.15rem; }
  .journey-caption { margin-bottom: 0.35rem; }
}
.adventure-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 1.5rem;
}
.adventure-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  cursor: default;
}
.adventure-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.adventure-item:hover img {
  transform: scale(1.08);
}
.adventure-item .adventure-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.8rem 0.5rem 0.4rem;
  background: linear-gradient(to top, rgba(26,21,16,0.75) 0%, transparent 100%);
  font-family: 'Caveat', cursive;
  font-size: 0.78rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  line-height: 1.3;
}
.adventure-item:hover .adventure-caption {
  opacity: 1;
}
@media (max-width: 480px) {
  .adventure-collage { gap: 2px; }
  .adventure-item .adventure-caption { opacity: 1; font-size: 0.65rem; padding: 1.2rem 0.3rem 0.25rem; }
}

.work-toggle {
  display: flex; gap: 0; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.work-toggle-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding: 0.6rem 1.2rem 0.7rem;
  cursor: pointer; transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.work-toggle-tab:hover { color: var(--ink-light); }
.work-toggle-tab.active {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
}

/* Flip card mechanic */
.flip-card { perspective: 900px; cursor: pointer; }
.flip-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card-front { position: relative; z-index: 2; }
.flip-card-back {
  transform: rotateY(180deg);
  position: absolute;
  top: 0; left: 0; width: 100%;
  z-index: 1;
}
.flip-card-back .exp-card,
.flip-card-back .project-card {
  cursor: pointer;
}
.flip-card-back .flip-back-content {
  font-family: 'Lora', serif;
  font-size: 0.82rem; line-height: 1.7;
  color: var(--ink-light);
}
.flip-card-back .flip-back-content p { margin-bottom: 0.8rem; }
.flip-card-back .flip-back-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.8rem;
}
.flip-hint {
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  color: var(--terracotta-soft);
  margin-top: 0.6rem;
  opacity: 0.85;
  animation: flipHintPulse 2.5s ease-in-out infinite;
}
@keyframes flipHintPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.45; }
}
.flip-back-close {
  font-family: 'Caveat', cursive;
  font-size: 0.8rem; color: var(--ink-faint);
  margin-top: 1rem; opacity: 0.7;
}

/* Experience cards */
.exp-card {
  background: var(--paper-white);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.exp-card + .exp-card { margin-top: 1rem; }
.exp-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--terracotta-soft);
  opacity: 0.4;
}
.exp-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.25rem; }
.exp-card-role {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem; font-weight: 500;
  color: var(--ink); line-height: 1.3;
}
.exp-card-dates {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); flex-shrink: 0; margin-left: 1rem;
  white-space: nowrap;
}
.exp-card-company {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--terracotta); margin-bottom: 0.6rem;
}
.exp-card-company span {
  color: var(--ink-faint); font-size: 0.65rem; margin-left: 0.3rem;
}
.exp-card-bullets {
  font-family: 'Lora', serif;
  font-size: 0.8rem; line-height: 1.65;
  color: var(--ink-light);
  padding-left: 0; list-style: none;
}
.exp-card-bullets li { margin-bottom: 0.35rem; padding-left: 1rem; position: relative; }
.exp-card-bullets li::before {
  content: '\00B7'; position: absolute; left: 0; color: var(--terracotta-soft);
  font-weight: 700;
}
.exp-card-loc {
  font-family: 'Caveat', cursive;
  font-size: 0.82rem; color: var(--sage);
  margin-top: 0.5rem;
}

/* Project cards */
.project-grid { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }

.project-card {
  background: var(--paper-white);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem;
  cursor: pointer; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--terracotta-soft);
  transition: height 0.3s ease;
}

.project-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(44,36,32,0.06); }
.project-card:hover::before { height: 100%; }

.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }

.project-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem; font-weight: 500;
  color: var(--ink); line-height: 1.3;
}

.project-card-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); flex-shrink: 0; margin-left: 1rem;
}

.project-card-desc {
  font-family: 'Lora', serif;
  font-size: 0.82rem; line-height: 1.6;
  color: var(--ink-light); margin-bottom: 0.7rem;
}

.project-card-tech { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tech-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.05em;
  color: var(--ink-faint);
  background: rgba(44,36,32,0.04);
  padding: 0.2rem 0.55rem; border-radius: 100px;
}

.project-card-impact {
  font-family: 'Caveat', cursive;
  font-size: 0.82rem; color: var(--sage);
  margin-top: 0.5rem;
}

/* ==========================================
   NOTEBOOK FULLSCREEN LETTER
   ========================================== */
.notebook-panel {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 102;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25,0.1,0.25,1);
}

.notebook-panel.active { opacity: 1; pointer-events: all; transform: scale(1); }

.notebook-panel::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212,120,60,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(107,127,94,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.notebook-close {
  position: fixed; top: 2rem; right: 2.5rem; z-index: 110;
  width: 42px; height: 42px;
  border: none; background: var(--cream);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.3s;
}

.notebook-close:hover { background: var(--paper-shadow); }
.notebook-close svg { width: 15px; height: 15px; stroke: var(--ink-faint); stroke-width: 2; fill: none; }

.notebook-back-label {
  position: fixed; top: 2.3rem; left: 2.5rem; z-index: 110;
  font-family: 'Caveat', cursive;
  font-size: 0.95rem; color: var(--ink-faint);
  cursor: pointer; transition: color 0.3s;
}

.notebook-back-label:hover { color: var(--terracotta); }

.letter-scroll {
  position: relative; z-index: 1;
  max-width: 660px; margin: 0 auto;
  padding: 7rem 3rem 6rem;
}

.letter-greeting {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem; color: var(--terracotta-soft);
  margin-bottom: 0.4rem;
  opacity: 0; transform: translateY(12px);
  animation: letterReveal 0.8s ease 0.3s forwards;
}

.letter-hero-title {
  font-family: 'Fraunces', serif;
  font-size: 2.3rem; font-weight: 300;
  line-height: 1.3; color: var(--ink);
  margin-bottom: 2.5rem;
  opacity: 0; transform: translateY(12px);
  animation: letterReveal 0.8s ease 0.5s forwards;
}

.letter-hero-title em { font-style: italic; font-weight: 400; color: var(--terracotta); }

@keyframes letterReveal { to { opacity: 1; transform: translateY(0); } }

.letter-divider {
  width: 36px; height: 1px;
  background: var(--terracotta-soft);
  margin-bottom: 2.5rem; opacity: 0.4;
}

.letter-p {
  font-family: 'Lora', serif;
  font-size: 1.02rem; line-height: 1.85;
  color: var(--ink-light); margin-bottom: 1.6rem;
  position: relative;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.letter-p.visible { opacity: 1; transform: translateY(0); }

.letter-p.short {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem; font-weight: 400;
  color: var(--ink); margin: 2rem 0;
}

.margin-note {
  position: absolute; right: -245px; width: 200px;
  font-family: 'Caveat', cursive;
  font-size: 0.9rem; line-height: 1.45; color: var(--sage);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
  pointer-events: none;
}

.margin-note::before {
  content: '';
  position: absolute; left: -16px; top: 8px;
  width: 10px; height: 1px;
  background: var(--sage-light); opacity: 0.4;
}

.letter-p.visible .margin-note { opacity: 1; transform: translateX(0); }

.word-door {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--terracotta-soft);
  cursor: pointer; transition: all 0.3s ease;
}

.word-door:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  background: var(--highlight);
  padding: 0 2px; margin: 0 -2px;
}

.letter-reflection {
  padding: 2.5rem 0; text-align: center;
  max-width: 500px; margin: 1rem auto 1.5rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}

.letter-reflection.visible { opacity: 1; transform: translateY(0); }

.letter-reflection blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 300;
  font-style: italic; color: var(--ink); line-height: 1.5;
}

.letter-reflection cite {
  display: block; margin-top: 0.8rem;
  font-family: 'Caveat', cursive;
  font-size: 0.9rem; color: var(--ink-faint); font-style: normal;
}

.letter-signoff {
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border); text-align: center;
}

.letter-signoff-thought {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem; font-weight: 300;
  font-style: italic; color: var(--ink-light); margin-bottom: 1.2rem;
}

.letter-signoff-name {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem; color: var(--terracotta-soft);
}

.letter-signoff-links {
  margin-top: 1.2rem;
  display: flex; justify-content: center; gap: 1.5rem;
}

.letter-signoff-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none; transition: color 0.3s;
}

.letter-signoff-links a:hover { color: var(--terracotta); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
  .margin-note {
    position: relative; right: auto; width: 100%;
    margin-top: 0.5rem; padding-left: 1rem;
    border-left: 1px solid var(--sage-light);
  }
  .margin-note::before { display: none; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  html, body { height: auto; overflow: auto; }

  .desk-scene {
    width: 100%; height: auto !important;
    min-height: 100vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 3rem;
    gap: 1.5rem;
  }
  .desk-scene::after { display: none; }

  .desk-nameplate {
    position: static;
    order: -2;
    margin-bottom: 0.25rem;
  }
  .desk-hint {
    position: static;
    transform: none;
    order: -1;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
  }

  .desk-item, .pen, .desk-nameplate, .desk-hint { opacity: 1; translate: none !important; scale: none !important; animation: none !important; }

  .desk-item {
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    max-width: 100%;
  }
  .desk-item:hover { transform: none !important; }
  .desk-item-label {
    position: static !important;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    transform: none !important;
    font-size: 0.55rem;
    padding: 0.3rem 0.9rem;
  }

  .sketchbook { order: 1; width: 240px !important; }
  .sketchbook-body { width: 240px !important; height: 180px !important; }

  .photo-1 { order: 2; width: 160px !important; }
  .photo-2 { order: 3; width: 150px !important; }

  .postcard-item { order: 4; width: 300px !important; height: auto !important; }
  .postcard-body { font-size: 0.85rem; max-width: 180px; }

  .laptop { order: 5; width: 320px !important; }
  .laptop-lid { width: 320px !important; height: 213px !important; transform: none; }
  .laptop-screen-glow { width: 320px !important; box-shadow: 0 0 10px rgba(255,195,120,0.22), 0 0 25px rgba(255,195,120,0.1), 0 -5px 15px rgba(255,195,120,0.07); }
  .laptop-hinge-line { width: 320px !important; }
  .laptop-logo { width: 30px; height: 36px; }

  .coffee { order: 6; width: 75px !important; height: 75px !important; }
  .coffee-saucer { width: 92px; height: 92px; top: -8px; left: -8px; }
  .coffee-cup-body { width: 66px; height: 66px; top: 4px; left: 4px; }
  .coffee-handle { right: -5px; top: 22px; width: 15px; height: 24px; }

  .notebook { order: 7; width: 130px !important; }
  .notebook-body { width: 130px !important; height: 173px !important; }
  .notebook-title { font-size: 0.48rem; }

  .pen { display: none; }
}

@media (max-width: 768px) {
  html, body { height: auto; overflow: auto; }

  .desk-scene {
    width: 100%; height: auto !important;
    min-height: 100vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 3rem;
    gap: 1.5rem;
  }
  .desk-scene::after { display: none; }

  .desk-nameplate {
    position: static;
    order: -2;
    margin-bottom: 0.25rem;
  }
  .desk-hint {
    position: static;
    transform: none;
    order: -1;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
  }

  .desk-item, .pen, .desk-nameplate, .desk-hint { opacity: 1; translate: none !important; scale: none !important; animation: none !important; }

  .desk-item {
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    max-width: 100%;
  }
  .desk-item:hover { transform: none !important; }
  .desk-item-label {
    position: static !important;
    display: block;
    text-align: center;
    margin-top: 0.6rem;
    transform: none !important;
    font-size: 0.55rem;
    padding: 0.3rem 0.9rem;
  }

  .sketchbook { order: 1; width: 220px !important; }
  .sketchbook-body { width: 220px !important; height: 165px !important; }

  .photo-1 { order: 2; width: 150px !important; }
  .photo-2 { order: 3; width: 140px !important; }

  .postcard-item { order: 4; width: 280px !important; height: auto !important; }
  .postcard-body { font-size: 0.8rem; max-width: 160px; }

  .laptop { order: 5; width: 300px !important; }
  .laptop-lid { width: 300px !important; height: 200px !important; transform: none; }
  .laptop-screen-glow { width: 300px !important; box-shadow: 0 0 8px rgba(255,195,120,0.2), 0 0 20px rgba(255,195,120,0.08), 0 -4px 12px rgba(255,195,120,0.06); }
  .laptop-hinge-line { width: 300px !important; }
  .laptop-logo { width: 28px; height: 34px; }

  .coffee { order: 6; width: 70px !important; height: 70px !important; }
  .coffee-saucer { width: 86px; height: 86px; top: -8px; left: -8px; }
  .coffee-cup-body { width: 62px; height: 62px; top: 4px; left: 4px; }
  .coffee-handle { right: -5px; top: 20px; width: 14px; height: 22px; }

  .notebook { order: 7; width: 120px !important; }
  .notebook-body { width: 120px !important; height: 160px !important; }
  .notebook-title { font-size: 0.45rem; }

  .pen { display: none; }

  .letter-scroll { padding: 5rem 1.5rem 4rem; }
  .letter-hero-title { font-size: 1.7rem; }

  .notebook-close { top: 1rem; right: 1rem; width: 36px; height: 36px; }
  .notebook-back-label { top: 1.3rem; left: 1rem; font-size: 0.85rem; }

  .panel-inner { padding: 2rem 1.5rem; }
  .interview-stats { gap: 0.8rem; }
  .interview-stat-num { font-size: 1.3rem; }

  .intro-overlay { padding: 0 1.5rem; }
  .intro-name { font-size: 1.9rem; }
  .intro-sub { font-size: 1rem; }
  .intro-enter { margin-top: 2rem; padding: 0.75rem 1.75rem; }
}

@media (max-width: 480px) {
  .desk-scene { padding: 1.5rem 0.75rem 2.5rem; gap: 1.25rem; }
  .postcard-item { width: 260px !important; }
  .postcard-body { max-width: 140px; }
  .laptop { width: 280px !important; }
  .laptop-lid { width: 280px !important; height: 187px !important; }
  .laptop-screen-glow { width: 280px !important; }
  .laptop-hinge-line { width: 280px !important; }
  .intro-name { font-size: 1.7rem; }
}

.project-card-link { margin-top: 0.6rem; }
.project-card-link a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.project-card-link a:hover { border-bottom-color: var(--terracotta); }
