/* Code is the focal plane. UI stays native; the three illustrations have
   independent depth wrappers, using the shared maker cascade and parallax. */
@font-face { font-family: Maker Notes; src: url('../fonts/PatrickHand-Regular.ttf') format('truetype'); font-display: swap; }
.coder-grid { inset: -7% -6% -13%; z-index: 0; pointer-events: none; }
.coder-grid > .maker-depth { height: 100%; }
.coder-grid__plane { height: 100%; background-image: linear-gradient(#a6d7ff55 1px, transparent 1px), linear-gradient(90deg, #a6d7ff55 1px, transparent 1px); background-size: 3.4cqw 3.4cqw; transform: perspective(1000px) rotateX(24deg) rotateZ(-8deg); mask-image: radial-gradient(ellipse, #000 20%, transparent 70%); }
.coder-editor { left: -1%; top: 43%; width: 43%; z-index: 4; }
/* The seated mascot shares this plane and parallax, so it stays on the terminal edge. */
.coder-editor__assembly { position: relative; transform: perspective(1300px) rotateX(9deg) rotateY(-8deg) rotateZ(10deg); }
.coder-editor__plane { background: #172234; color: #dce6f5; border: 1px solid #586a83; box-shadow: 0 2cqw 4cqw #1838612e; border-radius: 1.5cqw; overflow: hidden; }
.coder-editor__bar { display: flex; align-items: center; gap: 1.4cqw; height: 4cqw; padding: 0 1.8cqw; background: #202d42; font: 400 1.2cqw/1 Collab UI, sans-serif; }
.coder-editor__lights { display: flex; gap: .45cqw; }
.coder-editor__lights i { width: .65cqw; height: .65cqw; background: #ff6c7f; clip-path: circle(); }
.coder-editor__lights i:nth-child(2) { background: #ffce65; }
.coder-editor__lights i:nth-child(3) { background: #56d4a4; }
.coder-editor__bar > small { margin-left: auto; color: #99acc7; font-size: 1cqw; }
.coder-source { margin: 0; padding: 1.6cqw 1.6cqw 1.6cqw 4.6cqw; font: 400 1.11cqw/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; counter-reset: code-line; }
.coder-source > code { display: block; position: relative; white-space: pre; }
.coder-source > code::before { counter-increment: code-line; content: counter(code-line); position: absolute; right: calc(100% + 1.5cqw); color: #6f839f; font-size: 1.1cqw; }
.coder-syntax-tag { color: #ff91bb; }
.coder-syntax-attr { color: #8cceff; }
.coder-syntax-string { color: #c5e795; }
.coder-syntax-comment { color: #84a99c; }
.coder-editor__footer { display: flex; justify-content: space-between; padding: .7cqw 1.8cqw; background: #23334c; color: #a6bedc; font: 400 1cqw/1 Collab UI, sans-serif; }
.coder-app { left: 45%; top: 32%; width: 57%; z-index: 3; }
.coder-app__plane { background: #fff; border: 1px solid #88bfff; box-shadow: 0 .35cqw 0 #d9ebff, 0 1.7cqw 3.5cqw #31567c25; transform: perspective(1400px) rotateX(5deg) rotateY(-10deg) rotateZ(5deg); border-radius: 1.5cqw; padding: 1.3cqw; font: 400 1.05cqw/1.4 Collab UI, sans-serif; }
.coder-app__header { display: flex; align-items: center; gap: .6cqw; margin-bottom: 1.3cqw; }
.coder-app__header > .material-icons { color: #0565ff; font-size: 2cqw; }
.coder-app__header b { font-size: 1.35cqw; font-weight: 600; margin-right: auto; }
.coder-collaborators { display: flex; align-items: center; gap: .2cqw; margin-left: auto; }
.coder-collaborators .collab-avatar { width: 2.1cqw; height: 2.1cqw; }
.coder-collaborators small { margin-left: .3cqw; }
.coder-app__share { color: #fff; background: #0565ff; padding: .45cqw 1cqw; margin-left: .8cqw; border-radius: .35cqw; }
.coder-app__body { display: grid; grid-template-columns: 9cqw 1fr; gap: 1cqw; }
.coder-app__menu { color: #6c7e9b; display: flex; flex-direction: column; gap: .8cqw; }
.coder-app__menu > span { display: flex; align-items: center; gap: .5cqw; padding: .55cqw .5cqw; }
.coder-app__menu .material-icons { font-size: 1.4cqw; }
.coder-app__menu .is-selected { background: #eaf3ff; color: #0565ff; }
.coder-map { position: relative; height: 27cqw; overflow: hidden; background: #eef2ef; }
.coder-map__drawing { width: 100%; height: 100%; }
.coder-map__pin { position: absolute; color: #0565ff; filter: drop-shadow(0 .3cqw .2cqw #23395835); }
.coder-map__pin .material-icons { font-size: 3.3cqw; }
.coder-map__pin--park { left: 15%; top: 24%; }
.coder-map__pin--cafe { right: 17%; top: 43%; color: #9348dc; }
.coder-map__pin--art { left: 31%; bottom: 11%; color: #0eb195; }
.coder-map__spot { position: absolute; left: 7%; top: 6%; background: #fff; padding: .5cqw .65cqw; box-shadow: 0 .4cqw 1cqw #476e8c20; display: flex; gap: .7cqw; align-items: center; }
.coder-map__spot img { width: 3.1cqw; height: 3.1cqw; object-fit: cover; }
.coder-map__spot--cafe { left: auto; right: 3%; top: 35%; }
.coder-map__spot--art { left: 15%; top: auto; bottom: 17%; }
.coder-map__spot > .material-icons { color: #21a583; background: #def3e8; padding: .6cqw; font-size: 2cqw; }
.coder-map__spot--cafe > .material-icons { color: #b4805b; background: #f8ece1; }
.coder-map__spot b { font-size: 1.05cqw; font-weight: 600; }
.coder-map__spot small { display: block; font-size: .9cqw; color: #7293b5; }
.coder-map__search { position: absolute; left: 8%; bottom: 5%; background: #fff; color: #7891aa; padding: .5cqw .8cqw; font-size: .9cqw; }
.coder-map__zoom { position: absolute; right: 5%; bottom: 5%; background: #fff; display: grid; text-align: center; width: 2cqw; font: 400 1.7cqw/1.5 Collab UI, sans-serif; color: #507292; }
.coder-eniac { position: absolute; right: 1%; bottom: calc(100% - 6cqw); width: 54%; height: auto; z-index: 6; pointer-events: none; }
.coder-server { left: 38%; top: 89%; width: 11%; z-index: 6; }
.coder-database { left: 51%; top: 92%; width: 10%; z-index: 6; }
.coder-wires { left: 30%; top: 70%; width: 42%; height: 35%; z-index: 1; pointer-events: none; }
.coder-wires svg { width: 100%; height: 100%; overflow: visible; }
.coder-wires path { fill: none; stroke: #78b5ff; stroke-width: 2; stroke-dasharray: 5 5; }
.coder-note { z-index: 7; font: 400 2cqw/1.05 Maker Notes, cursive; color: #233b5c; text-align: center; }
.coder-note__paper { padding: 1.2cqw .8cqw; background: #fff0a9; box-shadow: .2cqw .7cqw 1.3cqw #514d4a1f; transform: rotate(-9deg); }
.coder-note--idea { left: -2%; top: 25%; width: 11%; }
.coder-note--ship { right: 4%; top: 20%; width: 13%; font-size: 1.7cqw; }
.coder-note--ship .coder-note__paper { background: #daf1ff; transform: rotate(8deg); }
.maker-coders .maker-card { border-radius: 1.5cqw; font-size: 1.18cqw; }
.maker-coders .maker-card header { border: 0; padding-bottom: .4cqw; font-size: 1.25cqw; font-weight: 600; }
.maker-coders .maker-card h3 { font-weight: 600; }
.maker-coders .maker-card__body { padding-top: .9cqw; }
.maker-coders .maker-docs { left: 7%; right: auto; top: -10%; width: 31%; z-index: 5; --card-tilt: 2deg; }
.coder-docs__routes { margin: 0; display: grid; gap: .8cqw; }
.coder-docs__routes > div { display: flex; align-items: center; gap: 1cqw; background: #f3f6fa; border-radius: .45cqw; padding: .6cqw .7cqw; }
.coder-docs__routes dt { color: #fff; background: #0565ff; border-radius: .35cqw; text-align: center; padding: .25cqw .4cqw; font: 600 .95cqw/1.2 Collab UI, sans-serif; min-width: 3.5cqw; }
.coder-docs__routes > div:nth-child(2) dt { background: #0bb390; }
.coder-docs__routes dd { margin: 0; color: #455977; font: 400 1.05cqw/1.2 ui-monospace, monospace; }
.maker-coders .maker-goals { left: 44%; right: auto; bottom: auto; top: -7%; width: 55%; z-index: 5; --card-tilt: 3deg; }
.coder-goals__board { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1cqw; }
.coder-goals__board > div { background: #f5f8fc; padding: .8cqw; border-radius: .7cqw; }
.coder-goals__board h3 { font-size: 1.1cqw; }
.coder-goals__board .maker-checklist { font-size: 1cqw; }
.coder-goals__board .maker-checklist li { align-items: flex-start; }
.coder-goals__board .maker-checklist li::before { width: 1cqw; height: 1cqw; margin-top: .15cqw; }
.maker-coders .maker-post { left: 1%; top: 89%; width: 31%; z-index: 8; --card-tilt: 4deg; }
.maker-coders .maker-post p { margin: .4cqw 0; }
.maker-coders .maker-calendar { left: auto; right: -1%; bottom: auto; top: 94%; width: 33%; z-index: 8; --card-tilt: 4deg; }
.coder-event { display: flex; align-items: center; gap: 1.2cqw; }
.coder-event__date { padding: .5cqw 1cqw; background: #edf5ff; text-align: center; color: #0565ff; }
.coder-event__date small { color: #0565ff; }
.coder-event__date b { font-size: 2.8cqw; line-height: 1; }
.coder-event h3 { margin-bottom: .3cqw; }
.coder-event__people { margin: 1cqw 0 0; }
.maker-coders .maker-pointer--emma { left: -5%; top: 69%; z-index: 9; }
.maker-coders .maker-pointer--leo { right: -5%; top: 72%; z-index: 9; }
@media (max-width: 1200px) and (min-width: 561px) {
  .coder-editor { top: 43%; }
  .coder-app { top: 36%; }
  .coder-note--idea { top: 29%; }
  .coder-note--ship { top: 25%; }
  .coder-server { top: 77%; }
  .coder-database { top: 81%; }
  .maker-coders .maker-post, .maker-coders .maker-calendar { top: 90%; }
}
@media (max-width: 560px) {
  .maker-coders .maker-docs { top: 0; width: 43%; }
  .maker-coders .maker-goals { left: 47%; top: 0; width: 53%; }
  .maker-coders .maker-card { font-size: 2cqw; }
  .maker-coders .maker-card header { font-size: 2.25cqw; }
  .coder-docs__routes dt, .coder-docs__routes dd { font-size: 1.8cqw; }
  .coder-goals__board { grid-template-columns: 1fr; gap: .5cqw; }
  .coder-goals__board > div { display: flex; gap: 1cqw; align-items: center; padding: .5cqw; }
  .coder-goals__board h3 { font-size: 1.8cqw; width: 5cqw; margin: 0; }
  .coder-goals__board .maker-checklist { font-size: 1.6cqw; }
  .coder-goals__board .maker-checklist li { margin: .4cqw 0; }
  .coder-eniac { width: 39%; bottom: calc(100% - 8cqw); }
  .coder-note--idea { left: 7%; top: 23%; width: 19%; font-size: 3cqw; }
  .coder-note--ship { top: 34%; right: 2%; width: 21%; font-size: 2.8cqw; }
  .coder-editor { left: 0; top: 40%; width: 75%; }
  .coder-source { font-size: 1.65cqw; }
  .coder-editor__assembly { transform: perspective(1300px) rotateY(-8deg) rotateZ(5deg); }
  .coder-app { left: 39%; top: 59%; width: 61%; z-index: 5; }
  .coder-app__body { grid-template-columns: 10cqw 1fr; }
  .coder-map { height: 27cqw; }
  .coder-server { left: 1%; top: 75%; width: 18%; }
  .coder-database { left: 19%; top: 78%; width: 16%; }
  .maker-coders .maker-post { top: 94%; left: 0; width: 47%; }
  .maker-coders .maker-calendar { top: 94%; right: 0; width: 49%; }
  .coder-event__date b { font-size: 4cqw; }
  .coder-collaborators .collab-avatar { width: 3cqw; height: 3cqw; }
  .coder-wires { left: 8%; top: 69%; width: 38%; height: 18%; }
  .maker-coders .maker-pointer--emma { left: -3%; top: 62%; }
  .maker-coders .maker-pointer--leo { right: -3%; top: 81%; }
}
