* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050505;
  color: #f4f4f4;
  font-family: "Courier New", Courier, monospace;
  min-height: 100vh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.55) 75%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 0 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
}

.site-header {
  text-align: center;
  margin-bottom: 0;
}

.tiny-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: lowercase;
  margin: 0 0 8px;
  color: #9c9c9c;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: normal;
  letter-spacing: 4px;
  margin: 0;
  text-transform: lowercase;
  color: #ffffff;
}

.subtitle {
  max-width: 620px;
  margin: 8px auto 0;
  line-height: 1.45;
  color: #c9c9c9;
  font-size: 14px;
}

.map-box {
  position: relative;
  width: 100%;
  min-height: 0;
  background: rgba(10, 10, 10, 0.6);
  padding: 38px 34px 28px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.map-box::before {
  content: "map";
  position: absolute;
  top: 10px;
  left: 16px;
  background: #050505;
  padding: 0 10px;
  font-size: 12px;
  color: #d8d8d8;
}

.map-row {
  display: contents;
}

.middle-row {
  justify-content: initial;
}

.map-link {
  width: clamp(160px, 14vw, 190px);
  min-height: 0;
  color: #ffffff;
  text-decoration: none;
  background: rgba(13, 13, 13, 0.72);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.map-link:hover {
  transform: translate(-4px, -4px);
  background: #161616;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

.map-link.library {
  grid-column: 2 / span 3;
  grid-row: 1 / span 2;
  justify-self: start;
  align-self: start;
}

.map-link.gallery {
  grid-column: 5 / span 3;
  grid-row: 2 / span 2;
  justify-self: center;
  align-self: start;
}

.map-link.garage {
  grid-column: 9 / span 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
}

.map-link.lab {
  grid-column: 3 / span 3;
  grid-row: 4 / span 2;
  justify-self: center;
  align-self: end;
}

.map-link.studio {
  grid-column: 8 / span 3;
  grid-row: 4 / span 2;
  justify-self: center;
  align-self: end;
}

.map-link.gallery .icon-wrap,
.map-link.library .icon-wrap,
.map-link.garage .icon-wrap,
.map-link.lab .icon-wrap,
.map-link.studio .icon-wrap {
  width: 82px;
  height: 82px;
  border: 1px solid #ffffff;
  display: grid;
  place-items: center;
  background: #000000;
  transition: box-shadow 0.15s ease;
}

.map-link.gallery .gallery-icon {
  width: 62px;
  height: 62px;
  overflow: visible;
}

.map-link.gallery .gallery-line,
.map-link.gallery .sketch-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-link.gallery .sketch-line {
  stroke-width: 2;
  opacity: 0.75;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.map-link.gallery .sketch-1 {
  animation: sketchDraw 3s ease-in-out infinite;
}

.map-link.gallery .sketch-2 {
  animation: sketchDraw 3s ease-in-out infinite;
  animation-delay: 0.4s;
}

.map-link.gallery .sketch-3 {
  animation: sketchDraw 3s ease-in-out infinite;
  animation-delay: 0.8s;
}

.map-link.gallery .pencil-move {
  transform-box: view-box;
  transform-origin: 72px 78px;
  animation: pencilSketch 1.8s ease-in-out infinite;
}

.map-link.gallery .pencil-dot {
  fill: #ffffff;
  opacity: 0.8;
  animation: dotBlink 1.8s ease-in-out infinite;
}

.map-link.gallery:hover .pencil-move {
  animation-duration: 0.9s;
}

.map-link.gallery:hover .sketch-line {
  animation-duration: 1.5s;
}

.map-link.gallery:hover .icon-wrap {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.map-link.library .library-icon {
  width: 62px;
  height: 62px;
  overflow: visible;
}

.map-link.library .book-line,
.map-link.library .page-line,
.map-link.library .flip-page {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-link.library .page-line {
  stroke-width: 2;
  opacity: 0.8;
}

.map-link.library .flip-page {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: pageFlip 3.5s ease-in-out infinite;
  opacity: 0.9;
}

.map-link.library:hover .flip-page {
  animation-duration: 0.9s;
}

.map-link.library:hover .icon-wrap {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.map-link.garage .garage-icon {
  width: 62px;
  height: 62px;
  overflow: visible;
  transform-box: view-box;
}

.map-link.garage .engine-line,
.map-link.garage .spark-line,
.map-link.garage .vibration-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-link.garage .spark-line {
  stroke-width: 2.4;
  animation: sparkBlink 1.8s steps(1) infinite;
}

.map-link.garage .vibration-line {
  stroke-width: 2;
  opacity: 0.45;
  animation: vibrationBlink 1s ease-in-out infinite;
}

.map-link.garage .piston-icon {
  animation: engineShake 0.9s ease-in-out infinite;
}

.map-link.garage .piston-move {
  transform-box: view-box;
  animation: pistonMove 0.7s ease-in-out infinite;
}

.map-link.garage .crank-wheel,
.map-link.garage .crank-dot {
  transform-box: view-box;
  transform-origin: 60px 86px;
  animation: crankSpin 0.7s linear infinite;
}

.map-link.garage:hover .piston-icon {
  animation-duration: 0.45s;
}

.map-link.garage:hover .piston-move {
  animation-duration: 0.35s;
}

.map-link.garage:hover .crank-wheel,
.map-link.garage:hover .crank-dot {
  animation-duration: 0.35s;
}

.map-link.garage:hover .icon-wrap {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.map-link.lab .lab-icon {
  width: 62px;
  height: 62px;
  overflow: visible;
  transform-box: view-box;
}

.map-link.lab .rack-line,
.map-link.lab .network-line,
.map-link.lab .node-ring {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-link.lab .rack-body {
  transform-box: fill-box;
  transform-origin: center;
  animation: rackHum 1.8s ease-in-out infinite;
}

.map-link.lab .network-line {
  stroke-width: 2.4;
  stroke-dasharray: 8 7;
  animation: dataFlow 2.6s linear infinite;
  opacity: 0.85;
}

.map-link.lab .network-mid {
  animation-delay: -0.35s;
}

.map-link.lab .network-bottom {
  animation-delay: -0.7s;
}

.map-link.lab .status-light,
.map-link.lab .node-core {
  fill: #ffffff;
}

.map-link.lab .status-light {
  animation: statusBlink 2.2s steps(1) infinite;
}

.map-link.lab .node-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 1.6s ease-in-out infinite;
}

.map-link.lab .status-mid,
.map-link.lab .node-mid {
  animation-delay: 0.35s;
}

.map-link.lab .status-bottom,
.map-link.lab .node-bottom {
  animation-delay: 0.7s;
}

.map-link.lab:hover .rack-body {
  animation-duration: 1s;
}

.map-link.lab:hover .network-line {
  animation-duration: 1.1s;
}

.map-link.lab:hover .status-light {
  animation-duration: 1.1s;
}

.map-link.lab:hover .node-core {
  animation-duration: 0.9s;
}

.map-link.lab:hover .icon-wrap {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.map-link.studio .studio-icon {
  width: 62px;
  height: 62px;
  overflow: visible;
}

.map-link.studio .studio-line,
.map-link.studio .sound-line,
.map-link.studio .bow-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-link.studio .studio-fill,
.map-link.studio .peg-left,
.map-link.studio .peg-right {
  fill: #ffffff;
}

.map-link.studio .violin-icon {
  animation: violinSway 1.8s ease-in-out infinite;
}

.map-link.studio .string-line {
  stroke-width: 2;
  opacity: 0.55;
  animation: stringShimmer 0.95s steps(1) infinite;
}

.map-link.studio .string-2 {
  animation-delay: 0.18s;
}

.map-link.studio .string-3 {
  animation-delay: 0.36s;
}

.map-link.studio .bow-line {
  stroke-width: 2.4;
}

.map-link.studio .bow-hair {
  opacity: 0.7;
}

.map-link.studio .bow-move {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: bowPlay 1.15s ease-in-out infinite;
}

.map-link.studio .sound-line {
  stroke-width: 2.2;
  opacity: 0.25;
  animation: soundPulse 1.35s ease-in-out infinite;
}

.map-link.studio .sound-right {
  animation-delay: 0.675s;
}

.map-link.studio:hover .violin-icon,
.map-link.studio:hover .bow-move,
.map-link.studio:hover .string-line,
.map-link.studio:hover .sound-line {
  animation-duration: 0.65s;
}

.map-link.studio:hover .icon-wrap {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.title {
  font-size: 17px;
  text-transform: lowercase;
  margin-bottom: 0;
  color: #ffffff;
}

.desc {
  display: none;
}

.notice-board {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 8px 14px;
  background: rgba(12, 12, 12, 0.6);
}

.notice-board p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #d0d0d0;
}

.footer {
  text-align: center;
  margin-top: 0;
  color: #999999;
  font-size: 12px;
}

@keyframes pageFlip {
  0% {
    transform: scaleX(1);
    opacity: 0.85;
  }

  35% {
    transform: scaleX(0.18) skewY(-4deg);
    opacity: 0.55;
  }

  70% {
    transform: scaleX(1);
    opacity: 0.85;
  }

  100% {
    transform: scaleX(1);
    opacity: 0.85;
  }
}

@keyframes pencilSketch {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  35% {
    transform: translate(-6px, 4px) rotate(-4deg);
  }

  70% {
    transform: translate(4px, -3px) rotate(3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes sketchDraw {
  0% {
    stroke-dashoffset: 60;
    opacity: 0.2;
  }

  45% {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
}

@keyframes dotBlink {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

@keyframes pistonMove {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes crankSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes engineShake {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(0.4px, -0.4px);
  }

  50% {
    transform: translate(-0.4px, 0.3px);
  }

  75% {
    transform: translate(0.3px, 0.4px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes sparkBlink {
  0%,
  60%,
  100% {
    opacity: 0.15;
  }

  65%,
  75% {
    opacity: 1;
  }
}

@keyframes vibrationBlink {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.65;
  }
}

@keyframes rackHum {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.6px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes dataFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -30;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes statusBlink {
  0%,
  55%,
  100% {
    opacity: 0.2;
  }

  60%,
  72% {
    opacity: 1;
  }
}

@keyframes violinSway {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.4px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes bowPlay {
  0% {
    transform: translate(-5px, -2px) rotate(-6deg);
  }

  50% {
    transform: translate(4px, 3px) rotate(5deg);
  }

  100% {
    transform: translate(-5px, -2px) rotate(-6deg);
  }
}

@keyframes soundPulse {
  0%,
  100% {
    opacity: 0.18;
    transform: scaleY(0.88);
  }

  50% {
    opacity: 0.85;
    transform: scaleY(1.08);
  }
}

@keyframes stringShimmer {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.9;
  }
}

/* small screen */
@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .page {
    width: min(92vw, 680px);
    min-height: auto;
    padding: 24px 0 18px;
    display: block;
  }

  .map-box {
    display: block;
    padding: 26px 18px 18px;
  }

  .map-row,
  .middle-row,
  .bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
  }

  .map-link {
    width: 100%;
    max-width: 250px;
    min-height: 0;
  }

  .map-link.library,
  .map-link.gallery,
  .map-link.garage,
  .map-link.lab,
  .map-link.studio {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    align-self: auto;
  }
}
