/* ============================================================
   NOSTROMO ENTRY + PRIMARY EXPERIENCE
   ============================================================ */

/* Self-hosted fonts (eliminates render-blocking Google Fonts request) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/IBMPlexMono.woff2') format('woff2');
}

body[data-view="landing"] {
  --land-grn: #6fb65d;
  --land-grn-hi: #c9f58c;
  --land-grn-dim: rgba(111, 182, 93, 0.32);
  --land-grn-lo: rgba(111, 182, 93, 0.14);
  --land-cyan: #7fe6d6;
  --land-amber: #f29f2f;
  --land-amber-hi: #ffd790;
  --land-amber-text: #ffc567;
  --land-phosphor-core: rgba(255, 196, 96, 0.96);
  --land-phosphor-mid: rgba(255, 164, 45, 0.44);
  --land-phosphor-wide: rgba(255, 132, 28, 0.2);
  --land-phosphor-green: rgba(169, 255, 124, 0.18);
  --land-red: #ff6666;
  --land-cream: rgba(246, 224, 182, 0.82);
  --land-steel: #121713;
  --land-bg: #030503;
  --land-screen-bg: #050805;
}

#landing-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: var(--land-bg);
  font-family: 'IBM Plex Mono', monospace;
}

body:not([data-view="landing"]) #landing-view {
  display: none;
}

.land-scene-frame {
  position: absolute;
  inset: 0;
}

.land-scene-frame::before,
.land-scene-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.land-scene-frame::before {
  left: 3.2%;
  top: 23%;
  width: clamp(54px, 5vw, 76px);
  height: clamp(180px, 24vh, 280px);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 18%, #b1b4af 0 5px, transparent 6px),
    radial-gradient(circle at 50% 40%, #ff3939 0 6px, rgba(255, 57, 57, 0.15) 7px, transparent 11px),
    radial-gradient(circle at 50% 58%, #ff3939 0 6px, rgba(255, 57, 57, 0.15) 7px, transparent 11px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 12%, transparent 82%, rgba(0, 0, 0, 0.4)),
    linear-gradient(180deg, #202521, #0b0f0c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -24px 30px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 0, 0, 0.35);
  opacity: 0.88;
}

.land-scene-frame::after {
  top: -8%;
  right: 18%;
  width: clamp(16px, 1.4vw, 26px);
  height: 130%;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.9), rgba(18, 18, 18, 0.65));
  transform: rotate(8deg);
  filter: blur(0.4px);
  opacity: 0.42;
}

.land-bg,
.land-overlay-img,
.land-screen {
  position: absolute;
  inset: 0;
}

.land-bg {
  background:
    radial-gradient(circle at 22% 22%, rgba(163, 191, 128, 0.12), transparent 18%),
    radial-gradient(circle at 76% 18%, rgba(247, 179, 65, 0.12), transparent 18%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(180deg, #171d17 0%, #0c100c 28%, #040604 100%);
}

.land-bg::before,
.land-bg::after,
.land-overlay-img::before,
.land-overlay-img::after,
.land-screen::before {
  content: '';
  position: absolute;
  pointer-events: none;
}

.land-bg::before {
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 8%,
      rgba(201, 245, 140, 0.03) 8%,
      rgba(201, 245, 140, 0.03) 8.5%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 12%,
      rgba(255, 255, 255, 0.018) 12%,
      rgba(255, 255, 255, 0.018) 12.4%
    );
  opacity: 0.65;
}

.land-bg::after {
  inset: 4%;
  border: 1px solid rgba(201, 245, 140, 0.08);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 120px rgba(0, 0, 0, 0.35);
}

.land-overlay-img {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.48)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 60%);
}

.land-overlay-img::before {
  inset: 3.6%;
  border: 1px solid rgba(201, 245, 140, 0.18);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 180px rgba(0, 0, 0, 0.5);
}

.land-overlay-img::after {
  inset: 6.5% 7.5%;
  border: 1px solid rgba(201, 245, 140, 0.1);
  border-radius: 10px;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.42),
    inset 0 0 0 10px rgba(10, 12, 10, 0.45),
    0 0 30px rgba(111, 182, 93, 0.05);
}

.land-screen {
  top: 8%;
  left: 8%;
  width: 84%;
  height: 84%;
  overflow: hidden;
  border-radius: clamp(6px, 0.8vw, 10px);
  background:
    radial-gradient(circle at 50% 46%, rgba(62, 38, 8, 0.48), transparent 56%),
    radial-gradient(circle at 52% 45%, rgba(23, 36, 20, 0.82), transparent 60%),
    linear-gradient(180deg, #0a0602, #030302);
  transform: perspective(1800px) rotateX(1.25deg) rotateY(-0.95deg) scale(1.006);
  transform-origin: 50% 52%;
  filter: saturate(1.1) contrast(1.06);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.82),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 14px rgba(255, 171, 64, 0.12),
    0 0 40px rgba(255, 146, 38, 0.06),
    0 0 120px rgba(0, 0, 0, 0.45);
}

.land-screen::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 247, 217, 0.12), transparent 15%, transparent 78%, rgba(0, 0, 0, 0.36)),
    linear-gradient(120deg, rgba(255, 220, 160, 0.06), transparent 18%, transparent 74%, rgba(255, 216, 138, 0.03)),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.09), transparent 24%),
    radial-gradient(circle at 60% 110%, rgba(255, 154, 43, 0.08), transparent 28%);
  z-index: 8;
}

.land-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 9;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 24px 34px rgba(255, 255, 255, 0.02),
    inset 0 -22px 28px rgba(0, 0, 0, 0.46);
}

.land-scanlines,
.land-vignette,
.land-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.land-scanlines {
  z-index: 10;
  background:
    linear-gradient(180deg, rgba(255, 180, 70, 0.03), transparent 14%, transparent 86%, rgba(255, 180, 70, 0.02)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.2) 2px,
      rgba(0, 0, 0, 0.2) 4px
    );
  opacity: 0.9;
}

.land-vignette {
  z-index: 11;
  background: radial-gradient(
    ellipse 84% 79% at 50% 50%,
    transparent 40%,
    rgba(26, 12, 4, 0.18) 62%,
    rgba(0, 0, 0, 0.74) 100%
  );
}

.land-noise {
  inset: -40%;
  z-index: 12;
  background: url('../assets/images/noise.svg') repeat;
  background-size: 220px 220px;
  opacity: 0.032;
  animation: land-grain 0.45s steps(5) infinite;
}

@keyframes land-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-6px, 9px); }
  50% { transform: translate(8px, -5px); }
  75% { transform: translate(-2px, -4px); }
  100% { transform: translate(0, 0); }
}

@keyframes land-phosphor-breathe {
  0%, 100% { opacity: 0.84; }
  50% { opacity: 0.98; }
}

@keyframes land-phosphor-drift {
  0% { transform: translateY(-8%); }
  100% { transform: translateY(8%); }
}

@keyframes land-scope-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.land-display {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(12px, 1vw, 18px);
  color: var(--land-amber-text);
}

.land-display::before,
.land-display::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.land-display::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 176, 72, 0.08), transparent 42%),
    radial-gradient(circle at 14% 8%, rgba(255, 241, 188, 0.05), transparent 18%),
    radial-gradient(circle at 82% 84%, rgba(255, 135, 33, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(255, 176, 72, 0.03), transparent 18%, transparent 82%, rgba(255, 176, 72, 0.02));
  mix-blend-mode: screen;
  opacity: 0.94;
  animation: land-phosphor-breathe 7.2s ease-in-out infinite;
}

.land-display::after {
  inset: -10% 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 184, 72, 0.07) 49%,
    rgba(255, 184, 72, 0.015) 51%,
    transparent 58%,
    transparent 100%
  );
  opacity: 0.22;
  animation: land-phosphor-drift 11s linear infinite;
}

.land-boot,
.land-chooser,
.land-nav-ui {
  position: absolute;
  inset: 0;
}

.land-boot {
  z-index: 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5.5% 5.5% 4%;
  background:
    linear-gradient(180deg, rgba(6, 8, 6, 0.95), rgba(4, 5, 4, 0.98)),
    radial-gradient(circle at 50% 40%, rgba(111, 182, 93, 0.06), transparent 62%);
}

.land-boot.land-boot-done {
  display: none;
}

.land-boot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(14px, 4vh, 44px);
  color: var(--land-amber-hi);
  text-shadow:
    0 0 0.8px currentColor,
    0 0 6px var(--land-phosphor-mid),
    0 0 18px var(--land-phosphor-wide);
}

.land-boot-content div {
  white-space: pre;
  font-size: clamp(10px, 1.55vw, 18px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
  filter: saturate(1.05);
}

.land-boot-content .boot-art {
  font-size: clamp(8px, 1.1vw, 13px);
  opacity: 0.92;
}

.land-boot-content .boot-subtitle {
  margin-top: 16px;
  font-size: clamp(12px, 1.55vw, 18px);
  color: var(--land-amber-hi);
  letter-spacing: 0.16em;
}

.land-boot-content .boot-amber,
.land-boot-content .boot-table-head,
.land-boot-content .boot-table {
  color: var(--land-amber);
  text-shadow:
    0 0 0.8px currentColor,
    0 0 6px var(--land-phosphor-mid),
    0 0 18px var(--land-phosphor-wide);
}

.land-boot-content .boot-table-head {
  margin-top: 14px;
  opacity: 0.92;
}

.land-boot-content .boot-table {
  letter-spacing: 0.16em;
}

.land-boot-content .boot-green {
  color: var(--land-grn-hi);
  text-shadow:
    0 0 0.8px currentColor,
    0 0 8px var(--land-phosphor-green),
    0 0 18px rgba(121, 206, 98, 0.12);
}

.land-boot-content .boot-dim {
  color: rgba(255, 208, 128, 0.7);
}

.land-boot-content .boot-warning {
  margin-top: 8px;
  color: var(--land-amber-hi);
  letter-spacing: 0.2em;
  text-shadow:
    0 0 1px currentColor,
    0 0 10px rgba(255, 174, 76, 0.34),
    0 0 22px rgba(255, 133, 34, 0.18);
}

.land-boot-bottom {
  padding-top: 20px;
}

.land-boot-bar-track {
  height: 18px;
  border: 1px solid var(--land-grn-dim);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(247, 179, 65, 0.08) 0,
      rgba(247, 179, 65, 0.08) 14px,
      transparent 14px,
      transparent 17px
    ),
    rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.land-boot-bar {
  height: 100%;
  width: 0;
  background:
    linear-gradient(90deg, rgba(247, 179, 65, 0.16), transparent 14%),
    linear-gradient(90deg, var(--land-grn), var(--land-grn-hi));
  box-shadow:
    0 0 10px rgba(111, 182, 93, 0.55),
    0 0 24px rgba(111, 182, 93, 0.2);
  transition: width 0.16s linear;
}

.land-boot-copy {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: clamp(11px, 1.2vw, 15px);
  letter-spacing: 0.16em;
  color: var(--land-amber);
  opacity: 0.72;
}

.land-chooser {
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(4, 8, 4, 0.66), rgba(4, 8, 4, 0.95)),
    radial-gradient(circle at 34% 48%, rgba(111, 182, 93, 0.07), transparent 52%);
  color: var(--land-grn);
  text-align: left;
}

.land-chooser[hidden] {
  display: none;
}

.land-choice-residue {
  position: absolute;
  top: clamp(16px, 2.8vh, 34px);
  left: clamp(24px, 3.8vw, 52px);
  right: clamp(130px, 15vw, 220px);
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(126px, 14vw, 188px);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  opacity: 0.84;
  pointer-events: none;
}

.land-choice-log {
  display: grid;
  gap: 8px;
  max-width: 560px;
  color: rgba(247, 179, 65, 0.82);
  font-size: clamp(10px, 0.92vw, 13px);
  letter-spacing: 0.18em;
  text-shadow:
    0 0 3px rgba(247, 179, 65, 0.18),
    0 0 12px rgba(247, 179, 65, 0.08);
}

.land-choice-log span {
  display: block;
  padding-left: 12px;
  border-left: 1px solid rgba(247, 179, 65, 0.18);
}

.land-choice-scope {
  position: relative;
  width: clamp(126px, 14vw, 188px);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid rgba(111, 182, 93, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(111, 182, 93, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at center, transparent 0 38%, rgba(111, 182, 93, 0.1) 38.5%, transparent 40.5%),
    radial-gradient(circle at center, transparent 0 68%, rgba(111, 182, 93, 0.08) 68.5%, transparent 70.5%),
    linear-gradient(90deg, transparent 49%, rgba(111, 182, 93, 0.22) 49.4%, rgba(111, 182, 93, 0.22) 50.6%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(111, 182, 93, 0.22) 49.4%, rgba(111, 182, 93, 0.22) 50.6%, transparent 51%),
    radial-gradient(circle at center, rgba(2, 8, 3, 0.94), rgba(2, 5, 2, 0.74));
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(111, 182, 93, 0.08);
}

.land-choice-scope::before,
.land-choice-scope::after {
  content: '';
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  pointer-events: none;
}

.land-choice-scope::before {
  background: conic-gradient(from 14deg, rgba(111, 182, 93, 0.22), rgba(111, 182, 93, 0.03) 18%, transparent 35%, transparent 100%);
  filter: blur(0.4px);
  animation: land-scope-sweep 5.2s linear infinite;
  transform-origin: center;
}

.land-choice-scope::after {
  border: 1px solid rgba(111, 182, 93, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(111, 182, 93, 0.08),
    0 0 18px rgba(111, 182, 93, 0.05);
}

.land-chooser-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.54fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  width: min(1100px, calc(100% - 72px));
  max-height: calc(100% - 32px);
  margin-top: clamp(40px, 7vh, 78px);
  margin-left: 0;
  padding: clamp(18px, 2.6vw, 28px);
  overflow: auto;
  border: 1px solid rgba(111, 182, 93, 0.12);
  background:
    linear-gradient(180deg, rgba(7, 10, 7, 0.74), rgba(4, 6, 4, 0.86)),
    linear-gradient(90deg, rgba(247, 179, 65, 0.03), transparent 14%, transparent 82%, rgba(111, 182, 93, 0.03)),
    radial-gradient(circle at 24% 24%, rgba(111, 182, 93, 0.04), transparent 46%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 34px rgba(0, 0, 0, 0.36),
    0 0 44px rgba(0, 0, 0, 0.2);
}

.land-chooser-shell::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 179, 65, 0.18), rgba(111, 182, 93, 0.08) 32%, rgba(111, 182, 93, 0.08) 68%, rgba(247, 179, 65, 0.12));
  pointer-events: none;
}

.land-choice-copy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.land-choice-kicker {
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.22em;
  color: var(--land-amber);
  opacity: 0.78;
}

.land-choice-title {
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.09em;
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 7px var(--land-phosphor-mid),
    0 0 24px var(--land-phosphor-wide);
}

.land-choice-copy,
.land-chooser-help {
  max-width: 52ch;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
  font-size: clamp(12px, 1.12vw, 15px);
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: rgba(255, 204, 118, 0.82);
  text-shadow:
    0 0 0.8px currentColor,
    0 0 6px rgba(255, 164, 45, 0.22),
    0 0 16px rgba(255, 132, 28, 0.12);
}

.land-chooser-help {
  width: 100%;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(247, 179, 65, 0.12);
  font-size: clamp(11px, 0.96vw, 13px);
  letter-spacing: 0.16em;
  color: rgba(247, 179, 65, 0.68);
}

.land-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
  width: 100%;
  margin: 6px 0 2px;
}

.landing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 150px;
  padding: 18px 22px 18px;
  background:
    linear-gradient(180deg, rgba(7, 10, 7, 0.94), rgba(4, 8, 4, 0.88)),
    radial-gradient(circle at top left, rgba(111, 182, 93, 0.08), transparent 46%);
  border: 1px solid rgba(255, 191, 96, 0.28);
  color: var(--land-amber-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 12px rgba(111, 182, 93, 0.06);
}

.landing-card::before,
.landing-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.landing-card::before {
  inset: 8px;
  border: 1px solid rgba(255, 191, 96, 0.16);
}

.landing-card::after {
  left: 22px;
  right: 22px;
  bottom: 12px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      currentColor 0 16%,
      transparent 16% 22%,
      currentColor 22% 34%,
      transparent 34% 58%,
      currentColor 58% 100%
    );
  opacity: 0.18;
}

.landing-card:hover,
.landing-card:focus-visible {
  border-color: var(--land-grn-hi);
  background:
    linear-gradient(180deg, rgba(12, 21, 12, 0.94), rgba(7, 14, 7, 0.92)),
    radial-gradient(circle at top left, rgba(111, 182, 93, 0.1), transparent 46%);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(111, 182, 93, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.land-card-id {
  font-size: clamp(11px, 1.2vw, 15px);
  letter-spacing: 0.22em;
  color: var(--land-amber);
  opacity: 0.82;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-card-label {
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 8px rgba(255, 164, 45, 0.2),
    0 0 22px rgba(255, 132, 28, 0.1);
}

.land-card-sub {
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.16em;
  opacity: 0.62;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.landing-card .land-card-meta {
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(10px, 0.95vw, 12px);
  letter-spacing: 0.18em;
  color: rgba(247, 179, 65, 0.74);
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-choice-status {
  display: grid;
  gap: 10px;
  align-self: start;
  padding-top: 6px;
}

.land-choice-status-card {
  position: relative;
  min-height: 64px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(111, 182, 93, 0.12);
  background: linear-gradient(180deg, rgba(7, 11, 7, 0.76), rgba(4, 6, 4, 0.88));
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.34),
    0 0 12px rgba(0, 0, 0, 0.14);
}

.land-choice-status-card::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(247, 179, 65, 0.28), rgba(111, 182, 93, 0.18));
  opacity: 0.8;
}

.land-choice-status-label {
  display: block;
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(247, 179, 65, 0.62);
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-choice-status-value {
  display: block;
  margin-top: 8px;
  margin-left: 8px;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.14em;
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 8px rgba(255, 164, 45, 0.22),
    0 0 18px rgba(255, 132, 28, 0.12);
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-choice-status-card:nth-child(2) .land-choice-status-value,
.land-choice-status-card:nth-child(3) .land-choice-status-value {
  color: var(--land-amber-hi);
  text-shadow:
    0 0 8px rgba(247, 179, 65, 0.18),
    0 0 22px rgba(247, 179, 65, 0.08);
}

.land-choice-residue,
.land-choice-copy-block > *,
.land-choices,
.land-choice-status-card {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.land-choice-residue {
  transform: translate3d(-14px, 0, 0);
}

.land-chooser.is-live .land-choice-residue,
.land-chooser.is-live .land-choice-copy-block > *,
.land-chooser.is-live .land-choices,
.land-chooser.is-live .land-choice-status-card {
  transform: none;
}

.land-chooser.is-live .land-choice-residue {
  opacity: 0.84;
  transition: opacity 1.4s ease 0.22s, transform 1.4s ease 0.22s;
}

.land-chooser.is-live .land-choice-kicker {
  opacity: 0.78;
  transition: opacity 0.9s ease 0.58s, transform 0.9s ease 0.58s;
}

.land-chooser.is-live .land-choice-title {
  opacity: 1;
  transition: opacity 1.05s ease 0.9s, transform 1.05s ease 0.9s;
}

.land-chooser.is-live .land-choice-copy {
  opacity: 1;
  transition: opacity 1.1s ease 1.22s, transform 1.1s ease 1.22s;
}

.land-chooser.is-live .land-choices {
  opacity: 1;
  transition: opacity 0.96s ease 1.14s, transform 0.96s ease 1.14s;
}

.land-chooser.is-live .land-choice-status-card:nth-child(1) {
  opacity: 1;
  transition: opacity 0.95s ease 1.18s, transform 0.95s ease 1.18s;
}

.land-chooser.is-live .land-choice-status-card:nth-child(2) {
  opacity: 1;
  transition: opacity 0.95s ease 1.36s, transform 0.95s ease 1.36s;
}

.land-chooser.is-live .land-choice-status-card:nth-child(3) {
  opacity: 1;
  transition: opacity 0.95s ease 1.54s, transform 0.95s ease 1.54s;
}

.land-chooser.is-live .land-choice-status-card:nth-child(4) {
  opacity: 1;
  transition: opacity 0.95s ease 1.72s, transform 0.95s ease 1.72s;
}

.land-chooser.is-live .land-chooser-help {
  opacity: 1;
  transition: opacity 1s ease 2.04s, transform 1s ease 2.04s;
}

.landing-card[data-choice="minitel"] .land-card-label {
  color: var(--land-cyan);
}

.landing-card[data-choice="minitel"] .land-card-meta {
  color: rgba(127, 230, 214, 0.68);
}

.landing-card[data-choice="minitel"]:hover,
.landing-card[data-choice="minitel"]:focus-visible {
  border-color: var(--land-cyan);
}

.land-nav-ui {
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.land-nav-ui.land-nav-hidden {
  display: none;
}

.land-nav-ui .land-header,
.land-nav-ui .land-subheader,
.land-nav-ui .land-body,
.land-nav-ui .land-footer {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

.land-nav-ui.is-live .land-header,
.land-nav-ui.is-live .land-subheader,
.land-nav-ui.is-live .land-body,
.land-nav-ui.is-live .land-footer {
  opacity: 1;
  transform: none;
}

.land-nav-ui.is-live .land-header {
  transition: opacity 0.75s ease 0.16s, transform 0.75s ease 0.16s;
}

.land-nav-ui.is-live .land-subheader {
  transition: opacity 0.75s ease 0.38s, transform 0.75s ease 0.38s;
}

.land-nav-ui.is-live .land-body {
  transition: opacity 0.95s ease 0.66s, transform 0.95s ease 0.66s;
}

.land-nav-ui.is-live .land-footer {
  transition: opacity 0.75s ease 0.98s, transform 0.75s ease 0.98s;
}

.land-header,
.land-subheader,
.land-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 16px;
}

.land-header {
  background:
    linear-gradient(180deg, rgba(28, 20, 10, 0.96), rgba(10, 8, 5, 0.92));
  color: var(--land-amber-hi);
  font-size: clamp(13px, 1.7vw, 21px);
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(247, 179, 65, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 14px rgba(0, 0, 0, 0.28);
  text-shadow:
    0 0 1px currentColor,
    0 0 7px rgba(255, 164, 45, 0.2),
    0 0 18px rgba(255, 132, 28, 0.1);
}

.land-hdr-right {
  font-size: clamp(12px, 1.3vw, 17px);
  letter-spacing: 0.14em;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-subheader,
.land-footer {
  color: rgba(255, 205, 126, 0.84);
  text-shadow:
    0 0 1px currentColor,
    0 0 6px rgba(255, 164, 45, 0.18),
    0 0 14px rgba(255, 132, 28, 0.08);
}

.land-subheader {
  border-bottom: 1px solid var(--land-grn-dim);
  font-size: clamp(11px, 1.1vw, 15px);
  letter-spacing: 0.08em;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.land-viewport {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.land-viewport::before {
  content: '';
  position: absolute;
  inset: 5.5%;
  border: 1px solid rgba(111, 182, 93, 0.1);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%);
  pointer-events: none;
}

.land-content-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 18px);
  width: min(1120px, calc(100% - 36px));
  height: min(76vh, 680px);
  padding: clamp(12px, 1.4vw, 18px);
  border: 1px solid rgba(255, 169, 62, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 7, 3, 0.94), rgba(6, 5, 3, 0.88)),
    radial-gradient(circle at top, rgba(255, 172, 69, 0.05), transparent 58%);
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(0, 0, 0, 0.2),
    0 0 26px rgba(255, 144, 32, 0.05);
}

.land-page-nav,
.land-main-panel,
.land-side-panel {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 182, 93, 0.26) transparent;
}

.land-page-nav::-webkit-scrollbar,
.land-main-panel::-webkit-scrollbar,
.land-side-panel::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.land-page-nav::-webkit-scrollbar-thumb,
.land-main-panel::-webkit-scrollbar-thumb,
.land-side-panel::-webkit-scrollbar-thumb {
  background: rgba(111, 182, 93, 0.26);
}

.land-page-nav {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.land-page-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(11, 8, 4, 0.92);
  border: 1px solid rgba(255, 172, 69, 0.14);
  color: rgba(255, 200, 108, 0.84);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.land-page-button:hover,
.land-page-button:focus-visible,
.land-page-button.is-active {
  border-color: var(--land-amber-hi);
  background: rgba(21, 15, 8, 0.94);
  transform: translateX(4px);
  outline: none;
}

.land-page-button-code {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--land-amber);
  opacity: 0.82;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-page-button-label {
  font-family: 'VT323', 'IBM Plex Mono', monospace;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 6px rgba(255, 164, 45, 0.18),
    0 0 16px rgba(255, 132, 28, 0.08);
}

.land-page-button-desc {
  font-family: 'VT323', 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 198, 108, 0.64);
}

.land-main-panel,
.land-side-panel {
  padding: 16px;
  border: 1px solid rgba(255, 172, 69, 0.12);
  background: rgba(9, 7, 4, 0.86);
}

.land-main-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.land-main-panel:focus {
  outline: none;
}

.land-panel-kicker,
.land-card-label-mini,
.land-side-label,
.land-stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--land-amber);
  opacity: 0.82;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-panel-title {
  font-family: 'VT323', 'IBM Plex Mono', monospace;
  font-size: clamp(20px, 2.4vw, 31px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 8px rgba(255, 164, 45, 0.22),
    0 0 24px rgba(255, 132, 28, 0.12);
}

.land-panel-summary {
  max-width: 60ch;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(13px, 1.04vw, 15px);
  line-height: 1.58;
  color: rgba(255, 204, 118, 0.84);
  text-shadow:
    0 0 0.8px currentColor,
    0 0 5px rgba(255, 164, 45, 0.14),
    0 0 14px rgba(255, 132, 28, 0.08);
}

.land-stats-grid,
.land-card-grid,
.land-link-grid,
.land-side-list {
  display: grid;
  gap: 12px;
}

.land-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.land-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.land-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.land-side-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.land-stat-card,
.land-dossier-card,
.land-link-card,
.land-side-card {
  padding: 14px 15px;
  border: 1px solid rgba(255, 172, 69, 0.14);
  background: rgba(12, 9, 5, 0.92);
}

.land-stat-value,
.land-card-title,
.land-link-title,
.land-side-title {
  display: block;
  margin-top: 6px;
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 7px rgba(255, 164, 45, 0.18),
    0 0 18px rgba(255, 132, 28, 0.08);
}

.land-stat-value {
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.land-card-title,
.land-link-title,
.land-side-title {
  font-family: 'VT323', 'IBM Plex Mono', monospace;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.land-card-meta,
.land-card-copy,
.land-link-copy,
.land-side-copy {
  display: block;
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.56;
  color: rgba(255, 198, 108, 0.8);
}

.land-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.land-card-tag {
  padding: 4px 8px;
  border: 1px solid rgba(255, 172, 69, 0.14);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 194, 106, 0.8);
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-inline-link,
.land-link-card {
  color: inherit;
  text-decoration: none;
}

.land-link-card {
  display: block;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.land-inline-link:hover,
.land-inline-link:focus-visible,
.land-link-card:hover,
.land-link-card:focus-visible {
  border-color: var(--land-amber-hi);
  color: var(--land-amber-hi);
  outline: none;
}

.land-link-card:hover,
.land-link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 146, 38, 0.08);
}

.land-side-panel {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.land-sidebar {
  display: none;
}

.land-readout-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 172, 69, 0.1);
}

.land-readout-group:last-child {
  border-bottom: none;
}

.land-readout-bottom {
  margin-top: auto;
}

.land-ro-label {
  font-size: clamp(9px, 1vw, 13px);
  letter-spacing: 0.14em;
  color: var(--land-amber);
  opacity: 0.78;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-ro-val,
.land-ro-box,
.land-ro-counter {
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 6px rgba(255, 164, 45, 0.18),
    0 0 16px rgba(255, 132, 28, 0.08);
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-ro-val {
  font-size: clamp(12px, 1.35vw, 17px);
}

.land-ro-box {
  font-size: clamp(11px, 1.2vw, 15px);
}

.land-ro-counter {
  font-size: clamp(14px, 1.55vw, 20px);
  letter-spacing: 0.1em;
}

.land-footer {
  border-top: 1px solid rgba(255, 172, 69, 0.12);
  font-size: clamp(10px, 1vw, 15px);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: 'VT323', 'IBM Plex Mono', monospace;
}

.land-footer-val {
  color: var(--land-amber-hi);
  text-shadow:
    0 0 1px currentColor,
    0 0 6px rgba(255, 164, 45, 0.18),
    0 0 14px rgba(255, 132, 28, 0.08);
}

.view-switch {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 15, 0.75);
  color: rgba(235, 232, 220, 0.72);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.view-switch:hover,
.view-switch:focus-visible {
  color: rgba(255, 248, 228, 0.96);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
}

body[data-view="landing"][data-landing-state="boot"] .view-switch,
body[data-view="landing"][data-landing-state="chooser"] .view-switch {
  display: none;
}

@media (max-width: 899px) {
  .land-scene-frame::before {
    display: none;
  }

  .land-scene-frame::after {
    opacity: 0.24;
  }

  .land-screen {
    top: 3%;
    left: 3%;
    width: 94%;
    height: 94%;
    border-radius: 14px;
    transform: perspective(1400px) rotateX(0.6deg) rotateY(-0.4deg) scale(1.002);
  }

  .land-display {
    padding: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .land-choice-title {
    font-size: clamp(22px, 7vw, 34px);
  }

  .land-choice-residue {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    margin-bottom: 10px;
  }

  .land-choice-log {
    max-width: none;
    gap: 6px;
    font-size: 10px;
  }

  .land-choice-scope {
    width: 112px;
  }

  .land-chooser-shell {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 12px 16px;
    max-height: none;
    overflow: visible;
  }

  .land-choice-copy-block {
    gap: 14px;
  }

  .land-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 18px);
    width: 100%;
  }

  .landing-card {
    width: 100%;
    min-width: 0;
    min-height: 110px;
    padding: 14px 16px;
    gap: 8px;
  }

  .land-choice-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 0;
  }

  .land-body {
    flex-direction: column;
  }

  .land-viewport {
    align-items: flex-start;
    justify-content: stretch;
    overflow: auto;
  }

  .land-content-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: calc(100% - 12px);
    height: auto;
    min-height: calc(100% - 12px);
    padding: 12px;
    gap: 10px;
  }

  .land-page-nav {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .land-page-button {
    padding: 8px 6px;
    gap: 2px;
    text-align: center;
    align-items: center;
    scroll-snap-align: start;
    min-height: 44px;
  }

  .land-page-button-code { font-size: 9px; letter-spacing: 0.12em; }
  .land-page-button-label { font-size: 13px; white-space: nowrap; }
  .land-page-button-desc { display: none; }

  .land-main-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .land-side-panel {
    grid-column: 1;
    grid-row: 3;
  }

  .land-main-panel,
  .land-side-panel {
    padding: 14px;
    overflow: visible;
  }

  .land-header,
  .land-subheader,
  .land-footer {
    padding-left: 10px;
    padding-right: 10px;
  }

  .land-header {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .land-header > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .land-hdr-right { flex-shrink: 0; white-space: nowrap; }

  .land-subheader > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .land-footer > span:not(.land-footer-val) { display: none; }

  .land-stats-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .land-stat-value { font-size: 22px; }
  .land-card-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .land-link-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

  .land-stat-card, .land-dossier-card, .land-link-card, .land-side-card {
    padding: 10px 12px;
  }
}

@media (max-width: 560px) {
  .land-choice-residue {
    grid-template-columns: 1fr;
  }

  .land-choice-scope {
    justify-self: start;
    width: 94px;
  }

  .land-choice-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .land-chooser-help {
    line-height: 1.6;
  }

  .land-page-button-code { display: none; }
  .land-page-button-label { font-size: 12px; letter-spacing: 0.04em; }
  .land-page-button { padding: 6px 4px; }
  .land-page-nav { gap: 3px; }
}

@media (max-width: 400px) {
  .land-screen {
    transform: none;
  }

  .land-page-nav {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
  }

  .land-page-button-label { font-size: 11px; letter-spacing: 0.02em; }
  .land-page-button { padding: 5px 3px; }

  .land-choices { grid-template-columns: 1fr; }

  .land-card-label {
    font-size: 20px;
  }
}

:where(.land-main-panel) h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .land-noise,
  .landing-card,
  .land-link-card,
  .land-page-button,
  .land-choice-residue,
  .land-choice-copy-block > *,
  .land-choices,
  .land-choice-status-card,
  .land-nav-ui .land-header,
  .land-nav-ui .land-subheader,
  .land-nav-ui .land-body,
  .land-nav-ui .land-footer {
    animation: none;
    transition: none;
  }

  .land-display::before,
  .land-display::after {
    animation: none;
  }

  .land-screen {
    transform: none;
  }
}
