:root {
  color-scheme: light;
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f0fdfa;
  --surface-3: #071512;
  --ink: #18181b;
  --muted: #676b73;
  --line: #e5e7eb;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --mint: #7dd3c7;
  --amber: #b7791f;
  --blue: #2563eb;
  --violet: #7c3aed;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(37, 99, 235, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.mesh-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
}

.navbar,
main,
footer,
.media-modal {
  position: relative;
}

main,
footer {
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.navbar {
  position: fixed;
  inset: 16px clamp(18px, 4vw, 54px) auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(240, 253, 250, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px) saturate(1.28);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 18px rgba(14, 165, 233, 0.08);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0;
  color: var(--teal-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #3f434b;
}

.nav-links a:hover {
  background: rgba(14, 165, 233, 0.08);
  color: var(--teal);
}

.nav-links a.active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
}

.nav-cv,
.lang-switch {
  min-width: 42px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.nav-cv {
  padding: 0 15px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr) minmax(220px, 0.42fr);
  gap: clamp(18px, 3.2vw, 46px);
  align-items: center;
  padding: 134px clamp(18px, 5vw, 64px) 54px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 250, 248, 0.58) 0%, rgba(250, 250, 248, 0.38) 46%, rgba(250, 250, 248, 0.1) 100%),
    radial-gradient(circle at 78% 28%, rgba(14, 165, 233, 0.12), transparent 32%),
    radial-gradient(circle at 72% 72%, rgba(183, 121, 31, 0.14), transparent 28%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 82px;
  width: min(54vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 50%;
  background:
    conic-gradient(from 140deg, rgba(15, 118, 110, 0.18), transparent, rgba(37, 99, 235, 0.13), transparent),
    radial-gradient(circle, transparent 57%, rgba(15, 118, 110, 0.08) 58%, transparent 61%);
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.impact-board {
  position: relative;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.role {
  margin: 24px 0 0;
  color: var(--teal-dark);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--teal);
  color: white;
}

.btn.secondary {
  background: var(--ink);
  color: white;
}

.btn.ghost {
  background: var(--surface);
  border-color: var(--line);
}

.hero-visual {
  align-self: stretch;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-portrait {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  max-width: min(310px, calc(100% - 44px));
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.hero-portrait img {
  width: 74px;
  aspect-ratio: 1;
  border: 4px solid white;
  border-radius: 50%;
  object-fit: cover;
  background: #334155;
}

.hero-portrait span {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-portrait.is-missing {
  display: none;
}

.status-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.status-card span,
.status-card small {
  display: block;
  color: var(--muted);
}

.status-card strong {
  display: block;
  margin: 4px 0;
  font-size: 1.75rem;
}

.impact-board {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1.15fr repeat(3, 1fr);
  gap: 12px;
  min-height: 520px;
}

.impact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.66)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.impact-card::before {
  content: "";
  position: absolute;
  inset: auto -34px -44px auto;
  width: 118px;
  aspect-ratio: 1;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.08);
}

.impact-card strong {
  position: relative;
  display: block;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.impact-card span {
  position: relative;
  display: block;
  color: var(--teal-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.primary-impact {
  background:
    linear-gradient(150deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.74)),
    var(--teal-dark);
  color: white;
}

.primary-impact span {
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 92px clamp(18px, 5vw, 64px);
}

main section[id] {
  scroll-margin-top: 92px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.signal-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--teal-dark);
  border-right: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.signal-strip span:last-child {
  border-right: 0;
}

.section-heading,
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 38px;
}

.section-heading.compact {
  display: block;
}

.section-heading h2,
.about-intro h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.about-story p,
.expertise-grid p,
.contact p,
.education-timeline p,
.about-grid p,
.timeline-list p,
.timeline-list li {
  color: var(--muted);
}

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

.about-story p {
  margin: 0;
  font-size: 1.04rem;
}

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

.about-grid article,
.expertise-grid article,
.education-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.about-grid span {
  color: var(--amber);
  font-weight: 900;
}

.about-grid h3,
.education-grid h3 {
  margin: 12px 0 8px;
}

.skills {
  background: #f3f4f1;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  padding: 12px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
}

.timeline {
  background: var(--surface);
}

.timeline-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-list article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

time {
  color: var(--teal-dark);
  font-weight: 900;
}

.timeline-list h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.timeline-list p {
  margin: 4px 0 16px;
  font-weight: 800;
}

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

.expertise {
  background: var(--surface-2);
}

.expertise-grid article {
  min-height: 260px;
}

.expertise-grid h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1;
}

.education {
  background: rgba(255, 255, 255, 0.42);
}

.education-timeline {
  --active-step: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
  padding-top: 54px;
}

.education-timeline::before,
.education-timeline::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  top: 20px;
  height: 2px;
  border-radius: 999px;
}

.education-timeline::before {
  background: rgba(37, 99, 235, 0.16);
}

.education-timeline::after {
  width: 0;
  right: auto;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.2);
  transition: width 320ms ease;
}

.education-timeline:has(article:nth-child(2):hover),
.education-timeline:has(article:nth-child(2):focus-within),
.education-timeline:has(article:nth-child(2):focus),
.education-timeline[data-active="1"] {
  --active-step: 1;
}

.education-timeline:has(article:nth-child(2):hover)::after,
.education-timeline:has(article:nth-child(2):focus-within)::after,
.education-timeline:has(article:nth-child(2):focus)::after,
.education-timeline[data-active="1"]::after {
  width: calc((100% - 84px) / 2);
}

.education-timeline:has(article:nth-child(3):hover),
.education-timeline:has(article:nth-child(3):focus-within),
.education-timeline:has(article:nth-child(3):focus),
.education-timeline[data-active="2"] {
  --active-step: 2;
}

.education-timeline:has(article:nth-child(3):hover)::after,
.education-timeline:has(article:nth-child(3):focus-within)::after,
.education-timeline:has(article:nth-child(3):focus)::after,
.education-timeline[data-active="2"]::after {
  width: calc(100% - 84px);
}

.education-timeline article {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.72)),
    var(--surface);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  outline: none;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.education-timeline article::before {
  content: "";
  position: absolute;
  top: -43px;
  left: 28px;
  width: 18px;
  height: 18px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 0 0 9px rgba(37, 99, 235, 0.08);
  transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.education-timeline article:hover,
.education-timeline article:focus,
.education-timeline article.is-active {
  transform: translateY(-8px);
  border-color: rgba(15, 118, 110, 0.3);
  background:
    linear-gradient(145deg, rgba(240, 253, 250, 0.94), rgba(239, 246, 255, 0.86)),
    var(--surface);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.13);
}

.education-timeline article:hover::before,
.education-timeline article:focus::before,
.education-timeline article.is-active::before {
  transform: scale(1.18);
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.28), 0 0 0 12px rgba(14, 165, 233, 0.12);
}

.education-timeline time {
  color: var(--amber);
  font-weight: 950;
}

.education-timeline h3 {
  margin: 18px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.certifications {
  position: relative;
  color: white;
  background:
    radial-gradient(circle at 18% 8%, rgba(125, 211, 199, 0.18), transparent 28%),
    linear-gradient(135deg, #071512 0%, #0d1f20 54%, #111827 100%);
  overflow: hidden;
}

.certifications::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(rgba(125, 211, 199, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 199, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.certifications > * {
  position: relative;
}

.certifications .section-kicker,
.certifications .section-heading p {
  color: var(--mint);
}

.certifications .section-heading {
  display: block;
  max-width: 1320px;
}

.certifications .section-heading h2 {
  max-width: 25ch;
  font-size: clamp(2.45rem, 4.45vw, 4.95rem);
  line-height: 1.02;
  text-wrap: balance;
}

.certifications .section-heading p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.08rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cert-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.cert-provider,
.project-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-body {
  flex: 1;
  padding: 22px;
}

.cert-body h3 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.cert-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.cert-preview,
.recommendation-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.pdf-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(15, 118, 110, 0.28), rgba(37, 99, 235, 0.18)),
    rgba(255, 255, 255, 0.1);
}

.pdf-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
  pointer-events: none;
  transform: scale(1.02);
  transform-origin: center;
}

.cert-preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
}

.cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.cert-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.projects {
  background: #f7f8f6;
}

.project-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.project-copy,
.recommendation-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.project-copy {
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.1), transparent 44%),
    var(--surface);
}

.project-copy h2 {
  margin: 0;
  font-size: clamp(1.85rem, 2.35vw, 2.18rem);
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
}

.project-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.project-stats span {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.project-scope {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 118, 110, 0.14);
}

.project-scope > span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-scope ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-scope li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.project-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.09);
}

.project-portfolio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.project-area {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 26px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.72)),
    var(--surface);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.project-area::before {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 148px;
  aspect-ratio: 1;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.08);
}

.project-area > span {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-area h3 {
  position: relative;
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.project-area ul {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-area li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.project-area li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

.featured-area {
  background:
    linear-gradient(150deg, rgba(15, 118, 110, 0.94), rgba(37, 99, 235, 0.78)),
    var(--teal-dark);
  color: white;
}

.featured-area > span,
.featured-area li {
  color: rgba(255, 255, 255, 0.78);
}

.featured-area li::before {
  background: white;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.recommendation-card {
  margin: 0;
  overflow: hidden;
}

.recommendation-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.recommendation-card figcaption {
  padding: 24px;
}

.recommendation-card blockquote {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.recommendation-card span {
  color: var(--teal-dark);
  font-weight: 900;
}

.media-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 14, 17, 0.92);
  color: white;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.46);
}

.media-modal:not([open]) {
  display: none;
}

.media-modal::backdrop {
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(8px);
}

.media-modal img {
  max-height: calc(100vh - 132px);
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.media-modal iframe {
  display: none;
  width: 100%;
  height: min(78vh, 860px);
  min-height: 560px;
  border: 0;
  border-radius: var(--radius);
  background: white;
}

.media-modal.pdf-mode img {
  display: none;
}

.media-modal.pdf-mode iframe {
  display: block;
}

.media-modal p {
  margin: 10px 4px 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.modal-close {
  position: sticky;
  top: 0;
  margin: 0 0 10px auto;
  min-height: 38px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.contact {
  margin: 0 clamp(18px, 5vw, 64px) 44px;
  padding: clamp(32px, 6vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 36px;
  align-items: end;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.contact p {
  max-width: 720px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 22;
  }

  .nav-links {
    position: fixed;
    top: 82px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .nav-cv,
  .lang-switch {
    width: 100%;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero,
  .section-heading,
  .about-intro,
  .timeline-list article,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px;
  }

  .role,
  .hero-text {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-portrait {
    grid-template-columns: 58px 1fr;
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
  }

  .hero-portrait img {
    width: 58px;
    border-width: 3px;
  }

  .impact-board {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .about-grid,
  .expertise-grid,
  .education-grid,
  .cert-grid,
  .project-shell,
  .project-portfolio {
    grid-template-columns: 1fr;
  }

  .education-timeline {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 34px;
  }

  .education-timeline::before {
    left: 9px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .education-timeline::after {
    display: none;
  }

  .education-timeline article::before {
    top: 28px;
    left: -34px;
  }

  .certifications .section-heading h2 {
    white-space: normal;
    font-size: clamp(2.2rem, 10vw, 4.4rem);
  }

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

  .signal-strip span:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .impact-board {
    grid-template-columns: 1fr;
  }

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

  footer {
    flex-direction: column;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip span:last-child {
    border-bottom: 0;
  }

  .media-modal iframe {
    min-height: 68vh;
  }
}

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