/* ============================================================
   To Higher Consciousness — the inner-cosmos field guide
   Design: dark psychedelic · warm hippy soul · hard edge
   ============================================================ */

:root {
  --bg:        #09090f;
  --bg-2:      #0d0c17;
  --bg-3:      #12101f;
  --ink:       #ece7df;
  --ink-dim:   #a39db4;
  --ink-faint: #6f6981;
  --line:      rgba(236, 231, 223, 0.12);
  --line-soft: rgba(236, 231, 223, 0.07);

  --lime:   #c6f04e;
  --magenta:#ff5dbb;
  --violet: #7b6bff;
  --amber:  #ffb14e;
  --cyan:   #3ce0ff;
  --mint:   #9affc2;

  --accent: var(--magenta);

  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--magenta); color: #0a0a12; }

/* ---------- overlays: grain + vignette ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 9990; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-3%, 2%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 9991; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 9995; background: var(--line-soft);
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--magenta), var(--amber), var(--lime));
  box-shadow: 0 0 14px var(--magenta);
}

/* ---------- custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference; will-change: transform;
}
.cursor { width: 34px; height: 34px; border: 1px solid #fff; transition: width .25s var(--ease), height .25s var(--ease), background .25s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; }
.cursor.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,0.1); }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor input { cursor: none; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__eye { text-align: center; }
.preloader__count {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 11rem);
  font-weight: 300; line-height: 1;
  background: linear-gradient(120deg, var(--violet), var(--magenta), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.preloader__label {
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 1.4rem;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.1rem, 4vw, 3rem);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 15, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: 1rem; padding-bottom: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__mark {
  font-size: 1.3rem;
  background: linear-gradient(120deg, var(--amber), var(--magenta), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav__name {
  font-family: var(--font-ui); font-weight: 600; letter-spacing: .18em;
  font-size: .9rem; display: flex; flex-direction: column; line-height: 1.1;
}
.nav__name em { font-style: normal; font-weight: 400; font-size: .6rem; letter-spacing: .22em; color: var(--ink-faint); text-transform: uppercase; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-dim); position: relative; padding: .2rem 0;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .65rem 1.2rem; border: 1px solid var(--line);
  border-radius: 100px; transition: all .35s var(--ease); white-space: nowrap;
}
.nav__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 6px; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 8999;
  background: rgba(9,9,15,0.97); backdrop-filter: blur(8px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.mobile-menu__cta { color: var(--lime); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; display: flex; align-items: center; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,7,13,0.5) 0%, rgba(7,7,13,0.12) 26%, rgba(7,7,13,0.32) 62%, rgba(7,7,13,0.93) 100%),
    linear-gradient(90deg, rgba(7,7,13,0.66) 0%, rgba(7,7,13,0.22) 46%, rgba(7,7,13,0) 76%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 3rem);
}
.hero__eyebrow {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .6rem; margin-bottom: 1.8rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.hero__eyebrow span { color: var(--lime); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300; line-height: 0.92;
  font-size: clamp(3.4rem, 13vw, 12rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.7), 0 1px 5px rgba(0,0,0,.5);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hero__title .line > span { display: inline-block; }
.hero__title .ital {
  font-style: italic; font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 144;
  background: linear-gradient(108deg, var(--amber), var(--magenta) 45%, var(--violet) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin-top: 2rem; max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink); line-height: 1.6; text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; color: var(--ink-dim);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--ink-dim), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:""; position:absolute; top:-46px; left:0; width:100%; height:46px; background: var(--lime); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { to { top: 46px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.7rem; border-radius: 100px; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn--solid { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 rgba(255,93,187,0); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(255,93,187,.35); background: var(--magenta); color: #160013; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-3px); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; padding: 1.4rem 0; background: var(--bg-2);
}
.marquee__track { display: inline-flex; align-items: center; gap: 2.4rem; white-space: nowrap; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400; color: var(--ink); font-variation-settings: "SOFT" 70, "WONK" 1;
}
.marquee__track .dot { color: var(--magenta); font-style: normal; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 12vw, 10rem) clamp(1.1rem, 4vw, 3rem); }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 60ch; }
.kicker {
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem; font-weight: 500;
}
.section__title {
  font-family: var(--font-display); font-weight: 300; line-height: 0.98;
  font-size: clamp(2.4rem, 7vw, 5.4rem); letter-spacing: -0.02em;
}
.section__title .ital { font-style: italic; font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 144; color: var(--accent); }
.section__lead { margin-top: 1.6rem; color: var(--ink-dim); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.7; max-width: 56ch; }

/* ---------- manifesto ---------- */
.manifesto { max-width: 1000px; margin: 0 auto; padding: clamp(4rem,10vw,8rem) clamp(1.1rem,4vw,3rem); text-align: center; }
.manifesto__text {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 4.4vw, 3.4rem); line-height: 1.28; letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100; margin: 1.5rem 0 2rem;
}
.manifesto__text em { font-style: normal; background: linear-gradient(100deg, var(--lime), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto__sign { font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-faint); }
.reveal-word { display: inline-block; }

/* ---------- archive cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  position: relative; padding: 2.2rem 1.9rem 1.8rem; border: 1px solid var(--line);
  border-radius: 18px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
  min-height: 280px; display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}
.card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card:hover::before { opacity: 1; }
.card__num { font-size: .72rem; letter-spacing: .3em; color: var(--ink-faint); }
.card__glyph { position: absolute; top: 1.6rem; right: 1.8rem; font-size: 1.7rem; color: var(--accent); transition: transform .6s var(--ease); }
.card:hover .card__glyph { transform: rotate(90deg) scale(1.2); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin: 1.6rem 0 .8rem; letter-spacing: -0.01em; }
.card p { color: var(--ink-dim); font-size: .92rem; line-height: 1.6; flex: 1; }
.card__go { margin-top: 1.4rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- medicines ---------- */
.med-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.med {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; background: var(--bg-2);
  transition: transform .45s var(--ease), border-color .4s, background .4s;
}
.med:hover { transform: translateY(-6px); border-color: var(--mint); background: var(--bg-3); }
.med h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; }
.med__tag { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin: .5rem 0 1rem; }
.med p { color: var(--ink-dim); font-size: .9rem; line-height: 1.6; }

/* ---------- films ---------- */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.film {
  position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.8rem;
  background: linear-gradient(160deg, var(--bg-2), var(--bg)); overflow: hidden; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .45s var(--ease), border-color .4s;
}
.film::after { content:""; position:absolute; top:0; left:0; right:0; height:4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.film:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.film:hover::after { transform: scaleX(1); }
.film__year { position: absolute; top: 1.4rem; right: 1.6rem; font-size: .74rem; letter-spacing: .2em; color: var(--ink-faint); }
.film h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; margin-bottom: .6rem; line-height: 1.1; }
.film p { color: var(--ink-dim); font-size: .88rem; line-height: 1.55; }
.film__go { margin-top: 1.1rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- books ---------- */
.books { list-style: none; border-top: 1px solid var(--line); }
.book a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem .4rem; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .4s var(--ease), color .4s;
}
.book a::before { content: "↗"; position: absolute; left: -1.3rem; opacity: 0; color: var(--amber); transition: opacity .3s, left .3s; }
.book a:hover { padding-left: 1.4rem; color: var(--amber); }
.book a:hover::before { opacity: 1; left: .2rem; }
.book__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
.book__author { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

/* ---------- voices ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.voice { border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; transition: transform .45s var(--ease), border-color .4s, background .4s; }
.voice:hover { transform: translateY(-6px); border-color: var(--cyan); background: var(--bg-2); }
.voice h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: .4rem; }
.voice p { color: var(--ink-dim); font-size: .88rem; }

/* ---------- field notes ---------- */
.field-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.6rem; }
.field-notes blockquote {
  border-left: 2px solid var(--cyan); padding: .4rem 0 .4rem 1.4rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.45;
  color: var(--ink); font-variation-settings: "SOFT" 50, "WONK" 1;
}
.field-notes cite { display: block; margin-top: .9rem; font-family: var(--font-ui); font-style: normal; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.field-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.safe { border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem; transition: transform .45s var(--ease), border-color .4s; }
.safe:hover { transform: translateY(-6px); border-color: var(--mint); }
.safe h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-bottom: .4rem; }
.safe p { color: var(--ink-dim); font-size: .85rem; line-height: 1.5; }

/* ---------- join ---------- */
.join { text-align: center; }
.join__inner { max-width: 720px; margin: 0 auto; }
.join__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.join__title .ital { font-style: italic; font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 144; background: linear-gradient(100deg, var(--lime), var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join__lead { color: var(--ink-dim); margin: 1.5rem auto 2.4rem; max-width: 48ch; line-height: 1.7; }
.join__form { display: flex; gap: .7rem; max-width: 480px; margin: 0 auto; }
.join__form input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px;
  padding: .95rem 1.5rem; color: var(--ink); font-family: var(--font-ui); font-size: .95rem;
  transition: border-color .3s;
}
.join__form input:focus { outline: none; border-color: var(--lime); }
.join__form input::placeholder { color: var(--ink-faint); }
.join__note { margin-top: 1.2rem; font-size: .82rem; color: var(--lime); min-height: 1.2em; letter-spacing: .05em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem,8vw,5rem) clamp(1.1rem,4vw,3rem) 2rem; max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.footer__brand { display: flex; flex-direction: column; gap: .4rem; }
.footer__brand p { font-family: var(--font-display); font-size: 1.5rem; }
.footer__tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.footer__cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer__cols h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; }
.footer__cols a { display: block; color: var(--ink-dim); font-size: .9rem; padding: .35rem 0; transition: color .3s; }
.footer__cols a:hover { color: var(--ink); }
.footer__disclaimer { margin: 3rem 0 2rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg-2); }
.footer__disclaimer p { font-size: .8rem; line-height: 1.7; color: var(--ink-faint); }
.footer__disclaimer strong { color: var(--amber); letter-spacing: .05em; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }

/* ---------- reveal states ---------- */
[data-reveal], [data-hero] { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .med-grid, .films, .voice-grid, .field-notes { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .cards, .med-grid, .films, .voice-grid, .field-notes, .safety-grid { grid-template-columns: 1fr; }
  .book a { flex-direction: column; gap: .3rem; }
  .book__author { white-space: normal; }
  .join__form { flex-direction: column; }
  .join__form .btn { justify-content: center; }
  .hero__sub { max-width: 90%; }
}

/* ============================================================
   COSMIC LOVE + ALIEN LAYER
   ============================================================ */

/* nebula clouds + starfield sit behind content */
.cosmos {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(123,107,255,0.16), transparent 60%),
    radial-gradient(55% 45% at 12% 78%, rgba(255,93,187,0.13), transparent 60%),
    radial-gradient(45% 40% at 60% 95%, rgba(60,224,255,0.10), transparent 60%),
    radial-gradient(50% 40% at 95% 60%, rgba(255,177,78,0.08), transparent 60%);
}
.starfield { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

/* lift real content above the cosmos */
main, .footer { position: relative; z-index: 1; }

/* ---------- logo ---------- */
.nav__logo {
  width: 42px; height: 42px; border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(255,160,80,0.45));
  animation: haloPulse 6s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255,160,80,0.35)); }
  50% { filter: drop-shadow(0 0 18px rgba(255,93,187,0.55)); }
}
.footer__logo { width: 58px; height: 58px; border-radius: 50%; filter: drop-shadow(0 0 14px rgba(255,160,80,0.4)); }

.hero__eyebrow-link, .footer__tag a, .footer__bottom a, .transmission__sub a {
  color: var(--lime); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--lime) 40%, transparent);
  transition: color .3s, border-color .3s;
}
.hero__eyebrow-link:hover, .footer__tag a:hover, .footer__bottom a:hover, .transmission__sub a:hover { color: var(--amber); border-color: var(--amber); }
.footer__tag a { color: var(--ink-dim); border-bottom-color: var(--line); }

/* ---------- heart ---------- */
.heart { color: var(--magenta); display: inline-block; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.35); } 24% { transform: scale(1); } 36% { transform: scale(1.2); } }

/* ---------- transmission band ---------- */
.transmission {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(5rem, 13vw, 9rem) clamp(1.1rem, 4vw, 3rem);
  margin: clamp(2rem,6vw,4rem) 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.transmission__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.transmission .glyphs {
  font-size: clamp(1rem, 2.4vw, 1.6rem); letter-spacing: .5em; color: var(--cyan);
  margin: 1.4rem 0; opacity: .7; animation: flicker 4s steps(2) infinite;
}
@keyframes flicker { 0%,100% { opacity: .65; } 47% { opacity: .35; } 50% { opacity: .8; } 53% { opacity: .4; } }
.transmission__msg {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(2rem, 6.5vw, 4.6rem); line-height: 1.05; letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  background: linear-gradient(100deg, var(--rose), var(--amber) 40%, var(--violet) 75%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.transmission__msg.scrambling { font-family: var(--font-ui); font-style: normal; -webkit-text-fill-color: var(--cyan); color: var(--cyan); letter-spacing: .04em; }
.transmission__sub { margin-top: 1.6rem; color: var(--ink-dim); font-size: clamp(.9rem, 1.2vw, 1.05rem); letter-spacing: .02em; }

/* flower of life */
.sacred {
  position: absolute; top: 50%; left: 50%;
  width: min(120vw, 760px); height: min(120vw, 760px);
  transform: translate(-50%, -50%);
  color: var(--violet); opacity: 0.12; z-index: 1; pointer-events: none;
  animation: sacredSpin 80s linear infinite;
}
@keyframes sacredSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (max-width: 720px) {
  .nav__logo { width: 36px; height: 36px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-hero] { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
  .sacred { opacity: 0.1; }
}
