/* ─────────────────────────────────────────────
   The Catalyst page — catalyst.html
   ───────────────────────────────────────────── */

/* ─── Page base & variables ─── */
body.page-catalyst {
  --cat-bg:           #0c1c34;
  --cat-text:         #ede8de;
  --cat-muted:        #6a7b95;
  --cat-gold:         #5B9BD5;
  --cat-gold-dim:     rgba(91,155,213,0.10);
  --cat-gold-border:  rgba(91,155,213,0.28);
  --cat-border:       rgba(255,255,255,0.07);
  --cat-card:         #0d1e36;
  --cat-nav-h:        54px;

  background: var(--cat-bg);
  color: var(--cat-text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ─── Top nav ─── */
.cat-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--cat-nav-h);
  display: flex;
  align-items: stretch;
  padding: 0 24px;
  z-index: 200;
  background: rgba(10,22,40,0.97);
  border-bottom: 1px solid var(--cat-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Home photo */
.cat-nav__home {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.cat-nav__home__img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--cat-gold-border);
  transition: opacity 0.2s, transform 0.2s;
}

.cat-nav__home__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.cat-nav__home:hover .cat-nav__home__img { opacity: 0.78; transform: scale(1.05); }

/* Section tabs */
.cat-nav__sections {
  display: flex;
  align-items: stretch;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav__sections::-webkit-scrollbar { display: none; }

.csn-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding: 0 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cat-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
  top: 1px;
}

.csn-link:hover  { color: var(--cat-text); }
.csn-link.active { color: var(--cat-gold); border-bottom-color: var(--cat-gold); }

/* THE HUMAN → link */
.cat-nav__human {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cat-gold);
  white-space: nowrap;
  padding-left: 20px;
  margin-left: 8px;
  border-left: 1px solid var(--cat-border);
  transition: opacity 0.2s;
}
.cat-nav__human:hover { opacity: 0.70; }

/* Page title label in nav — hidden on desktop, shown on mobile */
.cat-nav__title {
  display: none;
}

/* Sidebar: removed */
.cat-sidebar { display: none; }

/* Mobile tab bar: hidden on desktop */
.cat-tabbar { display: none; }

/* ─── Main content ─── */
.cat-main {
  margin-left: 0;
  padding-top: var(--cat-nav-h);
  min-height: 100vh;
}

/* ─── Section shared ─── */
.cat-section {
  padding: 72px 120px;
  border-bottom: 1px solid var(--cat-border);
  max-width: 1100px;
}
.cat-section:last-child { border-bottom: none; }

/* Scroll reveal */
.js-ready .cat-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .cat-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section headings */
.cat-sh {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #91C0E8;
  margin-bottom: 40px;
}

/* ─────────────────────────
   ABOUT
───────────────────────── */
.about-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 740px;
}

.about-bullets li {
  font-size: 15.5px;
  line-height: 1.72;
  color: #b4bfd4;
  padding-left: 20px;
  border-left: 1.5px solid var(--cat-gold-border);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

.ab-hl {
  color: #91C0E8;
  font-weight: 600;
}

/* ─────────────────────────
   EXPERIENCE
───────────────────────── */

/* Sticky logo progress tracker — breaks out of section padding to span full section width */
.exp-tracker {
  position: sticky;
  top: var(--cat-nav-h);
  z-index: 100;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(12,28,52,0.97);
  border-bottom: 1px solid var(--cat-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin: 0 -120px 48px;
  padding: 0 120px;
}
.exp-tracker::-webkit-scrollbar { display: none; }

@media (min-width: 901px) {
  .exp-tracker {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 0 60px 0 175px;
  }
}

/* Each logo item — fixed 52px logo slot so all logos share the same horizontal plane */
.exp-tracker-item {
  flex-shrink: 0;
  display: grid;
  grid-template-rows: 52px auto;
  align-items: center;
  justify-items: center;
  gap: 5px;
  padding: 8px 18px 10px;
  opacity: 0.55;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.25s, border-color 0.25s, background 0.2s;
  position: relative;
  bottom: -1px;
}
.exp-tracker-item:hover  { opacity: 0.72; background: rgba(91,155,213,0.04); }
.exp-tracker-item.active {
  opacity: 1;
  border-bottom-color: var(--cat-gold);
  background: rgba(91,155,213,0.07);
}

/* Brand logos — white filter */
.exp-tracker-item img {
  height: 26px;
  width: 72px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

/* Glassdoor — transparent PNG, match white silhouette style of other logos */
.exp-tracker-item--glassdoor img {
  filter: brightness(0) invert(1);
  height: 50px;
  width: auto;
}

/* Business Advisory — circular photo, grayscale */
.exp-tracker-item--photo img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) brightness(1.1);
}

.exp-tracker-yr {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cat-muted);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.exp-tracker-item.active .exp-tracker-yr { color: var(--cat-gold); }

/* Role cards — stacked vertically */
.exp-role-card {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--cat-border);
  margin-bottom: 64px;
  scroll-margin-top: 145px; /* nav 58px + tracker ~73px + buffer */
}
.exp-role-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@keyframes catFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.exp-co-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--cat-text);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  line-height: 1.1;
}

/* Company tagline/description */
.exp-co-tagline {
  font-size: 20px;
  color: var(--cat-muted);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 28px;
  line-height: 1.5;
  max-width: 680px;
}

/* Continuous gold left border wraps role header + bullets */
.exp-role-body {
  border-left: 2px solid var(--cat-gold);
  padding-left: 20px;
}

.exp-role-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: 20px;
}

.exp-role-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--cat-text);
  font-family: 'DM Sans', sans-serif;
}

.exp-role-years {
  font-size: 13px;
  color: var(--cat-muted);
  font-family: 'DM Sans', sans-serif;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}

.exp-bullets li {
  font-size: 14.5px;
  line-height: 1.68;
  color: #9aadc6;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

/* ─────────────────────────
   SKILLS & TOOLS
───────────────────────── */
.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 780px;
}

.skill-group-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #91C0E8;
  margin-bottom: 14px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #b4bfd4;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 6px 15px;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.18s, border-color 0.18s;
}
.skill-pill:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

/* ─────────────────────────
   EDUCATION
───────────────────────── */
.edu-items {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 680px;
}

.edu-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.edu-yr {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: #91C0E8;
  min-width: 56px;
  text-align: right;
  padding-top: 2px;
  flex-shrink: 0;
}

.edu-school {
  font-size: 15px;
  font-weight: 600;
  color: var(--cat-text);
  margin-bottom: 5px;
  font-family: 'DM Sans', sans-serif;
}

.edu-degree {
  font-size: 18px;
  color: var(--cat-muted);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.3;
}

/* ─────────────────────────
   LEADERSHIP & GROWTH
───────────────────────── */
.lg-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.lg-item {
  padding: 20px 24px;
  background: var(--cat-card);
  border: 1px solid var(--cat-border);
  border-left: 2px solid var(--cat-gold-border);
  border-radius: 3px;
  transition: border-left-color 0.2s, background 0.2s;
}
.lg-item:hover {
  border-left-color: var(--cat-gold);
  background: rgba(91,155,213,0.04);
}

.lg-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--cat-text);
  margin-bottom: 5px;
  font-family: 'DM Sans', sans-serif;
}

.lg-detail {
  font-size: 13px;
  color: var(--cat-muted);
  font-family: 'DM Sans', sans-serif;
}

/* ─────────────────────────
   HIRE ME
───────────────────────── */
.cat-section--hire {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hire-closing {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--cat-text);
  margin-top: 56px;
  margin-bottom: 0;
  max-width: 560px;
  line-height: 1.35;
  opacity: 0.88;
}
.built-with {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 24px;
}

.hire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hire-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  background: transparent;
  color: var(--cat-gold);
  border: 1.5px solid var(--cat-gold);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.hire-btn:hover {
  background: rgba(91,155,213,0.10);
  border-color: var(--cat-gold);
}

/* ─────────────────────────
   MOBILE  ≤900px
───────────────────────── */
@media (max-width: 900px) {

  .cat-nav__sections { display: none; }

  /* THE CATALYST label — inline-flex + align-self:center so text and underline stay together */
  .cat-nav__home { margin-right: 0; }

  .cat-nav__title {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-right: auto;
    margin-left: 20px;
    padding-bottom: 3px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #91C0E8;
    white-space: nowrap;
    border-bottom: 2px solid #5B9BD5;
  }

  .cat-tabbar {
    display: flex;
    position: fixed;
    top: var(--cat-nav-h);
    left: 0; right: 0;
    height: 44px;
    background: rgba(12,28,52,0.98);
    border-bottom: 1px solid var(--cat-border);
    z-index: 150;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .cat-tabbar::-webkit-scrollbar { display: none; }

  .ctb-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cat-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
  }
  .ctb-link         { opacity: 0.75; }
  .ctb-link:hover   { color: var(--cat-text); opacity: 0.80; }
  .ctb-link.active  { color: var(--cat-gold); border-bottom-color: var(--cat-gold); opacity: 1; }

  .cat-main { padding-top: calc(var(--cat-nav-h) + 44px); }

  .cat-section { padding: 48px 24px; max-width: none; }
  .cat-section--hire { min-height: auto; justify-content: flex-start; }

  .exp-co-tagline { max-width: none; }

  .exp-role-years { display: none; }

  .exp-role-title { display: block; margin-bottom: 18px; }

  .exp-tracker {
    top: calc(var(--cat-nav-h) + 44px);
    margin: 0 -24px 36px;
    padding: 0 24px;
  }
  .exp-tracker-item { padding: 6px 10px 8px; grid-template-rows: 36px auto; }
  .exp-tracker-item img { width: 48px; height: 20px; }
  .exp-tracker-item--glassdoor img { height: 32px; width: auto; }
  .exp-tracker-item--photo img { height: 28px; width: 28px; }

  .exp-role-card {
    scroll-margin-top: 185px; /* nav + tabbar + tracker */
    padding-bottom: 48px;
    margin-bottom: 48px;
  }

  .hire-closing  { font-size: 20px; margin-top: 36px; margin-bottom: 0; }
  .exp-co-name   { font-size: 28px; }
  .exp-co-tagline { font-size: 17px; }
  .exp-role-title { font-size: 17px; }
  .about-bullets li { font-size: 14.5px; }
  .edu-yr    { font-size: 20px; min-width: 46px; }
  .edu-degree { font-size: 16px; }
  .cat-sh    { font-size: 18px; margin-bottom: 26px; }
  .skill-group-label { font-size: 12px; }

  .cat-nav__human {
    align-self: center;
    padding-bottom: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  .hire-btn { font-size: 10px; padding: 11px 20px; }

  /* Hire Me — mobile layout */
  .hire-closing { font-size: 20px; }
  .hire-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hire-btn {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .hire-btn--primary,
  .hire-btn--secondary {
    background: rgba(255,255,255,0.04);
    color: #b4bfd4;
    border: 1px solid rgba(255,255,255,0.12);
  }
  .hire-btn--primary:hover,
  .hire-btn--secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.22);
  }
  .hire-btn--ghost {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.04);
    color: #b4bfd4;
    border: 1px solid rgba(255,255,255,0.12);
  }
  .hire-btn--ghost:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.22);
  }
  .hire-closing { color: #91C0E8; }
}

/* ─────────────────────────
   EXPERIENCE — Desktop layout (min-width: 901px)
───────────────────────── */
@media (min-width: 901px) {

  /* Border moves from .exp-role-body → .exp-role-card, wrapping entire entry */
  .exp-role-card {
    border-left: 2px solid #2a3545;
    padding-left: 24px;
  }
  .exp-role-card--active {
    border-left-color: var(--cat-gold);
  }

  /* Remove border from .exp-role-body (now on card) */
  .exp-role-body {
    border-left: none;
    padding-left: 0;
  }

  /* Company name + year on same line */
  .exp-co-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }
  .exp-co-name { margin-bottom: 0; }

  /* Year — muted for past roles, gold for active */
  .exp-role-years { color: var(--cat-muted); }
  .exp-role-card--active .exp-role-years { color: var(--cat-gold); }

  /* Tagline — breathing room below company name, full width */
  .exp-co-tagline {
    font-size: 17px;
    margin-top: 8px;
    max-width: none;
  }

  /* Job title — uppercase, muted for past, gold for active */
  .exp-role-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--cat-muted);
    margin-top: 18px;
    margin-bottom: 18px;
  }
  .exp-role-card--active .exp-role-title { color: var(--cat-gold); }

  /* Bullets — full width, matching year boundary */
  .exp-bullets { max-width: none; }

  /* Bullets — 15px body text + colored dot */
  .exp-bullets li {
    font-size: 15px;
    padding-left: 18px;
    position: relative;
  }
  .exp-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2a3545;
    font-size: 15px;
    line-height: 1.68;
  }
  .exp-role-card--active .exp-bullets li::before {
    color: var(--cat-gold);
  }
}

/* ─── Desktop: simplified top bar matching human.html ─── */
@media (min-width: 901px) {
  /* Match human.html site-nav: height 54px, wider padding, centered items */
  .cat-nav {
    height: 54px;
    padding: 0 48px;
    align-items: center;
  }

  /* Hide section tabs from top bar — moved to tabbar below */
  .cat-nav__sections { display: none; }

  /* Show THE CATALYST title label — underlined (active page indicator) */
  .cat-nav__home { margin-right: 0; }

  .cat-nav__title {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 16px;
    padding-bottom: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #91C0E8;
    white-space: nowrap;
    border-bottom: 2px solid #5B9BD5;
  }

  /* Remove border separator from THE HUMAN link (no separator on human.html) */
  .cat-nav__human { border-left: none; margin-left: 0; padding-left: 0; }

  /* Section tabbar — visible on desktop as sticky subnav below top bar */
  .cat-tabbar {
    display: flex;
    position: fixed;
    top: 54px;
    left: 0; right: 0;
    height: 42px;
    padding-left: 48px;
    background: rgba(12,28,52,0.98);
    border-bottom: 1px solid var(--cat-border);
    z-index: 150;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .cat-tabbar::-webkit-scrollbar { display: none; }

  .ctb-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: #8fa8c8;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    opacity: 1;
  }
  .ctb-link:hover  { color: var(--cat-text); opacity: 1; }
  .ctb-link.active { color: var(--cat-gold); border-bottom-color: var(--cat-gold); opacity: 1; }

  /* exp-tracker sticks below 54px nav + 42px tabbar */
  .exp-tracker { top: 96px; }

  /* Main content clears both top bars */
  .cat-main { padding-top: 96px; }

  /* Hire Me — desktop type sizes */
  .hire-closing { font-size: 20px; }
  .built-with   { font-size: 10px; }
}
