@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap');
/* ============================================================
   work.js styling — THE STUDIO
   A living designer's workstation: open MacBook (your work on
   screen), steaming coffee, project "books", a whiteboard of
   sketches. Continues the landing palette: cream, ink, warmth.
   ============================================================ */

:root {
  --ink-faint: rgba(10, 10, 10, 0.12);
  --ink-hair:  rgba(10, 10, 10, 0.18);
  --glow:      #b86a3a;
  --glow-soft: rgba(184, 106, 58, 0.16);
  --accent:    #c97a2f;      /* warm "orange" highlight  */
}

/* ---- entering-work transition (the brain opens / dive in) ---- */
body.entering .hidden-layer {
  animation: brain-push 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes brain-push {
  0%   { transform: scale(1);    opacity: 0.93; filter: blur(0); }
  60%  { opacity: 0.5; }
  100% { transform: scale(1.85); opacity: 0;    filter: blur(6px); }
}
body.entering .center,
body.entering .hud,
body.entering .quadrant:not(.tr) { transition: opacity 0.5s ease; opacity: 0 !important; }
body.entering .quadrant.tr .word { animation: word-dive 1.4s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes word-dive {
  0%   { transform: scale(1)    translateY(0);    opacity: 1; }
  35%  { transform: scale(1.12) translateY(-6px); opacity: 1; }
  100% { transform: scale(0.6)  translateY(40px); opacity: 0; }
}
.bloom {
  position: fixed; border-radius: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 90; opacity: 0;
  background: radial-gradient(circle, var(--paper) 0%, var(--paper) 42%, rgba(244,241,234,0) 72%);
}
.bloom.go { animation: bloom-out 1.4s cubic-bezier(0.16,1,0.3,1) forwards; }

/* ---- water wash-back: drains the Work scene into the bubble ---- */
.wash { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.wash-disc {
  position: absolute; border-radius: 50%;
  width: max(230vw, 230vh); height: max(230vw, 230vh);
  transform: translate(-50%, -50%) scale(0);
  background:
    radial-gradient(circle at 50% 50%,
      rgba(244,241,234,0.99) 0%,
      rgba(238,232,219,0.99) 58%,
      rgba(224,231,230,0.99) 84%,
      rgba(206,221,222,0.99) 100%);
  box-shadow: 0 0 60px 20px rgba(190,210,212,0.45);
  will-change: transform, opacity;
}
.wash-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(120,158,165,0.55);
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  will-change: width, height, opacity;
}
@keyframes bloom-out {
  0%   { width: 0; height: 0; opacity: 0.9; }
  100% { width: 320vmax; height: 320vmax; opacity: 1; }
}

/* ============================================================
   WORK VIEW SHELL
   ============================================================ */
.work-view {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
  overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
}
.work-view.show {
  visibility: visible; pointer-events: auto;
  animation: work-in 1.1s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
}
@keyframes work-in {
  0%   { opacity: 0; transform: scale(1.04); filter: blur(7px); }
  100% { opacity: 1; transform: scale(1);    filter: blur(0); }
}
.work-view.out { animation: none !important; opacity: 0 !important; transition: opacity 0.5s ease; pointer-events: none; }
body.in-work { cursor: auto; }
body.in-work .bubble { display: none; }
body.in-work .photo-tip { opacity: 0 !important; }
/* While the studio overlay is up (incl. its fade-in), keep the index/home UI
   fully hidden so it can never flash behind the work view. */
body.in-work .center,
body.in-work .veil,
body.in-work .quadrant,
body.in-work .live-pill,
body.in-work .orbit-rings,
body.in-work .hint { opacity: 0 !important; }
/* Returning into the studio skips the entrance fade — appear instantly, no blank gap. */
.work-view.show.instant { animation: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; filter: none !important; }

/* faint contour on the wall — barely-there texture */
.work-topo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.04;
}
.work-topo svg { width: 100%; height: 62%; }
.work-topo svg path { stroke: var(--ink); fill: none; stroke-width: 1.1; }

/* ---- top bar (floats over the scene) ---- */
.work-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 38px;
}
.back-index {
  appearance: none; border: none; background: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink);
  display: flex; align-items: center; gap: 10px; padding: 6px 0; opacity: 0.62;
  transition: opacity 0.2s ease, gap 0.3s cubic-bezier(0.16,1,0.3,1);
}
.back-index:hover { opacity: 1; gap: 16px; }
.back-index .arc { font-size: 14px; }
.ws-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--ink-soft);
}
.mini-nav { display: flex; gap: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; }
.mini-nav button {
  appearance: none; background: none; border: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--ink-soft); padding: 6px 10px;
  transition: color 0.2s ease;
}
.mini-nav button:hover { color: var(--ink); }
.mini-nav button.here { color: var(--ink); position: relative; }
.mini-nav button.here::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--ink);
}

/* ============================================================
   THE WORKSTATION
   ============================================================ */
.workstation { position: absolute; inset: 0; z-index: 5; }
.ws-stage {
  position: absolute; inset: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1320px;
  z-index: 5;
}
[data-depth] { translate: var(--px, 0) var(--py, 0); }

/* ---- wall + desk ---- */
.ws-wall {
  position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background:
    radial-gradient(120% 120% at 50% 0%, #faf6ec 0%, #efe9dc 70%, #e8e1d1 100%);
}
.ws-lamp {
  position: absolute; top: -16%; left: 50%; width: 70%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(60% 70% at 50% 0%, rgba(255,244,222,0.8), rgba(255,244,222,0) 70%);
  pointer-events: none;
  animation: lamp-breathe 7s ease-in-out infinite;
}
@keyframes lamp-breathe { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }

.ws-desk {
  position: absolute; left: 0; right: 0; bottom: 0; top: 56%;
  background:
    linear-gradient(180deg, #d8c39b 0%, #cdb589 32%, #c4aa7c 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35);
}
.ws-desk::before { /* the front lip line where desk meets wall */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background: linear-gradient(180deg, rgba(120,90,50,0.22), transparent);
}
.ws-desk::after { /* subtle wood grain */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(91deg, rgba(120,90,50,0.05) 0 2px, transparent 2px 40px);
}
.desk-edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5%;
  background: linear-gradient(180deg, #b89c6e, #a98c5d);
  box-shadow: inset 0 2px 4px rgba(120,90,50,0.3);
}

/* ---------------- Whiteboard ---------------- */
.whiteboard {
  position: absolute; top: 5%; left: 58%; transform: translateX(-50%);
  width: clamp(300px, 42%, 540px);
}
.wb-board {
  position: relative;
  height: clamp(140px, 19vh, 208px);
  background: linear-gradient(180deg, #fdfcf9, #f4f1ea);
  border: 8px solid #e7e0d2;
  border-radius: 6px;
  box-shadow: 0 30px 60px -36px rgba(10,10,10,0.5), inset 0 0 40px rgba(0,0,0,0.02);
}
.wb-title {
  position: absolute; top: 10px; left: 16px;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: 14px; color: var(--ink-soft);
}
.wb-pin {
  position: absolute; width: 23%; height: 52%;
  box-shadow: 0 10px 22px -12px rgba(10,10,10,0.5);
  background: #fff;
}
.wb-pin image-slot { width: 100%; height: 100%; display: block; }
.static-slot { width: 100%; height: 100%; display: block; }
.wb-pin .wb-shot { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.pin-dot {
  position: absolute; top: -6px; left: 50%; width: 11px; height: 11px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e26d52, #b23a25);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.wb-pin-0 { left: 8%;  top: 30%; transform: rotate(-3deg); }
.wb-pin-1 { left: 38%; top: 26%; transform: rotate(1.5deg); }
.wb-pin-2 { left: 68%; top: 32%; transform: rotate(-1.5deg); }
.sticky {
  position: absolute; width: 74px; height: 70px; padding: 10px 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.3;
  color: #5b4a2a;
  box-shadow: 0 8px 18px -8px rgba(10,10,10,0.4);
}
.sticky-1 { right: 4%; top: 14%; background: #f4e08a; transform: rotate(4deg); }
.sticky-2 { right: 8%; bottom: 8%; background: #cfe6b0; transform: rotate(-5deg); }
.wb-tray {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: 36%; height: 10px; background: linear-gradient(#d9d0bf, #c3b89f);
  border-radius: 0 0 4px 4px; box-shadow: 0 6px 12px -6px rgba(10,10,10,0.4);
}
.marker { position: absolute; top: 2px; width: 40px; height: 6px; border-radius: 3px; }
.m-1 { left: 16%; background: #2a6f8a; }
.m-2 { left: 52%; background: #b23a25; }

/* ---------------- Filter board (left wall) ---------------- */
.filter-board {
  position: absolute; top: 10%; left: 3%;
  width: clamp(170px, 16%, 222px);
}
.fb-board {
  position: relative;
  padding: 30px 16px 18px;
  background: linear-gradient(180deg, #cdab78, #c39e69);
  border: 7px solid #7c5a36;
  border-radius: 6px;
  box-shadow: 0 26px 52px -34px rgba(10,10,10,0.55), inset 0 0 30px rgba(120,80,40,0.18);
}
.fb-title {
  position: absolute; top: 9px; left: 14px;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: 13px; color: #5b4226;
}
.fb-chips { display: flex; flex-direction: column; gap: 8px; }
.fb-chip {
  appearance: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; text-align: left;
  color: #3a2c18;
  padding: 8px 12px;
  background: rgba(255,250,240,0.82);
  border: 1px solid rgba(90,60,30,0.35);
  border-radius: 4px;
  box-shadow: 0 4px 10px -6px rgba(10,10,10,0.4);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), background 0.3s ease, color 0.25s ease;
}
.fb-chip:hover { transform: translateX(3px); }
.fb-chip.on { background: var(--accent); color: #fff; border-color: #a85f23; }
.fb-clip {
  position: absolute; top: -9px; left: 50%; width: 34px; height: 16px;
  transform: translateX(-50%);
  border: 2px solid #9aa0a8; border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#e7e9ec, #c3c7cc);
}

/* ---------------- MacBook: locked / forming screen ---------------- */
.mb-locked {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, #20242c, #2c2533 60%, #33282a);
  color: rgba(255,255,255,0.5);
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: clamp(18px, 2.4vw, 28px); letter-spacing: 0.01em;
}
.mbl-mark {
  width: 30px; height: 30px; border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,0.4);
  position: relative;
}
.mbl-mark::before {
  content: ''; position: absolute; left: 50%; top: -7px; width: 13px; height: 13px;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255,255,255,0.4); border-bottom: none;
  border-radius: 7px 7px 0 0;
}

/* ---------------- Coffee + steam ---------------- */
.coffee {
  position: absolute; left: 10%; bottom: 9%;
  width: clamp(80px, 8%, 116px); height: clamp(80px, 8%, 116px);
}
.cup {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  width: 72%; height: 60%;
  background: linear-gradient(90deg, #e9e4da 0%, #fbfaf6 35%, #fbfaf6 60%, #ddd6c9 100%);
  border-radius: 8px 8px 36% 36% / 8px 8px 60% 60%;
  box-shadow: 0 16px 30px -16px rgba(10,10,10,0.5), inset -6px 0 10px rgba(0,0,0,0.05);
}
.coffee-top {
  position: absolute; top: 8%; left: 8%; right: 8%; height: 22%;
  background: radial-gradient(ellipse at 50% 40%, #5b3a22, #3a2414);
  border-radius: 50%;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
.cup-handle {
  position: absolute; right: -14%; top: 28%; width: 26%; height: 42%;
  border: 7px solid #f3efe6; border-left: none;
  border-radius: 0 60% 60% 0 / 0 50% 50% 0;
  box-shadow: 3px 2px 6px -3px rgba(10,10,10,0.4);
}
.saucer {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; height: 16%;
  background: radial-gradient(ellipse at 50% 30%, #fbfaf6, #d9d2c4);
  border-radius: 50%;
  box-shadow: 0 14px 22px -12px rgba(10,10,10,0.45);
}
.steam {
  position: absolute; left: 50%; bottom: 52%; transform: translateX(-50%);
  width: 40%; height: 60%; pointer-events: none;
}
.steam span {
  position: absolute; bottom: 0; width: 5px; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0) 100%);
  filter: blur(2px); border-radius: 50%; opacity: 0;
  transform-origin: bottom center;
}
.steam span:nth-child(1) { left: 18%; animation: steam 3.6s ease-in-out infinite; }
.steam span:nth-child(2) { left: 46%; animation: steam 4.2s ease-in-out 0.8s infinite; }
.steam span:nth-child(3) { left: 72%; animation: steam 3.9s ease-in-out 1.6s infinite; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(10%) scaleX(1) skewX(0deg); }
  30%  { opacity: 0.7; }
  60%  { transform: translateY(-40%) scaleX(1.3) skewX(8deg); }
  100% { opacity: 0; transform: translateY(-90%) scaleX(0.8) skewX(-6deg); }
}

/* ---------------- Monitor + desk kit ---------------- */
.monitor {
  position: absolute; left: 50%; bottom: 8%;
  transform: translateX(-50%);
  /* capped by height too, so on short windows it never climbs over the whiteboard */
  width: clamp(380px, min(52%, calc(90vh - 64px)), 700px);
  filter: drop-shadow(0 50px 60px rgba(10,10,10,0.32));
}
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mon-screen {
  position: relative;
  background: linear-gradient(160deg, #2b2d31, #18191c);
  border-radius: 14px;
  padding: 13px 13px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 0 rgba(0,0,0,0.3);
}
.mon-cam {
  position: absolute; top: 5px; left: 50%; width: 6px; height: 6px;
  transform: translateX(-50%); border-radius: 50%;
  background: #101114; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.mb-display {
  position: relative; aspect-ratio: 16 / 9;
  background: #0b0c0e; border-radius: 5px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6);
  cursor: pointer;
}
.mb-shots { position: absolute; inset: 0; }
.mb-shot {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(160deg, #2a3a52, #4a3a52 60%, #6a4a3a);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1);
}
.mb-shot.active { opacity: 1; }
.mb-shot image-slot { width: 100%; height: 100%; display: block; }
.mb-shot-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; user-select: none; -webkit-user-drag: none;
}
/* Monitor shows the project hero card full-bleed — no menubar / caption chrome */
.mb-menubar, .mb-caption { display: none !important; }
.mb-menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 6.5%;
  z-index: 4; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; background: rgba(20,18,16,0.34); backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.92);
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.04em;
}
.mb-menubar b { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; vertical-align: middle; }
.mm-right { display: flex; align-items: center; gap: 8px; }
.mm-ico { width: 9px; height: 9px; border: 1.4px solid rgba(255,255,255,0.85); border-radius: 2px; }
.mb-caption {
  position: absolute; left: 5%; bottom: 16%; z-index: 4;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 18px; max-width: 70%;
  background: linear-gradient(135deg, rgba(12,12,14,0.5), rgba(12,12,14,0.18));
  border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  backdrop-filter: blur(8px); color: #f5f1e8;
}
.mbc-num { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.24em; opacity: 0.7; }
.mbc-name {
  font-family: 'Fraunces', serif; font-weight: 900; font-variation-settings: "opsz" 144;
  font-size: clamp(20px, 2.6vw, 32px); line-height: 1; letter-spacing: -0.025em;
}
.mbc-meta { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }
.mbc-open {
  margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 100px;
}
.mb-dock {
  position: absolute; left: 50%; bottom: 2.5%; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 5px; padding: 5px 7px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px; backdrop-filter: blur(10px);
}
.mb-dock span {
  width: clamp(14px, 1.6vw, 22px); height: clamp(14px, 1.6vw, 22px); border-radius: 5px;
}
.mb-dock span:nth-child(1){ background: linear-gradient(#5aa9ff,#2a6fdb); }
.mb-dock span:nth-child(2){ background: linear-gradient(#ff7a8a,#d6395a); }
.mb-dock span:nth-child(3){ background: linear-gradient(#7be0a4,#1f8a5b); }
.mb-dock span:nth-child(4){ background: linear-gradient(#ffd36e,#e6a52a); }
.mb-dock span:nth-child(5){ background: linear-gradient(#c79bff,#7a4ad6); }
.mb-dock span:nth-child(6){ background: linear-gradient(#9aa0a8,#5b626b); }
.mb-dock span:nth-child(7){ background: linear-gradient(#ff9f6e,#d96a2c); }
.mb-glare {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 36%);
}
.mon-stand {
  position: relative; width: 100%;
  height: clamp(74px, 9vw, 120px);
}
.mon-neck {
  position: absolute; left: 50%; top: -2px; transform: translateX(-50%);
  width: clamp(46px, 5.4vw, 76px); height: 72%;
  background: linear-gradient(90deg, #9aa0a8 0%, #d2d7dc 45%, #b6bcc3 60%, #8f959d 100%);
  border-radius: 0 0 7px 7px;
}
.mon-foot {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: clamp(160px, 19vw, 270px); height: clamp(14px, 1.8vw, 24px);
  background: radial-gradient(ellipse at 50% 35%, #d6dbe0, #a7adb4);
  border-radius: 50%;
  box-shadow: 0 16px 28px -12px rgba(10,10,10,0.5), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* flat desk keyboard + mouse, laid on the desk in perspective */
.desk-kit {
  position: absolute; left: 50%; bottom: 3%;
  width: clamp(360px, 40%, 520px);
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.6vw, 26px);
  transform: translateX(-50%) perspective(900px) rotateX(34deg);
  transform-origin: center bottom;
}
.mb-keyboard {
  position: relative; flex: 1; max-width: 420px;
  display: flex; flex-direction: column; gap: clamp(3px, 0.5vw, 5px);
  padding: clamp(6px, 0.9vw, 11px);
  background: linear-gradient(180deg, #f0f1f3, #d9dde1);
  border-radius: 10px;
  box-shadow: 0 22px 30px -16px rgba(10,10,10,0.45), inset 0 1px 0 rgba(255,255,255,0.8);
}
.kb-row { display: flex; gap: clamp(3px, 0.5vw, 5px); }
.kb-row.fn { height: 9px; }
.key {
  flex: 1; height: clamp(13px, 1.5vw, 19px);
  background: linear-gradient(180deg, #ffffff, #e7eaee);
  border-radius: 3px;
  box-shadow: 0 1px 1.5px rgba(120,128,138,0.4), inset 0 1px 0 rgba(255,255,255,0.9);
}
.kb-row.fn .key { height: 9px; }
.key.space { flex: 6.5; }
.mouse {
  position: relative; flex: 0 0 auto;
  width: clamp(38px, 3.8vw, 52px); height: clamp(60px, 6vw, 84px);
  background: linear-gradient(180deg, #fbfcfd, #e3e7ea);
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  box-shadow: 0 18px 26px -14px rgba(10,10,10,0.5), inset 0 1px 0 rgba(255,255,255,0.9);
}
.mouse-line {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: 1.5px; height: 30%; background: rgba(120,128,138,0.4); border-radius: 2px;
}

/* ---------------- Books (projects) — standing in a holder ---------------- */
.bookshelf {
  position: absolute; right: 3.5%; bottom: 18%;
  width: clamp(210px, 16.5vw, 262px);
  display: flex; flex-direction: column; align-items: center;
}

/* handwritten note + animated arrow pointing down at the books */
.books-note {
  position: absolute; right: 3.5%; bottom: 43.5%;
  width: clamp(210px, 16.5vw, 262px);
  text-align: center; z-index: 6; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  animation: bn-bob 3.4s ease-in-out infinite;
}
.bn-text {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.05;
  color: #3c3127;
  display: block;
  transform: rotate(-2deg);
}
.bn-arrow {
  display: block; margin: 4px auto 0;
  width: clamp(30px, 2.8vw, 42px); height: auto;
  color: var(--accent);
  animation: bn-point 1.5s ease-in-out infinite;
}
@keyframes bn-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes bn-point {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .books-note { animation: none; }
  .bn-arrow { animation: none; }
}

.book-holder {
  position: absolute; left: 0; right: 0; bottom: 9px; z-index: 1;
  height: clamp(58px, 8vh, 92px);
  border-left: 5px solid #a8854f;
  border-right: 5px solid #a8854f;
  border-bottom: 11px solid #8d6c3d;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, rgba(150,118,68,0), rgba(120,90,46,0.14));
  box-shadow: 0 12px 22px -12px rgba(60,40,20,0.55), inset 0 -2px 0 rgba(255,235,200,0.25);
}
.book-holder::before, .book-holder::after {
  content: ''; position: absolute; bottom: -11px; width: 5px; height: 11px;
  background: #7a5c32;
}
.book-holder::before { left: -5px; border-radius: 0 0 0 3px; }
.book-holder::after { right: -5px; border-radius: 0 0 3px 0; }
.books {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(2px, 0.3vw, 4px);
}
.shelf-shadow {
  width: 116%; height: 16px; margin-top: -2px; align-self: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(70,46,22,0.4), transparent 72%);
  filter: blur(4px);
}
.book {
  position: relative;
  width: clamp(46px, 3.4vw, 60px);
  height: clamp(150px, 20vh, 226px);
  cursor: pointer;
  transform: rotate(calc(var(--bi) * 2.4deg));
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) calc(0.45s + var(--bi) * 0.1s) backwards;
}
.book-spine {
  position: absolute; inset: 0; border-radius: 3px 6px 6px 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 0; writing-mode: vertical-rl;
  box-shadow: inset -7px 0 14px rgba(0,0,0,0.28), inset 2px 0 0 rgba(255,255,255,0.16);
}
.cover-a .book-spine { background: linear-gradient(90deg, #2b2f36, #3a3f47); }
.cover-b .book-spine { background: linear-gradient(90deg, #7c4f2a, #95623a); }
.cover-c .book-spine { background: linear-gradient(90deg, #5d6149, #6f735a); }
.cover-d .book-spine { background: linear-gradient(90deg, #8a3a22, #a8492a); }
.bs-name {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.01em; color: #f3efe6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-height: 86%;
}
.bs-name.long { font-size: clamp(11px, 1.1vw, 14px); max-height: 88%; }
.book-head {
  display: block; position: absolute; top: -5px; left: 2px; right: 4px; height: 6px;
  background: linear-gradient(#efe7d4, #ddd2ba); border-radius: 2px 2px 0 0;
}
.book-pages {
  position: absolute; top: 4px; bottom: 2px; right: -3px; width: 4px;
  background: repeating-linear-gradient(0deg, #efe7d4 0 2px, #d8cdb4 2px 3px);
  border-radius: 0 2px 2px 0;
}
.book-shadow {
  display: block; position: absolute; bottom: -9px; left: 2%; right: -2%; height: 12px;
  background: radial-gradient(ellipse at 50% 50%, rgba(70,46,22,0.4), transparent 70%);
  filter: blur(3px); z-index: -1; transition: opacity 0.4s ease;
}
/* a small lift on hover — every book responds */
.book:hover { transform: translateY(-9px) rotate(0deg); }
.book:not(.locked):hover,
.book.active:not(.locked) { transform: translateY(-13px) rotate(0deg); }
.book.active:not(.locked) .book-spine {
  box-shadow: inset -7px 0 14px rgba(0,0,0,0.28), 0 0 0 2px var(--accent), 0 18px 34px -16px rgba(10,10,10,0.55);
}
.book.locked { cursor: default; opacity: 0.72; }
.book.locked .book-spine { filter: saturate(0.4) brightness(0.95); }
.book.locked .bs-name { font-weight: 400; font-style: italic; }

/* ============================================================
   CASE STUDY VIEW
   ============================================================ */
.case-view {
  position: fixed; inset: 0; z-index: 110;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overflow-x: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
}
.case-view.show { visibility: visible; pointer-events: auto; animation: case-in 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
.case-view.out { animation: none !important; opacity: 0 !important; transition: opacity 0.5s ease; pointer-events: none; }
@keyframes case-in { 0% { opacity: 0; transform: translateY(26px); } 100% { opacity: 1; transform: translateY(0); } }
.case-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px;
  background: linear-gradient(var(--paper), rgba(244,241,234,0.4) 70%, transparent);
}
.case-inner { max-width: 820px; margin: 0 auto; padding: 20px 40px 140px; position: relative; z-index: 2; }
.case-eyebrow {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 10px 16px;
}
.case-title {
  font-family: 'Fraunces', serif; font-weight: 900; font-variation-settings: "opsz" 144;
  font-size: clamp(44px, 7vw, 86px); line-height: 0.92; letter-spacing: -0.035em; margin: 18px 0 0;
}
.case-hook {
  font-family: 'Fraunces', serif; font-weight: 300; font-style: italic;
  font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; color: #2a2a2a;
  max-width: 30ch; margin: 22px 0 0; text-wrap: pretty;
}
.case-hero { margin: 44px 0; }
.case-hero image-slot {
  width: 100%; height: clamp(280px, 46vw, 460px); display: block; border-radius: 8px;
  box-shadow: 0 40px 90px -40px rgba(10,10,10,0.45);
}
.case-hero-img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  box-shadow: 0 40px 90px -40px rgba(10,10,10,0.45);
}
.cs-soon {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint); margin: 40px 0 8px;
}
.case-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint);
  margin-bottom: 48px;
}
.fact .fk { font-size: 9px; text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink-soft); margin-bottom: 8px; }
.fact .fv { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; line-height: 1.3; }
.case-section { margin-bottom: 56px; }
.case-section .cs-index {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--glow);
  margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.case-section .cs-index::after { content: ''; flex: 1; height: 1px; background: var(--ink-faint); }
.case-section h2 {
  font-family: 'Fraunces', serif; font-weight: 900; font-variation-settings: "opsz" 144;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 18px;
}
.case-section p {
  font-family: 'Fraunces', serif; font-weight: 300; font-size: 18px; line-height: 1.7;
  color: #1f1f1f; max-width: 62ch; margin-bottom: 18px; text-wrap: pretty;
}
.case-figure { margin: 32px 0; }
.case-figure image-slot {
  width: 100%; height: clamp(240px, 40vw, 400px); display: block; border-radius: 6px;
  box-shadow: 0 30px 70px -36px rgba(10,10,10,0.4);
}
.case-figure figcaption { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.case-foot { border-top: 1px solid var(--ink-faint); padding-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.case-foot .cf-next { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 22px; }
.editable-flag {
  display: inline-block; font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--glow); border: 1px dashed var(--glow); border-radius: 4px; padding: 2px 8px; opacity: 0.8;
}

/* ---- hover notes: handwritten stickies, same paper as the whiteboard's ----
   one per book, positioned once; only opacity + transform animate */
.lib-notes { position: absolute; left: 0; right: 0; bottom: calc(100% + 26px); height: 0; z-index: 8; pointer-events: none; }
.lib-card {
  position: absolute; left: 0; bottom: 0;
  width: clamp(150px, 12vw, 184px);
  padding: 12px 14px 16px;
  background: #f4e08a;
  color: #4a3a1c;
  font-family: 'Caveat', cursive;
  box-shadow: 0 14px 22px -12px rgba(10,10,10,0.45);
  opacity: 0;
  transform: translate3d(var(--x, 0px), 10px, 0) rotate(var(--r, -2deg)) scale(0.97);
  transition: opacity 0.18s ease-out, transform 0.32s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.lib-card b { display: block; font-weight: 700; font-size: 25px; line-height: 1; }
.lib-card span { display: block; margin-top: 6px; font-weight: 500; font-size: 19px; line-height: 1.08; }
.lib-card.on { opacity: 1; transform: translate3d(var(--x, 0px), 0, 0) rotate(var(--r, -2deg)) scale(1); }
.books-note { transition: opacity 0.18s ease; }
.shelf-peek .books-note { opacity: 0; }
@media (hover: none), (max-width: 920px) { .lib-notes { display: none; } .shelf-peek .books-note { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lib-card { transition: opacity 0.15s ease; } }

/* keep the room smooth: parallax layers and the screen crossfade run on the GPU,
   so moving the mouse never repaints the monitor's big drop shadow */
[data-depth] { will-change: translate; }
.mb-shot { will-change: opacity; }

/* ---- opening a case study: push into the monitor (see zoomIntoCase) ---- */
#workstation.zooming { will-change: transform; pointer-events: none; }
#workstation.zooming .mb-menubar,
#workstation.zooming .mb-caption,
#workstation.zooming .mb-glare,
#workstation.zooming .lib-notes,
#workstation.zooming .books-note { opacity: 0; transition: opacity 0.2s ease; }
body.case-zoom .work-bar { opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.zoom-veil { position: fixed; inset: 0; z-index: 9999; opacity: 0; pointer-events: none; }
/* browsers that support it blend the studio into the case page */
@view-transition { navigation: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .ws-label { display: none; }
  .monitor { width: 64%; bottom: 10%; }
  .desk-kit { width: 54%; }
  .coffee { left: 3%; bottom: 9%; width: 84px; height: 84px; }
  .bookshelf { right: 2%; bottom: 17%; }
  .book { width: 48px; height: 158px; }
  .whiteboard { width: 54%; top: 6%; left: 60%; }
  .filter-board { left: 2%; width: 160px; }
}
@media (max-width: 620px) {
  .work-view { overflow-y: auto; }
  .workstation { position: relative; min-height: 100%; }
  .ws-stage { position: relative; transform: none; left: 0; }
  .ws-wall { height: 46%; }
  .ws-desk { top: 42%; }
  .filter-board { left: 3%; top: 6%; width: 150px; }
  .whiteboard { display: none; }
  .books-note { display: none; }
  .coffee { left: 5%; bottom: 6%; }
  .monitor { width: 86%; bottom: 18%; }
  .desk-kit { width: 74%; bottom: 6%; }
  .bookshelf { right: 4%; bottom: 26%; }
  .book { width: 44px; height: 132px; }
  .mini-nav { display: none; }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .case-inner { padding: 16px 22px 120px; }
}

/* ============================================================
   PHONE / TABLET WORK VIEW — thumbnails instead of the desk
   ============================================================ */
.mwork, .mw-counter { display: none; }
@media (max-width: 820px) {
  .work-view { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .work-view .workstation, .work-view .work-topo { display: none; }
  .work-bar {
    position: sticky; top: 0; padding: 14px 20px;
    background: rgba(244, 241, 234, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--ink-faint);
  }
  .ws-label { display: none; }

  .mw-counter { display: flex; }
  .mwork { display: block; padding: 0 20px calc(110px + env(safe-area-inset-bottom)); color: var(--ink); }

  /* header */
  .mw-head { padding: 34px 0 30px; }
  .mw-kicker {
    display: flex; justify-content: space-between; margin: 0 0 14px;
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-soft);
  }
  .mw-title {
    margin: 0; font-family: 'Fraunces', serif; font-weight: 500;
    font-size: clamp(38px, 11vw, 58px); line-height: 0.98; letter-spacing: -0.03em;
    font-variation-settings: "opsz" 144;
  }
  .mw-title em { font-style: italic; font-weight: 300; color: var(--ink-soft); }
  .mw-chips {
    display: flex; gap: 8px; margin: 26px -20px 0; padding: 0 20px;
    overflow-x: auto; scrollbar-width: none;
  }
  .mw-chips::-webkit-scrollbar { display: none; }
  .mw-chip {
    flex: none; appearance: none; cursor: pointer;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink-hair);
    background: transparent; color: var(--ink);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  .mw-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  /* list */
  .mw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .mw-card { border-top: 1px solid var(--ink-hair); padding: 22px 0 34px; }
  .mw-card[hidden] { display: none; }
  .mw-link { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

  .mw-meta {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-soft);
  }
  .mw-num { color: var(--tint); font-weight: 500; }
  .mw-num::after { content: ''; display: inline-block; width: 18px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: 0.5; }
  .mw-year { margin-left: auto; }

  .mw-thumb {
    position: relative; overflow: hidden; border-radius: 18px;
    aspect-ratio: 16 / 9.4; isolation: isolate;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 24px 40px -28px rgba(10,10,10,0.55);
    transform: translateZ(0);
  }
  .mw-thumb::after { /* a thin edge in the project's colour */
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(10,10,10,0.08);
  }
  .mw-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
    transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * 5%), 0) scale(1.07);
    will-change: transform;
  }
  .mw-name {
    margin: 20px 0 0; font-family: 'Fraunces', serif; font-weight: 500;
    font-size: clamp(30px, 8.6vw, 40px); line-height: 1.02; letter-spacing: -0.025em;
    font-variation-settings: "opsz" 144;
  }
  .mw-hook {
    margin: 10px 0 0; max-width: 34ch;
    font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
    font-size: 17px; line-height: 1.42; color: #3a3833;
  }
  .mw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
  .mw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .mw-tags span {
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-soft); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--ink-faint);
  }
  .mw-go {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tint); color: #f4f1ea; font-size: 18px;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  }
  .mw-link:active .mw-go { transform: scale(0.92); }
  .mw-link:active .mw-thumb { transform: scale(0.985); transition: transform 0.2s ease; }
  .mw-card.locked { opacity: 0.6; }

  /* arrival: each card settles in once */
  .mw-card { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1); }
  .mw-card.in { opacity: 1; transform: none; }
  .mw-card .mw-thumb { clip-path: inset(8% 6% 8% 6% round 18px); transition: clip-path 1s cubic-bezier(0.16,1,0.3,1) 0.08s; }
  .mw-card.in .mw-thumb { clip-path: inset(0 0 0 0 round 18px); }

  .mw-end {
    margin: 10px 0 0; padding-top: 26px; border-top: 1px solid var(--ink-hair);
    font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 19px; color: var(--ink-soft);
  }
  .mw-end a { color: var(--ink); font-style: normal; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink-hair); }

  /* floating counter: which project you're on */
  .mw-counter {
    position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 140; /* above .work-view (100) */
    display: flex; align-items: center; gap: 12px;
    max-width: calc(100vw - 40px); padding: 11px 18px 11px 14px; border-radius: 999px;
    background: rgba(14, 14, 14, 0.9); color: #f4f1ea;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 18px 34px -16px rgba(0,0,0,0.6);
    transform: translate3d(-50%, 140%, 0); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
    overflow: hidden; pointer-events: none;
  }
  .mw-counter.show { transform: translate3d(-50%, 0, 0); opacity: 1; }
  .mw-c-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: rgba(244,241,234,0.55); }
  .mw-c-num b { color: #f4f1ea; font-weight: 500; }
  .mw-c-num i { font-style: normal; }
  .mw-c-name { font-family: 'Fraunces', serif; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mw-counter::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--tint, #c97a2f); box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
  .mw-counter.swap .mw-c-name, .mw-counter.swap .mw-c-num b { animation: mw-swap 0.45s cubic-bezier(0.16,1,0.3,1); }
  @keyframes mw-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .mw-c-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.08); }
  .mw-c-bar span { display: block; height: 100%; background: var(--tint, #c97a2f); transform-origin: left; transform: scaleX(0); }
}
/* tablets: two columns of cards */
@media (min-width: 621px) and (max-width: 820px) {
  .mwork { padding-left: 32px; padding-right: 32px; }
  .mw-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .mw-name { font-size: 30px; }
}
/* the tap-to-open ghost: the thumbnail growing to fill the screen */
.mw-ghost { position: fixed; inset: auto; opacity: 1; overflow: hidden; border-radius: 18px; transform-origin: center; z-index: 9998; }
.mw-ghost img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) {
  .mw-card, .mw-card .mw-thumb { opacity: 1; transform: none; clip-path: none; transition: none; }
  .mw-thumb img { transform: none; }
  .mw-counter { transition: opacity 0.2s ease; }
}

/* ---- Work's "← Index" matches the pill on About / Resume / Contact ---- */
.work-bar { padding: 22px 38px 22px 22px; }
.work-bar .back-index {
  display: inline-flex; align-items: center; gap: 11px;
  height: 46px; padding: 0 22px 0 17px; opacity: 1;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
  color: #f4f1ea; background: rgba(18, 18, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
  -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  transition: gap .25s ease, border-color .25s, color .25s, background .25s, transform .25s;
}
.work-bar .back-index .arc { font-size: 17px; line-height: 1; transition: transform .25s ease; }
.work-bar .back-index:hover { gap: 15px; opacity: 1; border-color: var(--accent); color: #f7c89a; transform: translateY(-1px); }
.work-bar .back-index:hover .arc { transform: translateX(-4px); }
@media (max-width: 820px) {
  /* no bar on phones either, just the floating pill like the other pages */
  .work-bar { padding: 14px; background: transparent; border-bottom: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  .work-bar .back-index, .work-bar .mini-nav { pointer-events: auto; }
  .work-bar .back-index { height: 44px; padding: 0 18px 0 14px; }
  .mw-head { padding-top: 14px; }
}

/* ---- phone Work view: light grey frosted backdrop, cards as frosted glass ---- */
@media (max-width: 820px) {
  .work-view {
    background-color: #e7e7ea;
    background-image:
      radial-gradient(60% 38% at 12% 8%, rgba(124, 79, 42, 0.16), transparent 70%),
      radial-gradient(55% 40% at 92% 30%, rgba(43, 47, 54, 0.14), transparent 70%),
      radial-gradient(60% 42% at 8% 72%, rgba(93, 97, 73, 0.16), transparent 70%),
      radial-gradient(55% 40% at 95% 96%, rgba(138, 58, 34, 0.13), transparent 70%);
  }
  .mw-head { padding-bottom: 22px; }
  .mw-chip { background: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .mw-chip.on { background: var(--ink); border-color: var(--ink); }
  .mw-list { gap: 16px; }
  .mw-card {
    border-top: 0; padding: 14px 14px 18px; border-radius: 26px;
    background: rgba(255, 255, 255, 0.46);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 44px -32px rgba(20, 20, 30, 0.45);
  }
  .mw-meta { margin: 2px 4px 12px; }
  .mw-name, .mw-hook, .mw-row { margin-left: 4px; margin-right: 4px; }
  .mw-thumb { border-radius: 16px; }
  .mw-card .mw-thumb { clip-path: inset(8% 6% 8% 6% round 16px); }
  .mw-card.in .mw-thumb { clip-path: inset(0 0 0 0 round 16px); }
  .mw-tags span { background: rgba(255, 255, 255, 0.55); border-color: rgba(10, 10, 10, 0.06); }
  .mw-end { border-top: 0; padding: 22px 6px 0; }
}
@media (min-width: 621px) and (max-width: 820px) { .mw-list { row-gap: 20px; } }
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .mw-card .mw-thumb { clip-path: none; } }
