:root {
  color-scheme: light;
  --ink: #14221e;
  --muted: #5d6c65;
  --paper: #f3efe5;
  --paper-deep: #e6dece;
  --surface: #fffdf7;
  --line: rgba(20, 34, 30, 0.17);
  --moss: #176b51;
  --moss-deep: #124b3b;
  --lime: #d1e86e;
  --orange: #ec7a42;
  --blue: #2f6681;
  --violet: #70528a;
  --focus: #8a4f14;
  --shadow: 0 30px 80px rgba(20, 34, 30, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--moss); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--ink);
  transform: translateY(-170%);
}
.skip-link:focus { transform: none; }

.site-header,
footer {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-header { min-height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 1rem; letter-spacing: 0.015em; }
.brand small { color: var(--muted); font-size: 0.73rem; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.site-header nav a { color: var(--muted); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--moss); }
.site-header nav .nav-action {
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

main { overflow: hidden; }
.hero,
.proof-section,
.related-section,
.next-section {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  padding: clamp(4.5rem, 9vw, 8rem) 0 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.8rem;
  color: var(--moss);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
h1 { max-width: 850px; font-size: clamp(3.6rem, 7.6vw, 7rem); }
h1 em { color: var(--moss); font-weight: 400; }
h2 { font-size: clamp(2.25rem, 5vw, 4.35rem); }
h3 { margin-bottom: 0; line-height: 1.25; }
.lead { max-width: 760px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}
.button.primary { background: var(--ink); color: var(--surface); }
.button.primary:hover { border-color: var(--moss); background: var(--moss); color: white; }
.button.secondary { background: transparent; }
.button.secondary:hover { background: var(--surface); color: var(--ink); }

.proof-boundary {
  position: relative;
  margin: 0;
  padding: clamp(1.8rem, 4vw, 2.7rem);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--surface);
  transform: rotate(1deg);
}
.proof-boundary::before {
  content: "";
  position: absolute;
  width: 6rem;
  height: 6rem;
  top: -2.2rem;
  right: -2rem;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.85;
  z-index: -1;
}
.proof-boundary .eyebrow { color: var(--lime); }
.proof-boundary h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.proof-boundary > p:not(.eyebrow) { margin: 1.4rem 0 2rem; color: #c1cbc6; font-size: 0.94rem; line-height: 1.7; }
.proof-boundary dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.proof-boundary dl div { padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.proof-boundary dl div:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, 0.15); }
.proof-boundary dt { color: #94a59d; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.proof-boundary dd { margin: 0.25rem 0 0; font-weight: 750; }

.lifecycle-strip {
  padding: 1.3rem max(1rem, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--lime);
}
.lifecycle-strip p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.lifecycle-strip ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; }
.lifecycle-strip li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
.lifecycle-strip li:not(:last-child)::after { content: "→"; margin: 0 0.9rem; color: rgba(20, 34, 30, 0.5); }
.lifecycle-strip li span { color: var(--moss-deep); font-family: Georgia, "Times New Roman", serif; }

.proof-section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.75; }

.load-status {
  margin: 3rem 0 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.55);
  color: var(--muted);
  font-size: 0.84rem;
}
.load-status::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  display: inline-block;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(236, 122, 66, 0.12);
}
.load-status.verified { border-color: rgba(23, 107, 81, 0.28); color: var(--moss-deep); }
.load-status.verified::before { background: var(--moss); box-shadow: 0 0 0 5px rgba(23, 107, 81, 0.12); }
.load-status.failed { color: #8d331e; border-color: rgba(141, 51, 30, 0.25); }

.proof-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 1rem;
}

.source-panel,
.knowledge-panel,
.detail-panel,
.integrity-panel,
.fallback {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.source-panel,
.knowledge-panel { min-height: 690px; padding: clamp(1.25rem, 2.6vw, 2rem); }
.source-panel { background: var(--paper-deep); }
.panel-heading,
.detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.panel-heading h3, .detail-heading h3, .integrity-panel h3, .fallback h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 500; }
.source-lock, .unit-count {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.meeting-name { margin: 1rem 0; color: var(--muted); font-size: 0.78rem; }

.transcript-list,
.unit-list,
.detail-lifecycle { margin: 0; padding: 0; list-style: none; }
.transcript-list {
  max-height: 585px;
  padding-right: 0.35rem;
  overflow-y: auto;
  scrollbar-color: rgba(20, 34, 30, 0.28) transparent;
}
.transcript-turn {
  position: relative;
  padding: 1rem 0.85rem 1rem 1.05rem;
  border-top: 1px solid rgba(20, 34, 30, 0.12);
  transition: background 160ms ease, box-shadow 160ms ease;
}
.transcript-turn.evidence-source {
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--orange);
}
.turn-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.turn-time { color: var(--moss); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; }
.turn-speaker { font-size: 0.78rem; }
.turn-language { margin-left: auto; color: var(--muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; }
.turn-text { margin: 0.45rem 0 0; font-size: 0.84rem; line-height: 1.55; }
.turn-translation { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.74rem; font-style: italic; line-height: 1.5; }

.status-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin: 1.3rem 0; }
.summary-stat { padding: 0.7rem; border: 1px solid var(--line); border-radius: 10px; display: grid; }
.summary-stat strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1; }
.summary-stat span { margin-top: 0.25rem; color: var(--muted); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }

.filter-row { display: flex; gap: 0.45rem; padding: 0 0 1rem; overflow-x: auto; scrollbar-width: thin; }
.filter-button {
  flex: 0 0 auto;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}
.filter-button:hover { border-color: var(--moss); color: var(--moss); }
.filter-button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }

.unit-list {
  max-height: 466px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding-right: 0.35rem;
  overflow-y: auto;
  scrollbar-color: rgba(20, 34, 30, 0.28) transparent;
}
.unit-button {
  width: 100%;
  height: 100%;
  min-height: 128px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(243, 239, 229, 0.45);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}
.unit-button:hover { border-color: var(--moss); transform: translateY(-1px); }
.unit-button.selected { border-color: var(--moss); background: rgba(209, 232, 110, 0.22); box-shadow: inset 0 0 0 1px var(--moss); }
.unit-topline { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.unit-type { color: var(--moss); font-size: 0.61rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.unit-title { margin-top: 0.75rem; font-size: 0.87rem; line-height: 1.35; }
.unit-id { margin-top: auto; padding-top: 0.55rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.63rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.27rem 0.52rem;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.status-draft { background: #e8e1d3; color: #5f594f; }
.status-pending { background: #f8ddc4; color: #8b421f; }
.status-confirmed { background: #d5eadf; color: #16533f; }
.status-superseded { background: #e6dbeb; color: #5f3f72; }

.detail-panel { grid-column: 1 / -1; padding: clamp(1.5rem, 3.3vw, 2.7rem); scroll-margin-top: 1rem; }
.detail-panel:focus { outline: none; }
.detail-statement { max-width: 880px; margin: 1.4rem 0 2rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 1rem; }
.evidence-card, .lifecycle-card { padding: clamp(1.2rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.evidence-card blockquote {
  margin: 0;
  padding: 0 0 0 1.2rem;
  border-left: 4px solid var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}
.source-metadata { margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.metadata-item { min-width: 0; padding-top: 0.65rem; border-top: 1px solid var(--line); }
.metadata-label { color: var(--muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.metadata-value { margin: 0.25rem 0 0; overflow-wrap: anywhere; font-size: 0.74rem; line-height: 1.5; }
.metadata-hash .metadata-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.65rem; }

.detail-lifecycle { position: relative; }
.lifecycle-event { display: grid; grid-template-columns: 1rem 1fr; gap: 0.85rem; position: relative; padding-bottom: 1.1rem; }
.lifecycle-event:not(:last-child)::before { content: ""; position: absolute; top: 0.8rem; bottom: 0; left: 0.38rem; width: 1px; background: var(--line); }
.lifecycle-marker { position: relative; z-index: 1; width: 0.8rem; height: 0.8rem; margin-top: 0.25rem; border: 2px solid var(--surface); border-radius: 50%; }
.lifecycle-heading { display: flex; justify-content: space-between; gap: 1rem; }
.lifecycle-heading strong { font-size: 0.78rem; }
.lifecycle-heading time,
.lifecycle-heading span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.65rem; }
.lifecycle-copy p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.73rem; line-height: 1.5; }

.integrity-panel {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 3.3vw, 2.7rem);
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(390px, 1.3fr) auto;
  gap: 2rem;
  align-items: center;
  background: var(--ink);
  color: var(--surface);
}
.integrity-panel .panel-kicker { color: var(--lime); }
.integrity-panel h3 { color: white; }
.integrity-panel p:not(.panel-kicker) { margin: 0.65rem 0 0; color: #bfcac5; font-size: 0.82rem; }
.integrity-panel dl { margin: 0; min-width: 0; }
.integrity-panel dl div { padding: 0.65rem 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.integrity-panel dt { color: #95a79e; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.integrity-panel dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.integrity-panel code { color: var(--lime); font-size: 0.64rem; }
.integrity-panel .button.secondary { border-color: rgba(255, 255, 255, 0.55); color: white; white-space: nowrap; }
.integrity-panel .button.secondary:hover { background: white; color: var(--ink); }

.fallback { margin-top: 1rem; padding: 1.35rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: transparent; }
.fallback h3 { font-size: 1.3rem; }
.fallback p:not(.panel-kicker) { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.8rem; }
.fallback > a { flex: 0 0 auto; color: var(--moss); font-size: 0.82rem; font-weight: 800; }
.noscript-note { padding: 1rem; border-left: 4px solid var(--orange); background: var(--surface); }

.related-section { padding: 7rem 0; border-top: 1px solid var(--line); }
.related-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-grid article { min-height: 290px; padding: 2rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 247, 0.58); }
.related-grid article > span { margin-bottom: 2.5rem; color: var(--orange); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.related-grid h3 { font-size: 1.2rem; }
.related-grid p { color: var(--muted); font-size: 0.86rem; line-height: 1.65; }
.related-grid a { color: var(--moss); font-size: 0.82rem; font-weight: 800; }
.related-grid article > a { margin-top: auto; }
.card-links { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }

.next-section {
  width: 100%;
  padding: 6.5rem max(1rem, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4rem;
  align-items: center;
  background: var(--lime);
}
.next-section h2 { max-width: 760px; }
.next-section > div > p:not(.eyebrow) { max-width: 760px; margin: 1.4rem 0 0; color: #34413b; line-height: 1.7; }
.next-actions { min-width: 250px; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.next-actions > a:not(.button) { color: var(--moss-deep); font-size: 0.82rem; font-weight: 800; }

footer { min-height: 110px; color: var(--muted); font-size: 0.78rem; }
footer a { color: var(--muted); }

@media (max-width: 980px) {
  .site-header nav a:not(.nav-action) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .proof-boundary { max-width: 650px; transform: none; }
  .lifecycle-strip, .section-heading { align-items: flex-start; }
  .lifecycle-strip { flex-direction: column; }
  .proof-workspace { grid-template-columns: 1fr; }
  .source-panel, .knowledge-panel { min-height: auto; }
  .transcript-list, .unit-list { max-height: 560px; }
  .detail-panel, .integrity-panel { grid-column: 1; }
  .integrity-panel { grid-template-columns: 1fr; }
  .integrity-panel .button { justify-self: start; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid article { min-height: 240px; }
  .next-section { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { min-height: 72px; }
  .brand img { width: 36px; height: 36px; }
  .brand small { display: none; }
  .site-header nav { gap: 0; }
  .site-header nav .nav-action { padding: 0.55rem 0.75rem; font-size: 0.74rem; }
  .hero { padding-top: 4.5rem; }
  h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .section-heading { grid-template-columns: 1fr; }
  .lifecycle-strip ol { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 0.6rem; }
  .lifecycle-strip li:not(:last-child)::after { display: none; }
  .unit-list { grid-template-columns: 1fr; }
  .unit-button { min-height: 112px; }
  .detail-grid { grid-template-columns: 1fr; }
  .source-metadata { grid-template-columns: 1fr; }
  .status-summary { grid-template-columns: repeat(2, 1fr); }
  .fallback { align-items: flex-start; flex-direction: column; }
  .next-section { gap: 2rem; }
  footer { padding: 1.5rem 0; flex-wrap: wrap; justify-content: flex-start; }
  footer span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .unit-button { transition: none; }
}
