/* ── J. Jacob Kirksey personal site — design tokens & components ──────
   Source of truth: design_handoff_kirksey_site 2/README.md
   Colors, type, and spacing follow the handoff exactly; the interactive
   touches (reveal, count-up, hover lift) are additive and respect
   prefers-reduced-motion. */

:root {
  --bg: #fbfcfe;
  --ink: #10203a;
  --body: #46587a;
  --muted: #7387a5;
  --faint: #93a3bd;
  --accent: #2b5cad;
  --tint: #e6eefb;
  --hair: #e2e8f2;
  --input: #c6d3e8;
  --dark: #10203a;
  --dark-muted: #b9c6dd;
  --dark-accent: #8fb0e8;
  --success: #1f7a4d;
  --ttu-red: #8f1d21;
  --ttu-red2: #a8383c;
  --ttu-red3: #c05a5e;
  --blue2: #5a80c2;
  --blue3: #8aa6d6;
}

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

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Archivo', -apple-system, sans-serif;
  color: var(--ink);
}
main.page-layout-custom { padding: 0; }
#quarto-header, .quarto-title-block, #quarto-back-to-top, .nav-footer { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ── navbar ─────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 254, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-nav.scrolled { border-bottom-color: var(--hair); box-shadow: 0 4px 18px rgba(16, 32, 58, 0.05); }
.site-nav .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.brand { font-weight: 800; font-size: 17px; letter-spacing: 0.01em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; align-items: center; }
.nav-links a.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 10px 20px; border-radius: 6px; }
.nav-cta:hover { opacity: 0.9; }

/* ── buttons, chips, pills ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 15px 28px; border-radius: 8px; font-weight: 600; font-size: 16.5px; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-secondary {
  display: inline-block; border: 1.5px solid var(--input);
  padding: 15px 28px; border-radius: 8px; font-weight: 600; font-size: 16.5px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn-primary:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(43, 92, 173, 0.28); }
.btn-secondary:hover { opacity: 1; transform: translateY(-1px); border-color: var(--accent); }
.btn-sm { padding: 13px 24px; font-size: 15.5px; }
.chip {
  display: inline-flex; align-self: flex-start; gap: 8px; align-items: center;
  background: var(--tint); color: var(--accent);
  font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.pill { background: var(--tint); color: var(--accent); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
.pill:hover, .pill.active { background: var(--accent); color: #fff; opacity: 1; }
.pill-solid { background: var(--accent); color: #fff; }

/* ── type ───────────────────────────────────────────────────────────── */
.h1-xl { font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.h1-md { font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.h2-sm { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.h2-lg { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; }
.lede { font-size: 18.5px; line-height: 1.6; color: var(--body); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.eyebrow-dark { color: var(--dark-accent); }

/* ── hero / sections ────────────────────────────────────────────────── */
.hero { padding: 56px 40px 48px; display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; border-radius: 14px; }
.section { padding: 48px 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.section-link { font-size: 15px; font-weight: 600; color: var(--accent); }

/* ── stat band (count-up) ───────────────────────────────────────────── */
.stat-band { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat-num { font-size: 34px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 16px; color: var(--body); margin-top: 4px; }

/* ── cards ──────────────────────────────────────────────────────────── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 26px; display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.card:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16, 32, 58, 0.08); border-color: #cdd9ec; }
.card-num { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.card-title { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.card-body { font-size: 15.5px; line-height: 1.55; color: var(--body); }

/* ── list rows (recent work, coverage, studies) ─────────────────────── */
.row-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 22px 0;
  border-top: 1px solid var(--hair);
  transition: background 0.15s ease;
}
.row-item:last-child { border-bottom: 1px solid var(--hair); }
.row-label { font-size: 14px; font-weight: 600; color: var(--accent); }
.row-title { font-size: 17.5px; line-height: 1.45; font-weight: 500; }
a.row-item:hover { opacity: 1; background: linear-gradient(90deg, transparent, rgba(230, 238, 251, 0.55), transparent); }

.row-item.with-cover { grid-template-columns: 64px 200px 1fr; align-items: center; }
.row-cover { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 1px solid var(--hair); display: block; background: #fff; }

.brief-cover { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--hair); }

.news-hero { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; }
@media (max-width: 860px) { .news-hero { grid-template-columns: 1fr; } .row-item.with-cover { grid-template-columns: 64px 1fr; } .theme-grid-news { grid-template-columns: 1fr !important; } }

.study-row { padding: 18px 0; border-top: 1px solid var(--hair); display: block; color: inherit; transition: background 0.15s ease; }
.study-row:hover { opacity: 1; background: linear-gradient(90deg, transparent, rgba(230, 238, 251, 0.55), transparent); }
.study-title { font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.study-title .arrow { color: var(--accent); display: inline-block; transition: transform 0.15s ease; }
.study-row:hover .arrow { transform: translate(2px, -2px); }
.study-meta { font-size: 14px; color: var(--muted); margin-top: 6px; }

.coverage-row { padding: 18px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 220px 1fr; gap: 32px; transition: background 0.15s ease; }
.coverage-row:last-child { border-bottom: 1px solid var(--hair); }
.coverage-row:hover { opacity: 1; background: linear-gradient(90deg, transparent, rgba(230, 238, 251, 0.55), transparent); }
.coverage-outlet { font-size: 14px; font-weight: 700; color: var(--accent); }
.coverage-title { font-size: 16.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }

/* ── theme sections (300px | 1fr) ───────────────────────────────────── */
.theme-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.theme-desc { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ── video ──────────────────────────────────────────────────────────── */
.video-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--dark); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: none; display: block; }
.video-caption { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── dark bands ─────────────────────────────────────────────────────── */
.band-dark {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--dark); color: #fff;
  border-radius: 16px; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.band-dark:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 32, 58, 0.25); }
.band-dark img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.band-copy { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.dark-section { background: var(--dark); color: #fff; }
.on-dark-muted { color: var(--dark-muted); }

/* ── CTA cards / tinted panels ──────────────────────────────────────── */
.cta-card { background: #fff; border: 1px solid var(--hair); border-radius: 16px; padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-dark { background: var(--dark); color: #fff; border: none; }
.tint-panel { background: var(--tint); border-radius: 12px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }

/* ── policy brief cards ─────────────────────────────────────────────── */
.brief-card {
  background: #fff; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.brief-card:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(143, 29, 33, 0.12); }
.brief-head { background: var(--ttu-red); color: #fff; padding: 14px 22px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brief-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.brief-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.brief-summary { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.brief-link { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent); }
.bar-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--body); }
.bar-row.wide-val { grid-template-columns: 150px 1fr 62px; }
.bar-row strong { color: var(--ink); }
.bar { height: 12px; border-radius: 3px; transform-origin: left center; }
.reveal-bars .bar { transform: scaleX(0); }
.reveal-bars.bars-in .bar { transform: scaleX(1); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-bars.bars-in .bar:nth-child(1) { transition-delay: 0.05s; }
.stat-rows { display: flex; flex-direction: column; gap: 7px; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #eef2f8; padding-bottom: 6px; }
.stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.stat-row .up, .stat-row .down { font-size: 15px; font-weight: 700; color: var(--success); }
.bar-note { font-size: 11.5px; color: var(--faint); }

/* ── quote cards ────────────────────────────────────────────────────── */
.quote-card {
  margin: 0; background: #fff; border: 1px solid var(--hair);
  border-radius: 12px; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.quote-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 32, 58, 0.07); }
.quote-text { font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.quote-attr { font-size: 13.5px; font-weight: 600; color: var(--accent); }

/* ── about page ─────────────────────────────────────────────────────── */
.bio-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.info-card { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 22px; }
.info-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.info-rows { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; }
.info-rows .yr { color: var(--muted); }
.talk-card { border: 1px solid #2c3d5c; border-radius: 12px; padding: 22px; transition: border-color 0.18s ease, background 0.18s ease; }
.talk-card:hover { border-color: #46618f; background: rgba(143, 176, 232, 0.06); }
.talk-tag { font-size: 13px; font-weight: 700; color: var(--dark-accent); margin-bottom: 8px; }
.talk-title { font-size: 16px; font-weight: 600; line-height: 1.45; }

/* ── contact form ───────────────────────────────────────────────────── */
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 13px 14px; border: 1.5px solid var(--input); border-radius: 8px;
  font-size: 15px; background: #fff; font-family: 'Archivo', sans-serif; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 92, 173, 0.14);
}
.field textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--faint); }
.sent-msg { font-size: 14.5px; color: var(--success); font-weight: 600; }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hair); margin-top: 8px; }
.site-footer .wrap { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; color: var(--muted); }
.site-footer .links { display: flex; gap: 22px; }

/* ── scroll-reveal (JS adds .in) ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-bars .bar { transform: none; transition: none; }
  .card, .brief-card, .band-dark, .btn-primary, .btn-secondary, .quote-card { transition: none; }
}

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .hero, .bio-grid, .theme-grid, .band-dark, .cards3, .cards2, .form-2col { grid-template-columns: 1fr; }
  .hero { padding: 32px 22px; gap: 32px; }
  .section { padding: 36px 22px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: none; }
  .stat { padding: 18px 8px; }
  .h1-xl { font-size: 38px; }
  .h1, .h1-md { font-size: 34px; }
  .row-item, .coverage-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .nav-links { gap: 16px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .cta-card, .tint-panel { flex-direction: column; align-items: flex-start; }
  .site-footer .wrap { flex-direction: column; gap: 10px; }
}
