:root {
  --paper: #f4f2de;
  --paper-deep: #e7e0c7;
  --forest: #173f2a;
  --ink: #33413c;
  --muted: #66706b;
  --line: rgba(23, 63, 42, 0.22);
  --purpose: #2f5d46;
  --message: #4f86a6;
  --people: #d6a23d;
  --delivery: #8a5a3b;
  --reaction: #c66a32;
  --next-action: #8b3f4a;
  --learn: #3f4d73;
  --shadow: 0 22px 60px rgba(32, 47, 38, 0.12);
  --content: min(100% - 2rem, 76rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.36), transparent 30rem),
    linear-gradient(90deg, rgba(23, 63, 42, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 4px 4px, auto;
  font-family: Poppins, Avenir, "Avenir Next", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.14em; }
p, li { max-width: 70ch; }
h1, h2, h3 { color: var(--forest); font-family: Merriweather, Georgia, serif; line-height: 1.14; text-wrap: balance; }
h1 { margin: 0.15em 0 0.35em; font-size: clamp(2.6rem, 6vw, 5.3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); }
h3 { font-size: 1.35rem; }
blockquote { margin: 1.25rem 0; color: var(--forest); font-family: Merriweather, Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
blockquote p { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.96rem; }
th, td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--forest); }

.skip-link { position: fixed; z-index: 100; top: 0.5rem; left: 0.5rem; padding: 0.7rem 1rem; background: var(--forest); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #b04f1f; outline-offset: 4px; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(244, 242, 222, 0.95); backdrop-filter: blur(12px); }
.nav-shell { width: var(--content); min-height: 5rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { width: 2.75rem; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-family: Merriweather, Georgia, serif; font-size: 1.2rem; }
.brand small { margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 0.25rem; align-items: center; }
.desktop-nav a, .mobile-nav nav a { padding: 0.7rem 0.9rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.desktop-nav a[aria-current="page"], .desktop-nav a:hover { background: rgba(23, 63, 42, 0.09); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; font-weight: 800; }
.mobile-nav nav { position: absolute; right: 0; top: 2.6rem; width: 14rem; padding: 0.6rem; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.mobile-nav nav a { display: block; }

main { width: var(--content); margin: 0 auto; overflow-x: clip; }
main > section, main > div, main > nav { margin-block: clamp(3.5rem, 7vw, 7rem); }
.eyebrow, .marker { margin: 0 0 0.55rem; color: var(--forest); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.lede { font-family: Merriweather, Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.tagline { color: var(--forest); font-family: Caveat, "Bradley Hand", cursive; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.25; }
.pros-name { margin: -.15rem 0 1.25rem; color: var(--muted); font-size: 1rem; letter-spacing: .02em; }
.section-heading { max-width: 48rem; margin-bottom: 2.25rem; }
.section-heading h2, .section-heading p { margin-top: 0.35rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: 0.75rem 1.15rem; border: 2px solid var(--forest); border-radius: 0.3rem; color: var(--paper); background: var(--forest); font-weight: 800; text-decoration: none; }
.button.secondary { color: var(--forest); background: transparent; }
.text-link { font-weight: 800; }

.paper-spread { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr); gap: clamp(3rem, 8vw, 7rem); padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); background: rgba(250, 248, 229, 0.72); box-shadow: var(--shadow); }
.paper-spread > * { min-width: 0; }
.paper-spread::after { content: ""; position: absolute; inset: 1.5rem 50% 1.5rem auto; width: 1px; background: linear-gradient(transparent, rgba(23, 63, 42, 0.2), transparent); box-shadow: 8px 0 16px rgba(23, 63, 42, 0.08); }
.hero { min-height: min(42rem, calc(100vh - 7rem)); align-items: center; }
.hero-note, .prototype-note { position: relative; align-self: center; padding: 2rem; border: 1px solid rgba(138, 90, 59, 0.35); background: #f0e6c8; transform: rotate(1deg); box-shadow: 0 12px 28px rgba(44, 52, 42, 0.1); }
.pin { position: absolute; top: 0.65rem; left: 50%; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #8b3f4a; box-shadow: 0 2px 4px rgba(0,0,0,.25); }

.journey-art { margin: 2rem 0; }
.journey-art img { width: 100%; border: 1px solid var(--line); background: var(--paper); }
figcaption { margin-top: 0.55rem; color: var(--muted); font-size: 0.82rem; }
.journey-legend { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.65rem; padding: 0; list-style: none; }
.journey-legend li { padding: 1rem; border-top: 5px solid var(--stage); background: rgba(255,255,255,.2); }
.journey-legend strong { color: var(--forest); }
.journey-legend p { margin: 0.5rem 0 0; font-size: 0.85rem; line-height: 1.45; }
.stage-number { display: inline-grid; width: 1.85rem; height: 1.85rem; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--stage); font-weight: 900; font-size: 0.8rem; }
.stage-1 { --stage: var(--purpose); } .stage-2 { --stage: var(--message); } .stage-3 { --stage: var(--people); } .stage-4 { --stage: var(--delivery); } .stage-5 { --stage: var(--reaction); } .stage-6 { --stage: var(--next-action); } .stage-7 { --stage: var(--learn); }

.paper-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(1.5rem, 5vw, 4rem); border-block: 1px solid var(--line); background: rgba(255,255,255,.15); }
.trail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.trail-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trail-card { display: flex; flex-direction: column; min-height: 21rem; padding: 1.5rem; border-top: 0.4rem solid var(--forest); background: rgba(255,255,255,.18); box-shadow: 0 9px 24px rgba(42, 53, 43, 0.06); }
.trail-card h3 { margin: 0.25rem 0 0.8rem; }
.trail-card h3 a { text-decoration: none; }
.trail-card .text-link { margin-top: auto; padding-top: 1rem; }
.status-line { color: var(--muted); font-size: 0.86rem; }
.future-section { padding: clamp(1.5rem, 5vw, 4rem); border: 1px dashed rgba(23,63,42,.4); }
.future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.future-card { padding: 1rem 1.25rem; background: rgba(255,255,255,.16); }

.takeaway-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0.75rem; background: #d8d1b9; box-shadow: var(--shadow); }
.takeaway-art img { width: 100%; }
.takeaway-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.takeaway-list article { padding: 1.25rem; border-top: 4px solid var(--forest); }
.takeaway-list blockquote { font-size: 1rem; font-weight: 500; }

.page-hero { max-width: 58rem; padding-top: 2rem; }
.trail-hero blockquote { max-width: 44rem; font-size: clamp(1.25rem, 2.6vw, 2rem); }
.breadcrumb { display: flex; gap: 0.55rem; font-size: 0.86rem; }
.prototype-note { transform: none; }
.stage-nav { position: sticky; z-index: 10; top: 5rem; display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0.85rem; overflow-x: clip; border-block: 1px solid var(--line); background: rgba(244, 242, 222, .96); }
.stage-nav > span { flex: 0 0 auto; font-size: 0.75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.stage-rail { display: flex; gap: 0.5rem; margin: 0; padding: 0.3rem; overflow-x: auto; list-style: none; }
.stage-rail li { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; }
.stage-rail a { padding: 0.4rem 0.55rem; border-radius: 999px; font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.stage-rail a:hover { background: rgba(23, 63, 42, 0.08); }

.trail-spread { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; align-items: start; }
.trail-spread::before { content: ""; position: absolute; inset: 0 50% 0 auto; width: 1px; background: linear-gradient(transparent, rgba(23,63,42,.22) 8%, rgba(23,63,42,.22) 92%, transparent); box-shadow: 8px 0 18px rgba(23,63,42,.08); }
.stage-section { position: relative; min-width: 0; padding: 1.5rem 1.5rem 2rem; border-top: 0.45rem solid var(--stage); background: rgba(255,255,255,.16); break-inside: avoid; }
.stage-section:nth-child(4), .stage-section:nth-child(7) { grid-column: 1 / -1; }
.stage-section.stage-emphasis { min-height: 26rem; }
.stage-heading { display: flex; align-items: center; gap: 0.8rem; }
.stage-heading h2 { margin: 0; }
.stage-heading .marker { margin: 0; }
.stage-content > h4:first-child { margin-top: 0.5rem; color: var(--forest); font-family: Caveat, "Bradley Hand", cursive; font-size: 1.55rem; font-weight: 500; }
.stage-content { min-width: 0; }
.stage-content table { display: block; overflow-x: auto; }
.stage-art { margin: 1.75rem 0 0; }
.stage-art img { width: 100%; background: var(--paper); object-fit: contain; }
.relational-takeaway { padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); background: #efe6c9; box-shadow: var(--shadow); text-align: center; }
.relational-takeaway blockquote { max-width: 55rem; margin-inline: auto; font-size: clamp(1.35rem, 2.5vw, 2.15rem); }
.trail-end { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.journal-callout { max-width: 50rem; padding: 2rem; border-left: 6px solid var(--learn); }
.technical-addendum-link { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: rgba(79, 134, 166, 0.08); }
.technical-addendum-link h2 { margin: 0.15rem 0; }
.technical-addendum-link p { margin-bottom: 0; }
.technical-addendum-link .button { flex: 0 0 auto; }
.status-banner { display: grid; grid-template-columns: auto 1fr; gap: 1rem; margin-top: 2rem; padding: 1rem 1.25rem; border-left: 5px solid var(--message); background: rgba(79, 134, 166, 0.09); }
.requirement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.requirement-card { position: relative; min-height: 17rem; padding: 1.5rem 1.5rem 1.5rem 4.5rem; border-top: 0.35rem solid var(--forest); background: rgba(255,255,255,.17); }
.requirement-card > span { position: absolute; top: 1.4rem; left: 1.4rem; display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-weight: 900; }
.requirement-card h3 { margin-top: 0; }
.vendor-foundations { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 3rem; padding: clamp(1.5rem, 5vw, 4rem); border: 1px solid var(--line); background: rgba(255,255,255,.14); }
.vendor-foundations ul { margin: 0; padding: 0; list-style: none; }
.vendor-foundations li { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.vendor-foundations li:first-child { padding-top: 0; }
.vendor-foundations li strong { color: var(--forest); }
.table-shell { overflow-x: auto; border: 1px solid var(--line); background: rgba(255,255,255,.14); }
.table-shell table { margin: 0; min-width: 46rem; }
.table-shell th:first-child { width: 15rem; color: var(--forest); }
.demo-section { padding: clamp(1.5rem, 5vw, 4rem); background: #e8dfc2; }
.boundary-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; padding: clamp(1.5rem, 5vw, 4rem); border-block: 1px solid var(--line); }
.source-basis { max-width: 54rem; }

.site-footer { margin-top: 7rem; padding: 3rem 0; color: #f4f2de; background: var(--forest); }
.site-footer a { color: white; }
.footer-grid { width: var(--content); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: start; }
.footer-grid nav { display: grid; gap: 0.45rem; }
.authority { margin: 0; font-size: 0.82rem; justify-self: end; }

@media (max-width: 1023px) {
  :root { --content: min(100% - 1.25rem, 52rem); }
  .paper-spread { grid-template-columns: 1fr; gap: 2rem; }
  .paper-spread::after, .trail-spread::before { display: none; }
  .journey-legend { grid-template-columns: repeat(2, 1fr); }
  .trail-grid, .trail-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .future-grid { grid-template-columns: 1fr; }
  .trail-spread { grid-template-columns: 1fr; gap: 2rem; }
  .stage-section:nth-child(4), .stage-section:nth-child(7) { grid-column: auto; }
  .stage-section.stage-emphasis { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .authority { grid-column: 1 / -1; justify-self: start; }
  .vendor-foundations, .boundary-panel { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 6rem; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  main > section, main > div, main > nav { margin-block: 3.5rem; }
  .hero { min-height: 0; padding: 2rem 1.25rem; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .journey-legend, .trail-grid, .trail-grid.compact, .takeaway-list, .paper-panel, .footer-grid { grid-template-columns: 1fr; }
  .trail-card { min-height: 0; }
  .takeaway-art { display: block; }
  .takeaway-art img + img { margin-top: 0.75rem; }
  .stage-nav { top: 5rem; display: block; min-width: 0; max-width: 100%; }
  .stage-nav > span { display: block; padding-left: 0.35rem; }
  .stage-rail { width: 100%; min-width: 0; }
  .stage-section { padding-inline: 1rem; }
  .trail-end { align-items: flex-start; flex-direction: column; }
  .technical-addendum-link, .status-banner { display: block; }
  .status-banner strong { display: block; margin-bottom: .6rem; }
  .technical-addendum-link .button { margin-top: 1.5rem; }
  .requirement-grid { grid-template-columns: 1fr; }
  .requirement-card { min-height: 0; }
  .vendor-foundations li { grid-template-columns: 1fr; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  body { background: Canvas; color: CanvasText; }
  .paper-spread, .paper-panel, .trail-card, .stage-section, .relational-takeaway { background: Canvas; }
}

@media print {
  .site-header, .site-footer, .stage-nav, .trail-end, .button-row { display: none !important; }
  body { background: white; color: black; }
  main { width: 100%; }
  .paper-spread, .paper-panel, .stage-section, .relational-takeaway { box-shadow: none; background: white; }
  .trail-spread { display: block; }
  .stage-section { margin-bottom: 1rem; }
}
