/**
 * File:          assets/css/base.css
 * Version:       0.4.0
 * Last Modified: 2026-08-11
 * Changes:       Rebuilt for the Deep Field system — dark canvas, glass panels,
 *                Unbounded display / Space Grotesk text.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }

a { color: var(--cyan); text-underline-offset: 0.22em; }
a:hover { color: var(--violet-text); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--cyan); color: var(--void); }

/* --- Layout --------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}

/* Each act fills the viewport, which is what gives the shader behind it room
   to change scene as you pass through. min-height rather than height so long
   content (the demos) can still grow past it. */
.act {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(var(--s7), 12vh, 120px);
}
.act--auto { min-height: 0; }

/* --- Type ----------------------------------------------------------------- */

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: var(--lh-head);
  color: #fff;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.25;
  color: #fff;
}
.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  color: var(--text-2);
  font-weight: 300;
  text-wrap: pretty;
}

/* The section eyebrow. Cyan is legible as text on this canvas (12.9:1), which
   is why it carries the label here where amber could not on the light build. */
.eyebrow {
  font-size: var(--t-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s3);
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* A violet index numeral. Violet is 4.2:1 — under AAA for text — so it is
   permitted ONLY at display size, where it reads as a rule rather than copy,
   and never for anything a reader must actually parse. */
.numeral {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--violet-text);
  font-size: 1.625rem;
  line-height: 1;
}

/* --- Panels --------------------------------------------------------------- */
/* The scrim that makes text readable over a moving shader. Not decoration:
   without the opacity floor, a bright nebula frame drops body copy below AAA. */
.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(var(--s4), 4vw, 64px) clamp(var(--s3), 3.5vw, 56px);
}
@supports (backdrop-filter: blur(4px)) {
  .panel { backdrop-filter: blur(18px); }
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 17px 34px;
  border-radius: var(--r-sm);
  /* A bare .btn must be legible on its own. The demo components emit .btn with
     no variant, and leaving the base transparent rendered them as invisible
     text on a white user-agent button face. */
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule-strong);
  transition: background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--cyan);
  color: var(--void);
  box-shadow: 0 0 32px var(--glow-cyan);
}
.btn--primary:hover {
  background: #7FF3FF;
  color: var(--void);
  transform: translateY(-1px);
  box-shadow: 0 0 40px var(--glow-cyan);
}
.btn:hover { border-color: var(--cyan); color: #fff; background: rgba(0, 229, 255, 0.08); }

.btn--ghost {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.5);
  font-weight: 500;
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

/* --- Accessibility -------------------------------------------------------- */

.skip {
  position: absolute;
  left: var(--s2);
  top: -4rem;
  z-index: 100;
  background: var(--cyan);
  color: var(--void);
  padding: var(--s1) var(--s2);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  border-radius: var(--r-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip:focus { top: var(--s2); }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- Reveal --------------------------------------------------------------- */
/* Hidden state scoped to .js so a no-JS visitor sees everything. */
.js .reveal { opacity: 0; transform: translateY(var(--s2)); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-reveal) var(--ease) calc(var(--i, 0) * 60ms),
              transform var(--dur-reveal) var(--ease) calc(var(--i, 0) * 60ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* === END OF FILE (FILENAME: assets/css/base.css) === */
