@font-face {
  font-family: "Obitel Serif";
  src: local("Iowan Old Style"), local("Baskerville");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #050609;
  --ink-soft: #0c0e14;
  --paper: #f3f0e8;
  --muted: #9ca3b3;
  --line: rgba(255, 255, 255, .13);
  --blue: #2457ff;
  --blue-soft: #7798ff;
  --red: #ef233c;
  --red-soft: #ff7182;
  --max: 1180px;
  --serif: "Obitel Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(36,87,255,.15), transparent 28rem),
    radial-gradient(circle at 10% 36%, rgba(239,35,60,.11), transparent 24rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { color: white; background: var(--blue); }

.skip-link {
  position: fixed; z-index: 100; top: .75rem; left: .75rem;
  padding: .65rem 1rem; background: var(--paper); color: var(--ink);
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; z-index: 50; top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 9, .78); backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: .79rem; font-weight: 750; }
.brand-mark { position: relative; width: 30px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 6px; border: 1px solid; transform: rotate(45deg); }
.brand-mark::before { color: var(--blue); }
.brand-mark::after { color: var(--red); transform: rotate(-45deg); }
.nav { display: flex; align-items: center; gap: 28px; font-size: .88rem; }
.nav a { color: #cdd1dc; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: white; }
.nav-cta { padding: .58rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.menu-button { display: none; border: 0; color: white; background: none; padding: 8px; }

.hero { position: relative; min-height: 88svh; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .82; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,6,9,.94) 0%, rgba(5,6,9,.67) 52%, rgba(5,6,9,.3) 100%); }
.hero-content { position: relative; z-index: 2; padding: 108px 0 96px; max-width: 970px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 24px; color: #d7d9e1; font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: linear-gradient(90deg, var(--red), var(--blue)); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 450; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 950px; font-size: clamp(3.6rem, 9vw, 8.5rem); }
h2 { font-size: clamp(2.45rem, 5.5vw, 5.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.hero h1 em { color: var(--red-soft); font-weight: inherit; }
.hero-copy { max-width: 690px; margin: 30px 0 36px; color: #c5c8d2; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: .82rem 1.25rem; border: 1px solid var(--line); border-radius: 3px; color: white; background: transparent; text-decoration: none; font-size: .88rem; font-weight: 720; letter-spacing: .04em; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.button-primary { border-color: var(--red); background: var(--red); box-shadow: 0 14px 46px rgba(239,35,60,.2); }
.button-primary:hover { background: #ff344b; }
.button-blue { border-color: var(--blue); background: var(--blue); box-shadow: 0 14px 46px rgba(36,87,255,.22); }
.button-small { min-height: 42px; padding: .6rem .85rem; }
.button[aria-disabled="true"] { color: #777e8d; cursor: not-allowed; transform: none; }

.hero-index { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 36px; display: grid; grid-template-columns: repeat(3, auto); gap: 14px; color: #a7adbb; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-index span { padding-top: 9px; border-top: 1px solid var(--line); }
.hero-index span:nth-child(2) { border-color: var(--blue); }
.hero-index span:nth-child(3) { border-color: var(--red); }

.section { position: relative; padding: 120px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.section-intro { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 9vw, 120px); align-items: start; }
.lede { max-width: 720px; margin: 0; color: #c3c7d1; font-size: 1.18rem; }
.text-link { color: white; font-weight: 700; text-decoration-color: var(--red); }
.micro { color: var(--muted); font-size: .82rem; }

.manifesto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 72px; background: var(--line); border: 1px solid var(--line); }
.manifesto-card { min-height: 360px; padding: 32px; background: var(--ink); }
.manifesto-card:nth-child(2) { background: linear-gradient(160deg, rgba(36,87,255,.28), var(--ink) 64%); }
.manifesto-card:nth-child(3) { background: linear-gradient(160deg, rgba(239,35,60,.25), var(--ink) 64%); }
.card-number { display: block; margin-bottom: 100px; color: var(--muted); font-size: .72rem; letter-spacing: .16em; }
.manifesto-card p { margin: 18px 0 0; color: #aeb3c0; font-size: .95rem; }

.course-section::before { content: "12"; position: absolute; right: -2vw; top: 20px; color: rgba(255,255,255,.025); font-family: var(--serif); font-size: min(48vw, 620px); line-height: 1; }
.course-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 9vw, 130px); align-items: start; }
.course-copy h2 { max-width: 700px; }
.course-copy .lede { margin-top: 28px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; margin: 42px 0 0; padding: 0; list-style: none; }
.outcomes li { position: relative; padding-left: 21px; color: #d6d9e0; }
.outcomes li::before { content: ""; position: absolute; top: .66em; left: 0; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }
.outcomes li:nth-child(even)::before { background: var(--red); }
.offer { position: sticky; top: 112px; padding: 34px; border: 1px solid var(--line); background: rgba(12,14,20,.88); box-shadow: 0 26px 100px rgba(0,0,0,.35); backdrop-filter: blur(16px); }
.offer-label { margin: 0 0 8px; color: var(--blue-soft); font-size: .72rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.price { margin: 8px 0 2px; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; }
.offer-note { margin: 0 0 26px; color: var(--muted); font-size: .85rem; }
.form-field { display: grid; gap: 7px; margin-bottom: 14px; }
.form-field label { color: #b9bdc8; font-size: .78rem; }
.form-field input { width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: .87rem .95rem; color: white; background: #080a0f; outline: none; }
.form-field input:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(36,87,255,.16); }
.offer .button { width: 100%; margin-top: 8px; }
.form-note { margin: 12px 0 0; color: #777e8d; font-size: .72rem; line-height: 1.45; }
.form-status { min-height: 1.5em; margin: 10px 0 0; color: var(--blue-soft); font-size: .78rem; }

.access-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 72px; background: var(--line); border: 1px solid var(--line); }
.access-item { padding: 30px; background: var(--ink-soft); }
.access-item span { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--red-soft); }
.access-item:last-child span { color: var(--blue-soft); }
.access-item p { margin: 12px 0 0; color: var(--muted); font-size: .94rem; }

.media-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 8vw, 110px); align-items: end; }
.media-board { display: grid; gap: 12px; }
.media-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; min-height: 98px; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-decoration: none; }
.media-card:hover { border-color: rgba(255,255,255,.35); }
.play { display: grid; width: 52px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--red); }
.media-card:nth-child(even) .play { background: var(--blue); }
.media-card strong { display: block; }
.media-card small { color: var(--muted); }
.media-card .arrow { color: var(--muted); font-size: 1.2rem; }

.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.article-card { min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border: 1px solid var(--line); text-decoration: none; background: linear-gradient(155deg, rgba(36,87,255,.17), transparent 45%); transition: border-color .2s, transform .2s; }
.article-card:nth-child(2) { background: linear-gradient(155deg, rgba(239,35,60,.17), transparent 45%); }
.article-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.35); }
.article-meta { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.article-card p { color: #aeb3c0; }
.article-card .arrow { align-self: end; font-size: 1.8rem; }

.donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 54px; }
.wallet { min-height: 164px; padding: 23px; border: 1px solid var(--line); background: var(--ink-soft); }
.wallet-name { color: white; font-size: .78rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.wallet-address { display: block; min-height: 42px; margin: 24px 0 14px; color: #777e8d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; overflow-wrap: anywhere; }
.copy-button { border: 0; padding: 0; color: var(--blue-soft); background: none; cursor: pointer; font-size: .76rem; }
.copy-button:disabled { color: #5d6270; cursor: default; }

.site-footer { padding: 58px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; padding-bottom: 48px; }
.footer-note { max-width: 430px; margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.footer-col h3 { margin-bottom: 14px; font-family: var(--sans); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #aeb3c0; text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: white; }
.footer-links a[aria-disabled="true"] { color: #555b68; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); color: #666c78; font-size: .72rem; }

.page-hero { padding: 120px 0 76px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1000px; font-size: clamp(3.1rem, 7vw, 7rem); }
.breadcrumbs { margin-bottom: 32px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: #c5c8d2; }
.page-hero .lede { margin-top: 30px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: clamp(50px, 8vw, 110px); align-items: start; padding: 76px 0 120px; }
.prose { color: #d0d3da; }
.prose h2 { margin: 2.1em 0 .55em; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.prose h3 { margin: 1.8em 0 .55em; font-family: var(--sans); font-size: 1.23rem; font-weight: 720; letter-spacing: -.01em; }
.prose p, .prose li { max-width: 720px; }
.prose p { margin: 1em 0; }
.prose strong { color: white; }
.prose blockquote { margin: 2rem 0; padding: 4px 0 4px 25px; border-left: 2px solid var(--red); color: white; font-family: var(--serif); font-size: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: .55rem 0; }
.prose table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: white; background: rgba(36,87,255,.15); }
.note { margin: 2rem 0; padding: 22px; border: 1px solid rgba(36,87,255,.5); background: rgba(36,87,255,.08); color: #dce3ff; font-size: .92rem; }
.warning { border-color: rgba(239,35,60,.5); background: rgba(239,35,60,.08); color: #ffe0e4; }
.toc { position: sticky; top: 112px; padding-left: 20px; border-left: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.toc a { display: block; margin: 9px 0; color: var(--muted); text-decoration: none; font-size: .78rem; line-height: 1.4; }
.toc a:hover { color: white; }
.article-cta { margin-top: 64px; padding: 34px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(239,35,60,.1), rgba(36,87,255,.1)); }
.article-cta h2 { margin: 0 0 18px; font-size: 2.4rem; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 24px 20px; border-bottom: 1px solid var(--line); background: #08090d; flex-direction: column; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .menu-button { display: block; }
  .section-intro, .course-grid, .media-layout, .article-layout { grid-template-columns: 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-card { min-height: 280px; }
  .card-number { margin-bottom: 60px; }
  .offer, .toc { position: static; }
  .toc { order: -1; }
  .donate-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: auto; }
  .hero-content { padding: 92px 0 120px; }
  h1 { font-size: clamp(3.35rem, 18vw, 5.6rem); }
  .hero-index { left: 14px; right: 14px; bottom: 20px; justify-content: end; }
  .hero-index span:first-child { display: none; }
  .section { padding: 84px 0; }
  .article-grid, .access-strip, .outcomes, .donate-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 340px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .media-card { grid-template-columns: 44px 1fr; }
  .media-card .arrow { display: none; }
  .play { width: 44px; }
  .article-layout { padding-top: 52px; }
  .prose table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .particle-canvas { display: none; }
}

/* Arcana layer — original, dependency-free interpretations of aurora, portal,
   star-field, tilt-card and magnetic-button interaction patterns. */
.hero {
  --pointer-x: 0;
  --pointer-y: 0;
  min-height: min(960px, 100svh);
  isolation: isolate;
  background: #02030a;
}
.hero-cosmos { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero::before { z-index: 3; background: linear-gradient(90deg, rgba(2,3,10,.94) 0%, rgba(2,3,10,.79) 42%, rgba(2,3,10,.18) 100%); }
.particle-canvas { z-index: 2; mix-blend-mode: screen; opacity: .95; }
.hero-content { z-index: 4; }
.hero-index { z-index: 5; }

.aurora { position: absolute; width: 112vw; height: 46vw; min-height: 370px; filter: blur(2px) saturate(1.32); opacity: .73; mix-blend-mode: screen; transform-origin: 50% 50%; }
.aurora::before, .aurora::after { content: ""; position: absolute; inset: 0; border-radius: 48% 52% 64% 36% / 42% 37% 63% 58%; background: inherit; filter: blur(22px); }
.aurora-blue { top: -16vw; right: -34vw; background: radial-gradient(ellipse at 45% 62%, rgba(47,98,255,.68) 0 7%, rgba(57,94,255,.33) 22%, transparent 59%); animation: aurora-drift 16s ease-in-out infinite alternate; }
.aurora-red { right: -48vw; bottom: -30vw; background: radial-gradient(ellipse at 35% 36%, rgba(239,35,93,.62) 0 8%, rgba(255,67,87,.25) 22%, transparent 61%); animation: aurora-drift 18s ease-in-out -7s infinite alternate-reverse; }
.aurora-violet { top: 13%; right: -28vw; background: conic-gradient(from 120deg at 40% 50%, transparent 0 14%, rgba(91,78,255,.28), rgba(32,90,255,.36), transparent 40% 100%); opacity: .62; animation: aurora-drift 20s linear -2s infinite alternate; }
@keyframes aurora-drift { from { transform: translate3d(-2%, -2%, 0) rotate(-5deg) scale(1); } to { transform: translate3d(5%, 4%, 0) rotate(9deg) scale(1.14); } }

.hero-star-field { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-star-field i { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: var(--tone); box-shadow: 0 0 calc(var(--size) * 6) currentColor; color: var(--tone); opacity: .24; animation: star-breathe var(--duration) ease-in-out var(--delay) infinite; }
@keyframes star-breathe { 0%,100% { opacity: .11; transform: scale(.7); } 48% { opacity: .92; transform: scale(1.7); } }

.portal { position: absolute; z-index: 2; top: 50%; right: clamp(-220px, -5vw, -30px); width: min(61vw, 720px); aspect-ratio: 1; transform: translateY(-50%) perspective(900px) rotateX(calc(50deg + var(--pointer-y) * -8deg)) rotateZ(calc(-18deg + var(--pointer-x) * 7deg)); transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.portal::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: conic-gradient(from 115deg, transparent 0 12%, rgba(36,87,255,.82) 17%, transparent 23% 42%, rgba(239,35,60,.76) 48%, transparent 54% 77%, rgba(146,157,255,.55) 84%, transparent 92%); filter: blur(1px); opacity: .86; mask: radial-gradient(transparent 0 57%, #000 58% 62%, transparent 64%); animation: portal-spin 19s linear infinite; }
.portal::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(243,240,232,.98) 0 1%, rgba(100,121,255,.45) 3%, rgba(239,35,60,.26) 12%, rgba(18,32,87,.22) 28%, transparent 65%); filter: blur(5px); box-shadow: 0 0 120px 30px rgba(44,81,255,.22), 0 0 160px 45px rgba(239,35,60,.11); animation: core-pulse 5s ease-in-out infinite; }
.portal-ring { position: absolute; inset: 7%; border: 1px solid rgba(186,202,255,.42); border-radius: 48% 52% 50% 50%; box-shadow: inset 0 0 18px rgba(36,87,255,.2), 0 0 18px rgba(239,35,60,.08); }
.portal-ring-one { transform: rotate3d(1,0,0,68deg) rotateZ(9deg); animation: ring-turn-one 12s linear infinite; }
.portal-ring-two { inset: 15%; border-color: rgba(255,145,160,.42); transform: rotate3d(0,1,0,65deg) rotateZ(48deg); animation: ring-turn-two 16s linear reverse infinite; }
.portal-ring-three { inset: 27%; border-style: dashed; border-color: rgba(243,240,232,.36); transform: rotate3d(1,1,0,57deg); animation: portal-spin 11s linear infinite; }
.portal-axis { position: absolute; top: 49%; left: -2%; width: 104%; height: 1px; background: linear-gradient(90deg, transparent, rgba(96,120,255,.4), rgba(255,255,255,.7), rgba(239,35,60,.45), transparent); transform: rotate(-22deg); box-shadow: 0 0 16px rgba(83,103,255,.52); }
.portal-core { position: absolute; top: 50%; left: 50%; width: 11%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 22px 8px rgba(255,255,255,.32), 0 0 70px 28px rgba(38,78,255,.27); }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@keyframes ring-turn-one { to { transform: rotate3d(1,0,0,68deg) rotateZ(369deg); } }
@keyframes ring-turn-two { to { transform: rotate3d(0,1,0,65deg) rotateZ(408deg); } }
@keyframes core-pulse { 50% { filter: blur(9px) brightness(1.34); transform: scale(1.06); } }

.hero-grid { position: absolute; z-index: 1; right: -17vw; bottom: -26vw; width: 100vw; height: 58vw; background: linear-gradient(rgba(86,112,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(239,35,60,.13) 1px, transparent 1px); background-size: 44px 44px; transform: perspective(650px) rotateX(64deg) rotateZ(-5deg); mask-image: linear-gradient(to top, #000, transparent 78%); opacity: .52; }

.hero h1 { max-width: 910px; text-shadow: 0 8px 50px rgba(0,0,0,.4); }
.glitch-word { position: relative; display: inline-block; }
.glitch-word::before, .glitch-word::after { content: attr(data-glitch); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.glitch-word::before { color: var(--blue-soft); transform: translate(2px, 0); clip-path: inset(0 0 64% 0); animation: glitch-flash 6.7s steps(2,end) 1.8s infinite; }
.glitch-word::after { color: var(--red-soft); transform: translate(-2px, 1px); clip-path: inset(61% 0 0 0); animation: glitch-flash 6.7s steps(2,end) 1.9s infinite reverse; }
@keyframes glitch-flash { 0%, 91%,100% { opacity: 0; } 92% { opacity: .8; } 93% { opacity: 0; } 94% { opacity: .55; } 95% { opacity: 0; } }

.hero-actions .button { transition: transform .2s ease, border-color .25s, box-shadow .25s, background .25s; }
.hero-actions .button:not(.button-primary):hover { background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 42px rgba(76,94,255,.17); }
.button-primary { position: relative; overflow: hidden; }
.button-primary::before { content: ""; position: absolute; inset: -150% -25%; background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.46) 50%, transparent 58%); transform: translateX(-60%) rotate(12deg); transition: transform .8s ease; }
.button-primary:hover::before { transform: translateX(70%) rotate(12deg); }
.button-primary > * { position: relative; z-index: 1; }
.hero-scroll { position: absolute; z-index: 5; left: max(22px, calc((100vw - var(--max)) / 2)); bottom: 28px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.62); font-size: .64rem; font-weight: 700; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.hero-scroll i { position: relative; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.36); border-radius: 20px; }
.hero-scroll i::before { content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; border-radius: 3px; background: var(--red-soft); transform: translateX(-50%); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 60% { transform: translate(-50%, 16px); opacity: 0; } }

.invocation { position: relative; z-index: 1; overflow: hidden; padding: 0; background: #070913; border-bottom: 1px solid var(--line); }
.invocation::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(239,35,60,.18), transparent 38%), radial-gradient(ellipse at 86% 50%, rgba(36,87,255,.2), transparent 38%); }
.invocation-grid { position: relative; display: grid; grid-template-columns: .18fr 1fr .55fr; gap: 30px; align-items: center; min-height: 220px; }
.invocation-mark { margin: 0; font-family: var(--serif); font-size: clamp(4rem,9vw,8rem); line-height: 1; color: transparent; background: linear-gradient(140deg, var(--red-soft), var(--blue-soft)); background-clip: text; animation: mark-float 6s ease-in-out infinite; }
@keyframes mark-float { 50% { transform: translateY(-9px) rotate(10deg); } }
.invocation-copy { margin: 0; color: #aeb4c4; font-family: var(--serif); font-size: clamp(1.22rem, 2.3vw, 1.85rem); line-height: 1.28; }
.invocation-copy strong { color: var(--paper); font-weight: 450; }
.constellation { position: relative; height: 130px; overflow: hidden; }
.constellation::before, .constellation::after { content: ""; position: absolute; top: 50%; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, rgba(95,115,255,.68), rgba(239,35,60,.62), transparent); transform: rotate(-14deg); }
.constellation::after { transform: rotate(29deg); opacity: .7; }
.constellation span { position: absolute; z-index: 1; left: calc(5% + var(--i, 0) * 8%); top: calc(24% + (var(--i, 0) % 3) * 23%); width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--paper); box-shadow: 0 0 13px 3px var(--blue); animation: star-breathe calc(3s + var(--i,0) * .2s) ease-in-out infinite; }
.constellation span:nth-child(odd) { top: calc(17% + (var(--i, 0) % 4) * 18%); background: var(--red-soft); box-shadow: 0 0 13px 3px var(--red); }
.constellation span:nth-child(1) { --i: 0; }.constellation span:nth-child(2) { --i: 1; }.constellation span:nth-child(3) { --i: 2; }.constellation span:nth-child(4) { --i: 3; }.constellation span:nth-child(5) { --i: 4; }.constellation span:nth-child(6) { --i: 5; }.constellation span:nth-child(7) { --i: 6; }.constellation span:nth-child(8) { --i: 7; }.constellation span:nth-child(9) { --i: 8; }.constellation span:nth-child(10) { --i: 9; }.constellation span:nth-child(11) { --i: 10; }.constellation span:nth-child(12) { --i: 11; }

.arcane-card { --tilt-x: 0deg; --tilt-y: 0deg; --lift: 0px; --glow-x: 50%; --glow-y: 50%; position: relative; isolation: isolate; overflow: hidden; transform: perspective(950px) translateY(var(--lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease; }
.arcane-card::after { content: ""; position: absolute; z-index: -1; inset: -50%; background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(115,145,255,.25), transparent 22%), radial-gradient(circle at calc(var(--glow-x) + 13%) calc(var(--glow-y) + 8%), rgba(239,35,60,.18), transparent 18%); opacity: 0; transition: opacity .3s; }
.arcane-card:hover { --lift: -8px; border-color: rgba(179,194,255,.62); box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 0 45px rgba(36,87,255,.11); }
.arcane-card:hover::after { opacity: 1; }
.manifesto-card { border: 0; }
.manifesto-card::before { content: ""; position: absolute; top: 24px; right: 24px; width: 31px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.3); transform: rotate(45deg); transition: transform .5s ease; }
.manifesto-card:hover::before { transform: rotate(225deg) scale(1.25); }
.magic-glass { background: linear-gradient(145deg, rgba(28,34,61,.84), rgba(8,10,19,.84)); border-color: rgba(125,145,255,.35); box-shadow: 0 30px 120px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.09); }
.magic-glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.1) 40%, transparent 59%); transform: translateX(-90%); animation: glass-sweep 8s ease-in-out infinite; }
@keyframes glass-sweep { 35%,100% { transform: translateX(100%); } }
.offer:hover { transform: perspective(950px) translateY(var(--lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.media-card:hover, .article-card:hover { transform: perspective(950px) translateY(var(--lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.wallet { position: relative; overflow: hidden; transition: border-color .25s, transform .25s, background .25s; }
.wallet::before { content: ""; position: absolute; inset: -90% 40% auto -70%; width: 140%; aspect-ratio: 1; border: 1px solid rgba(36,87,255,.28); border-radius: 50%; transition: transform .8s ease; }
.wallet:hover { transform: translateY(-5px); border-color: rgba(239,35,60,.55); background: linear-gradient(135deg, rgba(36,87,255,.13), rgba(239,35,60,.12), var(--ink-soft)); }
.wallet:hover::before { transform: translate(100%, 80%) rotate(100deg); }

.arcana-ready [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.arcana-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.arcana-ready [data-reveal].arcane-card.is-visible { transform: perspective(950px) translateY(var(--lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }

@media (max-width: 900px) {
  .portal { right: -24vw; width: 82vw; opacity: .68; }
  .hero::before { background: linear-gradient(90deg, rgba(2,3,10,.92), rgba(2,3,10,.62) 90%); }
  .invocation-grid { grid-template-columns: .16fr 1fr; min-height: 180px; }
  .constellation { display: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 760px; }
  .hero-content { padding-bottom: 138px; }
  .portal { top: 27%; right: -26vw; width: 86vw; opacity: .45; }
  .aurora { width: 160vw; height: 100vw; }
  .hero-index { bottom: 26px; left: auto; right: 18px; }
  .hero-scroll { left: 16px; bottom: 22px; }
  .hero-scroll span { display: none; }
  .invocation-grid { grid-template-columns: 1fr; gap: 0; padding: 46px 0; min-height: auto; }
  .invocation-mark { font-size: 4rem; }
  .invocation-copy { font-size: 1.35rem; }
  .arcane-card { transform: none !important; }
  .arcana-ready [data-reveal] { transform: translateY(22px); }
  .arcana-ready [data-reveal].is-visible { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-star-field, .portal, .aurora { animation: none !important; }
  .hero-star-field i, .portal *, .aurora, .magic-glass::before { animation: none !important; }
  .hero-scroll i::before { animation: none; }
}

/* Living section treatments */
#about { background: radial-gradient(ellipse 70% 90% at 95% 20%, rgba(36,87,255,.11), transparent 62%), radial-gradient(ellipse 45% 70% at 0% 85%, rgba(239,35,60,.1), transparent 72%); }
#about::before { content: ""; position: absolute; z-index: 0; right: -13vw; top: 40px; width: min(56vw, 720px); aspect-ratio: 1; border: 1px solid rgba(115,145,255,.11); border-radius: 50%; box-shadow: 0 0 0 46px rgba(239,35,60,.025), 0 0 0 92px rgba(36,87,255,.025), inset 0 0 100px rgba(36,87,255,.07); animation: slow-turn 38s linear infinite; }
#about > .shell, #practice > .shell, #voices > .shell, #journal > .shell, #donate > .shell { position: relative; z-index: 1; }
@keyframes slow-turn { to { transform: rotate(360deg); } }
.manifesto-grid { background: rgba(112,132,255,.21); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.manifesto-card:nth-child(1) { background: linear-gradient(145deg, rgba(10,14,28,.97), rgba(12,14,20,.97)); }
.manifesto-card:nth-child(2) { background: linear-gradient(145deg, rgba(24,40,108,.76), rgba(8,11,22,.97) 68%); }
.manifesto-card:nth-child(3) { background: linear-gradient(145deg, rgba(112,20,49,.67), rgba(14,9,18,.98) 68%); }
.manifesto-card h3, .manifesto-card p, .manifesto-card .card-number { transform: translateZ(16px); }

.course-section { background: linear-gradient(120deg, rgba(6,9,22,.96), rgba(13,7,14,.92)); }
.course-section::after { content: ""; position: absolute; z-index: 0; left: -17vw; bottom: -29vw; width: 72vw; aspect-ratio: 1; border: 1px solid rgba(239,35,60,.17); border-radius: 50%; box-shadow: 0 0 0 35px rgba(36,87,255,.04), 0 0 0 70px rgba(239,35,60,.035), 0 0 0 114px rgba(36,87,255,.025); animation: slow-turn 45s linear infinite reverse; }
.course-section .eyebrow::before { width: 56px; }
.outcomes li { transition: color .25s, transform .25s; }
.outcomes li:hover { color: white; transform: translateX(5px); }
.offer .price { background: linear-gradient(100deg, #fff4ec, var(--red-soft), var(--blue-soft)); background-clip: text; color: transparent; }
.access-strip { background: rgba(122,148,255,.18); }
.access-item { position: relative; overflow: hidden; background: rgba(8,10,17,.76); }
.access-item::after { content: ""; position: absolute; right: -32px; bottom: -52px; width: 130px; aspect-ratio: 1; border: 1px solid rgba(36,87,255,.3); border-radius: 50%; box-shadow: 0 0 35px rgba(36,87,255,.16); }
.access-item:last-child::after { border-color: rgba(239,35,60,.31); box-shadow: 0 0 35px rgba(239,35,60,.14); }

#voices { background: radial-gradient(ellipse at 74% 43%, rgba(36,87,255,.15), transparent 34%), radial-gradient(ellipse at 98% 74%, rgba(239,35,60,.13), transparent 36%); }
.media-board { perspective: 1000px; }
.media-card { background: rgba(11,14,27,.74); border-color: rgba(167,182,255,.18); }
.media-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(102deg, transparent 10%, rgba(255,255,255,.1) 46%, transparent 54%); transform: translateX(-120%); transition: transform .75s ease; }
.media-card:hover::before { transform: translateX(120%); }
.play { box-shadow: 0 0 0 8px rgba(239,35,60,.08), 0 0 30px rgba(239,35,60,.35); }
.media-card:nth-child(even) .play { box-shadow: 0 0 0 8px rgba(36,87,255,.08), 0 0 30px rgba(36,87,255,.35); }

#journal { background: linear-gradient(180deg, rgba(8,9,15,.98), rgba(11,9,16,.98)); }
#journal::before { content: "/FORU"; position: absolute; right: -1.3vw; top: -30px; font-family: var(--serif); font-size: min(18vw, 285px); line-height: 1; color: rgba(255,255,255,.018); letter-spacing: -.08em; }
.article-card { border-color: rgba(158,176,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.article-card::before { content: ""; position: absolute; z-index: -1; right: 22px; top: 21px; width: 42px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.24); transform: rotate(45deg); transition: transform .5s ease; }
.article-card:hover::before { transform: rotate(135deg) scale(1.2); }

#donate { background: radial-gradient(ellipse at 12% 85%, rgba(239,35,60,.12), transparent 34%), radial-gradient(ellipse at 83% 18%, rgba(36,87,255,.14), transparent 34%); }
.donate-grid { gap: 13px; }

@media (prefers-reduced-motion: reduce) {
  #about::before, .course-section::after { animation: none; }
}
