:root {
  --bg: #ffffff;
  --ink: #121418;
  --ink-soft: #2c3038;
  --muted: #5d6470;
  --line: #e6e8ec;
  --red: #c8283f;
  --green: #1d7f47;
  --card: rgba(255, 255, 255, 0.82);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

strong { font-weight: 650; color: var(--ink); }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav nav { display: flex; gap: clamp(12px, 2.6vw, 28px); }

.nav nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav nav a:hover, .nav nav a.is-active { color: var(--ink); }
.nav nav a.is-active { font-weight: 600; }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot--ink { background: var(--ink-soft); }
.dot--red { background: var(--red); }
.dot--green { background: var(--green); }

.period { color: var(--red); }

/* Hero */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 11.5vw, 8.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.tagline {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

/* Intro */

.intro {
  min-height: 115vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.intro p {
  max-width: 820px;
  margin: 0;
  text-align: center;
  font-size: clamp(1.45rem, 3.4vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
}

/* Threads */

.threads {
  min-height: 130vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.threads ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.thread {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.thread .bar { width: 44px; height: 3px; border-radius: 2px; background: currentColor; }
.thread--ink { color: var(--ink-soft); }
.thread--red { color: var(--red); }
.thread--green { color: var(--green); }
.thread:hover .bar { width: 60px; }
.thread .bar { transition: width 0.25s; }

/* Sections */

.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 16vh clamp(28px, 5vw, 40px) 10vh clamp(52px, 7vw, 60px);
  display: grid;
  gap: 18px;
  scroll-margin-top: 40px;
}

.section-head { margin-bottom: 18px; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.label::before { content: ""; width: 32px; height: 2px; background: currentColor; border-radius: 2px; }
.label--ink { color: var(--ink-soft); }
.label--red { color: var(--red); }
.label--green { color: var(--green); }

.section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }

/* Cards */

.card {
  --accent: var(--ink-soft);
  position: relative;
  padding: 22px 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(18, 20, 24, 0.04), 0 8px 28px rgba(18, 20, 24, 0.05);
}
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.accent-ink { --accent: var(--ink-soft); }
.accent-red { --accent: var(--red); }
.accent-green { --accent: var(--green); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  flex-wrap: wrap;
}

.card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.year {
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.org {
  margin: 2px 0 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

.card p { margin: 0; color: var(--ink-soft); }
.card p + p { margin-top: 10px; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
}
.tags li {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, white);
}

/* About */

.card--about { padding: 28px 30px; }

.about-title {
  font-size: 1.5rem !important;
  color: var(--green);
  margin-bottom: 12px !important;
}

.facts { margin: 22px 0 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.facts dt {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.facts dd { margin: 0; color: var(--ink-soft); }

.links { display: flex; gap: 10px; margin-top: 22px !important; flex-wrap: wrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, white);
  transition: background 0.2s;
}
.pill:hover { background: color-mix(in srgb, var(--green) 18%, white); }

/* Outro: the portrait forms on the canvas above the footer */

.outro {
  min-height: 135vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 5vh;
}

.footer { text-align: center; font-size: 13.5px; color: var(--muted); }
.footer p { margin: 4px 0; }
.footer-links { display: flex; gap: 18px; justify-content: center; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-left: 30px; padding-right: 16px; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 15px; }
  .nav nav a { font-size: 13px; gap: 5px; }
  .nav nav a .dot { display: none; }
  .card { padding: 18px 18px 18px 20px; }
  .card--about { padding: 22px 20px; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
}

/* v2: thread subtitles, section intros, featured cards */

.thread small {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 4px;
}

.section-sub {
  margin: 14px 0 0;
  max-width: 600px;
  font-size: 1.08rem;
  color: var(--muted);
}

.kicker {
  margin: 0 0 6px !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

.card--featured {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, var(--card));
  padding: 26px 28px 26px 30px;
}
.card--featured::before { width: 4px; }
.card--featured h3 { font-size: 1.32rem; }

@media (max-width: 640px) {
  .card--featured { padding: 20px 18px 20px 20px; }
  .thread { flex-wrap: wrap; row-gap: 0; }
  .thread small { flex-basis: 100%; margin: 0 0 0 60px; }
}

.more { margin-top: 12px !important; }
.more a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.more a:hover { text-decoration: underline; }

/* Interlude between Healthcare and Building: the dots stack up into bricks */

.interlude {
  min-height: 210vh;
  position: relative;
}

.interlude-inner {
  position: sticky;
  top: 16vh;
  text-align: center;
  padding: 0 16px;
}

.eyebrow--green { color: var(--green); }

.interlude-title {
  margin: 10px 0 0;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.interlude--globe { min-height: 150vh; }
.interlude--globe .interlude-inner { top: 11vh; }
.interlude--globe .interlude-title { font-size: clamp(1.8rem, 5vw, 3rem); }

.dot--blue { background: #2563eb; }
.dot--yellow { background: #e2a300; }

.globe-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.globe-legend span { display: inline-flex; align-items: center; gap: 7px; }
