@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --abyss: #080808;
  --obsidian: #111111;
  --archive-gold: #c6a15b;
  --ancient-white: #ede6d6;
  --blood: #5c1a1a;
  --gold-soft: rgba(198, 161, 91, 0.15);
  --gold-mid: rgba(198, 161, 91, 0.35);
  --white-soft: rgba(237, 230, 214, 0.72);
  --shadow-glow: 0 0 34px rgba(198, 161, 91, 0.28);
  --display-font: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --body-font: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(198, 161, 91, 0.12), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(92, 26, 26, 0.18), transparent 28rem),
    var(--abyss);
  color: var(--ancient-white);
  font-family: var(--body-font);
}

::selection {
  background: rgba(198, 161, 91, 0.35);
  color: #fff8e6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

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

.archive-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad {
  padding: 5rem 0;
}

.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.bg-obsidian-soft {
  background: rgba(17, 17, 17, 0.45);
}

.eyebrow {
  margin: 0;
  color: rgba(198, 161, 91, 0.8);
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.display-title {
  margin: 1.25rem 0 0;
  color: var(--ancient-white);
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  text-shadow: 0 0 28px rgba(198, 161, 91, 0.2);
}

.display-title .gold,
.text-gold {
  color: var(--archive-gold);
}

.section-title {
  margin: 1rem 0 0;
  color: var(--ancient-white);
  font-family: var(--display-font);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.14;
}

.panel {
  border: 1px solid rgba(198, 161, 91, 0.15);
  background: rgba(17, 17, 17, 0.75);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(12px);
}

.parchment {
  background:
    linear-gradient(135deg, rgba(237, 230, 214, 0.14), rgba(198, 161, 91, 0.06)),
    radial-gradient(circle at top left, rgba(198, 161, 91, 0.16), transparent 22rem),
    rgba(17, 17, 17, 0.82);
}

.gold-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 91, 0.75), transparent);
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  color: rgba(237, 230, 214, 0.76);
  font-size: 1.125rem;
  line-height: 1.8;
}

.copy {
  color: var(--white-soft);
  font-size: 1rem;
  line-height: 2;
}

.copy p {
  margin: 0;
}

.copy p + p {
  margin-top: 1.25rem;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.gold-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  gap: 0.5rem;
  border-radius: 2px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.gold-button {
  border: 1px solid rgba(198, 161, 91, 0.6);
  background: var(--archive-gold);
  color: var(--abyss);
}

.ghost-button {
  border: 1px solid rgba(198, 161, 91, 0.35);
  background: rgba(8, 8, 8, 0.35);
  color: var(--ancient-white);
}

.gold-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.gold-button:hover {
  box-shadow: var(--shadow-glow);
}

.ghost-button:hover {
  border-color: var(--archive-gold);
  background: rgba(198, 161, 91, 0.1);
  color: #ffffff;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(198, 161, 91, 0.1);
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--archive-gold);
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-shadow: 0 0 16px rgba(198, 161, 91, 0.35);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  border-radius: 2px;
  padding: 0.5rem 1rem;
  color: rgba(237, 230, 214, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(198, 161, 91, 0.1);
  color: var(--archive-gold);
}

.nav-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 161, 91, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--archive-gold);
  transition: border 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--archive-gold);
}

.nav-toggle .close-icon,
.nav-toggle.is-open .menu-icon {
  display: none;
}

.nav-toggle.is-open .close-icon {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(198, 161, 91, 0.1);
  background: rgba(8, 8, 8, 0.95);
  padding: 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-grid {
  display: grid;
  max-width: 24rem;
  margin: 0 auto;
  gap: 0.5rem;
}

.mobile-nav .nav-link {
  border: 1px solid rgba(198, 161, 91, 0.1);
  padding: 0.875rem 1rem;
  text-align: center;
}

.site-atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.fog-layer {
  position: absolute;
  left: -12%;
  right: -12%;
  top: 25%;
  height: 66.666%;
  background:
    radial-gradient(circle at 20% 70%, rgba(237, 230, 214, 0.12), transparent 18rem),
    radial-gradient(circle at 70% 55%, rgba(198, 161, 91, 0.09), transparent 20rem),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.08), transparent 24rem);
  filter: blur(18px);
  opacity: 0.7;
  animation: fog-drift 18s ease-in-out infinite alternate;
}

.particle {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(198, 161, 91, 0.8);
  box-shadow: 0 0 16px rgba(198, 161, 91, 0.7);
  animation: particle-drift var(--duration) ease-in-out var(--delay) infinite;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
}

.hero-home {
  display: flex;
  min-height: 100vh;
  align-items: center;
  isolation: isolate;
}

.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-home::before {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.15), #080808 95%),
    radial-gradient(circle at 20% 50%, rgba(198, 161, 91, 0.18), transparent 27rem);
}

.hero-home::after {
  background-image:
    linear-gradient(rgba(237, 230, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 230, 214, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 20%, transparent 88%);
  opacity: 0.24;
}

.hero-short {
  min-height: 82vh;
}

.hero-book {
  background: radial-gradient(circle at top, rgba(198, 161, 91, 0.16), transparent 36rem);
}

.starwell-backdrop {
  isolation: isolate;
}

.starwell-backdrop::before,
.starwell-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.starwell-backdrop::before {
  background:
    radial-gradient(circle at 50% 28%, rgba(237, 230, 214, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 22%, rgba(198, 161, 91, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(237, 230, 214, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 70%, rgba(198, 161, 91, 0.22) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(8, 8, 8, 0.96), rgba(18, 14, 20, 0.84) 48%, rgba(8, 8, 8, 0.98));
  background-size: 170px 170px, 260px 260px, 220px 220px, 310px 310px, cover;
}

.starwell-backdrop::after {
  background:
    radial-gradient(circle at 68% 34%, rgba(198, 161, 91, 0.18), transparent 20rem),
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.54) 52%, rgba(8, 8, 8, 0.9));
}

.hero-bg,
.feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -20;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
}

.hero-overlay.home {
  background: linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, 0.78) 38%, rgba(8, 8, 8, 0.32) 72%, #080808 100%);
}

.hero-overlay.about {
  background: linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, 0.74) 46%, rgba(8, 8, 8, 0.32) 100%);
}

.hero-overlay.contact {
  background: linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, 0.78) 48%, rgba(8, 8, 8, 0.28) 100%);
}

/*.bottom-fade {*/
/*  position: absolute;*/
/*  left: 0;*/
/*  right: 0;*/
/*  bottom: 0;*/
/*  height: 10rem;*/
/*  background: linear-gradient(0deg, var(--abyss), transparent);*/
/*}*/

.home-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.home-copy,
.hero-copy {
  max-width: 48rem;
}

.book-side {
  position: relative;
}

.book-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18rem;
  height: 18rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(198, 161, 91, 0.2);
  filter: blur(48px);
}

.book-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  perspective: 1200px;
}

.book-3d {
  position: relative;
  width: min(62vw, 340px);
  /* border: 1px solid rgba(198, 161, 91, 0.35); */
  border-radius: 2px;
  /* background: var(--obsidian); */
  /* box-shadow: 0 42px 100px rgba(0, 0, 0, 0.7); */
  /* transform-style: preserve-3d; */
  animation: book-float 6s ease-in-out infinite;
}

.book-3d.showcase {
  width: min(58vw, 360px);
}

.book-3d.compact {
  width: min(54vw, 220px);
}

.book-3d::before,
.book-3d::after {
  content: "";
  position: absolute;
  top: 2.5%;
  height: 95%;
  transform-origin: left center;
}

.book-3d::before {
  right: -18px;
  width: 22px;
  border: 1px solid rgba(198, 161, 91, 0.25);
  background: linear-gradient(90deg, #1b120c, #c6a15b 24%, #2a1a10 62%, #070707);
  transform: rotateY(82deg);
}

.book-3d::after {
  left: 7px;
  right: -7px;
  bottom: -20px;
  height: auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(22px);
  transform: translate3d(18px, 24px, -70px) rotateX(80deg);
}

.book-3d img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

/* .book-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent, rgba(0, 0, 0, 0.2));
} */

.glyphs {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 20;
}

.glyph-button {
  pointer-events: auto;
  position: absolute;
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(198, 161, 91, 0.38), rgba(198, 161, 91, 0.06) 58%, transparent 70%),
    rgba(8, 8, 8, 0.72);
  color: var(--archive-gold);
  box-shadow: 0 0 24px rgba(198, 161, 91, 0.32);
  transition: transform 0.3s ease, border 0.3s ease;
}

.glyph-button:hover {
  border-color: var(--archive-gold);
  transform: scale(1.1);
}

.glyph-one {
  left: 6%;
  top: 22%;
}

.glyph-two {
  right: 8%;
  top: 38%;
}

.glyph-three {
  left: 12%;
  bottom: 18%;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog-card {
  max-width: 28rem;
  border-radius: 6px;
  padding: 1.5rem;
}

.reader-card {
  display: flex;
  width: min(64rem, 100%);
  max-width: 64rem;
  max-height: min(82vh, 56rem);
  flex-direction: column;
}

.chapter-content {
  overflow: auto;
  border: 1px solid rgba(198, 161, 91, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
}

.chapter-frame {
  display: block;
  width: 100%;
  min-height: 60vh;
  border: 0;
  background: transparent;
}

.chapter-document {
  color: var(--white-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.chapter-document h2 {
  margin: 0 0 1.25rem;
  color: var(--ancient-white);
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
}

.chapter-document p {
  margin: 0;
}

.chapter-document p + p {
  margin-top: 1rem;
}

.dialog-actions {
  justify-content: flex-start;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.dialog-title {
  margin: 0.5rem 0 0;
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 600;
}

.icon-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 161, 91, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--archive-gold);
  transition: border 0.3s ease, color 0.3s ease;
}

.icon-button:hover {
  border-color: var(--archive-gold);
  color: #ffffff;
}

.two-column {
  display: grid;
  gap: 2.5rem;
}

.text-stack {
  max-width: 48rem;
}

.center-stack {
  margin: 0 auto;
}

.copy-offset {
  margin-top: 1.5rem;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.center-heading {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.center-heading .lead {
  margin-left: auto;
  margin-right: auto;
}

.fragment-box {
  max-width: 64rem;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(198, 161, 91, 0.2);
  padding: 1.75rem;
}

.fragment-grid {
  margin-top: 1.25rem;
}

.flush-title {
  margin-top: 0;
}

.quote-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(198, 161, 91, 0.16), transparent 34rem);
}

.quote-section .archive-shell {
  position: relative;
}

.quote-mark {
  margin: 0 auto;
  color: var(--archive-gold);
}

.big-quote {
  max-width: 56rem;
  margin: 1.5rem auto 0;
  color: var(--ancient-white);
  font-family: var(--display-font);
  font-size: clamp(2.35rem, 5vw, 3rem);
  line-height: 1.15;
}

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

.image-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.15);
  border-radius: 6px;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fade-up,
.card-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--abyss), transparent, transparent);
  content: "";
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.triple-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  border: 1px solid rgba(198, 161, 91, 0.15);
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.7);
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(198, 161, 91, 0.45);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.text-card {
  padding: 1.5rem;
}

.text-card > .icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1.25rem;
}

.round-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 999px;
  color: var(--archive-gold);
  transition: background 0.3s ease, color 0.3s ease;
}

.card:hover .round-icon {
  background: var(--archive-gold);
  color: var(--abyss);
}
.card-title {
  margin: 0;
  color: #ffffff !important;
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 600;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.card-copy {
  margin: 1rem 0 0;
  color: rgba(237, 230, 214, 0.65);
  font-size: 0.875rem;
  line-height: 1.75;
}

.newsletter-block {
  text-align: center;
}

.newsletter-block .lead {
  margin-left: auto;
  margin-right: auto;
  color: rgba(237, 230, 214, 0.65);
}

.newsletter-block .gold-divider {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  margin-top: 0;
}

.newsletter-form {
  display: grid;
  max-width: 48rem;
  margin: 2rem auto 0;
  gap: 1rem;
  border-radius: 6px;
  padding: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.field-label {
  display: block;
  color: var(--archive-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.field,
.textarea {
  width: 100%;
  border: 1px solid rgba(198, 161, 91, 0.2);
  border-radius: 2px;
  outline: none;
  background: rgba(8, 8, 8, 0.75);
  color: var(--ancient-white);
  font-size: 0.875rem;
  transition: border 0.3s ease;
}

.field {
  height: 3rem;
  padding: 0 1rem;
}

.textarea {
  min-height: 10rem;
  resize: vertical;
  padding: 0.75rem 1rem;
  line-height: 1.6;
}

.field::placeholder,
.textarea::placeholder {
  color: rgba(237, 230, 214, 0.35);
}

.field:focus,
.textarea:focus {
  border-color: var(--archive-gold);
}

.form-feedback {
  display: none;
  margin: 0.75rem 0 0;
  color: var(--archive-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-feedback.is-visible {
  display: block;
}

.contact-feedback {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(198, 161, 91, 0.15);
  background: var(--abyss);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}

.footer-logo {
  margin: 0;
  color: var(--archive-gold);
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.footer-quote {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: var(--ancient-white);
  font-family: var(--display-font);
  font-size: 1.5rem;
  line-height: 1.35;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-links a {
  color: rgba(237, 230, 214, 0.65);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-form .field {
  min-width: 0;
  flex: 1;
  background: var(--obsidian);
}

.square-button {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--archive-gold);
  color: var(--abyss);
  transition: box-shadow 0.3s ease;
}

.square-button:hover {
  box-shadow: var(--shadow-glow);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 161, 91, 0.25);
  border-radius: 999px;
  color: var(--archive-gold);
  transition: border 0.3s ease, background 0.3s ease;
}

.social-link:hover {
  border-color: var(--archive-gold);
  background: rgba(198, 161, 91, 0.1);
}

.ambient-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.8);
  color: var(--archive-gold);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(8px);
  transition: border 0.3s ease, color 0.3s ease;
}

.ambient-toggle:hover {
  border-color: var(--archive-gold);
  color: var(--ancient-white);
}

.ambient-toggle .ambient-on,
.ambient-toggle.is-enabled .ambient-off {
  display: none;
}

.ambient-toggle.is-enabled .ambient-on {
  display: block;
}

.center-hero-content {
  display: flex;
  min-height: 64vh;
  align-items: center;
}

.contact-hero-grid {
  display: grid;
  min-height: 68vh;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 0;
}

.book-hero-grid {
  display: grid;
  min-height: 78vh;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
}

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

.image-card {
  overflow: hidden;
}

.card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.image-card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem;
}

.meta {
  color: rgba(198, 161, 91, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.map-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.15);
  border-radius: 6px;
}

.map-feature img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.map-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--abyss), rgba(8, 8, 8, 0.72), transparent);
}

.map-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.map-content-inner {
  max-width: 42rem;
  padding: 1.5rem;
}

.fact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.fact {
  display: flex;
  gap: 1rem;
}

.fact .icon {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.25rem;
  color: var(--archive-gold);
}

.fact h3 {
  margin: 0;
  color: var(--ancient-white);
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 600;
}

.fact p {
  margin: 0.25rem 0 0;
  color: rgba(237, 230, 214, 0.68);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sample-card {
  margin-top: 2rem;
  border: 1px solid rgba(198, 161, 91, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
}

.library-button {
  width: 100%;
  margin-top: 1.5rem;
}

.volume-heading {
  margin-top: 4rem;
}

.coming-soon-panel {
  position: relative;
  overflow: hidden;
  max-width: 52rem;
  border: 1px solid rgba(198, 161, 91, 0.2);
  border-radius: 6px;
  padding: 2rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(198, 161, 91, 0.16), transparent 18rem),
    rgba(17, 17, 17, 0.62);
  box-shadow: var(--shadow-glow);
}

.coming-soon-panel::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 91, 0.75), transparent);
}

.coming-soon-label {
  display: inline-flex;
  margin: 1.5rem 0 0;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--archive-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.sample-card .opening {
  margin: 0;
  color: var(--ancient-white);
  font-family: var(--display-font);
  font-size: 1.5rem;
  line-height: 1.55;
}

.timeline {
  max-width: 56rem;
  margin: 3rem auto 0;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 0 0 2.5rem 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(198, 161, 91, 0.25);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--archive-gold);
  border-radius: 999px;
  background: var(--abyss);
  box-shadow: var(--shadow-glow);
}

.timeline-item:last-child::before {
  height: 1.75rem;
}

.timeline-year {
  margin: 0;
  color: var(--archive-gold);
  font-family: var(--display-font);
  font-size: 1.25rem;
}

.timeline-card {
  border-radius: 6px;
  padding: 1.25rem;
}

.timeline-card h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 600;
}

.timeline-card p {
  margin: 0.75rem 0 0;
  color: rgba(237, 230, 214, 0.65);
  font-size: 0.875rem;
  line-height: 1.75;
}

.contact-form {
  border-radius: 6px;
  padding: 1.25rem;
}

.contact-form .field,
.contact-form .textarea {
  margin-top: 0.5rem;
}

.contact-form .field-group + .field-group {
  margin-top: 1rem;
}

@keyframes fog-drift {
  from {
    transform: translate3d(-4%, 1%, 0) scale(1);
  }

  to {
    transform: translate3d(5%, -2%, 0) scale(1.08);
  }
}

@keyframes particle-drift {
  0%,
  100% {
    opacity: 0.12;
    transform: translateY(-12px) scale(0.8);
  }

  50% {
    opacity: 0.65;
    transform: translateY(-54px) scale(1.25);
  }
}

@keyframes book-float {
  0%,
  100% {
    transform: rotateY(-15deg) rotateX(3deg) translateY(0);
  }

  50% {
    transform: rotateY(-5deg) rotateX(0deg) translateY(-18px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .heading-animate {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(5px);
    transition:
      opacity 0.75s ease,
      transform 0.75s ease,
      filter 0.75s ease;
    transition-delay: var(--heading-delay, 0s);
    will-change: opacity, transform, filter;
  }

  .heading-animate.heading-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 640px) {
  .archive-shell {
    padding: 0 2rem;
  }

  .section-pad {
    padding: 6rem 0;
  }

  .button-row {
    flex-direction: row;
  }

  .newsletter-form {
    grid-template-columns: 1fr auto;
  }

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

  .sample-card {
    padding: 2.5rem;
  }

  .map-content-inner {
    padding: 2.5rem;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .glyph-button {
    display: none;
  }

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

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

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

  .timeline-item {
    grid-template-columns: 170px 1fr;
    gap: 2rem;
    padding-left: 0;
  }

  .timeline-item::before {
    left: 196px;
  }

  .timeline-item::after {
    left: 183px;
  }
}

@media (min-width: 1024px) {
  .archive-shell {
    padding: 0 2.5rem;
  }

  .section-pad {
    padding: 8rem 0;
  }

  .home-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .two-column {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .book-hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contact-hero-grid {
    grid-template-columns: 0.86fr 1.14fr;
  }

  .lore-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .lore-grid .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1.1fr 0.8fr 1fr;
  }
}

@media (min-width: 1280px) {
  .character-grid,
  .blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .brand {
    font-size: 1.05rem;
    letter-spacing: 0.28em;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero-home {
    min-height: auto;
  }

  .home-grid {
    padding-top: 2.5rem;
  }

  .book-side {
    order: -1;
  }

  .book-3d,
  .book-3d.showcase {
    width: min(72vw, 300px);
  }

  .map-feature img {
    height: 640px;
  }

  .map-feature::after {
    background: linear-gradient(0deg, var(--abyss), rgba(8, 8, 8, 0.76), rgba(8, 8, 8, 0.22));
  }

  .map-content {
    align-items: flex-end;
  }

  .footer-form {
    align-items: stretch;
  }
}
