/* =====================================================================
   SUNCHI LANDING — shared foundation
   ===================================================================== */

@font-face {
  font-family: "Nudista";
  src: url("fonts/nudista-light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nudista";
  src: url("fonts/nudista-regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nudista";
  src: url("fonts/nudista-semibold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* SUNCHI palette */
  --sunchi-violet:        #6B33FF;
  --sunchi-violet-deep:   #5A26E8;
  --sunchi-violet-soft:   #7E4DFF;
  --sunchi-stone:         #ECECEC;
  --sunchi-lilac:         #ECEAFF;
  --sunchi-black:         #0B0B12;
  --sunchi-white:         #FFFFFF;

  --sunchi-white-90: rgba(255,255,255,0.90);
  --sunchi-white-70: rgba(255,255,255,0.70);
  --sunchi-white-40: rgba(255,255,255,0.40);
  --sunchi-white-20: rgba(255,255,255,0.20);
  --sunchi-white-12: rgba(255,255,255,0.12);
  --sunchi-white-06: rgba(255,255,255,0.06);

  --sunchi-ink:      #0B0B12;
  --sunchi-ink-70:   rgba(11,11,18,0.70);
  --sunchi-ink-40:   rgba(11,11,18,0.40);
  --sunchi-ink-20:   rgba(11,11,18,0.20);
  --sunchi-ink-12:   rgba(11,11,18,0.12);
  --sunchi-ink-06:   rgba(11,11,18,0.06);

  /* Type families */
  --font-sans:    "Nudista", "Nunito", ui-rounded, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Instrument Serif", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --ease-out-quiet: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 360ms;
  --dur-slow: 720ms;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--sunchi-violet); color: var(--sunchi-white); }

/* utility — visually hidden */
.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; }

/* Live dot — used on hub + status bars */
.live-dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: currentColor;
  display: inline-block; vertical-align: middle;
  animation: livePulse 2.4s var(--ease-out-quiet) infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Reveal — JS-driven. Elements stay visible by default; JS hides them only if
   they're below the viewport on load, then fades them in on scroll.
   This keeps the page legible even if JS hasn't run yet. */
[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out-quiet), transform var(--dur-slow) var(--ease-out-quiet);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal].is-pending { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
}
