:root {
  --ground: #0b0d13;
  --surface: #12141c;
  --surface-2: #171a24;
  --hairline: rgba(232, 227, 216, 0.11);
  --hairline-strong: rgba(232, 227, 216, 0.2);
  --text: #ece7dd;
  --text-muted: #9296a6;
  --text-faint: #63667a;
  --gold: #c9a15e;
  --gold-soft: #a5854e;
  --gold-dim: #7c6640;
  --violet: #6b6fa0;

  --font-display: "Bodoni MT", Didot, "Big Caslon", Georgia, "Times New Roman", serif;
  --font-body: Optima, "Segoe UI", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-mono: "Cascadia Code", Consolas, "SF Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 64px);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 19, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
}
.brand-mark canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-divider {
  width: 1px;
  height: 14px;
  background: var(--hairline-strong);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 1px rgba(201, 161, 94, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- section rhythm ---------- */

section {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(76px, 11vw, 148px);
}
section:first-of-type { border-top: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 22px;
}
/* Greek words carry diacritics the mono font renders poorly (both
   uppercased and lowercase) — render them in the serif display face
   instead, which happens to also read as a nice echo of the spirit/process
   duality: mythic word in serif, technical gloss in mono. */
.eyebrow .greek {
  text-transform: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.lede {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  background: rgba(201, 161, 94, 0.06);
}
.btn-primary:hover {
  background: rgba(201, 161, 94, 0.14);
  border-color: var(--gold);
}
.btn-ghost {
  color: var(--text-muted);
  border: 1px solid transparent;
  padding-inline: 4px;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 74vh;
}
.hero-headline {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 15ch;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}
.hero-lede {
  margin-top: 26px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual canvas {
  width: min(480px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-visual { order: -1; opacity: 0.85; }
  .hero-visual canvas { width: min(340px, 78vw); }
}

/* ---------- philosophy ---------- */

.philosophy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
}
.philosophy-grid h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  max-width: 11ch;
}
.philosophy-body p + p { margin-top: 20px; }
.philosophy-body .lede { max-width: 68ch; }

.duality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.duality-col:first-child {
  border-right: 1px solid var(--hairline);
  padding-right: 40px;
}
.duality-head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.duality-row {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-block: 10px;
}
.duality-row + .duality-row {
  border-top: 1px solid var(--hairline);
}

@media (max-width: 820px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .duality { grid-template-columns: 1fr; gap: 0; }
  .duality-col:first-child {
    border-right: none;
    padding-right: 0;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--hairline);
  }
}

/* ---------- ecosystem ---------- */

.ecosystem-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.ecosystem-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  max-width: 16ch;
}
.ecosystem-head .lede { margin: 0; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.module {
  background: var(--ground);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease;
}
.module:hover { background: var(--surface); }
.module-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.module-tag.is-live { color: var(--gold-soft); }
.module h3 {
  font-size: 1.15rem;
  color: var(--text);
}
.module p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .module-grid { grid-template-columns: 1fr; }
}

/* ---------- manifestation (flagship) ---------- */

.manifestation {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 48px;
  align-items: center;
  border-left: 2px solid var(--gold-dim);
  padding-left: 44px;
}
.manifestation-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--text);
  letter-spacing: 0.01em;
}
.manifestation-body .lede { margin-bottom: 28px; }

@media (max-width: 820px) {
  .manifestation { grid-template-columns: 1fr; padding-left: 22px; gap: 20px; }
}

/* ---------- correspondence ---------- */

.correspondence {
  text-align: left;
}
.correspondence h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  max-width: 14ch;
  margin-bottom: 22px;
}
.mail-link {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mail-link:hover { border-color: var(--gold); color: #e6c988; }

/* ---------- not found ---------- */

.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 8.5rem);
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.notfound-sub {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 13ch;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding-block: 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
