:root {
  --paper: #f7f1e7;
  --ink: #20231d;
  --muted: #5f625b;
  --line: rgba(32, 35, 29, 0.16);
  --moss: #536b50;
  --clay: #a8634c;
  --night: #171c16;
  --white: #fffaf1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #d98b6a;
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(22px, 5vw, 60px);
  color: var(--white);
  pointer-events: none;
}

.brand,
.header-nav {
  pointer-events: auto;
}

.brand {
  text-decoration: none;
}

.brand img {
  width: 178px;
  margin-bottom: 12px;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 18px;
  font-weight: 700;
}

.header-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 94dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--night);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  opacity: 0.78;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(10, 14, 10, 0.82), rgba(10, 14, 10, 0.36) 56%, rgba(10, 14, 10, 0.28)),
    linear-gradient(0deg, rgba(10, 14, 10, 0.7), rgba(10, 14, 10, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 44px));
  margin: 0 auto;
  padding: 220px 0 78px;
  color: var(--white);
}

.eyebrow,
.section-kicker,
.bridge-steps span,
.moment-item span {
  margin: 0;
  color: var(--moss);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 250, 241, 0.78);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin-top: 18px;
  font-size: clamp(58px, 8.5vw, 132px);
  line-height: 1;
}

h2 {
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1.04;
}

h3 {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.06;
}

p {
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.45;
}

.hero-copy {
  max-width: 820px;
  color: rgba(255, 250, 241, 0.9);
}

.hero-actions,
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions a,
.cta-links a,
.cycle-card a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.hero-actions .primary-action,
.cta-links .primary-action {
  border-color: var(--white);
  background: var(--white);
  color: var(--night);
}

.section-wrap {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.origin-section,
.closing-section,
.proof-section,
.roles-section,
.supporters-section {
  padding: clamp(70px, 9vw, 124px) 0;
}

.internal-note {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(32, 35, 29, 0.035);
}

.section-head,
.bridge-layout,
.moments-layout,
.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(300px, 0.42fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.section-head > p,
.final-layout p {
  max-width: 620px;
}

.cycle-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  border: 1px solid var(--line);
  background: var(--line);
}

.cycle-card,
.proof-grid article,
.role-list article,
.supporter-group {
  background: rgba(255, 250, 241, 0.48);
}

.cycle-card.is-anchor {
  grid-column: span 2;
  background: rgba(255, 250, 241, 0.72);
}

.cycle-card.is-threshold {
  background: rgba(83, 107, 80, 0.1);
}

.cycle-card-body,
.proof-grid article,
.role-list article,
.supporter-group {
  padding: clamp(22px, 3vw, 34px);
}

.cycle-card-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.cycle-meta {
  display: grid;
  gap: 7px;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32, 35, 29, 0.14);
}

.cycle-year {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 0.95;
}

.cycle-motto {
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cycle-card p,
.proof-grid p,
.bridge-steps p,
.moment-item p,
.role-list p,
.supporter-group p {
  font-size: 18px;
}

.cycle-card h3 {
  font-size: clamp(28px, 3vw, 44px);
}

.cycle-card a {
  margin-top: auto;
  border-color: rgba(32, 35, 29, 0.42);
  background: rgba(255, 250, 241, 0.58);
  color: var(--ink);
}

.closing-section {
  border-bottom: 1px solid var(--line);
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: clamp(28px, 5vw, 66px);
  margin-top: 48px;
}

.closing-sessions {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.closing-session {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px 24px;
  padding: clamp(26px, 3.4vw, 38px) clamp(22px, 3vw, 32px);
  background: rgba(255, 250, 241, 0.56);
}

.closing-session::before {
  content: attr(data-code);
  position: absolute;
  inset: 16px 18px auto auto;
  color: rgba(32, 35, 29, 0.42);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.closing-session time {
  grid-row: span 5;
  color: var(--clay);
  font-size: 21px;
  font-weight: 850;
}

.closing-session span {
  color: var(--moss);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.closing-day {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.closing-session h3 {
  font-family: inherit;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 850;
  line-height: 1.1;
}

.closing-session p,
.closing-session small,
.closing-session em,
.closing-note p {
  font-size: 17px;
}

.closing-session small {
  color: var(--muted);
}

.closing-session em {
  display: block;
  color: var(--moss);
  font-style: normal;
  font-weight: 750;
}

.closing-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.closing-source-note {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.closing-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.closing-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--moss);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.closing-partner-group {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.closing-partner-group:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.closing-partner-group h3 {
  color: var(--moss);
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.closing-partner-group p {
  font-size: 16px;
  line-height: 1.35;
}

.theme-line {
  display: grid;
  gap: 8px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.theme-line span {
  color: var(--moss);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bridge-band,
.moments-band,
.final-cta {
  padding: clamp(74px, 10vw, 132px) 0;
  background: var(--night);
  color: var(--white);
}

.bridge-band p,
.moments-band p,
.final-cta p {
  color: rgba(255, 250, 241, 0.72);
}

.bridge-steps {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.16);
}

.bridge-steps article {
  padding: 26px;
  background: rgba(255, 250, 241, 0.07);
}

.bridge-steps p,
.moment-item p {
  max-width: 640px;
}

.bridge-steps span,
.moment-item span {
  color: #a9bea3;
}

.evidence-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--moss);
  font-size: 15px;
  font-weight: 800;
}

.moment-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.16);
}

.moment-criteria {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.moment-criteria li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 250, 241, 0.16);
  color: rgba(255, 250, 241, 0.78);
  font-size: 15px;
  font-weight: 800;
}

.moment-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px 28px;
  padding: 24px;
  background: rgba(255, 250, 241, 0.07);
}

.moment-item time {
  color: #d98b6a;
  font-size: 22px;
  font-weight: 850;
  grid-row: span 4;
}

.moment-item h3 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
}

.moment-item small {
  color: rgba(255, 250, 241, 0.58);
  font-size: 15px;
}

.role-list,
.supporter-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.role-list p {
  max-width: 28rem;
}

.supporter-groups {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  border: 0;
  background: transparent;
  gap: 26px;
}

.supporter-group {
  padding: 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.supporter-group h3 {
  color: var(--moss);
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.supporter-group.secondary {
  opacity: 0.62;
}

.supporter-group p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.final-cta {
  background: #23301f;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(22px, 5vw, 60px);
  background: var(--night);
  color: rgba(255, 250, 241, 0.72);
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: inherit;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

main[data-state="loading"] .hero-image {
  opacity: 0;
}

@media (max-width: 860px) {
  .site-header,
  .section-head,
  .bridge-layout,
  .closing-layout,
  .moments-layout,
  .final-layout,
  .cycle-grid,
  .proof-grid,
  .role-list,
  .supporter-groups {
    grid-template-columns: 1fr;
  }

  .cycle-card.is-anchor {
    grid-column: auto;
  }

  .site-header {
    position: absolute;
    display: grid;
    align-items: start;
  }

  .header-nav {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    font-size: 14px;
    scrollbar-width: none;
  }

  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .header-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 250, 241, 0.34);
    border-radius: 999px;
    background: rgba(10, 14, 10, 0.26);
  }

  .brand img {
    width: 144px;
  }

  .hero-content {
    width: min(100% - 44px, 520px);
    padding-top: 46dvh;
    padding-bottom: 58px;
  }

  .hero .eyebrow {
    max-width: 280px;
    font-size: 11px;
    line-height: 1.35;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(40px, 10.8vw, 44px);
    line-height: 1.05;
    overflow-wrap: normal;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions a {
    min-height: 46px;
    padding-inline: 16px;
    font-size: 15px;
  }

  .moment-item {
    grid-template-columns: 1fr;
  }

  .moment-item time,
  .closing-session time {
    grid-row: auto;
  }

  .closing-session {
    grid-template-columns: 1fr;
  }

}
