/* LLace.ai - one stylesheet for every page.
   Plain CSS, no build step, no web fonts (system fonts only, so no third-party requests). Static files for any host.
   Always dark: a night desk with hints of neon - violet for the brand, cyan for data, amber for the lamp. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #06060a;
  --bg-2: #0a0a11;
  --bg-elev: #101019;
  --bg-sunk: #040407;
  --panel: rgba(16, 15, 26, 0.72);
  --ink: #ecebf5;
  --ink-2: #b6b3c9;
  --ink-3: #8d8aa2;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --neon: #c61af1;            /* the brand's violet neon */
  --neon-text: #dda2ff;       /* readable violet for text and links */
  --neon-soft: rgba(198, 26, 241, 0.14);
  --glow: rgba(198, 26, 241, 0.45);
  --cyan: #2fe6ff;            /* data, the lake */
  --cyan-text: #8cf2ff;
  --cyan-soft: rgba(47, 230, 255, 0.10);
  --lamp: #f0c869;            /* the lamp on the desk */
  --lamp-soft: rgba(240, 200, 105, 0.12);
  --ember: #ff8a4c;
  --on-accent: #ffffff;

  /* kept for the older pages */
  --violet: var(--neon-text);
  --violet-strong: #b51ee6;
  --violet-soft: var(--neon-soft);

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 28px 56px -28px rgba(0, 0, 0, 0.85);

  --radius: 14px;
  --radius-lg: 22px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 3.6vw, 72px);
  --max: 1760px;          /* a wide screen is used, not left empty (the owner, 10-30: "way too much space"; tightened again 10-30 evening) */
  --measure: 38em;        /* the longest a line of reading is allowed to run */
  --space: clamp(56px, 4.6vw, 104px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 8% -6%, rgba(198, 26, 241, 0.10), transparent 70%),
    radial-gradient(50rem 36rem at 100% 12%, rgba(47, 230, 255, 0.05), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--neon-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: rgba(198, 26, 241, 0.45); color: #fff; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--violet-strong); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* neon words */
.neon { color: #f6e6ff; text-shadow: 0 0 1px #fff, 0 0 10px var(--neon), 0 0 26px rgba(198, 26, 241, 0.55); }
.neon-cyan { color: #e6fdff; text-shadow: 0 0 1px #fff, 0 0 10px var(--cyan), 0 0 24px rgba(47, 230, 255, 0.45); }
.lamp { color: var(--lamp); }

/* ---------- Brand mark: //ace.ai ---------- */
.brand {
  display: inline-flex; align-items: baseline; gap: 0.02em;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.04em; line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand-slashes {
  color: #f5e6ff; font-weight: 700; letter-spacing: -0.06em; margin-right: 0.08em;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--neon), 0 0 22px var(--neon), 0 0 36px rgba(198, 26, 241, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .brand-slashes { animation: neon-hum 7s ease-in-out infinite; }
}
@keyframes neon-hum {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  94% { opacity: 1; }
  96% { opacity: 0.7; }
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 10, 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; font: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.nav-toggle-bars { width: 16px; height: 10px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2);
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); background: var(--neon-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-cta {
  color: #fff; border: 1px solid rgba(198, 26, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(198, 26, 241, 0.15) inset, 0 0 18px -6px var(--glow);
}
.site-nav .nav-cta:hover { background: rgba(198, 26, 241, 0.18); }
.site-nav .nav-riddle {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; line-height: 1;
  width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--neon-text);
}

@media (max-width: 939px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 14px; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav a { display: block; padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
  .js .site-nav .nav-riddle { width: auto; height: auto; display: block; padding: 12px 14px; border: 0; }
  .site-nav { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #c42bf0, #9a14cf);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset, 0 12px 32px -12px var(--glow), 0 0 24px -8px var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 16px 36px -10px var(--glow), 0 0 32px -6px var(--glow); }
.btn-ghost { background: rgba(255, 255, 255, 0.02); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--neon-soft); border-color: rgba(198, 26, 241, 0.45); }
.btn-cyan { background: transparent; color: var(--cyan-text); border-color: rgba(47, 230, 255, 0.45); }
.btn-cyan:hover { background: var(--cyan-soft); box-shadow: 0 0 22px -8px rgba(47, 230, 255, 0.6); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.arrow { transition: transform 0.2s ease; }
a:hover .arrow { transform: translateX(3px); }

/* ---------- Shared section bits ---------- */
.section { padding: var(--space) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .tick { width: 18px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--neon)); box-shadow: 0 0 8px var(--cyan); }

.section-head { max-width: 980px; margin-bottom: clamp(32px, 3vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 4rem); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }

/* a neon horizon: a hairline that glows */
.horizon {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(47, 230, 255, 0.7) 20%, rgba(198, 26, 241, 0.9) 60%, transparent);
  box-shadow: 0 0 12px rgba(198, 26, 241, 0.5), 0 0 24px rgba(47, 230, 255, 0.25);
}

/* ---------- Hero ---------- */
/* The owner, 10-30: "finding beauty in a new foundation" - the ground drawn as strata behind the words, layers a well passes through,
   drifting slowly; the square grid that every launch page wears is gone. */
.hero { position: relative; padding: clamp(56px, 6vw, 120px) 0 clamp(64px, 6.5vw, 128px); overflow: hidden; isolation: isolate; }
.strata-art {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
.stratum { fill: none; stroke: rgba(221, 162, 255, 0.16); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.stratum.s-cyan { stroke: rgba(140, 242, 255, 0.14); }
.stratum.s-lamp { stroke: rgba(240, 200, 105, 0.11); stroke-dasharray: 2 7; }
.stratum:nth-child(5) { stroke: rgba(221, 162, 255, 0.32); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(198, 26, 241, 0.55)); }
@media (prefers-reduced-motion: no-preference) {
  .strata-drift { animation: strata-drift 48s ease-in-out infinite alternate; }
  .stratum:nth-child(5) { animation: seam-breathe 9s ease-in-out infinite; }
}
@keyframes strata-drift { from { transform: translateX(0); } to { transform: translateX(-260px); } }
@keyframes seam-breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 72px); align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 230, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(47, 230, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 230, 255, 0); }
}
.hero h1 {
  font-size: clamp(2.7rem, 1.2rem + 5.2vw, 7.2rem); line-height: 0.98; letter-spacing: -0.025em; margin-top: 22px;
  font-weight: 500; max-width: 12em;
}
.hero h1 em {
  font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  white-space: normal; overflow-wrap: anywhere;
}
/* the three short claims, set like an inscription under the title */
.triad {
  margin-top: clamp(18px, 1.6vw, 28px); display: flex; flex-wrap: wrap; gap: 0.35em 0;
  font-family: var(--font-mono); font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3);
}
.triad span { white-space: nowrap; }
.triad span + span::before {
  content: "\2726"; display: inline-block; margin: 0 1em 0 0.8em; font-size: 0.75em; vertical-align: 0.08em;
  color: var(--neon-text); text-shadow: 0 0 8px var(--neon); letter-spacing: 0;
}
.lede { margin-top: clamp(18px, 1.8vw, 30px); font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.45rem); color: var(--ink-2); max-width: var(--measure); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--ink-3); }

/* Glass box illustration */
.glassbox {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid rgba(198, 26, 241, 0.28);
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow), 0 0 60px -30px var(--glow);
  overflow: hidden;
}
.glassbox::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 40%);
}
.glassbox-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ink-3);
}
.glassbox-dots { display: inline-flex; gap: 6px; }
.glassbox-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.glassbox-dots i:first-child { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.glassbox ol { list-style: none; margin: 0; padding: 8px 0; }
.glassbox li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 18px; align-items: start; }
.glassbox li + li { border-top: 1px dashed var(--line); }
.glassbox .who { font-weight: 650; font-size: 0.95rem; }
.glassbox .what { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.glassbox .num-mono { font-family: var(--font-mono); font-size: 0.86rem; color: var(--cyan-text); }
.glassbox .flag {
  display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--lamp-soft); color: var(--lamp);
}
.glassbox .flag.hold { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.glassbox-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-3); }

/* Demigod seal: a colored initial */
.seal {
  --c: var(--neon-text);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1rem; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 0 14px -6px var(--c);
}
.seal-orpheus { --c: #f59e0b; }
.seal-gaia { --c: #10b981; }
.seal-mnemosyne { --c: #f472b6; }
.seal-athena { --c: #cbd5e1; }
.seal-nixx { --c: #94a3b8; }
.seal-cerberus { --c: #f87171; }
.seal-hermes { --c: #38bdf8; }

@media (prefers-reduced-motion: no-preference) {
  .glassbox li { animation: row-in 0.6s ease both; }
  .glassbox li:nth-child(1) { animation-delay: 0.25s; }
  .glassbox li:nth-child(2) { animation-delay: 0.65s; }
  .glassbox li:nth-child(3) { animation-delay: 1.05s; }
  .glassbox li:nth-child(4) { animation-delay: 1.45s; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Audience strip ---------- */
.audience { border-block: 1px solid var(--line); background: var(--bg-sunk); }
.audience .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 22px 0; }
.audience ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.audience li {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02); font-size: 0.95rem; font-weight: 500;
}

/* the strip moves like a ticker; a second, hidden copy closes the loop. Still for anyone who asks for less motion. */
.ticker { flex: 1 1 260px; min-width: 0; display: flex; gap: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker ul[aria-hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker ul { flex-wrap: nowrap; flex-shrink: 0; animation: ticker 36s linear infinite; }
  .ticker ul[aria-hidden] { display: flex; }
  .ticker:hover ul { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(calc(-100% - 10px)); } }
.audience li { white-space: nowrap; }
/* ---------- Sovereignty manifesto ---------- */
.manifesto { background: linear-gradient(180deg, var(--bg-sunk), var(--bg) 70%); }
.manifesto-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 940px) { .manifesto-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: start; } }
.manifesto h2 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); margin-top: 14px; }
.manifesto .statement p { margin-top: 18px; color: var(--ink-2); font-size: 1.15rem; }
.tenets { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: tenet; }
.tenets li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0;
  border-top: 1px solid var(--line); counter-increment: tenet;
}
.tenets li:last-child { border-bottom: 1px solid var(--line); }
.tenets li::before {
  content: counter(tenet, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan-text); padding-top: 4px;
  text-shadow: 0 0 10px rgba(47, 230, 255, 0.5);
}
.tenets h3 { font-size: 1.3rem; }
.tenets p { margin-top: 6px; color: var(--ink-2); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(198, 26, 241, 0.38); box-shadow: 0 0 36px -18px var(--glow); }
.card h3 { font-size: 1.35rem; margin-top: 18px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.card .tag {
  position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan-text); border: 1px solid rgba(47, 230, 255, 0.35); border-radius: 999px; padding: 2px 8px;
}
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--neon-text); background: var(--neon-soft); border: 1px solid rgba(198, 26, 241, 0.25);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.cyan { color: var(--cyan-text); background: var(--cyan-soft); border-color: rgba(47, 230, 255, 0.25); }
.card-note { margin-top: 28px; font-size: 0.95rem; color: var(--ink-3); max-width: 62em; }

/* ---------- The lake ---------- */
.lake { overflow: hidden; isolation: isolate; }
.lake::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 1100px; height: 520px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47, 230, 255, 0.10), transparent 70%);
}
.lake-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 940px) { .lake-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.lake h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); margin-top: 14px; }
.lake .statement p { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; }
.strata { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.strata li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(47, 230, 255, 0.06), rgba(198, 26, 241, 0.04));
}
.strata strong { display: block; font-size: 1.02rem; }
.strata span { color: var(--ink-2); font-size: 0.95rem; }
.strata .where { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-text); white-space: nowrap; }

/* ---------- Demigods ---------- */
.pantheon {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 680px) { .pantheon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pantheon { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pantheon > div { background: var(--bg-elev); padding: 26px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.pantheon h3 { font-size: 1.2rem; }
.pantheon p { margin-top: 6px; color: var(--ink-2); font-size: 0.98rem; }
.riddle-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--ink-2); text-decoration: none;
}
.riddle-link:hover { color: var(--neon-text); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-elev);
}
.plan.featured { border-color: rgba(198, 26, 241, 0.45); box-shadow: 0 0 48px -24px var(--glow); }
.plan h3 { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 650; letter-spacing: 0.01em; }
.plan .price { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; }
.plan .price small { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-3); }
.plan .now { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-text); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.97rem; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 1px; background: var(--neon); box-shadow: 0 0 6px var(--neon); }

/* ---------- Download ---------- */
.download-panel {
  border-radius: 28px; padding: clamp(28px, 5vw, 60px); position: relative; overflow: hidden; isolation: isolate;
  background: #0c0b14; border: 1px solid rgba(47, 230, 255, 0.22);
  box-shadow: 0 0 80px -40px rgba(47, 230, 255, 0.45);
}
.download-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 70% at 90% 0%, rgba(47, 230, 255, 0.16), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(198, 26, 241, 0.22), transparent 70%);
}
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 940px) { .download-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.download-panel h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); margin-top: 14px; }
.download-panel .statement p { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; }
.download-panel .statement p.file-line { margin-top: 16px; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: var(--ink-3); overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 18px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); counter-increment: step;
}
.steps li::before {
  content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--cyan-text); border: 1px solid rgba(47, 230, 255, 0.45);
  box-shadow: 0 0 12px -4px var(--cyan);
}
.steps strong { display: block; }
.steps span { color: var(--ink-2); font-size: 0.96rem; }

/* ---------- FlareTech teaser ---------- */
.ft-teaser { position: relative; overflow: hidden; isolation: isolate; background: #0b0706; color: #f2e8e0; padding: 96px 0; border-top: 1px solid var(--line); }
.ft-teaser::before {
  content: ""; position: absolute; left: 50%; bottom: -120px; width: 900px; height: 420px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 122, 61, 0.40), rgba(255, 90, 30, 0.10) 50%, transparent 72%);
  filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) { .ft-teaser::before { animation: ember-breathe 5s ease-in-out infinite; } }
@keyframes ember-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.ft-teaser .wrap { text-align: center; }
.ft-teaser .eyebrow { color: #c9a48f; }
.ft-teaser h2 {
  font-family: var(--font-sans); font-weight: 300; font-size: clamp(2.4rem, 1.5rem + 4vw, 4.2rem);
  letter-spacing: 0.32em; text-transform: uppercase; margin-top: 16px; padding-left: 0.32em;
}
.ft-teaser p.tease { margin: 18px auto 0; max-width: 30em; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: #d8c6ba; }
.btn-ember { margin-top: 30px; background: transparent; color: #ffd2b8; border-color: rgba(255, 138, 76, 0.55); }
.btn-ember:hover { background: rgba(255, 138, 76, 0.12); }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px; border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .contact-card { grid-template-columns: minmax(0, 1.3fr) auto; } }
.contact-card h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); margin-top: 12px; }
.contact-card p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (max-width: 859px) { .contact-actions { align-items: flex-start; } }
.mail { font-family: var(--font-mono); font-size: 0.95rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-3); font-size: 0.95rem; background: var(--bg-sunk); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand p { margin-top: 10px; font-family: var(--font-serif); font-style: italic; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--neon-text); text-decoration: underline; }
.footer-fine { margin-top: 24px; font-size: 0.85rem; }

/* ---------- Reveal on scroll (only when JS says it is safe) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   The Initiative (initiative.html)
   ============================================================ */
.initiative main { padding: 56px 0 96px; }
.initiative-head { max-width: 760px; }
.initiative-head h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); margin-top: 14px; }
.initiative-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 44px; align-items: start; }
@media (min-width: 900px) { .initiative-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; } }
.cipher-card { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--bg-elev); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.cipher-label { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.cipher {
  margin-top: 10px; font-family: var(--font-mono); font-size: clamp(1.15rem, 0.95rem + 1.1vw, 1.7rem); line-height: 1.45;
  color: var(--neon-text); overflow-wrap: anywhere; text-shadow: 0 0 18px rgba(198, 26, 241, 0.45);
}
.cipher-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.letter { margin-top: 28px; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.65; }
.letter p + p { margin-top: 16px; }
.letter .tool { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.letter .follow { font-size: 1.15rem; }
.letter .signature { font-style: italic; color: var(--ink-2); }
.foglamp { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #111; }
.foglamp img { width: 100%; aspect-ratio: 920 / 1024; object-fit: cover; filter: contrast(1.05); }
.cerberus-figure { margin: 72px 0 0; }
.cerberus-frame {
  container-type: inline-size; display: flex; justify-content: center; justify-content: safe center; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-sunk); padding: clamp(16px, 4vw, 40px);
}
/* The art is kept byte for byte as it was written: tabs and spaces together, drawn for a tab width of 4.
   Its first 16 columns are blank on every line, so the block is pulled left by 16ch (and the remaining
   101 columns are centred); the font is sized so those 101 columns always fit the frame. */
.cerberus {
  margin: 0 0 0 -16ch; width: max-content; font-family: var(--font-mono);
  font-size: 1.15vw; font-size: min(13px, calc(100cqi / 62.5)); line-height: 1.12;
  -moz-tab-size: 4; tab-size: 4; white-space: pre; overflow: visible;
  color: #e9e3f5; text-shadow: 0 0 8px rgba(198, 26, 241, 0.35);
}
.cerberus-figure figcaption { margin-top: 14px; text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--ink-3); }

/* ============================================================
   FlareTech (flaretech.html) - its own ember night
   ============================================================ */
.ft-page {
  --ft-bg: #090706;
  --ft-ink: #f1e7df;
  --ft-muted: #a8978a;
  --ft-ember: #ff8a4c;
  --ft-sil: #000000;
  --ft-ground: #050403;
  --ft-line: rgba(255, 200, 170, 0.12);
  --ft-star: rgba(241, 231, 223, 0.7);
  --violet: #ff8a4c;
  background: var(--ft-bg);
  color: var(--ft-ink);
}
.ft-page .skip-link { background: var(--ft-ember); }
.ft-page .eyebrow { color: var(--ft-muted); }
.ft-header { border-bottom: 1px solid var(--ft-line); }
.ft-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.ft-mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.32em; text-transform: uppercase; }
.ft-mark svg { width: 26px; height: 26px; color: var(--ft-ember); }
.ft-back, .ft-footer a { color: var(--ft-muted); text-decoration: none; font-size: 0.95rem; }
.ft-back:hover, .ft-footer a:hover { color: var(--ft-ember); text-decoration: underline; }
.ft-hero { padding-top: clamp(48px, 8vw, 96px); overflow: hidden; }
.ft-hero h1 { font-family: var(--font-sans); font-weight: 300; font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.4rem); line-height: 1.08; letter-spacing: -0.015em; margin-top: 16px; max-width: 15em; }
.ft-scene { height: clamp(220px, 36vw, 440px); margin-top: clamp(16px, 4vw, 40px); }
.ft-scene svg { width: 100%; height: 100%; }
.ft-stars { fill: var(--ft-star); }
.ft-glow { opacity: 0.9; }
.ft-far { fill: none; stroke: var(--ft-sil); stroke-width: 3; opacity: 0.35; }
.ft-sil { fill: var(--ft-sil); stroke: var(--ft-sil); }
.ft-ground { fill: var(--ft-ground); }
.ft-horizon { stroke: var(--ft-ember); stroke-opacity: 0.45; stroke-width: 1; }
.ft-leds { fill: #ffb347; }
.ft-leds .led-violet { fill: #d68cff; }
.ft-beam { transform-origin: 480px 257px; }
.ft-flame { transform-origin: 660px 172px; }
@media (prefers-reduced-motion: no-preference) {
  .ft-beam { animation: ft-rock 5.2s ease-in-out infinite alternate; }
  .ft-flame { animation: ft-flicker 1.1s ease-in-out infinite alternate; }
  .ft-glow { animation: ft-breathe 3.6s ease-in-out infinite alternate; }
  .ft-leds rect { animation: ft-blink 2.6s steps(2, jump-none) infinite; }
  .ft-leds rect:nth-child(2) { animation-delay: 0.4s; }
  .ft-leds rect:nth-child(3) { animation-delay: 1.1s; }
  .ft-leds rect:nth-child(4) { animation-duration: 4.2s; }
  .ft-leds rect:nth-child(5) { animation-delay: 0.7s; }
  .ft-leds rect:nth-child(6) { animation-delay: 1.9s; }
  .ft-leds rect:nth-child(7) { animation-delay: 0.2s; animation-duration: 3.1s; }
  .ft-leds rect:nth-child(8) { animation-delay: 1.4s; }
}
@keyframes ft-rock { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes ft-flicker {
  0% { transform: scale(1, 1) skewX(0deg); }
  30% { transform: scale(0.96, 1.06) skewX(-2deg); }
  60% { transform: scale(1.03, 0.94) skewX(1.5deg); }
  100% { transform: scale(0.98, 1.08) skewX(-1deg); }
}
@keyframes ft-breathe { from { opacity: 0.7; } to { opacity: 1; } }
@keyframes ft-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.ft-body { padding: clamp(40px, 6vw, 72px) 0 96px; border-top: 1px solid var(--ft-line); }
.ft-lines { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.ft-lines li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 22px 0;
  border-bottom: 1px solid var(--ft-line); font-weight: 300; font-size: clamp(1.35rem, 1rem + 1.5vw, 2.1rem); line-height: 1.25;
}
.ft-num { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400; color: var(--ft-ember); }
.ft-quiet { margin-top: 56px; font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; }
.ft-quiet + .ft-quiet { margin-top: 6px; }
.ft-dim { color: var(--ft-muted); }
.ft-write { margin-top: 44px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--ft-muted); overflow-wrap: anywhere; }
.ft-write a { color: var(--ft-ember); }
.ft-footer { border-top: 1px solid var(--ft-line); padding: 28px 0 40px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* M1064: the invite-only download - a code, one button, a quiet progress line */
.invite-form { margin: 18px 0 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.invite-form label { font-size: 0.85rem; color: var(--neon-text); letter-spacing: 0.04em; }
.invite-row { display: flex; flex-wrap: wrap; gap: 10px; }
.invite-row input {
  flex: 1 1 260px; min-width: 0; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-sunk); color: var(--ink); border: 1px solid var(--line-strong);
  font: inherit; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase;
}
.invite-row input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft); }
.invite-form progress { width: 100%; height: 6px; accent-color: var(--cyan); }
.invite-status { min-height: 1.4em; margin: 0; font-size: 0.9rem; color: var(--cyan-text); overflow-wrap: anywhere; }
.invite-form button[disabled] { opacity: 0.6; cursor: progress; }

/* ============================================================
   The artistic pass (the owner, 10-30: "there is way too much space ... finding beauty in a new foundation ... make it more
   artistic and less common"). Chapters, not sections; a line of words, not pills; open plates, not boxes; grain, not glass.
   ============================================================ */
/* a fine grain over the night, like paper under a lamp (a data: image - the page's policy allows images from data:) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* chapter numerals - hollow italic Roman numerals over each chapter's title, as a book would set them */
.folio {
  display: block; margin-bottom: 4px; line-height: 0.82;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0.02em;
  font-size: clamp(3rem, 1.6rem + 4.4vw, 7.6rem);
  color: transparent; -webkit-text-stroke: 1px rgba(221, 162, 255, 0.42);
  text-shadow: 0 0 34px rgba(198, 26, 241, 0.18);
}
@supports not (-webkit-text-stroke: 1px black) { .folio { color: rgba(221, 162, 255, 0.22); } }

/* chapter titles grow with a wide screen instead of leaving it empty */
.manifesto h2 { font-size: clamp(2.3rem, 1.1rem + 4vw, 5.6rem); line-height: 1.02; }
.lake h2 { font-size: clamp(2.1rem, 1.1rem + 3.4vw, 4.8rem); line-height: 1.04; }
.download-panel h2 { font-size: clamp(2rem, 1.1rem + 3vw, 4.4rem); }
.contact-card h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 4rem); }
.section-head p, .manifesto .statement p, .lake .statement p { max-width: var(--measure); }
.manifesto-grid, .lake-grid { gap: clamp(36px, 5vw, 112px); }

/* who it is for: one flowing line of serif words, set with stars - not a row of pills */
.audience { background: transparent; }
.audience .wrap { padding: clamp(16px, 1.8vw, 28px) 0; gap: 10px clamp(20px, 2.4vw, 44px); }
.audience ul { gap: 0; }
.audience li {
  padding: 0; border: 0; border-radius: 0; background: none;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 0.85rem + 1vw, 1.9rem); color: var(--ink-2);
}
.audience li::after {
  content: "\2726"; display: inline-block; margin: 0 0.85em; font-style: normal; font-size: 0.55em; vertical-align: 0.2em;
  color: var(--neon-text); text-shadow: 0 0 8px var(--neon);
}

/* what Haven does: open plates under a fine rule that lights from the left - no boxes */
.cards { gap: clamp(30px, 3vw, 56px) clamp(24px, 3.2vw, 64px); }
.card {
  padding: clamp(24px, 2vw, 34px) 2px 6px; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 70%); box-shadow: none;
}
.card::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 34%;
  background: linear-gradient(90deg, var(--neon), transparent); box-shadow: 0 0 10px var(--neon); transition: width 0.5s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: none; }
.card:hover::before { width: 100%; }
.card h3 { font-size: clamp(1.3rem, 1.05rem + 0.6vw, 1.7rem); font-weight: 500; }
.card .tag { top: clamp(24px, 2vw, 34px); right: 0; }
.icon { border-radius: 50%; background: transparent; }

/* the strata list in the lake reads as layers of ground: each band a little deeper in tone */
.strata { gap: 0; }
.strata li { border-radius: 0; border-width: 0 0 1px; border-color: var(--line); padding: clamp(16px, 1.4vw, 24px) 4px; background: none; }
.strata li:first-child { border-top: 1px solid var(--line); }
.strata li:nth-child(1) { background: linear-gradient(90deg, rgba(47, 230, 255, 0.07), transparent 80%); }
.strata li:nth-child(2) { background: linear-gradient(90deg, rgba(47, 230, 255, 0.05), rgba(198, 26, 241, 0.03) 60%, transparent 90%); }
.strata li:nth-child(3) { background: linear-gradient(90deg, rgba(198, 26, 241, 0.06), transparent 85%); }
.strata li:nth-child(4) { background: linear-gradient(90deg, rgba(240, 200, 105, 0.05), transparent 85%); }
.strata strong { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.35rem); }

/* the footer carries the line */
.footer-brand p { font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.3rem); color: var(--ink-2); letter-spacing: 0.01em; }
