:root {
  --navy: #17324d;
  --navy-2: #254965;
  --burgundy: #9d2235;
  --burgundy-dark: #761727;
  --cream: #f6f3ef;
  --paper: #fffdf9;
  --ink: #17212b;
  --muted: #66717b;
  --line: #d9d6d1;
  --blue-soft: #eaf1f5;
  --red-soft: #f8e9eb;
  --green: #28745d;
  --green-soft: #e6f2ed;
  --amber: #a66614;
  --amber-soft: #fff1d7;
  --shadow: 0 18px 55px rgba(23, 50, 77, .12);
  --radius: 18px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(157, 34, 53, .07), transparent 34rem),
    var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  color: white;
  background: rgba(23, 50, 77, .97);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: .03em; }
.brand small { display: block; color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
}
.brand-mark span { position: absolute; width: 5px; height: 5px; background: white; border-radius: 50%; }
.brand-mark span:nth-child(1) { top: 9px; }
.brand-mark span:nth-child(2) { bottom: 8px; left: 9px; }
.brand-mark span:nth-child(3) { bottom: 8px; right: 9px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 1px; height: 19px; background: rgba(255,255,255,.5); transform-origin: bottom; }
.brand-mark::before { transform: rotate(36deg); }
.brand-mark::after { transform: rotate(-36deg); }

.main-nav { justify-self: center; display: flex; gap: 6px; }
.main-nav a {
  padding: 9px 12px;
  color: rgba(255,255,255,.72);
  border-radius: 9px;
  font-size: .87rem;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,.11); }
.system-status { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.75); font-size: .77rem; }
.system-status span { width: 8px; height: 8px; background: #70d8ad; border-radius: 50%; box-shadow: 0 0 0 4px rgba(112,216,173,.12); }
.nav-toggle { display: none; color: white; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 7px 10px; }

main { min-height: calc(100vh - 170px); }
.view { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; scroll-margin-top: 90px; }
.hero-view { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; align-content: center; column-gap: 70px; row-gap: 30px; min-height: calc(100vh - 76px); }
.hero-copy h1, .section-heading h1 {
  min-width: 0;
  max-width: 820px;
  margin: 8px 0 20px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.4vw, 5.7rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.section-heading h1 { font-size: clamp(2.2rem, 4vw, 4.1rem); }
.eyebrow, .panel-kicker, .sidebar-label {
  margin: 0;
  color: var(--burgundy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-lead { max-width: 690px; margin: 0 0 26px; color: #43515d; font-size: 1.16rem; }
.notice { display: flex; gap: 13px; max-width: 670px; padding: 16px 18px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; }
.notice p { margin: 0; color: #52606a; font-size: .9rem; }
.notice-icon { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; color: white; background: var(--navy); border-radius: 50%; font-family: Georgia, serif; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.share-status { min-height: 1.4em; margin: 9px 0 0; color: var(--green); font-size: .78rem; font-weight: 700; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--burgundy); box-shadow: 0 8px 24px rgba(157,34,53,.18); }
.button-primary:hover { background: var(--burgundy-dark); }
.button-secondary { color: var(--navy); background: transparent; border-color: #aeb7bd; }
.full-width { width: 100%; margin-top: 16px; }

.hero-system { display: grid; place-items: center; }
.system-card { width: min(100%, 440px); padding: 24px; color: white; background: linear-gradient(145deg, #183851, #10293f); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; box-shadow: 0 36px 80px rgba(23,50,77,.23); }
.card-topline { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: .65rem; letter-spacing: .12em; }
.orbital { position: relative; display: grid; place-items: center; width: 270px; height: 270px; margin: 20px auto; }
.core { z-index: 3; display: grid; place-items: center; width: 72px; height: 72px; font-family: Georgia, serif; font-size: 2rem; background: var(--burgundy); border: 10px solid rgba(255,255,255,.08); border-radius: 50%; background-clip: padding-box; box-shadow: 0 0 45px rgba(157,34,53,.45); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.orbit-one { width: 175px; height: 175px; }
.orbit-two { width: 255px; height: 255px; }
.node { position: absolute; width: 11px; height: 11px; background: #81cbb1; border: 3px solid #183851; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.node-one { top: 44px; left: 68px; }
.node-two { right: 15px; top: 132px; }
.node-three { bottom: 30px; left: 122px; }
.system-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.system-metrics div { padding: 0 13px; border-right: 1px solid rgba(255,255,255,.12); }
.system-metrics div:last-child { border: 0; }
.system-metrics dt { color: rgba(255,255,255,.55); font-size: .65rem; }
.system-metrics dd { margin: 5px 0 0; font-size: 1.3rem; font-weight: 750; }
.principles-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.principles-strip div { display: flex; gap: 14px; align-items: center; padding: 17px 20px; background: rgba(255,255,255,.68); }
.principles-strip span { color: var(--burgundy); font-size: .72rem; font-weight: 800; }
.principles-strip p { margin: 0; font-size: .83rem; }

.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 35px; }
.section-heading h1 { margin-bottom: 0; }
.lab-heading { align-items: center; }
.lab-heading > div:first-child > p:last-child { max-width: 720px; color: var(--muted); }
.progress-card {
  flex: 0 0 235px;
  padding: 16px 18px;
  color: white;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.progress-card > span { color: rgba(255,255,255,.64); font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.progress-card strong { display: block; margin: 2px 0 9px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.progress-card > div { height: 6px; background: rgba(255,255,255,.14); border-radius: 10px; overflow: hidden; }
.progress-card i { display: block; width: 0; height: 100%; background: #7bcbae; transition: width .45s ease; }
.lab-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 24px; align-items: start; }
.module-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
  padding: 11px;
  background: rgba(255,253,249,.74);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(23,50,77,.06);
}
.module-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr 8px;
  column-gap: 10px;
  align-items: center;
  padding: 13px 11px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
}
.module-nav button:hover { background: var(--blue-soft); }
.module-nav button.active { color: white; background: var(--navy); }
.module-nav button > span {
  grid-row: span 2;
  color: var(--burgundy);
  font-size: .68rem;
  font-weight: 850;
}
.module-nav button.active > span { color: #9fd1c0; }
.module-nav b { font-size: .83rem; }
.module-nav small { color: var(--muted); font-size: .68rem; }
.module-nav button.active small { color: rgba(255,255,255,.62); }
.module-nav i { grid-column: 3; grid-row: 1 / span 2; width: 7px; height: 7px; background: #c5c7c5; border-radius: 50%; }
.module-nav button.complete i { background: #70d8ad; box-shadow: 0 0 0 4px rgba(112,216,173,.13); }
.module-stage { min-width: 0; scroll-margin-top: 94px; }
.module {
  padding: 31px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,253,249,.95)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.module-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.module-header h2 { margin: 5px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.08; }
.module-intro { max-width: 820px; margin: 20px 0; color: #4f5d67; font-size: 1rem; }
.scenario-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 21px 0;
  background: #cad4da;
  border: 1px solid #cad4da;
  border-radius: 12px;
  overflow: hidden;
}
.scenario-banner div { padding: 13px 16px; background: var(--blue-soft); }
.scenario-banner span { display: block; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
.scenario-banner strong { display: block; margin-top: 3px; color: var(--navy); font-size: .88rem; }
.danger-text { color: var(--burgundy) !important; }
.compact-panel { padding: 22px 24px; box-shadow: none; }
.compact-panel h3, .choice-section h3, .recommendation-card h3, .comparison-panel h3, .record-card h3 {
  margin: 5px 0 7px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
}
.sources h4 { margin: 8px 0 4px; font-size: .9rem; }
.choice-section { margin-top: 24px; }
.choice-grid { display: grid; gap: 11px; margin-top: 13px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-grid button, .catalog-options button {
  display: block;
  padding: 17px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.choice-grid button:hover, .catalog-options button:hover { border-color: var(--navy); transform: translateY(-1px); }
.choice-grid button.selected, .catalog-options button.selected { background: var(--red-soft); border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); }
.choice-grid b, .catalog-options b { display: block; color: var(--navy); }
.choice-grid small, .catalog-options small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.35; }
.module .result-panel { margin-top: 22px; box-shadow: none; }
.module .result-panel h3 { margin: 5px 0 8px; color: var(--navy); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.system-consequence { margin: 14px 0; padding: 11px 13px; color: var(--navy); background: var(--blue-soft); border-left: 3px solid var(--burgundy); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: .72rem; font-weight: 750; letter-spacing: .04em; }
.agora-question { margin-top: 20px; padding: 18px; color: white; background: var(--navy); border-radius: 12px; }
.agora-question span { display: block; margin-bottom: 5px; color: #9fc5d8; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.agora-question strong { display: block; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; line-height: 1.35; }
.agora-question.compact { padding: 15px 17px; }
.result-actions { display: flex; justify-content: flex-end; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.result-actions .button { min-height: 41px; font-size: .78rem; }
.school-layout { display: grid; grid-template-columns: 1fr .78fr; gap: 18px; }
.weight-controls { display: grid; gap: 22px; margin-top: 20px; }
.weight-controls label > span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--navy); font-size: .86rem; }
.weight-controls output { color: var(--burgundy); font-weight: 850; }
.recommendation-card {
  padding: 25px;
  color: white;
  background: var(--navy);
  border-radius: var(--radius);
}
.recommendation-card .panel-kicker { color: #9fc5d8; }
.recommendation-card h3 { color: white; font-size: 1.7rem; }
.recommendation-card > p:last-child { color: rgba(255,255,255,.66); font-size: .86rem; }
.score-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 23px 0 19px; }
.score-pair div { padding: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.11); border-radius: 10px; }
.score-pair span { display: block; min-height: 34px; color: rgba(255,255,255,.62); font-size: .7rem; }
.score-pair strong { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: 1.9rem; font-weight: 500; }
.dependency-panel { background: linear-gradient(160deg, var(--paper), var(--blue-soft)); }
.dependency-flow {
  display: grid;
  grid-template-columns: auto 20px 1fr 20px auto;
  gap: 8px;
  align-items: center;
  margin: 26px 0;
  padding: 20px 12px;
  color: var(--navy);
  background: white;
  border: 1px solid #cbd8df;
  border-radius: 13px;
  text-align: center;
  font-size: .75rem;
}
.dependency-flow i { color: var(--burgundy); font-style: normal; font-weight: 900; }
.dependency-flow strong { padding: 8px; background: var(--red-soft); border-radius: 8px; }
.persona-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 22px 0 13px; }
.persona-tabs button {
  padding: 9px 12px;
  color: var(--navy);
  background: transparent;
  border: 1px solid #bdc9d0;
  border-radius: 99px;
  font-size: .76rem;
  font-weight: 750;
}
.persona-tabs button.active { color: white; background: var(--navy); border-color: var(--navy); }
.law-screen { display: grid; grid-template-columns: .85fr 1.15fr; gap: 19px; align-items: stretch; }
.law-phone {
  position: relative;
  padding: 35px 29px 25px;
  color: #eef5f7;
  background: linear-gradient(155deg, #17324d, #244e68);
  border: 9px solid #10293f;
  border-radius: 29px;
  box-shadow: 0 20px 40px rgba(23,50,77,.16);
}
.law-phone::before { content: ""; position: absolute; top: 9px; left: calc(50% - 31px); width: 62px; height: 5px; background: #0b2133; border-radius: 10px; }
.phone-label { color: #9fc5d8; font-size: .63rem; font-weight: 800; letter-spacing: .14em; }
.law-phone h3 { margin: 14px 0 8px; color: white; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; line-height: 1.06; }
.law-phone p { color: rgba(255,255,255,.72); }
.law-phone ol { margin: 20px 0; padding-left: 19px; }
.law-phone li { margin: 8px 0; }
.law-phone button { padding: 0; color: #a8d9c7; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: .76rem; font-weight: 750; }
#law-condition { padding: 11px; color: #41270b; background: #ffe1a5; border-radius: 8px; font-size: .77rem; }
.comparison-panel { box-shadow: none; }
.comparison-panel > label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: .83rem;
}
.comparison-panel input { width: 17px; height: 17px; accent-color: var(--burgundy); }
.mixer-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 19px; margin-top: 21px; }
.mixer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; box-shadow: none; }
.mixer fieldset { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.mixer legend { padding: 0 5px; color: var(--burgundy); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.mixer label { display: flex; gap: 7px; margin: 10px 0; color: #485761; font-size: .73rem; line-height: 1.35; }
.mixer input { margin-top: 2px; accent-color: var(--burgundy); }
.mixer .button { grid-column: 1 / -1; }
.provenance-preview { grid-column: 1 / -1; padding: 13px 15px; color: #465660; background: var(--blue-soft); border: 1px solid #c9d8e0; border-radius: 10px; }
.provenance-preview span { color: var(--burgundy); font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.provenance-preview p { margin: 5px 0 2px; font-size: .76rem; }
.provenance-preview small { color: var(--muted); font-size: .7rem; }
.record-card { padding: 25px; color: white; background: linear-gradient(145deg, #812033, #aa3046); border-radius: var(--radius); }
.record-card .panel-kicker { color: #ffd0d8; }
.record-card h3 { color: white; font-size: 1.7rem; }
.catalog-options { display: grid; gap: 9px; margin-top: 18px; }
.catalog-options button { background: rgba(255,255,255,.96); }
.catalog-options button.selected { color: white; background: var(--navy); border-color: white; box-shadow: none; }
.catalog-options button.selected b, .catalog-options button.selected small { color: white; }
.lab-profile { margin-top: 24px; }
.profile-actions { display: grid; gap: 9px; }
.profile-actions .button { width: 100%; white-space: nowrap; }
.interface-reveal { margin-top: 24px; padding: 34px; color: white; background: radial-gradient(circle at 92% 10%, rgba(157,34,53,.65), transparent 24rem), #10293f; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); box-shadow: var(--shadow); }
.interface-reveal .panel-kicker { color: #9fd1c0; }
.interface-reveal h2, .newsletter-cta h2 { margin: 6px 0 10px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.08; }
.interface-reveal > p:not(.panel-kicker) { max-width: 870px; color: rgba(255,255,255,.7); }
.interface-findings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 25px 0 18px; }
.interface-findings article { padding: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
.interface-findings span { color: #84d2b6; font-size: .65rem; font-weight: 850; }
.interface-findings p { margin: 8px 0 0; color: rgba(255,255,255,.8); font-size: .75rem; line-height: 1.45; }
.reveal-close { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); font-family: Georgia, serif; font-size: 1.1rem; }
.newsletter-cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-top: 24px; padding: 28px 31px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.newsletter-cta h2 { margin-bottom: 7px; color: var(--navy); font-size: 1.9rem; }
.newsletter-cta p:not(.panel-kicker) { max-width: 720px; margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.case-chip { flex: 0 0 auto; margin-bottom: 10px; padding: 7px 11px; color: var(--navy); background: var(--blue-soft); border: 1px solid #ccdae3; border-radius: 8px; font-size: .72rem; font-weight: 750; letter-spacing: .04em; }
.alert-chip { color: var(--burgundy); background: var(--red-soft); border-color: #eccbd0; }
.panel, .result-panel { padding: 28px; background: rgba(255,253,249,.94); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(23,50,77,.06); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.panel h2, .result-panel h2, .profile-panel h2 { margin: 4px 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.panel p { color: #53606a; }
.disclosure { display: flex; justify-content: space-between; width: 100%; margin-top: 20px; padding: 14px 0; color: var(--navy); background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 750; text-align: left; }
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; }
.sources article { padding: 15px; background: var(--cream); border: 1px solid var(--line); border-radius: 11px; }
.sources article.source-warning { background: var(--amber-soft); border-color: #e7c88e; }
.sources h3 { margin: 8px 0 4px; font-size: .9rem; }
.sources p { margin: 0; font-size: .78rem; }
.source-state { font-size: .63rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.source-ok { color: var(--green); }
.source-review { color: var(--amber); }
.result-panel { border-left: 5px solid var(--burgundy); }
.result-panel p { max-width: 880px; color: #4c5963; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-meta span { padding: 6px 9px; color: var(--navy); background: var(--blue-soft); border-radius: 7px; font-size: .72rem; font-weight: 700; }

.compute-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.total-allocation { min-width: 80px; text-align: right; }
.total-allocation span { display: block; color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.total-allocation strong { color: var(--navy); font-size: 1.7rem; }
.sliders { display: grid; gap: 19px; margin-top: 28px; }
.sliders label > span { display: flex; justify-content: space-between; color: var(--navy); }
.sliders output { min-width: 36px; color: var(--burgundy); font-weight: 800; text-align: right; }
.sliders small { display: block; margin: 2px 0 7px; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--burgundy); }
.allocation-warning { min-height: 24px; margin-top: 16px; color: var(--burgundy); font-size: .82rem; font-weight: 700; }
.text-action { padding: 0; color: var(--navy); background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: .76rem; font-weight: 750; }
.dependency-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.dependency-list li { display: flex; gap: 9px; color: #55626c; font-size: .82rem; }
.dependency-list span { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; background: var(--burgundy); border-radius: 50%; }

.archive-heading { align-items: flex-start; }
.archive-heading p:not(.eyebrow) { max-width: 650px; color: var(--muted); }
.archive-filter { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.archive-filter button { padding: 8px 11px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: .75rem; }
.archive-filter button.active { color: white; background: var(--navy); border-color: var(--navy); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.archive-card { position: relative; min-height: 275px; padding: 23px 23px 112px; background: rgba(255,253,249,.95); border: 1px solid var(--line); border-radius: 15px; transition: transform .18s ease, box-shadow .18s ease; }
.archive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.archive-number { color: var(--burgundy); font-size: .7rem; font-weight: 800; }
.archive-tag { float: right; padding: 5px 7px; color: var(--navy); background: var(--blue-soft); border-radius: 6px; font-size: .62rem; font-weight: 750; }
.archive-card h2 { margin: 32px 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.archive-card p { color: var(--muted); font-size: .86rem; }
.archive-card blockquote { position: absolute; right: 22px; bottom: 18px; left: 22px; margin: 0; padding-top: 12px; color: var(--burgundy); border-top: 1px solid var(--line); font-family: Georgia, serif; font-size: .82rem; font-style: italic; }
.archive-card > button { position: absolute; bottom: 74px; left: 23px; z-index: 2; padding: 0; color: var(--navy); background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: .74rem; font-weight: 800; }
.archive-card > button:hover { color: var(--burgundy); }
.archive-cta { margin-top: 30px; }
.archive-dialog { width: min(610px, calc(100% - 30px)); padding: 31px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 90px rgba(16,41,63,.35); }
.archive-dialog::backdrop { background: rgba(11,29,44,.72); backdrop-filter: blur(4px); }
.archive-dialog h2 { margin: 7px 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 2.1rem; font-weight: 500; }
.archive-dialog > p:not(.panel-kicker) { color: var(--muted); }
.dialog-close { position: absolute; top: 13px; right: 15px; width: 37px; height: 37px; color: var(--navy); background: var(--blue-soft); border: 0; border-radius: 50%; font-size: 1.4rem; }
.dialog-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.profile-panel { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 30px; align-items: center; margin-top: 40px; padding: 28px; color: white; background: var(--navy); border-radius: var(--radius); }
.profile-panel .panel-kicker { color: #9fc5d8; }
.profile-panel h2 { color: white; }
.profile-panel p { margin-bottom: 0; color: rgba(255,255,255,.65); }
.profile-bars { display: grid; gap: 10px; }
.profile-bars > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: center; font-size: .72rem; }
.profile-bars > div > div { height: 7px; background: rgba(255,255,255,.13); border-radius: 10px; overflow: hidden; }
.profile-bars i { display: block; width: 0; height: 100%; background: #7bcbae; transition: width .45s ease; }
.profile-panel .button-secondary { color: white; border-color: rgba(255,255,255,.35); }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px max(24px, calc((100vw - var(--max)) / 2)); color: rgba(255,255,255,.68); background: #0f2639; font-size: .78rem; }
footer strong { color: white; }
footer p { margin: 4px 0 0; }
footer a { color: white; }

@media (max-width: 930px) {
  .site-header { grid-template-columns: 1fr auto; }
  .system-status { display: none; }
  .nav-toggle { display: inline-flex; gap: 7px; }
  .main-nav { position: absolute; top: 76px; right: 20px; display: none; width: min(310px, calc(100vw - 40px)); padding: 10px; background: var(--navy); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .hero-view { grid-template-columns: 1fr; padding-top: 55px; row-gap: 35px; }
  .hero-system { order: 3; }
  .principles-strip { order: 4; }
  .compute-layout, .lab-layout { grid-template-columns: 1fr; }
  .module-nav {
    position: static;
    display: flex;
    padding: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .module-nav button { flex: 0 0 205px; scroll-snap-align: start; }
  .school-layout, .law-screen, .mixer-layout { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-panel { grid-template-columns: 1fr; }
  .interface-findings { grid-template-columns: repeat(2, 1fr); }
  .newsletter-cta { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .view { width: min(100% - 28px, var(--max)); padding: 42px 0 65px; }
  .hero-copy h1 { font-size: 3.25rem; }
  .hero-view { row-gap: 28px; }
  .system-card { padding: 18px; }
  .orbital { width: 230px; height: 230px; }
  .orbit-one { width: 150px; height: 150px; }
  .orbit-two { width: 220px; height: 220px; }
  .node-two { right: 4px; top: 112px; }
  .principles-strip { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .progress-card { width: 100%; margin-top: 22px; }
  .module { padding: 20px; }
  .module-header { display: block; }
  .scenario-banner, .choice-grid.three { grid-template-columns: 1fr; }
  .scenario-banner { gap: 0; }
  .scenario-banner div + div { border-top: 1px solid #cad4da; }
  .school-layout, .law-screen, .mixer-layout { grid-template-columns: 1fr; }
  .mixer { grid-template-columns: 1fr; }
  .mixer .button { grid-column: auto; }
  .provenance-preview { grid-column: auto; }
  .interface-reveal { padding: 23px; }
  .interface-findings { grid-template-columns: 1fr; }
  .dependency-flow { grid-template-columns: 1fr; }
  .dependency-flow i { transform: rotate(-90deg); }
  .persona-tabs { display: grid; grid-template-columns: 1fr; }
  .persona-tabs button { width: 100%; border-radius: 9px; text-align: left; }
  .law-phone { border-width: 6px; }
  .case-chip { display: inline-block; margin-top: 18px; }
  .panel, .result-panel { padding: 21px; }
  .sources { grid-template-columns: 1fr; }
  .archive-heading { display: block; }
  .archive-filter { justify-content: flex-start; margin-top: 20px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { min-height: 220px; }
  footer { display: block; }
  footer > p { margin-top: 18px; }
}

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

:focus-visible { outline: 3px solid #f1b7c0; outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: 0; }
