:root {
  --bg: #07090b;
  --bg2: #0b0f12;

  --panel: rgba(10, 14, 17, 0.76);
  --panel2: rgba(20, 23, 25, 0.72);

  --line: rgba(209, 190, 159, 0.18);
  --line2: rgba(255, 69, 42, 0.32);

  --text: #e6ddd0;
  --muted: #a79b8c;
  --dim: #6d665f;

  --red: #ff2a18;
  --red2: #ff6a3d;
  --gold: #c8ad7d;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}




* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 67, 28, 0.12), transparent 34rem),
    radial-gradient(circle at 10% 30%, rgba(188, 130, 71, 0.08), transparent 42rem),
    linear-gradient(180deg, #080a0d, #07090b 52%, #040506);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 84%, transparent);
}

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

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

button {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: -999px;
  z-index: 99;
  padding: 0.8rem 1rem;
  color: #000000;
  background-color: #ffffff;
  border-radius: 0.4rem;
}

.skip-link:focus {
  left: 1rem;
}




.site-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

main {
  grid-column: 2;
  grid-row: 2;
}




.sidebar {
  grid-row: 1 / span 2;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  padding: 2rem 1.6rem;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 11, 13, 0.94), rgba(4, 6, 8, 0.86));
  backdrop-filter: blur(14px);
}

.brand {
  display: block;
  margin-bottom: 3rem;
}

.brand-mark {
  width: 82px;
  height: 82px;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 20px rgba(255, 42, 24, 0.45));
}

.brand-name {
  display: block;
  color: #cdbda4;
  font-size: 3.1rem;
  line-height: 0.9;
  letter-spacing: 0.36em;
}

.brand-name span {
  color: var(--red);
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.32em;
}

.protocol-lines {
  margin-bottom: 2rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.protocol-lines p {
  margin-top: 0.78rem;
  margin-bottom: 0.78rem;
}

.protocol-lines strong {
  display: block;
  margin-top: 0.9rem;
  color: var(--red);
  line-height: 1.6;
}

.status-card {
  position: relative;
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: var(--panel);
}

.status-card h2 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.status-live {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.mono {
  color: #d7c7b6;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
}

.orb {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 42, 24, 0.8) 0 4px, transparent 5px),
    repeating-radial-gradient(circle, rgba(255, 42, 24, 0.28) 0 1px, transparent 2px 10px);
  box-shadow: 0 0 32px rgba(255, 42, 24, 0.32);
}

.metrics {
  display: grid;
  gap: 1rem;
}

.metrics div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: end;
}

.metrics span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.metrics strong {
  color: #d0b79a;
  font-weight: 400;
}

.metrics i {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.09);
}

.metrics i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--red), var(--red2));
  box-shadow: 0 0 14px rgba(255, 42, 24, 0.8);
}

.sidebar-close {
  margin-top: 3rem;
  margin-bottom: 5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}




.topbar {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  gap: 0rem;
  justify-content: space-between;
  padding-right: 1.4rem;
  padding-left: 1.4rem;
  border-bottom: 1px solid var(--line);
  background-color: rgba(5, 8, 10, 0.78);
  backdrop-filter: blur(18px);
}

.topbar nav {
  display: flex;
  align-items: stretch;
}

.topbar a,
.menu-toggle {
  position: relative;
  padding: 1rem 1.05rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background-color: transparent;
  border: 0;
}

.topbar a:hover,
.topbar a:focus-visible,
.menu-toggle:hover {
  color: var(--red);
  background-color: rgba(255, 42, 24, 0.06);
}

.topbar a span {
  display: block;
  margin-top: 0.25rem;
  color: var(--dim);
  font-size: 0.55rem;
}

.top-actions {
  display: flex;
}

.menu-toggle {
  display: none;
  font-size: 1.15rem;
}

.topbar a[href="#lab"]::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  bottom: 18%;
  width: 1px;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(200, 173, 125, 0.28),
      rgba(255, 42, 24, 0.34),
      transparent
    );
  box-shadow: 0 0 10px rgba(255, 42, 24, 0.12);
}

.topbar a::before,
.menu-toggle::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 1px;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(200, 173, 125, 0.28),
      rgba(255, 42, 24, 0.34),
      rgba(200, 173, 125, 0.18),
      transparent
    );
  box-shadow: 0 0 10px rgba(255, 42, 24, 0.12);
}

.topbar a:hover::before,
.topbar a:focus-visible::before,
.menu-toggle:hover::before {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(255, 42, 24, 0.92),
      rgba(200, 173, 125, 0.42),
      transparent
    );
  box-shadow: 0 0 16px rgba(255, 42, 24, 0.42);
}



.top-actions {
  display: flex;
  margin-left: 1.4rem;
  padding-left: 1,4rem;
  position: relative;
}

.top-actions::before {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 0;
  width: 6px !important;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(255, 42, 24, 0.9),
      rgba(200, 173, 125, 0.42),
      transparent
    );
  box-shadow: 0 0 18px rgba(255, 42, 24, 0.45);
}



.hero {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: calc(100vh - 72px);
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.1) brightness(0.7);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.78), rgba(4, 6, 8, 0.28) 52%, rgba(4, 6, 8, 0.72)),
    linear-gradient(0deg, rgba(4, 6, 8, 0.9), transparent 48%);
}

.scanline {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
}

.hero h1 {
  margin-top: 0.2rem;
  margin-bottom: 0;
  color: #d8c0a2;
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: 0.8;
  letter-spacing: 0.08em;
  text-shadow: 0 0 50px rgba(255, 42, 24, 0.2);
}

.subtitle {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.lead {
  max-width: 760px;
  color: #d8cec0;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
}

.button.primary {
  border-color: rgba(255, 42, 24, 0.7);
  background: linear-gradient(90deg, rgba(255, 42, 24, 0.9), rgba(153, 22, 15, 0.86));
  box-shadow: 0 0 24px rgba(255, 42, 24, 0.24);
}

.button.ghost:hover {
  color: var(--red);
  border-color: var(--red);
}




section {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.4rem, 4vw, 4rem);
}

h2 {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.briefing-text p,
.feature-copy p,
.section-head p,
.message-card p {
  max-width: 820px;
  color: #cfc4b6;
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}




.briefing-grid {
  display: grid;
  grid-template-columns: minmax(260px, 480px) minmax(0, 720px);
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.015);
}




.network-map,
.portal-selection,
.ui-section {
  background: linear-gradient(180deg, rgba(255, 42, 24, 0.025), transparent);
}

.map-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: #090b0d;
  box-shadow: var(--shadow);
}

.map-panel img {
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent, rgba(0, 0, 0, 0.45));
}

.map-nodes button {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 46px;
  height: 46px;
  font-family: var(--mono);
  cursor: pointer;
  background-color: rgba(255, 42, 24, 0.15);
  border: 1px solid rgba(255, 42, 24, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 42, 24, 0.6);
  transform: translate(-50%, -50%);
}

.map-nodes button:hover {
  background-color: rgba(255, 42, 24, 0.44);
}




.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters button {
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filters button.active,
.filters button:hover {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 18px rgba(255, 42, 24, 0.2);
}

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

.portal-card {
  min-height: 100%;
}

.portal-button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background-color: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.portal-button:hover {
  border-color: rgba(255, 42, 24, 0.62);
  box-shadow: 0 22px 70px rgba(255, 42, 24, 0.15);
  transform: translateY(-4px);
}

.portal-button img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.98);
}

.portal-number {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 1.8rem;
  line-height: 1;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
}

.portal-content {
  display: block;
  padding: 1rem 1rem 3rem;
}

.portal-content strong {
  display: block;
  color: #efe5d5;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-content em {
  display: block;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-content small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.enter {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}




.feature-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.feature-split.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.feature-split.reverse .feature-image {
  order: 2;
}

.feature-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: min(68vh, 760px);
  object-fit: cover;
}

.feature-copy {
  padding: 1rem;
}




.artifact-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.artifact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.artifact-cards figure,
.icon-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background-color: var(--panel);
}

.artifact-cards img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.artifact-cards figcaption,
.icon-grid figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.ui-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ui-tile {
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background-color: var(--panel);
}

.ui-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ui-tile span {
  display: block;
  padding: 1rem;
  color: #d7c8b7;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ui-tile:hover {
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(255, 42, 24, 0.12);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.icon-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #000000;
}




.manifesto {
  padding-bottom: 8rem;
}

.message-card {
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--line2);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 42, 24, 0.1), rgba(12, 16, 18, 0.75));
  box-shadow: var(--shadow);
}

.message-card h2 {
  max-width: 900px;
}

.closing-line {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  color: #f4e5d1 !important;
  font-size: 1.45rem !important;
  border-top: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.86);
}

.modal[hidden] {
  display: none;
}

.modal img {
  max-width: 92vw;
  max-height: 82vh;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal p {
  max-width: 900px;
  color: #e8ddcf;
  text-align: center;
}

.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-open {
  overflow: hidden;
}




.pi-symbol {
  color: var(--red);
  font-family: Georgia, "Times New Roman", Cambria, serif !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-shadow: 0 0 18px rgba(255, 48, 34, 0.55);
}

.brand .pi-decoder,
.hero-pi {
  display: block;
  margin-top: 0.2rem;
  margin-bottom: 0.85rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  opacity: 0.92;
}

.brand .pi-decoder {
  margin-top: -0.35rem;
}

.hero-brand {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
}

.hero-brand .pi-symbol {
  font-size: 0.72em;
  transform: translateY(0.02em);
}

.inline-pi {
  display: block;
  margin-top: 0.65rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.brand-name .pi-symbol {
  font-size: 0.82em;
  transform: translateY(0.04em);
}




.lab-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 42, 24, 0.032), rgba(255, 255, 255, 0.01));
}


.console-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(7, 10, 12, 0.82));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}


.console-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  color: #f0e2cf;
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.console-card p {
  color: #cfc4b6;
}

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

.console-card {
  min-height: 320px;
}

.console-card label {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.console-card input[type="range"] {
  width: 100%;
  accent-color: #ff2a18;
}

.readout {
  margin-top: 1.4rem;
  padding: 1rem;
  color: #f5e2ce;
  border: 1px solid rgba(255, 42, 24, 0.32);
  border-radius: 0.8rem;
  background-color: rgba(255, 42, 24, 0.07);
}

.readout span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 2.5rem;
  text-shadow: 0 0 18px rgba(255, 42, 24, 0.45);
}

.readout small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.route-buttons,
.decoder-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.route-buttons button,
.decoder-buttons button {
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background-color: rgba(255, 255, 255, 0.025);
}

.route-buttons button:hover,
.decoder-buttons button:hover,
.route-buttons button.active,
.decoder-buttons button.active {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255, 42, 24, 0.2);
}

.route-output,
.fragment-output {
  min-height: 92px;
  padding: 1rem;
  color: #f0e2cf;
  border-left: 2px solid var(--red);
  background-color: rgba(0, 0, 0, 0.25);
}




.lesson-section,
.production-notes {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 42, 24, 0.028), rgba(255, 255, 255, 0.008));
}

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

.lesson-paper {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.044), rgba(5, 8, 10, 0.86));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.lesson-paper[open] {
  border-color: rgba(255, 42, 24, 0.48);
  box-shadow: 0 26px 88px rgba(255, 42, 24, 0.12);
}

.lesson-paper summary {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  list-style: none;
  cursor: pointer;
}

.lesson-paper summary::-webkit-details-marker {
  display: none;
}

.lesson-paper img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  filter: brightness(0.82) saturate(0.96);
}

.lesson-index {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.lesson-paper h3 {
  margin: 0;
  color: #efe5d5;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lesson-tag {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lesson-open {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lesson-body {
  display: grid;
  gap: 0.85rem;
  padding: 0 1.15rem 1.2rem 1.15rem;
  color: #cfc4b6;
  border-top: 1px solid var(--line);
}

.lesson-body p {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.lesson-body dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.6rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.lesson-body dt {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lesson-body dd {
  margin: 0;
  color: #d8cec0;
}

.lesson-task {
  padding: 0.85rem 1rem;
  color: #f4e5d1;
  border-left: 2px solid var(--red);
  background-color: rgba(255, 42, 24, 0.07);
}

.lesson-meta {
  margin-top: 0.3rem;
  padding-top: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-top: 1px solid var(--line);
}









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

.credits-grid article {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: var(--panel);
}

.credits-grid h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  color: #f0e2cf;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.contact-email {
  color: var(--red);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}




@media (max-width: 1100px) {
  .site-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .sidebar {
    grid-column: 1;
    grid-row: auto;
    position: relative;
    height: auto;
  }

  .topbar,
  main {
    grid-column: 1;
    grid-row: auto;
  }

  .topbar {
    top: 0;
  }

  .topbar nav {
    display: none;
  }

  .nav-open .topbar nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    border-bottom: 1px solid var(--line);
    background-color: #080b0d;
  }

  .menu-toggle {
    display: block;
  }

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

  .briefing-grid,
  .feature-split,
  .feature-split.reverse {
    grid-template-columns: 1fr;
  }

  .feature-split.reverse .feature-image {
    order: 0;
  }

  .ui-gallery,
  .icon-grid,
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand .pi-decoder {
    margin-top: 0.2rem;
  }

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

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

  .lesson-paper summary {
    grid-template-columns: 74px 1fr;
  }

  .lesson-open {
    grid-column: 2;
  }

  .lesson-paper img {
    width: 74px;
    height: 74px;
  }

  .lesson-body dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 1.2rem;
  }

  .brand-name {
    font-size: 2.2rem;
  }

  .topbar {
    padding-right: 0;
    padding-left: 0;
  }

  .topbar a,
  .menu-toggle {
    padding: 0.8rem;
  }

  .hero {
    min-height: 76vh;
    padding: 2rem 1.2rem;
  }

  .hero-brand {
    font-size: 4rem !important;
  }

  .subtitle {
    letter-spacing: 0.12em;
  }

  .brand .pi-decoder,
  .hero-pi {
    letter-spacing: 0.16em;
  }

  .portal-grid,
  .artifact-cards,
  .ui-gallery,
  .icon-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .section-head.inline {
    display: block;
  }

  .feature-image img {
    height: 420px;
  }

  .map-nodes button {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  .lesson-paper summary {
    grid-template-columns: 1fr;
  }

  .lesson-paper img {
    width: 100%;
    height: 180px;
  }

  .lesson-open {
    grid-column: auto;
  }

  .lesson-body {
    padding: 0 1rem 1rem 1rem;
  }

  .lesson-body dl {
    gap: 0.25rem;
  }

  .lesson-body dd {
    margin-bottom: 0.5rem;
  }
}




@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}





.manifesto {
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.production-notes {
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.site-footer {
  grid-column: 2;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 42, 24, 0.08), transparent 38%),
    rgba(4, 6, 8, 0.92);
  padding: 1.4rem clamp(1.4rem, 4vw, 4rem) 1.6rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer-title {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer-copyright {
  margin-top: 0.55rem !important;
  color: #d7c7b6;
  font-size: 0.9rem;
}

.site-footer-legal {
  margin-top: 0.45rem !important;
  max-width: 980px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.site-footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 18px rgba(255, 42, 24, 0.18);
}

@media (max-width: 1100px) {
  .site-footer {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 1.25rem;
  }

  .site-footer-links {
    display: grid;
  }
}




.production-notes,
.privacy-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.production-notes + .privacy-section {
  border-top: 1px solid var(--line);
}

.compact-legal-grid article {
  min-height: 100%;
}

.compact-legal-grid p,
.credits-grid p {
  line-height: 1.62;
}

.site-footer {
  padding-top: 1.15rem;
  padding-bottom: 1.25rem;
}

.site-footer-legal {
  max-width: 900px;
}




.sidebar {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 42, 24, 0.78) rgba(255, 255, 255, 0.045);
}


.sidebar::-webkit-scrollbar {
  width: 0.5rem;
}

.sidebar::-webkit-scrollbar-track {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(209, 190, 159, 0.08),
      transparent
    );
  border-left: 1px solid rgba(209, 190, 159, 0.12);
}

.sidebar::-webkit-scrollbar-thumb {
  min-height: 4rem;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 42, 24, 0.95),
      rgba(200, 173, 125, 0.42),
      rgba(255, 42, 24, 0.72)
    );
  box-shadow:
    0 0 12px rgba(255, 42, 24, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 106, 61, 1),
      rgba(200, 173, 125, 0.55),
      rgba(255, 42, 24, 0.9)
    );
}


.sidebar-scroll-cue {
  display: grid;
  justify-items: center;
  width: 82px;
  margin-top: -0.4rem;
  margin-bottom: -1.7rem;
  gap: 0.45rem;
}


.sidebar-scroll-pointer {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background-color: var(--red);
  box-shadow:
    0 0 0 1px rgba(255, 42, 24, 0.55),
    0 0 18px rgba(255, 42, 24, 0.78);
}


.sidebar-scroll-line {
  width: 1px;
  height: 4.25rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 42, 24, 0.64),
      rgba(200, 173, 125, 0.25),
      transparent
    );
  box-shadow: 0 0 16px rgba(255, 42, 24, 0.24);
}


@media (max-width: 640px) {
  .sidebar-scroll-cue {
    width: 72px;
    margin-bottom: 1.35rem;
  }

  .sidebar-scroll-line {
    height: 3.4rem;
  }
}



:root {
  --cursor-orb-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23ff6a3d'/%3E%3Cstop offset='100%25' stop-color='%23ff2a18'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='9.5' fill='none' stroke='rgba(255,42,24,0.95)' stroke-width='1.6'/%3E%3Ccircle cx='16' cy='16' r='4.1' fill='url(%23g)'/%3E%3Ccircle cx='16' cy='16' r='13.2' fill='none' stroke='rgba(200,173,125,0.45)' stroke-width='1'/%3E%3C/svg%3E") 16 16, auto;

  --cursor-orb-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23ffd2c0'/%3E%3Cstop offset='35%25' stop-color='%23ff6a3d'/%3E%3Cstop offset='100%25' stop-color='%23ff2a18'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='18' cy='18' r='10.4' fill='none' stroke='rgba(255,42,24,1)' stroke-width='1.9'/%3E%3Ccircle cx='18' cy='18' r='4.8' fill='url(%23g)'/%3E%3Ccircle cx='18' cy='18' r='14.5' fill='none' stroke='rgba(255,42,24,0.35)' stroke-width='1.2'/%3E%3Ccircle cx='18' cy='18' r='16.5' fill='none' stroke='rgba(200,173,125,0.4)' stroke-width='0.8'/%3E%3C/svg%3E") 18 18, pointer;
}

html,
body {
  cursor: var(--cursor-orb-default);
}

a,
button,
summary,
[role='button'],
.menu-toggle,
.filters button,
.map-nodes button,
.portal-button,
.ui-tile,
.route-buttons button,
.decoder-buttons button,
.button,
.lesson-paper summary {
  cursor: var(--cursor-orb-active);
}

input[type='text'],
input[type='email'],
input[type='search'],
input[type='password'],
textarea {
  cursor: text;
}

input[type='range'] {
  cursor: var(--cursor-orb-active);
}


@media (hover: none), (pointer: coarse) {
  html,
  body,
  a,
  button,
  summary,
  [role='button'],
  .menu-toggle,
  .filters button,
  .map-nodes button,
  .portal-button,
  .ui-tile,
  .route-buttons button,
  .decoder-buttons button,
  .button,
  .lesson-paper summary,
  input[type='range'] {
    cursor: auto;
  }
}



:root {
  --cursor-poppi-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='10' fill='none' stroke='%23ff2a18' stroke-opacity='0.85' stroke-width='1.4'/%3E%3Ccircle cx='15' cy='15' r='3.5' fill='%23ff2a18'/%3E%3Ccircle cx='15' cy='15' r='13' fill='none' stroke='%23c8ad7d' stroke-opacity='0.28' stroke-width='0.8'/%3E%3C/svg%3E") 15 15, auto;

  --cursor-poppi-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='20' fill='rgba(255,42,24,0.10)' stroke='%23ff2a18' stroke-opacity='1' stroke-width='2.4'/%3E%3Ccircle cx='26' cy='26' r='11' fill='none' stroke='%23c8ad7d' stroke-opacity='0.9' stroke-width='1.5'/%3E%3Ccircle cx='26' cy='26' r='4.8' fill='%23ff6a3d'/%3E%3Cpath d='M26 2 L30 12 L22 12 Z' fill='%23ff2a18'/%3E%3Cpath d='M26 50 L22 40 L30 40 Z' fill='%23ff2a18'/%3E%3Cpath d='M2 26 L12 22 L12 30 Z' fill='%23c8ad7d' fill-opacity='0.85'/%3E%3Cpath d='M50 26 L40 30 L40 22 Z' fill='%23c8ad7d' fill-opacity='0.85'/%3E%3C/svg%3E") 26 26, pointer;

  --cursor-poppi-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42'%3E%3Ccircle cx='21' cy='21' r='17' fill='rgba(255,42,24,0.18)' stroke='%23ff2a18' stroke-opacity='1' stroke-width='3'/%3E%3Ccircle cx='21' cy='21' r='8' fill='none' stroke='%23c8ad7d' stroke-opacity='0.9' stroke-width='1.5'/%3E%3Ccircle cx='21' cy='21' r='5.5' fill='%23ff2a18'/%3E%3Cpath d='M21 5 L24 13 L18 13 Z' fill='%23c8ad7d'/%3E%3Cpath d='M21 37 L18 29 L24 29 Z' fill='%23c8ad7d'/%3E%3C/svg%3E") 21 21, pointer;
}

html,
body {
  cursor: var(--cursor-poppi-default);
}

a,
button,
summary,
[role="button"],
.button,
.menu-toggle,
.filters button,
.map-nodes button,
.portal-button,
.ui-tile,
.lesson-paper summary,
.route-buttons button,
.decoder-buttons button,
input[type="range"] {
  cursor: var(--cursor-poppi-hover);
}

a:active,
button:active,
summary:active,
[role="button"]:active,
.button:active,
.menu-toggle:active,
.filters button:active,
.map-nodes button:active,
.portal-button:active,
.ui-tile:active,
.lesson-paper summary:active,
.route-buttons button:active,
.decoder-buttons button:active {
  cursor: var(--cursor-poppi-active);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea {
  cursor: text;
}

@media (hover: none), (pointer: coarse) {
  html,
  body,
  a,
  button,
  summary,
  [role="button"],
  .button,
  .menu-toggle,
  .filters button,
  .map-nodes button,
  .portal-button,
  .ui-tile,
  .lesson-paper summary,
  .route-buttons button,
  .decoder-buttons button,
  input[type="range"] {
    cursor: auto;
  }
}


.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(209, 190, 159, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(7, 9, 11, 0.94),
      rgba(20, 23, 25, 0.84)
    );
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.52),
    0 0 24px rgba(255, 42, 24, 0.18);
  backdrop-filter: blur(14px);
  cursor: var(--cursor-poppi-hover);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #f4e5d1;
  border-color: rgba(255, 42, 24, 0.78);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(255, 42, 24, 0.38);
  transform: translateY(-2px);
}

.back-to-top:active {
  cursor: var(--cursor-poppi-active);
  transform: translateY(0);
}

.back-to-top-orb {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid rgba(255, 42, 24, 0.95);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(200, 173, 125, 0.24),
    0 0 14px rgba(255, 42, 24, 0.58);
}

.back-to-top-orb::before {
  content: "";
  position: absolute;
  inset: 0.36rem;
  border-radius: 50%;
  background-color: var(--red);
  box-shadow: 0 0 10px rgba(255, 42, 24, 0.9);
}

.back-to-top-orb::after {
  content: "";
  position: absolute;
  top: -0.36rem;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 0.25rem solid transparent;
  border-bottom: 0.42rem solid var(--red);
  border-left: 0.25rem solid transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 8px rgba(255, 42, 24, 0.9));
}

.back-to-top-label {
  display: inline-block;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.62rem;
  }

  .back-to-top-label {
    display: none;
  }
}


.back-to-top-mobile {
  display: none;
}

.back-to-main-desktop {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .back-to-main-desktop {
    display: none;
  }

  .back-to-top-mobile {
    display: inline-flex;
  }
}



.dossier-button {
  border-color: rgba(200, 173, 125, 0.42);
  background-color: rgba(255, 255, 255, 0.035);
}

.dossier-button:hover,
.dossier-button:focus-visible {
  color: #f4e5d1;
  border-color: rgba(255, 42, 24, 0.76);
  box-shadow: 0 0 24px rgba(255, 42, 24, 0.22);
}

.dossier-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 42, 24, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(255, 42, 24, 0.036), rgba(255, 255, 255, 0.012));
}

.dossier-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(209, 190, 159, 0.22);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.046), rgba(7, 10, 12, 0.84));
  box-shadow: var(--shadow);
}

.dossier-copy p {
  max-width: 820px;
  color: #cfc4b6;
  font-size: 1.05rem;
  line-height: 1.65;
}

.dossier-actions {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 42, 24, 0.28);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.22);
}

.dossier-actions small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .dossier-panel {
    grid-template-columns: 1fr;
  }
}
