*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: rgba(255, 238, 215, 0.8);
  --bg: #101010;
  --cream-80: rgba(255, 238, 215, 0.64);
  --menu-bg: #000000;
  --menu-width: 100%;
  --sidebar-width: 260px;
}

@media (min-width: 601px) {
  :root {
    --menu-width: 500px;
  }
}

html,
body {
  background: var(--bg);
  color: var(--cream);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Menu Button (mobile only) ---- */
.menu-btn {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.menu-btn:hover {
  opacity: 0.6;
}

.menu-btn img {
  width: 28px;
  height: 28px;
}

.close-icon {
  display: none;
}

.menu-open .menu-icon {
  display: none;
}

.menu-open .close-icon {
  display: block;
}

/* ---- Menu Overlay ---- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .menu-overlay {
    display: none;
  }
}

/* ---- Menu Panel (mobile) ---- */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--menu-width);
  height: 100dvh;
  background: var(--menu-bg);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 48px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-open .menu-panel {
  transform: translateX(0);
}

/* ---- Mobile Menu Links ---- */
.menu-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ---- Mobile nav item (ml- prefix) ---- */
.ml-item {
  list-style: none;
}

.ml-link {
  font-family: "Times New Roman", Times, serif;
  font-size: 28px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: block;
  padding: 14px 0;
}

.ml-link:hover {
  opacity: 0.6;
}

/* Active mobile item */
.ml-item.active > .ml-link,
.ml-item.active > .ml-row > .ml-link {
  color: #ffffff;
  font-weight: 700;
}

/* ---- Mobile row with chevron ---- */
.ml-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ml-row .ml-link {
  flex: 1;
}

/* ---- Mobile chevron toggle ---- */
.ml-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ml-toggle .nav-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  opacity: 0.6;
}

.ml-toggle.expanded .nav-chevron {
  transform: rotate(180deg);
}

/* ---- Mobile subnav ---- */
.ml-subnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.ml-subnav.expanded {
  max-height: 400px;
  opacity: 1;
}

/* ---- Mobile sub-item ---- */
.ml-sub {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--cream-80);
  text-decoration: none;
  display: block;
  padding: 8px 0 8px 20px;
  border-left: 1px solid rgba(255, 238, 215, 0.1);
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-sub:hover {
  color: var(--cream);
}

.ml-sub.active {
  color: #ffffff;
  font-weight: 700;
  border-left-color: rgba(255, 238, 215, 0.5);
}

.ml-sub.hidden {
  display: none;
}

/* ---- Mobile show more ---- */
.ml-more {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cream-80);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0 6px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ml-more .nav-chevron {
  width: 14px;
  height: 14px;
}

/* ---- Menu Footer ---- */
.menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 238, 215, 0.15);
}

.menu-signin {
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-80);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.menu-signin:hover {
  opacity: 0.6;
}

.menu-linkedin img {
  height: 22px;
  width: auto;
  transition: opacity 0.2s ease;
}

.menu-linkedin:hover img {
  opacity: 0.6;
}

/* ---- Page Load Animation ---- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  opacity: 0;
  animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-d1 { animation-delay: 0s; }
.anim-d2 { animation-delay: 0.08s; }
.anim-d3 { animation-delay: 0.16s; }
.anim-d4 { animation-delay: 0.24s; }
.anim-d5 { animation-delay: 0.32s; }
.anim-d6 { animation-delay: 0.4s; }

/* ---- Page Content ---- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 60px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.name {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.15;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.name-first {
  letter-spacing: 0.21em;
  display: block;
}

.name-last {
  letter-spacing: 0.34em;
  display: block;
}

.title {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 17.5px;
  letter-spacing: 0.53em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 56px;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .title {
    font-size: 14px;
  }
}

.bio {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.72;
  letter-spacing: 0.23em;
  color: var(--cream);
  text-transform: uppercase;
  max-width: 380px;
  margin-bottom: 40px;
}

.details {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--cream-80);
  line-height: 2;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pin-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  position: relative;
  top: 2px;
}

.icons {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
}

.icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.icons a:hover {
  opacity: 0.6;
}

.icons a img {
  height: 28px;
  width: auto;
}

.icons a:nth-child(2) img {
  height: 22px;
}

/* ---- Prevent scroll when menu open ---- */
body.menu-open {
  overflow: hidden;
}

/* ================================================
   DESKTOP SIDEBAR NAVIGATION
   ================================================ */

/* Hidden by default (mobile-first) */
.desktop-sidebar {
  display: none;
}

@media (min-width: 601px) {
  /* Hide mobile menu elements on desktop */
  .menu-btn,
  .menu-overlay,
  .menu-panel {
    display: none !important;
  }

  /*
   * NO body padding-left — content centers on the full viewport.
   * The sidebar overlaps the left edge; page content is visually
   * centered on the entire screen.
   */

  /* Sidebar container */
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100dvh;
    background: #0B0B0B;
    z-index: 800;
    padding: 36px 24px 32px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .desktop-sidebar::-webkit-scrollbar {
    width: 3px;
  }
  .desktop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 238, 215, 0.1);
    border-radius: 3px;
  }

  /* ---- Logo ---- */
  .sb-top {
    margin-bottom: 40px;
    flex-shrink: 0;
  }

  .sb-logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .sb-logo:hover {
    opacity: 0.6;
  }

  .sb-logo-svg {
    width: 48px;
    height: 32px;
    display: block;
  }

  /* ---- Nav list ---- */
  .sb-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sb-item {
    /* grouping container */
  }

  /* ---- Nav link (top-level) ---- */
  .sb-link {
    font-family: "Times New Roman", Times, serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-80);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: block;
    padding: 11px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sb-link:hover {
    color: var(--cream);
  }

  /* Active top-level item */
  .sb-item.active > .sb-link,
  .sb-item.active > .sb-row > .sb-link {
    color: #ffffff;
    font-weight: 700;
  }

  /* ---- Row with toggle chevron ---- */
  .sb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }

  .sb-row .sb-link {
    flex: 1;
    min-width: 0;
  }

  /* ---- Chevron toggle button ---- */
  .sb-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .sb-toggle .nav-chevron {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.25s ease;
    opacity: 0.6;
  }

  .sb-toggle.expanded .nav-chevron {
    transform: rotate(180deg);
  }

  .sb-toggle:hover .nav-chevron {
    opacity: 1;
  }

  /* ---- Subnav (expandable articles) ---- */
  .sb-subnav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .sb-subnav.expanded {
    max-height: 400px;
    opacity: 1;
  }

  /* ---- Sub-item (article link) ---- */
  .sb-sub {
    font-family: "Times New Roman", Times, serif;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--cream-80);
    text-decoration: none;
    display: block;
    padding: 6px 0 6px 14px;
    border-left: 1px solid rgba(255, 238, 215, 0.08);
    transition: color 0.2s ease, border-color 0.2s ease;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sb-sub:hover {
    color: var(--cream);
    border-left-color: rgba(255, 238, 215, 0.25);
  }

  /* Active nested item */
  .sb-sub.active {
    color: #ffffff;
    font-weight: 700;
    border-left-color: rgba(255, 238, 215, 0.5);
  }

  .sb-sub.hidden {
    display: none;
  }

  /* ---- Show more button ---- */
  .sb-more {
    font-family: "Times New Roman", Times, serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--cream-80);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0 5px 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
  }

  .sb-more:hover {
    color: var(--cream);
  }

  .sb-more .nav-chevron {
    width: 12px;
    height: 12px;
  }

  /* ---- Sidebar footer ---- */
  .sb-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 238, 215, 0.1);
    margin-top: auto;
  }

  .sb-signin {
    font-family: "Times New Roman", Times, serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream-80);
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .sb-signin:hover {
    opacity: 0.6;
  }

  .sb-linkedin {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
  }

  .sb-linkedin:hover {
    opacity: 0.6;
  }

  .sb-linkedin img {
    height: 16px;
    width: auto;
  }
}
