:root {
  --ink: #1f2a33;
  --storm: #58748a;
  --teal: #6e8f8a;
  --sand: #d8ccb8;
  --ochre: #c79a49;
  --paper: #f6f3ec;
  --white: #fffdf8;
  --line: rgba(31, 42, 51, 0.16);
  --muted: rgba(31, 42, 51, 0.68);
  --soft: rgba(216, 204, 184, 0.28);
  --shadow: 0 24px 70px rgba(31, 42, 51, 0.13);
  --shadow-soft: 0 16px 44px rgba(31, 42, 51, 0.09);
  --shadow-tight: 0 10px 24px rgba(31, 42, 51, 0.12);
  --radius: 8px;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Source Sans 3", Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(31, 42, 51, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 51, 0.026) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

::selection {
  background: rgba(199, 154, 73, 0.28);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(22px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 10px 28px rgba(31, 42, 51, 0.055);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.06), transparent 42%),
    var(--ink);
  color: var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(246, 243, 236, 0.22),
    var(--shadow-tight);
}

.brand-mark svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 0.95;
}

.brand small {
  display: block;
  color: var(--storm);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.1;
  margin-top: 5px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a {
  position: relative;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--ochre);
  content: "";
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 180ms ease, transform 180ms ease;
}

nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 750;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-cta,
.button.primary {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.06), transparent 48%),
    var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px rgba(31, 42, 51, 0.16);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.42);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-cta:hover,
.button.primary:hover {
  border-color: #0f1a22;
  box-shadow: 0 16px 34px rgba(31, 42, 51, 0.2);
}

.button.secondary:hover {
  border-color: var(--storm);
  background: rgba(255, 253, 248, 0.74);
  color: var(--storm);
}

main {
  position: relative;
  overflow: hidden;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(46px, 7vw, 92px);
  padding: clamp(64px, 8vw, 104px) clamp(22px, 5vw, 70px);
}

.hero {
  position: relative;
  min-height: auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(64px, 7vw, 90px);
}

.hero::before {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(58vw, 760px);
  height: min(62vw, 720px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 700 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2358748A' stroke-width='1.4' opacity='.28'%3E%3Cpath d='M80 156c80-72 170-98 268-82 105 17 180 72 230 154 53 86 57 166 12 240-50 82-137 119-253 111-103-7-184-44-244-111C34 402 16 328 39 246c10-36 23-66 41-90Z'/%3E%3Cpath d='M123 183c66-56 140-76 223-61 84 15 145 58 185 128 39 69 40 132 1 189-42 62-112 89-207 82-84-6-149-36-196-90-47-53-61-111-43-174 8-29 20-54 37-74Z'/%3E%3Cpath d='M166 211c51-41 108-56 172-44 63 12 110 45 140 97 30 52 30 98 0 138-32 43-84 62-155 56-62-5-110-27-144-66-34-39-44-82-31-128 6-20 12-38 18-53Z'/%3E%3Cpath d='M210 239c36-27 75-37 118-29 44 8 76 30 96 65 20 34 19 64-1 90-22 29-57 41-105 37-41-4-72-18-94-44-22-25-29-53-21-82 3-13 6-25 7-37Z'/%3E%3Cpath d='M255 267c20-14 43-19 68-14 25 5 44 18 56 37 12 20 10 37-4 51-15 15-38 21-68 18-26-3-45-12-58-27-13-15-16-31-10-48 3-7 8-13 16-17Z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0.78;
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  bottom: 20px;
  left: clamp(22px, 5vw, 70px);
  height: 1px;
  background:
    linear-gradient(90deg, var(--ochre), transparent 18%),
    linear-gradient(90deg, transparent, rgba(88, 116, 138, 0.34), transparent);
  content: "";
  opacity: 0.7;
}

.status-line,
.section-label,
.section-heading p {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(70px, 8.4vw, 126px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.86;
}

.descriptor {
  color: var(--storm);
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 38px);
  font-style: italic;
  line-height: 1.15;
}

.hero-text {
  max-width: 690px;
  color: rgba(31, 42, 51, 0.8);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  max-width: 600px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.trust-strip span::before {
  color: var(--ochre);
  content: "◆";
  font-size: 10px;
  margin-right: 8px;
}

.passport-panel,
.packet-card,
.loss-table,
.candidate-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.8)),
    rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.passport-panel {
  position: relative;
  align-self: center;
  overflow: hidden;
  min-height: 520px;
  border-top: 4px solid var(--storm);
}

.passport-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(110, 143, 138, 0.09), transparent),
    linear-gradient(rgba(88, 116, 138, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 116, 138, 0.035) 1px, transparent 1px);
  background-size: 180px 100%, 22px 22px, 22px 22px;
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

.passport-panel > * {
  position: relative;
}

.panel-chrome {
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-chrome span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--sand);
  border-radius: 50%;
}

.panel-chrome em {
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: rgba(216, 204, 184, 0.2);
}

.tab,
.packet-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 800 14px/1 var(--sans);
  padding: 16px 22px;
  transition: background 160ms ease, color 160ms ease;
}

.tab.is-active,
.packet-tab.is-active {
  color: var(--teal);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.tab:hover,
.packet-tab:hover {
  background: rgba(110, 143, 138, 0.08);
}

.tab-panel {
  display: none;
  min-height: 388px;
  padding: 26px;
}

.tab-panel.is-active {
  display: block;
}

.record-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}

.story-card {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card p {
  font-family: var(--serif);
  font-size: 20px;
}

.fragment-list {
  display: grid;
  gap: 12px;
}

.fragment-list article,
.problem-grid article,
.evidence-grid article,
.pathway-grid article,
.audience-grid article,
.review-flow article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.92)),
    var(--white);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.fragment-list article:hover,
.evidence-grid article:hover,
.review-flow article:hover {
  border-color: rgba(88, 116, 138, 0.34);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.fragment-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  padding: 14px;
}

.fragment-list small {
  grid-column: 1 / -1;
}

.badge {
  align-self: start;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ready,
.ready-text {
  color: var(--teal);
}

.review,
.warning {
  color: var(--ochre);
}

.missing,
.missing-text {
  color: #bc514a;
}

.packet-preview {
  display: grid;
  gap: 18px;
}

.packet-preview h3 {
  font-family: var(--serif);
  font-size: 30px;
}

.packet-preview ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.packet-preview li {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 16px;
}

.flow-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  color: var(--storm);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-bar::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
  content: "";
  animation: flowTrace 5.8s ease-in-out infinite;
}

.flow-bar span:not(:last-child)::after {
  color: var(--sand);
  content: "→";
  margin-left: 12px;
}

.band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.48);
  padding: clamp(54px, 6vw, 78px) clamp(22px, 5vw, 70px);
}

.band::after {
  position: absolute;
  right: -8%;
  top: 24px;
  width: min(38vw, 420px);
  height: min(30vw, 340px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 420 340' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%236E8F8A' stroke-width='1.1' opacity='.24'%3E%3Cpath d='M22 142c44-57 103-86 178-86 82 0 146 29 190 87'/%3E%3Cpath d='M18 182c54-58 115-88 184-90 84-2 151 31 202 99'/%3E%3Cpath d='M36 219c52-43 109-64 169-63 70 1 126 28 168 80'/%3E%3Cpath d='M71 251c38-29 80-43 126-42 48 1 90 19 126 55'/%3E%3Cpath d='M107 280c25-18 52-27 82-26 31 1 60 11 86 31'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.problem::after {
  right: -5%;
  top: 18px;
  width: min(34vw, 390px);
  height: min(28vw, 320px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 390 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2358748A' stroke-width='1.05' opacity='.22'%3E%3Cpath d='M31 119c50-70 119-104 207-103 58 1 104 18 139 52'/%3E%3Cpath d='M23 158c53-67 124-100 211-98 62 1 111 21 148 59'/%3E%3Cpath d='M42 196c45-48 105-72 179-72 63 0 113 20 151 60'/%3E%3Cpath d='M78 228c35-31 78-47 130-47 52 0 94 14 126 42'/%3E%3Cpath d='M119 256c23-18 52-27 86-27 35 0 65 9 91 27'/%3E%3C/g%3E%3C/svg%3E");
}

.review-gate::after {
  right: auto;
  left: -7%;
  top: 36px;
  width: min(36vw, 430px);
  height: min(34vw, 380px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 430 380' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%236E8F8A' stroke-width='1.08' opacity='.23'%3E%3Cpath d='M47 264c-12-81 14-143 78-186 57-39 124-50 201-33'/%3E%3Cpath d='M82 271c-8-63 13-112 62-149 49-36 107-47 174-33'/%3E%3Cpath d='M118 273c-5-47 10-84 45-112 38-30 82-40 132-29'/%3E%3Cpath d='M155 265c-2-31 9-56 32-75 26-21 56-27 91-18'/%3E%3Cpath d='M193 251c2-17 10-30 24-40 15-10 31-13 50-8'/%3E%3Cpath d='M229 235c8-8 19-10 32-6'/%3E%3C/g%3E%3C/svg%3E");
}

.substitute::after {
  right: -4%;
  top: 34px;
  bottom: auto;
  width: min(34vw, 390px);
  height: min(19vw, 230px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 470 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C79A49' stroke-width='1.08' opacity='.24'%3E%3Cpath d='M18 192c66-42 131-62 195-59 77 3 137 29 180 78 23 27 43 43 60 49'/%3E%3Cpath d='M29 151c58-36 119-53 183-51 78 2 142 26 191 72 23 22 43 35 61 40'/%3E%3Cpath d='M56 116c49-26 101-38 157-36 68 3 123 23 166 61 21 19 41 30 60 34'/%3E%3Cpath d='M91 89c37-16 77-23 119-20 54 4 100 20 137 49 20 15 39 24 57 27'/%3E%3Cpath d='M131 72c27-8 55-11 85-7 38 5 72 17 101 37 17 12 33 19 50 21'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.24;
}

.audiences::after {
  right: 3%;
  top: 32px;
  width: min(30vw, 350px);
  height: min(30vw, 350px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 350 350' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2358748A' stroke-width='1.05' opacity='.2'%3E%3Cpath d='M169 29c66 3 114 31 143 84 26 48 24 96-6 145-32 51-80 74-143 69-63-4-109-32-138-83C-3 194 1 145 37 98c33-44 77-67 132-69Z'/%3E%3Cpath d='M169 63c50 3 87 25 109 65 20 37 18 74-5 111-25 38-61 56-109 52-47-4-82-25-103-64-22-38-18-75 9-111 25-35 58-52 99-53Z'/%3E%3Cpath d='M169 98c35 2 61 17 77 45 14 26 13 52-4 78-17 27-43 39-77 36-33-3-57-18-72-45-15-27-13-53 6-78 18-24 41-36 70-36Z'/%3E%3Cpath d='M170 132c20 2 35 10 45 26 8 15 7 30-3 45-11 16-26 23-46 21-19-2-33-11-42-26-9-15-8-30 3-45 10-14 25-21 43-21Z'/%3E%3Cpath d='M171 164c8 1 15 5 19 12 4 7 3 14-2 20-5 7-12 10-21 9-8-1-15-5-18-12-4-7-3-14 2-20 5-6 11-9 20-9Z'/%3E%3C/g%3E%3C/svg%3E");
}

.band > * {
  position: relative;
  z-index: 1;
}

.problem,
.audiences {
  background:
    linear-gradient(rgba(216, 204, 184, 0.18), rgba(255, 253, 248, 0.5)),
    transparent;
}

.review-gate {
  background:
    linear-gradient(135deg, rgba(110, 143, 138, 0.15), rgba(255, 253, 248, 0.54) 52%),
    transparent;
}

.substitute {
  background:
    linear-gradient(135deg, rgba(199, 154, 73, 0.13), rgba(255, 253, 248, 0.52) 48%),
    transparent;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(360px, 1fr);
  gap: 28px 70px;
  margin-bottom: 34px;
}

.band .section-heading {
  display: block;
  max-width: 760px;
}

.band .section-heading p {
  margin-bottom: 14px;
}

.band .section-heading h2 {
  margin-bottom: 18px;
}

.band .section-heading span {
  display: block;
  max-width: 620px;
}

.section-heading h2,
.evidence-section h2,
.reconcile h2,
.consent h2,
.guardrails h2,
.start-section h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-heading span,
.evidence-section p,
.reconcile p,
.consent p,
.guardrails p,
.start-section p {
  color: var(--muted);
  font-size: 18px;
}

.problem-grid,
.pathway-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.problem-grid article,
.pathway-grid article,
.audience-grid article {
  min-height: 188px;
  padding: 24px;
}

.problem-grid span {
  color: var(--ochre);
  font-family: var(--mono);
  font-weight: 900;
}

h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
}

.evidence-section {
  align-items: center;
}

.candidate-panel {
  margin-top: 28px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.candidate-panel h3 {
  margin-bottom: 14px;
}

.candidate-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.candidate-panel p {
  border-top: 1px solid var(--line);
  margin: 18px 0 0;
  padding-top: 16px;
  color: var(--storm);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.evidence-grid article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 14px;
  min-height: 104px;
  padding: 18px;
  border-left: 3px solid rgba(88, 116, 138, 0.42);
}

.evidence-grid span {
  grid-row: span 2;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(88, 116, 138, 0.055);
  padding: 10px 0;
  text-align: center;
  color: var(--storm);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-gate .narrow {
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
}

.review-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.review-flow article {
  min-height: 240px;
  padding: 24px;
}

.review-flow span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 800;
}

.review-flow .is-active {
  border-color: var(--teal);
  border-top: 4px solid var(--teal);
  box-shadow:
    inset 0 0 0 3px rgba(110, 143, 138, 0.18),
    var(--shadow-soft);
}

.reconcile {
  align-items: center;
}

.loss-table {
  display: grid;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.loss-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 0.45fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.loss-table > div:last-child {
  border-bottom: 0;
}

.table-head {
  background: rgba(216, 204, 184, 0.32);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loss-table b {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.pathway-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pathway-grid small {
  color: var(--ochre);
}

.packet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.packet-tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: none;
  white-space: normal;
}

.packet-tab.is-active {
  border-color: var(--teal);
  background: rgba(110, 143, 138, 0.12);
}

.packet-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.packet-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--ochre));
  content: "";
  opacity: 0.72;
}

.packet-card h3 {
  margin: 6px 0 8px;
  font-size: 38px;
}

.toggle-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.toggle-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.52);
  padding: 14px 16px;
}

input[type="checkbox"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  order: 2;
}

.consent-note {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 16px;
  color: var(--storm);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guardrails {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 60px;
  padding: clamp(62px, 7vw, 92px) clamp(22px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(110, 143, 138, 0.16), transparent 36%),
    var(--ink);
  color: var(--paper);
}

.guardrails::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(246, 243, 236, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 236, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  opacity: 0.5;
}

.guardrails > * {
  position: relative;
}

.guardrails p,
.guardrails .section-label {
  color: rgba(246, 243, 236, 0.72);
}

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

.guardrail-grid span {
  border: 1px solid rgba(246, 243, 236, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.035);
  padding: 18px;
}

.guardrail-grid span::before {
  color: var(--teal);
  content: "✓";
  font-weight: 900;
  margin-right: 10px;
}

.start-section {
  position: relative;
  padding: 82px clamp(22px, 5vw, 70px);
  text-align: center;
}

.start-section::before {
  position: absolute;
  top: 0;
  right: clamp(22px, 5vw, 70px);
  left: clamp(22px, 5vw, 70px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 154, 73, 0.52), transparent);
  content: "";
}

.start-section p {
  max-width: 520px;
  margin: 0 auto 28px;
}

.contact-line {
  color: var(--storm);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-line a,
.patent-note a {
  color: var(--ink);
  text-decoration-color: var(--ochre);
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 30px clamp(22px, 5vw, 70px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(246, 243, 236, 0.92)),
    rgba(255, 253, 248, 0.7);
}

@keyframes flowTrace {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-20%);
  }

  18%,
  72% {
    opacity: 0.9;
  }

  50% {
    transform: translateX(205%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.patent-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-brand .brand-mark svg {
  width: 25px;
  height: 25px;
}

.footer-brand strong {
  font-size: 21px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .section-grid,
  .guardrails,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .passport-panel {
    min-height: auto;
  }

  .band::after {
    opacity: 0.2;
    transform: scale(0.9);
  }

  .problem-grid,
  .pathway-grid,
  .audience-grid,
  .review-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .patent-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    gap: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .brand strong {
    font-size: 21px;
  }

  .brand small {
    max-width: 180px;
    font-size: 8px;
    line-height: 1.2;
  }

  .nav-cta {
    width: 100%;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .status-line,
  .section-label,
  .section-heading p {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: 58px;
  }

  .descriptor {
    max-width: 12ch;
    font-size: 24px;
  }

  .section-grid {
    gap: 34px;
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 58px;
  }

  .band {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .band::after {
    opacity: 0.12;
    transform: scale(0.75);
  }

  .section-heading {
    display: block;
  }

  .section-heading p,
  .section-label {
    margin-bottom: 18px;
  }

  .section-heading h2,
  .evidence-section h2,
  .reconcile h2,
  .consent h2,
  .guardrails h2,
  .start-section h2 {
    font-size: 34px;
    line-height: 1.03;
  }

  .panel-chrome {
    grid-template-columns: 8px 8px 8px 1fr;
  }

  .panel-chrome em {
    grid-column: 1 / -1;
  }

  .tab,
  .packet-tab {
    flex: 1 1 auto;
    padding: 14px 12px;
  }

  .tab-panel {
    min-height: auto;
    padding: 22px;
  }

  .record-layout,
  .evidence-grid,
  .problem-grid,
  .pathway-grid,
  .audience-grid,
  .review-flow,
  .guardrail-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
  }

  .problem-grid article,
  .pathway-grid article,
  .audience-grid article,
  .review-flow article {
    min-height: auto;
  }

  .fragment-list article:hover,
  .evidence-grid article:hover,
  .review-flow article:hover {
    box-shadow: none;
    transform: none;
  }

  .loss-table > div {
    grid-template-columns: 1fr;
  }

  .flow-bar {
    display: none;
  }

  .site-footer {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .patent-note {
    font-size: 10px;
    line-height: 1.55;
  }
}
