:root {
  --bg: #05070a;
  --bg-alt: #0b1014;
  --panel: rgba(11, 15, 20, 0.84);
  --panel-strong: rgba(17, 22, 29, 0.96);
  --text: #f4eee5;
  --muted: rgba(226, 217, 206, 0.72);
  --faint: rgba(226, 217, 206, 0.46);
  --line: rgba(226, 217, 206, 0.12);
  --line-strong: rgba(226, 217, 206, 0.24);
  --accent: #c79a66;
  --accent-strong: #ead1ac;
  --accent-soft: rgba(199, 154, 102, 0.18);
  --accent-ink: #120c08;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  --scroll-progress: 0%;
}

html[data-theme="light"] {
  --bg: #f7f3ea;
  --bg-alt: #fffaf3;
  --panel: rgba(255, 252, 246, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --text: #161311;
  --muted: rgba(70, 61, 53, 0.74);
  --faint: rgba(70, 61, 53, 0.48);
  --line: rgba(22, 19, 17, 0.12);
  --line-strong: rgba(22, 19, 17, 0.2);
  --accent: #8b5c34;
  --accent-strong: #6d4426;
  --accent-soft: rgba(139, 92, 52, 0.14);
  --accent-ink: #fcf7f0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  background: var(--bg);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  background:
    radial-gradient(circle at 10% 14%, rgba(199, 154, 102, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(118, 139, 136, 0.08), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(199, 154, 102, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.012));
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 10% 14%, rgba(139, 92, 52, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(112, 132, 124, 0.07), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 52, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 26%, transparent 76%, rgba(255, 255, 255, 0.28));
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.16;
}

html[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  opacity: 0.2;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.page-shell::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 2px;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-strong) 50%, transparent);
  box-shadow: 0 0 18px rgba(199, 154, 102, 0.35);
}

main,
section,
header,
footer {
  display: block;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section-inner {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.88), rgba(11, 15, 20, 0.58));
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(247, 243, 234, 0.95), rgba(247, 243, 234, 0.76));
  box-shadow: 0 14px 38px rgba(40, 30, 15, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  padding: 4px;
  flex: none;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-family: "Fraunces", serif;
  font-size: 1.02rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.brand-copy span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a[data-active]::after {
  transform: scaleX(1);
}

.site-nav a[data-active] {
  color: var(--text);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.header-cta,
.btn {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
  box-shadow: none;
}

.theme-toggle:hover,
.header-cta:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.theme-toggle:active,
.header-cta:active,
.btn:active {
  transform: translateY(0);
}

.theme-toggle {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.02);
}

.theme-toggle__icon {
  position: relative;
  width: 32px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.theme-toggle__icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, background-color 0.24s ease;
  transform: translateX(14px);
}

html[data-theme="light"] .theme-toggle__icon {
  background: linear-gradient(180deg, rgba(139, 92, 52, 0.15), rgba(139, 92, 52, 0.05));
}

html[data-theme="light"] .theme-toggle__icon::before {
  transform: translateX(0);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-color: rgba(199, 154, 102, 0.45);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px rgba(199, 154, 102, 0.16);
}

html[data-theme="light"] .header-cta {
  border-color: rgba(139, 92, 52, 0.34);
}

.header-cta:hover {
  background: var(--accent-strong);
  color: var(--bg);
}

.hero {
  padding: clamp(28px, 4vw, 48px) 0 clamp(30px, 5vw, 56px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 156px);
}

.hero-copy {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin-top: 14px;
  font-family: "Fraunces", serif;
  font-size: clamp(3.2rem, 9.2vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 10ch;
}

.lede {
  margin-top: 18px;
  max-width: 40ch;
  font-size: clamp(1rem, 1.45vw, 1.26rem);
  color: var(--muted);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(199, 154, 102, 0.16);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.03);
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-rail__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.hero-rail__item + .hero-rail__item {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.hero-rail__item span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-rail__item strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-sigil {
  position: relative;
  width: min(100%, 620px);
  justify-self: end;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-soft) 0, rgba(0, 0, 0, 0) 52%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

html[data-theme="light"] .hero-sigil {
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 52, 0.12) 0, rgba(0, 0, 0, 0) 54%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.56), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28));
}

.hero-sigil__graphic {
  position: absolute;
  inset: 17%;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  animation: graphic-rotate 72s linear infinite;
  transform-origin: center;
}

.hero-sigil__graphic svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-sigil__graphic-ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
  opacity: 0.72;
}

.hero-sigil__graphic-ring--inner {
  opacity: 0.45;
}

.hero-sigil__graphic-route {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
  opacity: 0.72;
  animation: route-flow 28s linear infinite;
}

.hero-sigil__graphic-route--b {
  animation-duration: 34s;
  opacity: 0.55;
}

.hero-sigil__graphic-route--c {
  animation-duration: 42s;
  opacity: 0.38;
}

.hero-sigil__graphic-node {
  fill: var(--accent);
  filter: drop-shadow(0 0 10px rgba(199, 154, 102, 0.25));
  transform-origin: center;
  animation: node-pulse 4.8s ease-in-out infinite;
}

.hero-sigil__graphic-node--b {
  animation-delay: 0.8s;
}

.hero-sigil__graphic-node--c {
  animation-delay: 1.6s;
}

.hero-sigil::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.08) 0 2.5deg, transparent 2.5deg 12deg),
    radial-gradient(circle at center, transparent 0 63.5%, var(--line-strong) 64% 64.8%, transparent 65% 100%);
  opacity: 0.7;
  animation: sigil-spin 90s linear infinite;
}

html[data-theme="light"] .hero-sigil::before {
  background:
    repeating-conic-gradient(from 0deg, rgba(0, 0, 0, 0.08) 0 2.5deg, transparent 2.5deg 12deg),
    radial-gradient(circle at center, transparent 0 63.5%, rgba(22, 19, 17, 0.22) 64% 64.8%, transparent 65% 100%);
}

.hero-sigil::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(199, 154, 102, 0.18), transparent 56%);
  filter: blur(10px);
  opacity: 0.7;
}

.hero-sigil__logo,
.not-found-orbit__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.hero-sigil__logo {
  width: 78%;
  height: 78%;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.18));
}

.not-found-orbit__logo {
  width: 74%;
  height: 74%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16));
}

.hero-sigil__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-sigil__ring--outer {
  inset: 13%;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-sigil__ring--inner {
  inset: 28%;
  border: 1px solid var(--line);
}

.hero-sigil__axis {
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent 0 5%, var(--line-strong) 5% 95%, transparent 95% 100%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-sigil__axis--horizontal {
  width: 70%;
  height: 1px;
}

.hero-sigil__axis--vertical {
  width: 1px;
  height: 70%;
  background: linear-gradient(180deg, transparent 0 5%, var(--line-strong) 5% 95%, transparent 95% 100%);
}

.hero-sigil__core {
  position: absolute;
  inset: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  animation: core-breathe 12s ease-in-out infinite;
}

.hero-sigil__core span {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-sigil__core small {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-sigil__pin {
  position: absolute;
  max-width: 180px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.hero-sigil__pin--a {
  top: 14%;
  right: 6%;
}

.hero-sigil__pin--b {
  bottom: 13%;
  left: 10%;
}

.hero-sigil__pin--c {
  left: 3%;
  top: 54%;
  transform: translateY(-50%);
}

html[data-theme="light"] .hero-sigil__pin {
  box-shadow: 0 14px 24px rgba(39, 30, 17, 0.08);
}

html[data-theme="light"] .hero-sigil__graphic-ring {
  stroke: rgba(22, 19, 17, 0.18);
}

html[data-theme="light"] .hero-sigil__graphic-route {
  stroke: var(--accent);
}

html[data-theme="light"] .hero-sigil__graphic-node {
  fill: var(--accent-strong);
  filter: drop-shadow(0 0 8px rgba(139, 92, 52, 0.18));
}

.section {
  padding: clamp(48px, 6vw, 88px) 0;
  position: relative;
}

.section:not(.hero) {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.section-body {
  margin-top: 18px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1rem;
}

.manifest-grid,
.lanes-grid,
.protocol-grid,
.contact-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.manifest-grid {
  grid-template-columns: minmax(220px, 0.84fr) minmax(0, 1.16fr);
}

.lanes-grid,
.protocol-grid,
.contact-grid {
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
}

.manifest-list,
.lane-table,
.protocol-table,
.contact-panel {
  min-width: 0;
}

.manifest-list,
.lane-table,
.protocol-table {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifest-row,
.lane-row,
.scope-row,
.contact-line {
  display: grid;
  gap: 18px;
  align-items: start;
}

.manifest-row {
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.manifest-row:last-child,
.lane-row:last-child,
.scope-row:last-child,
.contact-line:last-child {
  border-bottom: 0;
}

.manifest-row span,
.lane-row span,
.scope-row span,
.contact-line span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  padding-top: 3px;
}

.manifest-row h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.manifest-row p {
  color: var(--muted);
}

.lane-row,
.scope-row {
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.lane-row strong,
.scope-row strong,
.contact-line strong {
  font-weight: 500;
}

.lane-row:hover strong,
.scope-row:hover strong {
  color: var(--accent-strong);
}

.contact-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .contact-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
  box-shadow: 0 16px 36px rgba(27, 20, 12, 0.08);
}

.contact-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.9;
}

.contact-panel__title {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.contact-line {
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

body.page-404 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-404 .not-found {
  flex: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
  padding-block: 28px 44px;
}

.not-found-copy {
  max-width: 560px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.not-found-copy .brand {
  margin-bottom: 30px;
}

.not-found-copy .eyebrow {
  margin-bottom: 12px;
}

.not-found-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 8ch;
}

.not-found-copy p {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.not-found-orbit {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-soft) 0, rgba(0, 0, 0, 0) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  overflow: hidden;
}

html[data-theme="light"] .not-found-orbit {
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 52, 0.12) 0, rgba(0, 0, 0, 0) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28));
}

.not-found-orbit::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.08) 0 2.5deg, transparent 2.5deg 14deg);
  animation: sigil-spin 90s linear infinite;
  opacity: 0.65;
}

html[data-theme="light"] .not-found-orbit::before {
  background: repeating-conic-gradient(from 0deg, rgba(0, 0, 0, 0.08) 0 2.5deg, transparent 2.5deg 14deg);
}

.not-found-orbit::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(199, 154, 102, 0.18), transparent 58%);
  filter: blur(10px);
  opacity: 0.75;
}

.not-found-orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.not-found-orbit__ring--outer {
  inset: 14%;
  border: 1px solid var(--line-strong);
}

.not-found-orbit__ring--inner {
  inset: 29%;
  border: 1px solid var(--line);
}

.not-found-orbit__core {
  position: absolute;
  inset: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line-strong);
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  letter-spacing: -0.06em;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html[data-theme="light"] .hero-sigil__core,
html[data-theme="light"] .not-found-orbit__core {
  box-shadow: 0 16px 32px rgba(27, 20, 12, 0.12);
}

@keyframes sigil-spin {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes core-breathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.015);
  }
}

@keyframes graphic-rotate {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes route-flow {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.24);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 12px;
  }

  .brand {
    grid-area: brand;
  }

  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .header-actions {
    grid-area: actions;
  }

  .hero-grid,
  .manifest-grid,
  .lanes-grid,
  .protocol-grid,
  .contact-grid,
  .page-404 .not-found {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-areas:
      "sigil"
      "copy";
  }

  .hero-copy {
    grid-area: copy;
  }

  .hero-sigil {
    grid-area: sigil;
    justify-self: center;
  }

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

  .hero-copy,
  .not-found-copy {
    padding-left: 16px;
  }

  .hero-sigil,
  .not-found-orbit {
    justify-self: start;
    width: min(100%, 560px);
  }
}

@media (max-width: 760px) {
  .section-inner,
  .page-404 .not-found {
    width: min(100% - 28px, 1220px);
  }

  .site-header {
    top: 8px;
    padding: 12px 14px 13px;
    border-radius: 22px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy span {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    white-space: normal;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle,
  .header-cta,
  .btn {
    min-height: 42px;
    padding-inline: 14px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-copy,
  .not-found-copy {
    padding-left: 0;
    border-left: 0;
  }

  .hero h1,
  .not-found-copy h1 {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 14vw, 4.45rem);
  }

  .hero-sigil {
    display: block;
    justify-self: center;
    width: min(100%, 320px);
  }

  .hero-sigil__graphic {
    inset: 16%;
  }

  .hero-sigil__pin {
    display: none;
  }

  .hero-rail {
    grid-template-columns: 1fr;
  }

  .hero-rail__item + .hero-rail__item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
    margin-top: 2px;
  }

  .manifest-row,
  .lane-row,
  .scope-row,
  .contact-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-sigil,
  .not-found-orbit {
    width: min(100%, 300px);
  }
}

@media (max-width: 520px) {
  body::after {
    background-size: 56px 56px;
    opacity: 0.08;
  }

  .site-header {
    position: static;
    top: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    justify-items: stretch;
    gap: 10px;
    margin-top: 0;
    padding: 12px 12px 14px;
    border-radius: 18px;
  }

  .brand,
  .header-actions,
  .site-nav {
    width: 100%;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    padding: 3px;
  }

  .brand-copy strong {
    font-size: 0.84rem;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
  }

  .brand-copy span {
    display: none;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    gap: 14px;
  }

  .hero-sigil,
  .not-found-orbit {
    width: min(100%, 300px);
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
