:root {
  --ink: #1f1b34;
  --sky: #3b82f6;
  --sky-light: #dbeafe;
  --sun: #f59e0b;
  --sun-light: #fef3c7;
  --mint: #10b981;
  --mint-light: #d1fae5;
  --lavender: #8b5cf6;
  --lavender-light: #ede9fe;
  --rose: #fb7185;
  --bg: #fafaf8;
  --card: rgba(255, 255, 255, 0.94);
  --card-soft: rgba(255, 255, 255, 0.76);
  --muted: #5f6472;
  --title-tone: #1f1b34;
  --subtitle-tone: #46556f;
  --meta-tone: #8a6841;
  --body-tone: #5f6472;
  --border: #e5e7eb;
  --shadow: 0 18px 42px rgba(31, 27, 52, 0.08);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  line-height: 1.7;
  color: var(--body-tone);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 28%),
    radial-gradient(circle at right top, rgba(139, 92, 246, 0.14), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.14), transparent 20%),
    linear-gradient(180deg, #eff6ff 0%, #fafaf8 38%, #fffaf0 100%);
}

.floating-accent {
  position: fixed;
  z-index: -1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
  animation: floatY 6.5s ease-in-out infinite;
}

.accent-book {
  top: 12%;
  left: 4%;
  width: 64px;
  height: 64px;
  background: var(--sky-light);
  color: var(--sky);
}

.accent-star {
  top: 18%;
  right: 6%;
  width: 52px;
  height: 52px;
  background: var(--sun-light);
  color: #b45309;
  animation-delay: 1s;
}

.accent-speech {
  bottom: 16%;
  left: 8%;
  width: 78px;
  height: 78px;
  background: var(--mint-light);
  color: var(--mint);
  font-size: 0.88rem;
  animation-delay: 2s;
}

.accent-globe {
  right: 7%;
  bottom: 14%;
  width: 70px;
  height: 70px;
  background: var(--lavender-light);
  color: var(--lavender);
  font-size: 0.9rem;
  animation-delay: 0.5s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-18px) rotate(5deg);
  }
}

.page-shell {
  padding: 0 0 2.5rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  padding-top: 1rem;
}

.compact-header {
  padding-bottom: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0 1.1rem;
  position: relative;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.9rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--lavender));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54.39px;
  min-width: 54.39px;
  height: 47.78px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, #4f8df7, #7c63f2);
  color: #fff;
  box-shadow: 0 10px 26px rgba(79, 141, 247, 0.22);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  flex: 0 0 54.39px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--subtitle-tone);
  opacity: 1;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(79, 141, 247, 0.28);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.hero {
  display: block;
  padding: 0.35rem 0 0;
}

.hero-panel,
.content-card,
.timeline-card,
.contact-card,
.simple-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel {
  width: 100%;
  padding: 2.7rem 2.6rem;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 24%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.08), transparent 24%),
    var(--card);
}

.simple-hero {
  padding: 1.8rem 2rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: var(--sky-light);
  color: var(--subtitle-tone);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--title-tone);
}

h1 {
  font-size: clamp(3rem, 7vw, 5.1rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.hero-subtitle,
.role-meta,
.date-inline,
.location-line {
  color: var(--subtitle-tone);
}

.hero-identity {
  margin-top: 0.65rem;
  color: var(--subtitle-tone);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-summary {
  margin-top: 1.35rem;
  color: var(--body-tone);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.primary-link {
  background: linear-gradient(135deg, var(--sky), var(--lavender));
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.26);
}

.secondary-link {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--ink);
}

.primary-link:hover,
.secondary-link:hover,
.primary-link:focus-visible,
.secondary-link:focus-visible {
  transform: translateY(-2px);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: var(--sky);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
}

.contact-strip li {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  color: var(--subtitle-tone);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-row span {
  color: var(--subtitle-tone);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  padding: 1rem 0 0;
}

.section-heading {
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(31, 27, 52, 0.08);
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.expertise-grid,
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline,
.stack {
  display: grid;
  gap: 1rem;
}

.education-stack {
  margin-bottom: 1rem;
}

.full-width-card {
  width: 100%;
}

.content-card,
.timeline-card,
.contact-card {
  padding: 1.45rem 1.45rem;
}

.content-card {
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky), var(--lavender));
}

.content-card p,
.timeline-card p {
  margin: 0;
  color: var(--body-tone);
}

.timeline {
  position: relative;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky), var(--lavender));
}

.timeline-card {
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 1.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-light);
}

.timeline-card:first-child::before {
  background: var(--sun);
  box-shadow: 0 0 0 4px var(--sun-light);
}

.timeline-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.education-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.date-chip {
  margin: 0;
  white-space: nowrap;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--meta-tone);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-card:first-child .date-chip {
  background: rgba(245, 158, 11, 0.16);
  color: var(--meta-tone);
}

.lead-copy {
  margin-top: 0.8rem;
}

.location-line,
.date-inline {
  margin-top: 0.35rem;
  font-size: 0.94rem;
}

.education-copy {
  margin-top: 0.65rem;
}

.bullet-list,
.language-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--body-tone);
}

.bullet-list li + li,
.language-list li + li {
  margin-top: 0.5rem;
}

.contact-card {
  background: linear-gradient(135deg, var(--sky-light), var(--lavender-light));
}

.memory-hero {
  padding: 1.8rem 2rem;
}

.memory-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.memory-hero .hero-identity {
  margin-top: 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0;
}

.memory-hero p {
  max-width: 760px;
}

.memory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.memory-count {
  margin: 0;
  color: var(--subtitle-tone);
  font-size: 0.9rem;
  font-weight: 700;
}

.memory-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.memory-empty {
  padding: 1.6rem;
  text-align: center;
}

.memory-grid {
  column-width: 240px;
  column-gap: 1rem;
}

.memory-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  break-inside: avoid;
  cursor: zoom-in;
}

.memory-figure {
  margin: 0;
}

.memory-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.memory-caption {
  display: none;
}

.memory-caption p {
  margin: 0;
  color: var(--subtitle-tone);
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.memory-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(16, 24, 40, 0.78);
  backdrop-filter: blur(10px);
}

.memory-lightbox[hidden] {
  display: none;
}

.memory-lightbox-dialog {
  width: min(100%, 960px);
  max-height: calc(100vh - 2.5rem);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

.memory-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 8.5rem);
  object-fit: contain;
  border-radius: 18px;
  background: #f8fafc;
}

.memory-lightbox-caption {
  margin: 0.85rem 0 0;
  color: var(--subtitle-tone);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.memory-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(31, 27, 52, 0.1);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row a,
.contact-row p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-panel a,
.timeline-card a,
.content-card a,
.contact-card a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.hero-panel a:hover,
.timeline-card a:hover,
.content-card a:hover,
.contact-card a:hover,
.hero-panel a:focus-visible,
.timeline-card a:focus-visible,
.content-card a:focus-visible,
.contact-card a:focus-visible {
  opacity: 0.7;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 1.75rem auto 0;
  padding: 1.1rem 0 0.4rem;
  color: var(--subtitle-tone);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .expertise-grid,
  .dual-grid,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .timeline-head,
  .education-head {
    display: grid;
  }

  .date-chip {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .floating-accent {
    display: none;
  }

  .page-shell {
    padding-bottom: 1.5rem;
  }

  .topbar {
    position: relative;
  }

  .topbar-actions {
    margin-left: auto;
    gap: 0.55rem;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 21;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    transform: none;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .lang-toggle {
    width: 54.39px;
    min-width: 54.39px;
    height: 47.78px;
    padding: 0;
    flex-basis: 54.39px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    gap: 0.9rem;
  }

  .hero-panel,
  .content-card,
  .timeline-card,
  .contact-card,
  .simple-hero {
    border-radius: 22px;
  }

  .hero-panel,
  .content-card,
  .timeline-card,
  .contact-card,
  .simple-hero {
    padding: 1.2rem;
  }

  .section {
    padding-top: 1.1rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.9rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .contact-strip li {
    width: 100%;
  }

  .timeline {
    padding-left: 1.2rem;
  }

  .timeline-card::before {
    left: -1.22rem;
  }

  .memory-grid {
    column-width: auto;
    columns: 1;
  }
}

@media (min-width: 721px) {
  .hero-actions,
  .contact-strip {
    flex-wrap: nowrap;
  }
}
