/* Launcher1 / Nxc91 — e-ink inspired (aligned with app theme) */

:root {
  --bg: #faf9f7;
  --bg-elevated: #ffffff;
  --surface: #f0eeeb;
  --surface-variant: #e4e1dc;
  --text: #0d0d0d;
  --text-muted: #5c5a57;
  --accent: #1a1a1a;
  --outline: rgba(13, 13, 13, 0.12);
  --outline-strong: rgba(13, 13, 13, 0.2);
  --glow: rgba(120, 95, 70, 0.22);
  --glow-2: rgba(90, 120, 160, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
  --shadow-sm: 0 1px 2px rgba(13, 13, 13, 0.04);
  --shadow-card: 0 4px 24px rgba(13, 13, 13, 0.06);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --max-prose: 40rem;
  --max-content: 72rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --surface: #161616;
  --surface-variant: #242424;
  --text: #f2f0ed;
  --text-muted: #a8a5a0;
  --accent: #f2f0ed;
  --outline: rgba(242, 240, 237, 0.12);
  --outline-strong: rgba(242, 240, 237, 0.22);
  --glow: rgba(220, 200, 170, 0.14);
  --glow-2: rgba(140, 170, 220, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
}

:root:not([data-theme="dark"]) {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.page-home {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--surface-variant);
  color: var(--text);
}

/* Ambient background (home) — lightweight */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  transform: translateZ(0);
}

.ambient__orb--a {
  width: min(50vw, 440px);
  height: min(50vw, 440px);
  top: -10%;
  right: -6%;
  background: radial-gradient(circle at 30% 30%, var(--glow), transparent 70%);
}

.ambient__orb--b {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  bottom: -4%;
  left: -8%;
  background: radial-gradient(circle at 60% 40%, var(--glow-2), transparent 72%);
}

/* Subtle backdrop (inner pages) */
.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  background: radial-gradient(ellipse 100% 70% at 92% 0%, var(--glow), transparent 55%);
}

[data-theme="dark"] .page-backdrop {
  opacity: 0.28;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-8);
}

.wrap--home {
  max-width: var(--max-content);
}

@media (min-width: 640px) {
  .wrap {
    padding: var(--space-6) var(--space-5) var(--space-10);
  }
}

header.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0 var(--space-5);
  border-bottom: 1px solid var(--outline);
  margin-bottom: var(--space-5);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.brand:hover {
  opacity: 0.85;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.brand--lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__launcher {
  display: block;
  border-radius: 10px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

nav {
  margin-bottom: var(--space-2);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

nav a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--outline);
}

nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-variant);
  border-color: var(--outline);
}

nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--outline);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.theme-toggle svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.theme-toggle__label {
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--outline-strong);
}

.theme-toggle:active {
  transform: scale(0.98);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Home hero */
.page-home main {
  padding-top: 0;
}

.hero {
  padding: var(--space-2) 0 var(--space-8);
}

.hero--split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 960px) {
  .hero--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-10);
    min-height: min(70vh, 640px);
    padding-bottom: var(--space-4);
  }
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
  max-width: 15ch;
}

.hero__lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 40ch;
}

.hero-cta {
  margin: var(--space-6) 0 0;
}

.btn-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  box-shadow: var(--shadow-sm);
}

.hero-mascot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.hero-mascot__scene {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.hero-mascot__float {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.hero-mascot__glow {
  position: absolute;
  inset: -18% -12% -8%;
  background: radial-gradient(ellipse at 50% 45%, var(--glow), transparent 68%);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-mascot__glow {
  opacity: 0.45;
}

.hero-mascot__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--outline);
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--surface) 100%);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: var(--shadow-card);
}

.nxc-svg {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
  color: var(--text);
  cursor: pointer;
}


.js-reveal.is-visible {
  opacity: 1;
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--outline-strong);
  box-shadow: var(--shadow-sm), var(--shadow-card);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  margin-bottom: var(--space-4);
}

.feature-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: var(--space-8) 0 var(--space-4);
}

/* Link cards row */
.link-cards {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 520px) {
  .link-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.link-card:hover {
  background: var(--surface-variant);
  border-color: var(--outline-strong);
}

.link-card:active {
  transform: scale(0.99);
}

.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link-card__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.link-card__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.about-strip {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-strip p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-strip p + p {
  margin-top: var(--space-3);
}

.about-strip strong {
  color: var(--text);
  font-weight: 600;
}

.main-legal {
  margin-top: var(--space-6);
}

main h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

main h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
  letter-spacing: -0.01em;
}

main p {
  margin: 0 0 var(--space-4);
  color: var(--text);
}

main .lede {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-5);
  margin: var(--space-5) 0;
  box-shadow: var(--shadow-sm);
}

.card p:last-child {
  margin-bottom: 0;
}

a.inline {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer.site-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--outline);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  footer.site-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.placeholder-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--outline-strong);
  padding-left: var(--space-4);
  margin-top: var(--space-4);
}

.back-link {
  margin-top: var(--space-8);
  font-size: 0.9rem;
}

.back-link a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--outline);
  padding-bottom: 2px;
}

.back-link a:hover {
  color: var(--text);
  border-bottom-color: var(--outline-strong);
}

/* =========================================================
   SPACE THEME — Nxc91 home (index.html with body.page-space)
   ========================================================= */

.page-space {
  /* palette */
  --space-bg-0: #050612;
  --space-bg-1: #0a0d1f;
  --space-bg-2: #10142b;
  --space-ink: #eef0ff;
  --space-ink-soft: #a9b1d6;
  --space-ink-muted: #6b7298;
  --space-accent: #b9c6ff;
  --space-accent-2: #7aa7ff;
  --space-violet: #a78bfa;
  --space-cyan: #67e8f9;
  --space-line: rgba(185, 198, 255, 0.14);
  --space-line-strong: rgba(185, 198, 255, 0.28);
  --space-card: rgba(18, 22, 46, 0.55);
  --space-card-hi: rgba(26, 30, 58, 0.7);
  color-scheme: dark;
  overflow-x: clip;
  background: var(--space-bg-0);
  color: var(--space-ink);
  font-family: var(--font);
  min-height: 100vh;
}

.page-space a {
  color: var(--space-accent);
}

.page-space ::selection {
  background: rgba(185, 198, 255, 0.25);
  color: var(--space-ink);
}

/* Background layers */
.space-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.space-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(122, 167, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(167, 139, 250, 0.14), transparent 55%),
    linear-gradient(180deg, var(--space-bg-0) 0%, var(--space-bg-1) 50%, var(--space-bg-0) 100%);
}

.space-bg__stars {
  position: absolute;
  inset: -50%;
  background-repeat: repeat;
  opacity: 0.9;
  will-change: transform;
}

.space-bg__stars--far {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 60px, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 220px 200px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 310px 90px, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 360px 260px, rgba(255, 255, 255, 0.5) 50%, transparent 51%);
  background-size: 400px 400px;
  opacity: 0.55;
  animation: star-drift-a 120s linear infinite;
}

.space-bg__stars--mid {
  background-image:
    radial-gradient(1.4px 1.4px at 40px 80px, rgba(230, 240, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 160px 170px, rgba(200, 220, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 260px 50px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 380px 300px, rgba(210, 225, 255, 0.7) 50%, transparent 51%);
  background-size: 500px 500px;
  opacity: 0.7;
  animation: star-drift-b 90s linear infinite;
}

.space-bg__stars--near {
  background-image:
    radial-gradient(1.8px 1.8px at 100px 150px, rgba(255, 255, 255, 0.95) 50%, transparent 51%),
    radial-gradient(2px 2px at 320px 90px, rgba(240, 250, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 500px 260px, rgba(220, 230, 255, 0.85) 50%, transparent 51%);
  background-size: 650px 650px;
  opacity: 0.8;
  animation: star-drift-c 60s linear infinite, star-twinkle 4.2s ease-in-out infinite;
}

@keyframes star-drift-a {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-400px, 200px, 0);
  }
}

@keyframes star-drift-b {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(250px, -500px, 0);
  }
}

@keyframes star-drift-c {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-650px, 0, 0);
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}

.space-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}

.space-bg__glow--a {
  width: 42vw;
  height: 42vw;
  max-width: 540px;
  max-height: 540px;
  top: -6%;
  right: -4%;
  background: radial-gradient(circle, rgba(122, 167, 255, 0.6), transparent 65%);
}

.space-bg__glow--b {
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  bottom: 4%;
  left: -6%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.5), transparent 65%);
}

@media (prefers-reduced-motion: reduce) {
  .space-bg__stars,
  .space-bg__stars--near {
    animation: none !important;
  }
}

/* Layout */
.wrap--space {
  position: relative;
  z-index: 1;
  max-width: 76rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5) var(--space-10);
}

@media (min-width: 720px) {
  .wrap--space {
    padding: var(--space-6) var(--space-6) 6rem;
  }
}

/* Header */
.site-header--space {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0 var(--space-6);
  border: 0;
  margin-bottom: var(--space-8);
}

.brand--space {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--space-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--space-accent-2) 60%, var(--space-violet) 100%);
  box-shadow: 0 0 12px rgba(122, 167, 255, 0.6);
}

.brand--space .brand__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.top-nav {
  display: none;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 640px) {
  .top-nav {
    display: inline-flex;
  }
}

.top-nav a {
  color: var(--space-ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.top-nav a:hover {
  color: var(--space-ink);
}

/* Hero */
.space-hero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-6) 0 var(--space-10);
}

@media (min-width: 960px) {
  .space-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-10);
    min-height: 62vh;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--space-ink-muted);
  margin: 0 0 var(--space-4);
}

.eyebrow--space {
  color: var(--space-accent);
}

.eyebrow__spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--space-accent);
  box-shadow: 0 0 10px var(--space-accent);
  display: inline-block;
}

.space-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-5);
  color: var(--space-ink);
}

.space-hero__title-row {
  display: block;
}

.space-hero__title-row--accent {
  font-style: italic;
  background: linear-gradient(90deg, var(--space-accent) 0%, var(--space-violet) 60%, var(--space-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.space-hero__lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--space-ink-soft);
  margin: 0 0 var(--space-6);
  max-width: 42ch;
}

.space-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn--ghost {
  background: rgba(185, 198, 255, 0.06);
  color: var(--space-ink);
  border-color: var(--space-line-strong);
}

.btn--ghost:hover {
  background: rgba(185, 198, 255, 0.12);
  border-color: var(--space-accent);
}

.btn--ghost:active {
  transform: translateY(1px);
}

.btn--link {
  color: var(--space-accent);
  padding: 0.8rem 0.4rem;
  background: transparent;
}

.btn--link:hover {
  color: var(--space-ink);
}

.btn--primary {
  background: linear-gradient(135deg, var(--space-accent-2), var(--space-violet));
  color: #0a0d1f;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(122, 167, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(122, 167, 255, 0.45);
}

/* Scene: planet + figure */
.space-hero__scene {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.scene-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.scene-planet {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.scene-planet__body {
  width: 120%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(185, 198, 255, 0.22), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.18), transparent 60%),
    linear-gradient(180deg, #0f1333 0%, #060814 100%);
  border: 1px solid var(--space-line-strong);
  box-shadow:
    inset 0 -40px 80px rgba(0, 0, 0, 0.7),
    inset 0 40px 60px rgba(185, 198, 255, 0.08),
    0 20px 80px rgba(122, 167, 255, 0.15);
  transform: translateY(62%);
}

.scene-planet__ring {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 56%;
  height: 18%;
  border: 1px solid var(--space-line-strong);
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.55;
  pointer-events: none;
  animation: ring-float 16s ease-in-out infinite;
}

.scene-planet__ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--space-line);
  border-radius: 50%;
}

@keyframes ring-float {
  0%,
  100% {
    transform: rotate(-18deg) translateY(0);
  }
  50% {
    transform: rotate(-17deg) translateY(-4px);
  }
}

.scene-horizon {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 76%;
  height: 10px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(185, 198, 255, 0.5), transparent 70%);
  filter: blur(2px);
  opacity: 0.6;
}

.scene-figure {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 56%;
  transform: translateX(-50%);
  animation: figure-float 5.2s ease-in-out infinite;
  cursor: pointer;
}

.nxc-svg--space {
  color: var(--space-ink);
  filter: drop-shadow(0 4px 18px rgba(185, 198, 255, 0.25));
  width: 100%;
  height: auto;
  display: block;
}

@keyframes figure-float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-figure,
  .scene-planet__ring {
    animation: none !important;
  }
}

/* Sections */
.section {
  padding: var(--space-10) 0;
  scroll-margin-top: 2rem;
}

.section__header {
  max-width: 42rem;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
  color: var(--space-ink);
}

.section__lede {
  color: var(--space-ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 38ch;
}

/* Work / Orbit grid */
.orbit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 680px) {
  .orbit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.orbit-card {
  position: relative;
  border: 1px solid var(--space-line);
  border-radius: 20px;
  padding: var(--space-5);
  background: linear-gradient(180deg, var(--space-card) 0%, rgba(10, 13, 31, 0.35) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.orbit-card--live:hover {
  transform: translateY(-4px);
  border-color: var(--space-line-strong);
  background: linear-gradient(180deg, var(--space-card-hi) 0%, rgba(16, 20, 43, 0.5) 100%);
}

.orbit-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.orbit-card__link:focus-visible {
  outline: 2px solid var(--space-accent);
  outline-offset: 4px;
  border-radius: 20px;
}

.orbit-card__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-card__ring {
  position: absolute;
  inset: 10%;
  border: 1px solid var(--space-line-strong);
  border-radius: 50%;
  transform: rotate(-14deg);
  animation: orb-ring-spin 28s linear infinite;
}

.orbit-card__ring::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--space-accent);
  box-shadow: 0 0 10px var(--space-accent);
  transform: translate(-50%, -50%);
}

.orbit-card__ring--faint {
  opacity: 0.45;
  animation-duration: 50s;
}

.orbit-card__ring--faint::after {
  background: var(--space-ink-muted);
  box-shadow: none;
}

@keyframes orb-ring-spin {
  from {
    transform: rotate(-14deg);
  }
  to {
    transform: rotate(346deg);
  }
}

.orbit-card__orb {
  position: relative;
  width: 52%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s ease;
  animation: orb-float 6s ease-in-out infinite;
}

.orbit-card--live:hover .orbit-card__orb {
  transform: scale(1.05);
}

.orbit-card__orb--launcher {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), rgba(122, 167, 255, 0.35) 38%, transparent 60%),
    radial-gradient(circle at 70% 72%, rgba(167, 139, 250, 0.55), transparent 58%),
    linear-gradient(135deg, #3a4ea0 0%, #1a1e4a 60%, #0a0d1f 100%);
  box-shadow:
    inset 0 -18px 40px rgba(0, 0, 0, 0.55),
    inset 0 18px 24px rgba(255, 255, 255, 0.08),
    0 14px 40px rgba(122, 167, 255, 0.3);
  color: #fff;
}

.orbit-card__orb--launcher::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 167, 255, 0.25), transparent 65%);
  filter: blur(14px);
  z-index: -1;
}

.orb-glyph {
  width: 44%;
  height: auto;
  color: #fff;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.92;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.orbit-card__orb--teaser {
  background: radial-gradient(circle at 40% 35%, rgba(185, 198, 255, 0.12), rgba(10, 13, 31, 0.4) 60%);
  border: 1px dashed var(--space-line-strong);
  box-shadow: none;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-card__orb,
  .orbit-card__ring {
    animation: none !important;
  }
}

.orbit-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.orbit-card__status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--space-accent);
}

.orbit-card__status--muted {
  color: var(--space-ink-muted);
}

.orbit-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--space-ink);
}

.orbit-card__title--muted {
  color: var(--space-ink-soft);
}

.orbit-card__desc {
  margin: 0;
  color: var(--space-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.orbit-card__cta {
  margin-top: var(--space-2);
  color: var(--space-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.orbit-card--teaser .orbit-card__desc {
  color: var(--space-ink-muted);
}

/* About */
.about-card {
  border: 1px solid var(--space-line);
  border-radius: 22px;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--space-card) 0%, rgba(10, 13, 31, 0.35) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-card__title {
  max-width: 20ch;
}

.about-card__text {
  margin: 0 0 var(--space-6);
  color: var(--space-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 56ch;
}

.about-facts {
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .about-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-facts > div {
  border-top: 1px solid var(--space-line);
  padding-top: var(--space-3);
}

.about-facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--space-ink-muted);
  margin: 0 0 0.35rem;
}

.about-facts dd {
  margin: 0;
  color: var(--space-ink);
  font-size: 1rem;
}

.about-facts dd a {
  color: var(--space-accent);
  text-decoration: none;
}

.about-facts dd a:hover {
  color: var(--space-ink);
}

/* Contact */
.contact-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(122, 167, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--space-card) 0%, rgba(10, 13, 31, 0.35) 100%);
  border: 1px solid var(--space-line);
  max-width: 44rem;
  margin: 0 auto;
}

.contact-card__text {
  color: var(--space-ink-soft);
  margin: 0 0 var(--space-6);
}

/* Footer */
.site-footer--space {
  border-top: 1px solid var(--space-line);
  padding-top: var(--space-5);
  margin-top: var(--space-10);
  color: var(--space-ink-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 0.85rem;
}

@media (min-width: 480px) {
  .site-footer--space {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer--space a {
  color: var(--space-ink-soft);
  text-decoration: none;
}

.site-footer--space a:hover {
  color: var(--space-ink);
}

/* =========================================================
   HOME HERO 3D — Nxc91 full-viewport cinematic scene
   ========================================================= */

.page-home-hero {
  --sp-bg: #03040d;
  --sp-bg-2: #080b1e;
  --sp-ink: #f1f3ff;
  --sp-ink-soft: #b7bee0;
  --sp-ink-muted: #6c72a0;
  --sp-accent: #b9c6ff;
  --sp-accent-2: #7aa7ff;
  --sp-violet: #a78bfa;
  --sp-cyan: #67e8f9;
  --sp-line: rgba(185, 198, 255, 0.16);
  --sp-line-strong: rgba(185, 198, 255, 0.35);
  color-scheme: dark;
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-ink);
  font-family: var(--font);
  overflow-x: clip;
  min-height: 100vh;
}

.page-home-hero a {
  color: var(--sp-accent);
}

.page-home-hero ::selection {
  background: rgba(185, 198, 255, 0.25);
  color: var(--sp-ink);
}

/* Starfield (three parallax layers) */
.hero3d-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(122, 167, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(167, 139, 250, 0.16), transparent 55%),
    linear-gradient(180deg, var(--sp-bg) 0%, var(--sp-bg-2) 60%, var(--sp-bg) 100%);
}

.hero3d-stars__layer {
  position: absolute;
  inset: -50%;
  background-repeat: repeat;
  will-change: transform;
}

.hero3d-stars__layer--far {
  background-image:
    radial-gradient(1px 1px at 30px 50px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 160px, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 220px 80px, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 240px, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 380px 130px, rgba(255, 255, 255, 0.35) 50%, transparent 51%);
  background-size: 420px 420px;
  opacity: 0.55;
  animation: h3d-stars-a 140s linear infinite;
}

.hero3d-stars__layer--mid {
  background-image:
    radial-gradient(1.4px 1.4px at 60px 90px, rgba(230, 240, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 180px 200px, rgba(200, 220, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 280px 40px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 420px 320px, rgba(210, 225, 255, 0.7) 50%, transparent 51%);
  background-size: 520px 520px;
  opacity: 0.7;
  animation: h3d-stars-b 95s linear infinite;
}

.hero3d-stars__layer--near {
  background-image:
    radial-gradient(1.9px 1.9px at 120px 160px, rgba(255, 255, 255, 0.95) 50%, transparent 51%),
    radial-gradient(2.1px 2.1px at 340px 110px, rgba(240, 250, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1.9px 1.9px at 540px 280px, rgba(220, 230, 255, 0.85) 50%, transparent 51%);
  background-size: 680px 680px;
  opacity: 0.85;
  animation: h3d-stars-c 65s linear infinite, h3d-twinkle 4.2s ease-in-out infinite;
}

@keyframes h3d-stars-a {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-420px, 200px, 0); }
}

@keyframes h3d-stars-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(260px, -520px, 0); }
}

@keyframes h3d-stars-c {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-680px, 0, 0); }
}

@keyframes h3d-twinkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

/* Hero stage */
.hero3d {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 48%;
}

.hero3d__brand {
  position: absolute;
  top: clamp(1rem, 2.2vw, 1.75rem);
  left: clamp(1rem, 2.4vw, 2rem);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sp-ink);
  z-index: 5;
  user-select: none;
  opacity: 0.9;
  pointer-events: none;
}

.hero3d__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.parallax {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Nebula soft glows */
.hero3d__nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero3d__nebula--a {
  top: 6%;
  right: -6%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(122, 167, 255, 0.42), transparent 64%);
  opacity: 0.7;
}

.hero3d__nebula--b {
  bottom: 12%;
  left: -8%;
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.38), transparent 64%);
  opacity: 0.65;
}

/* 3D grid floor */
.hero3d__floor {
  position: absolute;
  left: 50%;
  bottom: -38%;
  width: 260vw;
  height: 110vh;
  transform: translateX(-50%) rotateX(68deg);
  transform-origin: 50% 0%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 25%, transparent 72%);
}

.hero3d__floor-inner {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(90deg, var(--sp-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--sp-line) 1px, transparent 1px);
  background-size: 70px 70px;
  animation: h3d-floor 18s linear infinite;
}

@keyframes h3d-floor {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 70px, 0 0; }
}

.hero3d__horizon {
  position: absolute;
  left: 50%;
  bottom: 26%;
  width: 70vw;
  max-width: 900px;
  height: 6px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(185, 198, 255, 0.55), transparent 72%);
  filter: blur(3px);
  pointer-events: none;
}

.hero3d__sun {
  position: absolute;
  left: 50%;
  bottom: 25%;
  width: 160px;
  height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(185, 198, 255, 0.8), transparent 60%);
  filter: blur(22px);
  opacity: 0.55;
  pointer-events: none;
  animation: h3d-sun 6s ease-in-out infinite;
}

@keyframes h3d-sun {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

/* Launcher1 wireframe orb (main subject, clickable) */
.hero3d__launcher {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(38vw, 340px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  color: rgba(220, 232, 255, 0.92);
  text-decoration: none;
  outline: none;
  cursor: pointer;
  animation: h3d-orb-float 7s ease-in-out infinite;
}

@media (min-width: 900px) {
  .hero3d__launcher {
    left: 42%;
    width: min(34vw, 360px);
  }
}

@keyframes h3d-orb-float {
  0%, 100% { transform: translate(-50%, calc(-50% - 0px)); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

.orb-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 167, 255, 0.55), transparent 65%);
  filter: blur(22px);
  animation: h3d-orb-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes h3d-orb-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.orb-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(0 0 18px rgba(122, 167, 255, 0.45));
  animation: h3d-orb-spin 48s linear infinite;
}

@keyframes h3d-orb-spin {
  to { transform: rotate(360deg); }
}

.orb-glyph-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  height: 28%;
  transform: translate(-50%, -50%) scale(0.85);
  color: var(--sp-ink);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(185, 198, 255, 0.6));
}

.hero3d__launcher:hover .orb-glyph-hover,
.hero3d__launcher:focus-visible .orb-glyph-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.orb-ring {
  position: absolute;
  inset: -10%;
  border: 1px solid var(--sp-line-strong);
  border-radius: 50%;
  transform: rotateX(70deg) rotate(-16deg);
  transform-style: preserve-3d;
  z-index: 1;
  pointer-events: none;
  animation: h3d-ring-orbit 14s linear infinite;
}

.orb-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--sp-line);
  border-radius: 50%;
}

.orb-ring__satellite {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px rgba(185, 198, 255, 0.9),
    0 0 20px rgba(122, 167, 255, 0.6);
}

@keyframes h3d-ring-orbit {
  from { transform: rotateX(70deg) rotate(-16deg); }
  to { transform: rotateX(70deg) rotate(344deg); }
}

.orb-label {
  position: absolute;
  left: 50%;
  bottom: -3.2rem;
  transform: translate(-50%, 6px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sp-ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s ease;
  pointer-events: none;
  text-shadow: 0 0 16px rgba(122, 167, 255, 0.4);
}

.orb-label__arrow {
  transition: transform 0.3s ease;
}

.hero3d__launcher:hover .orb-label,
.hero3d__launcher:focus-visible .orb-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero3d__launcher:hover .orb-label__arrow,
.hero3d__launcher:focus-visible .orb-label__arrow {
  transform: translateX(4px);
}

.hero3d__launcher:hover .orb-glow,
.hero3d__launcher:focus-visible .orb-glow {
  animation-play-state: paused;
  opacity: 1;
  background: radial-gradient(circle, rgba(122, 167, 255, 0.75), transparent 60%);
}

.hero3d__launcher:focus-visible::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 2px solid var(--sp-accent);
  pointer-events: none;
}

/* Nxc mascot beside the orb */
.hero3d__mascot {
  position: absolute;
  right: 6%;
  bottom: 18%;
  width: clamp(130px, 18vw, 200px);
  cursor: pointer;
  z-index: 3;
  animation: h3d-mascot-float 5.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

@media (max-width: 720px) {
  .hero3d__mascot {
    right: 6%;
    bottom: 12%;
    width: 130px;
  }
}

@keyframes h3d-mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero3d__mascot .nxc-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--sp-ink);
}

/* Scroll hint */
.hero3d__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--sp-ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 5;
  opacity: 0.75;
  pointer-events: none;
}

.hero3d__scroll-track {
  width: 1.4rem;
  height: 2.2rem;
  border: 1px solid var(--sp-line-strong);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.hero3d__scroll-bead {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 3px;
  height: 8px;
  background: var(--sp-ink);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: h3d-bead 1.9s ease-in-out infinite;
}

@keyframes h3d-bead {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 12px); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero3d__launcher,
  .hero3d__mascot,
  .hero3d__floor-inner,
  .hero3d__sun,
  .orb-wire,
  .orb-ring,
  .orb-glow,
  .hero3d-stars__layer,
  .hero3d__scroll-bead {
    animation: none !important;
  }
}

/* Bottom strip (revealed on scroll) */
.foot-strip {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, #05070f 40%, #04060e 100%);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--sp-line);
  color: var(--sp-ink-soft);
}

.foot-strip__inner {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .foot-strip__inner {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    align-items: start;
  }
}

.foot-strip__intro {
  max-width: 32ch;
}

.foot-strip__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--sp-ink);
}

.foot-strip__tag {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--sp-ink-soft);
}

.foot-strip__col .foot-strip__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-ink-muted);
  margin: 0 0 0.55rem;
}

.foot-strip__email {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-line-strong);
  padding-bottom: 2px;
}

.foot-strip__email:hover {
  color: var(--sp-accent);
  border-bottom-color: var(--sp-accent);
}

.foot-social,
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.925rem;
}

.foot-links a {
  color: var(--sp-ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot-links a:hover {
  color: var(--sp-ink);
}

.foot-social__item {
  color: var(--sp-ink-muted);
  font-size: 0.925rem;
}

.foot-social__item.is-soon {
  position: relative;
}

.foot-strip__note {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--sp-ink-muted);
  letter-spacing: 0.02em;
}

.foot-strip__copy {
  max-width: 76rem;
  margin: 2.5rem auto 0;
  font-size: 0.8rem;
  color: var(--sp-ink-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* =========================================================
   DESK SCENE — Nxc91 home (hand-drawn evening illustration)
   ========================================================= */

html, body {
  margin: 0;
  padding: 0;
}

.page-desk {
  margin: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: var(--font);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  color-scheme: light;
}

.page-desk ::selection {
  background: #0a0a0a;
  color: #fff;
}

/* Default (mobile-first): full viewport, no scroll, no sticky */
.desk-main {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.desk-sticky {
  position: relative;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.desk-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Desktop / landscape: enable scroll-driven animations */
@media (min-aspect-ratio: 80/100) {
  .desk-main {
    height: 200vh;
    height: 200dvh;
    overflow: visible;
  }
  .desk-sticky {
    position: sticky;
    height: 100vh;
    height: 100dvh;
  }
}

.desk-svg text {
  user-select: none;
}

/* Scroll-driven focus: peripheral elements drift outward and fade, monitor stays */
.scene-window,
.scene-wall,
.scene-desk,
.scene-lamp,
.scene-cup,
.scene-keyboard,
.scene-mouse,
.scene-mug,
.scene-wire {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.12s linear, opacity 0.12s linear;
  will-change: transform, opacity;
}

.scene-window   { transform: translateY(calc(var(--scroll, 0) * -60px)); }
.scene-wall     { transform: none; }
.scene-desk     { transform: translateY(calc(var(--scroll, 0) * 30px)); }
.scene-lamp     { transform: translateX(calc(var(--scroll, 0) * -100px)); }
.scene-cup      { transform: translateX(calc(var(--scroll, 0) * -80px)); }
.scene-keyboard { transform: translateY(calc(var(--scroll, 0) * 80px)); }
.scene-mouse    { transform: translate(calc(var(--scroll, 0) * 60px), calc(var(--scroll, 0) * 60px)); }
.scene-mug      { transform: translateX(calc(var(--scroll, 0) * 100px)); }
.scene-wire     { transform: none; }

/* Scroll-driven opacity is layered on top of fade-in animations via a custom property */
.scene-window    { --scroll-op: calc(1 - var(--scroll, 0) * 1.2); }
.scene-wall      { --scroll-op: calc(1 - var(--scroll, 0) * 1.3); }
.scene-desk      { --scroll-op: calc(1 - var(--scroll, 0) * 0.9); }
.scene-lamp      { --scroll-op: calc(1 - var(--scroll, 0) * 1.2); }
.scene-cup       { --scroll-op: calc(1 - var(--scroll, 0) * 1.3); }
.scene-keyboard  { --scroll-op: calc(1 - var(--scroll, 0) * 1.2); }
.scene-mouse     { --scroll-op: calc(1 - var(--scroll, 0) * 1.3); }
.scene-mug       { --scroll-op: calc(1 - var(--scroll, 0) * 1.2); }
.scene-wire      { --scroll-op: calc(1 - var(--scroll, 0) * 1.5); }

.scene-monitor,
.scene-screen-on,
.launcher-tile-link {
  transform-box: view-box;
  transform-origin: 600px 270px;
  transition: transform 0.12s linear;
}

/* Whole SVG fades out as scroll progresses past 35%, revealing the secret note */
.desk-svg {
  opacity: calc(1 - max(0, var(--scroll, 0) - 0.35) * 2.5);
  transition: opacity 0.1s linear;
}

/* === Secret note revealed by scrolling === */
.secret-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: calc((var(--scroll, 0) - 0.4) * 2.5);
  transition: opacity 0.1s linear;
  padding: clamp(1.5rem, 6vw, 3rem);
}

.secret-note__inner {
  max-width: 28rem;
  text-align: left;
}

.secret-note__hello {
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  color: #0a0a0a;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.secret-note__body {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.85;
  color: #0a0a0a;
  margin: 0 0 1.5rem;
}

.secret-note__cta {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.85;
  color: #0a0a0a;
  margin: 0 0 1.75rem;
  pointer-events: auto;
}

.secret-note__email {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.15s ease;
}

.secret-note__email:hover {
  text-decoration-thickness: 2px;
}

.secret-note__sig {
  display: inline-block;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: #0a0a0a;
  margin: 0;
  transform: rotate(-3deg);
  transform-origin: left center;
}

@media (max-aspect-ratio: 80/100) {
  .secret-note {
    padding: 1.5rem;
  }
}

/* --- Mobile portrait: disable scroll-driven transforms entirely --- */
@media (max-aspect-ratio: 80/100) {
  .scene-monitor,
  .scene-screen-on,
  .launcher-tile-link,
  .scene-window,
  .scene-wall,
  .scene-desk,
  .scene-lamp,
  .scene-cup,
  .scene-keyboard,
  .scene-mouse,
  .scene-mug,
  .scene-wire {
    transform: none !important;
    --scroll-op: 1;
  }
}

.launcher-tile-link {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.launcher-hitbox {
  cursor: pointer;
}

.launcher-tile {
  transition: filter 0.3s ease;
}

.launcher-tile-link:hover .launcher-tile,
.launcher-tile-link:focus-visible .launcher-tile {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.launcher-tile-link:focus-visible .tile-select,
.launcher-tile-link:hover .tile-select {
  opacity: 1 !important;
}

.tile-select {
  transition: opacity 0.2s ease;
}

/* ---------- Hand-drawn load animation (stroke-dashoffset) ---------- */
.desk-strokes .scene path,
.desk-strokes .scene line,
.desk-strokes .scene circle,
.desk-strokes .scene ellipse,
.desk-strokes .scene rect {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: draw-in 1s cubic-bezier(0.5, 0, 0.25, 1) var(--d, 0s) forwards;
}

/* Screen + tile are later reveals (use --d directly) */
.desk-strokes .scene-screen-on path,
.desk-strokes .scene-screen-on line,
.desk-strokes .launcher-tile-link path {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: draw-in 0.9s cubic-bezier(0.5, 0, 0.25, 1) var(--d, 0s) forwards;
}

@keyframes draw-in {
  to { stroke-dashoffset: 0; }
}

/* Filled / non-stroked elements: fade in instead of stroke-draw */
.desk-strokes .no-draw {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  opacity: 0;
  animation: fade-on 0.55s ease-out calc(var(--d, 0s) + 0.35s) forwards;
}

/* Text inside scene also fades in (not dash-drawable) */
.desk-strokes text {
  opacity: 0;
  animation: fade-on 0.55s ease-out calc(var(--d, 0s) + 0.35s) forwards;
}

@keyframes fade-on {
  to { opacity: 1; }
}

/* Hand-drawn Nxc91 signature — slight tilt on entry */
.tile-sig {
  transform-box: fill-box;
  transform-origin: right center;
  animation: sig-in 0.8s cubic-bezier(0.33, 0.9, 0.5, 1.1) calc(var(--d, 0s) + 0.55s) forwards;
}
@keyframes sig-in {
  from { opacity: 0; transform: translateY(4px) rotate(-6deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

/* Allow scroll-driven opacity fade-out to reduce element visibility AFTER load */
.scene {
  opacity: var(--scroll-op, 1);
}

/* ---------- Continuous loops (always playing) ---------- */

/* === Continuous loops (start after draw-in completes at ~2.8s) === */

/* Screen cursor blink */
.screen-cursor {
  opacity: 0;
  animation: cursor-blink 1.05s steps(1) 2.8s infinite;
}
@keyframes cursor-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Activity dots */
.act-dot-1 { animation: act-blink 1.4s ease-in-out 2.8s infinite; }
.act-dot-2 { animation: act-blink 1.4s ease-in-out 3.0s infinite; }
.act-dot-3 { animation: act-blink 1.4s ease-in-out 3.2s infinite; }
@keyframes act-blink {
  0%, 100% { opacity: 0.25; }
  40%      { opacity: 1;    }
}

/* Twinkling stars */
.twinkle {
  opacity: 0;
  animation:
    fade-on 0.4s ease 0.8s forwards,
    twinkle-loop 3.2s ease-in-out 1.4s infinite;
}
.twinkle-a { animation-delay: 0.6s, 1.2s; }
.twinkle-b { animation-delay: 0.9s, 1.8s; }
.twinkle-c { animation-delay: 1.1s, 2.3s; }
@keyframes twinkle-loop {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Moon glow */
.moon-glow {
  animation: moon-loop 5s ease-in-out 2s infinite;
}
@keyframes moon-loop {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.55; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   PAGE-INK — shared theme for sub-pages (launcher1, legal)
   ========================================================= */

.page-ink {
  margin: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: var(--font);
  min-height: 100vh;
  min-height: 100svh;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, 0.6);
  --ink-muted: rgba(10, 10, 10, 0.42);
  --ink-line: rgba(10, 10, 10, 0.14);
  --ink-strong: rgba(10, 10, 10, 0.28);
}

.page-ink ::selection {
  background: #0a0a0a;
  color: #fff;
}

.ink-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem) 4rem;
}

.ink-header {
  padding: 1.75rem clamp(1.25rem, 4vw, 2rem) 0;
}

.ink-header__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ink-brand {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  margin-left: -0.7rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.ink-brand:hover {
  background: rgba(10, 10, 10, 0.05);
}

.ink-brand__arrow {
  font-size: 1rem;
  line-height: 1;
}

.ink-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.ink-title {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.ink-h2 {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 3rem 0 1rem;
}

.ink-lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 38ch;
}

.ink-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.ink-body strong {
  font-weight: 600;
}

.ink-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ink-body a:hover {
  text-decoration-thickness: 2px;
}

.ink-body h2 {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.5rem 0 0.85rem;
}

.ink-body ul {
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
}

.ink-body ul li {
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.ink-body time {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.ink-rule {
  border: 0;
  border-top: 1px solid var(--ink-line);
  margin: 2.5rem 0;
}

.ink-footer {
  border-top: 1px solid var(--ink-line);
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.ink-footer__links {
  display: flex;
  gap: 1.25rem;
}

.ink-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ink-footer a:hover {
  color: var(--ink);
}

.ink-sig {
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0.5px;
}

/* === Nxc91 home (simple scrollable) === */

.page-ink--home {
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, 0.62);
  --ink-muted: rgba(10, 10, 10, 0.42);
  --ink-line: rgba(10, 10, 10, 0.14);
  --ink-strong: rgba(10, 10, 10, 0.28);
  background: #ffffff;
}

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-topbar__brand {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.home-topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  margin-bottom: 1px;
}

.home-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem) 4rem;
}

.home-hero {
  padding: clamp(3rem, 12vw, 7rem) 0 clamp(2rem, 6vw, 4rem);
}

.home-hello {
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  display: inline-block;
  clip-path: inset(-10% 100% -15% -3%);
  animation: hello-write 1.6s cubic-bezier(0.65, 0.05, 0.36, 1) 0.5s forwards;
  will-change: clip-path;
}

@keyframes hello-write {
  0%   { clip-path: inset(-10% 100% -15% -3%); }
  100% { clip-path: inset(-10% -3% -15% -3%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hello {
    clip-path: none;
    animation: none;
  }
}

.home-intro {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 28ch;
}

.home-intro-sig {
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  margin: 1.6rem 0 0;
  letter-spacing: 0.02em;
}

.home-section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  border-top: 1px solid var(--ink-line);
}

.home-section--contact {
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
}

.home-signature {
  display: inline-block;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-style: italic;
  font-size: clamp(3.5rem, 11vw, 6rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
  transform: rotate(-4deg);
  transform-origin: center;
  cursor: default;
  padding: 0.5rem 1rem;
}

.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink);
}

.home-email {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-thickness 0.15s ease;
}

.home-email:hover {
  text-decoration-thickness: 3px;
}

/* Project card — Launcher1 brand image card */
.project-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 0 rgba(10, 10, 10, 0);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.project-card__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  padding: 1rem;
}

.project-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 1.75rem);
  border-top: 1px solid var(--ink);
}

.project-card__desc {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.project-card__cta-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.36, 1);
}

/* Desktop: subtle lift + soft shadow on hover */
@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(10, 10, 10, 0.1),
                0 4px 12px rgba(10, 10, 10, 0.06);
  }

  .project-card:hover .project-card__cta-arrow {
    transform: translateX(8px);
  }
}

/* Mobile + desktop: gentle press-down on tap/click */
.project-card:active {
  transform: translateY(-1px) scale(0.985);
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.project-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Decorative signature above footer (not a link). Contact → /contact */
.home-footer {
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.home-help {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.home-help:hover {
  color: var(--ink);
  background: rgba(10, 10, 10, 0.05);
}

/* Scroll fade-in (intersection observer adds .is-visible) */
.js-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* On small screens, no transform jitter */
@media (prefers-reduced-motion: reduce) {
  .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Launcher1 intro === */
.launcher-intro {
  padding: 1rem 0 2rem;
  max-width: 36rem;
}

@media (min-width: 760px) {
  .launcher-intro {
    padding: 2rem 0 3rem;
  }
}

.launcher-status {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--ink-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin: 0;
}

.launcher-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .launcher-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.launcher-features h3 {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.launcher-features p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.launcher-features li {
  border-top: 1px solid var(--ink-strong);
  padding-top: 1rem;
}

.launcher-card {
  border: 1px solid var(--ink-strong);
  border-radius: 12px;
  padding: 1.5rem;
  background: #ffffff;
}

.launcher-card p {
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.launcher-card p:last-child {
  margin: 0;
}

.launcher-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

.launcher-card ul li {
  margin-bottom: 0.3rem;
}

/* === Hand-drawn shading phase: appears after lines drawn === */
.scene-shading > g {
  opacity: 0;
  animation: shading-fade-in 0.7s ease-out forwards;
}

.scene-shading .shading-shadows   { animation-delay: 2.6s; }
.scene-shading .shading-side-mono { animation-delay: 2.8s; }
.scene-shading .shading-side-mug  { animation-delay: 2.95s; }
.scene-shading .shading-side-cup  { animation-delay: 2.95s; }
.scene-shading .shading-shade     { animation-delay: 3.1s; }
.scene-shading .shading-grain     { animation-delay: 3.2s; }

@keyframes shading-fade-in {
  to { opacity: 1; }
}

/* === Status text fade transition === */
.status-text {
  transition: opacity 0.35s ease;
}
.status-text.is-fading {
  opacity: 0 !important;
}

/* Mug steam — start after mug drawn (~2.3s) */
.steam-wrap {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.steam-wrap--a { animation: desk-steam 3.4s ease-in-out 2.6s infinite; }
.steam-wrap--b { animation: desk-steam 3.4s ease-in-out 3.6s infinite; }
.steam-wrap--c { animation: desk-steam 3.4s ease-in-out 4.4s infinite; }
@keyframes desk-steam {
  0%   { opacity: 0;   transform: translateY(10px); }
  20%  { opacity: 0.7;  }
  70%  { opacity: 0.35; transform: translateY(-22px); }
  100% { opacity: 0;   transform: translateY(-40px); }
}


/* Scroll hint */
.desk-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8c0ad;
  z-index: 6;
  pointer-events: none;
  animation: desk-hint-in 0.6s ease-out 4.2s both;
}
@keyframes desk-hint-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 0.85; transform: translate(-50%, 0); }
}
.desk-scroll-hint.is-hidden {
  opacity: 0 !important;
  transition: opacity 0.35s ease;
}

.desk-scroll-track {
  width: 1.3rem;
  height: 2rem;
  border: 1px solid rgba(230, 223, 206, 0.35);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.desk-scroll-bead {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 3px;
  height: 7px;
  background: #e6dfce;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: desk-bead 1.9s ease-in-out infinite;
}

@keyframes desk-bead {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 10px); opacity: 0; }
  100% { opacity: 0; }
}

/* Foot strip — minimal */
.desk-foot {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, transparent 0%, #03050f 30%, #02040b 100%);
  border-top: 1px solid rgba(230, 223, 206, 0.08);
}

.desk-foot__inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
}

.desk-foot__line {
  margin: 0;
  font-size: 0.95rem;
  color: #e6dfce;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.desk-foot__name {
  font-weight: 600;
}

.desk-foot__dot {
  margin: 0 0.4rem;
  opacity: 0.4;
}

.desk-foot__tag {
  color: #c8c0ad;
  font-family: var(--font);
  font-weight: 400;
}

.desk-foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: center;
  font-size: 0.9rem;
}

.desk-foot__links a {
  color: #c8c0ad;
  text-decoration: none;
  transition: color 0.15s ease;
}

.desk-foot__links a:hover {
  color: #ffd9a8;
}

.desk-foot__copy {
  margin: 0;
  font-size: 0.8rem;
  color: #6b6356;
  letter-spacing: 0.06em;
}

/* Responsive behavior */
@media (max-aspect-ratio: 1/1) {
  .desk-svg {
    /* Phone / portrait: crop to center so the monitor fills the view */
    /* JS sets preserveAspectRatio="xMidYMid slice" on small screens */
  }
}

@media (max-width: 720px) {
  .desk-stage {
    min-height: 520px;
    height: 100vh;
  }
  .desk-brand {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  .desk-scroll-hint {
    bottom: 1rem;
    font-size: 0.65rem;
  }
  .desk-foot__inner {
    gap: 0.9rem;
  }
  .desk-foot__links {
    font-size: 0.85rem;
    gap: 0.6rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-appear,
  .scene-warm ellipse,
  .lamp-bulb,
  .lamp-bulb-glow,
  .screen-bg,
  .screen-bg-glow,
  .screen-menubar,
  .tile-body,
  .tile-grid,
  .window-stars circle,
  .window-stars path,
  .cup-pencils path[fill='#e6dfce'],
  .moon-glow,
  .mug-steam,
  .steam-wrap--a,
  .steam-wrap--b,
  .desk-scroll-bead,
  .desk-scroll-hint {
    animation: none !important;
  }
  .scene-warm ellipse,
  .lamp-bulb,
  .lamp-bulb-glow,
  .screen-bg,
  .screen-bg-glow,
  .screen-menubar,
  .tile-body,
  .tile-grid,
  .mug-steam,
  .desk-scroll-hint {
    opacity: 1 !important;
  }
}
