:root {
  --paper: #faf8f5;
  --paper-elevated: #f5f0e8;
  --ink: #14120e;
  --ink-muted: #57524a;
  --ink-subtle: #847c71;
  --stone: #e6e0d6;
  --dot: #d6cfc2;
  --terracotta: #c85a32;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background-color: var(--paper); color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body {
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200, 90, 50, 0.055), transparent 42%),
    radial-gradient(circle at 84% 86%, rgba(20, 18, 14, 0.035), transparent 45%),
    radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  background-position: 0 0, 0 0, 12px 12px;
  display: flex; flex-direction: column; min-height: 100vh;
}
.page-shell {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding: 28px 24px 32px; display: flex; flex-direction: column; min-height: 100vh;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(230, 224, 214, 0.85);
  animation: rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; display: block; flex-shrink: 0; }
.brand-track-accent {
  stroke-dasharray: 156; stroke-dashoffset: 118;
  animation: chalkSweep 1400ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}
@keyframes chalkSweep { from { stroke-dashoffset: 156; } to { stroke-dashoffset: 104; } }
.brand-name { font-family: 'Newsreader', Georgia, serif; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--stone); background: rgba(250, 248, 245, 0.9);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.16); }
main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 0 64px; }
.hero { width: 100%; max-width: 740px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 20px; animation: rise 620ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}
h1 {
  margin: 0 auto 24px; font-family: 'Instrument Serif', 'Newsreader', Georgia, serif;
  font-size: clamp(44px, 7.6vw, 80px); font-weight: 400; line-height: 1.02;
  letter-spacing: -0.022em; color: var(--ink); text-wrap: balance;
  animation: rise 680ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}
h1 em { font-style: italic; color: var(--terracotta); }
.lead {
  margin: 0 auto 38px; max-width: 56ch; font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.62; color: var(--ink-muted);
  animation: rise 720ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}
.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 48px; animation: rise 760ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font-size: 14.5px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms ease, border-color 160ms ease;
}
.btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-1px); }
.pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--stone); border: 1px solid var(--stone); border-radius: 16px;
  overflow: hidden; text-align: left; animation: rise 820ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}
.pillar { background: rgba(250, 248, 245, 0.96); padding: 22px 22px 24px; }
.pillar-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--terracotta); letter-spacing: 0.08em; margin-bottom: 10px; }
.pillar-title { margin: 0 0 6px; font-family: 'Newsreader', Georgia, serif; font-size: 17px; font-weight: 500; color: var(--ink); }
.pillar-copy { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); }
footer {
  padding-top: 22px; border-top: 1px solid rgba(230, 224, 214, 0.85);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px; font-size: 12.5px; color: var(--ink-subtle);
  animation: rise 820ms cubic-bezier(0.22, 1, 0.36, 1) 380ms both;
}
.footer-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-btn {
  background: none; border: none; padding: 0; font: inherit; color: var(--ink-muted); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(132, 124, 113, 0.4); text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.footer-btn:hover { color: var(--terracotta); text-decoration-color: var(--terracotta); }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 18, 14, 0.48); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-backdrop[data-open='true'] { display: flex; }
.modal-card {
  width: 100%; max-width: 600px; max-height: 82vh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--stone); border-radius: 18px;
  padding: 28px 28px 24px; box-shadow: 0 24px 60px rgba(20, 18, 14, 0.18);
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--stone);
}
.modal-title { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 24px; font-weight: 500; color: var(--ink); }
.modal-close {
  border: 1px solid var(--stone); background: var(--paper); color: var(--ink);
  width: 34px; height: 34px; border-radius: 999px; font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.modal-close:hover { background: var(--paper-elevated); }
.modal-body { font-size: 14px; line-height: 1.65; color: var(--ink-muted); }
.modal-body h3 { margin: 18px 0 6px; font-size: 14.5px; color: var(--ink); }
.modal-body p { margin: 0 0 10px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 740px) {
  .page-shell { padding: 20px 18px 24px; }
  main { padding: 36px 0 44px; }
  .pillars { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--stone);
  background: rgba(250, 248, 245, 0.92); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary:hover { border-color: var(--ink-subtle); background: var(--paper-elevated); transform: translateY(-1px); }
