/*
 * Contents
 * 1. Coming Soon and Lost pages
 * 2. Shared public shell and homepage
 * 3. Interior pages
 * 4. Page-specific content refinements
 */

/* ==========================================================================
   1. Coming Soon and Lost pages
   ========================================================================== */

/* 1.1 Design tokens and document foundation */
:root {
  color-scheme: dark;
  --void: #030405;
  --surface: #090b0f;
  --surface-raised: rgba(15, 18, 23, 0.78);
  --ink: #f3f5f7;
  --muted: #a8afb8;
  --dim: #757e89;
  --line: rgba(207, 219, 229, 0.18);
  --line-hot: rgba(255, 58, 49, 0.44);
  --red: #ff3028;
  --red-deep: #8c0808;
  --silver: #d9e0e6;
  --shadow-red: rgba(255, 30, 24, 0.23);
  --ivory: var(--ink);
  --white: #ffffff;
  --red-bright: var(--red);
  --font-display: "Palatino Linotype", Palatino, Georgia, serif;
  --serif: var(--font-display);
  --font-body:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: var(--void);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(130, 7, 7, 0.16),
      transparent 35rem
    ),
    linear-gradient(145deg, #020304 0%, #090b0e 52%, #020304 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  content: "";
  -webkit-mask-image: radial-gradient(
    circle at 50% 45%,
    black,
    transparent 74%
  );
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 74%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.012) 50%,
    transparent 100%
  );
  background-size: 100% 0.25rem;
  content: "";
  opacity: 0.42;
}

/* 1.2 Atmospheric background */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere::before,
.atmosphere::after {
  position: absolute;
  border: 1px solid rgba(255, 52, 43, 0.12);
  content: "";
  transform: rotate(45deg);
}

.atmosphere::before {
  top: 14%;
  left: -9rem;
  width: 25rem;
  height: 25rem;
}

.atmosphere::after {
  right: -5rem;
  bottom: 10%;
  width: 14rem;
  height: 14rem;
  border-color: rgba(215, 225, 235, 0.08);
}

.atmosphere__gate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88vw, 78rem);
  height: min(74vh, 48rem);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 0;
  clip-path: polygon(10% 100%, 10% 20%, 50% 0, 90% 20%, 90% 100%);
  transform: translate(-50%, -50%);
}

.atmosphere__gate::before,
.atmosphere__gate::after {
  position: absolute;
  top: 12%;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    transparent,
    rgba(255, 40, 32, 0.16),
    transparent
  );
  content: "";
}

.atmosphere__gate::before {
  left: 28%;
}

.atmosphere__gate::after {
  right: 28%;
}

.atmosphere__ember {
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 1rem 0.2rem var(--shadow-red);
  animation: drift 9s ease-in-out infinite;
}

.atmosphere__ember--one {
  top: 22%;
  left: 17%;
}

.atmosphere__ember--two {
  right: 14%;
  bottom: 28%;
  animation-delay: -3s;
}

.atmosphere__ember--three {
  top: 64%;
  left: 46%;
  width: 0.18rem;
  height: 0.18rem;
  animation-delay: -6s;
}

/* 1.3 Landing layout and sigil */
.landing {
  display: grid;
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
  place-items: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.sanctum {
  position: relative;
  display: grid;
  width: min(100%, 71rem);
  grid-template-columns: minmax(16rem, 0.9fr) minmax(19rem, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(1.75rem, 4vw, 4rem);
}

.sanctum::before,
.sanctum::after {
  position: absolute;
  width: 4.25rem;
  height: 4.25rem;
  border-color: var(--line-hot);
  content: "";
}

.sanctum::before {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.sanctum::after {
  right: 0;
  bottom: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.sigil {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  isolation: isolate;
}

.sigil::before {
  position: absolute;
  inset: 14%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(191, 8, 8, 0.22);
  box-shadow:
    0 0 5rem 1rem rgba(255, 31, 23, 0.2),
    inset 0 0 3rem rgba(255, 31, 23, 0.11);
  content: "";
  filter: blur(0.4rem);
  animation: breathe 5.5s ease-in-out infinite;
}

.sigil__ring {
  position: absolute;
  inset: 9%;
  z-index: -1;
  border: 1px solid rgba(218, 226, 233, 0.11);
  border-radius: 50%;
}

.sigil__ring::before,
.sigil__ring::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112%;
  height: 112%;
  border: 1px solid rgba(255, 49, 40, 0.09);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.sigil__ring::after {
  width: 86%;
  height: 86%;
  border-color: rgba(216, 225, 234, 0.08);
}

.sigil img {
  display: block;
  width: min(100%, 31rem);
  height: auto;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 1rem rgba(255, 34, 25, 0.18));
  animation: hover 7s ease-in-out infinite;
}

/* 1.4 Message typography and actions */
.message {
  position: relative;
  max-width: 36rem;
}

.status,
.eyebrow,
.signal,
.footer {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.status span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0.9rem var(--red);
  animation: signal 2.2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 750;
}

h1 {
  margin: 0;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 0.84;
  text-transform: uppercase;
  text-shadow:
    0 0.03em 0 #fff,
    0 0.18em 1em rgba(0, 0, 0, 0.75);
}
.page--home .message {
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.page--home h1 {
  font-size: clamp(3rem, 7vw, 6.25rem);
  font-size: clamp(3rem, 16cqi, 6.25rem);
}

.declaration {
  margin: 2rem 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  line-height: 1.35;
}

.introduction {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  min-height: 3.55rem;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

.button:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 0.3rem;
}

.button--primary {
  position: relative;
  overflow: hidden;
  min-width: 14.5rem;
  padding: 0.95rem 1.4rem 0.95rem 1.65rem;
  border-color: rgba(255, 92, 82, 0.48);
  background: linear-gradient(135deg, #6e0707, #b40d0a 55%, #6f0808);
  box-shadow:
    0 0.8rem 2.2rem rgba(0, 0, 0, 0.35),
    0 0 1.6rem rgba(255, 34, 26, 0.1);
}

.button--primary::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.13),
    transparent 68%
  );
  content: "";
  transform: translateX(-120%);
  transition: transform 450ms ease;
}

.button--primary:hover::before {
  transform: translateX(120%);
}

.button--primary:hover {
  border-color: rgba(255, 176, 169, 0.78);
  box-shadow:
    0 0.8rem 2.2rem rgba(0, 0, 0, 0.35),
    0 0 2rem rgba(255, 34, 26, 0.22);
}

.button__mark {
  color: #ff8a82;
  font-size: 0.58rem;
}

.button--secondary {
  padding: 0.95rem 1.35rem;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.button--secondary:hover {
  border-color: rgba(218, 226, 233, 0.38);
  color: var(--ink);
}

.signal {
  margin: 1.25rem 0 0;
  color: var(--dim);
  font-size: 0.61rem;
  line-height: 1.6;
}

.footer {
  display: flex;
  width: min(calc(100% - 3rem), 71rem);
  min-height: 5rem;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  color: var(--dim);
  font-size: 0.58rem;
}

.footer__line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line-hot), var(--line), transparent);
}

/* 1.5 Lost page variant */
.landing--centered {
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
}

.sanctum--lost {
  width: min(100%, 64rem);
  grid-template-columns: minmax(11rem, 0.55fr) minmax(20rem, 1.45fr);
}

.sigil--small img {
  width: min(100%, 19rem);
}

.message--centered h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.98;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* 1.6 Motion */
@keyframes breathe {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.55rem);
  }
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    opacity: 0.35;
    transform: translate3d(0, 0.8rem, 0);
  }
  50% {
    opacity: 1;
    transform: translate3d(0.4rem, -1rem, 0);
  }
}

/* 1.7 Responsive adjustments */
@media (max-width: 52rem) {
  .landing {
    padding: 2rem 1.25rem 3rem;
  }

  .sanctum,
  .sanctum--lost {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem 2.5rem;
    text-align: center;
  }

  .sigil {
    width: min(76vw, 22rem);
    margin: 0 auto;
  }

  .sigil--small {
    width: min(55vw, 15rem);
  }

  .message {
    max-width: 38rem;
    margin: 0 auto;
  }

  .status {
    margin-bottom: 1.65rem;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 6rem);
  }
  .page--home h1 {
    font-size: clamp(2.5rem, 12.5vw, 5rem);
    font-size: clamp(2.5rem, 15cqi, 5rem);
  }

  .declaration {
    margin-top: 1.5rem;
  }

  .introduction {
    margin-right: auto;
    margin-left: auto;
  }

  .actions {
    justify-content: center;
  }
}

@media (max-width: 34rem) {
  .landing {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .sanctum::before,
  .sanctum::after {
    width: 2.5rem;
    height: 2.5rem;
  }

  .sigil {
    width: min(82vw, 19rem);
  }

  .page--lost .sigil--small {
    width: min(55vw, 15rem);
  }

  .status {
    letter-spacing: 0.14em;
  }

  .introduction {
    font-size: 0.98rem;
  }

  .button,
  .button--primary,
  .button--secondary {
    width: 100%;
  }

  .footer {
    width: calc(100% - 2rem);
    gap: 0.65rem;
    letter-spacing: 0.12em;
  }
}

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

/* ==========================================================================
   2. Shared public shell and homepage
   ========================================================================== */

/* 2.1 Accessibility and shared layout */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border: 1px solid var(--silver);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-page a:focus-visible,
.site-page summary:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 0.3rem;
}

.shell {
  width: min(calc(100% - 3rem), 71rem);
  margin-inline: auto;
}

/* 2.2 Header and navigation */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(207, 219, 229, 0.1);
  background: rgba(3, 4, 5, 0.76);
  backdrop-filter: blur(1rem);
}

.site-header__inner {
  position: relative;
  display: grid;
  width: min(calc(100% - 3rem), 76rem);
  min-height: 5.25rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-inline: auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-brand img {
  width: 2.55rem;
  height: 2.55rem;
  object-fit: contain;
  filter: drop-shadow(0 0 0.65rem rgba(255, 48, 40, 0.28));
}

.site-nav {
  justify-self: center;
}

.site-nav--mobile {
  display: none;
}

.site-nav summary {
  display: none;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  list-style: none;
  text-transform: uppercase;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav__mark {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  transform: rotate(45deg) translateY(-0.12rem);
  transition: transform 180ms ease;
}

.site-nav[open] .site-nav__mark {
  transform: rotate(225deg) translate(-0.05rem, -0.05rem);
}

.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.55rem);
}

.site-nav__links a,
.site-footer__nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav__links a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"],
.site-footer__nav a:hover {
  color: var(--ink);
}

.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__cta {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 77, 68, 0.38);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.site-header__cta:hover {
  border-color: rgba(255, 145, 137, 0.72);
  background: rgba(164, 13, 10, 0.2);
}

/* 2.3 Homepage hero */
.site-main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(calc(100vh - 5.25rem), 64rem);
  min-height: min(calc(100svh - 5.25rem), 64rem);
  grid-template-columns: minmax(15rem, 0.88fr) minmax(21rem, 1.12fr);
  align-items: center;
  gap: clamp(2.75rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero::before,
.hero::after,
.content-section--sanctum::before,
.about-callout::after {
  position: absolute;
  width: 4.25rem;
  height: 4.25rem;
  border-color: var(--line-hot);
  pointer-events: none;
  content: "";
}

.hero::before {
  top: clamp(2rem, 5vw, 4rem);
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero::after {
  right: 0;
  bottom: clamp(2rem, 5vw, 4rem);
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.hero__sigil {
  width: min(100%, 29rem);
  justify-self: center;
}

.hero__copy {
  min-width: 0;
  container-type: inline-size;
}

.hero__copy .status {
  margin-bottom: 2.25rem;
}

.site-page .wordmark {
  font-size: clamp(3rem, 15.5cqi, 6.25rem);
}

.hero__declaration {
  max-width: 36rem;
  margin: 2rem 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.35;
}

.hero__introduction {
  max-width: 36rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.signal-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    gap 180ms ease;
}

.signal-link {
  margin-top: 1.35rem;
  color: var(--dim);
}

.signal-link:hover,
.text-link:hover {
  gap: 0.85rem;
  color: var(--ink);
}

/* 2.4 Homepage content sections */
.content-section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  border-top: 1px solid rgba(207, 219, 229, 0.08);
}

.content-section--sanctum {
  background:
    linear-gradient(90deg, rgba(126, 8, 8, 0.13), transparent 42%),
    rgba(8, 10, 13, 0.55);
}

.content-section--sanctum::before {
  top: 2rem;
  right: max(1.5rem, calc((100vw - 71rem) / 2));
  border-top: 1px solid;
  border-right: 1px solid;
  opacity: 0.52;
}

.content-section--quiet {
  background: rgba(3, 4, 5, 0.62);
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.section-heading h2,
.about-callout h2 {
  max-width: 42rem;
  margin: 0;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
}

.section-heading > p:last-child {
  max-width: 46rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading--centered {
  max-width: none;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-heading--centered h2 {
  margin-inline: auto;
}

.section-heading--workbench > p:last-child {
  max-width: 38rem;
  margin: 1.25rem 0 0 clamp(2rem, 7vw, 5rem);
}

.feature-split__content {
  max-width: 39rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.feature-split__content p {
  margin-top: 0;
}

.section-lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.45;
}

/* 2.5 Homepage path cards */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.path-card {
  position: relative;
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(17, 20, 25, 0.86),
    rgba(6, 8, 10, 0.92)
  );
  isolation: isolate;
}

.path-card::before,
.path-card::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.path-card::before {
  right: -4rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 55, 46, 0.12);
  transform: rotate(45deg);
  transition: transform 350ms ease;
}

.path-card::after {
  inset: 0;
  background: radial-gradient(
    circle at 80% 80%,
    rgba(154, 12, 8, 0.13),
    transparent 48%
  );
}

.path-card:hover::before {
  transform: rotate(52deg) scale(1.08);
}

.path-card__index {
  margin: 0 0 auto;
  color: var(--dim);
  font-size: 0.61rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 3.5rem 0 1rem;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
}

.path-card p:not(.path-card__index) {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.path-card .text-link {
  margin-top: auto;
}

.path-card--minecraft::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(124, 35, 22, 0.18), transparent 48%);
  background-size:
    2rem 2rem,
    2rem 2rem,
    auto;
}

.path-card--puzzles::before {
  border-color: rgba(214, 224, 233, 0.13);
  transform: rotate(0deg);
}

.path-card--puzzles:hover::before {
  transform: rotate(7deg) scale(1.08);
}

.path-card--creations {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 1.25rem,
      rgba(255, 255, 255, 0.013) 1.25rem 1.3rem
    ),
    linear-gradient(145deg, rgba(17, 20, 25, 0.86), rgba(6, 8, 10, 0.92));
}

/* 2.6 Homepage about callout */
.about-callout {
  position: relative;
  max-width: 56rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-left: 1px solid var(--line-hot);
}

.about-callout .about-callout__heading {
  max-width: none;
}

.about-callout__heading span {
  display: block;
  white-space: nowrap;
}

.about-callout__heading + p {
  margin-top: 1.75rem;
}

.about-callout::after {
  right: 0;
  bottom: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
  opacity: 0.55;
}

.about-callout > p:not(.eyebrow) {
  max-width: 46rem;
  margin: 1.5rem 0 1.75rem;
  color: var(--muted);
  line-height: 1.75;
}

.page--home .about-callout > p:not(.eyebrow) {
  max-width: 50rem;
}

/* 2.7 Shared footer */
.site-footer {
  border-top: 1px solid rgba(207, 219, 229, 0.1);
  background: #020304;
}

.site-footer__inner {
  display: grid;
  min-height: 9rem;
  grid-template-columns: minmax(13rem, 1fr) minmax(20rem, auto);
  align-items: center;
  gap: 2rem;
  padding-block: 2rem;
}

.site-footer__identity > span {
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__identity p {
  margin: 0.55rem 0 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
}

.site-nav__discord {
  display: none;
}

/* 2.8 Shared-shell responsive adjustments */

.mobile-break:not(.desktop-break) {
  display: none;
}

@media (max-width: 64rem) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav--desktop {
    display: none;
  }

  .site-nav--mobile {
    position: relative;
    display: block;
    justify-self: end;
  }

  .site-nav--mobile summary {
    display: flex;
  }

  .site-nav--mobile:not([open]) > .site-nav__links {
    display: none;
  }

  .site-nav--mobile .site-nav__links {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    display: grid;
    width: min(19rem, calc(100vw - 2rem));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.55rem;
    border: 1px solid var(--line);
    background: rgba(5, 7, 9, 0.98);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.48);
  }

  .site-nav__links a {
    min-height: 2.9rem;
    padding: 0.9rem 0.75rem;
  }

  .site-nav__links a::after {
    right: 0.75rem;
    bottom: 0.55rem;
    left: 0.75rem;
  }
}

@media (max-width: 52rem) {
  .site-header__inner {
    width: min(calc(100% - 2rem), 76rem);
    min-height: 4.75rem;
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav__discord {
    display: block;
  }

  .about-callout__heading span {
    white-space: normal;
  }

  .desktop-break {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-top: 2.25rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  .hero__sigil {
    width: min(65vw, 19rem);
  }

  .hero__copy {
    width: min(100%, 39rem);
    margin-inline: auto;
  }

  .hero__copy .status {
    margin-bottom: 1.5rem;
  }

  .hero__declaration,
  .hero__introduction {
    margin-right: auto;
    margin-left: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .section-heading--workbench > p:last-child {
    margin-left: 0;
  }

  .feature-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-split__content {
    max-width: 42rem;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 18rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 34rem) {
  .shell {
    width: min(calc(100% - 1.5rem), 71rem);
  }

  .site-brand span {
    font-size: 0.88rem;
  }

  .site-nav summary {
    min-height: 2.6rem;
    padding: 0.65rem 0.75rem;
  }

  .hero::before,
  .hero::after,
  .content-section--sanctum::before,
  .about-callout::after {
    width: 2.5rem;
    height: 2.5rem;
  }

  .desktop-break.mobile-break,
  .mobile-break:not(.desktop-break) {
    display: revert;
  }

  .site-page .wordmark {
    font-size: clamp(2.45rem, 15cqi, 4.25rem);
  }

  .hero__actions .button {
    width: 100%;
  }

  .signal-link {
    justify-content: center;
  }

  .content-section {
    padding-block: 4rem;
  }

  .about-callout {
    padding: 1.75rem 1.2rem 2rem;
  }

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

/* ==========================================================================
   3. Interior pages
   ========================================================================== */
/* 3.1 Interior foundation */
.interior-page main {
  overflow: hidden;
}

/* 3.2 Interior hero and page symbols */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.62fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: clamp(35rem, 72vh, 48rem);
  padding-block: clamp(6rem, 11vw, 9rem);
}

.page-hero::before {
  position: absolute;
  right: -8rem;
  bottom: 3rem;
  width: 21rem;
  height: 21rem;
  border: 1px solid rgba(205, 38, 42, 0.12);
  content: "";
  transform: rotate(45deg);
}

.page-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.page-hero h1 {
  max-width: 12ch;
  margin: 0.5rem 0 1.4rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-wrap: balance;
}

.page-hero__lead {
  max-width: 38rem;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.35;
  text-wrap: balance;
}

.page-hero__text {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-symbol {
  position: relative;
  width: min(30vw, 21rem);
  aspect-ratio: 1;
  justify-self: center;
  filter: drop-shadow(0 0 2.5rem rgba(198, 27, 32, 0.15));
}

.page-symbol::before,
.page-symbol::after,
.page-symbol span,
.page-symbol span::before,
.page-symbol span::after {
  position: absolute;
  content: "";
}

.page-symbol::before {
  inset: 8%;
  border: 1px solid rgba(214, 42, 46, 0.52);
  transform: rotate(45deg);
}

.page-symbol::after {
  inset: 20%;
  border: 1px solid rgba(230, 232, 236, 0.24);
  border-radius: 50%;
}

.page-symbol span {
  inset: 33%;
  border: 2px solid rgba(242, 243, 246, 0.76);
  transform: rotate(45deg);
}

.page-symbol span::before,
.page-symbol span::after {
  inset: 22%;
  background: var(--red-bright);
  box-shadow: 0 0 1.5rem rgba(255, 47, 51, 0.5);
}

.page-symbol span::after {
  transform: rotate(90deg);
}

.page-symbol--sanctum {
  width: min(32vw, 24rem);
}

.page-symbol--sanctum img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-symbol--sanctum span::before,
.page-symbol--sanctum span::after {
  display: none;
}

.page-symbol--minecraft::before {
  border-radius: 2.5rem 0;
}

.page-symbol--minecraft span {
  border-radius: 25% 0;
}

.page-symbol--puzzles::after {
  border-style: dashed;
}

.page-symbol--puzzles span {
  border-radius: 50% 50% 8% 50%;
}

.page-symbol--creations::before {
  transform: rotate(45deg) scale(0.82);
}

.page-symbol--creations::after {
  inset: 28%;
  border-radius: 0;
  transform: rotate(45deg);
}

.page-symbol--about::before,
.page-symbol--about span {
  border-radius: 50%;
}

/* 3.3 Page-specific hero refinements */
.standards-heading span {
  display: block;
}

.standards-grid .detail-card {
  padding-top: clamp(2rem, 3vw, 2.5rem);
}

.page--sanctum .standards-heading {
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
  font-size: clamp(2.8rem, 5.5vw, 4.75rem);
}

.page--sanctum .page-hero__text {
  margin-bottom: 0.85rem;
}

.page--sanctum .section-note {
  color: rgba(168, 175, 184, 0.72);
  max-width: none;
  white-space: nowrap;
}

.page--minecraft .section-heading + .detail-grid {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

/* 3.4 Detail sections and cards */
.detail-section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
}

.detail-section--surface {
  border-block: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(135deg, rgba(132, 8, 14, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.018);
}

.detail-section--cta {
  background: linear-gradient(90deg, rgba(112, 8, 12, 0.16), transparent 70%);
}

.detail-grid,
.feature-split--balanced {
  display: grid;
  gap: 1rem;
}

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

.detail-grid--two,
.feature-split--balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
}

.detail-card__mark {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--red-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.detail-card h3,
.sealed-message h3,
.identity-node h3,
.codex-volume h3 {
  margin: 0 0 0.7rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.detail-card p,
.sealed-message p,
.identity-node p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* 3.5 Tags and guide topics */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(237, 50, 54, 0.24);
  color: var(--silver);
  background: rgba(132, 8, 14, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-list--centered {
  justify-content: center;
  margin-top: 2rem;
}

.guide-heading {
  max-width: 58rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  margin-right: auto;
  margin-left: auto;
}

.guide-heading h2 {
  margin-inline: auto;
}

.guide-heading > p:last-child {
  max-width: 46rem;
  margin-right: auto;
  margin-left: auto;
}

.guide-topics {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.guide-topics__heading {
  margin: 0 0 1.25rem;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.tag-list--guide-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0;
}

.tag-list--guide-topics li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;

  border: 1px solid rgba(217, 224, 230, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0.008)
    );

  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.tag-list--guide-topics li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 2.5rem;
  height: 1px;
  background: rgba(255, 48, 40, 0.55);
  transform: translateX(-50%);
}

.tag-list--puzzle-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(100%, 46rem);
  margin-top: 2rem;
}

.tag-list--puzzle-categories li {
  position: relative;
  grid-column: span 2;
  display: flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;

  border: 1px solid rgba(217, 224, 230, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0.008)
    );

  color: var(--silver);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.tag-list--puzzle-categories li:nth-child(4) {
  grid-column: 2 / span 2;
}

.tag-list--puzzle-categories li:nth-child(5) {
  grid-column: 4 / span 2;
}

.tag-list--puzzle-categories li::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 2.5rem;
  height: 1px;
  background: rgba(255, 48, 40, 0.55);
  content: "";
  transform: translateX(-50%);
}

/* 3.6 Sanctum rank path */
.rank-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.rank-path::before {
  position: absolute;
  top: 1.1rem;
  right: 8%;
  left: 8%;
  height: 1px;
  background: rgba(228, 43, 47, 0.3);
  content: "";
}

.rank-tier {
  position: relative;
  padding: 3rem 1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 7, 9, 0.74);
  text-align: center;
}

.rank-tier::before {
  position: absolute;
  top: 0.78rem;
  left: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--red-bright);
  background: #09090b;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.rank-tier__order {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--red-bright);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rank-tier h3 {
  margin: 0 0 0.65rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
}

.rank-tier > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-tier--leadership {
  grid-column: 1 / -1;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  border-color: rgba(230, 232, 236, 0.16);
}

/* 3.7 Sanctum role definitions */
.role-definitions,
.compact-definitions {
  display: grid;
  margin: 1.6rem 0 0;
}

.role-definitions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.role-definitions > div {
  padding-left: 1rem;
  border-left: 1px solid rgba(228, 43, 47, 0.28);
}

.compact-definitions {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.compact-definitions > div {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compact-definitions > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.role-line {
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--silver);
  line-height: 1.6;
}

.role-definitions dt,
.compact-definitions dt {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.role-definitions dd,
.compact-definitions dd {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.role-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.role-groups__column {
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: subgrid;
  row-gap: 1rem;
  min-width: 0;
}

.role-card--sovereign > p {
  margin-top: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.role-card--sovereign .compact-definitions {
  margin-top: 0;
}

.role-card--sovereign .compact-definitions > div:first-child {
  padding-top: 0.9rem;
}

.role-card--summary > p:not(.role-line) {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.role-card--summary .role-line {
  margin-top: 0.9rem;
  padding-top: 0;
  border-top: 0;
}

.section-note {
  max-width: 48rem;
  margin: 2rem auto 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}

/* 3.8 Closing callouts */
.closing-callout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(224, 40, 44, 0.22);
  background: linear-gradient(
    135deg,
    rgba(145, 9, 14, 0.18),
    rgba(255, 255, 255, 0.016)
  );
}

.closing-callout > div {
  max-width: 43rem;
}

.closing-callout h2,
.spotlight h2,
.feature-split--balanced h2 {
  margin: 0.45rem 0 0.9rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.closing-callout p,
.spotlight p,
.feature-split--balanced > div > p {
  color: var(--muted);
  line-height: 1.75;
}

/* 3.9 Minecraft spotlight and ornament */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.45fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.spotlight blockquote {
  margin: 1.4rem 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--red-bright);
  color: var(--silver);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.5;
}

.sprig-orbit {
  position: relative;
  width: min(100%, 17rem);
  aspect-ratio: 1;
  justify-self: center;
}

.sprig-orbit__core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 40, 44, 0.46);
  color: var(--ivory);
  background: rgba(117, 8, 12, 0.16);
  font-family: var(--serif);
  font-size: 3rem;
  transform: rotate(45deg);
}

.sprig-orbit__core::first-letter {
  transform: rotate(-45deg);
}

.sprig-orbit__ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(229, 231, 234, 0.22);
  border-radius: 50%;
}

.sprig-orbit::before,
.sprig-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 1rem rgba(255, 45, 50, 0.55);
  content: "";
}

.sprig-orbit::before {
  transform: translate(-8rem, -50%);
}

.sprig-orbit::after {
  transform: translate(7.4rem, -50%);
}

.systems-heading span {
  display: block;
}

/* 3.10 Puzzle codex volumes */
.codex-heading span {
  display: block;
}

.codex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.codex-volume {
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(5, 7, 9, 0.72);
}

.codex-volume > span {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 2.8rem;
  place-items: center;
  border: 1px solid rgba(230, 42, 46, 0.42);
  color: var(--red-bright);
  font-family: var(--serif);
  transform: rotate(45deg);
}

.codex-volume h3 {
  min-height: 3.4rem;
}

.codex-volume ol {
  margin: 1.35rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.65;
}

.codex-volume li + li {
  margin-top: 1.15rem;
}

/* 3.11 Creations messages and artifacts */
.page--creations .section-note {
  color: rgba(168, 175, 184, 0.78);
  max-width: none;
  white-space: nowrap;
  font-size: 0.84rem;
}

.page--creations .creation-heading span {
  display: block;
}

.sealed-message {
  align-self: stretch;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(227, 42, 46, 0.22);
  background: linear-gradient(
    145deg,
    rgba(146, 9, 14, 0.14),
    rgba(255, 255, 255, 0.012)
  );
}

.sealed-message__mark {
  position: relative;
  display: grid;
  width: 2rem;
  height: 2rem;
  margin: 0 0 2.25rem 0.2rem;
  place-items: center;
  border: 1px solid rgba(230, 42, 46, 0.42);
  transform: rotate(45deg);
}

.sealed-message__mark::after {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--red-bright);
  box-shadow: 0 0 0.9rem rgba(255, 45, 50, 0.45);
  content: "";
}

.sealed-message p + p {
  margin-top: 0.5rem;
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.artifact-list li {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--silver);
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: center;
}

/* 3.12 Identity map */
.identity-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.identity-node {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.018);
}

.identity-node--root {
  grid-column: 1 / -1;
  max-width: 32rem;
  justify-self: center;
  border-color: rgba(226, 42, 46, 0.28);
  text-align: center;
}

/* 3.13 Interior-page responsive adjustments */
@media (max-width: 64rem) {
  .rank-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .puzzle-break {
    display: none;
  }
}

@media (max-width: 52rem) {
  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 6rem 5rem;
  }

  .page-symbol {
    width: min(62vw, 17rem);
    grid-row: 1;
  }

  .page-hero__copy {
    text-align: center;
  }

  .page-hero h1,
  .page-hero__lead,
  .page-hero__text {
    margin-inline: auto;
  }

  .page-hero .tag-list {
    justify-content: center;
  }

  .detail-grid--three,
  .detail-grid--two,
  .feature-split--balanced,
  .spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight > :first-child {
    order: 2;
  }

  .page--sanctum .page-hero__text {
    margin-bottom: 1.75rem;
  }

  .page--sanctum .rank-path {
    grid-template-columns: 1fr;
  }

  .page--sanctum .rank-path::before {
    display: none;
  }

  .page--sanctum .rank-tier {
    padding: 1.4rem 1.4rem 1.4rem 2.8rem;
    text-align: left;
  }

  .page--sanctum .rank-tier::before {
    top: 1.65rem;
    left: 1.25rem;
    transform: rotate(45deg);
  }

  .page--sanctum .section-note {
    white-space: normal;
  }

  .page--creations .section-note {
    white-space: normal;
  }

  .role-definitions,
  .compact-definitions {
    grid-template-columns: 1fr;
  }

  .role-groups {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .role-groups__column {
    grid-row: auto;
    grid-template-rows: none;
  }

  .artifact-list,
  .identity-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 40rem) {
  .tag-list--puzzle-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-list--puzzle-categories li,
  .tag-list--puzzle-categories li:nth-child(4) {
    grid-column: auto;
  }

  .tag-list--puzzle-categories li:nth-child(5) {
    grid-column: 1 / -1;
    width: calc(50% - 0.325rem);
    justify-self: center;
  }

  .puzzle-break {
    display: revert;
  }
}

@media (max-width: 34rem) {
  .page-hero {
    padding-block: 4.75rem 4rem;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 17vw, 4.3rem);
  }

  .page--minecraft .page-hero h1 {
    font-size: clamp(3rem, 15.25vw, 4.3rem);
  }

  .page-symbol {
    width: min(70vw, 14rem);
  }

  .tag-list--guide-topics {
    grid-template-columns: 1fr;
  }

  .tag-list--puzzle-categories {
    grid-template-columns: 1fr;
  }

  .tag-list--puzzle-categories li,
  .tag-list--puzzle-categories li:nth-child(4),
  .tag-list--puzzle-categories li:nth-child(5) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .rank-path,
  .codex-grid,
  .artifact-list,
  .identity-map {
    grid-template-columns: 1fr;
  }

  .codex-volume h3 {
    min-height: auto;
  }

  .identity-node--root {
    grid-column: auto;
  }

  .closing-callout {
    padding: 1.6rem;
  }
}

/* ==========================================================================
   4. Page-specific content refinements
   ========================================================================== */

/* 4.1 Sanctum leadership */
.leadership-panel {
  max-width: 58rem;
  margin: 1rem auto 0;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid rgba(230, 232, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(133, 9, 14, 0.12), transparent 55%),
    rgba(5, 7, 9, 0.74);
}

.leadership-panel > h3 {
  margin: 0 0 0.7rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.leadership-panel > p:not(.rank-tier__order) {
  max-width: 47rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* 4.2 Puzzle collections and directories */
.codex-volume li > strong {
  display: block;
  color: var(--silver);
  font-weight: 650;
  line-height: 1.45;
}

.puzzle-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  margin-top: 0.3rem;
}

.puzzle-links a,
.puzzle-directory a {
  color: var(--red-bright);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.puzzle-links a:hover,
.puzzle-directory a:hover {
  color: var(--ivory);
}

.puzzle-collections {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.puzzle-collection--quiet {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.018);
}

.puzzle-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.puzzle-directory--compact {
  grid-template-columns: 1fr;
}

.puzzle-directory li {
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.puzzle-directory li:nth-child(odd):not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.puzzle-directory--compact li {
  border-right: 0 !important;
}

.puzzle-directory a {
  display: flex;
  min-height: 5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem;
  color: var(--silver);
  overflow-wrap: anywhere;
}

.puzzle-directory a span {
  color: var(--red-bright);
  font-size: 0.6rem;
}

/* 4.3 About passages */
.about-passages__opening {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.about-passage {
  display: grid;
  grid-template-columns: minmax(3rem, 0.2fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  max-width: 53rem;
  padding-block: clamp(1.7rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-passage:nth-of-type(even) {
  margin-left: auto;
}

.about-passage__index {
  margin: 0;
  color: var(--red-bright);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.about-passage h3 {
  margin: 0 0 0.7rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.about-passage div > p {
  max-width: 43rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

/* 4.4 Content-refinement responsive adjustments */
@media (max-width: 52rem) {
  .puzzle-collections {
    grid-template-columns: 1fr;
  }

  .leadership-panel {
    text-align: left;
  }
}

@media (max-width: 34rem) {
  .puzzle-directory {
    grid-template-columns: 1fr;
  }

  .puzzle-directory li {
    border-right: 0 !important;
  }

  .about-passage {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}
