:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #132033;
  --muted: #5f6d81;
  --line: rgba(19, 32, 51, 0.1);
  --primary: #24486b;
  --primary-strong: #183651;
  --soft: #dde7f2;
  --accent: #6c88a6;
  --shadow: 0 18px 60px rgba(19, 32, 51, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(108, 136, 166, 0.14), transparent 30%),
    linear-gradient(180deg, #eef3f9 0%, #f7f9fc 45%, #f4f7fb 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 70%);
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 24px auto 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  border-radius: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name,
.brand-role,
.eyebrow,
.section-kicker,
.highlight-label,
.project-tag,
.education-type,
.hero-mini-grid span {
  margin: 0;
}

.availability {
  margin: 18px auto 22px auto;
  text-align: center;
  max-width: 260px;
  display: block;
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-role {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link,
.text-link,
.contact-links a {
  text-decoration: none;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-strong);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.language-switcher {
  display: inline-flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: white;
  color: var(--primary-strong);
  box-shadow: 0 6px 18px rgba(19, 32, 51, 0.08);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

main {
  margin-top: 26px;
}

.hero,
.section {
  margin-bottom: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.card-surface {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 44px;
}

.eyebrow,
.section-kicker,
.project-tag,
.education-type,
.availability,
.highlight-label,
.hero-mini-grid span {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero-lead {
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 58ch;
}

.hero-support,
.about-text p,
.timeline-content p,
.timeline-content li,
.expertise-card p,
.project-card p,
.contact-panel p,
.education-card p,
.about-points p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.hero-support {
  max-width: 58ch;
  margin-top: 16px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 0.95;
}

.hero-title-main {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 14px;
  font-weight: 700;
}

.hero-title-sub {
  display: block;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.text-link:hover,
.contact-links a:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 16px 34px rgba(36, 72, 107, 0.22);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.hero-highlights {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-highlights li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-highlights strong,
.hero-mini-grid strong,
.timeline-meta h4,
.about-points h3,
.expertise-card h3,
.project-card h3,
.education-card h3,
.contact-panel h2,
.section-heading h2,
.timeline-header h3 {
  display: block;
  color: var(--text);
}

.hero-highlights strong {
  margin-top: 8px;
  line-height: 1.5;
}

.hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photo-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #eef2f6;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.08);
  display: block;
}

.hero-card-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-mini-grid article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.hero-mini-grid strong {
  margin-top: 8px;
  line-height: 1.5;
}

.section {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.about-grid,
.education-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.card-surface {
  padding: 28px;
}

.about-points {
  display: grid;
  gap: 16px;
}

.about-points article,
.expertise-card,
.project-card,
.education-card,
.contact-panel {
  position: relative;
  overflow: hidden;
}

.about-points article::before,
.expertise-card::before,
.project-card::before,
.education-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.about-points h3,
.expertise-card h3,
.project-card h3,
.education-card h3,
.timeline-header h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.timeline-group,
.secondary-group {
  position: relative;
}

.timeline-group+.secondary-group {
  margin-top: 18px;
}

.timeline-header {
  margin-bottom: 24px;
}

.timeline-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.timeline-entry {
  position: relative;
  padding-left: 30px;
  margin-left: 10px;
  border-left: 1px solid var(--line);
  padding-bottom: 28px;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -8px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(36, 72, 107, 0.12);
}

.timeline-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.timeline-meta h4 {
  margin: 0;
  font-size: 1.08rem;
}

.timeline-meta span {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-content ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.timeline-content li+li {
  margin-top: 8px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.expertise-card span {
  display: block;
  margin-top: 16px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.6;
}

.projects-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  min-height: 100%;
}

.featured-project {
  grid-column: span 2;
}

.project-topline {
  margin-bottom: 14px;
}

.project-actions {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--primary-strong);
  font-weight: 700;
}

.education-grid {
  grid-template-columns: repeat(3, 1fr);
}

.accent-card {
  background: linear-gradient(145deg, rgba(36, 72, 107, 0.96), rgba(24, 54, 81, 0.94));
}

.accent-card,
.accent-card h3,
.accent-card p {
  color: white;
}

.accent-card .education-type {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.contact-panel h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-links a,
.contact-links span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px) {
  .hero-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .photo-frame {
    max-width: 300px;
    aspect-ratio: 4 / 4.6;
    margin: 0 auto 22px auto;
  }

  .availability {
    margin: 0 auto 18px auto;
    text-align: center;
    max-width: 280px;
  }
}

@media (max-width: 1080px) {

  .hero,
  .about-grid,
  .contact-panel,
  .education-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-column: auto;
  }

  .hero h1,
  .section-heading h2,
  .contact-panel h2 {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .nav.nav-open {
    display: flex;
  }

  .language-switcher {
    display: none !important;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .photo-frame {
    max-width: 300px;
    aspect-ratio: 4 / 5;
  }

  .availability {
    margin: 18px auto 22px auto;
    text-align: center;
    max-width: 260px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 12px;
  }

  .site-header,
  .hero-copy,
  .hero-card,
  .section,
  .card-surface {
    border-radius: 20px;
  }

  .site-header,
  .hero-copy,
  .hero-card,
  .section,
  .card-surface {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .brand {
    max-width: calc(100% - 110px);
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-mini-grid,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .language-switcher {
    order: 3;
  }
}