/* ============================================================
   Carl F. Fey — Executive Minimal theme
   ============================================================ */

:root {
  --navy: #0b1524;
  --navy-2: #142033;
  --navy-3: #1b2b45;
  --ink: #16202e;
  --paper: #f7f6f2;
  --paper-2: #ffffff;
  --muted: #5c6570;
  --muted-2: #8a92a3;
  --gold: #c8a24a;
  --gold-light: #e3c988;
  --gold-dark: #8a6d24;
  --line: #e4e1d8;
  --line-dark: #29374d;
  --radius: 3px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}

section { padding: 88px 0; }
@media (max-width: 700px) {
  section { padding: 56px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: 2rem;
  margin-top: 10px;
  line-height: 1.2;
}
.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.02rem;
}
.on-dark .section-head p { color: #b7c0cd; }

/* ---------------- Top bar ----------------
   A horizontal rule, the section links, then a second rule.
   ------------------------------------------------------- */

.topbar {
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.topbar-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 46px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.topbar a {
  color: #d7dce4;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.topbar a:hover,
.topbar a:focus-visible { color: var(--gold); }

/* ---------------- Hero ---------------- */

.hero-simple {
  padding: 60px 0 68px;
  text-align: center;
}
.hero-simple .photo-frame {
  width: 352px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 32px;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  overflow: hidden;
}
.hero-simple .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}
.hero-simple h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: 0.01em;
}
.hero-simple .role {
  margin: 14px 0 0;
  color: #cfd6e0;
  line-height: 1.6;
}
.hero-simple .contact-inline {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.hero-simple .contact-inline a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 1.02rem;
}
.hero-simple .contact-inline a:hover { text-decoration: underline; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.footer-inner a { color: var(--gold-light); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ---------------- Nav ---------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 21, 36, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-nav.scrolled {
  border-bottom-color: var(--line-dark);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.brand strong { color: var(--gold); font-weight: 700; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #d7dce4;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem !important;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 10px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 18px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-cta { display: inline-block; width: fit-content; }
}

/* ---------------- Hero ---------------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200, 162, 74, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 168px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero .eyebrow { color: var(--gold); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-top: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero .lede {
  margin-top: 22px;
  font-size: 1.12rem;
  color: #cfd6e0;
  max-width: 58ch;
}
.hero .cta-row {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { border-color: rgba(22,32,46,0.25); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* Monogram badge */
.monogram-wrap { display: flex; justify-content: center; }
.monogram {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(200,162,74,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(200,162,74,0.14), transparent 60%);
}
.monogram::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(200,162,74,0.25);
}
.monogram span {
  font-family: var(--serif);
  font-size: 4.4rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) { .monogram-wrap { display: none; } }

/* Stat bar */
.stat-bar {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: #fff;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-grid p { margin: 0 0 16px; color: var(--ink); }
.about-grid .lede-lg {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
}
.pull-line {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin: 28px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy-3);
}

.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.fact-list li:first-child { padding-top: 0; }
.fact-list b { min-width: 96px; color: var(--muted); font-weight: 600; }

/* ---------------- Highlights ---------------- */

.bg-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .highlight-grid { grid-template-columns: 1fr; } }

.hcard {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 26px 24px;
  border-radius: var(--radius);
}
.hcard .mark {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}
.hcard h3 {
  font-size: 1.05rem;
  margin-top: 12px;
  line-height: 1.35;
  color: var(--ink);
}
.hcard p {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------------- Publications ---------------- */

.pub-tabs { margin-bottom: 30px; }
.pub-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.pub-tab-labels {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.pub-tab-labels label {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
  user-select: none;
}
#tab-exec:checked ~ .pub-tabs .pub-tab-labels label[for="tab-exec"],
#tab-acad:checked ~ .pub-tabs .pub-tab-labels label[for="tab-acad"] {
  background: var(--navy);
  color: #fff;
}

.pub-panel { display: none; }
#tab-exec:checked ~ .pub-panels #panel-exec { display: block; }
#tab-acad:checked ~ .pub-panels #panel-acad { display: block; }

.pub-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: -14px 0 28px;
}

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
}
.pub-item:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .pub-item { grid-template-columns: 1fr; gap: 4px; }
}
.pub-year {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-dark);
}
.pub-body h4 {
  font-size: 1.02rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}
.pub-body .venue {
  font-style: italic;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.pub-body .authors {
  color: var(--muted-2);
  font-size: 0.86rem;
  margin-top: 4px;
}
.pub-body a.doi {
  font-size: 0.82rem;
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-dark);
}

.pub-more { margin-top: 30px; font-size: 0.92rem; color: var(--muted); }

/* ---------------- Experience timeline ---------------- */

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold);
}
.tl-date {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}
.tl-item h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.06rem;
  margin-top: 6px;
  color: var(--ink);
}
.tl-item .org { color: var(--muted); font-size: 0.92rem; }
.tl-item p.desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 68ch;
}

/* ---------------- Media ---------------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .media-grid { grid-template-columns: 1fr; } }

.mcard {
  border: 1px solid var(--line-dark);
  background: var(--navy-2);
  padding: 22px;
  border-radius: var(--radius);
  text-decoration: none;
  display: block;
  transition: border-color .2s ease, transform .15s ease;
}
.mcard:hover { border-color: var(--gold); transform: translateY(-2px); }
.mcard .mtop {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.mcard .mtop .date { color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.mcard h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.06rem;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}
.mcard .watch {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #cfd6e0;
}
.media-note { margin-top: 26px; font-size: 0.9rem; color: var(--muted-2); }

/* ---------------- Consulting ---------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
}

/* ---------------- Contact / Footer ---------------- */

.contact {
  background: var(--navy);
  color: #fff;
}
.contact .section-head p { color: #b7c0cd; }
.contact-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-links a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-links a:hover { text-decoration: underline; }
.contact-meta { color: var(--muted-2); font-size: 0.9rem; max-width: 34ch; }

footer.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  padding: 22px 0 34px;
  color: var(--muted-2);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
