/* ============ THE DESK AT 11:47 PM ============ */
@font-face { font-family:'Fraunces'; src:url('/fonts/Fraunces-normal-300-700.woff2') format('woff2'); font-weight:300 700; font-display:swap; }
@font-face { font-family:'Fraunces'; src:url('/fonts/Fraunces-italic-300-700.woff2') format('woff2'); font-weight:300 700; font-style:italic; font-display:swap; }
@font-face { font-family:'Courier Prime'; src:url('/fonts/CourierPrime-normal-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Courier Prime'; src:url('/fonts/CourierPrime-normal-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Archivo'; src:url('/fonts/Archivo-normal-400-700.woff2') format('woff2'); font-weight:400 700; font-display:swap; }
@font-face { font-family:'Caveat'; src:url('/fonts/Caveat.woff2') format('woff2'); font-weight:400 700; font-display:swap; }
@font-face { font-family:'DSEG7'; src:url('/fonts/DSEG7Classic-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }

:root {
  --desk: #16342a;
  --desk-dark: #0e241d;
  --lamp: rgba(255,196,96,.34);
  --manila: #d9b978;
  --manila-dark: #c2a15c;
  --paper: #f4ecd8;
  --paper-hi: #faf3e3;
  --ink: #2b2418;
  --red: #b3392f;
  --gold: #c9a227;
  --sticky: #f5d76e;
  --mono: 'Courier Prime', monospace;
  --serif: 'Fraunces', Georgia, serif;
  --hand: 'Caveat', cursive;
  --sans: 'Archivo', system-ui, sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:auto; }
body {
  background: var(--desk-dark);
  font-family: var(--sans);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position:fixed; top:-60px; left:12px; z-index:300; background:var(--paper); padding:8px 14px; font-family:var(--mono); font-size:13px; transition:top .2s; }
.skip-link:focus { top:12px; }

/* ============ DESK BACKDROP ============ */
#desk {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(255,255,255,.05), transparent 60%),
    repeating-linear-gradient(97deg, rgba(0,0,0,.05) 0 3px, transparent 3px 7px),
    radial-gradient(140% 100% at 50% 50%, var(--desk) 40%, var(--desk-dark) 100%);
  transition: filter .6s ease;
}
.lamp-glow {
  position:absolute; inset:0;
  background: radial-gradient(closest-side at 14% 10%, var(--lamp), rgba(255,196,96,.12) 42%, transparent 72%);
  mix-blend-mode: screen;
  transition: opacity .6s ease;
}
body.lamp-off #desk { filter: brightness(.42) saturate(.85); }
body.lamp-off .lamp-glow { opacity: .12; }
body.lamp-off .lamp svg ellipse[fill="#ffe9b0"] { fill:#5a4a28; }

.desk-obj { position: absolute; filter: drop-shadow(6px 10px 12px rgba(0,0,0,.45)); pointer-events: auto; }
.desk-obj svg { display:block; width:100%; height:auto; }
.lamp     { top:-1%; left:-1%; width:130px; transform:rotate(0deg); }
.calculator { top:9%; right:2.5%; width:96px; transform:rotate(7deg); }
.mug      { bottom:16%; left:3%; width:96px; transform:rotate(-4deg); }
.stamp    { top:32%; left:1.5%; width:104px; transform:rotate(-8deg); }
.pen      { bottom:7%; left:14%; width:130px; transform:rotate(12deg); }
.stickies { bottom:24%; right:3.5%; width:104px; transform:rotate(5deg); }
.lanyard  { top:-2%; right:11%; width:96px; transform:rotate(9deg); }
.phone    { bottom:4%; right:7%; width:64px; transform:rotate(-14deg); }
.book-obj { top:56%; left:2.2%; width:86px; transform:rotate(-7deg); pointer-events:auto; }
.book-btn { background:none; border:0; padding:0; width:100%; display:block; }
.book-btn img { width:100%; display:block; border-radius:2px; box-shadow: 3px 5px 10px rgba(0,0,0,.5), inset -2px 0 4px rgba(0,0,0,.3); }
.book-btn:hover img { transform: translateY(-3px) rotate(2deg); }
.book-btn img { transition: transform .25s ease; }

.clock { top:2.2%; left:50%; margin-left:-210px; transform:rotate(-3deg); }
.clock-face {
  background:#1a1d22; border:3px solid #0c0e11; border-radius:10px;
  padding:8px 14px 6px; display:flex; align-items:baseline; gap:8px;
  box-shadow: 5px 8px 14px rgba(0,0,0,.5);
}
#clock-time { font-family:'DSEG7', var(--mono); font-size:26px; color:#ff5f4d; text-shadow:0 0 8px rgba(255,95,77,.5); letter-spacing:2px; }
.clock-label { font-family:var(--mono); font-size:10px; color:#7c8894; }

/* ============ FIXED UI ============ */
.hurry-link {
  position: fixed; top:14px; right:16px; z-index:120;
  font-family: var(--mono); font-size:12.5px; color:#f4ecd8;
  background: rgba(14,32,26,.72); border:1px solid rgba(244,236,216,.35);
  padding:7px 12px; border-radius:999px; text-decoration:none;
  backdrop-filter: blur(3px);
}
.hurry-link:hover { background: rgba(14,32,26,.95); border-color: var(--gold); }

.resume-tag {
  position: fixed; left:16px; bottom:16px; z-index:120;
  display:flex; align-items:center; gap:6px;
  font-family: var(--mono); font-size:12.5px; color: var(--ink);
  background: var(--paper); padding:8px 12px; border-radius:3px;
  text-decoration:none; transform: rotate(-3deg);
  box-shadow: 3px 5px 10px rgba(0,0,0,.4);
}
.resume-tag .clip { width:15px; height:15px; color:#5a6a72; }
.resume-tag:hover { transform: rotate(-1deg) translateY(-2px); }

.desk-menu { position: fixed; right:16px; bottom:16px; z-index:130; }
#menu-toggle {
  width:44px; height:44px; border-radius:50%;
  background: var(--paper); color: var(--ink); border:0;
  font-size:22px; line-height:1; box-shadow: 3px 5px 10px rgba(0,0,0,.4);
}
.menu-pop {
  position:absolute; right:0; bottom:54px;
  background: var(--paper); border-radius:6px; padding:8px;
  display:flex; flex-direction:column; gap:4px; min-width:168px;
  box-shadow: 4px 8px 16px rgba(0,0,0,.5); transform: rotate(-1deg);
}
.menu-pop button, .menu-pop a {
  font-family: var(--mono); font-size:13px; text-align:left;
  background:none; border:0; padding:7px 9px; border-radius:4px;
  color: var(--ink); text-decoration:none; display:block;
}
.menu-pop button:hover, .menu-pop a:hover { background: rgba(22,52,42,.12); }

/* ============ STAGE ============ */
#stage { position: relative; z-index: 10; }
#scroll-track { position: relative; }

.scene {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12vh 5vw;
  position: relative;
}
.scene-caption {
  font-family: var(--mono); font-size:13px; letter-spacing:.14em;
  color: rgba(244,236,216,.85); margin-bottom: 26px; text-align:center;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.scene-caption.small { font-size:12px; margin-bottom:12px; }

/* paper & folders shared */
.paper {
  background: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.022) 0 1px, transparent 1px 4px);
  box-shadow: 8px 14px 30px rgba(0,0,0,.5);
  border-radius: 2px;
}
.red-hand { font-family: var(--hand); color: var(--red); font-weight:600; }

/* ---- Scene 1: closed folder ---- */
.scene-1 { perspective: 1600px; }
.kicker {
  position:absolute; top:9vh; left:50%; transform:translateX(-50%);
  font-family: var(--mono); color: rgba(244,236,216,.9); font-size:clamp(14px,2vw,18px);
  letter-spacing:.08em; text-shadow:0 2px 8px rgba(0,0,0,.7); white-space:nowrap;
}
.folder {
  width: min(560px, 78vw);
  aspect-ratio: 4/3;
  position: relative;
  transform: rotate(-2deg);
  filter: drop-shadow(14px 22px 34px rgba(0,0,0,.55));
  transform-style: preserve-3d;
}
.folder-inside {
  position:absolute; inset:0; background: var(--paper);
  border-radius: 4px 10px 10px 4px; padding: 28px;
}
.typed-label { font-family: var(--mono); font-size: 13px; color:#6a5a3a; letter-spacing:.06em; line-height:1.7; }
.folder-cover {
  position:absolute; inset:0;
  background-color: var(--manila);
  background-image: repeating-linear-gradient(93deg, rgba(0,0,0,.03) 0 2px, transparent 2px 6px), linear-gradient(160deg, var(--manila) 0%, var(--manila-dark) 100%);
  border-radius: 4px 10px 10px 4px;
  transform-origin: left center;
  box-shadow: inset -6px 0 14px rgba(0,0,0,.12);
  padding: 7% 8%;
  backface-visibility: visible;
}
.folder-cover::before {
  content:""; position:absolute; top:-4.5%; left:8%; width:34%; height:6%;
  background: var(--manila); border-radius:6px 10px 0 0;
  box-shadow: 2px -2px 4px rgba(0,0,0,.15);
}
.cover-label {
  background: var(--paper-hi); padding: 4% 6%; width: 62%;
  box-shadow: 2px 4px 8px rgba(0,0,0,.25);
  transform: rotate(-1deg);
}
.cover-name { display:block; font-family: var(--serif); font-weight:700; font-size:clamp(19px,3.4vw,30px); letter-spacing:.02em; }
.cover-case { display:block; font-family: var(--mono); font-size:clamp(11px,1.6vw,14px); color:#6a5a3a; margin-top:5px; letter-spacing:.1em; }
.confidential {
  position:absolute; right:7%; top:38%;
  font-family: var(--mono); font-weight:700; color: var(--red);
  border: 3px solid var(--red); border-radius: 4px;
  padding: 6px 14px; font-size: clamp(13px,2.2vw,20px); letter-spacing:.18em;
  transform: rotate(9deg); opacity:.85;
  mask-image: repeating-linear-gradient(45deg, rgba(0,0,0,1) 0 2px, rgba(0,0,0,.86) 2px 4px);
}
.photo-clip {
  position:absolute; left:8%; bottom:9%;
  width: 27%; aspect-ratio: 3/3.6; background: var(--paper-hi);
  box-shadow: 3px 6px 12px rgba(0,0,0,.3); transform: rotate(-5deg);
  display:flex; align-items:center; justify-content:center;
  padding: 6% 6% 16%;
}
.photo-clip img { width:100%; height:100%; object-fit:cover; display:block; }
.photo-placeholder {
  font-family: var(--hand); color:#8a7a5a; font-size:clamp(14px,2vw,19px);
  text-align:center; line-height:1.2;
}
.paperclip {
  position:absolute; top:-11px; left:44%; width:12px; height:28px;
  border:2.5px solid #8a939c; border-radius:6px 6px 0 0; border-bottom:none;
  transform: rotate(6deg); z-index:2; background:transparent;
}
.red-scribble {
  position:absolute; right:9%; bottom:10%;
  font-family: var(--hand); font-size:clamp(19px,3vw,28px); font-weight:600;
  color: var(--red); transform: rotate(-4deg);
}
.scroll-pill {
  position:absolute; bottom:6vh; left:50%; transform:translateX(-50%);
  font-family:var(--mono); font-size:12px; letter-spacing:.12em;
  color:rgba(244,236,216,.85); border:1px solid rgba(244,236,216,.4);
  padding:8px 16px; border-radius:999px; display:flex; gap:8px; align-items:center;
  background: rgba(14,32,26,.5);
}
.scroll-pill span { width:6px; height:6px; border-radius:50%; background:var(--gold); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---- Scene 2: memo ---- */
.memo { width:min(620px,84vw); padding: 6% 7%; transform: rotate(-1.2deg); }
.memo-head { font-family:var(--mono); font-size:12px; letter-spacing:.16em; color:#8a6a3a; border-bottom:1px solid rgba(0,0,0,.15); padding-bottom:10px; margin-bottom:16px; }
.memo-body { font-family:var(--serif); font-size:clamp(17px,2.3vw,21px); line-height:1.62; }
.memo-body strong { font-weight:700; }
.sticky-note {
  background: var(--sticky);
  box-shadow: 5px 8px 14px rgba(0,0,0,.4);
  padding: 16px 18px; font-family: var(--hand); font-weight:600;
  font-size: clamp(17px,2.4vw,22px); line-height:1.25; color:#4a3a12;
}
.sn-role { position:absolute; right:12%; bottom:14%; width:200px; transform: rotate(4deg); }

/* ---- Scene 3: calculator tape ---- */
.tape {
  width:min(430px,84vw); background: var(--paper-hi);
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 5px);
  box-shadow: 8px 14px 28px rgba(0,0,0,.5);
  padding: 26px 26px 34px; transform: rotate(1deg);
  font-family: var(--mono);
  clip-path: polygon(0 0,100% 0,100% 100%,97% 99%,94% 100%,91% 99%,88% 100%,85% 99%,82% 100%,79% 99%,76% 100%,73% 99%,70% 100%,67% 99%,64% 100%,61% 99%,58% 100%,55% 99%,52% 100%,49% 99%,46% 100%,43% 99%,40% 100%,37% 99%,34% 100%,31% 99%,28% 100%,25% 99%,22% 100%,19% 99%,16% 100%,13% 99%,10% 100%,7% 99%,4% 100%,0 99%);
}
.tape-title { font-size:11.5px; letter-spacing:.18em; color:#8a7a5a; text-align:center; margin-bottom:16px; }
.tape ul { list-style:none; }
.tape-line { display:flex; align-items:baseline; font-size:clamp(14px,2.1vw,17px); padding:7px 0; border-bottom:1px dashed rgba(0,0,0,.12); }
.t-num { font-weight:700; white-space:nowrap; }
.t-dots { flex:1; border-bottom:2px dotted rgba(0,0,0,.25); margin:0 8px; transform:translateY(-3px); }
.t-what { font-size:.86em; color:#5a4a2e; }
.t-tick { color: var(--red); font-weight:700; margin-left:8px; font-size:1.1em; }
.tape-total { display:flex; align-items:baseline; margin-top:18px; font-weight:700; font-size:clamp(14px,2vw,17px); }
.tape-total .red-hand { font-size:1.5em; transform:rotate(-1.5deg); display:inline-block; }

/* ---- Scene 4: case folders ---- */
.case-row { display:flex; gap:clamp(14px,3vw,34px); justify-content:center; align-items:flex-end; flex-wrap:wrap; }
.case-folder {
  position:relative; width: clamp(168px, 22vw, 220px); aspect-ratio: 3/3.8;
  background-color: var(--manila);
  background-image: linear-gradient(165deg, #e0c188, var(--manila-dark));
  border:0; border-radius: 3px 8px 8px 3px;
  box-shadow: 8px 12px 24px rgba(0,0,0,.5);
  transform: rotate(var(--tilt, -2deg));
  transition: transform .25s ease;
  display:flex; flex-direction:column; align-items:center;
  padding: 13% 8% 8%;
  text-align:center; color: var(--ink);
}
.case-folder:hover, .case-folder:focus-visible { transform: rotate(0deg) translateY(-8px) scale(1.03); }
.cf-1 { --tilt:-4deg; } .cf-2 { --tilt:1.5deg; } .cf-3 { --tilt:4deg; }
.cf-tab {
  position:absolute; top:-7%; left:10%; width:46%; height:9%;
  background: var(--manila); border-radius:5px 8px 0 0;
  font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.08em;
  display:flex; align-items:center; justify-content:center; color:#6a4a1a;
  box-shadow: 2px -2px 4px rgba(0,0,0,.15);
}
.cf-1 .cf-tab { background:#e8cd95; } .cf-2 .cf-tab { background:#d9b978; } .cf-3 .cf-tab { background:#cbaa68; }
.cf-art { width:44%; margin-bottom:10px; }
.cf-art svg { width:100%; height:auto; filter: drop-shadow(2px 3px 4px rgba(0,0,0,.25)); }
.cf-name { font-family:var(--serif); font-weight:700; font-size:clamp(15px,1.8vw,18px); }
.cf-role { font-family:var(--mono); font-size:11px; color:#6a5a3a; margin-top:4px; }
.cf-stamp {
  position:absolute; right:6%; top:30%;
  font-family:var(--mono); font-weight:700; color:var(--red);
  border:2.5px solid var(--red); border-radius:4px; padding:3px 8px;
  font-size:12px; letter-spacing:.12em; transform: rotate(12deg) scale(0);
  opacity:0;
}
.cf-hover {
  position:absolute; left:50%; bottom:-16px; transform: translateX(-50%) rotate(-2deg) translateY(8px);
  background: var(--sticky); color:#4a3a12;
  font-family:var(--hand); font-weight:600; font-size:15px; line-height:1.2;
  width:86%; padding:8px 10px; box-shadow:4px 6px 10px rgba(0,0,0,.4);
  opacity:0; transition: opacity .2s ease, transform .2s ease; pointer-events:none;
}
.case-folder:hover .cf-hover, .case-folder:focus-visible .cf-hover { opacity:1; transform: translateX(-50%) rotate(-2deg) translateY(0); }
.stamp-arm { position:absolute; width:90px; opacity:0; pointer-events:none; z-index:5; }

/* ---- Scene 5: binder ---- */
.scene-5 { gap: 8vh; }
.binder {
  width:min(600px,86vw); position:relative;
  background: linear-gradient(150deg,#274b3d,#16342a);
  border-radius:8px; box-shadow: 10px 16px 34px rgba(0,0,0,.55);
  padding: 26px 26px 20px 58px;
  transform: rotate(-1deg);
}
.binder-spine {
  position:absolute; left:0; top:0; bottom:0; width:44px;
  border-right:2px solid rgba(0,0,0,.3); border-radius:8px 0 0 8px;
  display:flex; flex-direction:column; justify-content:space-evenly; align-items:center;
  background: rgba(0,0,0,.22);
}
.sticker {
  background: var(--gold); color:#3a2c05; font-family:var(--mono); font-weight:700;
  font-size:9px; letter-spacing:.06em; padding:5px 3px; border-radius:3px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  box-shadow: 1px 2px 4px rgba(0,0,0,.4);
}
.binder-pages { position:relative; min-height:300px; }
.divider {
  position:absolute; inset:0;
  background: var(--paper); border-radius:3px;
  box-shadow: 4px 8px 18px rgba(0,0,0,.4);
  padding: 34px 34px 28px; transform-origin: top center;
  display:flex; flex-direction:column; justify-content:center;
}
.dv-tab {
  position:absolute; top:14px; right:-14px;
  background: var(--gold); color:#3a2c05; font-family:var(--mono); font-weight:700;
  font-size:12px; padding:6px 10px 6px 8px; border-radius:0 4px 4px 0;
  box-shadow: 2px 3px 5px rgba(0,0,0,.35);
}
.dv-lead { font-family:var(--serif); font-weight:700; font-size:clamp(19px,2.8vw,26px); line-height:1.25; margin-bottom:14px; }
.dv-body { font-family:var(--sans); font-size:clamp(14px,1.9vw,16.5px); line-height:1.55; color:#4a3f2c; }
.binder-label { font-family:var(--mono); font-size:12px; color:rgba(244,236,216,.8); margin-top:16px; letter-spacing:.06em; }
.index-stack { width:min(760px,90vw); text-align:center; }
.cards-fan { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.ix-card {
  background: var(--paper-hi); width:200px; padding:14px 14px 16px; text-align:left;
  box-shadow: 4px 8px 14px rgba(0,0,0,.4); border-radius:2px;
  transform: rotate(var(--r));
  border-top: 3px solid var(--red);
}
.ix-card b { font-family:var(--mono); font-size:11.5px; display:block; margin-bottom:6px; letter-spacing:.02em; }
.ix-card span { font-family:var(--sans); font-size:12.5px; line-height:1.45; color:#4a3f2c; display:block; }

/* ---- Scene 6: game ---- */
.ledger {
  width:min(560px,88vw); background: var(--paper-hi);
  background-image: repeating-linear-gradient(0deg, transparent 0 30px, rgba(179,57,47,.14) 30px 31px);
  box-shadow: 8px 14px 28px rgba(0,0,0,.5); border-radius:2px;
  padding: 30px 30px 26px; transform: rotate(-1deg); position:relative;
  font-family: var(--mono);
}
.ledger-title { font-size:clamp(26px,4vw,34px); transform:rotate(-1.5deg); }
.ledger-sub { font-size:12.5px; color:#6a5a3a; margin:6px 0 18px; letter-spacing:.05em; }
.ledger-grid { display:flex; flex-direction:column; }
.lg-line {
  display:grid; grid-template-columns: 1fr auto auto; gap:14px;
  background:none; border:0; border-bottom:1px solid rgba(0,0,0,.1);
  padding:9px 6px; font-family:var(--mono); font-size:clamp(13px,2vw,15.5px);
  text-align:left; color:var(--ink); border-radius:3px;
}
.lg-line span:last-child { text-align:right; min-width:64px; }
.lg-amt { color:#5a4a2e; }
.lg-line:hover, .lg-line:focus-visible { background: rgba(201,162,39,.16); }
.lg-line.picked-wrong { background: rgba(179,57,47,.14); }
.lg-line.picked-right { background: rgba(46,125,72,.16); }
.ledger-note { min-height:26px; margin-top:14px; font-family:var(--hand); font-size:21px; color:var(--red); font-weight:600; }
.sn-win {
  position:absolute; right:-16px; top:-24px; width:220px; transform: rotate(5deg);
  text-decoration:none; display:block;
}
.sn-win:hover { transform: rotate(2deg) scale(1.03); }
.skip-game {
  margin-top:14px; background:none; border:0; font-family:var(--mono);
  font-size:12px; color:#8a7a5a; text-decoration:underline;
}
.skip-game:hover { color:var(--ink); }

/* ---- Scene 7: letters & badges ---- */
.scene-7 { gap: 7vh; }
.letters { display:flex; gap:clamp(14px,2.6vw,28px); flex-wrap:wrap; justify-content:center; }
.letter {
  position:relative; width:clamp(210px,26vw,270px); background: var(--paper-hi);
  padding: 34px 22px 20px; box-shadow: 5px 9px 18px rgba(0,0,0,.45);
  transform: rotate(-1.6deg); border-radius:2px;
}
.letter:nth-child(2) { transform: rotate(1.2deg) translateY(12px); }
.letter:nth-child(3) { transform: rotate(-.6deg) translateY(-4px); }
.letter-quote { font-family:var(--serif); font-size:15.5px; line-height:1.55; font-style:italic; }
.letter-quote.pending { font-family:var(--hand); font-style:normal; color:var(--red); font-size:19px; }
.letter figcaption { font-family:var(--mono); font-size:11.5px; color:#6a5a3a; margin-top:12px; }
.badges { display:flex; gap:clamp(16px,3vw,36px); justify-content:center; flex-wrap:wrap; }
.badge {
  position:relative; width:170px; background: var(--paper-hi); border-radius:6px;
  padding: 30px 14px 16px; text-align:center;
  box-shadow: 4px 8px 16px rgba(0,0,0,.45);
  display:flex; flex-direction:column; gap:3px;
}
.badge::before { content:""; position:absolute; top:10px; left:50%; transform:translateX(-50%); width:34px; height:8px; background:#c8c0ac; border-radius:4px; }
.badge-strap { position:absolute; top:-46px; left:50%; transform:translateX(-50%); width:44px; height:52px; border:5px solid #7a1f1f; border-bottom:none; border-radius:22px 22px 0 0; }
.badge b { font-family:var(--serif); font-size:16.5px; }
.badge span { font-family:var(--mono); font-size:11px; color:#6a5a3a; }
.badge em { font-family:var(--hand); font-size:16.5px; color:var(--red); font-style:normal; font-weight:600; margin-top:5px; }
.b1 { transform: rotate(-4deg); } .b2 { transform: rotate(2deg) translateY(10px); } .b3 { transform: rotate(-1deg); }

/* ---- Scene 8: close ---- */
.back-cover {
  background: linear-gradient(160deg, var(--manila) 0%, var(--manila-dark) 100%);
  border-radius: 4px 10px 10px 4px; transform: rotate(1.5deg);
  display:flex; align-items:center; justify-content:center;
  aspect-ratio:auto; min-height: 64vh; padding: 6% 7%;
}
.back-cover::before { display:none; }
.report { text-align:center; width:100%; }
.report-head { font-family:var(--mono); font-size:12px; letter-spacing:.22em; color:#6a4a1a; margin-bottom:22px; }
.report-line { font-family:var(--serif); font-size:clamp(24px,4.4vw,40px); font-weight:600; line-height:1.3; min-height:1.3em; }
.report-line b { font-weight:700; }
.sig-line { font-family:var(--mono); font-size:clamp(13px,1.8vw,15px); margin:26px 0 8px; color:#4a3a1e; }
.sig-line .red-hand { font-size:1.5em; }
.stamp-btns { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-top:22px; }
.stamp-btn {
  font-family:var(--mono); font-weight:700; font-size:14px; letter-spacing:.08em;
  color: var(--red); border:3px solid var(--red); border-radius:5px;
  padding:10px 20px; text-decoration:none; transform: rotate(-2deg);
  transition: transform .15s ease, background .15s ease;
  mask-image: repeating-linear-gradient(45deg, rgba(0,0,0,1) 0 3px, rgba(0,0,0,.88) 3px 6px);
}
.stamp-btn:nth-child(2) { transform: rotate(1.6deg); }
.stamp-btn:nth-child(3) { transform: rotate(-1deg); }
.stamp-btn:hover { background: rgba(179,57,47,.1); transform: rotate(0deg) scale(1.05); }
.close-note { margin-top:30px; font-size:clamp(19px,2.6vw,24px); transform:rotate(-1deg); opacity:0; }

/* ============ CASE OVERLAY ============ */
.case-overlay {
  position:fixed; inset:0; z-index:200;
  background: rgba(10,22,18,.72);
  display:flex; align-items:center; justify-content:center;
  padding: 4vh 4vw;
}
.ov-sheet {
  position:relative; width:min(760px,94vw); max-height:88vh; overflow:auto;
  background: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.02) 0 1px, transparent 1px 4px);
  border-radius:3px; box-shadow: 14px 24px 60px rgba(0,0,0,.65);
  padding: clamp(24px,4vw,44px);
  transform: rotate(-.6deg);
}
.ov-close {
  position:absolute; top:12px; right:12px; width:38px; height:38px;
  border-radius:50%; border:2px solid var(--ink); background:none; font-size:16px;
}
.ov-tag { font-family:var(--mono); font-size:11px; letter-spacing:.18em; color:#8a6a3a; }
#ov-title { font-family:var(--serif); font-weight:700; font-size:clamp(24px,4vw,34px); margin:6px 0 2px; }
.ov-role { font-family:var(--mono); font-size:12.5px; color:#6a5a3a; margin-bottom:18px; }
.ov-cols { display:grid; grid-template-columns:1fr 1fr; gap:18px 26px; }
.ov-block h3 { font-family:var(--mono); font-size:11.5px; letter-spacing:.16em; color:#8a6a3a; margin-bottom:6px; text-transform:uppercase; }
.ov-block p { font-size:15px; line-height:1.55; }
.ov-proof { margin-top:22px; border-top:2px dashed rgba(0,0,0,.18); padding-top:16px; display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.ov-proof img { width:110px; border-radius:2px; box-shadow:3px 5px 10px rgba(0,0,0,.35); }
.proof-link { font-family:var(--mono); font-size:13px; color:var(--red); font-weight:700; }
.proof-link:hover { text-decoration:none; }
.flip-note { font-family:var(--hand); font-size:17px; color:#6a5a3a; }

/* ============ MOBILE ============ */
@media (max-width: 820px) {
  .calculator { width:72px; top:6%; right:3%; }
  .mug { width:70px; bottom:12%; }
  .stamp { width:76px; top:28%; }
  .pen { width:92px; bottom:5%; left:8%; }
  .stickies { width:76px; }
  .lanyard { width:70px; right:6%; }
  .phone { width:48px; }
  .book-obj { width:64px; top:auto; bottom:34%; }
  .lamp { width:92px; }
  .clock { margin-left:0; left:12px; top:8px; }
  #clock-time { font-size:19px; }
  .hurry-link { top:auto; bottom:70px; right:12px; font-size:11px; padding:6px 10px; }
  .resume-tag { bottom:12px; left:12px; }
  .desk-menu { bottom:12px; right:12px; }
  .scene { padding: 10vh 6vw; }
  .sn-role { position:static; margin-top:22px; transform:rotate(2deg); }
  .scene-2 { justify-content:center; }
  .case-row { gap:34px; }
  .case-folder { width:min(240px,72vw); }
  .cf-hover { display:none; }
  .binder { padding-left:46px; }
  .binder-spine { width:34px; }
  .sticker { font-size:7.5px; }
  .binder-pages { min-height:0; }
  .divider { position:relative; inset:auto; padding:22px 18px; margin-bottom:12px; }
  .divider:last-child { margin-bottom:0; }
  .dv-tab { right:-8px; font-size:10px; }
  .ix-card { width:min(300px,80vw); }
  .sn-win { position:static; width:auto; margin:14px auto 0; transform:rotate(-1deg); }
  .letter { width:min(320px,84vw); }
  .ov-cols { grid-template-columns:1fr; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .scroll-pill span { animation:none; }
  * { transition-duration:.01ms !important; }
}

/* Photo and selected feedback supplied by Utkarsh. */
.photo-clip { padding:6px 6px 22px; }
.photo-clip img { object-position:50% 25%; background:#252620; }
.letter { width:clamp(250px,32vw,330px); }
.letter figcaption small { display:block; margin-top:6px; font-size:10px; color:#7c715d; }
@media(max-width:600px) { .scene-7 { min-height:1250px; gap:44px; } .letter { width:min(320px,82vw); } .letter-quote { font-size:14px; line-height:1.4; } }

@media(min-width:821px) { .letter { width:clamp(220px,25vw,295px); } }
@media(max-width:820px) { .scene-7 { min-height:1450px; padding-top:100px; padding-bottom:110px; } }
@media(max-width:820px) {
  .hurry-link { top:66px; bottom:auto; right:12px; }
  .kicker { top:115px; font-size:12px; }
  .confidential { top:48%; right:6%; font-size:10px; padding:4px 7px; }
  .cover-case { font-size:9px; letter-spacing:.04em; }
}

/* =====================================================================
   v2 — THE DESK COMES ALIVE
   ===================================================================== */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- layering: backdrop at the bottom, objects ABOVE the page ---- */
#desk-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(255,255,255,.05), transparent 60%),
    repeating-linear-gradient(97deg, rgba(0,0,0,.05) 0 3px, transparent 3px 7px),
    radial-gradient(140% 100% at 50% 50%, var(--desk) 40%, var(--desk-dark) 100%);
  transition: filter .6s ease;
}
#desk-bg .lamp-glow, #desk-bg .moon-glow { position:absolute; inset:0; transition: opacity .6s ease; }
#desk-bg .moon-glow { background: radial-gradient(closest-side at 14% 10%, rgba(140,170,255,.30), rgba(120,150,230,.10) 45%, transparent 75%); mix-blend-mode: screen; opacity:0; }
body.lamp-off #desk-bg { filter: brightness(.5) saturate(.8) hue-rotate(12deg); }
body.lamp-off #desk-bg .lamp-glow { opacity:.05; }
body.lamp-off #desk-bg .moon-glow { opacity:1; }
#desk { position: fixed; inset:0; z-index: 60; pointer-events:none; background:none; filter:none; }
body.lamp-off #desk { filter:none; }
.desk-obj { pointer-events:none; filter:none; }
.desk-obj .ob { pointer-events:auto; position:relative; display:block; width:100%; background:none; border:0; padding:0; color:inherit; cursor:pointer; -webkit-tap-highlight-color: transparent; }
.ob-art { display:block; filter: drop-shadow(6px 10px 12px rgba(0,0,0,.45)); transition: transform .22s cubic-bezier(.2,.8,.3,1), filter .3s; transform-origin:50% 80%; }
.ob-art svg, .ob-art img { display:block; width:100%; height:auto; }
.ob:hover .ob-art, .ob:focus-visible .ob-art { transform: translateY(-7px) rotate(-2.5deg) scale(1.05); filter: drop-shadow(8px 16px 14px rgba(0,0,0,.5)); }
.ob:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 10px; }
.ob.is-lit .ob-art { filter: drop-shadow(0 0 16px rgba(255,205,110,.95)) drop-shadow(0 0 4px rgba(255,230,160,.9)) brightness(1.12); }
body.lamp-off .ob-art { filter: drop-shadow(6px 10px 12px rgba(0,0,0,.6)) brightness(.72) saturate(.8); }
body.lamp-off .ob.is-lit .ob-art { filter: drop-shadow(0 0 14px rgba(150,180,255,.8)) brightness(.95); }
.book-obj .ob-art img { border-radius:2px; box-shadow: 3px 5px 10px rgba(0,0,0,.5); }
.tray-label { display:none; }
.lamp[aria-pressed] {}

/* handwritten tooltip */
.tip {
  position:absolute; z-index:3; white-space:nowrap; pointer-events:none;
  font-family: var(--hand); font-weight:600; font-size:18px; line-height:1;
  color:#4a3a12; background: var(--sticky); padding:6px 10px 5px;
  box-shadow: 3px 5px 8px rgba(0,0,0,.4); transform: rotate(-2deg) translateY(4px);
  opacity:0; transition: opacity .18s ease, transform .18s ease;
  bottom: calc(100% + 6px);
}
[data-side="l"] .tip { left: 0; } [data-side="r"] .tip { right: 0; transform: rotate(2deg) translateY(4px); }
.ob:hover .tip, .ob:focus-visible .tip, .ob.tip-on .tip { opacity:1; transform: rotate(-2deg) translateY(0); }
[data-side="r"] .ob:hover .tip, [data-side="r"] .ob:focus-visible .tip, [data-side="r"] .ob.tip-on .tip { transform: rotate(2deg); }
.lamp .tip, .lanyard .tip, .clock .tip, .calculator .tip { bottom:auto; top: calc(100% + 6px); }

/* object positions (desktop) — rail lives mid-left, book/box mid-right */
.lamp { top:-1%; left:-1%; width:130px; }
.calculator { top:9%; right:2.5%; width:96px; transform:rotate(7deg); }
.mug { bottom:16%; left:3%; width:96px; transform:rotate(-4deg); }
.stamp { top:auto; bottom:31%; left:2.5%; width:104px; transform:rotate(-8deg); }
.pen { bottom:7%; left:14%; width:130px; transform:rotate(12deg); }
.stickies { bottom:22%; right:3.5%; width:104px; transform:rotate(5deg); }
.lanyard { top:-2%; right:17%; width:96px; transform:rotate(9deg); }
.phone { bottom:4%; right:8%; width:64px; transform:rotate(-14deg); }
.book-obj { top:47%; right:2.8%; left:auto; width:86px; transform:rotate(-7deg); }
.box { top:31%; right:2.5%; width:120px; transform:rotate(4deg); }
.cert { top:62%; right:3%; width:70px; transform:rotate(-5deg); }
.clock { top:2.2%; left:50%; margin-left:-210px; transform:rotate(-3deg); width:auto; }
.clock .ob { width:auto; }
.clock-face { box-shadow:5px 8px 14px rgba(0,0,0,.5); }
.mug .ob-art { position:relative; }
.steam { position:absolute; left:34%; top:2%; width:30%; height:60%; pointer-events:none; opacity:0; transition:opacity .3s; }
.steam i { position:absolute; bottom:0; width:6px; height:26px; border-radius:6px; background: linear-gradient(to top, rgba(255,255,255,.65), rgba(255,255,255,0)); filter: blur(3px); animation: steam 2.2s ease-in-out infinite; }
.steam i:nth-child(1){ left:6%; animation-delay:0s } .steam i:nth-child(2){ left:44%; animation-delay:.7s } .steam i:nth-child(3){ left:78%; animation-delay:1.3s }
@keyframes steam { 0% { transform: translateY(8px) scaleX(1); opacity:0 } 30% { opacity:.9 } 100% { transform: translateY(-40px) scaleX(2.2) translateX(8px); opacity:0 } }
.mug .ob:hover .steam, .mug .ob:focus-visible .steam, .mug .ob.tip-on .steam { opacity:1; }
.mug .tip { bottom: calc(100% + 18px); }

/* ---- fixed UI polish ---- */
.hurry-link { background:#0e241d; border:1px solid rgba(244,236,216,.5); box-shadow: 0 6px 16px rgba(0,0,0,.55); backdrop-filter:none; transition: all .25s ease; z-index:130; }
.hurry-link .h-short { display:none; }
.hurry-link.is-tag { font-size:11px; padding:5px 10px; }
.hurry-link.is-tag .h-full { display:none; }
.hurry-link.is-tag .h-short { display:inline; }
.resume-tag { z-index:130; }

/* ---- scene gaps: at most ~30vh of bare desk between scenes ---- */
.scene { min-height:auto; padding: 8vh 5vw; }
.scene-1, .scene-3, .scene-4, .scene-5 { min-height:100vh; }
.scene-2 { padding-top:6vh; padding-bottom:12vh; min-height:70vh; }
.scene-5b { padding-top:4vh; padding-bottom:10vh; }
.scene-6 { padding-top:6vh; padding-bottom:10vh; }
.scene-7 { padding-top:8vh; padding-bottom:10vh; }
.scene-8 { padding-top:6vh; padding-bottom:14vh; }
@media(max-width:820px){ .scene-1,.scene-3,.scene-4,.scene-5 { min-height:auto; } .scene-3 { padding-top:60px; padding-bottom:60px; } .scene-7 { min-height:0; padding-top:80px; padding-bottom:90px; } }

/* "Close of books" moves below the clock */
.kicker { top: max(112px, 15vh); }

/* hero: warm-graded polaroid */
.photo-clip { background:#faf3e3; padding:6px 6px 26px; }
.photo-clip img, .photo-clip video { width:100%; height:100%; object-fit:cover; object-position:50% 25%; display:block; background:#2a1d10; filter: sepia(.28) saturate(1.12) contrast(1.04) brightness(1.02); }
.photo-clip::after { content:""; position:absolute; inset:6px 6px 26px; background: linear-gradient(135deg, rgba(255,170,70,.28), rgba(255,200,120,.06) 55%, rgba(30,15,0,.2)); mix-blend-mode: multiply; pointer-events:none; }
.polaroid-cap { position:absolute; left:0; right:0; bottom:3px; text-align:center; font-family:var(--hand); font-weight:600; font-size:15px; color:#5a4a2e; }

/* folder inside: index of contents */
.ix-contents { margin-top:18px; max-width:46%; }
.ixc-head { font-family:var(--mono); font-size:12px; letter-spacing:.16em; color:#8a6a3a; border-bottom:1px solid rgba(0,0,0,.15); padding-bottom:6px; margin-bottom:8px; }
.ixc-list, .index-rail ol { list-style:none; }
.ixc-list li, .index-rail li { display:flex; gap:9px; align-items:baseline; font-family:var(--mono); font-size:13px; line-height:1.9; color:#4a3f2c; }
.chk { position:relative; flex:0 0 14px; width:14px; height:14px; border:1.5px solid currentColor; border-radius:2px; opacity:.7; top:2px; }
li.done .chk { border-color: var(--red); opacity:1; }
li.done .chk::after { content:"✓"; position:absolute; left:1px; top:-7px; font-size:20px; font-weight:700; color:var(--red); font-family:var(--hand); }
li.done .ix-t { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness:1.5px; }
.index-rail {
  position:fixed; left:14px; top:22%; z-index:55; width:150px;
  background: rgba(244,236,216,.94); padding:12px 14px 10px; border-radius:3px;
  box-shadow: 4px 8px 16px rgba(0,0,0,.45); transform: rotate(-1.2deg);
  display:none;
}
.index-rail .ir-title { font-family:var(--mono); font-size:11px; letter-spacing:.2em; color:#8a6a3a; margin-bottom:4px; }
.index-rail li { font-size:12px; line-height:1.75; color:#4a3f2c; cursor:pointer; }
.index-rail li button { all:unset; display:flex; gap:9px; align-items:baseline; cursor:pointer; }
.index-rail li button:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.index-rail li.now .ix-t { font-weight:700; color:#16342a; }
@media(min-width:1150px){ .index-rail { display:block; } .index-rail[hidden] { display:none; } }

/* ---- evidence: fanned stack ---- */
.case-stage { position:relative; width:min(1100px,94vw); height:min(66vh,560px); min-height:420px; display:flex; justify-content:center; align-items:center; }
.case-folder { position:absolute; left:50%; top:50%; width: clamp(230px, 24vw, 310px); aspect-ratio: 3/3.95; margin:0; transform:none; transition: box-shadow .25s; padding: 12% 7% 7%; }
.case-folder:hover, .case-folder:focus-visible { transform:none; box-shadow: 10px 16px 30px rgba(0,0,0,.55), 0 0 0 3px rgba(201,162,39,.65); }
.cf-art { width:74%; margin-bottom:12px; flex:1; display:flex; align-items:center; justify-content:center; min-height:0; }
.cf-art svg { width:auto; max-width:100%; height:100%; max-height:100%; }
.cf-art-book img { height:100%; width:auto; max-width:78%; box-shadow:3px 6px 14px rgba(0,0,0,.4); border-radius:2px; }
.cf-art-box svg { width:100%; height:auto; }
.cf-stamp { font-size:clamp(15px,1.9vw,21px); right:4%; top:16%; border-width:3px; padding:4px 10px; background:rgba(217,185,120,.55); }
.cf-hover { bottom:-18px; }
.stamp-arm { display:none; }
.shake { animation: shake .22s linear 1; }
@keyframes shake { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-5px,2px)} 40%{transform:translate(5px,-2px)} 60%{transform:translate(-3px,1px)} 80%{transform:translate(3px,-1px)} }
@media(max-width:820px){
  .case-stage { height:auto; min-height:0; flex-direction:column; gap:46px; width:100%; }
  .case-folder { position:relative; left:auto; top:auto; width:min(280px,76vw); transform:rotate(var(--tilt,-2deg)); }
}

/* ---- binder: pages swap one at a time ---- */
.dv-lead, .dv-body { will-change: opacity; }

/* ---- game ---- */
.stopwatch { float:right; font-family:var(--mono); color:var(--red); font-weight:700; font-size:14px; }
.stopwatch.done { color:#2e7d48; }
.ledger-sub { overflow:hidden; }

/* ---- testimonials: signatures ---- */
.sig { display:block; width:150px; height:34px; margin-top:12px; overflow:visible; }
.sig-t { font-family: var(--hand); font-weight:700; font-size:34px; fill:transparent; stroke:#1d2a52; stroke-width:.9; stroke-dasharray:420; stroke-dashoffset:420; }
.letter.signed .sig-t { animation: signdraw 1.8s ease forwards; }
@keyframes signdraw { 0% { stroke-dashoffset:420; fill:transparent } 70% { fill:transparent } 100% { stroke-dashoffset:0; fill:#1d2a52 } }
body.lamp-off .sig-t { stroke:#1d2a52; }

/* ---- ending ---- */
.reopen { display:block; margin:20px auto 0; background:none; border:0; font-family:var(--mono); font-size:13px; letter-spacing:.06em; color:#6a4a1a; text-decoration:underline; padding:8px 12px; }
.reopen:hover { color: var(--red); }

/* ---- stamp mode ---- */
body.stamp-mode, body.stamp-mode * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='56' viewBox='0 0 48 56'><ellipse cx='24' cy='11' rx='11' ry='8' fill='%237a4a21'/><rect x='16' y='15' width='16' height='16' rx='3' fill='%239c6a33'/><rect x='9' y='31' width='30' height='9' rx='2' fill='%233a2a1a'/><rect x='9' y='40' width='30' height='5' rx='2' fill='%23b3392f'/></svg>") 24 46, crosshair !important; }
body.stamp-mode [data-obj="stamp"], body.stamp-mode [data-obj="stamp"] * { cursor:pointer !important; }
.stamp-hint { position:fixed; left:50%; bottom:20px; transform:translateX(-50%); z-index:150; background:#0e241d; color:#f4ecd8; font-family:var(--mono); font-size:12.5px; padding:8px 14px; border-radius:999px; border:1px solid var(--gold); box-shadow:0 6px 16px rgba(0,0,0,.55); }
.verified-mark { position:fixed; z-index:140; pointer-events:none; font-family:var(--mono); font-weight:700; letter-spacing:.14em; font-size:28px; color:var(--red); border:4px solid var(--red); border-radius:6px; padding:6px 16px; background: rgba(255,255,255,.04); mix-blend-mode: normal; text-shadow:0 0 1px rgba(179,57,47,.6); mask-image: repeating-linear-gradient(45deg, rgba(0,0,0,1) 0 3px, rgba(0,0,0,.84) 3px 6px); }

/* ---- toast, signature overlay ---- */
.toast { position:fixed; left:50%; bottom:92px; transform:translateX(-50%) rotate(-1deg); z-index:160; background:var(--sticky); color:#4a3a12; font-family:var(--hand); font-weight:600; font-size:22px; padding:8px 16px; box-shadow:4px 6px 12px rgba(0,0,0,.45); max-width:80vw; text-align:center; }
.sig-overlay { position:fixed; left:50%; bottom:11vh; transform:translateX(-50%); width:min(640px,88vw); z-index:90; pointer-events:none; }
.sig-overlay svg { width:100%; height:auto; overflow:visible; }
.sig-big { font-family:var(--hand); font-weight:700; font-size:78px; fill:transparent; stroke:#f4ecd8; stroke-width:1.2; stroke-dasharray:520; stroke-dashoffset:520; }
.sig-under { stroke:#f4ecd8; stroke-width:2.5; stroke-linecap:round; stroke-dasharray:640; stroke-dashoffset:640; }
.sig-overlay.go .sig-big { animation: sigdraw 2.2s ease forwards; }
.sig-overlay.go .sig-under { animation: sigunder .7s ease 1.9s forwards; }
@keyframes sigdraw { 0% { stroke-dashoffset:520; fill:transparent } 75% { fill:transparent } 100% { stroke-dashoffset:0; fill:#f4ecd8 } }
@keyframes sigunder { to { stroke-dashoffset:0 } }

/* ---- object modal ---- */
.obj-modal { position:fixed; inset:0; z-index:210; background:rgba(8,18,14,.78); display:flex; align-items:center; justify-content:center; padding:4vh 4vw; overflow:auto; }
.om-card { position:relative; width:min(520px,94vw); max-height:92vh; overflow:auto; background:var(--paper); background-image:repeating-linear-gradient(0deg,rgba(0,0,0,.02) 0 1px,transparent 1px 4px); border-radius:4px; box-shadow:14px 24px 60px rgba(0,0,0,.65); padding:clamp(22px,4vw,34px); color:var(--ink); }
.om-close { position:absolute; top:10px; right:10px; width:38px; height:38px; border-radius:50%; border:2px solid var(--ink); background:var(--paper); font-size:15px; z-index:5; }
.om-title { font-family:var(--serif); font-weight:700; font-size:26px; margin-bottom:6px; }
.om-sub { font-family:var(--mono); font-size:12px; color:#6a5a3a; letter-spacing:.06em; margin-bottom:14px; }
.om-btn { display:inline-block; margin-top:16px; font-family:var(--mono); font-weight:700; font-size:13px; letter-spacing:.08em; color:var(--red); border:3px solid var(--red); border-radius:5px; padding:9px 16px; background:none; text-decoration:none; transform:rotate(-1.5deg); }
.om-btn:hover { background:rgba(179,57,47,.1); }
.om-btn.solid { background:var(--red); color:#fff; }
.om-btn.solid:hover { background:#982f26; }
.om-center { text-align:center; }

/* calculator tape */
.om-calculator { background:#d9d2c2; }
.calc-wrap { display:flex; flex-direction:column; align-items:center; }
.calc-top svg { width:120px; height:auto; display:block; filter:drop-shadow(4px 6px 8px rgba(0,0,0,.4)); }
.tape-strip { width:min(330px,80vw); overflow:hidden; background:var(--paper-hi); background-image:repeating-linear-gradient(0deg,rgba(0,0,0,.025) 0 1px,transparent 1px 5px); box-shadow:4px 8px 14px rgba(0,0,0,.3); padding:0 22px; font-family:var(--mono); margin-top:-4px; clip-path: polygon(0 0,100% 0,100% 100%,96% 99%,92% 100%,88% 99%,84% 100%,80% 99%,76% 100%,72% 99%,68% 100%,64% 99%,60% 100%,56% 99%,52% 100%,48% 99%,44% 100%,40% 99%,36% 100%,32% 99%,28% 100%,24% 99%,20% 100%,16% 99%,12% 100%,8% 99%,4% 100%,0 99%); }
.tape-strip .tape-inner { padding:18px 0 26px; }
.tape-strip .tape-line { font-size:15px; opacity:0; }
.tape-strip .tape-total { opacity:0; margin-top:14px; font-size:14px; }
.tape-strip .tape-title { margin-bottom:8px; }
.calc-shake { animation: calcshake .12s linear infinite; }
@keyframes calcshake { 0%,100%{transform:translateY(0)} 50%{transform:translateY(1.5px)} }

/* phone */
.om-phone { background:transparent; box-shadow:none; padding:0; width:auto; overflow:visible; }
.om-phone .om-close { top:-6px; right:-6px; background:var(--paper); }
.phone-scene { perspective:1200px; display:flex; justify-content:center; }
.phone-3d { position:relative; width:min(290px,78vw); aspect-ratio: 9/18.2; transform-style:preserve-3d; transform:rotateY(180deg); }
.ph-face { position:absolute; inset:0; border-radius:34px; backface-visibility:hidden; -webkit-backface-visibility:hidden; box-shadow:10px 20px 40px rgba(0,0,0,.6); }
.ph-back { background:linear-gradient(145deg,#25272d,#14151a); transform:rotateY(180deg); border:3px solid #0c0d10; }
.ph-back::before { content:""; position:absolute; top:5%; left:7%; width:30%; aspect-ratio:1; border-radius:22%; background:#0c0d10; box-shadow:inset 0 0 0 4px #2d3036; }
.ph-front { background:#fff; border:7px solid #111216; overflow:hidden; display:flex; flex-direction:column; color:#262626; font-family:var(--sans); }
.ig-top { display:flex; align-items:center; gap:10px; padding:12px 12px 6px; }
.ig-av { width:46px; height:46px; border-radius:50%; background:conic-gradient(#f58529,#dd2a7b,#8134af,#515bd4,#f58529); display:flex; align-items:center; justify-content:center; flex:0 0 46px; }
.ig-av span { width:40px; height:40px; border-radius:50%; background:#16342a; color:#f4ecd8; font-family:var(--serif); font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:center; border:2px solid #fff; }
.ig-handle { font-weight:700; font-size:13.5px; line-height:1.2; }
.ig-handle small { display:block; font-weight:400; color:#737373; font-size:11px; }
.ig-stats { display:flex; justify-content:space-around; padding:6px 8px 8px; text-align:center; border-bottom:1px solid #efefef; }
.ig-stats b { display:block; font-size:16px; font-family:var(--mono); }
.ig-stats span { font-size:10.5px; color:#737373; }
.ig-follow { display:block; margin:8px 12px 4px; text-align:center; background:#0095f6; color:#fff; text-decoration:none; font-weight:700; font-size:13px; border-radius:8px; padding:6px; }
.ig-chart { padding:6px 12px 2px; }
.ig-chart svg { width:100%; height:auto; display:block; overflow:visible; }
.ig-chart-cap { display:flex; justify-content:space-between; font-family:var(--mono); font-size:10px; color:#737373; }
.ig-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; margin-top:auto; }
.ig-tile { aspect-ratio:1; background:linear-gradient(135deg,#e8cd95,#cbaa68); overflow:hidden; position:relative; }
.ig-tile:nth-child(2n) { background:linear-gradient(135deg,#16342a,#2a5a48); }
.ig-tile:nth-child(3n) { background:linear-gradient(135deg,#c9a227,#e6c765); }
.ig-tile img { width:100%; height:100%; object-fit:cover; display:block; position:absolute; inset:0; }

/* id card */
.om-lanyard { overflow:hidden; padding-top:0; text-align:center; background:#e9e1cc; }
.id-scene { perspective:1000px; height:360px; position:relative; display:flex; justify-content:center; }
.id-strap { position:absolute; top:0; left:50%; width:30px; height:130px; margin-left:-15px; background:linear-gradient(90deg,#7a1f1f,#9c2a2a,#7a1f1f); }
.id-card { position:absolute; top:112px; left:50%; width:190px; height:240px; margin-left:-95px; transform-origin:50% -20px; transform-style:preserve-3d; }
.id-card::before { content:""; position:absolute; top:-26px; left:50%; width:20px; height:26px; margin-left:-10px; border:4px solid #9aa0a8; border-bottom:none; border-radius:10px 10px 0 0; }
.id-face { position:absolute; inset:0; border-radius:10px; backface-visibility:hidden; -webkit-backface-visibility:hidden; box-shadow:6px 12px 22px rgba(0,0,0,.45); padding:14px; text-align:left; }
.id-front { background:var(--paper-hi); border-top:34px solid #16342a; }
.id-front .idn { font-family:var(--serif); font-weight:700; font-size:17px; margin-top:6px; }
.id-front .idr { font-family:var(--mono); font-size:11px; color:#6a5a3a; margin-top:4px; }
.id-front .idp { width:56px; height:56px; border-radius:50%; background:#c9b98a; margin-top:14px; display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-weight:700; font-size:20px; color:#16342a; }
.id-front .idb { font-family:var(--mono); font-size:10px; letter-spacing:.14em; color:#8a6a3a; margin-top:14px; }
.id-back { background:#16342a; color:#f4ecd8; transform:rotateY(180deg); display:flex; flex-direction:column; justify-content:center; gap:10px; }
.id-back p { font-family:var(--serif); font-weight:700; font-size:20px; line-height:1.2; }
.id-back .gold { color:var(--gold); font-family:var(--mono); font-size:13px; letter-spacing:.06em; }
.id-back .dot { color:var(--gold); }

/* book */
.om-book { background:#1b1710; color:#f4ecd8; }
.om-book .om-close { background:#f4ecd8; }
.om-book .om-title { color:#f4ecd8; }
.book3d-scene { perspective:1400px; display:flex; justify-content:center; padding:10px 0 4px; min-height:380px; }
.book3d { position:relative; width:210px; height:336px; transform-style:preserve-3d; transform:translateX(0); }
.bk-back { position:absolute; inset:0; background:linear-gradient(160deg,#1d4437,#16342a); border-radius:3px 8px 8px 3px; box-shadow:8px 14px 30px rgba(0,0,0,.6); padding:22px 18px; display:flex; flex-direction:column; justify-content:center; gap:12px; color:#f4ecd8; }
.bk-back .bq { font-family:var(--serif); font-size:14.5px; line-height:1.5; font-style:italic; }
.bk-back .bs { font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; color:var(--gold); }
.bk-cover { position:absolute; inset:0; transform-origin:left center; transform-style:preserve-3d; cursor:pointer; }
.bk-face { position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:3px 8px 8px 3px; overflow:hidden; box-shadow:8px 14px 30px rgba(0,0,0,.55); }
.bk-face img { width:100%; height:100%; object-fit:cover; display:block; }
.bk-inside { transform:rotateY(180deg); background:#efe6cf; padding:22px 16px; font-family:var(--mono); color:#4a3f2c; font-size:11px; line-height:1.7; display:flex; flex-direction:column; justify-content:center; }
.om-book .om-sub { color:#bfb392; }

/* sticky form */
.om-stickies { background:var(--sticky); transform:rotate(-1.2deg); box-shadow:10px 18px 40px rgba(0,0,0,.6); }
.om-stickies .om-title { font-family:var(--hand); font-size:34px; color:#4a3a12; }
.note-form label { display:block; font-family:var(--mono); font-size:12px; letter-spacing:.06em; color:#5a4a1a; margin-top:12px; }
.note-form input { display:block; width:100%; margin-top:4px; font-family:var(--hand); font-size:21px; font-weight:600; background:rgba(255,255,255,.4); border:0; border-bottom:2px solid #8a6a1a; padding:5px 6px; color:#2b2418; }
.note-form input:focus-visible { outline:3px solid var(--gold); outline-offset:1px; }
.note-form .fine { font-family:var(--mono); font-size:11px; color:#6a5a2a; margin-top:12px; }

/* drawer */
.drawer-handle { position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:125; width:84px; height:20px; background:none; border:0; padding:0; cursor:pointer; opacity:.55; transition:opacity .2s; }
.drawer-handle > span:first-child { position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:44px; height:12px; border-radius:8px 8px 0 0; background:linear-gradient(#e6c765,#a87f2c); box-shadow:0 -2px 6px rgba(0,0,0,.4); }
.drawer-handle:hover, .drawer-handle:focus-visible { opacity:1; }
.drawer-handle .tip { bottom:18px; left:50%; transform:translateX(-50%) rotate(-2deg) translateY(4px); }
.drawer-handle:hover .tip, .drawer-handle:focus-visible .tip { opacity:1; transform:translateX(-50%) rotate(-2deg); }
.drawer { position:fixed; left:0; right:0; bottom:0; z-index:205; background: linear-gradient(#3a2a1a,#2a1d10); border-top:6px solid #5a4020; box-shadow:0 -14px 40px rgba(0,0,0,.65); padding:22px 4vw 26px; max-height:78vh; overflow:auto; }
.drawer-title { font-family:var(--hand); font-weight:700; font-size:clamp(28px,4vw,40px); color:#f4ecd8; text-align:center; margin-bottom:14px; }
.drawer-close { position:absolute; top:10px; right:14px; width:38px; height:38px; border-radius:50%; border:2px solid #f4ecd8; background:none; color:#f4ecd8; font-size:15px; }
.drawer-items { list-style:none; display:flex; flex-wrap:wrap; gap:clamp(14px,2.4vw,30px); justify-content:center; }
.d-item { width:150px; text-align:center; transform: rotate(var(--r,0deg)); transition: transform .2s; }
.d-item:hover { transform: rotate(0deg) translateY(-6px) scale(1.05); }
.d-item svg { width:96px; height:96px; display:block; margin:0 auto 6px; filter: drop-shadow(4px 8px 8px rgba(0,0,0,.5)); }
.d-item b { display:block; font-family:var(--serif); color:#f4ecd8; font-size:15px; }
.d-item span { font-family:var(--hand); color:#e6c765; font-size:17px; font-weight:600; line-height:1.15; display:block; }
.d-fun { width:230px; background:var(--sticky); color:#4a3a12; padding:14px; box-shadow:4px 8px 14px rgba(0,0,0,.5); transform:rotate(2deg); }
.d-fun b { font-family:var(--mono); font-size:11px; letter-spacing:.14em; color:#8a6a1a; }
.d-fun p { font-family:var(--hand); font-size:22px; font-weight:600; line-height:1.15; margin-top:6px; }

/* ---- case overlay: result first, then a visual ---- */
.ov-result { margin:6px 0 18px; padding:12px 0; border-top:2px solid var(--ink); border-bottom:2px solid var(--ink); display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; }
.ov-big { font-family:var(--serif); font-weight:700; font-size:clamp(40px,8vw,64px); line-height:1; color:var(--red); letter-spacing:-.01em; }
.ov-bigsub { font-family:var(--mono); font-size:13px; color:#4a3f2c; letter-spacing:.04em; }
.ov-visual { margin-bottom:20px; }
.v-chart { background:var(--paper-hi); box-shadow:3px 6px 12px rgba(0,0,0,.2); padding:14px 16px 8px; }
.v-chart svg { width:100%; height:auto; overflow:visible; display:block; }
.v-count { font-family:var(--mono); font-weight:700; font-size:22px; }
.v-count small { font-weight:400; font-size:12px; color:#6a5a3a; margin-left:8px; }
.v-shots { display:flex; gap:12px; margin-top:12px; }
.v-shots figure { flex:1; aspect-ratio:4/5; background:var(--paper-hi); box-shadow:3px 6px 12px rgba(0,0,0,.25); transform:rotate(var(--r,-1.5deg)); overflow:hidden; }
.v-shots img { width:100%; height:100%; object-fit:cover; display:block; }
.v-pl { background:var(--paper-hi); padding:14px 18px; font-family:var(--mono); box-shadow:3px 6px 12px rgba(0,0,0,.2); background-image:repeating-linear-gradient(0deg,transparent 0 29px,rgba(179,57,47,.14) 29px 30px); }
.v-pl .row { display:flex; align-items:baseline; font-size:14px; padding:5px 0; opacity:0; }
.v-pl .row .dots { flex:1; border-bottom:2px dotted rgba(0,0,0,.25); margin:0 8px; transform:translateY(-3px); }
.v-pl .row.total { border-top:2px solid var(--ink); margin-top:6px; padding-top:8px; font-weight:700; font-size:16px; }
.v-pl .row.total em { font-family:var(--hand); color:var(--red); font-size:22px; font-style:normal; }
.v-pl .note { font-size:10.5px; color:#8a7a5a; margin-top:8px; opacity:0; }
.v-team { display:flex; gap:7px; margin-top:14px; flex-wrap:wrap; align-items:center; }
.v-team i { width:32px; height:32px; border-radius:50%; background:#c9b98a; border:2px solid var(--paper); box-shadow:1px 2px 4px rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; font-style:normal; font-family:var(--serif); font-weight:700; font-size:12px; color:#16342a; opacity:0; }
.v-team i:first-child { background:var(--red); color:#fff; }
.v-team span { font-family:var(--hand); font-size:19px; color:var(--red); font-weight:600; margin-left:6px; }
.v-book { display:flex; justify-content:center; padding:10px 0 6px; perspective:900px; }
.v-book .bk { position:relative; width:150px; transform:rotateY(-24deg) rotateX(4deg); transform-style:preserve-3d; }
.v-book .bk img { width:100%; display:block; border-radius:2px 5px 5px 2px; box-shadow:10px 14px 24px rgba(0,0,0,.5), inset -3px 0 6px rgba(0,0,0,.35); }
.v-book .bk::after { content:""; position:absolute; left:-9px; top:2px; bottom:2px; width:10px; background:linear-gradient(90deg,#0e241d,#1d4437); transform:rotateY(-90deg); transform-origin:right; }
.v-book .bk-stamp { position:absolute; left:50%; bottom:14%; transform:translateX(-50%) rotate(-9deg) scale(0); font-family:var(--mono); font-weight:700; color:var(--red); border:3px solid var(--red); background:rgba(250,243,227,.92); padding:5px 9px; font-size:12px; letter-spacing:.06em; white-space:nowrap; text-align:center; line-height:1.3; }

/* ---- certified badge etc. ---- */
.cert[hidden] { display:none; }

/* ---- MOBILE: objects become a tray ---- */
@media (max-width: 820px) {
  body { padding-bottom: 86px; }
  #desk { display:flex; position:fixed; left:0; right:0; top:auto; bottom:0; height:auto; z-index:100; background:rgba(10,24,19,.96); border-top:2px solid rgba(201,162,39,.5); box-shadow:0 -8px 20px rgba(0,0,0,.5); padding:6px 8px 6px; gap:6px; overflow-x:auto; overflow-y:hidden; pointer-events:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  #desk::-webkit-scrollbar { display:none; }
  .desk-obj, .lamp, .calculator, .mug, .stamp, .pen, .stickies, .lanyard, .phone, .book-obj, .box, .cert { position:static !important; transform:none !important; width:64px; flex:0 0 64px; margin:0; }
  .desk-obj[hidden] { display:none; }
  .desk-obj .ob { padding:2px 0 0; text-align:center; }
  .ob-art { filter:none; height:44px; display:flex; align-items:center; justify-content:center; }
  .ob-art svg { height:44px; width:auto; max-width:60px; }
  .ob-art img { height:44px; width:auto; }
  .tray-label { display:block; font-family:var(--mono); font-size:10px; color:#f4ecd8; margin-top:2px; letter-spacing:.04em; }
  .tip { display:none; }
  .clock { position:fixed !important; top:8px; left:12px; width:auto; flex:none; z-index:101; }
  .clock .ob-art { height:auto; }
  .clock .ob { padding:0; }
  .steam { display:none; }
  .hurry-link { top:66px; bottom:auto; right:12px; }
  .resume-tag { bottom:96px; left:12px; }
  .desk-menu { bottom:96px; right:12px; }
  .drawer-handle { bottom:80px; z-index:126; }
  .index-rail { display:none !important; }
  .ix-contents { max-width:100%; }
  .toast { bottom:100px; }
  .stamp-hint { bottom:96px; width:86vw; text-align:center; border-radius:10px; }
  .om-card { width:94vw; }
  .photo-clip::after { inset:6px 6px 22px; }
}
@media (max-width:820px){ .kicker { top:120px; } }

@media (prefers-reduced-motion: reduce) {
  .steam i { animation:none; opacity:.6; }
  .sig-t, .sig-big, .sig-under { animation:none !important; stroke-dashoffset:0 !important; fill:currentColor; }
  .sig-big { fill:#f4ecd8; } .sig-t { fill:#1d2a52; }
  .shake { animation:none; }
}

.ig-tile img { object-position:50% 20%; }
.ig-tile { display:block; }
.reel-links { font-family:var(--mono); font-size:12px; color:#6a5a3a; margin-top:12px; display:flex; gap:12px; flex-wrap:wrap; align-items:baseline; }
.v-shots figure a { display:block; width:100%; height:100%; }
.v-shots figure { aspect-ratio:3/4; }
.ph-front .ig-grid { margin-top:auto; }

.photo-clip video { aspect-ratio:auto; }
.clock { left:190px; margin-left:0; }
@media(max-width:1100px){ .clock { left:150px; } }
@media(max-width:820px){
  .hurry-link { top:10px; right:12px; font-size:11px; padding:5px 10px; }
  .hurry-link .h-full { display:none; } .hurry-link .h-short { display:inline; }
  .clock { left:12px !important; }
  .kicker { top:72px; }
}
@media(max-width:820px){
  .ix-contents { display:none; }
  .scene-1 { padding-top:104px; }
  .kicker { position:static; transform:none; margin-bottom:22px; text-align:center; white-space:normal; }
}

/* =====================================================================
   v3: calm, bright, organised. A styled flat-lay.
   ===================================================================== */
:root { --desk:#8d5c36; --desk-dark:#6c4326; --osz: clamp(104px, min(11vw, 17vh), 168px); --ink-soft:#3b3224; }
body { background:#7a4c2a; }
body.lamp-off { background:#4a5a7c; }

/* lighting: mid-tone walnut, a big warm lamp pool, corner vignette only */
#desk-bg {
  background:
    repeating-linear-gradient(91deg, rgba(55,28,10,.10) 0 2px, transparent 2px 10px, rgba(255,225,185,.06) 10px 12px, transparent 12px 22px),
    linear-gradient(180deg, #9d6b40 0%, #8d5c36 55%, #84532f 100%);
  filter:none; transition: filter .6s ease, background .6s ease;
}
#desk-bg .lamp-glow { background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(255,217,160,.34) 0%, rgba(255,217,160,.20) 45%, rgba(255,217,160,.07) 72%, transparent 92%); mix-blend-mode: normal; opacity:1; }
#desk-bg::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(ellipse 120% 110% at 50% 50%, transparent 66%, rgba(45,22,6,.34) 100%); }
#desk-bg .moon-glow { background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(205,222,255,.30), rgba(170,195,245,.14) 55%, transparent 90%), rgba(86,118,186,.50); mix-blend-mode: normal; opacity:0; }
body.lamp-off #desk-bg { filter: saturate(.55) brightness(.92); }
body.lamp-off #desk-bg .lamp-glow { opacity:0; }
body.lamp-off #desk-bg .moon-glow { opacity:1; }

/* six objects, two columns, fixed homes */
#desk { position:fixed; inset:0; z-index:60; pointer-events:none; }
.desk-col { position:absolute; top:76px; bottom:92px; width:var(--osz); display:flex; flex-direction:column; justify-content:space-evenly; align-items:center; }
.dc-l { left:clamp(26px, 2.6vw, 52px); } .dc-r { right:clamp(26px, 2.6vw, 52px); }
.desk-col .desk-obj { position:relative; inset:auto; width:var(--osz); height:var(--osz); margin:0; display:block; }
.desk-col .desk-obj .ob { width:100%; height:100%; }
.desk-col .lamp { transform:rotate(-3deg); } .desk-col .clock { transform:rotate(2deg); } .desk-col .mug { transform:rotate(-2deg); }
.desk-col .calculator { transform:rotate(3deg); } .desk-col .phone { transform:rotate(-4deg); } .desk-col .book-obj { transform:rotate(2deg); }
.desk-obj .ob-art { display:flex; align-items:center; justify-content:center; width:100%; height:100%; transform-origin:50% 60%;
  filter: drop-shadow(-1px -1px 0 rgba(255,244,220,.55)) drop-shadow(5px 9px 9px rgba(48,22,6,.42)); }
.desk-obj .ob-art svg { width:100%; height:100%; }
.desk-obj .ob-art img { width:100%; height:100%; object-fit:contain; box-shadow:none; border-radius:2px; }
.ob:hover .ob-art, .ob:focus-visible .ob-art { transform: translateY(-4px) scale(1.04); filter: drop-shadow(-1px -1px 0 rgba(255,244,220,.6)) drop-shadow(7px 13px 11px rgba(48,22,6,.46)); }
.ob.is-lit .ob-art { filter: drop-shadow(-1px -1px 0 rgba(255,244,220,.6)) drop-shadow(0 0 14px rgba(255,214,140,.95)) drop-shadow(4px 8px 8px rgba(48,22,6,.35)) brightness(1.06); }
body.lamp-off .ob-art { filter: drop-shadow(-1px -1px 0 rgba(220,232,255,.5)) drop-shadow(5px 9px 9px rgba(10,16,40,.5)) brightness(.95) saturate(.9); }
body.lamp-off .ob.is-lit .ob-art { filter: drop-shadow(0 0 12px rgba(170,200,255,.9)) brightness(1.05); }
.clock-face { width:100%; height:auto; aspect-ratio:1/0.8; display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:none; background:#1c2026; border-radius:14px; border:3px solid #cdbf9a; }
.desk-obj .clock .ob-art, .clock .ob-art { height:auto; align-items:center; }
#clock-time { font-size:clamp(18px, 2.1vw, 28px); }
/* captions under objects, never on content */
.desk-obj .tip { top:calc(100% + 4px); bottom:auto; left:50%; transform:translateX(-50%); white-space:nowrap; background:#fbf3e0; color:#2b2418; border-radius:6px; padding:3px 9px; font-size:15px; box-shadow:0 3px 8px rgba(40,20,6,.35); }
.desk-obj .ob:hover .tip, .desk-obj .ob:focus-visible .tip, .desk-obj .ob.tip-on .tip { opacity:1; transform:translateX(-50%); }
.mug .tip { bottom:auto; top:calc(100% + 4px); }

/* centre 60% is content only */
@media (min-width:901px) {
  #scroll-track { width:60vw; margin:0 auto; }
  .scene { padding-left:0; padding-right:0; }
}
.scene { min-height:0; padding:6vh 0; }
.scene-1, .scene-3, .scene-4, .scene-5 { min-height:100vh; }
.scene-2, .scene-5b, .scene-6, .scene-7, .scene-8 { padding-top:6vh; padding-bottom:6vh; min-height:0; }
.scene-2 { padding-top:3vh; }
#scroll-track > .scene { width:100%; }
.paper, .binder, .ledger, .tape, .report, .letters { max-width:100%; }

/* text that sits straight on the desk becomes a paper label (AA contrast on the lit desk) */
.scene-caption, .kicker, .stamp-hint, .scroll-pill { background:#fbf3e0; color:#2b2418; padding:6px 14px; border-radius:4px; box-shadow:0 4px 10px rgba(48,22,6,.3); }
.scroll-pill { border-radius:999px; }
.scene-caption { margin-bottom:18px; text-align:center; }

/* hero: kicker above the folder, chips below */
.scene-1 { gap:0; }
.kicker { position:static; order:-1; margin:0 0 18px; transform:none; left:auto; top:auto; font-size:15px; }
.hero-chips { list-style:none; display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:22px; }
.hero-chips li { background:#fbf3e0; color:#2b2418; font-family:var(--mono); font-size:14px; padding:7px 14px; border-radius:999px; box-shadow:0 3px 8px rgba(48,22,6,.3); }
.scroll-pill { position:static; margin-top:16px; }

/* paper / memo */
.paper { padding:32px 36px; }
.memo { max-width:620px; margin:0 auto; }
.letterhead { display:flex; gap:22px; align-items:center; justify-content:center; padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid rgba(43,36,24,.22); }
.lg { width:1em; height:1em; display:inline-block; vertical-align:middle; fill:currentColor; }
.lg-w, .lg-ink { width:auto; }
.letterhead .lg { width:84px; height:26px; color:#4a3f2c; opacity:.8; }
.lg-ink { width:96px; height:28px; color:#3b3224; }
.memo-line { font-size:18px; line-height:1.5; margin:10px 0; }
.chips { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0 14px; }
.chips li { display:flex; align-items:center; gap:8px; background:rgba(22,52,42,.08); border:1px solid rgba(43,36,24,.15); border-radius:10px; padding:10px 12px; font-size:14px; line-height:1.3; }
.chips li b { font-size:20px; font-family:var(--serif); margin-right:2px; }
.chips li .lg { width:42px; height:18px; flex:none; color:#3b3224; }
.fold summary { cursor:pointer; font-family:var(--mono); font-size:13px; color:#7a1f1f; text-decoration:underline; padding:6px 0; }
.fold .memo-body { font-size:15px; margin-top:8px; }

/* props live in their scene, in flow, never on the desk */
.prop-row { display:flex; justify-content:center; margin-top:16px; }
.prop .ob { display:inline-flex; align-items:center; gap:10px; width:auto; background:#fbf3e0; border-radius:999px; padding:5px 18px 5px 8px; box-shadow:0 4px 10px rgba(48,22,6,.3); color:#2b2418; }
.prop .ob-art { width:58px; height:44px; display:flex; align-items:center; justify-content:center; filter:drop-shadow(2px 3px 3px rgba(48,22,6,.35)); }
.prop .ob-art svg { width:100%; height:100%; }
.prop-label { font-family:var(--mono); font-size:13px; }
.prop .ob:hover .ob-art, .prop .ob:focus-visible .ob-art { transform:rotate(-4deg) scale(1.06); }
.prop-row-binder { margin-top:12px; }

/* tape: keep as is */

/* evidence carousel: one opaque folder */
.scene-4 { gap:0; }
.car { position:relative; width:min(100%, 520px); display:grid; grid-template-columns:44px 1fr 44px; align-items:center; gap:8px; }
.car-viewport { overflow:hidden; grid-column:2; padding:18px 0 24px; }
.car-track { display:flex; transition:transform .5s cubic-bezier(.2,.8,.3,1); }
.case-folder { position:relative !important; left:auto !important; top:auto !important; transform:none !important; flex:0 0 100%; width:100%; margin:0; height:auto; min-height:min(440px,58vh); display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:8px; padding:40px 28px 24px; background:linear-gradient(180deg,#e3c58a,#d4b06a); border:1px solid #a98642; border-radius:4px 14px 8px 8px; box-shadow:0 10px 24px rgba(48,22,6,.35), inset 0 1px 0 rgba(255,255,255,.5); color:#2b2418; opacity:1; text-align:center; }
.case-folder::before { content:""; position:absolute; left:18px; top:-18px; width:42%; height:20px; background:#d9b978; border:1px solid #a98642; border-bottom:0; border-radius:8px 8px 0 0; }
.cf-tab { position:absolute; left:30px; top:-14px; font-family:var(--mono); font-size:12px; letter-spacing:.08em; color:#4a3a1a; z-index:1; }
.cf-art { display:flex; align-items:center; justify-content:center; width:100%; height:clamp(120px,24vh,190px); }
.cf-art svg, .cf-art img { max-height:100%; width:auto; max-width:60%; height:100%; filter:drop-shadow(3px 6px 6px rgba(48,22,6,.35)); position:static; box-shadow:none; }
.cf-art img { height:100%; width:auto; object-fit:contain; }
.cf-name { font-family:var(--serif); font-size:clamp(24px,3vw,32px); font-weight:700; line-height:1.15; position:static; }
.cf-num { font-family:var(--serif); font-size:clamp(46px,6vw,68px); font-weight:800; line-height:1; color:#7a1f1f; }
.cf-sub { font-family:var(--mono); font-size:14px; color:#4a3a1a; }
.cf-open { font-family:var(--mono); font-size:13px; color:#4a3a1a; text-decoration:underline; margin-top:2px; }
.cf-stamp { position:absolute !important; right:18px; top:28px; left:auto !important; bottom:auto !important; border:3px solid #b3392f; color:#b3392f; font-family:var(--mono); font-weight:700; font-size:16px; padding:4px 10px; border-radius:4px; transform:rotate(12deg) scale(2.4); opacity:0; background:rgba(255,248,230,.6); }
.case-folder.stamped .cf-stamp { animation: land .22s cubic-bezier(.5,0,.9,.4) forwards; }
@keyframes land { 0% { opacity:0; transform:rotate(12deg) scale(2.4); } 100% { opacity:1; transform:rotate(12deg) scale(1); } }
.car-arrow { width:44px; height:44px; border-radius:50%; border:0; background:#fbf3e0; color:#2b2418; font-size:28px; line-height:1; box-shadow:0 4px 10px rgba(48,22,6,.35); grid-row:1; }
#car-prev { grid-column:1; } #car-next { grid-column:3; }
.car-arrow:hover { background:#fff; }
.car-dots { grid-column:2; display:flex; gap:8px; justify-content:center; margin-top:2px; }
.car-dots i { width:9px; height:9px; border-radius:50%; background:rgba(251,243,224,.55); border:1px solid rgba(48,22,6,.3); }
.car-dots i.on { background:#fbf3e0; transform:scale(1.25); }

/* binder pages: headline + number */
.dv-lead { font-size:clamp(24px,3vw,34px); line-height:1.2; }
.dv-num { font-family:var(--serif); font-weight:800; font-size:clamp(48px,6.5vw,72px); line-height:1; color:#7a1f1f; margin-top:18px; }
.dv-num small { display:block; font-family:var(--mono); font-weight:400; font-size:15px; color:#4a3f2c; margin-top:8px; }
.binder-label { display:flex; align-items:center; gap:10px; justify-content:center; flex-wrap:wrap; }
.binder-label .lg { width:74px; height:22px; }

/* earlier: logo tiles */
.index-stack { width:100%; }
.logo-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; width:min(100%,640px); margin:0 auto; }
.logo-tile { background:#fbf3e0; border:2px solid transparent; border-radius:10px; padding:18px 8px 12px; display:flex; flex-direction:column; align-items:center; gap:10px; color:#2b2418; box-shadow:0 4px 10px rgba(48,22,6,.3); font-family:var(--mono); font-size:12px; }
.logo-tile .lg { width:100%; max-width:110px; height:32px; }
.logo-tile.on { border-color:#7a1f1f; }
.logo-cap { background:#fbf3e0; color:#2b2418; border-radius:8px; padding:12px 16px; margin:14px auto 0; width:min(100%,640px); font-size:16px; line-height:1.45; min-height:3.2em; box-shadow:0 4px 10px rgba(48,22,6,.3); }

/* game */
.cert-row { margin-top:8px; }

/* testimonials carousel */
body.js-t .letters { display:none; }
.tcar { position:relative; width:min(100%,600px); display:grid; grid-template-columns:44px 1fr 44px; gap:8px; align-items:center; margin:0 auto; }
.tcard-wrap { grid-column:2; }
.tcard { position:relative; background:var(--paper); background-image:repeating-linear-gradient(transparent 0 31px, rgba(43,36,24,.06) 31px 32px); border-radius:3px; padding:32px; box-shadow:0 8px 20px rgba(48,22,6,.35); color:#2b2418; min-height:240px; display:flex; flex-direction:column; gap:14px; }
.tcard .t-logo { position:absolute; top:14px; right:18px; width:86px; height:24px; }
.t-av { width:48px; height:48px; border-radius:50%; background:#16342a; color:#f4ecd8; font-family:var(--serif); font-size:22px; display:flex; align-items:center; justify-content:center; }
.tcard blockquote { font-family:var(--serif); font-size:18px; line-height:1.5; }
.tcard figcaption b { display:block; font-size:16px; } .tcard figcaption span { font-size:14px; color:#4a3f2c; }
.t-more { align-self:flex-start; background:none; border:0; font-family:var(--mono); font-size:13px; color:#7a1f1f; text-decoration:underline; padding:4px 0; }
.t-dots { grid-column:2; }
.tcar .car-arrow { grid-row:1; } #t-prev { grid-column:1; } #t-next { grid-column:3; }
.full-quote { font-family:var(--serif); font-size:20px; line-height:1.55; margin-top:10px; }
.badges { margin-top:20px; }

/* close: wax seals */
.seals { display:flex; gap:26px; justify-content:center; margin:22px 0 4px; }
.stamp-btn.seal { all:unset; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; text-align:center; font-family:var(--mono); font-size:13px; color:#2b2418; }
.stamp-btn.seal:focus-visible { outline:3px solid var(--gold); outline-offset:4px; border-radius:8px; }
.seal-disc { width:68px; height:68px; border-radius:50%; background:radial-gradient(circle at 30% 28%, #d9543f, #a82a22 60%, #7d1a16); box-shadow:inset 0 0 0 3px rgba(255,255,255,.18), 0 5px 10px rgba(48,22,6,.4); display:flex; align-items:center; justify-content:center; transition:transform .25s ease; }
.seal:hover .seal-disc { transform:scale(1.07) rotate(-4deg); }
.lg-seal { width:30px; height:30px; color:#fbf3e0; }
.report .prop-row { margin-top:10px; }

/* index: slim dots on the left edge */
.index-rail { position:fixed; left:8px; top:50%; transform:translateY(-50%); z-index:90; background:none; box-shadow:none; padding:0; width:auto; display:block; }
.index-rail .ir-title { display:none; }
.index-rail ol { display:flex; flex-direction:column; gap:12px; }
.index-rail li { padding:0; position:relative; font-size:12px; line-height:1; }
.index-rail li button { all:unset; display:block; width:14px; height:14px; cursor:pointer; position:relative; }
.index-rail li .chk { display:block; width:10px; height:10px; border-radius:50%; background:rgba(251,243,224,.55); border:1px solid rgba(48,22,6,.45); margin:2px; box-shadow:0 1px 3px rgba(48,22,6,.3); }
.index-rail li.done .chk { background:#fbf3e0; } .index-rail li.now .chk { background:#b3392f; border-color:#fbf3e0; transform:scale(1.3); }
.index-rail li .ix-t { position:absolute; left:22px; top:50%; transform:translateY(-50%); background:#fbf3e0; color:#2b2418; padding:3px 9px; border-radius:5px; font-size:12px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .2s; box-shadow:0 3px 8px rgba(48,22,6,.3); font-weight:400; }
.index-rail li button:hover .ix-t, .index-rail li button:focus-visible .ix-t { opacity:1; }
.index-rail li button:focus-visible { outline:3px solid var(--gold); border-radius:50%; }

/* the drawer handle: a visible, labelled tab */
.drawer-handle { position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:125; width:auto; height:auto; opacity:1; background:#fbf3e0; color:#2b2418; border:0; border-radius:10px 10px 0 0; padding:7px 18px 8px; box-shadow:0 -3px 10px rgba(48,22,6,.3); font-family:var(--mono); font-size:13px; display:flex; flex-direction:column; align-items:center; gap:3px; }
.dh-grip { width:34px; height:4px; border-radius:3px; background:#8a6a3a; }
.dh-text b { color:#7a1f1f; }
.drawer-handle:hover, .drawer-handle:focus-visible { background:#fff; }
.drawer-handle > span:first-child { position:static; transform:none; height:4px; }
.drawer { z-index:200; }

/* fixed UI */
.hurry-link { background:#fbf3e0; color:#2b2418; border:0; box-shadow:0 4px 10px rgba(48,22,6,.35); }
.hurry-link:hover { background:#fff; }
.resume-tag { transform:none; }

/* inspection panel: dim to 40% */
.obj-modal, .case-overlay { background:rgba(30,15,5,.40); }

/* focus + reduced motion */
@media (prefers-reduced-motion: reduce) { .car-track, .case-folder.stamped .cf-stamp { transition:none; animation-duration:.01s; } }

/* tablet + phone: objects become a tidy dock; nothing floats over content */
@media (max-width:900px) {
  :root { --osz:44px; }
  #desk { top:auto; bottom:0; height:62px; background:linear-gradient(180deg,#7a4c2a,#63391d); border-top:2px solid #3f2410; pointer-events:auto; display:flex; }
  .desk-col { position:static; top:auto; bottom:auto; width:50%; height:100%; flex-direction:row; justify-content:space-evenly; align-items:center; }
  .desk-col .desk-obj { width:46px; height:46px; }
  .desk-obj .tip { display:none; }
  .desk-col .clock-face { width:52px; aspect-ratio:1/0.8; border-width:2px; }
  #clock-time { font-size:12px; letter-spacing:0; } .clock-label { display:none; }
  #scroll-track { padding-bottom:74px; }
  .scene { padding:24px 16px; } .scene-1, .scene-3, .scene-4, .scene-5 { min-height:auto; }
  .scene-1 { min-height:88vh; padding-top:64px; }
  .resume-tag { left:12px; top:12px; bottom:auto; }
  .hurry-link { top:12px; right:12px; }
  .desk-menu { right:12px; bottom:72px; } #menu-toggle { width:38px; height:38px; font-size:18px; }
  .drawer-handle { bottom:62px; padding:6px 14px; font-size:12px; border-radius:10px; box-shadow:0 3px 8px rgba(48,22,6,.35); }
  .index-rail { display:none; }
  .chips { grid-template-columns:1fr; }
  .paper { padding:24px 20px; }
  .logo-row { grid-template-columns:1fr 1fr; }
  .car { grid-template-columns:36px 1fr 36px; } .tcar { grid-template-columns:36px 1fr 36px; }
  .car-arrow { width:36px; height:36px; font-size:22px; }
  .seals { gap:18px; } .tcard { padding:24px 20px; }
}
@media (min-width:901px) and (max-width:1100px) { .chips { grid-template-columns:1fr; } .logo-row { grid-template-columns:1fr 1fr; } }

.case-folder::after { display:none !important; }
@media (max-width:900px) {
  .desk-col .desk-obj .ob, .desk-col .desk-obj .ob-art { width:46px; height:46px; }
  .desk-col .desk-obj { flex:none; }
  .desk-col .clock .ob-art { height:auto; }
}
@media (max-width:900px) {
  .desk-col .desk-obj { position:relative !important; inset:auto !important; margin:0 !important; transform:none !important; }
}
@media (max-width:900px) {
  .tray-label { display:none !important; }
  .dh-text { white-space:nowrap; }
  .drawer-handle { font-size:11.5px; padding:6px 12px; }
  .cf-num { font-size:40px; white-space:nowrap; }
  .case-folder { min-height:400px; padding:36px 18px 20px; }
}
.drawer { max-height:80vh; overflow:auto; }
.drawer-title { padding-right:48px; }
@media (max-width:900px) { .drawer-items { display:grid; grid-template-columns:1fr 1fr; gap:14px; } .drawer-items li { margin:0 !important; } }
.memo-head, .ixc-head, .tape-title { color:#3b3224 !important; }
.skip-game { background:#fbf3e0; color:#2b2418; border:0; border-radius:999px; padding:8px 16px; box-shadow:0 3px 8px rgba(48,22,6,.3); text-decoration:none; }
.cf-stamp { background:#fbf3e0 !important; color:#a02c22 !important; border-color:#a02c22 !important; }

/* ================= v4 ================= */
/* logo chips: light chip, small, never stretched */
.lchip { display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1px solid rgba(43,36,24,.14); border-radius:8px; padding:4px 10px; height:36px; min-width:44px; color:#2b2418; box-shadow:0 1px 2px rgba(48,22,6,.12); flex:none; }
.lchip img { height:28px; width:auto; max-width:120px; object-fit:contain; display:block; }
.lchip.is-word { font-family:var(--serif); font-weight:700; font-size:14px; letter-spacing:.01em; white-space:nowrap; }
.letterhead { gap:12px; }
.letterhead .lchip { opacity:1; }

/* hero */
.scene-1 { min-height:100vh; }
.hero-chips { margin-top:14px; }
.kicker { margin:0 0 14px; font-size:15px; text-align:center; max-width:100%; }
.cover-case { letter-spacing:.2em; }
.ixc-list { list-style:none; }

/* about memo */
.memo { max-width:560px; }
.memo-line { font-size:18px; }

/* highlights */
.tape { max-width:620px; margin:0 auto; }
.tape-line { display:grid; grid-template-columns:150px 1fr; gap:14px; align-items:center; padding:12px 0; }
.t-num { font-family:var(--serif); font-size:clamp(24px,3vw,32px); color:#7a1f1f; }
.t-what { font-size:16px; line-height:1.4; }

/* projects */
.scene-4 { gap:14px; min-height:100vh; justify-content:center; }
.proj-row { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; width:100%; align-items:start; }
.proj { background:#fbf3e0; color:#2b2418; border-radius:10px; padding:14px 12px 14px; text-align:center; box-shadow:0 8px 18px rgba(48,22,6,.35); display:flex; flex-direction:column; align-items:center; gap:4px; transition:transform .25s ease, box-shadow .25s ease; }
.proj:hover, .proj:focus-within { transform:translateY(-5px) rotate(-.6deg); box-shadow:0 14px 26px rgba(48,22,6,.4); }
.proj-obj { height:min(300px,40vh); width:100%; display:flex; align-items:center; justify-content:center; position:relative; }
.proj h3 { font-family:var(--serif); font-size:18px; margin-top:4px; }
.proj p { font-size:14px; line-height:1.35; min-height:2.7em; }
.proj-story { all:unset; cursor:pointer; font-family:var(--mono); font-weight:700; font-size:13px; color:#7a1f1f; text-decoration:underline; padding:6px 8px; border-radius:6px; }
.proj-story:hover { background:rgba(122,31,31,.08); }
.proj-story:focus-visible, .parcel:focus-visible, .book4:focus-visible, .p4-wake:focus-visible, .flip:focus-visible, .dr-item:focus-visible, .p4-prev:focus-visible, .p4-next:focus-visible, .p4-real:focus-visible, .amazon-btn:focus-visible, .t-more:focus-visible { outline:3px solid #b3392f; outline-offset:3px; }

.phone4 { width:min(150px,100%); }
.p4-case { position:relative; background:#1a1a1f; border-radius:22px; padding:8px; box-shadow:0 8px 16px rgba(0,0,0,.4); }
.p4-logo { position:absolute; top:-14px; left:50%; transform:translateX(-50%); z-index:3; }
.p4-logo .lchip { height:26px; padding:2px 8px; min-width:0; } .p4-logo .lchip img { height:18px; } .p4-logo .lchip.is-word { font-size:11px; }
.p4-screen { position:relative; height:min(250px,34vh); background:#101722; border-radius:15px; overflow:hidden; color:#fff; }
.p4-sleep { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; background:#0b0f16; }
.p4-sleeptxt { font-family:var(--serif); font-size:18px; color:#fff; } .p4-sleep small { font-size:12px; color:#c9d4e8; }
.p4-wake { all:unset; position:absolute; inset:0; cursor:pointer; z-index:2; }
.p4-stories { position:absolute; inset:0; background:linear-gradient(160deg,#243b66,#13203a); }
.p4-bars { position:absolute; top:6px; left:8px; right:8px; display:flex; gap:4px; z-index:2; }
.p4-bars i { flex:1; height:3px; border-radius:2px; background:rgba(255,255,255,.3); } .p4-bars i.done, .p4-bars i.now { background:#fff; }
.p4-slide { position:absolute; inset:0; padding:26px 10px 10px; display:none; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:4px; }
.p4-slide.on { display:flex; }
.p4-slide small { font-family:var(--mono); font-size:12px; color:#cfd9ee; letter-spacing:.1em; text-transform:uppercase; }
.p4-slide b { font-family:var(--serif); font-size:38px; line-height:1; }
.p4-slide span { font-size:13px; color:#e6ecf8; }
.p4-chart { width:100%; } .p4-chart svg { width:100%; height:auto; max-height:130px; }
.p4-real { margin-top:8px; background:#fff; color:#13203a; font-weight:700; font-size:12px; padding:6px 10px; border-radius:999px; text-decoration:none; position:relative; z-index:3; }
.p4-prev, .p4-next { all:unset; position:absolute; top:24px; bottom:46px; width:30%; cursor:pointer; z-index:1; } .p4-prev { left:0; } .p4-next { right:0; }

.parcel { all:unset; cursor:pointer; position:relative; display:block; width:190px; height:210px; }
.pc-box { position:absolute; left:20px; right:20px; bottom:14px; height:110px; display:block; }
.pc-body { position:absolute; inset:24px 0 0 0; background:#c79a5e; border-radius:3px; box-shadow:0 6px 12px rgba(48,22,6,.35); display:block; }
.pc-tape { position:absolute; left:42%; width:16%; top:0; bottom:0; background:rgba(255,235,190,.55); }
.pc-label { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); background:#fbf3e0; color:#2b2418; font-family:var(--mono); font-size:10px; padding:3px 6px; text-align:center; line-height:1.2; border-radius:2px; white-space:nowrap; }
.pc-flap { position:absolute; top:0; width:50%; height:28px; background:#b98a50; border:1px solid rgba(60,30,8,.3); transition:transform .5s ease; }
.pc-flap.fl { left:0; transform-origin:0 100%; } .pc-flap.fr { right:0; transform-origin:100% 100%; }
.parcel.open .pc-flap.fl { transform:rotate(-115deg); } .parcel.open .pc-flap.fr { transform:rotate(115deg); }
.pc-receipt { position:absolute; left:34px; right:34px; bottom:96px; background:#fff; color:#2b2418; font-family:var(--mono); font-size:11px; text-align:center; padding:8px 6px 10px; border-radius:2px 2px 0 0; transform:translateY(70px); opacity:0; transition:transform .7s ease .2s, opacity .3s ease .2s; display:flex; flex-direction:column; gap:2px; clip-path:polygon(0 0,100% 0,100% 100%,92% 96%,84% 100%,76% 96%,68% 100%,60% 96%,52% 100%,44% 96%,36% 100%,28% 96%,20% 100%,12% 96%,4% 100%,0 96%); z-index:1; }
.pc-receipt b { font-size:13px; } .pc-receipt em { font-style:normal; font-weight:700; }
.parcel.open .pc-receipt { transform:translateY(0); opacity:1; }
.pc-icons { display:flex; justify-content:center; gap:8px; margin-top:4px; } .pc-icons svg { width:16px; height:16px; }
.pc-peanuts { position:absolute; left:50%; bottom:100px; width:0; height:0; z-index:2; pointer-events:none; }
.pc-peanuts i { position:absolute; width:12px; height:7px; border-radius:6px; background:#f1e4b8; border:1px solid #c9b98a; animation:peanut 1.4s ease-out forwards; }
@keyframes peanut { 0% { transform:translate(0,0) rotate(0); opacity:1; } 60% { opacity:1; } 100% { transform:translate(var(--dx),var(--dy)) rotate(var(--r)); opacity:0; } }
.pc-hint { position:absolute; bottom:-4px; left:0; right:0; text-align:center; font-size:12px; color:#4a3f2c; font-family:var(--mono); }
.parcel.open .pc-hint, .book4.open .pc-hint { visibility:hidden; }

.book4 { all:unset; cursor:pointer; position:relative; display:block; width:230px; height:240px; perspective:900px; }
.b4-3d { position:absolute; left:78px; top:24px; width:72px; height:116px; display:block; transform-style:preserve-3d; }
.b4-right { position:absolute; left:0; top:0; width:200%; height:100%; background:#fbf3e0; border:1px solid #cdbf9a; box-shadow:0 8px 16px rgba(48,22,6,.3); display:flex; flex-direction:column; align-items:flex-end; justify-content:center; text-align:right; padding:0 12px; gap:4px; color:#2b2418; opacity:0; transition:opacity .3s ease .35s; }
.b4-right b { font-family:var(--serif); font-size:17px; } .b4-right em { font-style:normal; font-size:14px; font-family:var(--mono); }
.b4-cover { position:absolute; left:0; top:0; width:100%; height:100%; transform-origin:0 50%; transform-style:preserve-3d; transition:transform .9s cubic-bezier(.3,.7,.2,1); display:block; }
.b4-front, .b4-back { position:absolute; inset:0; backface-visibility:hidden; display:block; border-radius:2px 5px 5px 2px; }
.b4-front { box-shadow:0 8px 16px rgba(48,22,6,.4); } .b4-front img { width:100%; height:100%; object-fit:cover; border-radius:2px 5px 5px 2px; display:block; }
.b4-back { transform:rotateY(180deg); background:#fbf3e0; border:1px solid #cdbf9a; display:flex; align-items:center; justify-content:center; padding:10px; font-size:12px; text-align:center; font-family:var(--serif); color:#2b2418; }
.book4.open .b4-cover { transform:rotateY(-165deg); } .book4.open .b4-right { opacity:1; }

.amazon-btn { position:absolute; bottom:6px; left:50%; transform:translateX(-50%); display:inline-flex; align-items:center; gap:8px; background:#fff; color:#111; border:1px solid #cdbf9a; border-radius:999px; padding:6px 14px; font-weight:700; font-size:13px; text-decoration:none; box-shadow:0 3px 8px rgba(48,22,6,.3); white-space:nowrap; }
.amazon-btn .lg { width:44px; height:16px; color:#111; }

/* journey */
.scene-5 { min-height:100vh; justify-content:center; gap:10px; }
.metro { width:100%; } .metro-win { position:relative; width:100%; height:min(440px,62vh); overflow:hidden; background:#fbf3e0; border-radius:12px; box-shadow:0 8px 20px rgba(48,22,6,.35); }
.metro-strip { position:absolute; left:0; top:0; height:100%; will-change:transform; }
.metro-hint { background:#fbf3e0; color:#2b2418; padding:5px 12px; border-radius:6px; font-size:13px; font-family:var(--mono); }
.m-line { position:absolute; top:50%; height:0; border-top:6px solid #b3392f; transform:translateY(-3px); } .m-line.dashed { border-top:6px dashed #b3392f; opacity:.6; }
.m-stop { position:absolute; left:var(--x); top:0; bottom:0; width:0; }
.m-dot { position:absolute; left:-11px; top:calc(50% - 11px); width:22px; height:22px; border-radius:50%; background:#fff; border:5px solid #b3392f; z-index:2; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; color:#b3392f; transition:transform .3s ease, background .3s ease; }
.m-stop.reached .m-dot { background:#b3392f; transform:scale(1.2); } .m-stop.is-end .m-dot { background:#fff; border-style:dashed; }
.m-year { position:absolute; left:-40px; width:80px; text-align:center; top:calc(50% + 20px); font-family:var(--mono); font-weight:700; font-size:13px; color:#2b2418; }
.m-card { position:absolute; left:-100px; width:200px; top:calc(50% - 150px); background:#fff; border:1px solid rgba(43,36,24,.18); border-radius:10px; padding:10px 12px; box-shadow:0 6px 14px rgba(48,22,6,.25); display:flex; flex-direction:column; gap:4px; color:#2b2418; opacity:0; transform:translateY(12px) scale(.96); transition:opacity .35s ease, transform .35s ease; }
.m-stop:nth-child(even) .m-card { top:calc(50% + 46px); }
.m-stop.reached .m-card { opacity:1; transform:none; }
.m-card b { font-size:14px; line-height:1.25; } .m-card span:not(.lchip) { font-size:13px; line-height:1.35; }
.m-card .lchip { height:34px; align-self:flex-start; }
.m-card-end { border:2px dashed #b3392f; text-align:center; align-items:center; }
.m-stop.is-big .m-card { width:260px; left:-130px; top:calc(50% - 170px); }
.m-stop.is-big .m-card .lchip { height:36px; }
.m-flips { position:absolute; left:-190px; top:calc(50% + 44px); width:380px; display:grid; grid-template-columns:1fr 1fr; gap:8px; opacity:0; transition:opacity .4s ease .2s; }
.m-stop.reached .m-flips { opacity:1; }
.flip { all:unset; box-sizing:border-box; cursor:pointer; height:62px; perspective:600px; display:block; }
.fl-in { position:relative; display:block; width:100%; height:100%; transition:transform .5s ease; transform-style:preserve-3d; }
.flip.is-flipped .fl-in { transform:rotateY(180deg); }
.fl-f, .fl-b { position:absolute; inset:0; backface-visibility:hidden; border-radius:8px; display:flex; align-items:center; justify-content:center; text-align:center; padding:6px 8px; font-size:12.5px; line-height:1.25; }
.fl-f { background:#16342a; color:#fbf3e0; font-weight:700; } .fl-b { background:#fff; color:#2b2418; border:1px solid #b3392f; transform:rotateY(180deg); font-size:12px; }
.m-token { position:absolute; top:calc(50% - 54px); width:28px; height:40px; margin-left:-14px; z-index:3; filter:drop-shadow(0 3px 3px rgba(0,0,0,.35)); } .m-token svg { width:100%; height:100%; }

/* game */
.game { background:#fbf3e0; color:#2b2418; border-radius:12px; padding:20px 24px; width:min(560px,100%); margin:0 auto; box-shadow:0 8px 20px rgba(48,22,6,.35); }
.g-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.g-title { font-family:var(--serif); font-size:20px; font-weight:700; }
.stopwatch { float:none; }
.g-stage { min-height:230px; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.g-step { font-family:var(--mono); font-size:12px; letter-spacing:.1em; color:#4a3f2c; text-transform:uppercase; }
.g-q { font-size:17px; line-height:1.4; max-width:440px; }
.g-val { font-family:var(--serif); font-size:40px; font-weight:700; color:#7a1f1f; line-height:1.1; }
.g-range { width:100%; max-width:440px; accent-color:#b3392f; height:28px; }
.g-scale { display:flex; justify-content:space-between; width:100%; max-width:440px; font-size:12px; color:#4a3f2c; font-family:var(--mono); }
.g-real-l { font-size:13px; color:#4a3f2c; } .g-msg { font-weight:700; font-size:18px; } .g-story { font-size:14px; max-width:420px; line-height:1.4; }
.g-stage .om-btn { margin-top:6px; }
.skip-game { display:block; margin:12px auto 0; font-size:13px; cursor:pointer; background:#f0e4c6; box-shadow:none; }
.skip-game:focus-visible { outline:3px solid #b3392f; outline-offset:2px; }

/* off the record */
.scene-7 { gap:10px; min-height:100vh; justify-content:center; }
.dr { position:relative; width:min(640px,100%); height:min(300px,42vh); }
.dr-box { position:absolute; inset:0; background:#4a2c14; border:6px solid #3a2110; border-radius:6px; box-shadow:inset 0 10px 24px rgba(0,0,0,.5), 0 8px 18px rgba(48,22,6,.4); padding:14px; overflow:hidden; }
.dr-items { list-style:none; display:grid; grid-template-columns:repeat(6,1fr); gap:8px; height:100%; align-items:center; }
.dr-item { all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:6px; width:100%; padding:8px 2px; border-radius:8px; text-align:center; color:#fbf3e0; font-size:12px; line-height:1.2; transition:transform .2s ease, background .2s ease; }
.dr-item svg { width:62px; height:62px; filter:drop-shadow(2px 4px 4px rgba(0,0,0,.5)); }
.dr-item:hover, .dr-item.on { transform:translateY(-6px); background:rgba(251,243,224,.12); }
.dr-front { position:absolute; left:0; right:0; bottom:0; top:0; background:linear-gradient(180deg,#9a6638,#845529); border:6px solid #3a2110; border-radius:6px; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 18px rgba(48,22,6,.5); z-index:2; pointer-events:none; }
.dr-knob { position:absolute; top:22px; left:50%; width:44px; height:12px; margin-left:-22px; background:#d9b978; border-radius:6px; }
.dr-label { background:#fbf3e0; color:#2b2418; font-family:var(--mono); font-size:14px; padding:6px 12px; border-radius:4px; margin-top:20px; }
.dr-cap { background:#fbf3e0; color:#2b2418; padding:8px 16px; border-radius:8px; font-size:15px; min-height:40px; text-align:center; max-width:560px; box-shadow:0 4px 10px rgba(48,22,6,.3); }

/* kind words */
.scene-8k { gap:16px; min-height:100vh; justify-content:center; }
.tcard { min-height:200px; } .tcard .t-logo { width:auto; height:36px; min-width:0; }
.t-more { all:unset; cursor:pointer; margin-top:8px; font-family:var(--mono); font-size:13px; font-weight:700; color:#7a1f1f; text-decoration:underline; padding:4px; }
.lead-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; width:100%; }
.lead-card { background:#fbf3e0; color:#2b2418; border-radius:10px; padding:12px; display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; box-shadow:0 6px 14px rgba(48,22,6,.3); }
.lead-card b { font-family:var(--serif); font-size:17px; } .lead-card span:not(.lchip) { font-size:14px; line-height:1.3; }

/* ending */
.scene-9 { min-height:100vh; justify-content:center; }
.close-card { background:#fbf3e0; color:#2b2418; border-radius:14px; padding:24px 26px; width:min(600px,100%); text-align:center; box-shadow:0 10px 24px rgba(48,22,6,.4); margin:0 auto; }
.close-card h2 { font-family:var(--serif); font-size:clamp(24px,3vw,32px); line-height:1.15; }
.close-sub { font-size:16px; margin:6px 0 14px; }
.sign-card { background:var(--paper-hi); border:1px solid rgba(43,36,24,.18); border-radius:8px; padding:14px 16px; text-align:left; }
.sg-l { display:block; font-family:var(--mono); font-size:12px; letter-spacing:.08em; color:#4a3f2c; margin:6px 0 3px; }
.sg-in { width:100%; font:inherit; font-size:16px; padding:8px 10px; border:1px solid #8a7a52; border-radius:6px; background:#fff; color:#2b2418; }
.sg-in:focus-visible { outline:3px solid #b3392f; outline-offset:1px; }
.sg-line { position:relative; height:62px; border-bottom:2px solid #2b2418; margin:8px 0 4px; display:flex; align-items:flex-end; }
.sg-render { font-family:var(--hand); font-size:40px; color:#1d2a52; line-height:1; padding-bottom:4px; max-width:70%; overflow:hidden; white-space:nowrap; }
.sg-flourish { position:absolute; left:0; right:0; bottom:-6px; width:100%; height:24px; opacity:0; } .sign-card.signed .sg-flourish { opacity:1; }
.sg-wax { position:absolute; right:6px; bottom:6px; width:46px; height:46px; border-radius:50%; background:radial-gradient(circle at 30% 28%, #d9543f, #a82a22 60%, #7d1a16); color:#fbe3c8; display:flex; align-items:center; justify-content:center; opacity:0; box-shadow:0 3px 6px rgba(0,0,0,.35); } .sg-wax .lg { width:22px; height:22px; }
.sg-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; } .sg-actions .om-btn { margin-top:8px; text-decoration:none; } .sg-actions [hidden] { display:none; }
.fine { font-size:12px; color:#4a3f2c; margin-top:8px; }
.seals { margin:14px 0 6px; gap:20px; } .seal-disc { width:52px; height:52px; } .seal-disc .lg { width:22px; height:22px; color:#fff; }
.end-line { font-size:15px; margin-top:6px; } 

/* fixed UI stays in the margins on desktop */
@media (min-width:901px) {
  .hurry-link { top:12px; right:16px; left:auto; } .resume-tag { top:12px; left:16px; bottom:auto; }
}
/* mobile */
@media (max-width:900px) {
  #scroll-track { padding-top:56px; }
  body::before { content:""; position:fixed; top:0; left:0; right:0; height:52px; background:#6c4326; border-bottom:2px solid #3f2410; z-index:120; }
  .resume-tag { top:8px; left:10px; z-index:131; } .hurry-link { top:8px; right:60px; z-index:131; }
  .desk-menu { top:7px; bottom:auto; right:10px; }
  .menu-pop { top:44px; bottom:auto; right:0; }
  .proj-row { grid-template-columns:1fr; } .proj-obj { height:300px; }
  .scene-4, .scene-5, .scene-7, .scene-8k, .scene-9, .scene-1 { min-height:auto; }
  .tape-line { grid-template-columns:92px 1fr; gap:10px; }
  .dr { height:auto; } .dr-box { position:relative; height:auto; } .dr-items { grid-template-columns:repeat(3,1fr); gap:10px; } .dr-front { display:none; }
  .lead-row { grid-template-columns:1fr; }
  /* journey becomes a vertical line */
  .metro-win { height:auto; overflow:visible; background:none; box-shadow:none; } .metro-strip { position:relative; width:auto !important; height:auto; transform:none !important; padding:4px 0 4px 34px; display:flex; flex-direction:column; gap:14px; }
  .m-line, .m-token, .metro-hint { display:none; }
  .metro-strip::before { content:""; position:absolute; left:16px; top:0; bottom:0; border-left:5px solid #fbf3e0; }
  .m-stop { position:relative; left:auto; top:auto; bottom:auto; width:auto; }
  .m-dot { left:-27px; top:6px; } .m-year { position:static; display:inline-block; background:#fbf3e0; border-radius:4px; padding:2px 8px; width:auto; margin-bottom:4px; }
  .m-card, .m-stop.is-big .m-card { position:static; width:auto; opacity:1; transform:none; } .m-flips { position:static; width:auto; opacity:1; margin-top:8px; }
  .m-stop.reached .m-card { opacity:1; }
}
@media (prefers-reduced-motion: reduce) { .m-card, .m-flips { opacity:1 !important; transform:none !important; } .pc-flap, .b4-cover, .fl-in { transition:none; } }
.lchip[data-logo="mu"]:not(.is-word) { background:#000; border-color:#000; }
.lchip[data-logo="du"] img { height:30px; }
.lchip[data-logo="niti"] img { height:32px; }
.lchip[data-logo="deloitte"] img { height:22px; }
.lchip[data-logo="iic"] img { height:26px; }

.close-note { opacity:1 !important; font-size:16px; margin-top:8px; }
.reopen { all:unset; cursor:pointer; margin-top:6px; font-family:var(--mono); font-size:13px; font-weight:700; color:#7a1f1f; text-decoration:underline; padding:6px 10px; } .reopen:focus-visible { outline:3px solid #b3392f; }

.b4-right b { font-size:14px; } .b4-right em { font-size:12px; } .b4-back { font-size:10px; padding:6px; }
