:root {
  --navy: #071925;
  --navy-2: #102c3c;
  --navy-3: #194051;
  --orange: #ff7a1a;
  --orange-2: #ffad5b;
  --cyan: #75d7df;
  --cyan-deep: #287f8a;
  --paper: #edf1ee;
  --white: #fff;
  --ink: #142c38;
  --muted: #526b75;
  --line: rgba(9, 39, 59, 0.16);
  --red: #d96b68;
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

main,
.site-header,
.site-footer,
.hero-section,
.chapter-header {
  display: block;
  width: 100%;
  max-width: 100%;
}

img,
svg {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange-2);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

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

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(190, 224, 225, 0.15);
  background: rgba(5, 20, 30, 0.94);
  backdrop-filter: blur(18px);
}

.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(5, 20, 30, 0.92), rgba(5, 20, 30, 0.52));
}

.navbar {
  width: 100%;
}

.navbar-brand,
.nav-link {
  color: var(--white);
}

button.nav-link {
  border: 0;
  background: transparent;
}

.navbar-brand:hover,
.nav-link:hover,
.nav-link:focus {
  color: var(--orange-2);
}

.brand-mark {
  display: flex;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(117, 215, 223, 0.55);
  background: rgba(117, 215, 223, 0.07);
  color: var(--cyan);
  font-size: 1.1rem;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy b {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-copy b span {
  color: var(--orange);
}

.brand-copy small {
  margin-top: 0.28rem;
  color: #9db9c0;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
}

.navbar-toggler {
  border: 0;
  color: var(--white);
  font-size: 1.5rem;
}

.btn {
  border-radius: 0;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn-lab {
  border-color: var(--orange);
  background: var(--orange);
  color: #071925;
}

.btn-lab:hover {
  border-color: #ff984f;
  background: #ff984f;
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-lab {
  border-color: rgba(191, 224, 229, 0.48);
  color: var(--white);
}

.btn-outline-lab:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.chapter-dropdown {
  width: min(360px, calc(100vw - 2rem));
  min-width: 0;
  max-height: 75vh;
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.2rem;
  background: #09243a;
}

.chapter-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  color: #d7e3e8;
  font-size: 0.78rem;
  white-space: normal;
}

.chapter-dropdown .dropdown-item:hover,
.chapter-dropdown .dropdown-item:focus {
  background: var(--navy-3);
  color: var(--white);
}

.chapter-dropdown .dropdown-item span {
  color: var(--orange);
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
}

.hero-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #061824;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: -4%;
  background-image:
    linear-gradient(90deg, rgba(3, 16, 24, 0.98) 0%, rgba(3, 17, 26, 0.94) 28%, rgba(3, 17, 26, 0.74) 47%, rgba(3, 17, 26, 0.16) 83%),
    linear-gradient(0deg, rgba(3, 17, 29, 0.88), transparent 40%),
    url("../img/eden-research-lab-v2.webp");
  background-position: center, center, 57% center;
  background-size: cover;
  will-change: transform;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(117, 215, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 215, 223, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, #000, transparent 64%);
  will-change: transform;
}

.hero-section::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--orange) 0 9%, rgba(117, 215, 223, 0.42) 9% 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
}

.hero-content .row {
  padding-top: clamp(6rem, 10vw, 9rem) !important;
  padding-bottom: clamp(5rem, 8vw, 7rem) !important;
}

.hero-kicker {
  margin: 1.8rem 0 1rem;
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero-section h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.5vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-wrap: balance;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.15);
}

.hero-section h1 span {
  color: #d5f0ed;
  font-weight: 400;
}

.hero-copy {
  max-width: 37rem;
  margin-top: 2.2rem;
  color: #b8cdd1;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.78;
}

.lab-clearance {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 0.55rem;
  color: #9db9c0;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
}

.batch-mark {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(117, 215, 223, 0.5);
  background: rgba(3, 20, 30, 0.48);
  color: var(--cyan);
}

.lab-clearance > i {
  width: 2rem;
  height: 1px;
  flex: 0 1 2rem;
  background: rgba(255, 255, 255, 0.32);
}

.hero-metrics {
  display: grid;
  max-width: 38rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(188, 222, 224, 0.34);
  background: rgba(4, 25, 41, 0.16);
}

.hero-metrics div {
  min-width: 0;
  padding: 1rem 1.3rem 0.45rem 0;
}

.hero-metrics div + div {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-metrics small {
  display: block;
  color: #9bb7c0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.hero-metrics strong {
  display: block;
  margin-top: 0.42rem;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 2rem;
  color: #a4bdc3;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.hero-caption span {
  color: var(--orange-2);
}

.section-space {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.eyebrow {
  margin-bottom: 1.5rem;
  color: #b75619;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mission-section h2,
.workflow-section h2,
.chapters-section h2,
.architecture-section h2 {
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.04;
  text-wrap: balance;
}

.mission-section {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 22%, rgba(42, 127, 138, 0.12), transparent 27rem),
    linear-gradient(120deg, #f1f4f0, #e6edeb);
}

.mission-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  pointer-events: none;
  background-image: radial-gradient(rgba(9, 39, 59, 0.12) 0.55px, transparent 0.55px);
  background-size: 8px 8px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}

.mission-section .container {
  position: relative;
}

.lead-copy {
  max-width: 48rem;
  color: #334f5b;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.8;
}

.principle-mini {
  min-height: 11rem;
  padding: 1.2rem 0;
  border-top: 1px solid #a7bac0;
}

.principle-mini span {
  color: #ad541f;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.principle-mini b,
.principle-mini small {
  display: block;
}

.principle-mini b {
  margin: 2.4rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.principle-mini small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.workflow-section {
  border-top: 1px solid var(--line);
  background: #f7f8f5;
}

.section-heading {
  max-width: 51rem;
}

.section-heading > p:last-child {
  max-width: 45rem;
  color: #526c76;
  font-size: 1.04rem;
  line-height: 1.75;
}

.workflow-track {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  list-style: none;
}

.workflow-track li {
  position: relative;
  min-width: 0;
  min-height: 15.5rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.workflow-track li::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  content: "";
  background: var(--orange);
}

.workflow-track span,
.workflow-track b,
.workflow-track small {
  display: block;
}

.workflow-track span {
  color: #a95722;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.workflow-track b {
  margin-top: 4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.workflow-track small {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.architecture-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 8%, rgba(32, 122, 135, 0.2), transparent 31rem),
    linear-gradient(145deg, #061a27, #0a2839 72%, #071a27);
  color: var(--white);
}

.architecture-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(117, 215, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 215, 223, 0.045) 1px, transparent 1px);
  background-size: 92px 92px;
}

.architecture-section .container {
  position: relative;
  max-width: 1600px;
}

.architecture-section .eyebrow {
  color: var(--orange-2);
}

.architecture-intro {
  max-width: 45rem;
  color: #afc8cd;
  font-size: 1.12rem;
  line-height: 1.75;
}

.architecture-map {
  display: grid;
  gap: 2.4rem;
}

.architecture-lane {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: clamp(1.2rem, 3vw, 3rem);
  grid-template-columns: 10.5rem minmax(0, 1fr);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(158, 201, 205, 0.26);
}

.lane-heading {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lane-heading span {
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lane-heading small {
  color: #83a4af;
  font-size: 0.73rem;
  line-height: 1.5;
}

.lane-flow {
  display: grid;
  min-width: 0;
  align-items: stretch;
}

.lane-flow-two {
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.37fr) minmax(0, 1fr);
}

.lane-flow-four {
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 0.4fr) minmax(0, 1fr) minmax(6.5rem, 0.4fr) minmax(0, 1fr) minmax(6.5rem, 0.4fr) minmax(0, 1fr);
}

.architecture-node {
  position: relative;
  min-width: 0;
  min-height: 10.8rem;
  padding: 1.25rem clamp(1rem, 1.7vw, 1.5rem);
  border: 1px solid rgba(117, 215, 223, 0.26);
  background: linear-gradient(145deg, rgba(30, 68, 83, 0.64), rgba(19, 51, 68, 0.72));
  box-shadow: inset 0 1px rgba(204, 238, 234, 0.07);
}

.architecture-node::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 1.9rem;
  height: 1px;
  content: "";
  background: var(--cyan);
}

.architecture-node i {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--cyan);
  font-size: 1.1rem;
}

.architecture-node b,
.architecture-node small {
  display: block;
}

.architecture-node b {
  font-family: var(--display);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 600;
  line-height: 1.25;
}

.architecture-node small {
  margin-top: 0.5rem;
  color: #a7c1ca;
  font-size: 0.76rem;
  line-height: 1.55;
}

.authority-node {
  border-color: rgba(255, 149, 78, 0.54);
  background: linear-gradient(145deg, rgba(53, 65, 68, 0.82), rgba(28, 53, 63, 0.75));
}

.authority-node::before {
  background: var(--orange);
}

.authority-node i {
  color: var(--orange-2);
}

.architecture-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-align: center;
}

.architecture-arrow::before {
  position: absolute;
  top: 58%;
  right: 1rem;
  left: 1rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.architecture-arrow::after {
  position: absolute;
  top: calc(58% - 0.25rem);
  right: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  transform: rotate(45deg);
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.architecture-arrow-both {
  color: var(--cyan);
}

.architecture-arrow-both span::before {
  position: absolute;
  top: 1.13rem;
  left: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  transform: rotate(-135deg);
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.architecture-arrow span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0 0.2rem 1.6rem;
  line-height: 1.25;
  white-space: nowrap;
}

.chapter-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 15rem;
  overflow: hidden;
  padding: 1.65rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(117, 215, 223, 0.12), transparent 47%),
    #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.chapter-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3rem;
  height: 2px;
  content: "";
  background: var(--orange);
}

.chapter-card::after {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  content: "";
  border: 1px solid rgba(9, 39, 59, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 1.8rem rgba(117, 215, 223, 0.035), 0 0 0 3.6rem rgba(117, 215, 223, 0.025);
  pointer-events: none;
}

.chapter-card:hover {
  transform: translateY(-5px);
  border-color: rgba(36, 110, 121, 0.48);
  box-shadow: 0 24px 48px rgba(7, 28, 45, 0.11);
  color: var(--ink);
}

.chapter-card > span,
.chapter-card > small {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}

.chapter-card > span {
  color: #ab521b;
}

.chapter-card > small {
  float: right;
  color: #7d909a;
}

.chapter-card h3 {
  position: relative;
  z-index: 1;
  max-width: 17rem;
  margin: 4.1rem 1rem 0 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.24;
}

.chapter-card > i {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1;
  color: #ae571f;
  font-size: 1.15rem;
}

.chapter-header {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(circle at 80% 15%, rgba(66, 158, 167, 0.22), transparent 25rem),
    linear-gradient(120deg, #061a27, #0c3042);
  color: var(--white);
}

.chapter-header::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(28%, 22rem);
  height: 3px;
  content: "";
  background: var(--orange);
}

.chapter-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(117, 215, 223, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 215, 223, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.chapter-code {
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.chapter-header h1 {
  max-width: 62rem;
  margin-right: 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 2rem;
}

.chapter-meta span {
  color: #adc5ca;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.chapter-meta i {
  margin-right: 0.35rem;
  color: var(--cyan);
}

.chapter-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: clamp(3rem, 6vw, 7rem);
  grid-template-columns: 250px minmax(0, 1fr);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 7rem;
}

.sidebar-sticky {
  position: sticky;
  top: 1.5rem;
}

.sidebar-label {
  color: #566f79;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
}

.chapter-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border-left: 2px solid var(--line);
  color: #57707e;
  font-size: 0.79rem;
  text-decoration: none;
}

.chapter-nav-link:hover {
  color: var(--navy);
}

.chapter-nav-link.active {
  border-left-color: var(--orange);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-weight: 700;
}

.chapter-nav-link > span:first-child {
  padding-top: 0.13rem;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.chapter-nav-link small {
  display: block;
  margin-bottom: 0.16rem;
  color: #7c8d96;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
}

.chapter-content {
  width: 100%;
  min-width: 0;
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.75;
}

.chapter-content h2 {
  margin: 4rem 0 1.2rem;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  scroll-margin-top: 2rem;
}

.chapter-content h2:first-child {
  margin-top: 0;
}

.chapter-content h3 {
  margin: 2.5rem 0 0.8rem;
  overflow-wrap: anywhere;
  color: var(--navy-2);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.chapter-content p,
.chapter-content ul,
.chapter-content ol {
  color: #405966;
}

.chapter-content ul,
.chapter-content ol {
  padding-left: 1.3rem;
}

.chapter-content li {
  margin: 0.45rem 0;
}

.chapter-content strong {
  color: var(--navy);
}

.chapter-content code:not(.code-panel code) {
  overflow-wrap: anywhere;
}

.learning-objectives {
  width: 100%;
  padding: 1.75rem 2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.82);
}

.learning-objectives h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.learning-objectives ul {
  display: grid;
  gap: 0.45rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-objectives li::before {
  margin-right: 0.5rem;
  content: "↳";
  color: var(--orange);
}

.lab-callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--cyan-deep);
  background: #e0ebea;
}

.lab-callout.warning {
  border-color: var(--orange);
  background: #fff1e7;
}

.lab-callout.danger {
  border-color: var(--red);
  background: #f9eaea;
}

.lab-callout b {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.lab-callout p {
  margin: 0;
}

.protocol-strip {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  gap: 0.5rem;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: 2rem 0;
}

.protocol-step {
  position: relative;
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.protocol-step + .protocol-step::before {
  position: absolute;
  top: 50%;
  left: -0.62rem;
  content: "→";
  transform: translateY(-50%);
  color: var(--orange);
}

.protocol-step span,
.protocol-step b,
.protocol-step small {
  display: block;
}

.protocol-step span {
  color: #ad541f;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.protocol-step b {
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.protocol-step small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.code-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  overflow: auto;
  padding: 1.4rem;
  border: 1px solid rgba(117, 215, 223, 0.18);
  border-top: 2px solid var(--orange);
  background: #071c29;
  color: #d6e5eb;
}

.code-panel::before {
  position: absolute;
  top: 0.55rem;
  right: 1rem;
  content: "PYTHON / REFERENCE";
  color: #7393a2;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.code-panel code {
  display: block;
  min-width: max-content;
  padding-top: 0.45rem;
  color: #d6e5eb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre;
}

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

.practice-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.practice-card span {
  color: #ad541f;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.practice-card h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1rem;
}

.practice-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.mastery-check {
  margin-top: 4rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--orange);
  background:
    radial-gradient(circle at 90% 20%, rgba(117, 215, 223, 0.14), transparent 45%),
    linear-gradient(120deg, #071b29, #103747);
  color: var(--white);
}

.mastery-check h2 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1.75rem;
}

.mastery-check p,
.mastery-check li {
  color: #c1d2da;
}

.chapter-pager {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.pager-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.pager-link.next {
  text-align: right;
}

.pager-link small {
  color: #a9531f;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.pager-link strong {
  margin-top: 0.45rem;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}

.pager-link:hover strong {
  color: var(--orange);
}

.site-footer {
  padding: 2rem 0;
  background: #041521;
  color: #8fa8b4;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.site-footer b {
  color: #d2e0e5;
}

@media (max-width: 1100px) {
  .lane-flow-four {
    grid-template-columns: minmax(0, 1fr);
  }

  .lane-flow-four .architecture-node {
    min-height: auto;
  }

  .lane-flow-four .architecture-arrow {
    min-height: 3.8rem;
  }

  .lane-flow-four .architecture-arrow::before {
    top: 0.5rem;
    right: 50%;
    bottom: 0.5rem;
    left: auto;
    width: 1px;
    height: auto;
  }

  .lane-flow-four .architecture-arrow::after {
    top: auto;
    right: calc(50% - 0.25rem);
    bottom: 0.4rem;
    transform: rotate(135deg);
  }

  .lane-flow-four .architecture-arrow span {
    position: absolute;
    top: 50%;
    left: calc(50% + 1rem);
    width: auto;
    padding: 0;
    transform: translateY(-50%);
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    width: calc(100% + 2rem);
    margin: 1rem -1rem -1rem;
    padding: 1rem;
    background: rgba(4, 22, 36, 0.98);
  }

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

  .workflow-track li,
  .workflow-track li:first-child {
    min-height: 12rem;
    border: 1px solid var(--line);
    border-left: 0;
  }

  .workflow-track li:last-child {
    grid-column: 1 / -1;
  }

  .architecture-lane {
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .lane-heading {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
  }

  .chapter-layout {
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter-sidebar {
    display: none;
  }

  .chapter-content {
    max-width: none;
  }

  .protocol-strip {
    display: flex;
    flex-direction: column;
  }

  .protocol-step + .protocol-step::before {
    top: -0.8rem;
    left: 50%;
    content: "↓";
  }
}

@media (max-width: 767px) {
  .architecture-map {
    gap: 2.5rem;
  }

  .lane-flow-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .architecture-node {
    min-height: auto;
    padding: 1.3rem 1.5rem;
  }

  .architecture-node i {
    margin-bottom: 0.7rem;
  }

  .architecture-arrow {
    min-height: 3.8rem;
  }

  .lane-flow-two .architecture-arrow::before {
    top: 0.5rem;
    right: 50%;
    bottom: 0.5rem;
    left: auto;
    width: 1px;
    height: auto;
  }

  .lane-flow-two .architecture-arrow::after {
    top: auto;
    right: calc(50% - 0.25rem);
    bottom: 0.4rem;
    transform: rotate(135deg);
  }

  .lane-flow-two .architecture-arrow span {
    position: absolute;
    top: 50%;
    left: calc(50% + 1rem);
    width: auto;
    padding: 0;
    transform: translateY(-50%);
  }

  .architecture-arrow-both span::before {
    display: none;
  }
}

@media (max-width: 575px) {
  .container {
    padding-inline: 0.95rem;
  }

  .navbar-brand {
    max-width: calc(100% - 3.25rem);
  }

  .brand-copy b {
    font-size: 0.78rem;
  }

  .brand-copy small {
    font-size: 0.42rem;
  }

  .hero-section h1 {
    font-size: clamp(3.05rem, 13vw, 4.2rem);
    line-height: 0.96;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .lab-clearance {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .lab-clearance > i {
    width: 1rem;
    flex-basis: 1rem;
  }

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

  .hero-metrics div {
    padding: 0.8rem;
  }

  .hero-metrics div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
    padding-left: 0;
  }

  .hero-metrics strong {
    font-size: 0.82rem;
  }

  .hero-metrics small {
    font-size: 0.46rem;
  }

  .hero-caption {
    display: none;
  }

  .workflow-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-track li:last-child {
    grid-column: auto;
  }

  .workflow-track li {
    display: grid;
    align-items: start;
    gap: 0.8rem;
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .workflow-track b {
    margin-top: 0;
  }

  .chapter-header h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .chapter-layout {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .chapter-content h2 {
    font-size: 1.65rem;
  }

  .learning-objectives {
    padding: 1.3rem 1.15rem;
  }

  .learning-objectives ul,
  .practice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-panel {
    padding: 1.25rem 1rem;
  }

  .code-panel::before {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
  }

  .code-panel code {
    padding-top: 0;
    font-size: 0.75rem;
  }

  .chapter-pager {
    gap: 1rem;
  }

  .pager-link strong {
    font-size: 0.76rem;
  }

  .mastery-check {
    padding: 1.5rem 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-parallax-layer] {
    transform: none !important;
  }
}
