/* ===============================================
   THE BOOK OF ONENESS
   v3: Readability overhaul. Grain killed. Pink CTAs.
   TRANSMISSIONS renamed to THE SIGNAL.
   =============================================== */

:root {
  --black: #0A0A0A;
  --deep: #1A1A1A;
  --white: #FFFFFF;
  --text: #D4D4D4;         /* BODY TEXT: much lighter than old #B0B0B0 */
  --text-dim: #A0A0A0;     /* secondary text */
  --cyan: #00F0FF;
  --magenta: #FF0040;
  --pink: #FF5785;         /* CTA buttons */
  --green: #7AFF3B;
  --night: #00C2C7;
  --day: #F2C94C;
  --ebook: #FF5785;
  --audio: #41D07A;
  --max: 1100px;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-sans: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;              /* BASE SIZE UP from 16 */
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--white); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 700; }

/* --- SCANLINES (very subtle, not fuzzy) --- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.02) 3px,
    rgba(0, 0, 0, 0.02) 6px
  );
  mix-blend-mode: multiply;
}

/* --- GRAIN: KILLED --- */
#grain {
  display: none !important;
}

/* ===============================================
   NAVIGATION
   =============================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.nav__toggle span {
  display: block; width: 100%; height: 1px;
  background: var(--white);
  position: absolute; left: 0; transition: 0.3s;
}
.nav__toggle span:first-child { top: 4px; }
.nav__toggle span:last-child { bottom: 4px; }
.nav__toggle.active span:first-child { top: 50%; transform: rotate(45deg); }
.nav__toggle.active span:last-child { bottom: 50%; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px; gap: 20px;
    transform: translateY(-100%);
    opacity: 0; pointer-events: none;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__links a { font-size: 15px; }
}

/* ===============================================
   GLITCH TEXT (hover)
   =============================================== */
[data-glitch] { position: relative; }
[data-glitch]::before,
[data-glitch]::after {
  content: attr(data-glitch);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; opacity: 0;
}
[data-glitch]:hover::before {
  animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  color: var(--cyan); opacity: 0.7;
}
[data-glitch]:hover::after {
  animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  color: var(--magenta); opacity: 0.7;
}
@keyframes glitch-1 {
  0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, -1px); }
  20% { clip-path: inset(92% 0 1% 0); transform: translate(1px, 2px); }
  40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 1px); }
  60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -1px); }
  80% { clip-path: inset(54% 0 7% 0); transform: translate(-1px, 2px); }
  100% { clip-path: inset(58% 0 43% 0); transform: translate(0); }
}
@keyframes glitch-2 {
  0% { clip-path: inset(65% 0 13% 0); transform: translate(2px, 1px); }
  20% { clip-path: inset(17% 0 63% 0); transform: translate(-1px, -2px); }
  40% { clip-path: inset(79% 0 2% 0); transform: translate(1px, -1px); }
  60% { clip-path: inset(40% 0 43% 0); transform: translate(-2px, 1px); }
  80% { clip-path: inset(16% 0 63% 0); transform: translate(1px, -2px); }
  100% { clip-path: inset(26% 0 55% 0); transform: translate(0); }
}

/* ===============================================
   HERO
   =============================================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 24px 40px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__channel { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; }
.hero__channel--r {
  background: radial-gradient(ellipse 800px 500px at 15% 30%, rgba(255, 0, 64, 0.06), transparent 70%);
  animation: channel-drift-r 12s ease-in-out infinite;
}
.hero__channel--g {
  background: radial-gradient(ellipse 600px 400px at 70% 60%, rgba(0, 240, 255, 0.05), transparent 70%);
  animation: channel-drift-g 15s ease-in-out infinite;
}
.hero__channel--b {
  background: radial-gradient(ellipse 900px 600px at 50% 20%, rgba(122, 255, 59, 0.02), transparent 70%);
  animation: channel-drift-b 18s ease-in-out infinite;
}
@keyframes channel-drift-r {
  0%, 100% { opacity: 0; transform: translate(0); }
  30% { opacity: 1; transform: translate(3px, -2px); }
  70% { opacity: 0.5; transform: translate(-2px, 1px); }
}
@keyframes channel-drift-g {
  0%, 100% { opacity: 0; transform: translate(0); }
  40% { opacity: 1; transform: translate(-2px, 3px); }
  80% { opacity: 0.3; transform: translate(1px, -2px); }
}
@keyframes channel-drift-b {
  0%, 100% { opacity: 0; transform: translate(0); }
  50% { opacity: 1; transform: translate(2px, 2px); }
}

.hero__content {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 768px) {
  .hero__content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

.hero__fracture {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-in 0.8s 0.5s forwards;
}

.hero__title { display: flex; flex-direction: column; margin-bottom: 28px; }
.hero__title-line {
  font-family: var(--font-sans);
  font-size: clamp(64px, 12vw, 130px);
  font-weight: 700; line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--white);
  display: block; opacity: 0; transform: translateY(20px);
  animation: title-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__title-line[data-delay="0"] { animation-delay: 0.2s; }
.hero__title-line[data-delay="1"] { animation-delay: 0.35s; }
.hero__title-line[data-delay="2"] { animation-delay: 0.5s; }
.hero__title-line[data-delay="3"] { animation-delay: 0.65s; }

@keyframes title-reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }

.hero__sub {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fade-in 1s 1.2s forwards;
}

/* COVER */
.hero__cover { position: relative; max-width: 340px; justify-self: center; }
.hero__cover-img {
  position: relative; z-index: 2;
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0; animation: fade-in 1.2s 0.8s forwards;
}
.hero__cover-glitch { position: absolute; inset: 0; z-index: 1; }
.hero__cover-ghost {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
}
.hero__cover-ghost--r { mix-blend-mode: screen; animation: cover-glitch-r 8s ease-in-out infinite; }
.hero__cover-ghost--g { mix-blend-mode: screen; animation: cover-glitch-g 11s ease-in-out infinite; }
.hero__cover-ghost--b { mix-blend-mode: screen; animation: cover-glitch-b 14s ease-in-out infinite; }

@keyframes cover-glitch-r {
  0%, 85%, 100% { opacity: 0; transform: translate(0); }
  88% { opacity: 0.3; transform: translate(3px, -1px); filter: hue-rotate(-30deg) saturate(3); }
  91% { opacity: 0; }
}
@keyframes cover-glitch-g {
  0%, 70%, 100% { opacity: 0; transform: translate(0); }
  73% { opacity: 0.25; transform: translate(-2px, 2px); filter: hue-rotate(120deg) saturate(3); }
  76% { opacity: 0; }
}
@keyframes cover-glitch-b {
  0%, 60%, 100% { opacity: 0; transform: translate(0); }
  63% { opacity: 0.2; transform: translate(1px, -2px); filter: hue-rotate(240deg) saturate(3); }
  66% { opacity: 0; }
}

.hero__scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.7; transform: scaleY(1); }
}

/* ===============================================
   SECTION LABEL (cyan headers throughout)
   =============================================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}
.section-label::after {
  content: ''; display: block;
  width: 40px; height: 1px;
  background: var(--cyan);
  margin-top: 12px; opacity: 0.5;
}

/* ===============================================
   ENTRY SECTION (three pillars)
   =============================================== */
.entry { padding: 100px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.entry__wrap { max-width: var(--max); margin: 0 auto; }
.entry__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .entry__grid { grid-template-columns: 1fr; } }

.entry__card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px 24px;
  position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.entry__card:hover { border-color: rgba(0, 240, 255, 0.2); transform: translateY(-2px); }
.entry__card-accent {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.entry__card:hover .entry__card-accent { opacity: 1; }

.entry__card-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 20px;
}
.entry__card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}
.entry__card p:last-child { margin-bottom: 0; }

/* ===============================================
   THE BOOK
   =============================================== */
.book {
  padding: 100px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, var(--black) 0%, rgba(26,26,26,0.5) 50%, var(--black) 100%);
}
.book__wrap { max-width: var(--max); margin: 0 auto; }
.book__header { margin-bottom: 60px; }
.book__desc {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  max-width: 620px;
  margin-bottom: 12px;
}
.book__desc--dim {
  color: var(--text-dim);
  font-size: 17px;
}

.book__editions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 48px;
}
@media (max-width: 900px) { .book__editions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .book__editions { grid-template-columns: 1fr; } }

.book__edition {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 20px;
  position: relative; transition: border-color 0.3s;
}
.book__edition:hover { border-color: rgba(255,255,255,0.15); }

.book__edition-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.book__edition-tag--day { color: var(--day); }
.book__edition-tag--night { color: var(--night); }
.book__edition-tag--ebook { color: var(--ebook); }
.book__edition-tag--audio { color: var(--audio); }

.book__edition--day { border-color: rgba(242, 201, 76, 0.15); }
.book__edition--day:hover { border-color: rgba(242, 201, 76, 0.3); }
.book__edition--night { border-color: rgba(0, 194, 199, 0.15); background: rgba(0, 194, 199, 0.02); }
.book__edition--night:hover { border-color: rgba(0, 194, 199, 0.3); }
.book__edition--ebook { border-color: rgba(255, 87, 133, 0.15); }
.book__edition--ebook:hover { border-color: rgba(255, 87, 133, 0.3); }
.book__edition--audio { border-color: rgba(65, 208, 122, 0.15); }
.book__edition--audio:hover { border-color: rgba(65, 208, 122, 0.3); }

.book__edition h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700; color: var(--white);
  letter-spacing: -0.01em;
  text-transform: uppercase; margin-bottom: 12px;
}
.book__edition-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}
.book__edition-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700; color: var(--white);
  margin-bottom: 4px;
}
.book__edition-alt { font-size: 15px; color: var(--text-dim); }
.book__edition-format {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.book__cta { text-align: center; padding-top: 20px; }
.book__cta-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ===============================================
   BUTTONS -- PRIMARY IS PINK
   =============================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--pink);
  color: var(--black);
  border-color: var(--pink);
}
.btn--primary:hover {
  background: #ff6e96;
  border-color: #ff6e96;
  color: var(--black);
}
.btn--sm {
  padding: 12px 24px;
  font-size: 13px;
}

/* ===============================================
   THE SIGNAL (was TRANSMISSIONS)
   =============================================== */
.transmissions { padding: 100px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.transmissions__wrap { max-width: var(--max); margin: 0 auto; }
.transmissions__desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 48px;
}

.transmission {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px 28px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.transmission::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  opacity: 0.4;
}
.transmission__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.transmission__title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700; color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.transmission__excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.transmission__fracture {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(0, 240, 255, 0.7);
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 240, 255, 0.2);
}
.transmission__fracture-mark {
  color: rgba(0, 240, 255, 0.4);
  margin-right: 6px;
}
.transmissions__note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 32px;
  letter-spacing: 0.04em;
}

/* ===============================================
   THE SIGNAL (email signup)
   =============================================== */
.signal {
  padding: 100px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(ellipse 600px 400px at 30% 50%, rgba(0, 240, 255, 0.03), transparent), var(--black);
}
.signal__wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.signal__wrap .section-label::after { margin-left: auto; margin-right: auto; }
.signal__desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
}
.signal__form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
@media (max-width: 520px) { .signal__form { flex-direction: column; } }
.signal__input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.signal__input::placeholder { color: rgba(255,255,255,0.3); }
.signal__input:focus { border-color: rgba(0, 240, 255, 0.4); }
.signal__fine {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ===============================================
   ABOUT
   =============================================== */
.about { padding: 100px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.about__wrap { max-width: var(--max); margin: 0 auto; }
.about__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-bottom: 60px;
}
@media (max-width: 768px) { .about__grid { grid-template-columns: 1fr; } }
.about__block {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px 24px;
}
.about__block h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.about__block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}
.about__block p:last-child { margin-bottom: 0; }

.about__faq { max-width: 700px; }
.about__faq-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.faq__item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq__item summary {
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 0; top: 20px;
  font-family: var(--font-mono);
  font-size: 18px; color: var(--text-dim);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.faq__item a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  transition: border-color 0.2s;
}
.faq__item a:hover { border-color: var(--cyan); }

/* ===============================================
   FOOTER
   =============================================== */
.footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 0 24px; }
.footer__wrap {
  max-width: var(--max); margin: 0 auto; padding: 32px 0;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.footer__meta { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.footer__right { display: flex; gap: 20px; }
.footer__right a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__right a:hover { color: var(--white); }

/* ===============================================
   SCROLL REVEAL
   =============================================== */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ===============================================
   AMBIENT GLITCH (hero only)
   =============================================== */
@keyframes ambient-glitch {
  0%, 94%, 100% { opacity: 0; }
  95% { opacity: 1; clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  96% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
  97% { opacity: 0; }
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(0, 240, 255, 0.03) 50%, transparent 70%);
  animation: ambient-glitch 8s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}
.hero::before {
  content: ''; position: absolute; left: 0; right: 0;
  height: 1px;
  background: rgba(0, 240, 255, 0.2);
  z-index: 3; pointer-events: none;
  animation: h-line 6s ease-in-out infinite;
}
@keyframes h-line {
  0%, 88%, 100% { top: -1px; opacity: 0; }
  90% { top: 35%; opacity: 1; }
  92% { top: 65%; opacity: 0.6; }
  93% { top: 42%; opacity: 0; }
}

/* ===============================================
   INTERACTIVE EFFECTS
   =============================================== */
.entry__card, .book__edition, .about__block, .transmission {
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.entry__card:hover, .book__edition:hover, .about__block:hover, .transmission:hover {
  box-shadow: 4px 0 12px -3px rgba(0, 240, 255, 0.1), -4px 0 12px -3px rgba(255, 0, 64, 0.08);
  transform: translateY(-2px);
}

.interference {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none; opacity: 0;
}
.interference.active {
  animation: interference-flash 0.15s steps(2) forwards;
}
@keyframes interference-flash {
  0% { opacity: 1; background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0, 240, 255, 0.02) 3px, rgba(0, 240, 255, 0.02) 6px); }
  50% { opacity: 0.7; background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255, 0, 64, 0.025) 2px, rgba(255, 0, 64, 0.025) 4px); transform: translateX(1px); }
  100% { opacity: 0; }
}

.distort-active { animation: text-distort 0.12s steps(3) forwards; }
@keyframes text-distort {
  0% { transform: translateX(0); filter: none; }
  33% { transform: translateX(-4px) skewX(-1deg); filter: drop-shadow(4px 0 0 rgba(0,240,255,0.35)) drop-shadow(-4px 0 0 rgba(255,0,64,0.25)); }
  66% { transform: translateX(3px) skewX(0.5deg); filter: drop-shadow(-3px 0 0 rgba(0,240,255,0.25)) drop-shadow(3px 0 0 rgba(255,0,64,0.18)); }
  100% { transform: translateX(0); filter: none; }
}

/* ===============================================
   MOBILE OVERRIDES
   =============================================== */
@media (max-width: 768px) {
  body { font-size: 17px; }
  .hero__fracture { font-size: 16px; }
  .section-label { font-size: 16px; }
  .entry__card-title { font-size: 18px; }
  .book__edition-tag { font-size: 13px; }
  .hero__sub { font-size: 15px; }
  .book__desc { font-size: 18px; }
  .transmission__title { font-size: 21px; }
  .faq__item summary { font-size: 17px; }
}
