:root {
  --bg: #08050f;
  --bg-soft: #110a19;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f2ff;
  --muted: rgba(247, 242, 255, 0.72);
  --accent: #ff9d57;
  --accent-2: #ff6b2d;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --header-h: 84px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(115, 70, 25, 0.12), transparent 30%),
    linear-gradient(to bottom, #06030b, #0b0611 30%, #07040d);
  color: var(--text);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.site-loaded {
  opacity: 1;
}

body.site-leaving {
  opacity: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    radial-gradient(circle at center, rgba(255, 143, 61, 0.08), transparent 42%),
    linear-gradient(to bottom, rgba(8, 6, 16, 0.08), rgba(8, 6, 16, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.site-leaving .page-transition {
  opacity: 1;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-dark {
  background:
    linear-gradient(to bottom, rgba(9, 6, 16, 0.98), rgba(10, 7, 18, 0.98));
}

.section-gradient {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 144, 58, 0.09), transparent 30%),
    linear-gradient(to bottom, #0c0713, #140b17);
}

.section-accent {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 132, 55, 0.12), transparent 35%),
    linear-gradient(to bottom, #120a18, #0a0610);
  padding: 90px 0;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 192, 140, 0.92);
}

.eyebrow {
  margin-bottom: 1rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-head h2,
.intro-grid h2,
.book-copy h2,
.about-copy h2,
.contact-copy h2,
.signal-copy h2,
.page-hero-inner h1 {
  font-family: "Orbitron", sans-serif;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 0.8rem 0 1rem;
}

.section-head p,
.intro-grid p,
.book-copy p,
.about-copy p,
.contact-copy p,
.signal-copy p,
.page-hero-inner p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header-solid {
  background: rgba(7, 5, 12, 0.82);
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-main {
  color: #ffffff;
}

.brand-accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 157, 87, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav:hover a {
  opacity: 0.72;
}

.site-nav a,
.footer-links a,
.mobile-menu a,
.social-links a {
  color: rgba(255, 255, 255, 0.82);
  transition:
    color 0.28s ease,
    text-shadow 0.28s ease,
    opacity 0.28s ease;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  overflow: visible;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 157, 87, 0),
    rgba(255, 183, 127, 1),
    rgba(255, 107, 45, 0)
  );
  box-shadow:
    0 0 10px rgba(255, 157, 87, 0.35),
    0 0 20px rgba(255, 107, 45, 0.18);
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.site-nav a::after {
  content: "✦";
  position: absolute;
  top: -0.6rem;
  right: -0.8rem;
  font-size: 0.55rem;
  color: rgba(255, 200, 140, 0.9);
  opacity: 0;
  transform: translateY(4px) scale(0.8);
  text-shadow:
    0 0 8px rgba(255, 183, 127, 0.35),
    0 0 16px rgba(255, 157, 87, 0.18);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
}

.site-nav a:hover {
  color: #fff;
  opacity: 1;
  text-shadow:
    0 0 10px rgba(255, 183, 127, 0.22),
    0 0 20px rgba(255, 107, 45, 0.12);
}

.site-nav a:hover::before {
  width: 115%;
  opacity: 1;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer-links a:hover,
.mobile-menu a:hover,
.social-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 183, 127, 0.18);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  cursor: pointer;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow:
    0 14px 30px rgba(255, 107, 45, 0.18),
    0 0 26px rgba(255, 122, 58, 0.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  backdrop-filter: blur(10px);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(255, 157, 87, 0.12);
  filter: brightness(1.03);
}

.btn-primary:hover {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 15px rgba(255,140,90,0.4),
    0 0 30px rgba(255,90,46,0.2);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: white;
  transition: 0.3s ease;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 5, 12, 0.95);
  backdrop-filter: blur(16px);
  padding: 1rem;
}

.mobile-menu.open {
  display: grid;
  gap: 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #05030a;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.layer,
.hero-stars,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.sky {
  background-image: url("desert_viber_sky_layer.png");
  z-index: 1;
}

.mid {
  background-image: url("desert_viber_mid_layer.png");
  z-index: 2;
}

.front {
  background-image: url("desert_viber_foreground_layer.png");
  z-index: 3;
}

.hero-stars {
  z-index: 4;
  opacity: 0.35;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 15%, rgba(255,255,255,0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 30%, rgba(255,255,255,0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35) 0 1px, transparent 2px);
  background-size: 280px 280px, 340px 340px, 420px 420px, 300px 300px;
  animation: shimmer 8s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: 5;
  background:
    linear-gradient(to bottom, rgba(7, 5, 12, 0.15), rgba(7, 5, 12, 0.42), rgba(4, 3, 8, 0.92)),
    radial-gradient(circle at 65% 35%, rgba(255, 135, 43, 0.08), transparent 28%);
}

.hero-inner {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  align-items: end;
  gap: 2.5rem;
  width: 100%;
  padding-bottom: 6rem;
}

.hero-copy {
  max-width: 760px;
  will-change: transform;
}

.hero-copy h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3.2rem, 7.8vw, 7rem);
  line-height: 0.96;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow:
    0 0 16px rgba(255, 147, 62, 0.14),
    0 0 36px rgba(255, 147, 62, 0.08),
    0 10px 34px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 span {
  display: block;
  color: #ffb77f;
  text-shadow:
    0 0 18px rgba(255, 175, 113, 0.28),
    0 0 44px rgba(255, 117, 45, 0.12);
}

.hero-copy p {
  max-width: 680px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  padding: 1.4rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(255, 145, 57, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-panel h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.hero-panel p,
.signal-list li {
  color: var(--muted);
  line-height: 1.7;
}

.signal-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.signal-list li {
  position: relative;
  padding-left: 1.2rem;
}

.signal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(255, 145, 57, 0.28);
}

.scroll-indicator {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
}

.intro-band {
  padding: 2.5rem 0 4rem;
  background: linear-gradient(to bottom, #07040c, #0b0611);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: end;
}

.section-action {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.card-link {
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.gallery-card {
  grid-column: span 4;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.35s ease;
  isolation: isolate;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 3, 8, 0.3), transparent 38%);
  z-index: 1;
  pointer-events: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 145, 57, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(255, 183, 127, 0.24);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 183, 127, 0.06),
    0 0 32px rgba(255, 145, 57, 0.08);
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-card.tall {
  grid-column: span 5;
}

.gallery-card.wide {
  grid-column: span 7;
}

.card-image {
  min-height: 300px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-card.tall .card-image {
  min-height: 420px;
}

.gallery-card.wide .card-image {
  min-height: 320px;
}

.card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 7, 16, 0.06), transparent 35%),
    linear-gradient(to top, rgba(5, 4, 8, 0.72), rgba(5, 4, 8, 0.12) 45%, rgba(5, 4, 8, 0.04));
  z-index: 1;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 186, 116, 0.16), transparent 22%),
    radial-gradient(circle at 78% 82%, rgba(255, 111, 41, 0.12), transparent 24%);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.gallery-card:hover .card-image {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.04);
}

.card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem;
  z-index: 3;
}

.card-content h3 {
  margin-bottom: 0.55rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.16rem;
  letter-spacing: 0.03em;
  text-shadow: 0 6px 16px rgba(0,0,0,0.34);
}

.card-content p {
  color: rgba(255,255,255,0.82);
  line-height: 1.72;
  max-width: 92%;
  text-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.image-one {
  background:
    linear-gradient(rgba(12, 8, 18, 0.08), rgba(12, 8, 18, 0.44)),
    url("desert-viber-dune-light.png") center 42% / cover no-repeat;
}

.image-two {
  background:
    linear-gradient(rgba(8, 7, 16, 0.12), rgba(8, 7, 16, 0.5)),
    url("desert-viber-night-signal.png") center center / cover no-repeat;
}

.image-three {
  background:
    linear-gradient(rgba(12, 8, 18, 0.1), rgba(12, 8, 18, 0.42)),
    url("desert-viber-field-portraits.png") center 58% / cover no-repeat;
}

.image-four {
  background:
    linear-gradient(rgba(10, 7, 16, 0.12), rgba(10, 7, 16, 0.48)),
    url("desert-viber-expedition-archive.png") center center / cover no-repeat;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.orbit-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.milestone-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.milestone {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: start;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.milestone:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 183, 127, 0.22);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.24),
    0 0 24px rgba(255, 145, 57, 0.06);
}

.milestone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.02), transparent 35%);
  pointer-events: none;
}

.milestone span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 157, 87, 0.22), rgba(255, 107, 45, 0.14));
  border: 1px solid rgba(255, 157, 87, 0.25);
  font-family: "Orbitron", sans-serif;
  color: #ffbe90;
  box-shadow: 0 0 18px rgba(255, 145, 57, 0.08);
}

.milestone h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.milestone p {
  color: var(--muted);
  line-height: 1.7;
}

.chapter-drop-section {
  position: relative;
  overflow: hidden;
}

.chapter-reader {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.chapter-reader-shell {
  position: relative;
  border-radius: 30px;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.35),
    0 0 30px rgba(255, 145, 57, 0.05);
  overflow: hidden;
}

.chapter-reader-shell::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 145, 57, 0.12), transparent 70%);
  pointer-events: none;
}

.chapter-paper {
  position: relative;
  min-height: 720px;
  border-radius: 24px;
  overflow: hidden;
  padding: 3rem clamp(1.2rem, 3vw, 3rem);
  background:
    linear-gradient(rgba(255, 243, 223, 0.04), rgba(255, 243, 223, 0.04)),
    url("desert-viber-chapter-paper.png") center / cover no-repeat;
  border: 1px solid rgba(90, 55, 24, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 -80px 120px rgba(94, 48, 17, 0.06);
}

.chapter-flicker,
.chapter-glitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.chapter-flicker {
  opacity: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.01) 14%,
      rgba(0,0,0,0.02) 26%,
      rgba(255,255,255,0.03) 44%,
      rgba(0,0,0,0.03) 61%,
      rgba(255,255,255,0.02)
    );
  mix-blend-mode: soft-light;
}

.chapter-glitch {
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 163, 88, 0.06) 48%, transparent 100%);
  transform: translateX(-100%);
}

.chapter-reader.is-switching .chapter-flicker {
  animation: chapterFlicker 0.45s ease;
}

.chapter-reader.is-switching .chapter-glitch {
  animation: chapterGlitch 0.45s ease;
}

.chapter-header,
.chapter-content-wrap,
.chapter-footer {
  position: relative;
  z-index: 2;
}

.chapter-header {
  margin-bottom: 1.8rem;
}

.chapter-header-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.chapter-meta,
.chapter-save-status {
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-meta {
  color: rgba(72, 37, 15, 0.82);
}

.chapter-save-status {
  color: rgba(104, 57, 24, 0.68);
}

.chapter-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.08;
  color: #4f2d18;
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

.chapter-content-wrap {
  min-height: 420px;
  padding: 1rem 0 2rem;
}

.chapter-content {
  color: #442716;
  font-size: 1.08rem;
  line-height: 1.95;
  white-space: pre-line;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chapter-content.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.chapter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(94, 54, 22, 0.14);
}

.chapter-arrow {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(79, 45, 24, 0.22);
  background: rgba(255, 247, 235, 0.35);
  color: #4f2d18;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.chapter-arrow span {
  font-size: 1.25rem;
  line-height: 1;
}

.chapter-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 245, 229, 0.52);
  border-color: rgba(79, 45, 24, 0.34);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.12),
    0 0 16px rgba(255, 145, 57, 0.08);
}

.chapter-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chapter-indicator-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.chapter-indicator {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(72, 37, 15, 0.78);
}

.chapter-template-note {
  margin-top: 1.5rem;
}

.chapter-template-note p {
  color: rgba(247, 242, 255, 0.72);
  line-height: 1.8;
  text-align: center;
}

@keyframes chapterFlicker {
  0% { opacity: 0; }
  15% { opacity: 0.35; }
  30% { opacity: 0.1; }
  45% { opacity: 0.28; }
  60% { opacity: 0.08; }
  75% { opacity: 0.22; }
  100% { opacity: 0; }
}

@keyframes chapterGlitch {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  25% {
    opacity: 0.28;
  }
  60% {
    opacity: 0.16;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

.milestone-media {
  grid-column: 1 / -1;
  height: 180px;
  border-radius: 16px;
  margin-top: 0.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 -40px 70px rgba(0,0,0,0.18),
    0 12px 28px rgba(0,0,0,0.18);
}

.milestone-media.progress {
  background:
    linear-gradient(rgba(10,7,16,0.08), rgba(10,7,16,0.38)),
    url("desert-viber-writing-progress.png") center center / cover no-repeat;
}

.milestone-media.fragments {
  background:
    linear-gradient(rgba(10,7,16,0.08), rgba(10,7,16,0.42)),
    url("desert-viber-signal-fragments.png") center center / cover no-repeat;
}

.milestone-media.launch {
  background:
    linear-gradient(rgba(10,7,16,0.06), rgba(10,7,16,0.34)),
    url("desert-viber-launch-trajectory.png") center center / cover no-repeat;
}

.book-panel {
  display: flex;
  justify-content: center;
}

.book-card {
  width: min(100%, 470px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -110px;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 145, 57, 0.18), transparent 68%);
  pointer-events: none;
}

.book-card-image {
  height: 220px;
  border-radius: 22px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(rgba(10,7,16,0.08), rgba(10,7,16,0.36)),
    url("desert-viber-writing-progress.png") center center / cover no-repeat;
  box-shadow:
    inset 0 -50px 80px rgba(0,0,0,0.18),
    0 16px 30px rgba(0,0,0,0.22);
}

.book-status {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc69f;
}

.book-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.book-card p {
  color: var(--muted);
  line-height: 1.8;
}

.progress-block {
  margin: 1.5rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 16px rgba(255, 123, 49, 0.3),
    0 0 30px rgba(255, 123, 49, 0.12);
}

.mini-notes {
  display: grid;
  gap: 1rem;
}

.mini-notes div {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.mini-notes strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #fff;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.journal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.journal-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 183, 127, 0.22);
  box-shadow:
    0 24px 42px rgba(0,0,0,0.28),
    0 0 24px rgba(255, 145, 57, 0.06);
}

.journal-thumb {
  height: 230px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.journal-thumb::before,
.outpost-entry-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,4,8,0.64), rgba(5,4,8,0.06) 48%);
}

.storm-thumb {
  background:
    linear-gradient(rgba(10,7,16,0.08), rgba(10,7,16,0.34)),
    url("desert-viber-storm-transmission.png") center center / cover no-repeat;
}

.orbit-thumb {
  background:
    linear-gradient(rgba(10,7,16,0.08), rgba(10,7,16,0.36)),
    url("desert-viber-orbit-log.png") center center / cover no-repeat;
}

.lens-thumb {
  background:
    linear-gradient(rgba(10,7,16,0.08), rgba(10,7,16,0.36)),
    url("desert-viber-behind-the-lens.png") center center / cover no-repeat;
}

.journal-body {
  padding: 1.5rem;
}

.journal-meta {
  color: #ffc494;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.journal-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.journal-card p {
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: #ffba89;
}

.signal-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.newsletter-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.newsletter-form::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 145, 57, 0.16), transparent 68%);
  pointer-events: none;
}

.newsletter-visual {
  height: 220px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(rgba(10,7,16,0.08), rgba(10,7,16,0.36)),
    url("desert-viber-join-the-signal.png") center center / cover no-repeat;
  box-shadow:
    inset 0 -40px 80px rgba(0,0,0,0.16),
    0 16px 30px rgba(0,0,0,0.2);
}

.newsletter-grid,
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.newsletter-form label,
.contact-form label {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.newsletter-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  color: white;
  padding: 1rem 1rem;
  outline: none;
}

.newsletter-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 157, 87, 0.42);
  box-shadow:
    0 0 0 4px rgba(255, 157, 87, 0.08),
    0 0 18px rgba(255, 145, 57, 0.08);
}

.about-layout {
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 480px;
}

.about-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: 50%;
  left: 12%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 151, 70, 0.26), transparent 68%);
  filter: blur(6px);
}

.about-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.about-image {
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    var(--shadow),
    0 0 34px rgba(255, 145, 57, 0.08);
  background:
    linear-gradient(rgba(12, 8, 18, 0.18), rgba(12, 8, 18, 0.46)),
    url("desert-viber-origin-signal.png") center center / cover no-repeat;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.page-hero {
  position: relative;
  min-height: 58vh;
  padding-top: calc(var(--header-h) + 3rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 4rem 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 5, 12, 0.24), rgba(7, 5, 12, 0.52), rgba(4, 3, 8, 0.92));
}

.page-hero-archive {
  background:
    linear-gradient(rgba(10,7,16,0.1), rgba(10,7,16,0.42)),
    url("desert-viber-expedition-archive.png") center center / cover no-repeat;
}

.page-hero-outpost {
  background:
    linear-gradient(rgba(10,7,16,0.12), rgba(10,7,16,0.48)),
    url("desert-viber-storm-transmission.png") center center / cover no-repeat;
}

.page-hero-orbit {
  background:
    linear-gradient(rgba(10,7,16,0.12), rgba(10,7,16,0.48)),
    url("desert-viber-launch-trajectory.png") center center / cover no-repeat;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.archive-entry {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.archive-entry:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 183, 127, 0.22);
  box-shadow:
    0 24px 42px rgba(0,0,0,0.28),
    0 0 24px rgba(255, 145, 57, 0.06);
}

.archive-entry-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.archive-entry-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4,3,8,0.52), rgba(4,3,8,0.06) 42%);
}

.archive-entry-content {
  padding: 1.4rem;
}

.archive-tag {
  color: #ffc494;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.archive-entry-content h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.archive-entry-content p {
  color: var(--muted);
  line-height: 1.75;
}

.outpost-stream {
  display: grid;
  gap: 1.4rem;
}

.outpost-entry {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.outpost-entry:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 183, 127, 0.22);
  box-shadow:
    0 24px 42px rgba(0,0,0,0.28),
    0 0 24px rgba(255, 145, 57, 0.06);
}

.outpost-entry-image {
  min-height: 260px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.outpost-entry-content {
  padding: 1.5rem;
}

.note-panel {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.note-panel h3 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.75rem;
}

.note-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.note-panel code {
  color: #ffd2ac;
}

.orbit-book-card {
  width: 100%;
}

.orbit-side {
  align-self: start;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #05030a;
  padding: 1.5rem 0 2rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.4rem;
}

.footer-wrap p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.social-links a {
  font-size: 0.9rem;
  opacity: 0.72;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer {
  0% {
    opacity: 0.24;
  }
  100% {
    opacity: 0.4;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.chapter-drop-section {
  position: relative;
  overflow: hidden;
}

.chapter-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.chapter-selector-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.chapter-selector-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 183, 127, 0.22);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.chapter-selector-button.active {
  background: linear-gradient(135deg, rgba(255, 157, 87, 0.18), rgba(255, 107, 45, 0.12));
  border-color: rgba(255, 183, 127, 0.3);
  box-shadow: 0 0 20px rgba(255, 145, 57, 0.08);
}

.chapter-selector-lock {
  font-size: 0.8rem;
  color: #ffc494;
}

.chapter-resume {
  margin-bottom: 1.25rem;
  color: rgba(247, 242, 255, 0.74);
  font-size: 0.95rem;
}

.chapter-reader {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.chapter-reader-shell {
  position: relative;
  border-radius: 30px;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.35),
    0 0 30px rgba(255, 145, 57, 0.05);
  overflow: hidden;
}

.chapter-reader-shell::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 145, 57, 0.12), transparent 70%);
  pointer-events: none;
}

.chapter-paper {
  position: relative;
  min-height: 720px;
  border-radius: 24px;
  overflow: hidden;
  padding: 3rem clamp(1.2rem, 3vw, 3rem);
  background:
    linear-gradient(rgba(255, 243, 223, 0.04), rgba(255, 243, 223, 0.04)),
    url("desert-viber-chapter-paper.png") center / cover no-repeat;
  border: 1px solid rgba(90, 55, 24, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 -80px 120px rgba(94, 48, 17, 0.06);
}

.chapter-flicker,
.chapter-glitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.chapter-flicker {
  opacity: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.01) 14%,
      rgba(0,0,0,0.02) 26%,
      rgba(255,255,255,0.03) 44%,
      rgba(0,0,0,0.03) 61%,
      rgba(255,255,255,0.02)
    );
  mix-blend-mode: soft-light;
}

.chapter-glitch {
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 163, 88, 0.06) 48%, transparent 100%);
  transform: translateX(-100%);
}

.chapter-reader.is-switching .chapter-flicker {
  animation: chapterFlicker 0.45s ease;
}

.chapter-reader.is-switching .chapter-glitch {
  animation: chapterGlitch 0.45s ease;
}

.chapter-header,
.chapter-content-wrap,
.chapter-footer,
.chapter-lock-screen {
  position: relative;
  z-index: 2;
}

.chapter-header {
  margin-bottom: 1.8rem;
}

.chapter-header-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.chapter-meta,
.chapter-save-status {
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-meta {
  color: rgba(72, 37, 15, 0.82);
}

.chapter-save-status {
  color: rgba(104, 57, 24, 0.68);
}

.chapter-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.08;
  color: #4f2d18;
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

.chapter-content-wrap {
  min-height: 420px;
  padding: 1rem 0 2rem;
}

.chapter-content {
  color: #442716;
  font-size: 1.08rem;
  line-height: 1.95;
  white-space: pre-line;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chapter-content.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.chapter-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(94, 54, 22, 0.14);
}

.chapter-arrow {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(79, 45, 24, 0.22);
  background: rgba(255, 247, 235, 0.35);
  color: #4f2d18;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.chapter-arrow span {
  font-size: 1.25rem;
  line-height: 1;
}

.chapter-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 245, 229, 0.52);
  border-color: rgba(79, 45, 24, 0.34);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.12),
    0 0 16px rgba(255, 145, 57, 0.08);
}

.chapter-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chapter-indicator-wrap {
  display: flex;
  justify-content: center;
}

.chapter-indicator {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(72, 37, 15, 0.78);
}

.chapter-reader-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chapter-open-fullscreen,
.chapter-sound-toggle,
.chapter-fullscreen-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 45, 24, 0.22);
  background: rgba(255, 247, 235, 0.35);
  color: #4f2d18;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.chapter-open-fullscreen:hover,
.chapter-sound-toggle:hover,
.chapter-fullscreen-close:hover {
  transform: translateY(-2px);
  background: rgba(255, 245, 229, 0.52);
  border-color: rgba(79, 45, 24, 0.34);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.chapter-fullscreen-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: none;
}

.chapter-lock-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(rgba(18, 10, 7, 0.44), rgba(18, 10, 7, 0.62)),
    radial-gradient(circle at center, rgba(255, 166, 94, 0.08), transparent 48%);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.chapter-lock-screen {
  transition: opacity 0.3s ease;
}

.chapter-lock-screen[hidden] {
  opacity: 0;
}

.chapter-lock-card {
  width: min(100%, 520px);
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 245, 229, 0.9);
  border: 1px solid rgba(79, 45, 24, 0.16);
  box-shadow: 0 24px 50px rgba(0,0,0,0.24);
  text-align: center;
}

.chapter-lock-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a4a2a;
}

.chapter-lock-card h3 {
  font-family: "Orbitron", sans-serif;
  color: #4f2d18;
  margin-bottom: 0.8rem;
}

.chapter-lock-card p {
  color: #5a3824;
  line-height: 1.8;
}

.chapter-unlock-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.chapter-unlock-form input {
  width: 100%;
  border: 1px solid rgba(79, 45, 24, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
  color: #3d2415;
  padding: 1rem;
  outline: none;
}

.chapter-template-note {
  margin-top: 1.5rem;
}

.chapter-template-note p {
  color: rgba(247, 242, 255, 0.72);
  line-height: 1.8;
  text-align: center;
}

body.chapter-fullscreen-open {
  overflow: hidden;
}

body.chapter-fullscreen-open .chapter-reader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  max-width: none;
  margin: 0;
  padding: 2rem;
  background:
    linear-gradient(rgba(7, 5, 12, 0.76), rgba(7, 5, 12, 0.9)),
    radial-gradient(circle at center, rgba(255, 145, 57, 0.08), transparent 48%);
  overflow-y: auto;
}

body.chapter-fullscreen-open .chapter-reader-shell {
  max-width: 1100px;
  margin: 0 auto;
}

body.chapter-fullscreen-open .chapter-paper {
  min-height: 85vh;
}

body.chapter-fullscreen-open .chapter-fullscreen-close {
  display: inline-flex;
}

@keyframes chapterFlicker {
  0% { opacity: 0; }
  15% { opacity: 0.35; }
  30% { opacity: 0.1; }
  45% { opacity: 0.28; }
  60% { opacity: 0.08; }
  75% { opacity: 0.22; }
  100% { opacity: 0; }
}

@keyframes chapterGlitch {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  25% {
    opacity: 0.28;
  }
  60% {
    opacity: 0.16;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (max-width: 1100px) {
  .hero-inner,
  .split-layout,
  .contact-wrap,
  .intro-grid,
  .signal-wrap,
  .orbit-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: center;
  }

  .hero-panel {
    max-width: 540px;
  }

  .gallery-card,
  .gallery-card.tall,
  .gallery-card.wide {
    grid-column: span 6;
  }

  .journal-grid,
  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  .outpost-entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 74px;
  }

  .site-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    padding-bottom: 5rem;
  }

  .gallery-grid,
  .archive-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card.tall,
  .gallery-card.wide {
    grid-column: auto;
  }

  .form-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-visual {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 84px 0;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

  .hero-panel,
  .book-card,
  .contact-form,
  .newsletter-form,
  .journal-card,
  .gallery-card,
  .archive-entry,
  .outpost-entry,
  .note-panel {
    border-radius: 20px;
  }

  .card-image,
  .gallery-card.tall .card-image,
  .gallery-card.wide .card-image,
  .journal-thumb,
  .newsletter-visual,
  .book-card-image,
  .archive-entry-image,
  .outpost-entry-image {
    min-height: unset;
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .page-transition,
  .layer,
  .hero-copy,
  .hero-stars,
  .scroll-indicator,
  .reveal,
  .gallery-card,
  .card-image,
  .journal-card,
  .milestone,
  .archive-entry,
  .outpost-entry {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
