*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --paper: #f3ece2;
  --paper-deep: #e8dfd0;
  --ink: #1e1229;
  --plum: #2d1b4e;
  --plum-soft: #4a3568;
  --coral: #e06353;
  --coral-dark: #c44e3f;
  --mint: #3d9a82;
  --muted: #6b5f7a;
  --line: rgba(30, 18, 41, 0.12);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --rail: 220px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: Consolas, "Courier New", monospace;
  --sans: "Trebuchet MS", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30, 18, 41, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: var(--coral);
  color: #fff;
  padding: .5rem 1rem;
  border: 2px solid var(--ink);
}

/* Shell */
.shell {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--plum);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  border-right: 3px solid var(--ink);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: var(--paper);
}
.rail__brand:hover { color: #fff; }
.rail__brand img { width: 44px; height: 44px; flex-shrink: 0; }
.rail__brand span {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  line-height: 1.3;
  opacity: .9;
}

.rail__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.rail__nav li { margin-bottom: .35rem; }
.rail__nav a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 8px;
  color: rgba(243, 236, 226, 0.85);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.rail__nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(4px);
}
.rail__nav a.is-active {
  background: var(--coral);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.rail__foot {
  font-family: var(--mono);
  font-size: .68rem;
  opacity: .55;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.main { min-width: 0; }

/* Mobile dock */
.dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--plum);
  border-top: 3px solid var(--ink);
  padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dock__inner {
  display: flex;
  gap: .25rem;
  min-width: max-content;
  justify-content: center;
}
.dock a {
  color: var(--paper);
  text-decoration: none;
  font-size: .7rem;
  font-weight: 700;
  padding: .4rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
}
.dock a.is-active { background: var(--coral); color: #fff; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .dock { display: block; }
  body { padding-bottom: 3.5rem; }
}

/* Hero */
.hero-band {
  background: linear-gradient(135deg, var(--plum) 0%, #4a2f6e 55%, var(--coral) 120%);
  color: var(--paper);
  padding: 3.5rem 2rem 4rem;
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-band::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 55%;
  height: 160%;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(12deg);
  pointer-events: none;
}
.hero-band__inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-band__eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
  margin: 0 0 1rem;
}
.hero-band h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero-band__lead {
  font-size: 1.12rem;
  max-width: 52ch;
  margin: 0 0 2rem;
  opacity: .92;
}
.hero-band__lead strong { color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.35rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--solid:hover { color: var(--plum); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 236, 226, 0.6);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--coral {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--coral:hover { background: var(--coral-dark); color: #fff; }

/* Content */
.content {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page-head {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed var(--line);
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 .75rem;
  line-height: 1.15;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}
.crumb {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .75rem;
}
.crumb a { color: var(--plum); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* Stagger grid */
.stagger {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .stagger { grid-template-columns: repeat(2, 1fr); }
  .stagger .card--wide { grid-column: 1 / -1; }
  .stagger .card--tall { grid-row: span 2; }
}

.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card__num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--coral);
  letter-spacing: .15em;
  margin-bottom: .5rem;
}
.card h2, .card h3 {
  font-family: var(--serif);
  margin: 0 0 .6rem;
  line-height: 1.2;
}
.card h2 { font-size: 1.35rem; }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card a.card-link:hover h2,
.card a.card-link:hover h3 { color: var(--coral); }

/* Stats ribbon */
.ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 560px) {
  .ribbon { grid-template-columns: repeat(4, 1fr); }
}
.ribbon__item {
  text-align: center;
  padding: 1.25rem .75rem;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: 12px;
}
.ribbon__item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--plum);
  line-height: 1;
}
.ribbon__item span {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .35rem;
  display: block;
}

/* Quote block */
.pullquote {
  margin: 2.5rem 0;
  padding: 2rem 2rem 2rem 1.75rem;
  border-left: 6px solid var(--coral);
  background: var(--paper-deep);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
}

/* Portal chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.5rem 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s;
}
.chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--coral);
}

/* Story list */
.story {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .story { grid-template-columns: 110px 1fr; align-items: start; }
}
.story time {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--coral);
  letter-spacing: .06em;
}
.story h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 .4rem;
}
.story h2 a { color: var(--ink); text-decoration: none; }
.story h2 a:hover { color: var(--coral); }
.story p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Contact */
.form-note {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.contact-list li {
  padding: .85rem 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.contact-list strong {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--plum);
  min-width: 100px;
}

/* Footer strip */
.site-foot {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}
.site-foot a { color: var(--plum); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Prose */
.prose h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 2rem 0 .75rem;
  color: var(--plum);
}
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
