:root {
  --black-main: #0f1011;
  --white: #ffffff;
  --black: #000000;
  --grey: #ebebeb;
  --dark-grey: #333333;
  --light-grey: #999999;
  --accent: #5d8cff;
}

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

html {
  font-size: clamp(0.94px, calc(100vw / 1440), 1.2px);
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background-color: var(--black-main);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14rem;
  font-weight: 500;
  line-height: 16rem;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
canvas,
svg,
video {
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

.container {
  width: min(100%, 1680px);
  margin-inline: auto;
}

.section {
  position: relative;
}

.main-wrap {
  min-height: 100vh;
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  background: transparent;
  pointer-events: none;
}

.navbar-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24rem;
  padding: 12rem max(16rem, env(safe-area-inset-right)) 0 max(16rem, env(safe-area-inset-left));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12rem;
  padding-top: 2rem;
  pointer-events: all;
}

.brand-icon {
  display: block;
  width: 36rem;
  height: auto;
  margin-top: 0;
  flex: none;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 7rem;
}

.brand-text {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 14rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-caption {
  font-size: 8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  opacity: 0.38;
}

.navbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8rem;
  pointer-events: all;
}

.status-block {
  text-align: right;
  font-size: 8rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.12em;
  opacity: 0.45;
}

.status-live {
  position: relative;
  padding-left: 9rem;
}

.status-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.nav-menu-inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 6rem;
  min-height: 36rem;
  padding: 8rem 12rem;
  background: var(--white);
  color: var(--black-main);
  font-size: 13rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.nav-index {
  opacity: 0.38;
  font-variant-numeric: tabular-nums;
}

.nav-link:hover {
  opacity: 0.85;
}

.nav-link.is-active {
  color: rgba(15, 16, 17, 0.4);
}

.nav-link.is-active .nav-index {
  opacity: 0.7;
}

.menu-button {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  flex-direction: column;
  justify-content: center;
  gap: 6rem;
  width: 40rem;
  height: 36rem;
  padding: 0;
  border: 0;
  background: var(--white);
  background-color: var(--white);
  color: var(--black-main);
  cursor: pointer;
}

.menu-button-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6rem;
}

.menu-button-bars span {
  display: block;
  width: 16rem;
  height: 1px;
  margin-inline: auto;
  background: var(--black-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-overlay,
.nav-status,
.nav-now,
.menu-button-text,
.menu-button-extra,
.scroll-hint {
  display: none;
}

/* ── Progress rail ── */

.progress-rail {
  position: fixed;
  top: 50%;
  right: max(18rem, env(safe-area-inset-right));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.progress-step {
  display: block;
  font-size: 10rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0.22;
  pointer-events: all;
  transition: opacity 0.25s;
}

.progress-step.is-active {
  opacity: 1;
}

.progress-line {
  position: relative;
  width: 1px;
  height: 56rem;
  margin: 8rem 0;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--fill, 0%);
  background: var(--white);
}

/* ── Fullscreen sections ── */

.screen-section {
  min-height: 100vh;
  min-height: 100svh;
}

.screen-section + .screen-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16rem;
  right: 16rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.section-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.section-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 48rem 48rem, 48rem 48rem, 240rem 240rem, 240rem 240rem;
  mask-image: radial-gradient(circle at 50% 45%, black 15%, transparent 85%);
}

.section-glow {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 520rem;
  height: 520rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 140, 255, 0.18), transparent 68%);
}

.section-company .section-glow {
  display: none;
}

.grid-coords {
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(circle at 50% 45%, black 15%, transparent 85%);
}

.coord {
  position: absolute;
  font-size: 9rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--white);
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
}

.coord::before {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
}

.coord-lat {
  left: 16rem;
  padding-left: 12rem;
  transform: translateY(-50%);
}

.coord-lat::before {
  left: 0;
  top: 50%;
  width: 8rem;
  height: 1px;
}

.coord-lat-1 { top: 240rem; }
.coord-lat-2 { top: 480rem; }
.coord-lat-3 { top: 720rem; }
.coord-lat-4 { top: 960rem; }

.coord-lon {
  bottom: 14rem;
  transform: translateX(-50%);
}

.coord-lon::before {
  left: 50%;
  bottom: calc(100% + 4rem);
  width: 1px;
  height: 8rem;
}

.coord-lon-1 { left: 240rem; }
.coord-lon-2 { left: 480rem; }
.coord-lon-3 { left: 720rem; }
.coord-lon-4 { left: 960rem; }
.coord-lon-5 { left: 1200rem; }

.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--black-main) 8%, transparent 42%),
    linear-gradient(180deg, rgba(15, 16, 17, 0.72), transparent 28%);
}

/* ── Preloader ── */

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.preloader {
  display: none;
}

html.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--black-main);
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}

html.js .preloader.is-done {
  clip-path: inset(0 0 100% 0);
}

.preloader.is-done .preloader-brand {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48rem 48rem;
  mask-image: radial-gradient(circle at 50% 45%, black 15%, transparent 85%);
}

.preloader-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26rem;
  width: max-content;
  height: 96px;
  will-change: transform;
}

html.fonts-ready .preloader-brand {
  animation: preloader-brand-center 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.62s both;
}

@keyframes preloader-brand-center {
  0% {
    transform: translateX(calc(50% - 48px));
  }
  100% {
    transform: translateX(0);
  }
}

.preloader-eye {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  will-change: clip-path, opacity;
}

html.fonts-ready .preloader-eye {
  animation: preloader-eye-open 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s both;
}

.preloader-eye img {
  display: block;
  width: 96px;
  height: 96px;
}

@keyframes preloader-eye-open {
  0% {
    clip-path: inset(49.5% 0);
    opacity: 0;
  }
  12% {
    clip-path: inset(47% 0);
    opacity: 0.35;
  }
  26% {
    clip-path: inset(41% 0);
    opacity: 0.65;
  }
  42% {
    clip-path: inset(31% 0);
    opacity: 0.85;
  }
  58% {
    clip-path: inset(20% 0);
    opacity: 1;
  }
  74% {
    clip-path: inset(10% 0);
  }
  88% {
    clip-path: inset(3% 0);
  }
  100% {
    clip-path: inset(0 0);
    opacity: 1;
  }
}

.preloader-caption {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12rem;
  letter-spacing: 0.34em;
  white-space: nowrap;
  color: var(--white);
  opacity: 0;
  will-change: transform, opacity;
}

html.fonts-ready .preloader-caption {
  animation: preloader-caption-reveal 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.78s both;
}

@keyframes preloader-caption-reveal {
  0% {
    transform: translateX(-12rem);
    opacity: 0;
    letter-spacing: 0.5em;
  }
  45% {
    transform: translateX(-4rem);
    opacity: 0.55;
    letter-spacing: 0.42em;
  }
  100% {
    transform: translateX(0);
    opacity: 0.9;
    letter-spacing: 0.34em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.fonts-ready .preloader-brand,
  html.fonts-ready .preloader-eye,
  html.fonts-ready .preloader-caption {
    animation: none;
  }

  html.fonts-ready .preloader-caption {
    opacity: 0.9;
    transform: none;
  }

  html.js .preloader {
    transition: opacity 0.3s ease;
  }

  html.js .preloader.is-done {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}

.section-container {
  position: relative;
  z-index: 2;
}

.content-block {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.section-split .content-left,
.section-split .content-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  min-width: 0;
  padding: 96rem 16rem 24rem;
}

.content-bottom {
  margin-top: auto;
}

.content-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20rem;
  max-width: 520rem;
  margin-left: auto;
}

.section-kicker {
  font-size: 10rem;
  letter-spacing: 0.16em;
  opacity: 0.38;
}

.manifest {
  margin: 0;
  max-width: 560rem;
  font-family: Unbounded, Inter, sans-serif;
  font-size: 36rem;
  font-weight: 400;
  line-height: 105%;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.manifest-right {
  max-width: 480rem;
  font-size: 28rem;
  line-height: 110%;
}

.manifest-gap {
  display: block;
  height: 20rem;
}

.body-copy {
  max-width: 280rem;
  margin: 0;
  font-size: 13rem;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.55;
}

.body-copy-note {
  max-width: 320rem;
  font-size: 11rem;
  line-height: 145%;
  opacity: 0.38;
}

.section-company .content-right .content-bottom {
  display: flex;
  justify-content: flex-end;
}

.section-company .body-copy {
  max-width: 420rem;
  text-align: left;
  font-family: Unbounded, Inter, sans-serif;
  text-transform: uppercase;
}

.section-mission .content-left {
  justify-content: flex-end;
}

.mission-copy .content-bottom {
  display: flex;
  flex-direction: column;
  gap: 20rem;
  align-items: flex-start;
}

.section-split .mission-copy {
  width: 52%;
}

.section-split .mission-visual {
  position: relative;
  width: 46%;
  justify-content: center;
  padding-right: 56rem;
}

.mission-visual .content-right,
.section-split .mission-visual {
  align-items: stretch;
}

.model-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 560rem;
  height: 560rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 140, 255, 0.28), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.section-mission .section-glow {
  display: none;
}

.model-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12rem;
  width: 100%;
}

.model-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: clamp(200px, 32vh, 420px);
  background: transparent;
}

.model-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: pan-y;
}

@media (pointer: coarse) {
  .model-canvas,
  .model-canvas canvas {
    pointer-events: none;
    touch-action: pan-y;
  }

  .model-glow {
    display: none;
  }
}

.model-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.model-stage[data-state="error"] .model-status {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  font-size: 10rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

/* ── Roadmap ── */

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  font-size: 10rem;
  letter-spacing: 0.12em;
  opacity: 0.45;
}

.status-tag.is-active {
  opacity: 1;
}

.status-tag.is-active::before {
  content: "";
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
}

.app-group.is-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8rem;
  max-width: 280rem;
  font-family: Unbounded, Inter, sans-serif;
  font-size: 14rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 130%;
}

.app-group-label {
  display: block;
  overflow-wrap: break-word;
}

.app-group:disabled,
.app-group[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.22);
  cursor: not-allowed;
}

.app-group:disabled:hover,
.app-group[aria-disabled="true"]:hover {
  color: rgba(255, 255, 255, 0.22);
}

.app-item.is-done .app-item-index {
  position: relative;
  padding-left: 12rem;
  opacity: 1;
}

.app-item.is-done .app-item-index::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.dev-picker .app-item.is-active:not(.is-done) .app-item-index {
  padding-left: 0;
}

.dev-picker .app-item.is-active:not(.is-done) .app-item-index::before {
  content: none;
}

/* ── Applications ── */

.applications-block {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 96rem 16rem;
}

.applications-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280rem;
}

.applications-head {
  margin-bottom: 36rem;
}

.applications-title {
  margin: 0;
  font-family: Unbounded, Inter, sans-serif;
  font-size: 24rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 110%;
}

.applications-lead {
  margin: 12rem 0 0;
  max-width: 560rem;
  font-size: 13rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 145%;
  text-transform: none;
  opacity: 0.48;
}

.applications-layout {
  display: grid;
  grid-template-columns: minmax(180rem, 0.7fr) minmax(320rem, 1.4fr);
  gap: 32rem 40rem;
  align-items: start;
}

.applications-layout > * {
  min-width: 0;
}

.section-roadmap .applications-layout {
  grid-template-columns: minmax(240rem, 0.85fr) minmax(320rem, 1.4fr);
}

.dev-picker .app-item {
  align-items: start;
  cursor: default;
  padding: 11rem 0;
}

.dev-picker .app-item:hover {
  color: rgba(255, 255, 255, 0.45);
}

.dev-picker .app-item.is-done {
  color: rgba(255, 255, 255, 0.88);
}

.dev-picker .app-item.is-done:hover {
  color: rgba(255, 255, 255, 0.88);
}

.dev-picker .app-item-index,
.section-applications .app-item-index {
  padding-top: 4rem;
}

.app-item-body {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  min-width: 0;
}

.app-item-desc {
  margin: 0;
  max-width: 540rem;
  font-family: Inter, sans-serif;
  font-size: 12rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 145%;
  text-transform: none;
  color: rgba(255, 255, 255, 0.38);
}

.dev-picker .app-item:not(.is-done) .app-item-desc {
  color: rgba(255, 255, 255, 0.26);
}

.section-applications .app-item {
  align-items: start;
  cursor: default;
  padding: 11rem 0;
  color: rgba(255, 255, 255, 0.88);
}

.section-applications .app-item:hover {
  color: rgba(255, 255, 255, 0.88);
}

.section-applications .app-item-desc {
  color: rgba(255, 255, 255, 0.38);
}

.section-roadmap .app-items-wrap,
.section-applications .app-items-wrap {
  min-height: 0;
}

.app-groups {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4rem;
}

.app-group {
  appearance: none;
  margin: 0;
  border: 0;
  padding: 10rem 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font-family: inherit;
  font-size: 11rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: left;
  cursor: pointer;
}

.app-group:hover {
  color: rgba(255, 255, 255, 0.72);
}

.app-group.is-active {
  color: var(--white);
}

.app-group:focus-visible,
.app-item:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.app-items-wrap {
  position: relative;
  min-height: 280rem;
}

.app-panel {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10rem) translateX(12rem);
  pointer-events: none;
  transition: opacity 280ms ease-out, transform 280ms ease-out;
}

.app-panel.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.app-items {
  display: flex;
  flex-direction: column;
}

.app-item {
  appearance: none;
  display: grid;
  grid-template-columns: 40rem 1fr;
  gap: 16rem;
  align-items: center;
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14rem 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}

.app-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-item:hover {
  color: rgba(255, 255, 255, 0.82);
}

.section-applications .app-item:hover {
  color: rgba(255, 255, 255, 0.88);
}

.app-item.is-active {
  color: var(--white);
  border-top-color: rgba(93, 140, 255, 0.55);
}

.app-item.is-active + .app-item {
  border-top-color: rgba(93, 140, 255, 0.55);
}

.app-item.is-active:last-child {
  border-bottom-color: rgba(93, 140, 255, 0.55);
}

.app-item-index {
  font-size: 11rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  opacity: 0.5;
}

.app-item.is-active .app-item-index {
  position: relative;
  padding-left: 12rem;
  opacity: 1;
}

.app-item.is-active .app-item-index::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.app-item-name {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 14rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 130%;
  overflow-wrap: break-word;
}

.app-detail {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20rem 20rem 22rem;
  min-height: 160rem;
  transition: opacity 280ms ease-out, transform 280ms ease-out;
}

.app-detail.is-updating {
  opacity: 0;
  transform: translateY(10rem);
}

.app-detail-label {
  margin: 0 0 14rem;
  font-size: 10rem;
  letter-spacing: 0.14em;
  opacity: 0.38;
}

.app-detail-text {
  margin: 0;
  max-width: 360rem;
  font-size: 13rem;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  .app-panel,
  .app-detail,
  .app-item {
    transition: none;
  }
}

.h1 {
  max-width: 700rem;
  font-family: Unbounded, Inter, sans-serif;
  font-size: 24rem;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: 0.01em;
}

.h2 {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.4;
}

.text-regular {
  font-size: 15rem;
  line-height: 15rem;
}

.text-regular.is-opacity40 {
  opacity: 0.4;
}

.text-56 {
  font-family: Unbounded, Inter, sans-serif;
  font-size: 56rem;
  font-weight: 400;
  line-height: 100%;
}

.text-label {
  margin-top: auto;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content-block {
  min-height: auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 12rem 24rem;
  padding-block: 24rem;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.footer-content-left,
.footer-content-right {
  width: auto;
  padding: 0 16rem;
}

.footer-link {
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.6;
}

/* ── Responsive ── */

@media (max-width: 1439px) {
  .section-split .mission-visual {
    padding-right: 36rem;
  }
}

@media (max-width: 1279px) {
  html {
    font-size: clamp(0.92px, calc(100vw / 1100), 1.08px);
  }

  .applications-layout {
    grid-template-columns: minmax(160rem, 0.7fr) 1fr;
    grid-template-areas: "groups items";
    gap: 28rem 32rem;
  }

  .section-roadmap .applications-layout {
    grid-template-columns: minmax(200rem, 0.85fr) 1fr;
  }

  .app-groups {
    grid-area: groups;
  }

  .app-items-wrap {
    grid-area: items;
  }

  .app-detail {
    grid-area: detail;
  }

  .model-glow {
    width: 440rem;
    height: 440rem;
  }

  .model-canvas {
    max-height: 45vh;
  }
}

@media (max-width: 1099px) {
  .navbar-right {
    flex-direction: row;
    align-items: flex-start;
    gap: 12rem;
    min-width: 0;
  }

  .status-block {
    min-width: 0;
  }

  .nav-menu {
    position: fixed;
    inset: max(72rem, calc(env(safe-area-inset-top) + 56rem)) max(16rem, env(safe-area-inset-right)) auto max(16rem, env(safe-area-inset-left));
    z-index: 101;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8rem);
    transition: 0.25s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu-inner {
    grid-auto-flow: row;
  }

  .nav-link {
    min-height: 44px;
  }

  .menu-button {
    display: flex;
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: var(--white);
    background-color: var(--white);
  }

  .progress-rail {
    display: none;
  }
}

@media (max-width: 1099px) and (min-width: 768px) {
  .section-company .content-block {
    flex-direction: column;
    justify-content: flex-end;
  }

  .section-company .content-left,
  .section-company .content-right {
    width: 100%;
    flex: none;
    min-height: 0;
  }

  .section-company .content-left {
    padding-bottom: 12rem;
  }

  .section-company .content-right {
    padding-top: 0;
  }

  .section-company .content-right .content-bottom {
    justify-content: flex-start;
    margin-top: 0;
  }

  .section-company .manifest {
    max-width: none;
    overflow-wrap: break-word;
  }

  .section-company .body-copy {
    max-width: none;
  }

  .section-split .content-left {
    padding-top: 88rem;
  }

  .mission-copy {
    width: 48%;
  }

  .mission-visual {
    width: 50%;
    padding-right: 24rem;
    padding-top: 88rem;
  }

  .applications-block {
    padding: 88rem 16rem;
  }

  .manifest {
    font-size: 28rem;
  }

  .manifest-right {
    font-size: 22rem;
  }

  .content-bottom-right {
    margin-left: 0;
    max-width: none;
  }

  .h1 {
    font-size: 22rem;
  }

  .text-56 {
    font-size: 40rem;
  }
}

@media (max-width: 899px) and (min-width: 768px) {
  .mission-layout {
    flex-direction: column;
    gap: 0;
  }

  .section-split .mission-copy,
  .section-split .mission-visual {
    width: 100%;
    padding-right: 16rem;
  }

  .section-split .mission-copy {
    padding-bottom: 0;
    padding-top: 88rem;
  }

  .section-split .mission-visual {
    padding-top: 0;
    padding-bottom: 32rem;
    justify-content: flex-start;
  }

  .model-canvas {
    min-height: 240px;
    max-height: 56vh;
  }

  .model-glow {
    width: 280px;
    height: 280px;
  }

  .applications-layout,
  .section-roadmap .applications-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "groups"
      "items";
    gap: 24rem;
  }

  .app-groups {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    width: 100%;
    padding-bottom: 8rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .app-groups::-webkit-scrollbar {
    display: none;
  }

  .app-group {
    flex: none;
    white-space: nowrap;
  }

  .app-group.is-stack {
    white-space: normal;
    max-width: 240rem;
  }

  .app-items-wrap {
    min-height: 0;
  }
}

@media (max-width: 767px), (pointer: coarse) and (max-width: 1023px) {
  :root {
    --mobile-nav: 60px;
    --mobile-header: calc(var(--mobile-nav) + env(safe-area-inset-top, 0px));
  }

  body {
    font-size: 14px;
    line-height: 1.45;
  }

  body.menu-open {
    overflow: hidden;
  }

  .preloader-brand {
    gap: 16px;
  }

  .preloader-caption {
    font-size: 12px;
  }

  .text-regular {
    font-size: 14px;
    line-height: 1.3;
  }

  .br-desktop {
    display: none;
  }

  .section-grid {
    background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
  }

  .section-glow {
    top: 18%;
    right: auto;
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translateX(-50%);
  }

  .section-company .section-glow {
    display: block;
  }

  .screen-section + .screen-section::before {
    left: 16px;
    right: 16px;
  }

  .grid-coords {
    display: none;
  }

  .navbar {
    background: var(--black-main);
    z-index: 103;
  }

  .navbar-inner {
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: var(--mobile-nav);
    padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  }

  .brand {
    flex: none;
    gap: 8px;
    padding-top: 0;
  }

  .brand-icon {
    width: 28px;
    height: auto;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-caption {
    display: none;
  }

  .navbar-right {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .status-block {
    display: none;
  }

  .navbar-right .nav-now {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0.08em;
    color: var(--white);
    opacity: 1;
    visibility: visible;
  }

  .nav-now-index {
    flex: none;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
  }

  .nav-now-label {
    min-width: 0;
  }

  .menu-button {
    appearance: none;
    -webkit-appearance: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: var(--black-main);
    background-color: var(--black-main);
    color: var(--white);
  }

  .menu-button-bars {
    gap: 4px;
  }

  .menu-button-bars span {
    width: 16px;
    height: 1px;
    background: var(--white);
    background-color: var(--white);
  }

  .menu-button-extra,
  .menu-button-text {
    display: block;
  }

  .menu-button-text {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .menu-button.is-open .menu-button-bars span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-button.is-open .menu-button-bars span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open .menu-button-bars span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 101;
    background: rgba(15, 16, 17, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav-overlay[hidden] {
    display: none;
  }

  .nav-menu {
    inset: calc(var(--mobile-header) + 8px) 16px auto 16px;
    z-index: 102;
    padding: 8px;
    background: var(--black-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
  }

  .nav-menu-inner {
    grid-auto-flow: row;
    gap: 4px;
  }

  .nav-link {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 14px;
    background: transparent;
    color: var(--white);
  }

  .nav-link.is-active {
    background: var(--white);
    color: var(--black-main);
  }

  .nav-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding: 12px 16px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.1em;
    opacity: 0.7;
  }

  .progress-rail {
    display: none;
  }

  .screen-section,
  .content-block,
  .main-wrap {
    min-height: auto;
  }

  .screen-section {
    scroll-margin-top: calc(var(--mobile-header) + 8px);
  }

  .content-block:not(.footer-content-block) {
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: calc(var(--mobile-header) + 8px) 16px 32px;
  }

  .section-split .content-left,
  .section-split .content-right,
  .section-split .mission-copy,
  .section-split .mission-visual {
    width: 100%;
    flex: none;
    min-height: 0;
    justify-content: flex-start;
    padding: 0;
  }

  .section-company .content-block,
  .section-company .content-left,
  .section-company .content-right {
    justify-content: flex-start;
  }

  .section-company .content-right .content-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .content-bottom,
  .section-company .content-right .content-bottom,
  .section-mission .content-bottom,
  .mission-copy .content-bottom {
    margin-top: 0;
  }

  .mission-copy .content-bottom {
    gap: 12px;
    align-items: stretch;
  }

  .content-bottom-right {
    margin-left: 0;
    max-width: none;
    gap: 16px;
  }

  .manifest {
    max-width: none;
    font-size: 24px;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .manifest-right {
    max-width: none;
    font-size: 18px;
    line-height: 1.15;
  }

  .manifest-gap {
    height: 12px;
  }

  .h1 {
    font-size: 18px;
    max-width: none;
  }

  .h2 {
    font-size: 12px;
  }

  .text-56 {
    font-size: 28px;
  }

  .body-copy {
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .body-copy-note {
    max-width: none;
    font-size: 12px;
    line-height: 1.4;
  }

  .section-mission .mission-layout {
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    min-height: auto;
  }

  .section-mission .body-copy-note {
    align-self: flex-end;
    width: 50%;
    max-width: 50%;
    text-align: right;
    margin: 0;
  }

  .model-stage {
    gap: 8px;
    overflow: hidden;
  }

  .model-canvas {
    width: 100%;
    height: clamp(180px, 34dvh, 280px);
    min-height: 180px;
    max-height: none;
    aspect-ratio: auto;
  }

  .model-glow {
    display: none;
  }

  .model-stage[data-state="idle"] .model-status,
  .model-stage[data-state="loading"] .model-status {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    margin: 8px 0 0;
    font-size: 11px;
    letter-spacing: 0.1em;
    opacity: 0.45;
  }

  .scroll-hint {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    opacity: 0.45;
    pointer-events: all;
    transition: opacity 0.3s ease;
  }

  .scroll-hint-label {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .scroll-hint-mark {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
  }

  .scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .applications-head {
    margin-bottom: 24px;
  }

  .applications-title {
    font-size: 18px;
  }

  .applications-lead {
    margin-top: 8px;
    max-width: none;
    font-size: 14px;
  }

  .applications-layout,
  .section-roadmap .applications-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "groups"
      "items";
    gap: 16px;
  }

  .app-groups {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    overflow: visible;
    width: 100%;
    padding-bottom: 0;
  }

  .app-group {
    flex: none;
    width: 100%;
    min-height: 44px;
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  .app-group.is-stack {
    max-width: none;
    gap: 8px;
    font-size: 14px;
  }

  .app-group-label {
    font-size: 14px;
  }

  .app-group[disabled],
  .app-group[aria-disabled="true"] {
    color: rgba(255, 255, 255, 0.38);
    cursor: not-allowed;
  }

  .status-tag {
    gap: 6px;
    font-size: 11px;
    opacity: 0.7;
  }

  .status-tag.is-active {
    opacity: 1;
  }

  .status-tag.is-active::before {
    width: 6px;
    height: 6px;
  }

  .app-items-wrap {
    min-height: 0;
  }

  .app-panel {
    position: static;
    transform: none;
    opacity: 1;
    display: none;
    pointer-events: none;
  }

  .app-panel.is-active {
    position: static;
    display: block;
    pointer-events: auto;
  }

  .app-item,
  .dev-picker .app-item,
  .section-applications .app-item {
    grid-template-columns: 32px 1fr;
    gap: 12px;
    padding: 12px 0;
    align-items: start;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
  }

  .app-item:hover,
  .dev-picker .app-item:hover,
  .section-applications .app-item:hover {
    color: rgba(255, 255, 255, 0.88);
  }

  .app-item.is-active,
  .app-item.is-active + .app-item,
  .app-item.is-active:last-child {
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .app-item-body {
    gap: 4px;
  }

  .app-item-index {
    font-size: 11px;
  }

  .dev-picker .app-item-index,
  .section-applications .app-item-index {
    padding-top: 2px;
  }

  .app-item.is-done .app-item-index,
  .app-item.is-active .app-item-index {
    padding-left: 12px;
  }

  .app-item.is-done .app-item-index::before,
  .app-item.is-active .app-item-index::before {
    width: 6px;
    height: 6px;
  }

  .app-item-name {
    font-size: 15px;
  }

  .app-item-desc,
  .section-applications .app-item-desc,
  .dev-picker .app-item:not(.is-done) .app-item-desc {
    display: none;
    max-width: none;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
  }

  .app-item.is-open .app-item-desc,
  .section-applications .app-item.is-open .app-item-desc,
  .dev-picker .app-item.is-open .app-item-desc {
    display: block;
  }

  .model-status {
    font-size: 11px;
  }

  .section-kicker {
    font-size: 10px;
  }

  .footer {
    margin-top: 8px;
    padding-block: 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .footer-content-block {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
    gap: 12px;
  }

  .footer-content-left,
  .footer-content-right {
    width: 100%;
    padding: 0 16px;
  }

  .footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .manifest {
    font-size: 20px;
  }

  .manifest-right {
    font-size: 16px;
  }

  .body-copy {
    font-size: 13px;
  }

  .body-copy-note {
    font-size: 11px;
  }

  .app-item-desc,
  .section-applications .app-item-desc,
  .dev-picker .app-item:not(.is-done) .app-item-desc {
    font-size: 12px;
  }

  .applications-title {
    font-size: 16px;
  }

  .h1 {
    font-size: 16px;
  }

  .model-canvas {
    height: clamp(160px, 32dvh, 240px);
    min-height: 160px;
  }

  .nav-now {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint,
  .nav-overlay {
    transition: none;
  }
}

@media (max-height: 800px) and (min-width: 768px) {
  .section-split .content-left,
  .section-split .content-right,
  .applications-block {
    padding-top: 72rem;
    padding-bottom: 16rem;
  }

  .model-canvas {
    max-height: 42vh;
  }

  .app-item {
    padding: 10rem 0;
  }

  .dev-picker .app-item {
    padding: 8rem 0;
  }

  .manifest {
    font-size: 28rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .screen-section,
  .content-block {
    min-height: auto;
  }

  .section-split .content-left,
  .section-split .content-right,
  .applications-block {
    padding-top: 64rem;
    padding-bottom: 24rem;
  }

  .model-canvas {
    min-height: 180px;
    max-height: 70vh;
  }
}
