/* Project Turtle public showcase and archive. */
:root {
  --showcase-ink: #102019;
  --showcase-muted: #52635a;
  --showcase-paper: #f7f3e8;
  --showcase-white: #fffdf7;
  --showcase-deep: #061a12;
  --showcase-green: #0f684a;
  --showcase-bright: #38c985;
  --showcase-gold: #e9bc45;
  --showcase-line: #d7ddd5;
  --showcase-red: #b94336;
}

.showcase-home,
.archive-page {
  overflow-x: hidden;
  font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.showcase-home h1,
.showcase-home h2,
.showcase-home h3,
.archive-page h1,
.archive-page h2 {
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.showcase-home .final-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.showcase-toc {
  position: sticky;
  top: 68px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 54px;
  padding: 7px max(22px, calc((100vw - 1340px) / 2));
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(6, 26, 18, 0.96);
  color: #d5e5db;
  box-shadow: 0 14px 30px rgba(2, 20, 13, 0.2);
  scrollbar-width: none;
}

.showcase-toc::-webkit-scrollbar { display: none; }
.showcase-toc strong {
  flex: 0 0 auto;
  margin-right: 10px;
  color: var(--showcase-gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.showcase-toc a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 4px;
  color: #c6d7cd;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.showcase-toc a:hover,
.showcase-toc a:focus-visible,
.showcase-toc a[aria-current="location"] {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.showcase-home .lock-hero {
  min-height: 620px;
  padding: 64px max(28px, calc((100vw - 1340px) / 2));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 130px;
}

.showcase-home .lock-hero::after {
  background:
    linear-gradient(90deg, rgba(4, 20, 14, 0.98), rgba(4, 20, 14, 0.84) 46%, rgba(4, 20, 14, 0.56)),
    linear-gradient(0deg, rgba(4, 15, 12, 0.86), transparent 68%);
}

.showcase-home .lock-hero h1 {
  max-width: 650px;
  font-size: 5.7rem;
  line-height: 0.94;
}

.showcase-home .c4-board {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.showcase-home .c4-board__head {
  padding: 0 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.19);
}

.showcase-home .c4-node {
  min-height: 166px;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.showcase-band {
  scroll-margin-top: 138px;
  padding: 92px max(28px, calc((100vw - 1340px) / 2));
}

.showcase-section-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.showcase-section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 64px;
  max-width: none;
  align-items: end;
}

.showcase-section-heading h2 {
  margin: 0;
  color: inherit;
  font-size: 3.25rem;
  line-height: 1.04;
}

.showcase-section-heading > p,
.showcase-section-heading--split > p {
  margin: 0;
  color: inherit;
  opacity: 0.74;
  font-size: 1.02rem;
  line-height: 1.7;
}

.showcase-purpose,
.showcase-method,
.showcase-archive {
  background: var(--showcase-paper);
  color: var(--showcase-ink);
}

.showcase-purpose .eyebrow,
.showcase-method .eyebrow,
.showcase-archive .eyebrow { color: var(--showcase-green); }

.purpose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 78px;
  align-items: start;
}

.purpose-copy {
  max-width: 760px;
  color: var(--showcase-muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.purpose-lead {
  color: var(--showcase-ink);
  font-size: 1.35rem;
  line-height: 1.55;
}

.public-standard { margin: 0; border-top: 3px solid var(--showcase-green); }
.public-standard div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--showcase-line);
}
.public-standard dt { color: var(--showcase-green); font-weight: 850; }
.public-standard dd { margin: 0; color: var(--showcase-ink); font-weight: 750; }

.showcase-record,
.showcase-evidence {
  background: var(--showcase-deep);
  color: #eff7f1;
}

.record-tally {
  padding-left: 24px;
  border-left: 3px solid var(--showcase-gold);
}
.record-tally strong { display: block; color: #fff8e3; font-size: 2.7rem; }
.record-tally span { display: block; color: #7ce2aa; font-weight: 850; }
.record-tally small { display: block; margin-top: 8px; color: #a9bdb2; line-height: 1.5; }

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

.result-card {
  min-height: 205px;
  padding: 24px;
  border: 1px solid rgba(108, 215, 158, 0.23);
  border-radius: 6px;
  background: #0d2d20;
  color: #eaf4ed;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.result-card:hover,
.result-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--showcase-gold);
  background: #123a29;
}
.result-card--latest { background: #174832; border-color: rgba(233, 188, 69, 0.55); }
.result-card span { color: #6ce0a0; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.result-card strong { display: block; margin: 30px 0 10px; color: #fff8e6; font-size: 1.55rem; }
.result-card p { margin: 0; color: #b7cbc0; line-height: 1.55; }

.failure-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.failure-strip > * { padding: 24px; border-right: 1px solid rgba(255, 255, 255, 0.13); }
.failure-strip > *:last-child { border-right: 0; }
.failure-strip span { color: #efa29a; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.failure-strip strong { display: block; margin: 9px 0; color: #fff8e8; }
.failure-strip p { margin: 0; color: #aebfb6; font-size: 0.88rem; }
.failure-strip > a { display: flex; align-items: center; color: var(--showcase-gold); font-weight: 850; text-decoration: none; }

.method-runway {
  margin: 0;
  padding: 0;
  border-top: 1px solid #bcc7bf;
  list-style: none;
}
.method-runway li {
  display: grid;
  grid-template-columns: 72px 180px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 21px 4px;
  border-bottom: 1px solid #cdd4ce;
}
.method-runway li > span { color: var(--showcase-green); font-family: ui-monospace, Consolas, monospace; font-weight: 900; }
.method-runway strong { color: var(--showcase-ink); font-size: 1.14rem; }
.method-runway p { margin: 4px 0 0; color: var(--showcase-muted); }
.method-link,
.archive-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 28px;
  color: var(--showcase-green);
  font-weight: 900;
  text-decoration: none;
}

.showcase-evidence .validation-grid { margin-bottom: 18px; }
.showcase-evidence .validation-grid article,
.showcase-evidence .team-panel,
.showcase-evidence .home-analysis-cta { border-radius: 6px; }
.showcase-evidence .team-split { margin-top: 18px; }

.model-boundary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.model-boundary > div { min-height: 188px; padding: 24px; border-right: 1px solid rgba(255, 255, 255, 0.13); }
.model-boundary > div:last-child { border-right: 0; }
.model-boundary span { color: #6ce0a0; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.model-boundary strong { display: block; margin: 22px 0 8px; color: #fff8e6; font-size: 1.8rem; }
.model-boundary p { margin: 0; color: #aebfb6; line-height: 1.55; }

.home-ledger {
  overflow-x: auto;
  border-top: 3px solid var(--showcase-green);
  border-bottom: 1px solid #c7d0c9;
}
.home-ledger__head,
.home-ledger > a {
  display: grid;
  grid-template-columns: 80px 1.25fr 1fr 70px 110px;
  gap: 18px;
  align-items: center;
  min-width: 900px;
  padding: 16px 12px;
}
.home-ledger__head { color: #68776f; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.home-ledger > a { border-top: 1px solid #d5dbd6; color: var(--showcase-ink); text-decoration: none; }
.home-ledger > a:hover,
.home-ledger > a:focus-visible { background: #edf4ed; }
.home-ledger time { color: #627168; font-family: ui-monospace, Consolas, monospace; }
.home-ledger b { font-size: 1.18rem; }
.record-status { display: inline-flex; width: max-content; padding: 5px 8px; border-radius: 999px; font-style: normal; font-size: 0.72rem; font-weight: 900; }
.record-status--hit { background: #d8f0df; color: #0b6847; }
.record-status--miss { background: #f7ddd8; color: #98382e; }

.ai-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.75fr);
  gap: 76px;
  align-items: center;
  background: #d9efe0;
  color: var(--showcase-ink);
}
.ai-showcase h2 { max-width: 780px; margin: 0; font-size: 3.15rem; line-height: 1.05; }
.ai-showcase p:not(.eyebrow) { max-width: 720px; color: #40564a; line-height: 1.7; }
.ai-showcase__links { border-top: 3px solid var(--showcase-green); }
.ai-showcase__links a { display: flex; justify-content: space-between; gap: 24px; padding: 17px 3px; border-bottom: 1px solid #aebfb4; color: var(--showcase-ink); font-weight: 850; text-decoration: none; }
.ai-showcase__links a:hover,
.ai-showcase__links a:focus-visible { color: var(--showcase-green); }
.ai-showcase__links span { color: #648074; font-size: 0.72rem; }

/* Archive readability repairs. */
.archive-page { background: var(--showcase-paper); color: var(--showcase-ink); }
.archive-page main { width: min(1480px, calc(100% - 44px)); margin: 0 auto; padding: 0 0 88px; }
.archive-page .breadcrumbs { color: #d4e5da; background: var(--showcase-deep); }
.archive-page .archive-note {
  margin: 32px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--showcase-gold);
  border-radius: 4px;
  background: #16392b;
  color: #e8f1eb;
}
.archive-page .archive-note a { color: #ffe29a; }
.archive-page .page-head { max-width: 1100px; padding-bottom: 34px; }
.archive-page .page-head h1 { max-width: 900px; color: var(--showcase-ink); font-size: 4.5rem; line-height: 1; }
.archive-page .page-head .lede { max-width: 900px; color: var(--showcase-muted); font-size: 1.05rem; line-height: 1.7; }
.archive-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; border-top: 2px solid var(--showcase-green); border-bottom: 1px solid #c5cec7; }
.archive-summary div { min-height: 120px; padding: 18px; border-right: 1px solid #d0d7d2; }
.archive-summary div:last-child { border-right: 0; }
.archive-summary strong { display: block; color: var(--showcase-green); font-size: 2rem; }
.archive-summary span { display: block; margin-top: 8px; color: #53645a; }
.archive-page .table-section { margin: 0; padding: 0; background: transparent; }
.archive-page .responsive-table { border: 1px solid #bdc9c0; border-radius: 6px; background: var(--showcase-white); box-shadow: 0 24px 60px rgba(30, 51, 40, 0.09); }
.archive-page table { min-width: 1240px; color: var(--showcase-ink); }
.archive-page thead { background: #0b2a1e; }
.archive-page th { position: sticky; top: 0; z-index: 1; border-color: #2d4c3f; background: #0b2a1e; color: #d8e7de; }
.archive-page td { border-color: #d6ddd8; background: #fffdf7; color: #263a30; line-height: 1.5; }
.archive-page tbody tr:nth-child(even) td { background: #f1f5f0; }
.archive-page tbody tr:hover td,
.archive-page tbody tr:focus td { background: #e1f1e6; }
.archive-page .ledger-row-link { color: #075f43; font-weight: 850; text-decoration-color: #8eb9a6; }
.archive-page .exact-hit-row td { background: #e7f5e9; }
.archive-page .footer { background: var(--showcase-deep); color: #bdd0c4; }

@media (max-width: 1050px) {
  .showcase-section-heading--split,
  .purpose-layout,
  .ai-showcase { grid-template-columns: 1fr; gap: 30px; }
  .hit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .failure-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .failure-strip > *:nth-child(2) { border-right: 0; }
  .failure-strip > *:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
  .model-boundary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-boundary > div:nth-child(2) { border-right: 0; }
  .model-boundary > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
  .archive-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-summary div:nth-child(2) { border-right: 0; }
  .archive-summary div:nth-child(-n+2) { border-bottom: 1px solid #d0d7d2; }
}

@media (max-width: 760px) {
  .showcase-toc { top: 60px; padding-inline: 14px; }
  .showcase-toc strong { display: none; }
  .showcase-home .lock-hero { min-height: auto; padding: 46px 20px 58px; }
  .showcase-home .lock-hero h1 { font-size: 3.5rem; }
  .showcase-band { padding: 66px 20px; }
  .showcase-section-heading h2,
  .ai-showcase h2 { font-size: 2.45rem; }
  .purpose-layout { grid-template-columns: 1fr; }
  .public-standard div { grid-template-columns: 1fr; gap: 5px; }
  .hit-grid,
  .failure-strip,
  .model-boundary,
  .archive-summary { grid-template-columns: 1fr; }
  .failure-strip > *,
  .failure-strip > *:nth-child(2),
  .model-boundary > div,
  .model-boundary > div:nth-child(2),
  .archive-summary div,
  .archive-summary div:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
  .archive-summary div { border-bottom-color: #d0d7d2; }
  .failure-strip > *:last-child,
  .model-boundary > div:last-child,
  .archive-summary div:last-child { border-bottom: 0; }
  .method-runway li { grid-template-columns: 48px 1fr; }
  .method-runway li div { grid-column: 2; }
  .archive-page main { width: min(100% - 28px, 1480px); }
  .archive-page .page-head h1 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .result-card { transition: none; }
}

.result-card--miss {
  border-color: #d98b80;
  background: linear-gradient(145deg, #fff3ef, #f7e4df);
}
.result-card--miss span { color: #9d3e34; }
.result-card--miss:hover,
.result-card--miss:focus-visible { border-color: #b54c41; box-shadow: 0 22px 48px rgba(111, 45, 38, 0.15); }
