:root {
  --bg-1: #0f2e22;
  --bg-2: #123b2a;
  --bg-3: #1a5139;
  --card: rgba(255, 255, 255, 0.9);
  --card-strong: rgba(247, 251, 248, 0.96);
  --line: rgba(25, 74, 56, 0.18);
  --text: #12261d;
  --muted: #3e5a4e;
  --accent: #1f8a60;
  --accent-strong: #146847;
  --accent-soft: rgba(31, 138, 96, 0.14);
  --radius: 24px;
  --shadow-lg: 0 26px 45px rgba(8, 24, 18, 0.28);
  --shadow-md: 0 14px 28px rgba(8, 24, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-1);
  overscroll-behavior-y: none;
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--text);
  line-height: 1.72;
  background:
    radial-gradient(circle at 8% 8%, rgba(152, 206, 169, 0.3) 0%, transparent 28%),
    radial-gradient(circle at 88% 13%, rgba(106, 171, 135, 0.34) 0%, transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(189, 220, 200, 0.2) 0%, transparent 34%),
    linear-gradient(90deg, #0a241b 0%, #103126 35%, #1a5139 100%);
  min-height: 100vh;
  background-attachment: scroll;
}

.page-shell {
  width: 100%;
  margin: 0;
  position: relative;
  min-height: 100vh;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  width: 300px;
  height: 300px;
  background: rgba(146, 203, 167, 0.18);
  top: 8%;
  left: -120px;
}

.page-shell::after {
  width: 250px;
  height: 250px;
  background: rgba(62, 126, 98, 0.24);
  bottom: 4%;
  right: -90px;
}

.layout-grid {
  display: block;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 416px;
  padding: 1rem;
  z-index: 3;
  overflow-y: auto;
  background: transparent;
}

.sidebar-card {
  padding: 0.8rem 0.75rem 1rem;
  min-height: calc(100vh - 2rem);
}

.profile-image {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  display: block;
  margin: 0 auto 0.35rem;
}

.eyebrow {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(191, 229, 207, 0.88);
  margin: 0.9rem 0 0.35rem;
  text-align: left;
  font-weight: 700;
}

.site-name {
  font-family: "Sora", "Avenir Next", sans-serif;
  margin: 2.6cm 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.62rem);
  text-align: left;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: #eefaf3;
  font-weight: 300;
}

.site-email {
  margin: 0.2rem 0 0.7rem;
  text-align: left;
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.site-email a {
  color: #ffffff;
  text-decoration: none;
}

.site-email a:hover,
.site-email a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tagline {
  margin: 0.55rem 0 0.95rem;
  color: rgba(229, 244, 236, 0.9);
  text-align: left;
  font-size: 0.98rem;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.48rem;
  margin-bottom: 1.1rem;
}

.social-links a {
  text-decoration: none;
  color: rgba(234, 248, 240, 0.94);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-align: left;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.2rem 0;
  transition: color 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #ffffff;
  transform: translateX(2px);
}

.section-nav {
  border-top: 1px solid rgba(221, 241, 229, 0.28);
  padding-top: 0.8rem;
  display: grid;
  gap: 0.36rem;
}

.section-link {
  text-decoration: none;
  color: rgba(229, 244, 236, 0.93);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0;
  padding: 0.24rem 0;
  border: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.section-link:hover,
.section-link:focus-visible {
  color: #ffffff;
  transform: translateX(2px);
}

.section-link.is-active {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(199, 235, 214, 0.85);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.main-column {
  min-width: 0;
  margin-left: 416px;
  padding: 0;
  min-height: 100dvh;
  background: transparent;
  border-left: 0;
}

.content {
  padding: 1.2rem 0 1.3rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
}

.content > h1,
.content > p,
.content > ul {
  margin: 0;
  padding: 0;
}

.content h1 {
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
  font-size: clamp(1.38rem, 2.6vw, 1.82rem);
  margin: 2.3rem 0 0.9rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #153c2c;
}

.content h1:first-child {
  margin-top: 0.16rem;
}

.content h1::after {
  content: "";
  display: block;
  width: clamp(92px, 12vw, 136px);
  height: 4px;
  border-radius: 999px;
  margin-top: 0.36rem;
  background: linear-gradient(90deg, #2ea36f, #176646);
}

.content.is-stacked .cards-stack {
  width: min(980px, calc(100% - 2.2rem));
  margin: 0 auto;
  position: relative;
}

.content.is-stacked .deck-viewport {
  position: sticky;
  top: 0;
  height: 100dvh;
}

.content.is-stacked .deck-spacer {
  height: var(--deck-spacer-height, 160dvh);
}

.content.is-stacked .stack-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--deck-card-height, 70vh);
  max-height: var(--deck-card-height, 70vh);
  z-index: 1;
  padding: 0;
  background: linear-gradient(168deg, rgba(241, 249, 244, 0.985), rgba(232, 243, 236, 0.93));
  border: 1px solid rgba(18, 67, 47, 0.2);
  border-radius: 16px;
  box-shadow:
    0 24px 44px rgba(6, 24, 16, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  transform-origin: 50% 10%;
  will-change: transform, opacity;
  overflow: hidden;
  display: block;
}

.content.is-stacked .stack-card-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
  gap: 1rem;
}

.content.is-stacked .stack-card-head {
  flex: 0 0 auto;
  padding-bottom: 0.35rem;
}

.content.is-stacked .stack-card-head h1 {
  margin: 0;
}

.content.is-stacked .stack-card-body {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  display: block;
  padding-right: 0.35rem;
  overscroll-behavior: auto;
  line-height: 1.65;
  pointer-events: none;
}

.content.is-stacked .stack-card.is-active-card .stack-card-body {
  pointer-events: auto;
}

.content.is-stacked .stack-card.is-settled-card .stack-card-body {
  overflow-y: auto;
}

.content.is-stacked .stack-card-body::-webkit-scrollbar {
  width: 8px;
}

.content.is-stacked .stack-card-body::-webkit-scrollbar-track {
  background: rgba(25, 80, 57, 0.08);
  border-radius: 999px;
}

.content.is-stacked .stack-card-body::-webkit-scrollbar-thumb {
  background: rgba(22, 94, 65, 0.35);
  border-radius: 999px;
}

.content.is-stacked .stack-card-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 94, 65, 0.45) rgba(25, 80, 57, 0.1);
}

.content.is-stacked .stack-card + .stack-card {
  margin-top: 0;
}

.content.is-stacked .stack-card-body p,
.content.is-stacked .stack-card-body li {
  line-height: 1.65;
}

.content p,
.content li {
  color: #1a3428;
}

.content p {
  margin: 0.58rem 0;
  font-size: 1.04rem;
}

.content ul {
  margin: 0.56rem 0 0.75rem;
  padding-left: 1.2rem;
}

.content li {
  margin-bottom: 0.43rem;
}

.content a {
  color: #135f40;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.pub-list {
  display: grid;
  gap: 1.05rem;
  margin: 0.7rem 0 0.55rem;
}

.experience-list {
  display: grid;
  gap: 1.05rem;
  margin: 0.65rem 0 0.6rem;
  position: relative;
  padding-left: 9.8rem;
}

.experience-list::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.35rem;
  bottom: 0.5rem;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1d6e4c, #0f4f36);
}

.experience-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  border-bottom: 1px solid rgba(21, 60, 44, 0.12);
  padding-bottom: 0.66rem;
  padding-left: 1.1rem;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -8.55rem;
  top: 1.05rem;
  width: 7.9rem;
  height: 1.18rem;
  border-left: 3px solid #15573d;
  border-bottom: 3px solid #15573d;
  border-bottom-left-radius: 18px;
}

.experience-branch-date {
  position: absolute;
  left: -6.95rem;
  top: 0.16rem;
  font-size: 0.7rem;
  line-height: 1.2;
  color: rgba(20, 71, 50, 0.7);
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
  white-space: nowrap;
}

.experience-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.experience-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(21, 60, 44, 0.12);
  padding: 0.25rem;
  flex-shrink: 0;
}

.experience-content {
  min-width: 0;
}

.experience-role {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.35;
  color: #134b36;
  font-weight: 500;
}

.experience-company {
  color: inherit;
  text-decoration: none;
}

.experience-company:hover,
.experience-company:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pub-item {
  border-bottom: 1px solid rgba(21, 60, 44, 0.12);
  padding-bottom: 0.9rem;
}

.pub-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub-title {
  margin: 0;
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
  font-size: 1.08rem;
  line-height: 1.42;
  font-weight: 500;
  color: #0f6a49;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
}

.pub-title a:hover,
.pub-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1.2px;
  text-underline-offset: 2px;
}

.pub-authors {
  margin: 0.18rem 0 0;
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
  font-size: 0.71rem;
  line-height: 1.36;
  color: rgba(28, 59, 46, 0.68);
}

.pub-meta {
  margin: 0.12rem 0 0;
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    sans-serif;
  font-size: 0.68rem;
  line-height: 1.32;
  color: rgba(22, 50, 38, 0.58);
}

.site-footer {
  text-align: center;
  color: rgba(223, 244, 232, 0.9);
  font-size: 0.88rem;
  margin-top: 0;
  padding: 0.85rem 0.4rem 1rem;
}

@media (max-width: 940px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 0.8rem 0.8rem 0;
    overflow-y: visible;
  }

  .sidebar-card {
    padding: 1rem 0.9rem;
    min-height: auto;
  }

  .social-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-column {
    margin-left: 0;
    padding: 0;
    border-left: 0;
  }

  .content.is-stacked {
    padding: 0.85rem 0.8rem;
  }

  .content.is-stacked .cards-stack {
    width: 100%;
  }

  .content.is-stacked .deck-viewport {
    position: static;
    height: auto;
  }

  .content.is-stacked .deck-spacer {
    display: none;
  }

  .content.is-stacked .stack-card,
  .content.is-stacked .stack-card + .stack-card {
    position: relative;
    top: auto;
    min-height: 0;
    inset: auto;
    margin-top: 0;
    margin-bottom: 0.85rem;
    padding: 0;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
  }

  .content.is-stacked .stack-card-shell {
    height: auto;
    padding: 1rem 0.9rem 0.92rem;
    gap: 0.6rem;
  }

  .content.is-stacked .stack-card-body {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
    pointer-events: auto;
  }

  .site-name {
    margin-top: 0.8rem;
  }
}

@media (max-width: 640px) {
  .social-links {
    grid-template-columns: 1fr;
  }

  .section-nav {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 1rem 0.85rem 0.85rem;
  }

  .content p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
