:root {
  --navy: #14273f;
  --navy-soft: #1f3a5c;
  --accent: #8a6d3b;
  --accent-teal: #1f6f78;
  --ink: #22282f;
  --muted: #667180;
  --bg-alt: #f8f7f4;
  --border: #e6e4de;
  --white: #ffffff;
  --radius: 4px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.main-nav { display: flex; align-items: center; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 88px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-photo-wrap { flex: 0 0 188px; }
.hero-photo {
  width: 188px;
  height: 188px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
  background: var(--white);
}
.hero-text { flex: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9fb0c6;
  margin-bottom: 10px;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.5rem;
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}
.hero-sub {
  color: #c3ccd9;
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.section + .section,
.section-alt + .section,
.section + .section-alt {
  border-top: 1px solid var(--border);
}

.placeholder-text {
  color: var(--muted);
  font-style: italic;
  max-width: 700px;
  padding: 0 0 28px;
  font-size: 0.95rem;
}


.pub-group-title {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 36px 0 6px;
}
.pub-group-title:first-of-type { margin-top: 4px; }

.list-hint {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 16px;
}

/* Credentials & item cards (small static tiles inside a category tile) */
.credentials-grid, .expertise-grid, .apps-grid, .testimonials-grid, .item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 8px;
  border: 1px solid var(--border);
}
.credential-card, .expertise-card, .app-card, .testimonial-card, .item-card {
  background: var(--white);
  padding: 20px;
}

.credential-card h3, .expertise-card h3, .app-card h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}
.credential-card p, .expertise-card p, .app-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.item-card .pub-title {
  display: block;
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 600;
}
.item-card .pub-meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  margin-bottom: 16px;
  font-weight: 700;
  border: 1px solid var(--border);
}
.app-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.pub-link {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}

/* Category tiles — one tile per whole section (Qualifications, Publications, Faculty, Videos, etc.) */
.cat-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.cat-tile {
  grid-column: span 1;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tile-color, var(--navy));
  box-shadow: 0 8px 20px rgba(20, 39, 63, 0.14);
}
.cat-tile[open] {
  grid-column: 1 / -1;
  box-shadow: 0 12px 32px rgba(20, 39, 63, 0.16);
}
.cat-tile summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  color: var(--white);
}
.cat-tile summary::-webkit-details-marker { display: none; }
.cat-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.cat-tile-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}
.cat-tile-gist {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.5;
}
.cat-tile-toggle {
  margin-top: auto;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-tile-toggle::after { content: "Read more \2192"; }
.cat-tile[open] .cat-tile-toggle::after { content: "Show less \2191"; }
.cat-tile-body {
  background: var(--white);
  padding: 4px 26px 30px;
}

.cat-tile--teal { --tile-color: #1f6f78; }
.cat-tile--rust { --tile-color: #b1552f; }
.cat-tile--violet { --tile-color: #6b3fa0; }
.cat-tile--blue { --tile-color: #2f6fb0; }
.cat-tile--green { --tile-color: #3f7d4a; }
.cat-tile--gold { --tile-color: #a68a2e; }
.cat-tile--rose { --tile-color: #c1447a; }
.cat-tile--amber { --tile-color: #d17a1f; }

/* Videos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 8px;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-card h3 {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.gallery-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.gallery-item p {
  padding: 12px 14px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Testimonials */
.testimonial-card .quote {
  font-style: italic;
  color: var(--ink);
  margin: 0 0 12px;
}
.testimonial-card .author {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

/* Contact */
.contact-info p { font-size: 1rem; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info .btn-primary {
  background: var(--navy);
  color: var(--white);
  display: inline-block;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #9fb0c6;
  text-align: center;
  padding: 26px 0;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-sub { max-width: none; }
  .hero-text h1 { font-size: 2.1rem; }
  .section { padding: 56px 0; }
}
