/* ============================================================
   CSS Custom Properties — light mode defaults
   ============================================================ */
:root {
  --bg:           #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --border-hover: #cbd5e1;
  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --accent:       #4f46e5;
  --accent-2:     #4338ca;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.14), 0 8px 16px rgba(0,0,0,.08);

  --radius:    12px;
  --radius-sm: 6px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Content-type accent colours */
  --c-article: #0ea5e9;
  --c-pdf:     #ef4444;
  --c-image:   #f59e0b;
  --c-video:   #8b5cf6;
}

[data-theme="dark"] {
  --bg:           #0f172a;
  --bg-secondary: #1e293b;
  --bg-card:      #1e293b;
  --border:       #334155;
  --border-hover: #475569;
  --text:         #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --accent:       #818cf8;
  --accent-2:     #a5b4fc;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,.5);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.6);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.nav-link:hover { background: var(--bg-secondary); color: var(--text-1); }
.nav-link.active { color: var(--text-1); background: var(--bg-secondary); }

.contact-btn {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  transition: background .2s, border-color .2s, color .15s;
}
.contact-btn:hover { background: var(--border); color: var(--text-1); }

/* ============================================================
   Hero / Profile
   ============================================================ */
.hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 52px;
}

.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 32px;
}

.profile-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.profile-name {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.profile-title {
  color: var(--accent);
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: 12px;
}

.profile-bio {
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 18px;
  font-size: .9rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-link {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  font-size: .8rem;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.profile-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   Content Section
   ============================================================ */
.content-section { padding: 40px 0 80px; }

/* ── Stats ── */
.stats-bar {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
  min-width: 52px;
}
.stat.active,
.stat:hover { border-color: var(--accent); }

.stat-count {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}
.stat.active .stat-count { color: var(--accent); }

.stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
}

/* ── Toolbar ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  padding: 5px 15px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 500;
  transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Search ── */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
}

.search-input {
  padding: 7px 14px 7px 34px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: .85rem;
  width: 220px;
  outline: none;
  transition: border-color .2s, width .25s;
  -webkit-appearance: none;
  appearance: none;
}
.search-input:focus { border-color: var(--accent); width: 260px; }
.search-input::placeholder { color: var(--text-3); }

/* ── Tag chips ── */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  min-height: 4px;
}

.tag-chip {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  font-size: .75rem;
  transition: all .2s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Results count ── */
.results-count {
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 20px;
}

/* ── Grid ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  list-style: none;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Card thumbnail */
.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
}

.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
[data-type="article"] .card-thumb-placeholder { background: #e0f2fe; }
[data-type="pdf"]     .card-thumb-placeholder { background: #fee2e2; }
[data-type="image"]   .card-thumb-placeholder { background: #fef9c3; }
[data-type="video"]   .card-thumb-placeholder { background: #ede9fe; }

[data-theme="dark"] [data-type="article"] .card-thumb-placeholder { background: #0c2540; }
[data-theme="dark"] [data-type="pdf"]     .card-thumb-placeholder { background: #2a0a0a; }
[data-theme="dark"] [data-type="image"]   .card-thumb-placeholder { background: #2a200a; }
[data-theme="dark"] [data-type="video"]   .card-thumb-placeholder { background: #1e1040; }

/* Card body */
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Type badge */
.type-badge {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 2px 8px;
  border-radius: 4px;
}
[data-type="article"] .type-badge { background: #e0f2fe; color: #0369a1; }
[data-type="pdf"]     .type-badge { background: #fee2e2; color: #b91c1c; }
[data-type="image"]   .type-badge { background: #fef9c3; color: #a16207; }
[data-type="video"]   .type-badge { background: #ede9fe; color: #6d28d9; }

[data-theme="dark"] [data-type="article"] .type-badge { background: #0c2540; color: #7dd3fc; }
[data-theme="dark"] [data-type="pdf"]     .type-badge { background: #3b0a0a; color: #fca5a5; }
[data-theme="dark"] [data-type="image"]   .type-badge { background: #2a200a; color: #fde68a; }
[data-theme="dark"] [data-type="video"]   .type-badge { background: #1e1040; color: #c4b5fd; }

.card-date { font-size: .75rem; color: var(--text-3); }

.featured-badge {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
}

.card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--text);
}

.card-source {
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
}

.card-description {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.card-tag {
  font-size: .7rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bg-secondary);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
}
.empty-state svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  opacity: .5;
}
.empty-state p { margin-bottom: 16px; }

.btn-ghost {
  padding: 7px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}
.btn-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-3);
  font-size: .8rem;
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modal-in .2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: var(--border); }

.modal-body {
  overflow-y: auto;
  flex: 1;
}

/* ── Modal: PDF ── */
.modal-pdf {
  background: #525659;
  max-height: 70vh;
  overflow-y: auto;
}

.pdf-canvas-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 300px;
}

.pdf-canvas-wrap canvas {
  max-width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  display: block;
}

.pdf-loading {
  color: #ccc;
  padding: 60px 20px;
  text-align: center;
}

.pdf-error {
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
}

.pdf-error a { color: #818cf8; }

/* ── Modal: Image ── */
.modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 32px;
  min-height: 300px;
}
.modal-image img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 6px;
}

/* ── Modal: Video ── */
.modal-video iframe,
.modal-video video {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* ── Modal: Article ── */
.modal-article {
  padding: 36px 40px 32px;
}
.modal-article .article-thumb {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ── Modal: shared meta footer ── */
.modal-meta {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.modal-meta-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.modal-meta-sub {
  font-size: .8rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.modal-meta-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.modal-title { /* for aria-labelledby */ }

#modalTitle {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.modal-source {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.modal-date { font-size: .8rem; color: var(--text-3); margin-bottom: 14px; }
.modal-description { color: var(--text-2); font-size: .9rem; line-height: 1.6; margin-bottom: 20px; }

.btn-primary {
  display: inline-block;
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, transform .1s;
  border: none;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.modal-download {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: .8rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}
.modal-download a { color: var(--accent); text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .profile {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-avatar { margin: 0 auto; }
  .profile-links  { justify-content: center; }
  .profile-bio    { max-width: 100%; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .search-wrap { width: 100%; }
  .search-input { width: 100% !important; }

  .stats-bar { gap: 16px; }
  .stat-count { font-size: 1.4rem; }

  .content-grid { grid-template-columns: 1fr; }

  .modal { max-height: 95vh; }
  .modal-article { padding: 24px 20px 20px; }
}

/* ============================================================
   About Page
   ============================================================ */

.about-page { padding: 60px 0 80px; }

.about-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 60px;
}

.about-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.about-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-1);
  margin: 0 0 4px;
}

.about-title {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 16px;
}

/* Bio section */
.about-section { margin-bottom: 56px; }

.about-section-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.about-bio-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 1.2em;
  max-width: 720px;
}

.about-bio-text p:last-child { margin-bottom: 0; }

/* Expertise grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.expertise-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.expertise-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

.expertise-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.expertise-desc {
  font-size: .8rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* Companies */
.companies-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.company-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.company-row:first-child { border-top: 1px solid var(--border); }

.company-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-1);
  min-width: 180px;
}

.company-role {
  font-size: .875rem;
  color: var(--text-2);
  flex: 1;
}

.company-industry {
  font-size: .75rem;
  color: var(--text-3);
  white-space: nowrap;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
}

@media (max-width: 640px) {
  .about-header { flex-direction: column; gap: 20px; }
  .about-name { font-size: 1.6rem; }
  .company-row { flex-wrap: wrap; gap: 4px; }
  .company-name { min-width: 100%; }
}

/* ============================================================
   Testimonials Page
   ============================================================ */

.testimonials-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 56px;
}

.testimonials-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.testimonials-hero-heading {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 600px;
}

.testimonials-hero-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.6;
}

.testimonials-page {
  padding: 52px 0 80px;
}

/* Featured quote — full width, accent left border */
.testimonial-featured {
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.testimonial-featured .testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.75;
  padding-top: 16px;
}

/* Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Shared card styles */
.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  left: 22px;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: .18;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-featured::before { opacity: 0; }

.testimonial-quote {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-2);
  padding-top: 24px;
  font-style: italic;
}

.testimonial-attribution {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.testimonial-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: .8rem;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .testimonials-hero-heading { font-size: 1.6rem; }
  .testimonials-hero { padding: 36px 0 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-featured .testimonial-quote { font-size: 1rem; }
}

/* ============================================================
   Home Page
   ============================================================ */

/* Make nav-brand a link */
a.nav-brand {
  text-decoration: none;
}

.home-hero {
  padding: 88px 0 96px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.home-hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.home-hero-text {
  flex: 1;
  min-width: 0;
  max-width: 620px;
}

.home-hero-photo {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
}

.home-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.home-heading {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.home-subhead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 600px;
}

.home-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background .15s, transform .1s;
}
.home-cta-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.home-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s, transform .1s;
}
.home-cta-secondary:hover { background: var(--border); transform: translateY(-1px); }

/* Nav cards */
.home-cards-section {
  padding: 56px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  position: relative;
}
.home-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.home-card-body {
  flex: 1;
  min-width: 0;
}

.home-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.home-card-desc {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-2);
}

.home-card-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  margin-top: 2px;
  transition: color .15s, transform .15s;
}
.home-card:hover .home-card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Pull quote */
.home-quote-section {
  padding: 72px 0;
  background: var(--bg);
}

.home-pull-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-pull-quote blockquote {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 28px;
  font-style: italic;
  position: relative;
}

.home-pull-quote blockquote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0;
  color: var(--accent);
  opacity: .2;
  position: absolute;
  top: .5rem;
  left: -2rem;
}

.home-pull-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.home-quote-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.home-quote-role {
  font-size: .8rem;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .home-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-heading { font-size: 2.25rem; }
  .home-hero { padding: 56px 0 64px; }
  .home-hero-inner { flex-direction: column; gap: 32px; }
  .home-hero-photo { width: 160px; height: 160px; }
  .home-pull-quote blockquote { font-size: 1.2rem; }
  .home-pull-quote blockquote::before { display: none; }
}
