*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: inherit;
  font-size: inherit;
  line-height: 1.1;
}

:root {
  --vh: 100vh;
  color-scheme: dark;
}

html {
  background: #0f1626;
  scroll-behavior: auto;
}

body {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #e9edf1;
  background: #0f1626;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.875rem 1.375rem;
  border-radius: 999px;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn--light {
  background: #e9edf1;
  color: #0f1626;
}
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover {
    background: #e8a87c;
  }
}
@media (hover: none) {
  .btn--light:active {
    background: #e8a87c;
  }
}
.btn--ghost {
  color: #e9edf1;
  box-shadow: inset 0 0 0 1px rgba(233, 237, 241, 0.35);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    box-shadow: inset 0 0 0 1px #e9edf1;
  }
}
@media (hover: none) {
  .btn--ghost:active {
    box-shadow: inset 0 0 0 1px #e9edf1;
  }
}
.btn:focus-visible {
  outline: 2px solid #e8a87c;
  outline-offset: 3px;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.25rem;
  mix-blend-mode: normal;
  pointer-events: none;
}
.header > * {
  pointer-events: auto;
}
@media (min-width: 900px) {
  .header {
    padding: 1.5rem 2.5rem;
  }
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
}
.header__mark {
  width: 1.625rem;
  height: 1.625rem;
  color: #e8a87c;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.header__nav a {
  opacity: 0.8;
}
@media (hover: hover) and (pointer: fine) {
  .header__nav a:hover {
    opacity: 1;
  }
}
@media (hover: none) {
  .header__nav a:active {
    opacity: 1;
  }
}
.header__demo {
  display: none;
  color: #8a949c;
}
@media (min-width: 900px) {
  .header__demo {
    display: inline;
  }
}

.street__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a87c;
  margin-bottom: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.no-motion .street {
  display: none;
}

.street {
  position: relative;
}
.street__stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0f1e 0%, #111a2e 36%, #2b2538 47%, #6a4540 51.5%, #2a2235 54%, #0f1626 62%);
}
.street__stage .h-house {
  position: relative;
  width: 420px;
  height: 630px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.3s ease;
}
.street__stage .h-house img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  pointer-events: none;
}
.street__stage .h-house::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 70px;
  height: 70px;
  transform: translateX(-50%) scale(0.6);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(232, 168, 124, 0.9), 0 0 40px 10px rgba(232, 168, 124, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.street__stage .h-house.is-near::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.street__stage .h-house.is-near .h-sign {
  opacity: 1;
  transform: translateY(0);
}
.street__stage .h-sign {
  position: absolute;
  bottom: 12%;
  width: 250px;
  padding: 16px 18px 18px;
  background: #1b2130;
  color: #e9edf1;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  font-family: "Inter Tight", system-ui, sans-serif;
  opacity: 0.72;
  transform: translateY(0);
  transition: opacity 0.3s ease;
}
.street__stage .h-sign b {
  display: block;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.street__stage .h-sign span {
  font-size: 15px;
  color: #8a949c;
}
.street__stage .h-sign em {
  display: inline-block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  color: #e8a87c;
}
.street__stage .h-house.is-left .h-sign {
  left: calc(100% + 24px);
}
.street__stage .h-house.is-right .h-sign {
  right: calc(100% + 24px);
}
.street__stage .h-road {
  width: 1200px;
  height: 9000px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 74px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 46px), linear-gradient(90deg, #171d2c 0%, #222a3b 18%, #262e40 50%, #222a3b 82%, #171d2c 100%);
  border-left: 10px solid #3a4152;
  border-right: 10px solid #3a4152;
  box-sizing: border-box;
}
.street__stage .h-lamp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3dc 0%, rgba(232, 168, 124, 0.9) 30%, rgba(232, 168, 124, 0) 70%);
  box-shadow: 0 0 60px 30px rgba(232, 168, 124, 0.18);
}
.street__stage .h-pole {
  width: 6px;
  height: 460px;
  background: linear-gradient(180deg, #4a5160, #262c3a);
  border-radius: 3px;
}
.street__stage .h-end {
  width: 2400px;
  height: 1400px;
  background: radial-gradient(ellipse at 50% 70%, rgba(232, 168, 124, 0.25) 0%, rgba(15, 22, 38, 0) 55%);
}
.street__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, rgba(15, 22, 38, 0.55) 0%, rgba(15, 22, 38, 0) 38%);
}
.street__intro {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: end;
  padding: 0 1.25rem 5.5rem;
  pointer-events: none;
}
.street__intro > * {
  pointer-events: auto;
}
@media (min-width: 900px) {
  .street__intro {
    align-content: end;
    justify-items: center;
    text-align: center;
    padding: 0 2.5rem 6rem;
  }
}
.street__title {
  font-size: clamp(2.125rem, 6.2vw, 4.25rem);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(15, 22, 38, 0.8);
}
.street__lead {
  max-width: 36em;
  color: rgba(233, 237, 241, 0.86);
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 12px rgba(15, 22, 38, 0.9);
}
.street__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #8a949c;
}
.street__mouse {
  width: 18px;
  height: 28px;
  border: 2px solid #8a949c;
  border-radius: 10px;
  position: relative;
}
.street__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #e8a87c;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(9px);
    opacity: 0;
  }
}
.street__gate {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 0.625rem;
  justify-items: center;
  background: rgba(15, 22, 38, 0.55);
  backdrop-filter: blur(6px);
}
.street__gate[hidden] {
  display: none;
}
.street__gate-note {
  font-size: 0.75rem;
  color: #8a949c;
}
.street__progress {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2px;
  height: 11.25rem;
  background: rgba(233, 237, 241, 0.18);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.street__progress span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: #e8a87c;
}
.street__progress em {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a949c;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .street__progress {
    right: 2.5rem;
  }
}
.street.is-walking .street__progress {
  opacity: 1;
}
.street.is-walking .street__intro {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.street__intro {
  transition: opacity 0.5s ease;
}
.street__spacer {
  position: relative;
  z-index: 0;
  height: 700vh;
}

.has-motion .houses {
  position: relative;
  z-index: 10;
  background: #0f1626;
}

.houses {
  padding: 7.5rem 1.25rem 5rem;
}
@media (min-width: 900px) {
  .houses {
    padding: 10rem 2.5rem 7.5rem;
  }
}
.houses__head {
  max-width: 47.5rem;
  margin-bottom: 3.5rem;
}
.houses__title {
  font-size: clamp(1.875rem, 4.6vw, 3.25rem);
  margin-bottom: 1.125rem;
}
.houses__lead {
  color: rgba(233, 237, 241, 0.8);
  max-width: 36em;
}
.houses__list {
  list-style: none;
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .houses__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.houses__item {
  background: #1b2130;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.houses__img {
  aspect-ratio: 2/3;
  object-fit: cover;
  width: 100%;
}
.houses__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.houses__no {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #e8a87c;
}
.houses__name {
  font-size: 1.375rem;
}
.houses__meta {
  font-size: 0.875rem;
  color: #8a949c;
}
.houses__text {
  font-size: 0.9375rem;
  color: rgba(233, 237, 241, 0.82);
  margin-top: 0.25rem;
}
.houses__enter {
  margin-top: 0.875rem;
  justify-self: start;
}

.about {
  padding: 5rem 1.25rem 6.25rem;
  border-top: 1px solid rgba(233, 237, 241, 0.08);
}
@media (min-width: 900px) {
  .about {
    padding: 7.5rem 2.5rem 8.75rem;
  }
}
.about__inner {
  max-width: 70rem;
  margin: 0 auto;
}
.about__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 2.5rem;
}
.about__cols {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .about__cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
.about__cols h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.625rem;
  color: #e8a87c;
}
.about__cols p {
  color: rgba(233, 237, 241, 0.82);
}
.about__facts {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .about__facts {
    grid-template-columns: repeat(4, 1fr);
  }
}
.about__facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a949c;
  margin-bottom: 0.375rem;
}
.about__facts dd {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.footer {
  padding: 3rem 1.25rem 2.5rem;
  background: #0a0f1b;
}
@media (min-width: 900px) {
  .footer {
    padding: 4rem 2.5rem 3rem;
  }
}
.footer__inner {
  max-width: 70rem;
  margin: 0 auto;
  display: grid;
  gap: 0.625rem;
}
.footer__logo {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
}
.footer__addr {
  color: #8a949c;
  font-size: 0.875rem;
}
.footer__note {
  font-size: 0.8125rem;
  color: rgba(233, 237, 241, 0.6);
  max-width: 60em;
  margin-top: 0.75rem;
}
.footer__by {
  font-size: 0.75rem;
  color: #8a949c;
  margin-top: 0.5rem;
}

.room {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
}
.room[hidden] {
  display: none;
}
.room__stage {
  position: absolute;
  inset: 0;
}
.room__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.room__stage.is-dragging canvas {
  cursor: grabbing;
}
.room__fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.room.is-open .room__fade {
  opacity: 0;
}
.room__ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.room__ui > * {
  pointer-events: auto;
}
.room__sign {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 5.25rem;
  max-width: 26.25rem;
  padding: 1.125rem 1.25rem;
  background: rgba(15, 22, 38, 0.72);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
@media (min-width: 900px) {
  .room__sign {
    left: 2.5rem;
    top: 6.25rem;
  }
}
.room.is-open .room__sign {
  opacity: 1;
  transform: translateY(0);
}
.room__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a87c;
  margin-bottom: 0.5rem;
}
.room__name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.room__text {
  font-size: 0.875rem;
  color: rgba(233, 237, 241, 0.82);
}
.room__hint {
  position: absolute;
  left: 50%;
  bottom: 6rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: rgba(233, 237, 241, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.5s ease 1s;
}
.room__hint span {
  width: 34px;
  height: 2px;
  background: #e8a87c;
  border-radius: 2px;
  position: relative;
}
.room__hint span::before, .room__hint span::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #e8a87c;
}
.room__hint span::before {
  left: -2px;
  border-left: 2px solid #e8a87c;
  transform: rotate(-45deg);
}
.room__hint span::after {
  right: -2px;
  border-right: 2px solid #e8a87c;
  transform: rotate(45deg);
}
@media (min-width: 900px) {
  .room__hint {
    bottom: 6.875rem;
  }
}
.room.is-open .room__hint {
  opacity: 1;
}
.room.has-dragged .room__hint {
  opacity: 0;
  transition-delay: 0s;
}
.room__nav {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .room__nav {
    left: 2.5rem;
    right: 2.5rem;
    bottom: 2.25rem;
  }
}
.room__loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: #8a949c;
  transition: opacity 0.3s ease;
}
.room.is-open .room__loading {
  opacity: 0;
}
