/* shared.css — mobile-first */
:root {
  --bg:      #090E13;
  --bg2:     #0D1319;
  --surface: #0F1820;
  --surf2:   #131F2A;
  --border:  #182535;
  --bord2:   #1E3045;
  --text:    #C4D4E2;
  --muted:   #486A85;
  --faint:   #253D52;
  --accent:  #3A7EAA;
  --acc2:    #5BA3CC;
  --light:   #E8F2FA;
  --serif:   'Playfair Display', Georgia, serif;
  --mono:    'IBM Plex Mono', monospace;
  --sans:    'IBM Plex Sans', system-ui, sans-serif;
  --topbar:  52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ════════════════════════════════════════
   MOBILE TOP BAR
   ════════════════════════════════════════ */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(9,14,19,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-logo {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  color: var(--light);
  text-decoration: none;
}

.hamburger {
  width: 36px; height: 36px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all .25s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════
   MOBILE DRAWER MENU
   ════════════════════════════════════════ */
#drawer {
  position: fixed;
  top: var(--topbar); left: 0; right: 0; bottom: 0;
  z-index: 299;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#drawer.open { transform: translateX(0); }

.drawer-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--bord2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  color: var(--acc2); margin-bottom: 12px;
}

.drawer-name {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  color: var(--light); margin-bottom: 4px;
}

.drawer-role {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
  line-height: 1.5;
}

.drawer-status {
  display: flex; align-items: center; gap: 7px; margin-bottom: 24px;
}

.drawer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc2);
  box-shadow: 0 0 5px rgba(91,163,204,.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.drawer-status span {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--acc2);
}

.drawer-divider { height: 1px; background: var(--border); margin: 16px 0; }

.drawer-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}

.drawer-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.drawer-nav a {
  display: block; padding: 11px 12px;
  font-size: 15px; color: var(--text);
  text-decoration: none; border-radius: 3px;
  transition: background .15s, color .15s;
  border-left: 2px solid transparent;
}

.drawer-nav a:hover { background: var(--surface); color: var(--acc2); border-left-color: var(--accent); }
.drawer-nav a.active { color: var(--acc2); border-left-color: var(--accent); background: var(--surface); }

.drawer-contact { display: flex; flex-direction: column; gap: 8px; }

.drawer-contact a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  text-decoration: none; transition: color .15s;
}

.drawer-contact a:hover { color: var(--acc2); }

.drawer-contact-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); flex-shrink: 0;
}

/* ════════════════════════════════════════
   MAIN CONTENT — MOBILE FIRST
   ════════════════════════════════════════ */
#main {
  padding: calc(var(--topbar) + 28px) 20px 40px;
}

/* ════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════ */
.page-eyebrow {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}

.page-title {
  font-family: var(--serif);
  font-size: 38px; font-weight: 700; color: var(--light);
  letter-spacing: -.01em; line-height: 1.05; margin-bottom: 14px;
}

.page-rule { height: 1px; background: var(--border); margin-bottom: 28px; }

.section-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}

.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.section-gap { margin-bottom: 52px; }

/* ════════════════════════════════════════
   CARDS
   ════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 20px;
  border-top: 3px solid var(--border);
  transition: border-top-color .2s, background .2s;
}

.card:hover { background: var(--surf2); border-top-color: var(--accent); }

/* ════════════════════════════════════════
   PILLS
   ════════════════════════════════════════ */
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }

.pill {
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  padding: 3px 8px; background: var(--bg2);
  color: var(--acc2); border: 1px solid rgba(58,126,170,.25);
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none;
  transition: all .2s; cursor: pointer; border: none;
}

.btn-primary { background: var(--accent); color: var(--light); font-weight: 500; }
.btn-primary:hover { background: var(--acc2); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--bord2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--acc2); }

/* ════════════════════════════════════════
   DESKTOP — sidebar layout kicks in
   ════════════════════════════════════════ */
@media (min-width: 768px) {

  body { display: flex; min-height: 100vh; }

  #topbar { display: none; }
  #drawer {
  position: sticky;
  top: 0;
  width: 260px;
  min-width: 260px;
  height: 100vh;
  overflow-y: auto;
  transform: translateX(0) !important;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  border-top: none;
  padding: 32px 24px;
  display: flex !important;
  flex-direction: column;
  transition: none !important;
}

  /* On desktop, show sidebar-style nav instead of drawer nav */
  .drawer-nav a { font-size: 13px; padding: 7px 10px; }

  #main {
    flex: 1; min-width: 0;
    padding: 48px 52px 64px;
    max-width: 900px;
  }

  .page-title { font-size: clamp(32px, 4vw, 48px); }
}
