:root {
  --mipcc-red: #E1251B;
  --mipcc-blue-light: #00B0E2;
  --mipcc-blue-deep: #1B4F8F;
  --gold: #C9A961;
  --gold-deep: #A8893E;
  --gold-soft: rgba(201, 169, 97, 0.15);
  --ink: #0E1B2C;
  --paper: #FAF7F2;
  --bone: #EFE9DE;
  --whisper: rgba(14, 27, 44, 0.6);
  --line: rgba(14, 27, 44, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4' /%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000;
  opacity: 0.05; mix-blend-mode: multiply;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { height: 84px; }
.nav-logo img { height: 100%; width: auto; }
.nav-links {
  display: flex; gap: 28px; list-style: none;
  font-size: 12px; font-weight: 500;
}
.nav-links a { color: var(--ink); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--mipcc-red); }
.nav-links a.current { color: var(--mipcc-red); border-bottom: 1px solid var(--mipcc-red); padding-bottom: 2px; }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.lang-toggle {
  display: flex; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.lang-toggle button {
  background: none; border: none; padding: 4px 6px;
  cursor: pointer; font-family: inherit; font-size: 11px;
  color: var(--whisper); transition: color 0.3s;
}
.lang-toggle button.active { color: var(--ink); font-weight: 600; }
.lang-toggle button:hover { color: var(--mipcc-red); }
.lang-toggle .sep { color: var(--whisper); align-self: center; }
.btn-primary {
  background: var(--mipcc-blue-deep); color: var(--paper);
  padding: 11px 22px; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s;
}
.btn-primary:hover { background: var(--mipcc-red); }

/* SECTIONS */
section { padding: 120px 48px; position: relative; }
.section-header {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px;
  margin-bottom: 64px; align-items: start;
}
.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--mipcc-red);
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500;
}
h2.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.0; font-weight: 400; letter-spacing: -0.025em;
  color: var(--ink); margin-top: 16px;
}
h2.section-title em { font-style: italic; font-weight: 300; color: var(--mipcc-blue-deep); }
.section-intro {
  font-family: 'Fraunces', serif;
  font-size: 19px; line-height: 1.55; font-weight: 300;
  color: var(--ink); max-width: 600px; margin-top: 22px;
}

/* Detail page header */
.page-header {
  padding: 160px 48px 80px;
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute;
  top: -20%; right: -10%; width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 28px; font-weight: 500;
}
.page-header .breadcrumb a {
  color: rgba(250, 247, 242, 0.6); text-decoration: none;
  margin-right: 12px;
}
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400; line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.page-header h1 em { font-style: italic; font-weight: 300; color: var(--gold); }
.page-header .lead {
  font-family: 'Fraunces', serif;
  font-size: 21px; font-weight: 300;
  line-height: 1.55; color: rgba(250, 247, 242, 0.85);
  max-width: 720px; margin-top: 28px; font-style: italic;
}

/* Buttons */
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  padding: 12px 0; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--mipcc-blue-deep);
  transition: all 0.3s;
}
.btn-link:hover { color: var(--mipcc-red); border-color: var(--mipcc-red); }
.btn-link-light {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--paper); border-bottom: 1px solid var(--gold);
  background: transparent; padding: 12px 0; text-decoration: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.3s;
}
.btn-link-light:hover { color: var(--gold); }
.btn-gold {
  background: var(--gold); color: var(--ink);
  padding: 14px 28px; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; cursor: pointer; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  transition: all 0.3s;
}
.btn-gold:hover { background: var(--paper); transform: translateY(-2px); }
.btn-on-dark {
  background: var(--gold); color: var(--ink);
  padding: 12px 22px; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s;
}
.btn-on-dark:hover { background: var(--paper); }
.btn-large {
  background: var(--mipcc-blue-deep); color: var(--paper);
  padding: 20px 48px; border: none;
  font-family: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; cursor: pointer; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s;
  display: inline-block; position: relative;
}
.btn-large:hover { background: var(--gold-deep); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--ink); color: rgba(250, 247, 242, 0.7);
  padding: 72px 48px 28px; border-top: 1px solid var(--gold);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.15);
}
.footer-logo {
  height: 60px; margin-bottom: 16px;
  filter: brightness(0) invert(1); opacity: 0.9;
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 340px; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 20px; font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 13px; }
.footer-col a {
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(250, 247, 242, 0.4);
  letter-spacing: 0.05em;
}

/* RESPONSIVE base */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; font-size: 11px; }
}
/* Mobile menu hamburger */
.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center;
  gap: 5px; align-items: center;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  z-index: 99;
  padding: 100px 32px 32px;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu ul {
  list-style: none;
  flex: 1;
}
.mobile-menu li {
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}
.mobile-menu a {
  display: block;
  padding: 20px 0;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover, .mobile-menu a.current {
  color: var(--gold);
}
.mobile-menu .menu-footer {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(250, 247, 242, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu .lang-toggle {
  justify-content: center;
}
.mobile-menu .lang-toggle button {
  color: rgba(250, 247, 242, 0.6);
  font-size: 13px;
}
.mobile-menu .lang-toggle button.active {
  color: var(--gold);
}
.mobile-menu .lang-toggle .sep {
  color: rgba(250, 247, 242, 0.4);
}
.mobile-menu .btn-primary {
  text-align: center;
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-actions .lang-toggle,
  .nav-actions .btn-primary { display: none; }
  .nav-logo { height: 56px; }
  .menu-toggle { display: flex; }
  section { padding: 80px 20px; }
  .section-header { grid-template-columns: 1fr; gap: 20px; }
  .page-header { padding: 110px 20px 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* SPEAKER BIO MODAL */
/* Note: modal overlay/visibility state is handled by inline styles in
   speakers.html and index.html (.bio-modal-overlay system). The rules below
   only cover shared inner content styling. */
.bio-modal-content {
  background: var(--paper);
  max-width: 880px; width: 100%;
  max-height: 88vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bio-modal-overlay.active .bio-modal-content {
  transform: translateY(0);
}
.bio-modal-photo {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.bio-modal-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(15%) contrast(1.02);
}
.bio-modal-photo.no-photo {
  background: linear-gradient(135deg, var(--mipcc-blue-deep) 0%, var(--ink) 100%);
  display: flex; align-items: center; justify-content: center;
}
.bio-modal-photo .placeholder-initial {
  font-family: 'Fraunces', serif;
  font-size: 96px; color: var(--gold);
  opacity: 0.4; font-weight: 300;
}
.bio-modal-body {
  padding: 40px 36px;
  overflow-y: auto;
  position: relative;
}
.bio-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink);
  transition: all 0.2s;
  z-index: 2;
}
.bio-modal-close:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.bio-modal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--mipcc-red);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 14px; font-weight: 500;
}
.bio-modal-name {
  font-family: 'Fraunces', serif;
  font-size: 30px; font-weight: 500;
  color: var(--ink); line-height: 1.15;
  margin-bottom: 8px;
}
.bio-modal-creds {
  font-size: 13px; color: var(--mipcc-blue-deep);
  font-weight: 600; margin-bottom: 12px;
}
.bio-modal-affil {
  font-size: 14px; color: var(--mipcc-blue-deep);
  font-weight: 500; padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px dotted var(--line);
}
.bio-modal-title-line {
  font-size: 14px; color: var(--whisper);
  line-height: 1.6; margin-bottom: 24px;
  font-style: italic;
}
.bio-modal-text {
  font-size: 15px; color: var(--ink);
  line-height: 1.75;
}
.bio-modal-text p {
  margin-bottom: 14px;
}
.bio-modal-text p:last-child { margin-bottom: 0; }

/* "Read bio" button */
.read-bio-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: none;
  color: var(--mipcc-blue-deep);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 14px;
  border-bottom: 1px solid var(--mipcc-blue-deep);
  transition: all 0.3s;
}
.read-bio-btn:hover {
  color: var(--mipcc-red);
  border-bottom-color: var(--mipcc-red);
  gap: 12px;
}
.read-bio-btn::after { content: '→'; }

@media (max-width: 768px) {
  .bio-modal { padding: 0; }
  .bio-modal-content {
    grid-template-columns: 1fr;
    max-height: 100vh;
    height: 100vh;
  }
  .bio-modal-photo {
    aspect-ratio: 16/10;
    max-height: 240px;
  }
  .bio-modal-body { padding: 28px 22px; }
  .bio-modal-name { font-size: 24px; }
}
