/* Shared layout, navigation, footer, and text rules. */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 clamp(18px, 4vw, 56px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0;
  background: rgba(5, 7, 11, 0.46);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  overflow: visible;
}

.brand {
  position: relative;
  z-index: 95;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-toggle {
  position: relative;
  z-index: 95;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.header-actions {
  order: 3;
  position: relative;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(233, 213, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.theme-toggle-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f4f7fb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(14px);
  background: #7c3aed;
}

.menu-toggle:hover,
.site-header.menu-open .menu-toggle {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.075);
}

.menu-toggle span {
  position: absolute;
  width: 16px;
  height: 1.4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, background 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle:hover span,
.site-header.menu-open .menu-toggle span {
  background: rgba(255, 255, 255, 0.96);
}

.site-header.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.site-header::before {
  display: none;
}

.site-header::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.site-header.menu-open::after {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 85;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  width: min(420px, 88vw);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 82px 18px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.96), rgba(5, 7, 11, 0.93));
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  opacity: 0;
  pointer-events: none;
  scrollbar-width: none;
  transform: translateX(18px) translateY(-6px);
  transition:
    opacity 220ms ease,
    transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 220ms ease;
  visibility: hidden;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav::before {
  content: "Navigation";
  display: block;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header.menu-open .site-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) translateY(0);
  visibility: visible;
}

.site-nav a {
  position: relative;
  display: block;
  min-height: 78px;
  padding: 18px 42px 18px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.15vw, 1.16rem);
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a::after {
  content: ">";
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(233, 213, 255, 0.56);
}

.site-nav a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.terms-open {
  font: inherit;
  cursor: pointer;
}

.site-nav .terms-open {
  position: relative;
  display: block;
  min-height: 78px;
  width: 100%;
  padding: 18px 42px 18px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: #a78bfa;
  font-size: clamp(0.98rem, 1.15vw, 1.16rem);
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav .terms-open::after {
  content: ">";
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(196, 181, 253, 0.78);
}

.site-nav .terms-open:hover {
  color: #c4b5fd;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.footer-credit {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
}

.footer-separator {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.28);
  vertical-align: -0.12em;
}

.instagram-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.instagram-link:hover {
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
}

.instagram-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.instagram-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.instagram-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

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

.nav-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 18px;
  padding: 6px 18px 0;
}

.nav-social::before {
  content: "SNS";
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav .nav-social .instagram-link {
  min-height: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.58);
}

.site-nav .nav-social .instagram-link::after {
  content: none;
}

.site-nav .nav-social .instagram-link:hover {
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 20px;
}

.footer-social {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 18px;
  margin-top: 10px;
}

.footer-terms {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: inherit;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-terms:hover {
  color: rgba(255, 255, 255, 0.88);
}

.footer-social .instagram-link {
  color: rgba(255, 255, 255, 0.48);
}

.footer-social .instagram-link:hover {
  color: rgba(255, 255, 255, 0.86);
}

.footer-top {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 60;
}

.footer-top {
  width: 64px;
  height: 64px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid rgba(167, 139, 250, 0.46);
  border-radius: 999px;
  background: rgba(13, 16, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  color: #a78bfa;
  font-size: 0;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.footer-top::before {
  content: "";
  position: absolute;
  top: 50.5%;
  left: 50%;
  display: block;
  width: 18px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.footer-top:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 181, 253, 0.72);
  background: rgba(32, 22, 52, 0.82);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
  color: #c4b5fd;
}

@media (max-width: 700px) {
  .footer-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .footer-top::before {
    top: 50.5%;
    width: 16px;
    height: 12px;
  }
}

:where(h1, h2, h3, p, .hero-copy, .desc, .footer-credit, .feature-card p, .building-card, .back, .word, .pill-link) {
  line-break: strict;
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: normal;
  hyphens: manual;
}

:where(h2, h3) {
  text-wrap: balance;
}

:where(p, .hero-copy, .desc, .footer-credit, .feature-card p) {
  text-wrap: pretty;
}

:where(.brand, .site-nav a, .mono-link, .building-card, .back, .word, .pill-link, .footer-top) {
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (min-width: 900px) {
  .site-header {
    gap: clamp(24px, 4vw, 56px);
  }

  .site-header::after {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .header-actions {
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    position: static;
    order: 2;
    z-index: 95;
    display: flex;
    grid-template-columns: none;
    align-items: center;
    align-content: initial;
    justify-content: flex-end;
    gap: clamp(18px, 2.4vw, 34px);
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 700;
    opacity: 1;
    pointer-events: auto;
    text-shadow: none;
    transform: none;
    transition: none;
    visibility: visible;
  }

  .site-nav::before,
  .site-nav a::after,
  .nav-social {
    display: none;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 160ms ease;
  }

  .site-nav a:hover {
    border: 0;
    background: transparent;
    color: #fff;
    transform: none;
  }

  .site-nav .terms-open {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a78bfa;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 160ms ease;
  }

  .site-nav .terms-open::after {
    content: none;
  }

  .site-nav .terms-open::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(164, 108, 255, 0.2), rgba(216, 180, 254, 0.92), rgba(164, 108, 255, 0.2));
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav .terms-open:hover,
  .site-nav .terms-open:focus-visible {
    border: 0;
    background: transparent;
    color: #c4b5fd;
    transform: none;
  }

  .site-nav .terms-open:hover::before,
  .site-nav .terms-open:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 560px) {
  .theme-toggle {
    gap: 0;
    min-width: 42px;
    padding: 0 5px;
  }

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

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-social {
    margin-top: 10px;
  }
}

@media (max-width: 700px) {
  .footer-credit {
    font-size: 0.76rem;
  }

  #hero-title {
    max-width: 100%;
    font-size: clamp(3rem, 16.5vw, 4.8rem);
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: nowrap;
  }

  #page-title {
    max-width: 100%;
    font-size: clamp(2rem, 9.5vw, 3.6rem);
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: nowrap;
  }

  #mono-title {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 4.2rem);
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: nowrap;
  }

  :where(h2, p, .hero-copy, .desc, .feature-card p, .building-title, .building-spots) {
    line-break: strict;
    word-break: normal;
    overflow-wrap: normal;
  }

  :where(.text-panel, .coming-soon-panel) {
    text-align: left;
  }

  :where(.text-panel p, .coming-soon-panel p, .device-note) {
    max-width: 24em;
    margin-right: auto;
    margin-left: auto;
  }

  :where(.text-panel p, .coming-soon-panel p, .tour-note) {
    text-align: left;
  }

  .device-select {
    width: min(100%, 360px);
  }

  .control-guide {
    width: min(100%, 420px);
    text-align: center;
  }

  .control-title {
    text-align: center;
  }

  .control-items {
    justify-items: center;
  }

  .control-item {
    width: min(100%, 340px);
    text-align: center;
  }

  .back-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .pill-link {
    width: min(100%, 320px);
    min-width: 0;
  }

  .tour-actions {
    margin-top: 28px;
    gap: 28px;
  }

  .tour-button {
    width: min(100%, 340px);
  }

  .tour-note {
    max-width: 24em;
    margin-right: auto;
    margin-left: auto;
  }
}

body.terms-modal-open {
  overflow: hidden;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6dvh, 72px) clamp(18px, 4vw, 54px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.terms-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.terms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.terms-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  width: min(1180px, 100%);
  height: min(680px, calc(100dvh - 144px));
  max-height: min(680px, calc(100dvh - 144px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(10, 12, 18, 0.96);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.56);
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.terms-modal[aria-hidden="false"] .terms-panel {
  transform: translateY(0) scale(1);
}

.terms-panel-accent {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 45%, rgba(216, 180, 254, 0.36), transparent 27%),
    radial-gradient(circle at 34% 68%, rgba(124, 58, 237, 0.44), transparent 31%),
    linear-gradient(135deg, #4c1d95, #7c3aed 48%, #1b1030);
}

.terms-panel-accent::before,
.terms-panel-accent::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.terms-panel-accent::before {
  width: 320px;
  height: 320px;
}

.terms-panel-accent::after {
  width: 520px;
  height: 520px;
  opacity: 0.4;
}

.terms-panel-accent span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  white-space: nowrap;
}

.terms-panel-body {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: clamp(34px, 4.2vw, 64px);
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.18), transparent 34%),
    rgba(13, 16, 24, 0.96);
}

.terms-close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.terms-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.terms-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.terms-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.terms-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.terms-eyebrow {
  margin: 0;
  color: #a78bfa;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terms-panel h2 {
  max-width: 12em;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.terms-lead {
  max-width: 34em;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 650;
  line-height: 1.85;
}

.terms-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 18px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.52) rgba(255, 255, 255, 0.06);
}

.terms-section {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-section h3 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.55;
}

.terms-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 550;
  line-height: 1.9;
}

.terms-section p + p {
  margin-top: 8px;
}

.terms-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.terms-list li {
  position: relative;
  padding-left: 1.1em;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 550;
  line-height: 1.9;
}

.terms-list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.48);
}

html[data-theme="light"] .terms-backdrop {
  background: rgba(17, 24, 39, 0.36);
}

html[data-theme="light"] .terms-panel {
  border-color: rgba(109, 40, 217, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 100px rgba(31, 41, 55, 0.2);
}

html[data-theme="light"] .terms-panel-body {
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .terms-close:hover {
  background: rgba(17, 24, 39, 0.06);
}

html[data-theme="light"] .terms-close span {
  background: rgba(17, 24, 39, 0.86);
}

html[data-theme="light"] .terms-panel h2,
html[data-theme="light"] .terms-section h3 {
  color: #111827;
}

html[data-theme="light"] .terms-lead,
html[data-theme="light"] .terms-section p,
html[data-theme="light"] .terms-list li {
  color: rgba(17, 24, 39, 0.68);
}

html[data-theme="light"] .terms-list li::before {
  background: #7c3aed;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.22);
}

html[data-theme="light"] .terms-section {
  border-top-color: rgba(17, 24, 39, 0.1);
}

html[data-theme="light"] .footer-terms {
  color: rgba(17, 24, 39, 0.62);
}

html[data-theme="light"] .footer-terms:hover {
  color: rgba(17, 24, 39, 0.9);
}

html[data-theme="light"] .footer-separator {
  background: rgba(109, 40, 217, 0.3);
}

@media (max-width: 760px) {
  .terms-modal {
    align-items: center;
    padding: 14px;
  }

  .terms-panel {
    grid-template-columns: 1fr;
    width: 100%;
    height: min(84dvh, 760px);
    max-height: min(84dvh, 760px);
    border-radius: 20px;
  }

  .terms-panel-accent {
    display: none;
  }

  .terms-panel-body {
    padding: 34px 22px 26px;
  }

  .terms-close {
    top: 16px;
    right: 16px;
  }

  .terms-panel h2 {
    padding-right: 42px;
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .terms-scroll {
    padding-right: 8px;
  }
}

/* Walkthrough detail backgrounds */
.walkthrough-detail .page {
  background:
    radial-gradient(circle at 50% 38%, rgba(164, 108, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.34) 0%, rgba(5, 7, 11, 0.5) 52%, rgba(5, 7, 11, 0.74) 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.48), rgba(5, 7, 11, 0.16) 50%, rgba(5, 7, 11, 0.48)),
    var(--detail-bg) center / cover no-repeat;
}

.walkthrough-detail .visual {
  opacity: 0.18;
}

/* Mobile viewport guard for walkthrough pages. */
.content,
.building-grid,
.campus-map,
.campus-map-frame {
  min-width: 0;
  max-width: 100%;
}

.campus-map-frame img {
  max-width: 100%;
}

@media (max-width: 700px) {
  .content,
  .building-grid,
  .campus-map,
  .campus-map-frame {
    width: 100%;
  }

  .campus-map-frame img {
    width: 100%;
    min-width: 0;
  }
}

/* Manual light mode */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --paper: #f3f2fa;
  --surface: #fbfaff;
  --surface-strong: #ebeaf5;
  --line: rgba(17, 24, 39, 0.12);
  --green: #7c3aed;
  --teal: #8b5cf6;
  --red: #6d28d9;
  --gold: #6d28d9;
  --purple: #7c3aed;
  --violet: #6d28d9;
  --soft: rgba(124, 58, 237, 0.16);
  --purple-glow: rgba(124, 58, 237, 0.18);
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.15);
}

html[data-theme="light"] body {
  color: #111827;
  background: #f5f4fb;
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.58);
  color: #111827;
}

html[data-theme="light"] .brand {
  color: rgba(17, 24, 39, 0.86);
}

html[data-theme="light"] .brand:hover {
  color: #111827;
}

html[data-theme="light"] .brand-mark img {
  filter: invert(1) saturate(1.1);
}

html[data-theme="light"] .menu-toggle:hover,
html[data-theme="light"] .site-header.menu-open .menu-toggle,
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(17, 24, 39, 0.075);
}

html[data-theme="light"] .menu-toggle span {
  background: rgba(17, 24, 39, 0.68);
}

html[data-theme="light"] .menu-toggle:hover span,
html[data-theme="light"] .site-header.menu-open .menu-toggle span {
  background: rgba(17, 24, 39, 0.92);
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.64);
  color: rgba(17, 24, 39, 0.78);
}

html[data-theme="light"] .theme-toggle-track {
  background: rgba(124, 58, 237, 0.16);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.13);
}

html[data-theme="light"] .site-header::after {
  background: rgba(17, 24, 39, 0.18);
}

html[data-theme="light"] .site-nav {
  border-left-color: rgba(17, 24, 39, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 251, 0.94));
  color: rgba(17, 24, 39, 0.76);
  box-shadow: -28px 0 80px rgba(31, 41, 55, 0.18);
}

html[data-theme="light"] .site-nav::before,
html[data-theme="light"] .nav-social::before {
  color: rgba(17, 24, 39, 0.42);
}

html[data-theme="light"] .site-nav a {
  border-bottom-color: rgba(17, 24, 39, 0.1);
  color: rgba(17, 24, 39, 0.82);
}

html[data-theme="light"] .site-nav a::after {
  color: rgba(124, 58, 237, 0.5);
}

html[data-theme="light"] .site-nav a:hover {
  color: #111827;
  border-color: rgba(17, 24, 39, 0.16);
}

html[data-theme="light"] .site-nav .nav-social .instagram-link,
html[data-theme="light"] .footer-social .instagram-link {
  color: rgba(17, 24, 39, 0.48);
}

html[data-theme="light"] .site-nav .nav-social .instagram-link:hover,
html[data-theme="light"] .footer-social .instagram-link:hover {
  color: rgba(17, 24, 39, 0.86);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .page,
html[data-theme="light"] .mono-hero {
  background:
    linear-gradient(rgba(124, 58, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(118deg, rgba(255, 255, 255, 0.96) 0 34%, rgba(247, 245, 255, 0.94) 34% 68%, rgba(233, 228, 255, 0.88) 68% 100%);
  background-size: 52px 52px, 52px 52px, auto;
}

html[data-theme="light"] .mono-hero::before {
  opacity: 0;
}

html[data-theme="light"] .mono-hero::after {
  opacity: 0;
}

html[data-theme="light"] .walkthrough-detail .page {
  background:
    linear-gradient(rgba(124, 58, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 247, 251, 0.32) 0%, rgba(246, 247, 251, 0.42) 58%, rgba(246, 247, 251, 0.62) 100%),
    linear-gradient(90deg, rgba(246, 247, 251, 0.38), rgba(246, 247, 251, 0.12) 50%, rgba(246, 247, 251, 0.4)),
    var(--detail-bg) center / cover no-repeat;
  background-size: 52px 52px, 52px 52px, auto, auto, cover;
}

html[data-theme="light"] :where(.hero-visual, .visual) {
  opacity: 0;
}

html[data-theme="light"] .walkthrough-detail .visual {
  opacity: 0;
}

html[data-theme="light"] .band,
html[data-theme="light"] .features,
html[data-theme="light"] .showcase,
html[data-theme="light"] .intro,
html[data-theme="light"] .content-band {
  background: #f5f4fb;
}

html[data-theme="light"] :where(h1, h2, h3, .coming-title, .device-label, .building-card, .feature-card) {
  color: #111827;
  text-shadow: none;
}

html[data-theme="light"] :where(p, .hero-copy, .desc, .device-note, .coming-desc, .footer-credit) {
  color: rgba(17, 24, 39, 0.84);
  font-weight: 560;
}

html[data-theme="light"] :where(.eyebrow, .section-label, .building-number, .coming-label) {
  color: rgba(109, 40, 217, 0.82);
  font-weight: 900;
}

html[data-theme="light"] :where(.feature-card, .building-card, .device-card, .coming-soon-panel, .control-guide, .campus-map-frame, .tour-panel, .showcase-screen, .mono-card, .word-card, .info-panel) {
  border-color: rgba(17, 24, 39, 0.13);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
}

html[data-theme="light"] .acronym-board {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.12);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
}

html[data-theme="light"] .letter-cell,
html[data-theme="light"] .text-panel,
html[data-theme="light"] .nexqoa-card {
  border-color: rgba(17, 24, 39, 0.12);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.07), transparent 44%),
    rgba(255, 255, 255, 0.78);
  color: #111827;
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
}

html[data-theme="light"] .big-letter {
  color: #6d28d9;
}

html[data-theme="light"] .word {
  color: #111827;
}

html[data-theme="light"] .letter-cell .desc,
html[data-theme="light"] .text-panel p,
html[data-theme="light"] .nexqoa-copy p {
  color: rgba(17, 24, 39, 0.82);
}

html[data-theme="light"] .nexqoa-panel {
  border-color: rgba(17, 24, 39, 0.12);
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.075), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.66);
}

html[data-theme="light"] .nexqoa-visual {
  border-color: rgba(17, 24, 39, 0.13);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.14);
}

html[data-theme="light"] .nexqoa-visual span {
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(17, 24, 39, 0.84);
}

html[data-theme="light"] .nexqoa-service {
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.66);
}

html[data-theme="light"] .nexqoa-service span {
  color: #6d28d9;
}

html[data-theme="light"] .nexqoa-service strong {
  color: #111827;
}

html[data-theme="light"] .nexqoa-service p {
  color: rgba(17, 24, 39, 0.7);
}

html[data-theme="light"] .nexqoa-link {
  border-color: rgba(109, 40, 217, 0.22);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(124, 58, 237, 0.22)),
    rgba(255, 255, 255, 0.72);
  color: #5b21b6;
  box-shadow: 0 14px 34px rgba(109, 40, 217, 0.14);
}

html[data-theme="light"] .nexqoa-link:hover {
  border-color: rgba(109, 40, 217, 0.34);
  box-shadow: 0 18px 42px rgba(109, 40, 217, 0.2);
}

html[data-theme="light"] .feature-card,
html[data-theme="light"] .building-card {
  color: #111827;
  text-shadow: none;
}

html[data-theme="light"] .feature-card :where(h3, p),
html[data-theme="light"] .building-card :where(span) {
  color: #111827;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .feature-card .card-arrow {
  border-color: rgba(167, 139, 250, 0.82);
  background: transparent;
  color: #7c3aed;
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.16);
  text-shadow: none;
}

html[data-theme="light"] .feature-card .card-arrow::before {
  border-color: #7c3aed;
  color: #7c3aed;
}

html[data-theme="light"] .feature-card .card-arrow::after {
  background: #7c3aed;
  color: #7c3aed;
}

html[data-theme="light"] .feature-card::after,
html[data-theme="light"] .building-card::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.14) 42%, rgba(255, 255, 255, 0.72) 77%, rgba(246, 247, 251, 0.92) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.04) 58%);
}

html[data-theme="light"] :where(.device-card, .coming-soon-panel, .control-guide) {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(255, 255, 255, 0.75)),
    rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] :where(.control-item, .building-spots, .status, .mono-link, .pill-link) {
  border-color: rgba(17, 24, 39, 0.13);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(17, 24, 39, 0.86);
  font-weight: 760;
}

html[data-theme="light"] .back {
  background: transparent;
  color: #6d28d9;
}

html[data-theme="light"] .key {
  border-color: rgba(17, 24, 39, 0.18);
  background: linear-gradient(180deg, #ffffff, #e8edf5);
  color: #111827;
  box-shadow:
    inset 0 -2px 0 rgba(17, 24, 39, 0.13),
    0 5px 14px rgba(31, 41, 55, 0.12);
}

html[data-theme="light"] .mouse-pict {
  border-color: rgba(17, 24, 39, 0.24);
  background: linear-gradient(180deg, #ffffff, #e8edf5);
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.12);
}

html[data-theme="light"] .mouse-pict::before {
  background: rgba(17, 24, 39, 0.22);
}

html[data-theme="light"] .mouse-pict span {
  background: rgba(17, 24, 39, 0.72);
}

html[data-theme="light"] .building-card .building-spots {
  border-color: rgba(17, 24, 39, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 24, 39, 0.88);
  font-weight: 850;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.16);
}

html[data-theme="light"] .campus-map-frame {
  background: rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .campus-map-frame img {
  filter: none;
}

html[data-theme="light"] .campus-map-frame::after {
  opacity: 0.08;
  mix-blend-mode: normal;
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(17, 24, 39, 0.1);
  background: #eef1f8;
  color: rgba(17, 24, 39, 0.84);
}

html[data-theme="light"] .footer-top {
  border-color: rgba(167, 139, 250, 0.82);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.16);
  color: #7c3aed;
}

html[data-theme="light"] .footer-top:hover {
  border-color: rgba(124, 58, 237, 0.95);
  background: #fff;
  box-shadow: 0 22px 56px rgba(124, 58, 237, 0.2);
  color: #6d28d9;
}

@media (min-width: 900px) {
  .site-nav a {
    position: relative;
  }

  .site-nav a::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(164, 108, 255, 0.2), rgba(216, 180, 254, 0.92), rgba(164, 108, 255, 0.2));
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a:hover::before,
  .site-nav a:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
  }

  html[data-theme="light"] .site-nav {
    background: transparent;
    box-shadow: none;
  }

  html[data-theme="light"] .site-nav a {
    color: rgba(17, 24, 39, 0.84) !important;
  }

  html[data-theme="light"] .site-nav .terms-open {
    color: #7c3aed !important;
  }

  html[data-theme="light"] .site-nav a:hover,
  html[data-theme="light"] .site-nav .terms-open:hover,
  html[data-theme="light"] .site-nav .terms-open:focus-visible {
    color: #6d28d9 !important;
  }

  html[data-theme="light"] .site-nav a::before,
  html[data-theme="light"] .site-nav .terms-open::before {
    background: linear-gradient(90deg, rgba(109, 40, 217, 0.12), rgba(109, 40, 217, 0.78), rgba(109, 40, 217, 0.12));
  }

  html[data-theme="light"] .theme-toggle {
    color: rgba(17, 24, 39, 0.78) !important;
  }
}

@media (max-width: 700px) {
  body.home-page .hero-content {
    width: 100%;
    transform: translateY(0);
  }

  body.home-page #hero-title {
    max-width: 100%;
    margin-bottom: 0;
    font-size: clamp(4.35rem, 23vw, 6.55rem);
    line-height: 0.76;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: nowrap;
    text-shadow:
      0 0 34px rgba(164, 108, 255, 0.58),
      0 22px 70px rgba(0, 0, 0, 0.82);
  }

  html[data-theme="light"] body.home-page #hero-title {
    color: #101827;
    text-shadow:
      0 0 22px rgba(124, 58, 237, 0.18),
      0 16px 42px rgba(124, 58, 237, 0.18);
  }
}
