:root {
  --ink: #14252b;
  --navy: #16323c;
  --navy-deep: #0e252e;
  --paper: #f5f0e6;
  --paper-deep: #ece3d3;
  --white: #fffdf8;
  --copper: #b7633b;
  --copper-dark: #8f4327;
  --sage: #667d6a;
  --sage-soft: #dfe7dd;
  --gold: #d5a84c;
  --muted: #657178;
  --line: #d8d3c7;
  --warning: #7d241f;
  --warning-deep: #601814;
  --shadow: 0 22px 60px rgba(20, 37, 43, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal-page { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif; font-weight: 400; }
body.portal-page a { color: inherit; }

.prototype-banner {
  background: linear-gradient(135deg, var(--warning-deep), var(--warning));
  color: #fff;
  padding: 14px max(22px, calc((100vw - 1184px) / 2));
  position: relative;
  z-index: 100;
}
.prototype-banner strong {
  display: block;
  font-size: 12px;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}
.prototype-banner span {
  color: #f5d9d5;
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
  max-width: 1184px;
}

.portal-context {
  align-items: center;
  background: rgba(245, 240, 230, .96);
  border-bottom: 1px solid rgba(20, 37, 43, .12);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px max(22px, calc((100vw - 1184px) / 2));
}
.portal-context .portal-brand {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  line-height: 1.3;
  text-decoration: none;
}
.portal-context .portal-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Georgia, serif;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.portal-context .portal-home-link {
  border-bottom: 1px solid currentColor;
  color: var(--copper-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.portal-hero {
  background: radial-gradient(circle at 86% 12%, rgba(213,168,76,.18), transparent 25%), linear-gradient(135deg,var(--navy-deep),var(--navy) 65%,#254b51);
  color: var(--white);
  padding: 76px max(24px, calc((100vw - 1184px) / 2)) 68px;
}
.portal-hero .eyebrow,
.portal-section .eyebrow {
  color: #cb805a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .17em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.portal-hero h1 {
  font-family: inherit;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0 0 28px;
  max-width: 1080px;
}
.portal-hero .lede {
  color: #d4dddb;
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
  max-width: 800px;
}
.portal-hero .project-purpose {
  border-left: 3px solid var(--gold);
  color: #f4e5c7;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
  margin: 38px 0 0;
  max-width: 900px;
  padding-left: 22px;
}
.portal-hero .hero-boundary {
  color: #bdcbc8;
  font-size: 14px;
  line-height: 1.7;
  margin: 24px 0 0;
  max-width: 850px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions a {
  background: var(--copper);
  border: 1px solid var(--copper);
  color: #fff !important;
  font-size: 12px;
  font-weight: 650;
  padding: 12px 16px;
  text-decoration: none;
}
.hero-actions a.secondary { background: transparent; border-color: #8ca09c; color: #eef4f2 !important; }

.landing-boundary {
  display: grid;
  gap: 42px 62px;
  grid-template-columns: .7fr 1.3fr;
  margin: 0 auto;
  max-width: 1240px;
  padding: 88px 28px;
}
.landing-boundary .eyebrow,
.project-overview .eyebrow,
.begin-section .eyebrow {
  color: var(--copper-dark);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .17em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.boundary-heading h2 {
  font-family: inherit;
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 450;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
}
.boundary-copy { border-left: 4px solid var(--warning); padding-left: 30px; }
.boundary-copy p { color: #3f4d52; font-size: 14px; line-height: 1.75; margin: 0 0 18px; }
.boundary-copy p:last-child { margin-bottom: 0; }
.boundary-copy .control-line { color: var(--warning-deep); }
.landing-rights {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px 28px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 2fr;
  padding: 28px 30px;
}
.landing-rights p { color: #596268; font-size: 11px; line-height: 1.65; margin: 0; }
.landing-rights strong { color: var(--navy); }

.project-overview { background: var(--paper-deep); }
.overview-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-card {
  background: rgba(255,253,248,.9);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sage);
  padding: 30px;
}
.overview-card:nth-child(2) { border-top-color: var(--gold); }
.overview-card:nth-child(3) { border-top-color: var(--copper); }
.overview-card:nth-child(4) { border-top-color: var(--navy); }
.overview-card > span { color: var(--copper-dark); font-family: "Courier New", monospace; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.overview-card h3 { color: var(--navy); font-family: inherit; font-size: 24px; font-weight: 500; line-height: 1.2; margin: 22px 0 12px; }
.overview-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 10px; }
.overview-card p:last-child { margin-bottom: 0; }
.overview-card.scenario-card { background: var(--navy); border-color: var(--navy); grid-column: 1 / -1; }
.overview-card.scenario-card > span { color: #e8bd67; }
.overview-card.scenario-card h3 { color: #fff; }
.overview-card.scenario-card p { color: #c8d4d1; max-width: 930px; }

.definition-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.definition-panel { border: 1px solid var(--line); padding: 30px; }
.definition-panel.helps { background: #edf3ea; border-top: 5px solid var(--sage); }
.definition-panel.limits { background: #f7eade; border-top: 5px solid var(--copper); }
.definition-panel h3 { font-family: inherit; font-size: 24px; font-weight: 500; margin: 0 0 18px; }
.definition-panel ul { color: #46545a; font-size: 13px; line-height: 1.65; margin: 0; padding-left: 20px; }
.definition-panel li + li { margin-top: 8px; }
.evidence-promise { align-items: center; background: var(--white); border: 1px solid var(--line); display: grid; gap: 22px; grid-template-columns: .55fr 1.45fr; margin-top: 18px; padding: 24px 28px; }
.evidence-promise strong { color: var(--copper-dark); font-family: inherit; font-size: 20px; font-weight: 550; }
.evidence-promise p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }

.begin-section {
  align-items: center;
  background: var(--navy);
  color: #fff;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.15fr 1fr auto;
  margin: 0 auto;
  max-width: 1184px;
  padding: 42px;
}
.begin-section .eyebrow { color: #e8bd67; }
.begin-section h2 { font-family: inherit; font-size: clamp(29px, 4vw, 40px); font-weight: 450; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
.begin-section > p { color: #c8d4d1; font-size: 13px; line-height: 1.7; margin: 0; }
.begin-section > a { border: 1px solid #8ca09c; color: #fff !important; font-size: 12px; font-weight: 650; padding: 12px 16px; text-decoration: none; white-space: nowrap; }

.portal-section {
  margin: 0 auto;
  max-width: 1240px;
  padding: 88px 28px;
}
.portal-section h2 {
  font-family: inherit;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 450;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0;
}
.section-intro {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.2fr .8fr;
  margin-bottom: 42px;
}
.section-intro > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.path-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.path-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--copper);
  box-shadow: 0 12px 32px rgba(20,37,43,.07);
  display: flex;
  flex-direction: column;
  min-height: 335px;
  padding: 32px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.path-card:hover,
.path-card:focus-visible { box-shadow: var(--shadow); transform: translateY(-3px); }
.path-card:nth-child(2) { border-top-color: var(--gold); }
.path-card:nth-child(3) { border-top-color: #2f6873; }
.path-card:nth-child(4) { border-top-color: var(--sage); }
.path-card:nth-child(5) { border-top-color: var(--navy); }
.path-card.process-path { grid-column: 1 / -1; min-height: 275px; }
.path-number {
  color: var(--copper-dark);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.path-card h3 {
  font-family: inherit;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.12;
  margin: 32px 0 13px;
}
.path-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.path-card ul { color: #3d4d53; font-size: 12px; line-height: 1.55; margin: 18px 0 26px; padding-left: 18px; }
.path-card .path-action {
  align-items: center;
  color: var(--copper-dark);
  display: flex;
  font-size: 12px;
  font-weight: 650;
  gap: 8px;
  margin-top: auto;
}
.path-card .path-action::after { content: "→"; font-size: 17px; }

.source-path-card,
.resource-path-card {
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--navy-deep);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: .55fr 1.65fr .7fr;
  margin-top: 18px;
  padding: 28px 32px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.source-path-card:hover,
.source-path-card:focus-visible,
.resource-path-card:hover,
.resource-path-card:focus-visible { box-shadow: var(--shadow); transform: translateY(-3px); }
.source-path-card .path-number,
.resource-path-card .path-number { color: #e8bd67; }
.source-path-copy { display: grid; gap: 7px; }
.source-path-copy strong { color: #fff; font-family: inherit; font-size: 22px; font-weight: 500; }
.source-path-copy > span { color: #c8d4d1; font-size: 13px; line-height: 1.6; }
.source-path-card .path-action,
.resource-path-card .path-action { color: #f4e5c7; font-size: 12px; font-weight: 650; justify-self: end; }
.source-path-card .path-action::after,
.resource-path-card .path-action::after { content: " →"; font-size: 17px; }
.resource-path-card { background: #405b52; border-color: #314940; }
.resource-boundary { background: #f7eade; border-left: 4px solid var(--copper); color: #665b44; font-size: 12px; line-height: 1.65; margin: 0; padding: 16px 20px; }

.shared-section { background: var(--paper-deep); }
.shared-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
}
.shared-grid article { background: rgba(255,253,248,.82); min-height: 190px; padding: 26px; }
.shared-grid span { color: var(--copper-dark); font-family: "Courier New", monospace; font-size: 9px; font-weight: 650; }
.shared-grid h3 { font-family: inherit; font-size: 21px; font-weight: 500; margin: 34px 0 10px; }
.shared-grid p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }

.route-note {
  background: var(--navy);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  padding: 30px;
}
.route-note strong { color: #f4e5c7; display: block; font-family: inherit; font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.route-note p { color: #bdcbc8; font-size: 12px; line-height: 1.6; margin: 0; }

.portal-disclaimer {
  background: #f7eade;
  border-left: 5px solid var(--copper);
  margin: 0 auto 48px;
  max-width: 1184px;
  padding: 24px 28px;
}
.portal-disclaimer strong { color: var(--copper-dark); display: block; font-size: 12px; letter-spacing: .05em; margin-bottom: 7px; text-transform: uppercase; }
.portal-disclaimer p { color: #554d48; font-size: 12px; line-height: 1.7; margin: 0; }

.portal-legal-footer {
  background: var(--navy-deep);
  color: #aab9b7;
  display: grid;
  font-size: 10px;
  gap: 36px;
  grid-template-columns: 1.2fr .8fr;
  line-height: 1.65;
  padding: 34px max(22px, calc((100vw - 1184px) / 2));
}
.portal-legal-footer p { margin: 0; }
.portal-legal-footer strong { color: #e2e9e7; }
.portal-legal-footer .copyright,
.portal-legal-footer p:last-child { justify-self: end; text-align: right; }
.portal-print-footer { display: none; }

@media (max-width: 800px) {
  .prototype-banner { padding: 13px 18px; }
  .portal-context { align-items: flex-start; padding: 11px 18px; }
  .portal-context .portal-brand { font-size: 12px; }
  .portal-hero { padding: 74px 22px 70px; }
  .portal-hero .lede { font-size: 17px; }
  .portal-section { padding: 68px 20px; }
  .landing-boundary { grid-template-columns: 1fr; padding: 68px 20px; }
  .landing-rights { grid-column: auto; grid-template-columns: 1fr; }
  .section-intro, .route-note, .source-path-card, .resource-path-card, .definition-grid, .evidence-promise, .begin-section { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card.scenario-card { grid-column: auto; }
  .begin-section { margin: 0 20px; padding: 32px 28px; }
  .begin-section > a { justify-self: start; }
  .source-path-card .path-action, .resource-path-card .path-action { justify-self: start; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card.process-path { grid-column: auto; }
  .path-card { min-height: 300px; padding: 27px; }
  .shared-grid { grid-template-columns: 1fr 1fr; }
  .portal-legal-footer { grid-template-columns: 1fr; }
  .portal-legal-footer .copyright,
  .portal-legal-footer p:last-child { justify-self: start; text-align: left; }
}

@media (max-width: 520px) {
  .prototype-banner strong { font-size: 11px; }
  .prototype-banner span { font-size: 10px; }
  .portal-context { display: grid; }
  .portal-context .portal-home-link { margin-left: 44px; }
  .shared-grid { grid-template-columns: 1fr; }
}

@media print {
  .prototype-banner { background: #fff !important; border: 2px solid #7d241f; color: #601814; padding: 8px 10px; }
  .prototype-banner span { color: #601814; }
  .portal-context, .portal-home-link { display: none !important; }
  .portal-hero { background: #fff !important; color: #000; padding: 28px 0; }
  .portal-hero .lede, .portal-hero .project-purpose, .portal-hero .hero-boundary { color: #222; }
  .hero-actions { display: none; }
  .landing-boundary, .portal-section { padding-left: 0; padding-right: 0; }
  .landing-rights, .overview-card, .definition-panel, .evidence-promise, .begin-section { break-inside: avoid; }
  .begin-section { background: #fff; border: 1px solid #777; color: #000; margin: 0; }
  .begin-section > p { color: #222; }
  .begin-section > a { display: none; }
  .path-card { break-inside: avoid; box-shadow: none; }
  .portal-legal-footer { background: #fff; color: #222; padding: 20px 0 44px; }
  .portal-legal-footer strong { color: #000; }
  .portal-print-footer {
    background: #fff;
    border-top: 1px solid #777;
    bottom: 0;
    color: #222;
    display: block;
    font-size: 6.5pt;
    left: 0;
    line-height: 1.3;
    padding: 4px 0;
    position: fixed;
    right: 0;
    text-align: center;
  }
}
