:root {
  --volcanic-black: #090b0b;
  --ash-black: #101414;
  --ash-gray: #767c7a;
  --bone-white: #f2eee7;
  --bone-soft: #cbc4bb;
  --electric-green: #98e55c;
  --green-glow: rgba(152, 229, 92, 0.28);
  --lightning-blue: #92c8ff;
  --vascular-red: #a74848;
  --panel: rgba(14, 18, 18, 0.74);
  --panel-strong: rgba(10, 13, 13, 0.9);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --nav-height: 78px;
  --hero-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--bone-white);
  background:
    radial-gradient(circle at top, rgba(83, 91, 89, 0.18), transparent 30%),
    linear-gradient(180deg, #0a0d0d 0%, #060707 48%, #0c1111 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    url("/images/fractal-watermark-web.svg") center top / min(92vw, 1200px) auto no-repeat,
    url("/images/fractal-watermark-delta.svg") left -120px top 540px / 560px auto no-repeat,
    url("/images/fractal-watermark-branch.svg") right -100px top 140px / 520px auto no-repeat,
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(146, 200, 255, 0.04) 30%,
      transparent 58%
    ),
    radial-gradient(
      circle at 20% 18%,
      rgba(152, 229, 92, 0.08),
      transparent 24%
    );
}

body::after {
  z-index: -1;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0),
    linear-gradient(135deg, transparent 40%, rgba(152, 229, 92, 0.08) 50%, transparent 60%),
    url("/images/fractal-watermark-branch.svg");
  background-size: 22px 22px, 420px 420px, 760px auto;
  background-position: center center, center center, center bottom;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--bone-white);
  color: var(--volcanic-black);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(7, 9, 9, 0.8), rgba(7, 9, 9, 0.62)),
    url("/images/fractal-watermark-web.svg") center center / 420px auto no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--electric-green) 0 38%, transparent 40%),
    radial-gradient(circle at center, rgba(152, 229, 92, 0.35), transparent 70%);
  box-shadow: 0 0 22px var(--green-glow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--bone-soft);
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    url("/images/fractal-watermark-branch.svg") center center / 90px auto no-repeat;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--electric-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone-white);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(var(--hero-shift)) scale(1.06);
  transform-origin: center center;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.64) 65%, rgba(6, 7, 7, 0.96) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.72));
}

.hero-inner,
.section,
.footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  padding: 8rem 0 5rem;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--electric-green);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.02;
}

h1 {
  font-size: clamp(4.6rem, 13vw, 8.6rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 600;
}

.hero-subhead {
  margin: 1.1rem 0 0;
  max-width: 14ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--bone-white);
}

.hero-copy,
.hero-note {
  max-width: 46rem;
}

.hero-copy {
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
  color: rgba(242, 238, 231, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(154, 231, 93, 0.96), rgba(120, 196, 70, 0.94)),
    url("/images/fractal-watermark-branch.svg") center center / 120px auto no-repeat;
  color: #071006;
  box-shadow: 0 10px 26px var(--green-glow);
}

.button-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    url("/images/fractal-watermark-web.svg") center center / 140px auto no-repeat;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--bone-white);
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--bone-soft);
}

.section {
  position: relative;
  padding: clamp(4.8rem, 9vw, 7rem) 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 1.1rem 0 auto;
  height: 240px;
  pointer-events: none;
  opacity: 0.12;
  background: url("/images/fractal-watermark-web.svg") center top / 560px auto no-repeat;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 90%);
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
  max-width: 52rem;
}

.section-heading h2 {
  text-wrap: balance;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.6rem;
}

.prose,
.pull-quote,
.manifesto-block,
.feature-card,
.poem-block,
.atlas-copy,
.archive-intro,
.footer,
.memory-list article,
.domain-card,
.book-card,
.archive-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

.prose,
.pull-quote,
.memory-list article,
.feature-card,
.atlas-copy,
.archive-intro,
.domain-card,
.book-card,
.archive-card {
  border-radius: 28px;
  padding: 1.45rem;
  position: relative;
  overflow: hidden;
}

.lead {
  margin-top: 0;
  color: var(--lightning-blue);
  font-size: 1.15rem;
}

.prose p:last-child,
.pull-quote p:last-child,
.feature-card p:last-child,
.archive-intro:last-child {
  margin-bottom: 0;
}

.pull-quote {
  align-self: start;
  border-color: rgba(146, 200, 255, 0.15);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--bone-white);
}

.manifesto-block {
  border-radius: 32px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background:
    url("/images/fractal-watermark-web.svg") right -40px top -30px / 360px auto no-repeat,
    radial-gradient(circle at top right, rgba(167, 72, 72, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(33, 14, 14, 0.92), rgba(14, 15, 15, 0.94));
  border-color: rgba(167, 72, 72, 0.24);
}

.manifesto-block .eyebrow {
  color: #ffb6b6;
}

.memory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.memory-list article h3,
.feature-card h3,
.domain-card h3,
.book-card h3 {
  margin-bottom: 0.5rem;
}

.card-grid.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    url("/images/fractal-watermark-delta.svg") right -10px bottom -10px / 180px auto no-repeat;
}

.feature-card::after,
.domain-card::after,
.book-card::after,
.archive-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(152, 229, 92, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.feature-card:hover::after,
.domain-card:hover::after,
.book-card:hover::after,
.archive-card:hover::after {
  opacity: 1;
}

.card-label {
  margin: 0 0 0.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--electric-green);
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1.3rem 0 0;
  list-style: none;
}

.token-list li,
.token-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(152, 229, 92, 0.16);
  background: rgba(152, 229, 92, 0.07);
  color: var(--bone-white);
  font-size: 0.92rem;
}

.token-list-wide {
  margin-top: 1.2rem;
}

.section-note {
  margin: 1.4rem 0 0;
  max-width: 60rem;
  color: var(--bone-soft);
}

.image-feature {
  display: grid;
  gap: 2rem;
}

.feature-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(10, 13, 13, 0.96), rgba(10, 13, 13, 0.92)),
    url("/images/fractal-watermark-web.svg") center top / 520px auto no-repeat;
  box-shadow: var(--shadow);
}

.feature-figure img {
  width: 100%;
  max-height: 46rem;
  object-fit: cover;
}

.feature-figure figcaption {
  padding: 1.2rem 1.3rem 1.45rem;
  color: var(--bone-soft);
}

.poem-block {
  border-radius: 30px;
  padding: 1.8rem clamp(1.4rem, 3vw, 2.4rem);
  background:
    url("/images/fractal-watermark-branch.svg") right -80px center / 280px auto no-repeat,
    radial-gradient(circle at top left, rgba(152, 229, 92, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 13, 13, 0.94), rgba(11, 13, 15, 0.84));
  color: rgba(242, 238, 231, 0.92);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.28;
}

.poem-block p {
  margin: 0;
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.4rem;
  align-items: start;
}

.atlas-image {
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(10, 13, 13, 0.92), rgba(10, 13, 13, 0.92)),
    url("/images/fractal-watermark-delta.svg") center center / 340px auto no-repeat;
}

.atlas-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.domain-grid,
.book-series,
.archive-links {
  display: grid;
  gap: 1rem;
}

.domain-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-series {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.domain-card,
.book-card,
.archive-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    url("/images/fractal-watermark-web.svg") right -28px bottom -18px / 170px auto no-repeat;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.domain-card:nth-child(3n + 2),
.book-card:nth-child(2n),
.archive-card:nth-child(3n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    url("/images/fractal-watermark-delta.svg") right -32px bottom -14px / 170px auto no-repeat;
}

.domain-card:nth-child(3n),
.archive-card:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    url("/images/fractal-watermark-branch.svg") right -42px bottom -12px / 150px auto no-repeat;
}

.domain-card:hover,
.domain-card:focus-visible,
.book-card:hover,
.book-card:focus-visible,
.archive-card:hover,
.archive-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(152, 229, 92, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
}

.domain-card h3,
.book-card h3,
.archive-card h3 {
  font-size: 1.45rem;
}

.archive-card {
  display: block;
}

.archive-card p {
  margin-bottom: 0;
  color: var(--bone-soft);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 2rem;
  padding: 1.6rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    url("/images/fractal-watermark-web.svg") right -12px center / 260px auto no-repeat;
}

.footer-brand {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.footer-note,
.footer-meta {
  color: var(--bone-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .two-column,
  .atlas-layout,
  .card-grid.two-up,
  .footer {
    grid-template-columns: 1fr;
  }

  .memory-list,
  .domain-grid,
  .book-series,
  .archive-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 70px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-inner {
    padding-top: 5rem;
  }

  .memory-list,
  .domain-grid,
  .book-series,
  .archive-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
