:root {
  --registry-navy: #081c2d;
  --civic-blue: #19485f;
  --field-gray: #dfe8e9;
  --paper-white: #f7fafa;
  --signal-copper: #ce6d3f;
  --ink: #132731;
  --muted: #64747a;
  --hairline: rgba(19, 39, 49, 0.18);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-pad: clamp(1.25rem, 5vw, 5rem);
  --max-width: 90rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper-white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 28, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 28, 45, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  background: var(--paper-white);
  color: var(--registry-navy);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--signal-copper);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  min-height: 6.5rem;
  margin: 0 auto;
  padding: 1.25rem var(--page-pad);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.65rem;
  color: var(--registry-navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.brand-mark circle {
  stroke: var(--signal-copper);
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand small,
.eyebrow,
.section-kicker,
.card-label,
.trace-label,
.trace-stages,
.brief-heading,
.brief-card dt,
.register-key,
.footer-meta {
  font-family: var(--utility);
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 0.15rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.nav-links a {
  position: relative;
  color: var(--ink);
  font-family: var(--utility);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--signal-copper);
  content: "";
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

main,
.site-footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--page-pad);
}

.not-found > div {
  max-width: 48rem;
  padding-top: 2rem;
  border-top: 4px solid var(--signal-copper);
}

.not-found h1 {
  max-width: none;
  font-size: clamp(4rem, 12vw, 9rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 0.7fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  min-height: min(46rem, calc(100svh - 6.5rem));
  padding: clamp(5rem, 10vw, 9rem) var(--page-pad) clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 2rem;
  color: var(--civic-blue);
  font-weight: 700;
}

.eyebrow span {
  width: 2.25rem;
  height: 2px;
  background: var(--signal-copper);
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  line-height: 0.91;
}

h1::first-line {
  color: var(--registry-navy);
}

.hero-intro {
  max-width: 47rem;
  margin-bottom: 2.2rem;
  color: #38515d;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  color: var(--registry-navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link svg {
  width: 1rem;
  fill: var(--signal-copper);
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(0.3rem);
}

.brief-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-top: 4px solid var(--signal-copper);
  background: var(--registry-navy);
  box-shadow: 1.25rem 1.25rem 0 var(--field-gray);
  color: var(--paper-white);
}

.brief-card::after {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0.03), 0 0 0 4rem rgba(255, 255, 255, 0.02);
  content: "";
}

.brief-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: #b8cbd2;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
}

.status-dot::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--signal-copper);
  box-shadow: 0 0 0 4px rgba(206, 109, 63, 0.18);
  content: "";
}

.brief-card dl {
  margin: 0;
}

.brief-card dl div {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brief-card dt {
  color: #93abb4;
}

.brief-card dd {
  margin: 0;
  font-size: 0.9rem;
}

.brief-note {
  position: relative;
  z-index: 1;
  max-width: 26ch;
  margin: 1.25rem 0 0;
  color: #c8d6da;
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.45;
}

.evidence-trace {
  padding: 1.4rem var(--page-pad) 2rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(223, 232, 233, 0.38);
}

.trace-label,
.trace-stages {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.trace-label span:first-child {
  color: var(--civic-blue);
  font-weight: 700;
}

.trace-track {
  position: relative;
  height: 2px;
  margin: 1.6rem 0 0.9rem;
  background: #b5c4c8;
}

.trace-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--signal-copper);
  animation: trace-in 1.6s 500ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.trace-node {
  position: absolute;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  transform: translate(-50%, -50%);
  border: 2px solid var(--paper-white);
  border-radius: 50%;
  background: var(--civic-blue);
  box-shadow: 0 0 0 1px var(--civic-blue);
}

.node-one { left: 0; }
.node-two { left: 50%; }
.node-three { left: 100%; background: var(--signal-copper); box-shadow: 0 0 0 1px var(--signal-copper); }

.trace-stages span:nth-child(2) { text-align: center; }
.trace-stages span:last-child { text-align: right; }

@keyframes trace-in {
  to { transform: scaleX(1); }
}

.section-shell {
  padding: clamp(6rem, 10vw, 10rem) var(--page-pad);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(20rem, 1.1fr) minmax(18rem, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-kicker {
  margin-top: 0.65rem;
  color: var(--signal-copper);
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  color: var(--registry-navy);
  font-size: clamp(2.8rem, 5.8vw, 5.7rem);
  line-height: 0.98;
}

.section-heading > p:last-child,
.method-intro > p:last-child {
  color: #4d626b;
  font-size: 1.05rem;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.scope-card {
  min-height: 28rem;
  padding: 2.25rem clamp(1.5rem, 3vw, 3rem) 3rem;
  border-right: 1px solid var(--hairline);
  transition: background-color 220ms ease, transform 220ms ease;
}

.scope-card:last-child {
  border-right: 0;
}

.scope-card:hover {
  transform: translateY(-0.45rem);
  background: #edf3f3;
}

.card-symbol {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: 4rem;
  border: 1px solid var(--hairline);
  color: var(--civic-blue);
}

.card-symbol svg {
  width: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.4;
}

.card-label {
  margin-bottom: 0.8rem;
  color: var(--signal-copper);
  font-weight: 700;
}

.scope-card h3 {
  max-width: 14ch;
  margin-bottom: 1.2rem;
  color: var(--registry-navy);
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.1;
}

.scope-card > p:last-child {
  max-width: 31rem;
  color: #4f646d;
}

.method {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(4rem, 9vw, 9rem);
  padding: clamp(6rem, 10vw, 10rem) var(--page-pad);
  background: var(--registry-navy);
  color: var(--paper-white);
}

.method h2 {
  max-width: 10ch;
  margin-bottom: 2rem;
  color: var(--paper-white);
}

.method-intro .section-kicker {
  color: #ed9368;
}

.method-intro > p:last-child {
  max-width: 40rem;
  color: #b9cbd1;
}

.method-register {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.register-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(15rem, 1.2fr);
  gap: 2rem;
  align-items: start;
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.register-key {
  color: #8da8b2;
}

.register-row strong {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
}

.principles {
  background: var(--field-gray);
}

.principles .section-heading {
  grid-template-columns: minmax(10rem, 0.55fr) minmax(20rem, 1.8fr);
}

.principles-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(4rem, 10vw, 10rem);
}

blockquote {
  position: relative;
  align-self: start;
  margin: 0;
  padding: 1.75rem 0 0 2rem;
  border-top: 3px solid var(--signal-copper);
}

blockquote::before {
  position: absolute;
  top: 0.75rem;
  left: 0;
  color: var(--signal-copper);
  content: "“";
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
}

blockquote p {
  margin: 0;
  color: var(--registry-navy);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 3.25rem);
  line-height: 1.12;
}

.principle-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(19, 39, 49, 0.28);
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 0.5fr) minmax(14rem, 1fr);
  gap: 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(19, 39, 49, 0.28);
}

.principle-list span {
  color: var(--registry-navy);
  font-family: var(--utility);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.principle-list p {
  margin: 0;
  color: #435a64;
}

.closing-statement {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding: clamp(7rem, 12vw, 12rem) var(--page-pad);
}

.closing-statement p:first-child {
  margin: 0;
  color: var(--registry-navy);
  font-family: var(--display);
  font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.closing-statement p:last-child {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: #4c626b;
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  align-items: end;
  padding: 2.25rem var(--page-pad);
  border-top: 1px solid var(--hairline);
  background: var(--registry-navy);
  color: var(--paper-white);
}

.footer-brand {
  display: grid;
  gap: 0.2rem;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-brand span {
  color: #99b0b8;
  font-size: 0.85rem;
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
  color: #99b0b8;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }

  .brief-card {
    max-width: 36rem;
  }

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

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .method,
  .principles-layout,
  .closing-statement {
    grid-template-columns: 1fr;
  }

  .method {
    gap: 4rem;
  }

  .closing-statement p:last-child {
    max-width: 34rem;
  }
}

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

  .brand small {
    display: none;
  }

  .nav-links {
    gap: 0.85rem;
    padding-top: 0.5rem;
  }

  .nav-links a {
    font-size: 0.65rem;
  }

  .hero {
    gap: 3.5rem;
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

  .brief-card {
    margin-right: 1rem;
  }

  .trace-label span:last-child {
    display: none;
  }

  .trace-stages {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .section-heading,
  .principles .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading > p:last-child {
    grid-column: auto;
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .scope-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .scope-card:last-child {
    border-bottom: 0;
  }

  .card-symbol {
    margin-bottom: 2.5rem;
  }

  .register-row,
  .principle-list li {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .site-footer,
  .footer-meta {
    align-items: start;
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 5.5rem;
  }

  .brand-mark {
    width: 2.1rem;
  }

  .brand strong {
    font-size: 1rem;
  }

  .nav-links a:nth-child(2) {
    display: none;
  }

  .brief-card dl div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
