:root {
  --ink: #14211b;
  --ink-soft: #34463d;
  --night: #101a18;
  --night-raised: #182521;
  --paper: #f4f0e6;
  --paper-deep: #ebe4d6;
  --card: #fffaf1;
  --white: #fffef9;
  --line: #c8c3b7;
  --blue: #2864ff;
  --blue-dark: #1646bf;
  --teal: #10a88c;
  --lime: #d8ff62;
  --coral: #ff6a4c;
  --gold: #f7c948;
  --violet: #8c71ff;
  --red: #d94a3f;
  --shadow: 7px 7px 0 var(--ink);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max-width: 1200px;
  --header-height: 76px;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--night);
  background: var(--lime);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

h3 {
  font-size: 1.45rem;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--night);
  background: var(--lime);
  border: 2px solid var(--night);
  border-radius: 8px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(82px, 10vw, 140px) 0;
}

.section-heading {
  margin-bottom: clamp(42px, 6vw, 74px);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.65fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: end;
}

.split-heading h2,
.centered-heading h2 {
  max-width: 880px;
  margin-bottom: 0;
}

.split-heading > p {
  max-width: 490px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.section-index,
.mini-eyebrow,
.lab-number,
.lab-kicker,
.video-kicker,
.card-index,
.quiz-number {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-index span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}

.light-heading {
  color: var(--white);
}

.light-heading .section-index span {
  color: var(--night);
  background: var(--lime);
}

.light-heading > p {
  color: #c9d2cc;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--night);
  background: var(--lime);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.55);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
}

.button-ghost:hover {
  background: var(--paper-deep);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  color: var(--white);
  background: rgba(16, 26, 24, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 40px), 1380px);
  height: 100%;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border: 2px solid currentColor;
  border-radius: 10px 10px 15px 10px;
  box-shadow: 3px 3px 0 var(--blue);
  font-family: var(--font-mono);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-2deg);
}

.brand-mark span:first-child {
  margin: -4px 0 0 -8px;
  font-size: 1.05rem;
}

.brand-mark span:last-child {
  position: absolute;
  right: 2px;
  bottom: 3px;
  font-size: 0.51rem;
}

.brand-name strong {
  color: var(--lime);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 27px);
  margin-left: auto;
}

.site-nav a {
  color: #d4ddd7;
  font-size: 0.89rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--lime);
}

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--night);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 160ms ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(60px, 8vw, 105px)) 0 0;
  color: var(--white);
  background: var(--night);
}

.hero-grid,
.signal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: linear-gradient(rgba(216, 255, 98, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 255, 98, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.75;
}

.hero-orb-one {
  top: 19%;
  left: -120px;
  width: 270px;
  height: 270px;
  background: radial-gradient(circle at 60% 50%, rgba(40, 100, 255, 0.7), transparent 65%);
}

.hero-orb-two {
  right: -100px;
  bottom: 8%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 40% 50%, rgba(16, 168, 140, 0.5), transparent 67%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.83fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
  padding-bottom: 92px;
}

.hero-copy {
  min-width: 0;
  max-width: 690px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #becac3;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-flex;
  padding: 7px 11px;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 6.8vw, 6.55rem);
  font-weight: 750;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 34px;
  color: #c9d3cd;
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-underline-offset: 5px;
}

.text-link.light {
  color: var(--white);
}

.play-dot {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--night);
  background: var(--coral);
  border-radius: 50%;
  font-size: 0.68rem;
}

.hero-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  color: #b9c6bf;
  font-size: 0.87rem;
  list-style: none;
}

.hero-promises li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-promises span {
  color: var(--lime);
}

.hero-lab-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}

.hero-lab-wrap::before,
.hero-lab-wrap::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px dashed rgba(216, 255, 98, 0.45);
  border-radius: 50%;
}

.hero-lab-wrap::before {
  inset: -48px;
}

.hero-lab-wrap::after {
  inset: -86px;
  opacity: 0.35;
}

.orbit-label {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit-label-one {
  top: -57px;
  left: 14%;
  transform: rotate(-5deg);
}

.orbit-label-two {
  right: -28px;
  bottom: -15px;
  color: var(--white);
  background: var(--blue);
  transform: rotate(4deg);
}

.hero-lab {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 37px);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 12px 12px 0 var(--blue), 18px 18px 38px rgba(0, 0, 0, 0.2);
}

.hero-lab::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, var(--blue) 0 34%, var(--teal) 34% 68%, var(--lime) 68%);
}

.lab-topline,
.lab-header,
.digest-label,
.panel-label,
.digest-heading,
.meter-label,
.deck-controls,
.video-meta,
.glossary-header,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hero-lab h2 {
  margin-bottom: 24px;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
}

.lab-kicker {
  margin-bottom: 5px;
  color: var(--blue);
}

.status-chip,
.local-badge {
  display: inline-flex;
  flex: 0 0 auto;
  height: fit-content;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #315448;
  background: #ddf7ea;
  border: 1px solid #9bd0bd;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-chip > span {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.hero-lab label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-input-row input {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 9px;
}

.hero-input-row button {
  flex: 0 0 50px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 9px;
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
}

.digest-label {
  margin-bottom: 8px;
  color: #617068;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-digest,
.digest-output {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.5vw, 0.94rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.75;
}

.digest-ruler {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 9px 0 20px;
}

.digest-ruler span {
  height: 4px;
  background: var(--blue);
  border-radius: 99px;
}

.digest-ruler span:nth-child(2n) {
  background: var(--teal);
}

.lab-note {
  margin: 0;
  padding-top: 14px;
  color: #526159;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
}

.trail-picker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.trail-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  min-height: 112px;
  padding: 22px;
  text-decoration: none;
}

.trail-card + .trail-card {
  border-left: 1px solid var(--line);
}

.trail-card:hover {
  background: var(--lime);
}

.trail-number {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 900;
}

.trail-card strong,
.trail-card small {
  display: block;
}

.trail-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.trail-card small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.trail-arrow {
  font-size: 1.3rem;
}

.foundations {
  background: var(--paper);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}

.tool-card::after {
  position: absolute;
  right: -22px;
  bottom: -27px;
  width: 105px;
  height: 105px;
  content: "";
  border: 2px dashed rgba(20, 33, 27, 0.28);
  border-radius: 50%;
}

.tool-encryption { background: #e5edff; }
.tool-hash { background: var(--lime); transform: translateY(22px); }
.tool-mac { background: #d9f3ec; }
.tool-signature { background: #ffe1d8; transform: translateY(22px); }

.tool-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin-bottom: 40px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 2.9rem;
  font-weight: 800;
}

.tool-encryption .tool-icon {
  position: relative;
  display: block;
  background: var(--blue);
}

.box-lid,
.box-body {
  position: absolute;
  left: 17px;
  width: 47px;
  border: 2px solid var(--ink);
}

.box-lid {
  top: 19px;
  height: 15px;
  background: var(--gold);
  transform: rotate(-8deg);
}

.box-body {
  top: 35px;
  display: grid;
  height: 31px;
  place-items: center;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hash-stamp { background: var(--white); transform: rotate(-5deg); }
.seal-icon { color: var(--white); background: var(--teal); }
.signature-icon { background: var(--coral); }

.tool-tag {
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-card h3 {
  margin-bottom: 14px;
  font-size: 1.75rem;
}

.tool-card > p:not(.tool-tag, .tool-analogy) {
  color: #2e4238;
  font-size: 0.92rem;
}

.tool-analogy {
  position: absolute;
  right: 25px;
  bottom: 23px;
  left: 25px;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(20, 33, 27, 0.35);
  font-size: 0.84rem;
  font-weight: 750;
}

.tool-analogy span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.translation-card {
  display: grid;
  grid-template-columns: 0.7fr 1.55fr;
  gap: 48px;
  align-items: center;
  margin-top: 88px;
  padding: clamp(28px, 5vw, 55px);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.translation-intro h3 {
  margin-bottom: 15px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.translation-intro p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.mini-eyebrow {
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 610px;
  font-size: 0.85rem;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #45554d;
  background: var(--paper-deep);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td:nth-child(2) {
  color: var(--blue-dark);
  font-weight: 800;
}

.source-note,
.privacy-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 44px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.source-note > span,
.privacy-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 1.15rem;
}

.source-note p,
.privacy-note p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.source-note a {
  margin-left: 7px;
  color: var(--blue-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.hash-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.hash-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.hash-promises article {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 19px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.promise-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 900;
}

.hash-promises article:nth-child(2) .promise-number { background: var(--teal); }
.hash-promises article:nth-child(3) .promise-number { color: var(--ink); background: var(--lime); }

.hash-promises h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.hash-promises p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.hash-lab {
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lab-header {
  align-items: flex-start;
  padding: clamp(25px, 4vw, 42px);
  border-bottom: 2px solid var(--ink);
}

.lab-header h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.lab-header p:last-child {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.lab-number {
  margin-bottom: 0;
  color: var(--blue-dark);
}

.local-badge {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
}

.local-badge span {
  color: var(--teal);
}

.hash-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.message-panel {
  padding: clamp(22px, 4vw, 38px);
  background: var(--card);
}

.panel-b {
  background: #f1edff;
}

.panel-label {
  align-items: center;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-label span {
  color: #62716a;
  font-size: 0.59rem;
}

.message-panel textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 10px;
  line-height: 1.5;
}

.digest-heading {
  align-items: center;
  margin: 22px 0 8px;
  color: #5f6f67;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.copy-button {
  padding: 4px 9px;
  color: var(--blue-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  cursor: pointer;
}

.digest-output {
  min-height: 102px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.digest-byte {
  display: inline-block;
  margin-right: 0.08em;
  border-radius: 3px;
}

.digest-byte.is-different {
  color: var(--white);
  background: var(--blue);
}

.compare-action {
  display: grid;
  place-items: center;
  background: var(--ink);
}

.compare-action span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
}

.avalanche-result {
  padding: 27px clamp(25px, 4vw, 42px) 24px;
}

.meter-label {
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bit-meter {
  height: 17px;
  overflow: hidden;
  background: #d5d0c5;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.bit-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--blue) 0 12px, var(--teal) 12px 24px);
  transition: width 320ms ease;
}

.avalanche-result > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.lab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(25px, 4vw, 42px) 35px;
}

.hash-lessons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.lesson-card {
  min-height: 310px;
  padding: clamp(28px, 5vw, 48px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}

.lesson-card h3 {
  max-width: 430px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.3vw, 2.75rem);
}

.lesson-card > p:not(.mini-eyebrow) {
  max-width: 520px;
  color: var(--ink-soft);
}

.hash-not-encryption {
  background: #e5edff;
}

.password-warning {
  background: #ffe1d8;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-flow span:not([aria-hidden="true"]) {
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px;
}

.mini-flow .mini-hash {
  color: var(--white);
  background: var(--blue) !important;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 850;
  text-underline-offset: 4px;
}

.deep-dive {
  margin-top: 34px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.deep-dive summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.deep-dive summary::-webkit-details-marker {
  display: none;
}

.deep-dive summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.depth-tag {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-plus {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: transform 160ms ease;
}

.deep-dive[open] .summary-plus {
  transform: rotate(45deg);
}

.deep-dive-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.deep-dive-content article {
  padding: 24px;
  background: var(--card);
}

.deep-dive-content h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.deep-dive-content p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.public-key-section {
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.public-key-section::before {
  position: absolute;
  top: 10%;
  right: -100px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px dashed rgba(216, 255, 98, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(40, 100, 255, 0.05), 0 0 0 110px rgba(16, 168, 140, 0.035);
}

.key-pair-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: center;
  max-width: 990px;
  margin: 0 auto 74px;
}

.key-card {
  min-height: 285px;
  padding: 28px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.public-card {
  background: var(--lime);
  transform: rotate(-1.2deg);
}

.private-card {
  background: var(--coral);
  transform: rotate(1.2deg);
}

.key-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.key-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.5rem;
}

.private-card .key-glyph {
  background: var(--ink);
}

.key-state {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 850;
  text-transform: uppercase;
}

.key-card > p:nth-of-type(1) {
  margin-bottom: 11px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.key-code {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.private-code {
  letter-spacing: 0.15em;
}

.key-use {
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.pair-link {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.pair-link span {
  height: 1px;
  background: var(--lime);
}

.pair-link strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px dashed var(--lime);
  border-radius: 50%;
}

.public-key-lab {
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 9px 9px 0 var(--blue);
}

.key-lab-header {
  align-items: center;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.mode-tabs button {
  min-height: 42px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.mode-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--blue);
}

.key-lab-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.key-flow {
  display: grid;
  grid-template-columns: 1fr 0.6fr 1fr 0.25fr 1fr;
  align-items: center;
  gap: 4px;
  min-height: 460px;
  padding: 40px 25px;
  background: #e6edff;
  border-right: 2px solid var(--ink);
}

.route-stop {
  text-align: center;
}

.actor-badge {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 13px;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 26px 26px 32px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
}

.actor-bob {
  background: var(--teal);
  border-radius: 22px 30px 20px 32px;
}

.actor-network {
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
}

.route-stop strong {
  display: block;
  font-family: var(--font-display);
}

.route-stop p {
  margin: 4px auto 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.35;
}

.route-line {
  text-align: center;
}

.route-arrow {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
}

.packet {
  margin: 8px -20px;
  padding: 7px;
  color: var(--white);
  background: var(--ink);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}

.packet span {
  margin-right: 4px;
  color: var(--lime);
}

.flow-explanation {
  padding: clamp(29px, 4vw, 45px);
}

.flow-goal {
  margin-bottom: 25px;
  padding-bottom: 20px;
  color: var(--blue-dark);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
}

.flow-explanation ol {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.flow-explanation li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
}

.flow-explanation li span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
}

.flow-explanation li p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.48;
}

.threat-note {
  padding: 16px;
  background: #fff0bd;
  border: 1px solid #c5a53c;
  border-radius: 10px;
}

.threat-note strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.threat-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.public-key-lessons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 62px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.public-key-lessons article {
  padding: 30px;
  background: var(--night);
}

.lesson-symbol {
  display: block;
  margin-bottom: 35px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 900;
}

.public-key-lessons h3 {
  margin-bottom: 13px;
  font-size: 1.35rem;
}

.public-key-lessons p {
  margin-bottom: 0;
  color: #bfcac4;
  font-size: 0.88rem;
}

.dark-deep-dive {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.dark-deep-dive .deep-dive-content {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.18);
}

.dark-deep-dive .deep-dive-content article {
  background: var(--night-raised);
}

.dark-deep-dive .deep-dive-content p {
  color: #bdc8c1;
}

.lifecycle-section {
  background: var(--paper);
}

.lifecycle-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lifecycle-rail {
  display: grid;
  background: var(--ink);
}

.lifecycle-rail button {
  display: grid;
  grid-template-columns: 35px 1fr;
  grid-template-rows: auto auto;
  gap: 0 12px;
  align-content: center;
  min-height: 84px;
  padding: 14px 20px;
  color: #c7d0ca;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
  cursor: pointer;
}

.lifecycle-rail button:last-child {
  border-bottom: 0;
}

.lifecycle-rail button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lifecycle-rail button[aria-selected="true"] {
  color: var(--ink);
  background: var(--lime);
}

.lifecycle-rail button > span {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 900;
}

.lifecycle-rail strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.lifecycle-rail small {
  opacity: 0.75;
  font-size: 0.69rem;
}

.lifecycle-panel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 78px);
}

.life-panel-number {
  position: absolute;
  right: -23px;
  bottom: -85px;
  color: rgba(40, 100, 255, 0.09);
  font-family: var(--font-display);
  font-size: 20rem;
  font-weight: 900;
  line-height: 1;
}

.lifecycle-panel > *:not(.life-panel-number) {
  position: relative;
  z-index: 1;
}

.lifecycle-panel h3 {
  max-width: 670px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.lifecycle-panel > p:not(.mini-eyebrow) {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.check-list {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.9rem;
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  content: "✓";
  font-size: 0.66rem;
}

.life-question {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 650px;
  padding: 15px;
  background: #e5edff;
  border: 1px solid #93acef;
  border-radius: 10px;
}

.life-question > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.life-question p {
  margin: 0;
  font-size: 0.84rem;
}

.practical-heading {
  margin: 96px 0 36px;
}

.practical-heading h3 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.practical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.practical-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}

.practical-https { background: #dce7ff; }
.practical-ssh { color: var(--white); background: var(--night); }
.practical-passkey { background: #daf4ec; }
.practical-wallet { background: #ffe0d6; }

.practical-icon {
  display: block;
  margin-bottom: 48px;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
}

.terminal-icon { color: var(--lime); }
.passkey-icon { color: var(--teal); font-size: 3.5rem; line-height: 0.7; }
.wallet-icon { color: var(--coral); font-size: 3.4rem; line-height: 0.7; }

.practical-card .card-index {
  margin-bottom: 12px;
  opacity: 0.7;
}

.practical-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.practical-card > p:not(.card-index, .practice-line) {
  max-width: 500px;
  opacity: 0.83;
}

.practice-line {
  position: absolute;
  right: 44px;
  bottom: 34px;
  left: 44px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-size: 0.8rem;
}

.compromise-card {
  display: grid;
  grid-template-columns: 72px minmax(230px, 0.7fr) 1.3fr;
  gap: 28px;
  align-items: start;
  margin-top: 38px;
  padding: clamp(28px, 5vw, 48px);
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.compromise-alert {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--red);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
}

.compromise-card .mini-eyebrow {
  color: var(--white);
  opacity: 0.75;
}

.compromise-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.compromise-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compromise-card li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 650;
}

.compromise-card li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--red);
  background: var(--white);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
}

.video-section {
  overflow: hidden;
  color: var(--white);
  background: #17152c;
}

.video-section::after {
  position: absolute;
  top: 20%;
  left: -160px;
  width: 420px;
  height: 420px;
  content: "";
  background: radial-gradient(circle, rgba(140, 113, 255, 0.35), transparent 68%);
  border-radius: 50%;
}

.video-deck,
.privacy-note,
.video-caveat {
  position: relative;
  z-index: 1;
}

.video-stage {
  overflow: hidden;
  background: #211e39;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
}

.video-placeholder,
.video-iframe-wrap {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, #182b44, #30235c 48%, #183a35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.video-iframe-wrap {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.video-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, rgba(15, 18, 24, 0.08), rgba(15, 18, 24, 0.18) 48%, rgba(15, 18, 24, 0.68));
  pointer-events: none;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder .signal-grid {
  z-index: 1;
  opacity: 0.1;
}

.load-video {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 14px 22px 14px 14px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 160ms ease;
}

.load-video:hover {
  transform: scale(1.03);
}

.load-video-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.load-video strong,
.load-video small {
  display: block;
  text-align: left;
}

.load-video small {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  text-transform: uppercase;
}

.video-sequence {
  position: absolute;
  z-index: 3;
  right: 25px;
  bottom: 22px;
  padding: 5px 9px;
  background: rgba(16, 26, 24, 0.72);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.video-meta {
  align-items: flex-start;
  padding: clamp(25px, 4vw, 40px);
}

.video-meta > div:first-child {
  max-width: 720px;
}

.video-kicker {
  margin-bottom: 9px;
  color: var(--violet);
}

.video-kicker span:first-child {
  color: var(--lime);
}

.video-meta h3 {
  margin-bottom: 11px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.video-meta > div:first-child > p:last-child {
  margin-bottom: 0;
  color: #c3c0d3;
}

.video-source {
  flex: 0 0 190px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.video-source p {
  margin-bottom: 12px;
}

.video-source strong,
.video-source span {
  display: block;
}

.video-source span {
  color: #a9a5b9;
  font-size: 0.77rem;
}

.video-source a {
  color: var(--lime);
  font-size: 0.77rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.deck-controls {
  align-items: center;
  margin: 24px 0 18px;
}

.deck-status {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
}

.deck-status strong {
  color: var(--lime);
  font-size: 1.3rem;
}

.deck-status span {
  width: 65px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.deck-status small {
  color: #aaa7b8;
}

.deck-buttons {
  display: flex;
  gap: 9px;
}

.deck-buttons button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.deck-buttons button:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.video-filmstrip {
  display: grid;
  grid-auto-columns: minmax(250px, 0.7fr);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 15px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--violet) rgba(255, 255, 255, 0.12);
}

.video-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  min-height: 126px;
  padding: 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
}

.video-card:hover,
.video-card.is-active {
  background: rgba(140, 113, 255, 0.18);
  border-color: var(--lime);
}

.video-card-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 9px;
}

.video-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-public { background: #8cb0ff; }
.art-exchange { background: #63d6c2; }
.art-sign { background: #ff987f; }
.art-tls { background: #b6a6ff; }

.video-card-copy {
  align-self: center;
}

.video-card-copy > * {
  display: block;
}

.video-card-copy small {
  margin-bottom: 5px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-card-copy strong {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 0.87rem;
  line-height: 1.25;
}

.video-card-copy span {
  color: #aaa7b8;
  font-size: 0.67rem;
}

.privacy-note {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.privacy-note p {
  color: #c2bfd1;
}

.privacy-icon {
  color: var(--ink);
  background: var(--lime);
}

.video-caveat {
  margin: 15px 0 0;
  color: #9d99ae;
  font-size: 0.72rem;
}

.knowledge-section {
  background: var(--blue);
}

.centered-heading {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.centered-heading .section-index {
  justify-content: center;
}

.centered-heading .section-index span {
  color: var(--ink);
  background: var(--lime);
}

.centered-heading > p:last-child {
  max-width: 600px;
  margin: 20px auto 0;
  color: #dce5ff;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.quiz-card {
  min-height: 430px;
  padding: 28px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
}

.quiz-number {
  margin-bottom: 32px;
  color: var(--blue-dark);
}

.quiz-card h3 {
  min-height: 100px;
  margin-bottom: 22px;
  font-size: 1.25rem;
}

.quiz-choices {
  display: grid;
  gap: 8px;
}

.quiz-choices button {
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.quiz-choices button:hover {
  border-color: var(--blue);
}

.quiz-choices button.is-correct {
  background: #d8f6eb;
  border-color: var(--teal);
}

.quiz-choices button.is-wrong {
  background: #ffe0d8;
  border-color: var(--red);
}

.quiz-feedback {
  min-height: 58px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.quiz-feedback strong {
  color: var(--ink);
}

.resources-section {
  background: var(--paper);
}

.resource-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.resource-column {
  display: grid;
  gap: 11px;
}

.resource-column-head {
  min-height: 105px;
  padding: 19px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.resource-column:nth-child(2) .resource-column-head { background: var(--blue); }
.resource-column:nth-child(3) .resource-column-head { color: var(--ink); background: var(--lime); }

.resource-column-head span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.resource-column-head h3 {
  margin: 8px 0 0;
  font-size: 1.45rem;
}

.resource-card {
  display: block;
  min-height: 235px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.resource-card:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-2px);
}

.resource-type {
  display: block;
  margin-bottom: 24px;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-card > strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.17rem;
  line-height: 1.22;
}

.resource-card > p {
  min-height: 60px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.resource-author {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 750;
}

.resource-author i {
  color: var(--blue);
  font-style: normal;
}

.research-note {
  display: flex;
  max-width: 870px;
  gap: 12px;
  align-items: flex-start;
  margin: 42px auto 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}

.research-note span {
  color: var(--blue);
  font-size: 1.2rem;
}

.glossary-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.glossary-header {
  align-items: end;
  margin-bottom: 44px;
}

.glossary-header h2 {
  margin: 0;
}

.glossary-search {
  width: min(100%, 380px);
}

.glossary-search label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glossary-search > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.glossary-search span {
  font-size: 1.3rem;
}

.glossary-search input {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  background: transparent;
  border: 0;
  outline: 0;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.glossary-grid article {
  min-height: 178px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.glossary-grid article:nth-child(4n + 2) { background: #edf2ff; }
.glossary-grid article:nth-child(4n + 3) { background: #e5f5ef; }
.glossary-grid article:nth-child(4n + 4) { background: #fff0eb; }

.glossary-grid article[hidden] {
  display: none;
}

.glossary-grid h3 {
  margin-bottom: 11px;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.glossary-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.5;
}

.no-results {
  padding: 30px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}

.site-footer {
  padding: 70px 0 24px;
  color: var(--white);
  background: var(--night);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: clamp(35px, 7vw, 90px);
  padding-bottom: 55px;
}

.footer-brand {
  margin-bottom: 22px;
}

.footer-grid > div:first-child > p {
  max-width: 330px;
  color: #acb8b1;
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.footer-links strong,
.footer-links a {
  display: block;
}

.footer-links strong {
  margin-bottom: 15px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  margin-bottom: 8px;
  color: #c6d0ca;
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-note {
  align-self: start;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

.footer-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
}

.footer-note p,
.footer-note strong {
  display: block;
}

.footer-note p {
  margin: 0;
  color: #b6c1ba;
  font-size: 0.76rem;
}

.footer-note strong {
  margin-bottom: 5px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.footer-bottom {
  align-items: center;
  padding-top: 22px;
  color: #8e9d95;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.7rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #c7d1cb;
  text-underline-offset: 3px;
}

/* Rounded curriculum additions */
.symmetric-section {
  background: #e8edf5;
  border-top: 1px solid #c3ccd9;
  border-bottom: 1px solid #c3ccd9;
}

.symmetric-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1.15fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 28px;
}

.symmetric-flow article {
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
}

.symmetric-flow h3,
.symmetric-flow p {
  margin-bottom: 10px;
}

.symmetric-flow p {
  color: var(--ink-soft);
}

.symmetric-flow .secret-material {
  background: #d7f4ea;
}

.symmetric-flow .nonce-material {
  background: #fff1ba;
}

.symmetric-flow .protected-material {
  color: var(--white);
  background: #163c73;
}

.symmetric-flow .protected-material p {
  color: #d6e4f5;
}

.flow-chip {
  display: inline-block;
  margin-bottom: 48px;
  padding: 4px 8px;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
}

.symmetric-arrow {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.concept-grid,
.crypto-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 50px;
}

.concept-grid article,
.crypto-systems-grid article {
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.concept-grid article {
  border-top: 7px solid var(--blue);
}

.concept-grid .nonce-warning {
  border-top-color: var(--red);
}

.concept-grid p:last-child,
.crypto-systems-grid p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.distinction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
  background: var(--night);
  border: 2px solid var(--night);
  border-radius: 8px;
}

.distinction-grid article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 28px;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.distinction-grid article:last-child {
  border-right: 0;
}

.distinction-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--night);
  background: var(--lime);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 900;
}

.distinction-grid h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.distinction-grid p {
  margin: 0;
  color: #c6d0ca;
  font-size: 0.9rem;
}

.crypto-systems-grid article:nth-child(1) {
  border-left: 6px solid var(--gold);
}

.crypto-systems-grid article:nth-child(2) {
  border-left: 6px solid var(--teal);
}

.crypto-systems-grid article:nth-child(3) {
  border-left: 6px solid var(--violet);
}

.build-warning {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  color: var(--white);
  background: #7b2734;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.build-warning > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #7b2734;
  background: var(--white);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
}

.build-warning p {
  margin: 0;
}

.practice-bridge {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.practice-bridge article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.practice-bridge article:last-child {
  border-right: 0;
}

.practice-bridge article > span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.practice-bridge h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.practice-bridge p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.companion-callout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
  margin-top: 32px;
  padding: 34px;
  color: var(--white);
  background: #163c73;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.companion-callout h3,
.companion-callout p {
  margin-bottom: 0;
}

.companion-callout h3 a {
  color: inherit;
  text-underline-offset: 5px;
}

.companion-callout .mini-eyebrow {
  color: var(--lime);
}

.companion-callout > p {
  color: #d8e4f3;
}

.hero-orb,
.video-section::after {
  display: none;
}

.hero {
  padding-top: calc(var(--header-height) + 48px);
}

.hero-layout {
  padding-bottom: 54px;
}

.hero h1 {
  font-size: 5.2rem;
  letter-spacing: 0;
}

.hero h1 em,
h2,
h3 {
  letter-spacing: 0;
}

.video-placeholder {
  background: #111;
}

.video-poster-heading {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 22px;
  display: grid;
  max-width: min(70%, 620px);
  padding: 10px 13px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.74);
  border-radius: 4px;
}

.video-poster-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-poster-heading span {
  color: #d5d5d5;
  font-size: 0.78rem;
}

.load-video {
  width: 92px;
  height: 64px;
  justify-content: center;
  padding: 0;
  background: #f00;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.load-video-icon {
  width: auto;
  height: auto;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1.7rem;
  transform: translateX(2px);
}

.video-duration-badge,
.video-sequence {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 850;
}

.video-duration-badge {
  right: 20px;
}

.video-sequence {
  right: auto;
  left: 20px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 15px;
  }

  .site-nav a:nth-child(4),
  .site-nav a:nth-child(6) {
    display: none;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 45px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

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

  .tool-hash,
  .tool-signature {
    transform: none;
  }

  .tool-card {
    min-height: 340px;
  }

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

  .key-lab-body {
    grid-template-columns: 1fr;
  }

  .key-flow {
    min-height: 360px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .flow-explanation {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 22px;
  }

  .flow-goal {
    grid-column: 1 / -1;
  }

  .flow-explanation ol,
  .threat-note {
    margin: 0;
  }

  .deep-dive-content,
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz-card h3 {
    min-height: 126px;
  }
}

@media (max-width: 850px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    overflow: hidden;
    padding: 9px;
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav a,
  .site-nav a:nth-child(4),
  .site-nav a:nth-child(6) {
    display: block;
    padding: 12px;
    color: var(--ink);
    border-radius: 8px;
  }

  .site-nav a:hover {
    color: var(--ink);
    background: var(--lime);
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-bottom: 74px;
  }

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

  .hero-lab-wrap {
    width: min(88%, 560px);
    justify-self: center;
  }

  .trail-picker {
    grid-template-columns: 1fr;
  }

  .trail-card + .trail-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split-heading > p {
    max-width: 670px;
  }

  .hash-promises,
  .public-key-lessons,
  .quiz-grid,
  .resource-columns {
    grid-template-columns: 1fr;
  }

  .hash-compare {
    grid-template-columns: 1fr;
  }

  .compare-action {
    min-height: 54px;
  }

  .hash-lessons {
    grid-template-columns: 1fr;
  }

  .key-pair-visual {
    grid-template-columns: 1fr 72px 1fr;
  }

  .key-code {
    font-size: 1.45rem;
  }

  .lifecycle-layout {
    grid-template-columns: 1fr;
  }

  .lifecycle-rail {
    grid-template-columns: repeat(7, minmax(135px, 1fr));
    overflow-x: auto;
  }

  .lifecycle-rail button {
    min-height: 100px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  .lifecycle-panel {
    min-height: 520px;
  }

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

  .compromise-card {
    grid-template-columns: 64px 1fr;
  }

  .compromise-card ol {
    grid-column: 1 / -1;
  }

  .video-placeholder {
    min-height: 430px;
  }

  .quiz-card,
  .quiz-card h3 {
    min-height: auto;
  }

  .resource-card {
    min-height: 0;
  }

  .resource-card > p {
    min-height: 0;
  }

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

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .page-shell,
  .nav-shell {
    width: min(calc(100% - 26px), var(--max-width));
  }

  .section {
    padding: 82px 0;
  }

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

  .hero {
    padding-top: calc(var(--header-height) + 50px);
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero h1 em {
    margin-top: 7px;
    font-size: 0.77em;
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-lab-wrap {
    width: 92%;
  }

  .hero-lab-wrap::before {
    inset: -25px;
  }

  .hero-lab-wrap::after,
  .orbit-label-two {
    display: none;
  }

  .lab-topline,
  .lab-header,
  .video-meta,
  .glossary-header,
  .footer-bottom {
    flex-direction: column;
  }

  .status-chip,
  .local-badge {
    align-self: flex-start;
  }

  .tool-grid,
  .deep-dive-content,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .translation-card {
    padding: 25px;
  }

  .hash-compare {
    background: var(--ink);
  }

  .digest-output {
    min-height: 120px;
  }

  .lab-controls .button {
    width: 100%;
  }

  .deep-dive summary > span:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .key-pair-visual {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pair-link {
    grid-template-columns: 1fr auto 1fr;
    width: 160px;
    margin: -6px auto;
    transform: rotate(90deg);
  }

  .key-card {
    min-height: 250px;
  }

  .key-lab-header {
    align-items: flex-start;
  }

  .mode-tabs {
    justify-content: flex-start;
  }

  .key-flow {
    grid-template-columns: 1fr 38px 1fr;
    gap: 6px;
    min-height: 0;
    padding: 30px 14px;
  }

  .key-flow .network-stop {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 20px;
  }

  .key-flow .short-line {
    display: none;
  }

  .route-stop:last-child {
    grid-column: 3;
    grid-row: 1;
  }

  .route-line {
    grid-column: 2;
    grid-row: 1;
  }

  .route-line .route-arrow:last-child,
  .packet {
    display: none;
  }

  .actor-badge {
    width: 59px;
    height: 59px;
  }

  .flow-explanation {
    grid-template-columns: 1fr;
  }

  .flow-goal {
    grid-column: auto;
  }

  .lifecycle-panel {
    min-height: 610px;
    padding: 38px 26px;
  }

  .life-panel-number {
    font-size: 13rem;
  }

  .practice-line {
    right: 28px;
    left: 28px;
  }

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

  .compromise-card ol {
    grid-column: auto;
  }

  .video-placeholder {
    min-height: 330px;
  }

  .video-source {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .video-filmstrip {
    grid-auto-columns: 85%;
  }

  .glossary-search {
    width: 100%;
  }

  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-note {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .symmetric-flow {
    grid-template-columns: 1fr;
  }

  .symmetric-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .symmetric-flow article {
    min-height: 0;
  }

  .flow-chip {
    margin-bottom: 24px;
  }

  .concept-grid,
  .crypto-systems-grid,
  .practice-bridge {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-bridge article:nth-child(2) {
    border-right: 0;
  }

  .practice-bridge article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .concept-grid,
  .crypto-systems-grid,
  .distinction-grid,
  .practice-bridge,
  .companion-callout {
    grid-template-columns: 1fr;
  }

  .distinction-grid article,
  .practice-bridge article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .distinction-grid article:last-child,
  .practice-bridge article:last-child {
    border-bottom: 0;
  }

  .build-warning {
    grid-template-columns: 1fr;
  }

  .video-poster-heading {
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .load-video {
    width: 78px;
    height: 54px;
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    max-width: 100%;
    font-size: 2.85rem;
  }
}

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

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

@media print {
  .site-header,
  .hero-grid,
  .hero-orb,
  .hero-lab-wrap::before,
  .hero-lab-wrap::after,
  .video-section,
  .quiz-choices,
  .lab-controls,
  .nav-toggle {
    display: none !important;
  }

  .hero,
  .public-key-section,
  .site-footer {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 35px 0;
    break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  .tool-card,
  .hash-lab,
  .public-key-lab,
  .lifecycle-layout,
  .practical-card,
  .resource-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
