/* ============================================================
   Longitude DC Intensive — design tokens
   Light paper ground, navy ink, red accent lines,
   fine-line Capitol motif; navy footer as the closing band
   ============================================================ */

:root {
  /* the site is light by design; opt out of browser auto-darkening,
     which turned the wine red nearly invisible */
  color-scheme: only light;
  --bg: #fdfbf5;
  --bg-alt: #f4efe2;
  --ink: #16294a;
  --ink-dim: rgba(22, 41, 74, 0.72);
  --line: rgba(22, 41, 74, 0.18);
  --navy: #16294a;
  --navy-deep: #0f1e3a;
  --cream: #f4efe1;
  --cream-dim: rgba(244, 239, 225, 0.72);
  --red: #6e1423;
  --red-deep: #4f0e19;
  --font-display: "Playfair", "Playfair Display", Georgia, serif;
  --font-body: "Playfair", "Playfair Display", Georgia, serif;
  --max-w: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

a { color: var(--ink); }

/* ============ NAV ============ */

/* quiet header: one hairline across the full width, nothing shouting */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-size: 1.05rem;
}

.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* hamburger, shown only when the layout stacks */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

/* open menu: the three lines turn vertical, like lines of longitude,
   rotating inward toward the page rather than out of it */
.nav.nav-open .nav-toggle { transform: rotate(-90deg); }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  border: 1px solid var(--navy);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); }

.btn-small { padding: 0.4rem 1rem; font-size: 1rem; }

.btn-large { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ============ HERO ============ */

.hero {
  display: grid;
  /* copy centered in the left half, Capitol filling the right half
     and bleeding off the page edge */
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 4.5rem 0 0;
  min-height: 80vh;
}

.hero-copy {
  align-self: center;
  justify-self: center;
  max-width: 38rem;
  padding: 0 2rem 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-kicker {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: 0.75rem;
  color: var(--ink);
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: var(--ink-dim);
  font-size: 1.1rem;
}

.hero-status {
  margin-top: 1.75rem;
  font-style: italic;
  color: var(--ink-dim);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============ MANIFESTO ============ */

.manifesto {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.5;
  max-width: 54rem;
  margin: 0 auto;
}

.manifesto-more {
  max-width: 54rem;
  margin: 1.75rem auto 0;
}

.manifesto-more a {
  font-size: 1.05rem;
  color: var(--ink-dim);
  text-underline-offset: 4px;
}

.manifesto-more a:hover { color: var(--ink); }

.hero-art {
  min-width: 0;
  align-self: end;
  overflow: hidden; /* the Capitol bleeds off the right page border */
}

#capitol {
  /* wider than its column so the building is cut off by the right
     page edge; the wider the screen, the more of it shows
     (~30% cut on small screens, ~6% on very wide ones) */
  width: clamp(106%, 30vw + 500px, 143%);
  height: auto;
  display: block;
  opacity: 0.82; /* navy lines read as dark blue, not grey */
}

/* ============ STATS (one contained strip) ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 4rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.45);
}

.stat {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat + .stat { border-left: 1px solid var(--line); }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ink);
}

.stat-label {
  font-size: 1rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ SECTIONS ============ */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

.section-alt {
  max-width: none;
  background: var(--bg-alt);
  padding-left: max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
  padding-right: max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}

.section-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1.75rem;
}

/* short red stub under each section heading: one calm, consistent
   cue for "a new section starts here" */
.section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--red);
  margin-top: 0.7rem;
}

.section-lede {
  font-size: 1.25rem;
  max-width: 46rem;
  margin-bottom: 3rem;
  color: var(--ink-dim);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 60rem;
}

/* ============ CARDS (selection criteria) ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3.5rem auto 0;
  max-width: 60rem;
}

.card {
  border: 1px solid var(--line);
  padding: 2rem;
}

.card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

.card p { color: var(--ink-dim); font-size: 1.0625rem; }

.card-lines {
  height: 18px;
  margin-bottom: 1.4rem;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 1px,
    transparent 1px 5px
  );
  width: 44px;
  opacity: 0.75;
}

.apply-note {
  margin: 2.5rem auto 0;
  max-width: 60rem;
  color: var(--ink-dim);
}

.apply-note strong { color: var(--ink); }

/* ============ STEPS (numbered rail: the eye follows the line) ============ */

.steps { margin: 1rem auto 0; max-width: 46rem; }

.step {
  position: relative;
  padding: 0 0 3rem 4rem;
}

/* the rail connecting the numbers */
.step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 44px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

/* the red line that travels down the rail with scrolling
   (--fill is set per step by initStepsRail) */
.step::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--red);
  transform: scaleY(var(--fill, 0));
  transform-origin: top;
}

.step:last-child { padding-bottom: 0.5rem; }

/* the fourth step happens after the two weeks; its connector and
   circle are dashed to mark that it extends beyond the program */
.step:has(+ .step-after)::before {
  width: 0;
  border-left: 1px dashed var(--line);
  background: none;
}

.step:has(+ .step-after)::after {
  width: 0;
  border-left: 2px dashed var(--red);
  background: none;
}

.step-after .step-num { border-style: dashed; }

.step:last-child::before,
.step:last-child::after { display: none; }

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, color 0.35s ease;
}

/* the number fills in when the traveling line reaches it */
.step.lit .step-num {
  background: var(--red);
  color: var(--cream);
}

.step h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.step p { color: var(--ink-dim); }

.role-panel {
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  padding: 1.5rem 1.75rem 1.75rem;
  margin-top: 1.75rem;
  max-width: 40rem;
}

.role-panel-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

.role-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-list li {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.4rem 0.85rem;
  font-size: 1rem;
  color: var(--ink);
}

/* ============ SPEAKERS ============ */

.speakers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.person-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ink);
  margin: 0 auto 1rem;
  display: block;
}

.speakers h4 { font-family: var(--font-display); font-size: 1.05rem; }

.speakers .person p { color: var(--ink-dim); font-size: 1rem; }

.speakers-note {
  margin-top: 2rem;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 1.05rem;
}

/* ============ CTA ============ */

.cta-row {
  margin: 4.5rem auto 0;
  text-align: center;
}

.cta-note { margin-top: 1.25rem; color: var(--ink-dim); }

/* ============ TEAM ============ */

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3.5rem auto 0;
  max-width: 54rem;
}

.person { text-align: center; }

.team .person > p {
  margin-top: 0.75rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.prose { max-width: 46rem; }

.prose p { color: var(--ink-dim); margin-bottom: 1.5rem; }

.prose p:last-child { margin-bottom: 0; }

.page-hero { padding-top: 4rem; }

/* AI-use canary: invisible to sight and screen readers, but in-flow,
   so it is included when a visitor selects and copies the surrounding
   paragraph (e.g. into a chat assistant) */
.canary {
  color: transparent;
  font-size: 1px;
  letter-spacing: 0;
}

.person-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  margin: 0 auto 1rem;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 6px
  );
}

.person h3 { font-size: 1.15rem; }

.person p { color: var(--ink-dim); font-size: 1rem; }

/* ============ FAQ ============ */

.faq { max-width: 48rem; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding: 0 0 1.5rem;
  color: var(--ink-dim);
  max-width: 44rem;
}

/* ============ FOOTER (navy closing band) ============ */

.footer {
  background: var(--navy-deep);
  color: var(--cream);
  margin-top: 0;
}

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

.footer .btn {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.footer-lines { line-height: 0; }

#footer-wave {
  width: 100%;
  height: 90px;
  display: block;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: end;
}

.footer h2 { font-size: 2.2rem; margin-bottom: 0.75rem; }

.footer p { color: var(--cream-dim); margin-bottom: 1.75rem; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  color: var(--cream-dim);
  font-size: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
}

/* ============ ENTRANCES & REVEALS ============ */

/* hero copy rises in while the Capitol is being drawn */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero-kicker { animation: rise 0.7s 0.02s cubic-bezier(0.22, 0.7, 0.3, 1) both; }
.hero h1 { animation: rise 0.7s 0.05s cubic-bezier(0.22, 0.7, 0.3, 1) both; }
.hero-tagline { animation: rise 0.7s 0.2s cubic-bezier(0.22, 0.7, 0.3, 1) both; }
.hero-sub, .hero-status, .hero-ctas { animation: rise 0.7s 0.4s cubic-bezier(0.22, 0.7, 0.3, 1) both; }

/* sections fade up as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ...and their cards arrive one after another */
.reveal :is(.stat, .step, .card, .person, .faq details) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.reveal.visible :is(.stat, .step, .card, .person, .faq details) {
  opacity: 1;
  transform: none;
}

.reveal.visible :is(.stat, .step, .card, .person, .faq details):nth-child(2) { transition-delay: 0.12s; }
.reveal.visible :is(.stat, .step, .card, .person, .faq details):nth-child(3) { transition-delay: 0.24s; }
.reveal.visible :is(.stat, .step, .card, .person, .faq details):nth-child(4) { transition-delay: 0.36s; }
.reveal.visible :is(.stat, .step, .card, .person, .faq details):nth-child(5) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-tagline, .hero-sub, .hero-status, .hero-ctas { animation: none; }
  .reveal,
  .reveal :is(.stat, .step, .card, .person, .faq details) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  /* nav collapses into the hamburger */
  .nav { flex-wrap: wrap; padding: 1.1rem 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* full-row basis so the menu always wraps below the bar, never
       beside it when there happens to be horizontal room */
    flex: 0 0 100%;
    width: 100%;
    gap: 1.1rem;
    padding: 1.1rem 0 0.4rem;
  }

  /* capitol shrinks above the copy so the headline stays in view */
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 1.5rem 0 0; }
  .hero-art { order: -1; }
  #capitol { width: 100%; height: 30vh; }
  .hero-copy { justify-self: start; padding: 1.75rem 1.25rem 2.5rem; }

  .section { padding: 4rem 1.25rem; }
  .section-alt {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.25rem; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .steps { max-width: none; }
  .cards, .team { grid-template-columns: 1fr; }
  .speakers { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 540px) {
  /* stats stack to one clean column */
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
  .step { padding-left: 3.25rem; }
}

