:root {
  --ink: #56616d;
  --ink-dark: #2c343d;
  --ink-faint: #8a95a0;
  --red: #b4433b;
  --yellow: #f2d532;
  --pin-blue: #3462b8;
  --pin-yellow: #e2b52b;
  --pin-red: #c43a2f;
  --tape: rgba(122, 176, 54, 0.88);
  --hand: 'Gochi Hand', cursive;
  --hand2: 'Architects Daughter', cursive;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #05070b; color: #fff; font-family: var(--ui); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Room ---------- */
.room {
  position: fixed; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(150, 175, 220, .18), transparent 70%),
    radial-gradient(ellipse at 50% 30%, #18202d 0%, #0b0f17 55%, #030406 100%);
  cursor: default;
}
.room::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(0, 0, 0, .85);
}
.dartboard {
  position: absolute; left: 1.5vw; top: 52%; width: 9vw; height: 9vw; border-radius: 50%;
  background: repeating-conic-gradient(#1c1d1f 0 18deg, #3b3a36 18deg 36deg);
  box-shadow: 0 0 0 .5vw #141414, 0 0 0 .9vw #2a2826; opacity: .55; filter: blur(.4px);
}
.dartboard::after {
  content: ''; position: absolute; inset: 42%; border-radius: 50%; background: #5a1d18;
}
.shelf {
  position: absolute; right: 0; top: 30%; width: 7vw; height: 40%;
  background: repeating-linear-gradient(180deg, transparent 0 22%, #1a1a18 22% 24%);
  opacity: .5;
}

/* ---------- Stage (scaled as a whole) ---------- */
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1640px; height: 1150px;
  margin-left: -820px; margin-top: -575px;
  transform-origin: 50% 50%;
  will-change: transform;
  z-index: 1;
}
.post {
  position: absolute; top: 0; bottom: 0; width: 34px;
  background: linear-gradient(90deg, #8d7a5a, #c9b38a 40%, #a48f69 70%, #6f5f45);
  box-shadow: 0 0 30px rgba(0, 0, 0, .6);
}
.post-l { left: 92px; }
.post-r { right: 92px; }
.bar {
  position: absolute; left: 30px; right: 30px; top: 40px; height: 46px;
  background: linear-gradient(180deg, #d8c9a8, #b6a37d 60%, #8b7a58);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
}
.bolt { position: absolute; left: 22px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #3a4d7a; box-shadow: 0 14px 0 #3a4d7a; }
.bolt.r { left: auto; right: 22px; }
.tube {
  position: absolute; left: 34%; right: 34%; top: 46px; height: 32px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eef4ff 60%, #c9d6ee);
  box-shadow: 0 0 30px 8px rgba(225, 236, 255, .9), 0 0 140px 50px rgba(190, 210, 255, .35);
}
.tube::before, .tube::after {
  content: ''; position: absolute; top: -4px; width: 22px; height: 40px; border-radius: 6px;
  background: linear-gradient(90deg, #9aa8bf, #e0e6f0, #8a97ad);
}
.tube::before { left: -12px; }
.tube::after { right: -12px; }

/* ---------- Board ---------- */
.board {
  position: absolute; left: 70px; top: 112px; width: 1500px; height: 1000px;
  border: 3px solid #4d535b; border-radius: 4px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #eef1f3 0%, #e1e6ea 45%, #ccd2d7 100%);
  box-shadow: inset 0 0 0 6px #f4f6f7, inset 0 0 0 8px #9aa1a8, inset 0 0 60px rgba(0, 0, 0, .12), 0 20px 60px rgba(0, 0, 0, .7);
  color: var(--ink);
  font-family: var(--hand);
  user-select: none;
}
.board > section { position: absolute; }

/* Selection highlight */
.sel { cursor: pointer; transition: box-shadow .15s, transform .15s, background-color .15s; border-radius: 4px; outline: none; }
.sel.is-selected { box-shadow: 0 0 0 3px var(--yellow), 0 0 26px 4px rgba(242, 213, 50, .55); z-index: 5; }
.check-list .sel.is-selected { box-shadow: none; background: rgba(242, 213, 50, .35); }

/* Headings */
.head {
  font-weight: 400; font-size: 27px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-dark);
  text-align: center; padding-bottom: 6px; margin-bottom: 18px;
  border-bottom: 2.5px solid var(--ink-dark); border-radius: 0 0 40% 60% / 0 0 4px 3px;
}
.head::before, .head::after { content: '\2731'; font-size: 15px; margin: 0 10px; vertical-align: 4px; }
.head.small { font-size: 23px; margin-bottom: 14px; }
.head.small::before, .head.small::after { margin: 0 6px; }
.oval {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 400; font-size: 26px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-dark);
  border: 2.5px solid var(--ink-dark); border-radius: 50%; padding: 4px 34px; margin-bottom: 16px;
  transform: rotate(-1deg);
}
.oval .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pin-yellow); box-shadow: inset -2px -2px 3px rgba(0, 0, 0, .3); }

/* ---------- Pins, stickers, tape ---------- */
.pin {
  position: absolute; top: -8px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .8) 0 14%, var(--c) 42%, color-mix(in srgb, var(--c), #000 35%) 100%);
  box-shadow: 1px 3px 4px rgba(0, 0, 0, .45);
}
.pin.blue { --c: var(--pin-blue); }
.pin.yellow { --c: var(--pin-yellow); }
.pin.red { --c: var(--pin-red); }

.star {
  position: absolute; right: -10px; bottom: -10px; width: 42px; height: 42px; z-index: 4;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23111' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M20 7v26M7 20h26M10.5 10.5l19 19M29.5 10.5l-19 19'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='5' fill='%23111'/%3E%3C/svg%3E") center / 72% no-repeat;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, .35); transform: rotate(-5deg);
}
.contact .star.big { position: absolute; left: 200px; top: -6px; right: auto; bottom: auto; width: 46px; height: 46px; }

.tape {
  position: absolute; left: -12px; right: -12px; top: 38%; z-index: 4;
  background: var(--tape); color: #eef6c9; text-align: center;
  font-family: var(--hand); font-size: 20px; letter-spacing: 3px; padding: 2px 0;
  transform: rotate(-4deg); text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 12%, 99% 92%, 96% 100%, 2% 96%, 0 88%);
}

/* ---------- Photos ---------- */
.photo {
  position: relative; background: #f6f6f2; padding: 6px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 8px 16px rgba(0, 0, 0, .18);
}
.pic { position: relative; width: 100%; height: 100%; overflow: hidden; filter: saturate(.72) contrast(1.05) brightness(.93); }
.pic svg { display: block; width: 100%; height: 100%; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pic::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 28px rgba(0, 0, 0, .55); }
.label { text-align: center; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-dark); margin-top: 10px; }
.label.faint { color: var(--ink-faint); text-transform: none; font-family: var(--hand2); font-size: 17px; }

/* checkbox */
.cb {
  position: relative; display: inline-block; flex: none; width: 21px; height: 21px;
  border: 2.3px solid var(--ink-dark); border-radius: 2px; vertical-align: -3px;
}
.cb.on::after {
  content: ''; position: absolute; left: -2px; top: -9px; width: 30px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M4 15l6 8L27 2' fill='none' stroke='%232c343d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}

/* ---------- Blueprint ---------- */
.blueprint { left: 34px; top: 34px; width: 480px; height: 330px; }
.blueprint .bp {
  position: absolute; inset: 0; background: #2b4f9a; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); overflow: hidden;
}
.blueprint .bp svg { width: 100%; height: 100%; display: block; }
.note {
  position: absolute; background: #f8f8f4; color: #3e4650; font-family: var(--hand2);
  box-shadow: 1px 3px 8px rgba(0, 0, 0, .35); padding: 12px 14px;
}
.note.n1 { left: 22px; top: 70px; width: 160px; height: 190px; transform: rotate(-3deg); font-size: 13px; line-height: 1.35; }
.note.n1 b { display: block; font-family: var(--hand); font-weight: 400; font-size: 19px; color: var(--ink-dark); margin-bottom: 4px; }
.note.n2 { left: 128px; top: 150px; width: 155px; height: 118px; transform: rotate(4deg); font-size: 13px; line-height: 1.5; }
.note.n2 li::before { content: '\2717  '; color: var(--red); }
.note.n2 b { color: var(--red); font-weight: 400; }
.blueprint .pin { top: 6px; }

/* ---------- Photo column ---------- */
.photos { left: 548px; top: 46px; width: 170px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.photos .photo { width: 156px; height: 118px; }
.photos .photo.circled .pic::before {
  content: ''; position: absolute; inset: 8px 4px 6px 6px; border: 2.5px solid #d4352b; border-radius: 50%; z-index: 2; transform: rotate(-6deg);
}
.photos .label { margin: 0 0 8px; font-size: 19px; }

/* ---------- Lists ---------- */
.list-block { top: 26px; }
.contact { left: 744px; width: 330px; }
.volunteer { left: 1104px; width: 365px; }
.check-list li { margin-bottom: 4px; }
.check-list .row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  font-size: 20px; line-height: 1.15; color: var(--ink); padding: 4px 8px; border-radius: 4px;
}
.check-list .row small { display: block; font-family: var(--hand2); font-size: 13px; color: var(--ink-faint); margin-top: 1px; }
.contact .row { color: var(--ink-dark); }

/* ---------- Projects ---------- */
.projects { left: 28px; top: 384px; width: 700px; }
.projects .grid { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
.slot { display: flex; flex-direction: column; align-items: center; padding: 4px 0; position: relative; }
.slot .photo { width: 182px; height: 124px; }
.slot .label { margin-top: 8px; }
.arrow {
  position: absolute; top: 46px; width: 22px; height: 44px; color: var(--ink-faint); font-size: 40px; line-height: 40px; font-family: var(--ui); font-weight: 400;
}
.arrow:hover { color: var(--ink-dark); }
.arrow.l { left: -4px; }
.arrow.r { right: -4px; }

/* ---------- Target ---------- */
.target { left: 748px; top: 470px; width: 236px; display: flex; flex-direction: column; align-items: center; }
.target .head { color: var(--red); border-color: var(--red); font-size: 25px; padding: 0 6px 4px; margin-bottom: 8px; }
.target .ring { position: relative; padding: 22px 26px; }
.target .ring svg.arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.target .photo { width: 180px; height: 132px; background: #f3efe6; }
.target .label { color: var(--red); margin-top: 0; }
.target .sub { font-family: var(--hand2); font-size: 14px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- Skills ---------- */
.skills { left: 996px; top: 410px; width: 214px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 76px); gap: 16px 16px; justify-content: center; }
.skill { width: 76px; height: 76px; padding: 5px; }
.skill .pic { display: grid; place-items: center; background: var(--bg); filter: saturate(.75) brightness(.95); }
.skill .pic span { font-family: var(--ui); font-weight: 600; font-size: 20px; color: #fff; letter-spacing: -.5px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); z-index: 1; }
.skill .pic small { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-family: var(--ui); font-size: 8px; color: rgba(255, 255, 255, .8); text-transform: uppercase; letter-spacing: .5px; z-index: 1; }
.skill:nth-child(odd) { transform: rotate(-2deg); }
.skill:nth-child(even) { transform: rotate(1.5deg); }

/* ---------- Extras ---------- */
.extras { left: 1222px; top: 400px; width: 248px; }
.extra { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.extra .photo { width: 150px; height: 106px; }
.extra .label { font-size: 17px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.extra .label .cb { transform: scale(.85); }

/* ---------- Approach / experience ---------- */
.approach { left: 28px; top: 806px; width: 1170px; }
.approach .head { margin-bottom: 16px; }
.approach-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.job { display: grid; grid-template-columns: 172px 1fr; gap: 24px; padding: 6px; }
.job .photo { width: 172px; height: 118px; }
.job .icon {
  position: absolute; left: 40%; top: 32%; width: 40px; height: 40px; z-index: 3; background: var(--yellow);
  display: grid; place-items: center; box-shadow: 1px 2px 4px rgba(0, 0, 0, .4);
}
.job .icon svg { width: 26px; height: 26px; }
.job .desc { font-family: var(--hand2); font-size: 14px; line-height: 1.35; color: var(--ink-faint); display: flex; flex-direction: column; justify-content: space-between; }
.job .desc .when { color: var(--ink); font-size: 13px; }
.job .pick { font-family: var(--hand); font-size: 19px; color: var(--ink-dark); display: flex; align-items: center; gap: 8px; }

.magnets { position: absolute; right: 26px; bottom: 18px; width: 130px; height: 60px; }
.m { position: absolute; width: 18px; height: 18px; border-radius: 50%; box-shadow: 1px 3px 4px rgba(0, 0, 0, .4); }
.m.blue { background: var(--pin-blue); left: 0; top: 30px; }
.m.red { background: var(--pin-red); left: 50px; top: 4px; }
.m.red.s { left: 34px; top: 36px; width: 14px; height: 14px; }
.m.yellow { background: var(--pin-yellow); left: 96px; top: 34px; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; right: 2vw; bottom: 1.8vh; z-index: 20;
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 24px;
  font-size: 17px; text-shadow: 0 1px 3px #000;
}
.hud-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button.hud-item:hover { color: var(--yellow); }
kbd {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px;
  background: #f4f4f4; color: #111; border-radius: 3px; font: 600 15px var(--ui); text-shadow: none;
}
kbd.wide { min-width: 40px; font-size: 13px; }
.mouse {
  display: inline-block; width: 18px; height: 26px; border-radius: 9px; background: #f4f4f4; position: relative;
}
.mouse::after { content: ''; position: absolute; left: 50%; top: 4px; width: 2px; height: 7px; margin-left: -1px; background: #111; border-radius: 1px; }
.mouse.wheel::before { content: '\2195'; position: absolute; left: 21px; top: 2px; font-size: 16px; color: #fff; }
.mouse.wheel { margin-right: 10px; }

/* ---------- Info panel (Tab) ---------- */
.info {
  position: fixed; left: 2vw; top: 3vh; z-index: 25; width: min(380px, 92vw);
  background: rgba(0, 0, 0, .78); border-top: 4px solid var(--yellow); padding: 20px 22px;
  font-size: 15px; line-height: 1.5; backdrop-filter: blur(4px);
}
.info h3 { font-size: 22px; margin-bottom: 2px; }
.info .role { color: var(--yellow); margin-bottom: 12px; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; }
.info dt { color: #9aa3ad; }
.info .status { display: inline-flex; align-items: center; gap: 8px; color: #8fd16a; }
.info .status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8fd16a; box-shadow: 0 0 8px #8fd16a; }
.info .hint { color: #9aa3ad; font-size: 13px; margin-top: 12px; }

/* ---------- Dossier modal ---------- */
.dossier {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px);
}
.dossier[hidden], .info[hidden] { display: none; }
.paper {
  position: relative; width: min(720px, 100%); max-height: 90vh; overflow: auto;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80, 120, 170, .14) 31px 32px),
    linear-gradient(180deg, #f7f4ec, #ece6d6);
  color: #3a424c; padding: 34px 38px 30px; font-family: var(--hand2); font-size: 16px; line-height: 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7); transform: rotate(-.6deg);
  animation: drop .22s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(18px) rotate(-2deg); } }
.paper .close { position: absolute; right: 14px; top: 8px; font-size: 34px; color: #6b737d; font-family: var(--ui); }
.paper .close:hover { color: var(--red); }
.paper .close:focus { outline: none; }
.paper .close:focus-visible { outline: 2px dashed var(--red); outline-offset: 2px; }
.paper .kind { font-family: var(--ui); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #8a929c; }
.paper h2 { font-family: var(--hand); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--ink-dark); margin: 4px 0 2px; }
.paper .subt { color: #6c7580; }
.paper .stamp {
  position: absolute; right: 54px; top: 34px; font-family: var(--ui); font-weight: 600; font-size: 14px; letter-spacing: 3px;
  color: var(--red); border: 3px solid var(--red); padding: 2px 10px; transform: rotate(8deg); opacity: .8; line-height: 1.6;
}
.paper .d-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 16px; }
.paper .d-grid .photo { width: 220px; height: 150px; transform: rotate(-2deg); }
.paper dl { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.paper dt { color: #8a929c; }
.paper ul.bullets li::before { content: '\2192  '; color: var(--red); }
.paper .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; line-height: 1.4; }
.paper .tags span { border: 1.5px solid #6c7580; border-radius: 3px; padding: 1px 8px; font-size: 14px; }
.paper .go {
  display: inline-block; margin-top: 18px; font-family: var(--ui); font-weight: 600; font-size: 14px; letter-spacing: 1px; line-height: 1;
  background: var(--yellow); color: #111; padding: 12px 18px; box-shadow: 2px 3px 0 #111;
}
.paper .go:hover { transform: translate(-1px, -1px); box-shadow: 3px 4px 0 #111; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 4vh; z-index: 40; transform: translate(-50%, -20px); opacity: 0;
  background: rgba(0, 0, 0, .82); border-left: 4px solid var(--yellow); padding: 12px 20px; font-size: 15px; max-width: 90vw;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .hud { left: 16px; right: 16px; justify-content: center; font-size: 13px; gap: 6px 14px; }
  .hide-sm { display: none; }
  kbd { min-width: 22px; height: 22px; font-size: 12px; }
  .paper { padding: 28px 20px; }
  .paper .d-grid { grid-template-columns: 1fr; }
  .paper .stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .paper { animation: none; }
  .sel, .toast { transition: none; }
}

/* ---------- Lester subtitles ---------- */
.subtitle {
  position: fixed; left: 50%; bottom: 76px; z-index: 35; width: min(860px, calc(100vw - 32px));
  transform: translateX(-50%); text-align: center; pointer-events: none;
  font-size: 20px; line-height: 1.4; color: #fff;
  text-shadow: 0 0 4px #000, 0 2px 3px #000, 0 0 12px rgba(0, 0, 0, .9);
  opacity: 0; transition: opacity .2s;
}
.subtitle.show { opacity: 1; }
.subtitle b { color: #e9c46a; font-weight: 600; }
#hud-voice.off { opacity: .5; text-decoration: line-through; }
@media (max-width: 760px) {
  .subtitle { bottom: 96px; font-size: 15px; }
}
