:root {
  --paper: #f2eadc;
  --paper-deep: #e7dac5;
  --cream: #fbf6ec;
  --ink: #28221d;
  --muted: #655d53;
  --rust: #ad4b2b;
  --rust-dark: #84351e;
  --ivy: #29453a;
  --ivy-light: #3e5f50;
  --gold: #d1a94f;
  --line: rgba(40, 34, 29, 0.16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --shadow: 0 24px 70px rgba(55, 42, 29, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--cream);
  background: var(--ivy);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header.scrolled {
  border-color: rgba(40, 34, 29, 0.1);
  background: rgba(242, 234, 220, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  flex: 0 0 auto;
  fill: var(--rust);
  stroke: var(--rust-dark);
  stroke-linecap: square;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-menu nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-menu nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.site-menu nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--rust);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.menu-button {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--rust);
  border-radius: 2px;
  color: var(--cream);
  background: var(--rust);
  box-shadow: 4px 4px 0 var(--rust-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--rust-dark);
  box-shadow: 2px 2px 0 var(--rust-dark);
  transform: translate(2px, 2px);
}

.button:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.button-small {
  min-height: 40px;
  padding-inline: 18px;
}

.button-gold {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
  box-shadow: 4px 4px 0 #856927;
}

.button-gold:hover,
.button-gold:focus-visible {
  color: var(--cream);
  background: var(--rust);
  box-shadow: 2px 2px 0 var(--rust-dark);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 148px 0 104px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 0;
  right: -12%;
  width: 56%;
  height: 100%;
  background: var(--paper-deep);
  content: "";
  clip-path: polygon(21% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  padding-top: 28px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 0.94;
}

.hero h1 em {
  position: relative;
  color: var(--rust);
  font-style: italic;
  font-weight: 400;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 6px;
  background: var(--gold);
  content: "";
  opacity: 0.7;
  transform: rotate(-1.5deg);
  z-index: -1;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ivy);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.text-link:hover svg,
.text-link:focus-visible svg {
  transform: translateX(5px);
}

.hero-art {
  position: relative;
  min-height: 555px;
}

.hero-art > svg {
  position: absolute;
  z-index: 2;
  right: -24px;
  bottom: -12px;
  width: min(650px, 112%);
  overflow: visible;
}

.sun {
  position: absolute;
  z-index: 1;
  top: 58px;
  right: 14%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.map-line {
  fill: none;
  stroke: rgba(40, 34, 29, 0.18);
  stroke-dasharray: 5 10;
  stroke-width: 2;
}

.map-line.faint {
  opacity: 0.55;
}

.ground { fill: var(--ivy); }
.house-side { fill: #ce7752; }
.house-front { fill: var(--rust); }
.roof { fill: var(--ink); }
.door { fill: var(--ivy); }
.window { fill: #f2c871; stroke: var(--ink); stroke-width: 5; }
.window-lines { fill: none; stroke: var(--ink); stroke-width: 3; }
.step { fill: #bb9b72; }
.tree { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 9; }
.tree-leaf { fill: var(--ivy-light); }
.grass { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-width: 7; }

.art-note {
  position: absolute;
  z-index: 3;
  right: 2px;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  width: 160px;
  padding: 15px 17px;
  border-left: 4px solid var(--gold);
  color: var(--cream);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.art-note strong {
  color: var(--gold);
  font-size: 0.78rem;
}

.street-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 85px;
  opacity: 0.4;
  background-image: linear-gradient(90deg, transparent 49%, var(--line) 50%, transparent 51%);
  background-size: 64px 100%;
  transform: skewY(-1.5deg);
  transform-origin: right;
}

.record {
  position: relative;
  padding: 68px 0;
  color: var(--cream);
  background: var(--ivy);
}

.record::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  content: "";
}

.record-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 74px;
  align-items: center;
}

.record-intro h2 {
  max-width: 400px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.stats > div {
  padding: 12px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats > div:last-child {
  border-right: 0;
}

.stats dt {
  color: var(--gold);
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.stats dd {
  max-width: 180px;
  margin: 12px 0 0;
  color: #d5e0da;
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.section {
  padding: 128px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.criteria-copy h2,
.contact-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.1vw, 5.15rem);
  line-height: 0.98;
}

.section-heading > p:last-child,
.criteria-copy > p {
  max-width: 520px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.program-card {
  position: relative;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(251, 246, 236, 0.64);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.program-card.offset {
  margin-top: 34px;
}

.program-card:hover {
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--paper-deep);
  transform: translateY(-6px);
}

.program-card span {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.program-card svg {
  display: block;
  width: 43px;
  margin: 34px 0 24px;
  fill: none;
  stroke: var(--ivy);
  stroke-linecap: square;
  stroke-linejoin: round;
  stroke-width: 2;
}

.program-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.program-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.process {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  align-items: center;
  margin-top: 105px;
  padding: 52px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--rust);
}

.process-title h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.process-title > p:last-child {
  margin-bottom: 0;
  color: #c9c1b6;
  font-size: 0.83rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
  height: 1px;
  background: #6a6259;
  content: "";
}

.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 14px 0 0;
}

.timeline li::before {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  content: "";
}

.timeline span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline strong {
  margin: 5px 0 8px;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.timeline small {
  color: #bcb4aa;
  font-size: 0.7rem;
  line-height: 1.45;
}

.criteria {
  padding-top: 115px;
  background: var(--cream);
}

.criteria-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.criteria-copy {
  position: sticky;
  top: 130px;
  align-self: start;
}

.criteria-copy h2 {
  margin-bottom: 28px;
}

.criteria-copy .text-link {
  margin-top: 18px;
}

.criteria-list {
  border-top: 1px solid var(--line);
}

.criteria-list article {
  display: grid;
  grid-template-columns: 120px 0.75fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.criteria-list span {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.criteria-list h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.criteria-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.partner-strip {
  display: grid;
  grid-template-columns: 0.65fr 1.4fr 0.95fr;
  gap: 34px;
  align-items: center;
  margin-top: 100px;
  padding: 26px 30px;
  border: 1px solid var(--line);
}

.partner-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-strip div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.contact-section {
  padding: 90px 0;
  background: var(--cream);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  padding: 80px;
  overflow: hidden;
  color: var(--cream);
  background: var(--ivy);
}

.contact-card::after {
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 55px solid rgba(209, 169, 79, 0.18);
  border-radius: 50%;
  content: "";
}

.contact-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.8rem, 4.6vw, 4.8rem);
}

.contact-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.contact-copy p {
  margin-bottom: 30px;
  color: #d4dfd9;
  font-size: 0.95rem;
  line-height: 1.8;
}

footer {
  padding: 54px 0;
  color: #d9d3c9;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.footer-brand {
  color: var(--cream);
}

.footer-grid p,
.footer-grid address {
  margin-bottom: 0;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.8;
}

.footer-grid address a {
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 980px) {
  .site-menu {
    position: absolute;
    top: 68px;
    right: 24px;
    left: 24px;
    display: none;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--cream);
    box-shadow: var(--shadow);
  }

  .site-menu.open {
    display: grid;
  }

  .site-menu nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-menu nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-button {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4.5px) rotate(-45deg); }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    width: min(650px, 100%);
    margin: -30px 0 0 auto;
  }

  .hero::before {
    top: 45%;
    width: 95%;
    height: 55%;
  }

  .record::after { display: none; }
  .record-grid { grid-template-columns: 1fr; gap: 42px; }
  .stats > div:first-child { padding-left: 0; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card.offset { margin-top: 0; }
  .process { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; gap: 64px; }
  .criteria-copy { position: static; }
  .partner-strip { grid-template-columns: 1fr; }
  .partner-strip div { justify-content: flex-start; }
  .contact-card { grid-template-columns: 1fr; gap: 50px; padding: 60px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .nav-wrap { min-height: 68px; }
  .brand { max-width: 210px; font-size: 0.9rem; }
  .brand-mark { width: 34px; }
  .hero { padding: 112px 0 74px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero-lede { font-size: 0.96rem; }
  .hero-art { min-height: 390px; margin-top: 0; }
  .sun { width: 190px; height: 190px; }
  .hero-art > svg { right: -30px; width: 115%; }
  .art-note { right: -4px; bottom: 24px; }
  .record { padding: 56px 0; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .stats > div { padding: 0 0 26px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .stats > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .stats dd { max-width: none; }
  .section { padding: 90px 0; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2 { margin-bottom: 26px; }
  .program-grid { grid-template-columns: 1fr; margin-top: 50px; }
  .program-card { min-height: auto; }
  .process { margin-top: 70px; padding: 34px 26px; box-shadow: 7px 7px 0 var(--rust); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .timeline::before { display: none; }
  .criteria-list article { grid-template-columns: 1fr; gap: 10px; }
  .partner-strip div { flex-wrap: wrap; }
  .contact-section { padding: 50px 0; }
  .contact-card { gap: 36px; padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
