@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Serif:wght@400;600;700&display=swap");

:root {
  --bg-void: #020409;
  --bg-night: #06111d;
  --bg-ink: #0a1a2b;
  --bg-emerald-deep: #0c241f;
  --panel-dark: #0d1d2f;
  --panel-soft: #14344c;

  --gold: #d7b068;
  --gold-bright: #f3ddb1;
  --gold-faint: rgba(215, 176, 104, 0.28);
  --emerald: #2f7a63;
  --emerald-soft: #7ac2a5;
  --cream: #f2e8d4;
  --sand: #cdb083;
  --beige: #ab9368;

  --text-main: #f7eedc;
  --text-muted: #c5b291;
  --text-soft: #9f9076;

  --line-soft: rgba(228, 196, 134, 0.24);
  --line-strong: rgba(234, 204, 147, 0.52);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 28px 82px rgba(0, 0, 0, 0.58);

  --header-height: 76px;
  --container: min(1160px, 92vw);
  --measure-md: 68ch;
  --measure-sm: 52ch;
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --space-1: clamp(0.5rem, 1vw, 0.72rem);
  --space-2: clamp(0.72rem, 1.3vw, 0.98rem);
  --space-3: clamp(1rem, 1.8vw, 1.35rem);
  --space-4: clamp(1.45rem, 2.5vw, 2rem);
  --space-5: clamp(2rem, 3.8vw, 3rem);

  --spot-x: 50%;
  --spot-y: 38%;
}

:root[lang="ru"],
body[data-current-language="ru"] {
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
  --font-display: "Noto Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: var(--font-body);
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: clamp(15px, 0.28vw + 14px, 18px);
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% -5%, rgba(213, 168, 84, 0.22), transparent 42%),
    radial-gradient(circle at 92% 10%, rgba(30, 108, 83, 0.3), transparent 48%),
    radial-gradient(circle at 40% 100%, rgba(214, 178, 112, 0.08), transparent 42%),
    linear-gradient(162deg, var(--bg-void), var(--bg-night) 45%, var(--bg-ink) 66%, var(--bg-emerald-deep));
  line-height: 1.62;
  letter-spacing: 0.002em;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-copy strong {
  font-family: var(--font-display);
}

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

body::before {
  z-index: -3;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.24;
}

body::after {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(circle at 50% 100%, transparent 60%, rgba(0, 0, 0, 0.44) 100%);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 120;
  padding: 0.55rem 0.8rem;
  background: var(--gold-bright);
  color: #2a1b04;
  border-radius: var(--radius-xs);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

[data-section] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section::before {
  content: "";
  position: absolute;
  left: max(4vw, calc((100vw - var(--container)) / 2));
  right: max(4vw, calc((100vw - var(--container)) / 2));
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 205, 145, 0.26), transparent);
  pointer-events: none;
}

.kicker {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 4vw, 2.7rem);
}

.section-heading h2 {
  margin: 0.55rem 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.92rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  max-width: var(--measure-md);
}

[data-chapter] .section-heading {
  position: relative;
  padding-top: 1rem;
}

[data-chapter] .section-heading::before {
  content: attr(data-chapter);
  position: absolute;
  top: -0.5rem;
  right: 0;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1;
  font-weight: 800;
  color: rgba(236, 205, 145, 0.08);
  pointer-events: none;
}

[data-chapter] .section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(220px, 60vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(236, 205, 145, 0.78), transparent);
}

.section-heading h2,
.final-cta h2,
.hero h1 {
  text-wrap: balance;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  background: rgba(6, 11, 18, 0.88);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-soft), var(--gold), var(--gold-bright));
  box-shadow: 0 0 18px rgba(245, 218, 159, 0.72);
}

.atmosphere {
  position: fixed;
  inset: -12%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.46;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-a {
  width: clamp(260px, 32vw, 520px);
  aspect-ratio: 1;
  top: 2%;
  left: -6%;
  background: radial-gradient(circle, rgba(240, 216, 166, 0.78), transparent 68%);
}

.glow-b {
  width: clamp(220px, 24vw, 450px);
  aspect-ratio: 1;
  top: 34%;
  right: -8%;
  background: radial-gradient(circle, rgba(61, 145, 119, 0.62), transparent 70%);
  animation-duration: 22s;
}

.glow-c {
  width: clamp(240px, 26vw, 430px);
  aspect-ratio: 1;
  bottom: -10%;
  left: 24%;
  background: radial-gradient(circle, rgba(215, 176, 104, 0.5), transparent 72%);
  animation-duration: 20s;
}

.beam {
  --beam-angle: 0deg;
  position: absolute;
  width: 48vw;
  max-width: 580px;
  height: 180px;
  filter: blur(10px);
  opacity: 0.2;
  transform-origin: center;
  transform: rotate(var(--beam-angle));
  animation: beam-move 22s ease-in-out infinite alternate;
}

.beam-a {
  --beam-angle: -12deg;
  top: 7%;
  left: -8%;
  background: linear-gradient(100deg, rgba(238, 214, 166, 0.8), transparent 76%);
}

.beam-b {
  --beam-angle: 168deg;
  bottom: 18%;
  right: -12%;
  background: linear-gradient(100deg, rgba(118, 191, 165, 0.68), transparent 76%);
  animation-duration: 26s;
}

.pattern {
  position: absolute;
  border-radius: 999px;
  opacity: 0.22;
}

.pattern-a {
  inset: 5% auto auto 55%;
  width: 620px;
  height: 620px;
  background:
    radial-gradient(circle at center, transparent 31%, rgba(215, 176, 104, 0.24) 32%, transparent 33%),
    radial-gradient(circle at center, transparent 49%, rgba(239, 228, 203, 0.2) 50%, transparent 51%);
  animation: spin-slow 52s linear infinite;
}

.pattern-b {
  inset: 50% auto auto -8%;
  width: 520px;
  height: 520px;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(39, 86, 67, 0.42) 0deg 8deg,
      transparent 8deg 16deg
    );
  filter: blur(0.5px);
  animation: spin-slow 68s linear infinite reverse;
}

.dust {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(242, 227, 190, 0.5) 0.75px, transparent 1px);
  background-size: 118px 118px;
  opacity: 0.3;
  animation: dust-shift 30s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 11, 18, 0.72);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.language-switcher {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.language-switcher__trigger {
  min-width: 3.25rem;
  height: 2.9rem;
  padding: 0 0.78rem;
  border: 1px solid rgba(231, 204, 150, 0.35);
  border-radius: 999px;
  background: rgba(9, 16, 25, 0.72);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
}

.language-switcher__trigger:hover {
  border-color: var(--line-strong);
  background: rgba(14, 24, 37, 0.82);
  transform: translateY(-1px);
}

.language-switcher__trigger:focus-visible {
  outline-offset: 4px;
}

.language-switcher__flag {
  font-size: 1.08rem;
  line-height: 1;
}

.language-switcher__current {
  font-size: 0.92rem;
  line-height: 1;
  color: var(--text-main);
  white-space: nowrap;
}

.language-switcher__caret {
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.24s ease;
}

.language-switcher.is-open .language-switcher__caret {
  transform: translateY(1px) rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 85;
  min-width: 220px;
  padding: 0.48rem;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius-sm) + 2px);
  background: linear-gradient(160deg, rgba(13, 27, 42, 0.98), rgba(16, 36, 32, 0.96));
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 0.24rem;
}

.language-menu[hidden] {
  display: none;
}

.language-menu__option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.78rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.language-menu__option:hover,
.language-menu__option:focus-visible,
.language-menu__option.is-active {
  background: rgba(215, 176, 104, 0.14);
  color: var(--text-main);
}

.language-menu__flag {
  font-size: 1.02rem;
  line-height: 1;
}

.language-menu__option[lang="ru"] .language-menu__name {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
}

.language-menu__check {
  color: var(--gold-bright);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.language-menu__option.is-active .language-menu__check {
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--gold-bright);
  background: radial-gradient(circle at 30% 30%, rgba(215, 176, 104, 0.4), rgba(8, 20, 34, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 15px rgba(214, 177, 107, 0.26);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.menu-toggle {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(231, 204, 150, 0.35);
  border-radius: 0.7rem;
  background: rgba(9, 16, 25, 0.72);
  display: inline-grid;
  place-content: center;
  gap: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.25rem;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: calc(var(--header-height) + 6px) 4vw auto;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(13, 27, 42, 0.97), rgba(16, 36, 32, 0.94));
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 0.35rem;
  transform: translateY(-8px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.main-nav.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text-main);
  background: rgba(215, 176, 104, 0.16);
}

.hero {
  min-height: max(670px, calc(100svh - var(--header-height)));
  display: grid;
  align-items: center;
  padding-top: clamp(5rem, 7vw, 7.2rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(216, 178, 105, 0.1), transparent 45%),
    radial-gradient(circle at 84% 27%, rgba(122, 194, 165, 0.14), transparent 42%);
  z-index: -1;
}

.hero-spotlight {
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  left: var(--spot-x);
  top: var(--spot-y);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(238, 208, 147, 0.2), transparent 66%);
  filter: blur(12px);
  opacity: 0.72;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 1.45rem;
}

.hero h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.15rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero .lead {
  margin: 0;
  font-size: clamp(1rem, 2.7vw, 1.21rem);
  color: var(--text-muted);
  max-width: var(--measure-md);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions--hero {
  align-items: center;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.32), transparent 65%);
  transform: translateX(-70%);
  transition: transform 0.75s ease;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(70%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #28190a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 24px rgba(206, 166, 90, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(206, 166, 90, 0.46), 0 0 20px rgba(240, 216, 166, 0.38);
}

.btn-outline {
  color: var(--text-main);
  border-color: var(--line-strong);
  background: rgba(10, 18, 27, 0.5);
}

.btn-outline:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(244, 219, 169, 0.18), 0 8px 24px rgba(0, 0, 0, 0.32);
}

.btn-ghost {
  color: var(--gold-bright);
  border-color: transparent;
  background: transparent;
  padding-inline: 0.25rem;
  min-height: 2.2rem;
}

.btn-ghost::before {
  display: none;
}

.btn-ghost:hover {
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.35rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 221, 177, 0), rgba(243, 221, 177, 0.9), rgba(243, 221, 177, 0));
}

.trust-badges {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-badges li {
  padding: 0.44rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 199, 140, 0.36);
  background: rgba(9, 17, 28, 0.56);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-verse-chip {
  margin-top: 1rem;
  max-width: 600px;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(236, 205, 145, 0.28);
  background: linear-gradient(112deg, rgba(215, 176, 104, 0.12), rgba(10, 19, 30, 0.65) 50%, rgba(19, 45, 37, 0.62));
}

.hero-micro-note {
  margin: 0.72rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verse-line {
  margin: 0;
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(0.93rem, 2.2vw, 1.02rem);
}

.verse-source {
  margin: 0.22rem 0 0;
  color: var(--sand);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(165deg, rgba(17, 37, 56, 0.96), rgba(14, 37, 33, 0.88)),
    radial-gradient(circle at top right, rgba(215, 176, 104, 0.18), transparent 58%);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-strong);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(244, 219, 169, 0.2), transparent 38%),
    linear-gradient(-130deg, rgba(122, 194, 165, 0.2), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.orbital {
  position: absolute;
  width: clamp(230px, 36vw, 340px);
  aspect-ratio: 1;
  top: -18%;
  right: -12%;
  pointer-events: none;
  opacity: 0.36;
}

.orbital span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(236, 205, 145, 0.34);
  border-radius: 50%;
  animation: spin-slow 26s linear infinite;
}

.orbital span:nth-child(2) {
  inset: 14%;
  animation-duration: 20s;
  animation-direction: reverse;
}

.orbital span:nth-child(3) {
  inset: 31%;
  animation-duration: 14s;
}

.panel-kicker {
  margin: 0;
  color: var(--gold-bright);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-panel h2 {
  margin: 0.5rem 0 0.55rem;
  font-size: clamp(1.25rem, 3vw, 1.72rem);
}

.hero-panel p {
  margin: 0;
  color: var(--text-muted);
}

.hero-panel blockquote {
  margin: 1rem 0 0.35rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  color: var(--cream);
  font-size: 1rem;
}

.hero-panel .source {
  margin-top: 0.2rem;
  color: var(--sand);
  font-size: 0.8rem;
}

.hero-lines {
  position: absolute;
  inset: auto -15vw 7% -15vw;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hero-lines span {
  display: block;
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(243, 213, 155, 0.56), transparent);
  animation: pulse-line 3.7s ease-in-out infinite;
}

.hero-lines span:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-lines span:nth-child(3) {
  animation-delay: 1s;
}

.trust-band {
  padding-top: 0.8rem;
}

.trust-band::before {
  opacity: 0;
}

.trust-band-inner {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(95deg, rgba(215, 176, 104, 0.1), rgba(10, 24, 36, 0.92) 30%, rgba(16, 44, 36, 0.9));
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
}

.trust-label {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.trust-band ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.trust-band li {
  position: relative;
  padding: 0.42rem 0.66rem 0.42rem 1.22rem;
  border: 1px solid rgba(215, 176, 104, 0.32);
  border-radius: 999px;
  font-size: 0.79rem;
  color: var(--text-muted);
  background: rgba(9, 16, 25, 0.62);
}

.trust-band li::before {
  content: "";
  position: absolute;
  left: 0.56rem;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(215, 176, 104, 0.7);
}

.pathfinder {
  padding-top: 1rem;
}

.pathfinder::before {
  opacity: 0;
}

.pathfinder-shell {
  display: grid;
  gap: 1.15rem;
}

.pathfinder-intro {
  max-width: 760px;
}

.pathfinder-intro h2 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.pathfinder-intro p:last-child {
  margin: 0;
  color: var(--text-muted);
  max-width: var(--measure-md);
}

.pathfinder-grid {
  display: grid;
  gap: 1rem;
}

.path-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.3rem 1.08rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(158deg, rgba(17, 33, 49, 0.94), rgba(13, 34, 31, 0.84)),
    radial-gradient(circle at top right, rgba(215, 176, 104, 0.16), transparent 48%);
  box-shadow: var(--shadow-soft);
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(243, 221, 177, 0.18), transparent 30%),
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 35%), rgba(122, 194, 165, 0.14), transparent 42%);
}

.path-card__badge {
  margin: 0;
  display: inline-flex;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 205, 145, 0.26);
  background: rgba(10, 18, 27, 0.52);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 0.85rem 0 0.55rem;
  font-size: 1.3rem;
  line-height: 1.18;
}

.path-card p {
  margin: 0;
  color: var(--text-muted);
}

.path-card ul {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.path-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--cream);
  font-size: 0.92rem;
}

.path-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-soft), var(--gold));
  box-shadow: 0 0 12px rgba(243, 221, 177, 0.45);
}

.path-card .inline-link {
  margin-top: 1rem;
}

.card-grid,
.critique-grid,
.article-grid {
  display: grid;
  gap: 1rem;
}

.info-card,
.critique-card,
.article-card,
.timeline-step,
.manuscript {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(15, 31, 48, 0.9), rgba(12, 30, 28, 0.8));
  box-shadow: var(--shadow-soft);
}

.info-card,
.article-card,
.timeline-step,
.critique-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --card-x: 50%;
  --card-y: 35%;
  padding: 1.22rem 1.02rem;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.info-card::before,
.article-card::before,
.timeline-step::before,
.critique-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--card-x) var(--card-y), rgba(242, 215, 160, 0.23), transparent 45%),
    linear-gradient(140deg, rgba(215, 176, 104, 0.16), transparent 36%);
}

.info-card::after,
.article-card::after,
.timeline-step::after,
.critique-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-md) - 2px);
  border: 1px solid rgba(242, 215, 160, 0.12);
  pointer-events: none;
}

.info-card:hover,
.article-card:hover,
.timeline-step:hover,
.critique-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.46), 0 0 28px rgba(215, 176, 104, 0.12);
}

.info-card h3,
.critique-card h3,
.article-card h3,
.timeline-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.14rem;
  line-height: 1.25;
}

.info-card p,
.critique-card p,
.article-card p,
.timeline-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.66;
}

.source {
  margin-top: 0.64rem !important;
  color: var(--sand) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
}

.section-contrast {
  background:
    linear-gradient(180deg, rgba(8, 18, 29, 0.3), rgba(9, 22, 35, 0.74) 28%, rgba(8, 18, 29, 0.3)),
    radial-gradient(circle at 50% 50%, rgba(215, 176, 104, 0.08), transparent 74%);
}

.critique-card strong {
  color: var(--cream);
}

.critique-card p + p {
  margin-top: 0.43rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.84rem;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.91rem;
}

.inline-link::after {
  content: "->";
  font-size: 0.87rem;
  transition: transform 0.22s ease;
}

.inline-link:hover::after {
  transform: translateX(4px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.95rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(215, 176, 104, 0.2);
}

.timeline-progress {
  position: absolute;
  left: 1.1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  pointer-events: none;
}

.timeline-progress > span {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: var(--timeline-progress, 0%);
  background: linear-gradient(180deg, rgba(242, 215, 160, 0.14), rgba(242, 215, 160, 0.96));
  box-shadow: 0 0 16px rgba(242, 215, 160, 0.55);
  transition: height 0.16s linear;
}

.timeline-step {
  padding-left: 3.15rem;
}

.step-num {
  position: absolute;
  left: 0.2rem;
  top: 1rem;
  width: 1.82rem;
  height: 1.82rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2b1d07;
  font-weight: 700;
  font-size: 0.73rem;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 0 6px rgba(17, 37, 56, 0.78), 0 0 14px rgba(242, 215, 160, 0.42);
}

.article-card .cat {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.article-card h3 {
  margin-top: 0.52rem;
}

.meta-row {
  margin-top: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.meta-row span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.manuscript {
  padding: clamp(1.2rem, 3vw, 1.9rem);
  display: grid;
  gap: 1.15rem;
  background:
    linear-gradient(145deg, rgba(20, 39, 53, 0.93), rgba(20, 40, 34, 0.88)),
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.032) 0 8px,
      rgba(255, 255, 255, 0) 8px 16px
    );
}

.manuscript h2 {
  margin: 0.62rem 0 0.7rem;
  font-size: clamp(1.52rem, 4vw, 2.16rem);
}

.manuscript p {
  margin: 0;
  color: var(--text-muted);
}

.manuscript ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.54rem;
}

.manuscript li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--cream);
}

.manuscript li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(229, 191, 117, 0.62);
}

.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 176, 104, 0.24), transparent 56%),
    linear-gradient(180deg, rgba(8, 19, 30, 0.18), rgba(8, 19, 30, 0.74));
}

.final-cta h2 {
  margin: 0.55rem 0 0.85rem;
  font-size: clamp(1.9rem, 4.8vw, 3.22rem);
}

.final-cta p {
  margin: 0 auto;
  max-width: var(--measure-md);
  color: var(--text-muted);
}

.final-cta .hero-actions {
  justify-content: center;
}

.cta-actions {
  margin-top: 1.18rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(231, 204, 150, 0.18);
  background: rgba(7, 13, 20, 0.84);
}

.page-body .scroll-progress,
.page-body .atmosphere,
.page-body .hero-lines,
.page-body .menu-toggle {
  display: none;
}

.main-nav-static {
  position: static;
  inset: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.22rem;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.main-nav-static a {
  padding: 0.5rem 0.72rem;
  border-radius: 10px;
}

.doc-main {
  padding-top: 1rem;
}

.doc-hero {
  padding-top: clamp(4.4rem, 8vw, 6.5rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.1rem);
}

.doc-hero h1 {
  margin: 0.56rem 0 0.82rem;
  font-size: clamp(1.95rem, 6vw, 3.28rem);
  line-height: 1.07;
  max-width: 20ch;
}

.doc-lead {
  margin: 0;
  max-width: var(--measure-md);
  color: var(--text-muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.doc-shell {
  display: grid;
  gap: 1rem;
}

.doc-block {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(15, 31, 48, 0.9), rgba(12, 30, 28, 0.8));
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1rem;
}

.doc-block h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
}

.doc-block p {
  margin: 0;
  color: var(--text-muted);
}

.doc-sources {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.doc-sources li + li {
  margin-top: 0.35rem;
}

.article-page .site-header {
  background: rgba(6, 11, 18, 0.72);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.article-page .site-header::after {
  opacity: 1;
}

.article-main {
  padding-top: 0.5rem;
}

.article-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(4.8rem, 8vw, 6.8rem);
  padding-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(216, 178, 105, 0.12), transparent 46%),
    radial-gradient(circle at 84% 28%, rgba(122, 194, 165, 0.15), transparent 44%);
  z-index: -1;
}

.article-hero-grid {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

.article-hero-copy h1 {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(2rem, 6.2vw, 4rem);
  line-height: 1.06;
  max-width: 18ch;
}

.article-meta-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.article-meta-chip {
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 199, 140, 0.28);
  background: rgba(9, 16, 25, 0.62);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.article-hero-panel {
  min-height: 100%;
}

.article-hero-panel__meta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(242, 215, 160, 0.12);
}

.article-hero-panel__label {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.article-hero-panel__source {
  margin: 0.35rem 0 0;
  color: var(--sand);
  font-size: 0.86rem;
}

.article-layout-section {
  padding-top: clamp(1.2rem, 3vw, 2rem);
}

.article-layout {
  display: grid;
  gap: 1rem;
}

.article-toc-mobile,
.article-sidebar-card,
.article-section,
.article-source-item,
.article-journey-card,
.article-mini-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(15, 31, 48, 0.9), rgba(12, 30, 28, 0.8));
  box-shadow: var(--shadow-soft);
}

.article-toc-mobile {
  overflow: hidden;
}

.article-toc-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.article-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.article-toc-mobile summary::after {
  content: "+";
  float: right;
  color: var(--gold-bright);
}

.article-toc-mobile[open] summary::after {
  content: "-";
}

.article-toc-mobile .article-toc {
  padding: 0 1rem 1rem;
}

.article-sidebar {
  display: none;
}

.article-sidebar-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.article-sidebar-card::before,
.article-section::before,
.article-mini-card::before,
.article-source-item::before,
.article-journey-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 78% 18%, rgba(242, 215, 160, 0.14), transparent 38%),
    linear-gradient(140deg, rgba(215, 176, 104, 0.08), transparent 42%);
}

.article-sidebar-card__label,
.article-section__eyebrow,
.article-source-item__type {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.article-sidebar-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.article-sidebar-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-sidebar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(215, 176, 104, 0.55);
}

.article-toc {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.28rem;
}

.article-toc a {
  display: block;
  padding: 0.68rem 0.78rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(8, 16, 25, 0.36);
  border: 1px solid transparent;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--text-main);
  border-color: rgba(242, 215, 160, 0.2);
  background: rgba(215, 176, 104, 0.12);
  transform: translateX(3px);
}

.article-detail {
  display: grid;
  gap: 1rem;
}

.article-section {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1rem;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.article-section--compact {
  padding: 1.08rem 1rem;
}

.article-section__header {
  margin-bottom: 1rem;
}

.article-section__header h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.article-prose {
  color: var(--text-muted);
}

.article-prose p {
  margin: 0;
  max-width: var(--measure-md);
}

.article-prose p + p {
  margin-top: 0.85rem;
}

.article-prose strong {
  color: var(--cream);
}

.article-cluster {
  margin: 1rem 0;
  display: grid;
  gap: 0.85rem;
}

.article-mini-card,
.article-source-item,
.article-journey-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.article-mini-card h3,
.article-source-item h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.28;
  color: var(--cream);
}

.article-mini-card p,
.article-source-item p {
  margin: 0;
  color: var(--text-muted);
}

.article-callout {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 215, 160, 0.18);
  background: rgba(7, 15, 24, 0.58);
}

.article-callout p {
  max-width: none;
}

.article-callout__eyebrow {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.article-callout__source {
  margin-top: 0.7rem !important;
  color: var(--sand);
  font-size: 0.83rem;
}

.article-callout--quran {
  background: linear-gradient(140deg, rgba(215, 176, 104, 0.12), rgba(7, 16, 25, 0.72));
}

.article-callout--hadith {
  background: linear-gradient(140deg, rgba(122, 194, 165, 0.12), rgba(7, 16, 25, 0.72));
  border-color: rgba(122, 194, 165, 0.18);
}

.article-callout--note {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.035), rgba(7, 16, 25, 0.72));
}

.article-callout--takeaway {
  background: linear-gradient(140deg, rgba(215, 176, 104, 0.16), rgba(19, 44, 36, 0.7));
}

.article-summary-grid,
.article-source-list,
.article-journey-grid {
  display: grid;
  gap: 0.85rem;
}

.article-faq-list {
  display: grid;
  gap: 0.7rem;
}

.article-faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 215, 160, 0.12);
  background: rgba(8, 16, 25, 0.42);
  overflow: hidden;
}

.article-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--cream);
}

.article-faq-item summary::-webkit-details-marker {
  display: none;
}

.article-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-bright);
}

.article-faq-item[open] summary::after {
  content: "-";
}

.article-faq-item__body {
  padding: 0 1rem 1rem;
}

.article-faq-item__body p {
  margin: 0;
  color: var(--text-muted);
}

.article-source-list {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.article-journey-grid {
  margin-top: 0.2rem;
}

.article-journey-card {
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.article-journey-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

.article-journey-card__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold-bright);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.article-journey-card strong {
  display: block;
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.35;
}

.article-actions-bottom {
  margin-top: 1rem;
}

.article-related-grid {
  margin-top: 0.2rem;
}

.article-scroll-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: 1rem;
  z-index: 90;
  min-height: 2.8rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(243, 221, 177, 0.2);
  border-radius: 999px;
  background: rgba(9, 16, 25, 0.88);
  color: var(--gold-bright);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.article-scroll-top:hover {
  border-color: var(--line-strong);
}

.article-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.article-empty-state {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(17, 37, 56, 0.96), rgba(14, 37, 33, 0.88));
  box-shadow: var(--shadow-strong);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  max-width: var(--measure-sm);
}

.source-note {
  margin-top: 0.65rem !important;
  color: var(--sand) !important;
  font-size: 0.84rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

/* Reveal and micro-motion states */
.reveal {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-shift: 0px;
  opacity: 0;
  transform: translate3d(0, 26px, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translateY(var(--tilt-shift));
  transition: opacity 0.65s ease, transform 0.78s cubic-bezier(0.21, 0.98, 0.24, 1),
    border-color 0.32s ease, box-shadow 0.32s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translateY(var(--tilt-shift));
}

.tilt-card:hover {
  --tilt-shift: -6px;
}

@media (min-width: 640px) {
  .pathfinder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .manuscript {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .article-cluster--two,
  .article-summary-grid,
  .article-source-list,
  .article-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    align-items: center;
    gap: 1.85rem;
  }

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

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

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

  .timeline::before,
  .timeline-progress {
    left: 50%;
    transform: translateX(-1px);
  }

  .timeline-step {
    min-height: 178px;
    padding-left: 3.25rem;
  }

  .timeline-step:nth-child(odd) {
    margin-right: 1.15rem;
  }

  .timeline-step:nth-child(even) {
    margin-left: 1.15rem;
  }

  .timeline-step:nth-child(odd) .step-num,
  .timeline-step:nth-child(even) .step-num {
    left: -0.94rem;
  }

  .article-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 1.35rem;
  }

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

@media (min-width: 980px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    inset: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.22rem;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 0.52rem 0.74rem;
    font-size: 0.9rem;
  }

  .language-switcher {
    margin-left: 0;
  }

  .hero {
    padding-top: 6.25rem;
  }

  .hero-actions .btn {
    min-height: 3rem;
    padding-inline: 1.24rem;
  }

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

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

  .article-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 1.2rem;
  }

  .article-sidebar {
    display: grid;
    gap: 1rem;
  }

  .article-sidebar-card {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }

  .article-toc-mobile {
    display: none;
  }
}

@media (max-width: 979px) {
  body.menu-open {
    overflow: hidden;
  }

  [data-chapter] .section-heading::before {
    right: auto;
    left: 0;
    font-size: clamp(2.3rem, 16vw, 4rem);
    top: -0.15rem;
  }

  .hero {
    min-height: max(640px, calc(100svh - var(--header-height)));
  }

  .hero-actions--hero .btn-primary {
    width: 100%;
  }

  .main-nav-static {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav-static a {
    white-space: nowrap;
  }

  .article-scroll-top {
    bottom: 0.85rem;
  }

  .language-menu {
    min-width: min(220px, calc(100vw - 2rem));
  }
}

:root[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

:root[dir="rtl"] .language-menu__option,
:root[dir="rtl"] .main-nav a,
:root[dir="rtl"] .main-nav-static a,
:root[dir="rtl"] .footer-links a {
  text-align: right;
}

@media (hover: none), (pointer: coarse) {
  .info-card:hover,
  .article-card:hover,
  .timeline-step:hover,
  .critique-card:hover,
  .btn:hover,
  .article-journey-card:hover {
    transform: none;
  }

  .hero-lines span {
    animation-duration: 5.4s;
  }

  .glow,
  .beam,
  .pattern-a,
  .pattern-b,
  .dust {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-8px, -6px, 0);
  }

  to {
    transform: translate3d(18px, 12px, 0);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleX(0.8);
  }

  50% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes dust-shift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-60px, -30px, 0);
  }
}

@keyframes beam-move {
  from {
    transform: rotate(var(--beam-angle)) translate3d(0, 0, 0) scaleX(1);
  }

  to {
    transform: rotate(var(--beam-angle)) translate3d(28px, 12px, 0) scaleX(1.06);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-spotlight {
    display: none;
  }
}

/* ============================================================
   Bibliothek, Themen & Breadcrumb (additiv, gleiche Designsprache)
   ============================================================ */

/* Breadcrumb — Artikel › Thema [› Unterthema] */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.22s ease;
}

.breadcrumb a:hover {
  color: var(--gold-bright);
}

.breadcrumb a[aria-current="page"],
.breadcrumb span[aria-current="page"] {
  color: var(--cream);
}

.breadcrumb__sep {
  color: var(--text-soft);
  opacity: 0.7;
}

.article-breadcrumb {
  margin-bottom: 0.9rem;
}

/* Filter-Chips auf der Artikel-Bibliothek */
.library-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.7rem;
}

.library-chip {
  appearance: none;
  cursor: pointer;
  padding: 0.5rem 1.02rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(13, 29, 47, 0.6);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.library-chip:hover {
  color: var(--cream);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.library-chip.is-active {
  color: var(--bg-night);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
}

.articles-cta {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
}

/* Themen-Übersicht & Themenseiten */
.topic-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(15, 31, 48, 0.9), rgba(12, 30, 28, 0.8));
  box-shadow: var(--shadow-soft);
  padding: 1.22rem 1.02rem;
  position: relative;
  isolation: isolate;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.topic-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.46), 0 0 28px rgba(215, 176, 104, 0.12);
}

.topic-card .cat {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.topic-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.16rem;
  line-height: 1.25;
  color: var(--text-main);
}

.topic-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.topic-card__cta {
  margin-top: 0.7rem;
}

.topic-subgrid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin: 0.4rem 0 2rem;
}

.topic-intro {
  margin-bottom: 1.8rem;
}

.topic-empty {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.topic-more {
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
}

.topic-more h2 {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
}

/* Geplante, noch nicht befüllte Themen */
.topics-upcoming {
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
}

.topics-upcoming h2 {
  margin: 0 0 0.5rem;
  font-size: 1.16rem;
}

.topics-upcoming p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.topics-upcoming__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topics-upcoming__list li {
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  border: 1px dashed var(--line-soft);
  color: var(--text-soft);
  font-size: 0.84rem;
}

@media (min-width: 620px) {
  .topic-grid,
  .topic-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
