:root { --bg: #EEF2F9; --surface: #FFFFFF; --text: #0F141F; --muted: #4A5368; --subtle: #788296; --accent: #0066CC; --indigo: #5856D6; --accent-bg: rgba(0,102,204,0.10); --indigo-bg: rgba(88,86,214,0.10); --glass: rgba(255,255,255,0.58); --glass-strong: rgba(255,255,255,0.78); --glass-stroke: rgba(255,255,255,0.75); --border: rgba(15,23,42,0.08); --shadow: 0 8px 24px rgba(15,23,42,0.05), 0 1px 2px rgba(15,23,42,0.03); --shadow-lg: 0 18px 42px rgba(0,102,204,0.11), 0 4px 10px rgba(15,23,42,0.04); --ease: cubic-bezier(0.22,1,0.36,1); }
html[data-theme='dark'] { --bg: #0A0E17; --surface: #141B2D; --text: #F5F7FA; --muted: #A6B0C3; --subtle: #6E788C; --accent: #409CFF; --indigo: #7D7AFF; --accent-bg: rgba(64,156,255,0.16); --indigo-bg: rgba(125,122,255,0.16); --glass: rgba(20,27,45,0.60); --glass-strong: rgba(24,33,54,0.82); --glass-stroke: rgba(255,255,255,0.14); --border: rgba(255,255,255,0.09); --shadow: 0 10px 28px rgba(0,0,0,0.38); --shadow-lg: 0 18px 42px rgba(0,0,0,0.55); }
*, *::before, *::after { box-sizing: border-box; }
body.macos-canvas { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.ambient-stage { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.62; }
html[data-theme='dark'] .orb { opacity: 0.30; }
.orb-1 { width: 580px; height: 580px; top: -180px; left: -100px; background: radial-gradient(circle, #5AC8FA 0%, transparent 70%); }
.orb-2 { width: 640px; height: 640px; top: -140px; right: -120px; background: radial-gradient(circle, #A78BFA 0%, transparent 70%); }
.orb-3 { width: 540px; height: 540px; bottom: 5%; left: 26%; background: radial-gradient(circle, #34D399 0%, transparent 72%); }
.frosted-nav-shell { position: sticky; top: 16px; z-index: 100; max-width: 1240px; margin: 16px auto 0; padding: 0 24px; }
.frosted-nav-bar, .frosted-popover, .segmented-glass, .glass-btn, .frosted-modal { background: var(--surface); border: 1px solid var(--border); }
@supports ((backdrop-filter: blur(28px)) or (-webkit-backdrop-filter: blur(28px))) {
  .frosted-nav-bar, .segmented-glass, .glass-btn { background: var(--glass); backdrop-filter: saturate(200%) blur(28px); -webkit-backdrop-filter: saturate(200%) blur(28px); box-shadow: 0 12px 34px rgba(15,23,42,0.08), inset 0 1px 0 var(--glass-stroke); }
  .frosted-popover, .frosted-modal { background: var(--glass-strong); backdrop-filter: saturate(210%) blur(34px); -webkit-backdrop-filter: saturate(210%) blur(34px); box-shadow: 0 24px 54px rgba(15,23,42,0.18), inset 0 1px 0 var(--glass-stroke); }
}
.frosted-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-radius: 999px; }
.brand-monogram { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.9rem; color: var(--text); text-decoration: none; padding: 4px 10px; }
.brand-monogram .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--indigo)); }
.nav-track { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-link { color: var(--text); text-decoration: none; font-size: 0.81rem; font-weight: 600; letter-spacing: 0.03em; padding: 6px 12px; border-radius: 999px; transition: background 0.18s var(--ease), color 0.18s var(--ease); }
.nav-link:hover { background: var(--accent-bg); color: var(--accent); }
.nav-sep { color: var(--subtle); opacity: 0.5; user-select: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.glass-btn { appearance: none; color: var(--text); font-size: 0.78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: transform 0.15s var(--ease), border-color 0.15s; }
.glass-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.frosted-popover { position: absolute; top: calc(100% + 10px); right: 24px; width: 330px; padding: 16px; border-radius: 20px; }
.pop-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.pop-head button { background: none; border: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; }
.pop-links { display: flex; flex-direction: column; gap: 6px; }
.pop-links a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.pop-links a:hover { background: var(--accent-bg); }
.pop-links span { font-size: 0.76rem; color: var(--muted); }
.shell { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hero-stage { margin-top: 24px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; grid-template-columns: 390px 1fr; align-items: stretch; overflow: hidden; min-height: 410px; }
.hero-photo-col { position: relative; background: linear-gradient(90deg, var(--accent-bg), transparent); }
.hero-photo-fade { width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to right, #000 46%, rgba(0,0,0,0.62) 74%, transparent 100%); mask-image: linear-gradient(to right, #000 46%, rgba(0,0,0,0.62) 74%, transparent 100%); }
.hero-img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; object-position: center top; display: block; }
.hero-bio-col { padding: 44px 48px 44px 16px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 13px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-size: 0.75rem; font-weight: 600; margin-bottom: 12px; }
.eyebrow-pill .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-name { font-size: clamp(2.6rem, 4.8vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; margin: 0 0 8px; }
.hero-role { font-size: 1.22rem; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.hero-bio { font-size: 0.97rem; color: var(--muted); margin: 0 0 22px; max-width: 66ch; }
.metrics-bar { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 14px; margin-bottom: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--subtle); }
.metrics-bar div { display: flex; align-items: baseline; gap: 8px; }
.metrics-bar strong { font-size: 1.12rem; color: var(--text); }
.tab-num { font-variant-numeric: tabular-nums; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.primary-btn { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: linear-gradient(180deg, #0077ED, #0062C4); color: #FFF; font-size: 0.85rem; font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px rgba(0,102,204,0.3); }
.text-link { color: var(--accent); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.hairline { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,102,204,0.22), transparent); margin: 36px 0; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.band-title { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.band-sub { font-size: 0.86rem; color: var(--subtle); display: block; }
.segmented-glass { display: inline-flex; padding: 4px; border-radius: 999px; }
.seg { text-decoration: none; font-size: 0.78rem; font-weight: 600; color: var(--muted); padding: 6px 14px; border-radius: 999px; }
.seg.active, .seg:hover { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.four-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tonal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; min-height: 235px; transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s; }
.tonal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,102,204,0.35); }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--subtle); margin-bottom: 12px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.badge-indigo { background: var(--indigo-bg); color: var(--indigo); }
.card-title { font-size: 1.03rem; font-weight: 650; line-height: 1.35; margin: 0 0 10px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-excerpt { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; flex-grow: 1; }
.card-excerpt p { margin: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.ql-btn { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 0.73rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.ql-btn:hover { border-color: var(--accent); color: var(--accent); }
.single-wrap { padding-top: 32px; padding-bottom: 64px; }
.article-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 44px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; }
.sheet-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 12px 0 8px; }
.sheet-meta { font-size: 0.86rem; color: var(--subtle); }
.sheet-prose { font-size: 1.02rem; color: var(--muted); line-height: 1.7; }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,23,0.4); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop[hidden] { display: none; }
.frosted-modal { max-width: 520px; width: 100%; border-radius: 26px; padding: 28px; }
.ql-body { font-size: 0.94rem; color: var(--muted); margin: 12px 0 22px; }
.site-footer { margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--subtle); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
@media (max-width: 1040px) { .four-grid { grid-template-columns: repeat(2, 1fr); } .hero-stage { grid-template-columns: 300px 1fr; } }
@media (max-width: 740px) { .hero-stage { grid-template-columns: 1fr; } .hero-photo-fade { -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); } .hero-img { min-height: 280px; max-height: 310px; } .hero-bio-col { padding: 24px; } .four-grid { grid-template-columns: 1fr; } .frosted-nav-bar { border-radius: 22px; flex-wrap: wrap; } }

/* Full-Rectangle Image Background Cards Fading White to Bottom */
.visual-fade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  border-radius: 22px;
  overflow: hidden;
  padding: 18px 20px 20px;
  text-decoration: none;
  background-color: #FFFFFF;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.visual-fade-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 42px rgba(0, 102, 204, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: rgba(0, 102, 204, 0.38);
}

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.visual-fade-card:hover .card-bg-img {
  transform: scale(1.04);
}

/* Fades from transparent at the top to crisp solid white at the bottom for title legibility */
.card-fade-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.18) 32%,
    rgba(255, 255, 255, 0.84) 64%,
    #FFFFFF 88%,
    #FFFFFF 100%
  );
}

html[data-theme="dark"] .card-fade-overlay {
  background: linear-gradient(
    180deg,
    rgba(20, 27, 45, 0.05) 0%,
    rgba(20, 27, 45, 0.35) 34%,
    rgba(20, 27, 45, 0.88) 65%,
    #141B2D 88%,
    #141B2D 100%
  );
}

.card-top-pills {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-top-pills .badge {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.card-year {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1D1D1F;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3px 9px;
  border-radius: 999px;
}

.card-bottom-title-wrap {
  position: relative;
  z-index: 2;
  padding-top: 48px;
}

.card-title-only {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text);
}


/* ==========================================================================
   LEFT-ALIGNED NAV + EXPANDABLE SEARCH BAR + SINGLE-ROW HORIZONTAL CAROUSEL
   ========================================================================== */
.frosted-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 999px;
}

.nav-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

/* Expandable Right Search Control */
.nav-search-cluster {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.expandable-search-wrap {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2px;
  transition: width 0.28s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.expandable-search-wrap.is-open {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 102, 204, 0.38);
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}

.frosted-search-input {
  width: 0;
  opacity: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  padding: 0;
  outline: none;
  transition: width 0.28s var(--ease), opacity 0.2s ease, padding 0.2s ease;
}

.expandable-search-wrap.is-open .frosted-search-input {
  width: 230px;
  opacity: 1;
  padding: 6px 10px 6px 14px;
}

.search-icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.search-icon-btn:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

/* Frosted Instant Search Results Popover */
.frosted-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 24px;
  width: min(420px, calc(100vw - 48px));
  max-height: 380px;
  overflow-y: auto;
  padding: 16px;
  border-radius: 22px;
  background: var(--glass-strong);
  backdrop-filter: saturate(210%) blur(32px);
  -webkit-backdrop-filter: saturate(210%) blur(32px);
  border: 1px solid var(--border);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18), inset 0 1px 0 var(--glass-stroke);
  z-index: 150;
}

.frosted-search-dropdown[hidden] {
  display: none;
}

.search-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

/* Single-Line Horizontal Carousel Track + Right/Left Frosted Arrows */
.section-all-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 16px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* ~3.25 cards visible on desktop so the 4th card peeks off the right edge like the wireframe */
.carousel-slide {
  flex: 0 0 320px;
  max-width: 320px;
  scroll-snap-align: start;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(200%) blur(20px);
  -webkit-backdrop-filter: saturate(200%) blur(20px);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16), inset 0 1px 0 #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-arrow[hidden] {
  display: none;
}

.carousel-arrow:hover {
  background: #FFFFFF;
  color: var(--accent);
  transform: translateY(-55%) scale(1.06);
  box-shadow: 0 14px 32px rgba(0, 102, 204, 0.22);
}

.arrow-next {
  right: -14px;
}

.arrow-prev {
  left: -14px;
}

@media (max-width: 740px) {
  .carousel-slide {
    flex: 0 0 275px;
    max-width: 275px;
  }
  .arrow-next {
    right: 4px;
  }
  .arrow-prev {
    left: 4px;
  }
  .expandable-search-wrap.is-open .frosted-search-input {
    width: 160px;
  }
}


/* Hero Academic & Social Icon Bar */
.hero-socials-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0, 102, 204, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.social-pill svg {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}

.social-pill:hover {
  background: var(--accent-bg);
  border-color: rgba(0, 102, 204, 0.35);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.12);
}

.social-pill:hover svg {
  transform: scale(1.08);
}


/* Mobile Responsive Header Adjustments */
.mobile-nav-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-brand-title {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu-toggle {
  appearance: none;
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.mobile-drawer-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  right: 20px;
  background: var(--glass-strong);
  backdrop-filter: saturate(210%) blur(32px);
  -webkit-backdrop-filter: saturate(210%) blur(32px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 150;
}

.mobile-drawer-menu[hidden] {
  display: none;
}

.mobile-drawer-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-drawer-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

@media (max-width: 880px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav-header {
    display: flex !important;
  }
  .frosted-nav-bar {
    padding: 10px 16px;
  }
}


/* Single-row scaled navigation */
.frosted-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.frosted-nav-bar::-webkit-scrollbar {
  display: none;
}
.nav-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 6px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}
.nav-sep {
  color: var(--subtle);
  font-size: 0.7rem;
  opacity: 0.5;
  user-select: none;
}
.nav-search-cluster {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}


/* Horizontally Scrollable Single-Row Mobile Navbar */
.frosted-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.frosted-nav-bar::-webkit-scrollbar {
  display: none;
}
.nav-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 8px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}
.nav-sep {
  color: var(--subtle);
  font-size: 0.75rem;
  opacity: 0.5;
  user-select: none;
}
.nav-search-cluster {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}


/* Pristine Desktop Navbar & Properly Spaced Burger + MENU on Mobile */
.frosted-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.nav-sep {
  color: var(--subtle);
  font-size: 0.8rem;
  opacity: 0.5;
  user-select: none;
}

.mobile-nav-header {
  display: none;
  align-items: center;
  padding-left: 6px;
}

.mobile-menu-toggle {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.hamburger-icon-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu-label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.mobile-drawer-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 20px;
  right: 20px;
  background: var(--glass-strong);
  backdrop-filter: saturate(210%) blur(32px);
  -webkit-backdrop-filter: saturate(210%) blur(32px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 150;
}

.mobile-drawer-menu[hidden] {
  display: none;
}

.mobile-drawer-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-drawer-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav-header {
    display: flex !important;
  }
}


/* Compact & Symmetrical Section Spacing (Hero Protected) */

/* 1. Keep clean breathing room between the navbar and the main Hero card */
.frosted-nav-shell {
  margin-bottom: 24px !important;
}

/* 2. Target ONLY the content bands (those containing .band-head), leaving the Hero card untouched */
section:has(.band-head),
.section-band,
.content-band {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 3. Symmetrical, compact spacing before and after each hairline divider */
.hairline {
  margin-top: 22px !important;
  margin-bottom: 22px !important;
}

/* 4. Tight, consistent header and carousel spacing so top/bottom of hairline match visually */
.band-head {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.carousel-stage {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.carousel-track {
  padding-top: 4px !important;
  padding-bottom: 8px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* Fix Card Frame & Subpixel Bleed */
.visual-fade-card,
.carousel-slide > a,
.carousel-slide > article {
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fixes Safari/macOS corner bleed */
}

/* Prevent dark photo edges from peeking out around the bottom white fade */
.card-bg-img {
  inset: 0 !important;
  border-radius: inherit !important;
}

.card-fade-overlay {
  inset: -1px !important; /* Overlaps by 1px to eliminate dark sub-pixel rim at bottom corners */
  border-radius: inherit !important;
}


/* Active Menu Item - macOS / visionOS Tactile Glass Pill */
.frosted-nav-bar a,
.nav-track a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  text-decoration: none;
}

.frosted-nav-bar a.is-active,
.frosted-nav-bar li.active > a,
.frosted-nav-bar a[aria-current="page"],
.nav-track a.is-active,
.nav-track li.active > a {
  background: linear-gradient(145deg, rgba(226, 234, 248, 0.65) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(218, 228, 245, 0.72) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 
    inset 0 2px 5px rgba(148, 163, 184, 0.28),
    inset 0 -1px 2px rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(15, 23, 42, 0.05) !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
}

/* Subtle hover preview for inactive items */
.frosted-nav-bar a:not(.is-active):hover,
.nav-track a:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Hide deprecated email */
a[href*="contact@karimdarban.com"] { display: none !important; }


/* Ensure eyebrow pill on Opinion Pieces cards has crisp frosted white background */
#opinion-pieces .eyebrow-pill,
.visual-fade-card .eyebrow-pill {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}
