:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dfe3e8;
  --paper: #f7f7f3;
  --surface: #ffffff;
  --soft: #eef2f1;
  --accent: #176b5f;
  --accent-dark: #0d4d44;
  --rust: #a95c32;
  --blue: #315f88;
  --shadow: 0 14px 40px rgba(32, 33, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

.homepage {
  --ink: #eef3f7;
  --muted: #a7b2bd;
  --line: #2d3742;
  --paper: #101419;
  --surface: #171d24;
  --soft: #202a34;
  --accent: #45bfa9;
  --accent-dark: #8de5d2;
  --rust: #d48a5f;
  --blue: #6da7da;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  background: var(--paper);
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rust);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 243, 0.94);
}

.nav,
.home,
.footer,
.domain-hero,
.section {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover,
.brand:hover {
  color: var(--accent);
}

.home {
  padding-bottom: 28px;
}

.profile-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  overflow: hidden;
  width: min(1120px, calc(100% - 24px));
  min-height: 610px;
  margin: 14px auto 0;
  padding: 46px clamp(18px, 4vw, 54px) 52px;
  border: 1px solid rgba(223, 227, 232, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 247, 243, 0.98) 0%, rgba(247, 247, 243, 0.92) 42%, rgba(247, 247, 243, 0.76) 100%),
    radial-gradient(circle at 76% 24%, rgba(23, 107, 95, 0.13), transparent 34%),
    radial-gradient(circle at 88% 74%, rgba(49, 95, 136, 0.12), transparent 32%),
    var(--paper);
  box-shadow: 0 18px 55px rgba(32, 33, 36, 0.08);
}

.profile-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(32, 33, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 36, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
}

.profile-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--paper));
  content: "";
}

#data-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}

.identity-card {
  position: sticky;
  top: 20px;
  z-index: 1;
}

.portrait {
  display: grid;
  overflow: hidden;
  width: 164px;
  height: 164px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 107, 95, 0.12), rgba(49, 95, 136, 0.16)),
    var(--surface);
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.profile-photo {
  display: block;
  object-fit: cover;
  object-position: center 28%;
}

.identity-card h1 {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1;
}

.identity-card > p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.social-list,
.footer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list li {
  display: grid;
  gap: 1px;
}

.social-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hello {
  max-width: 620px;
  padding-top: 92px;
  z-index: 1;
}

.kicker {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.hello p:not(.kicker) {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.quick-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.quick-links a:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button.ghost {
  background: transparent;
}

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.simple-heading {
  margin-bottom: 22px;
}

.simple-heading h2 {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.1;
}

.simple-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.project-media {
  display: grid;
  overflow: hidden;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.data-media {
  background: linear-gradient(135deg, #e8f2ec, #fff);
}

.spark-media {
  background: linear-gradient(135deg, #e9eef5, #fff);
  color: var(--blue);
}

.research-media {
  background: linear-gradient(135deg, #f5ece6, #fff);
  color: var(--rust);
}

.resume-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-card h3,
.timeline-item h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.project-card p,
.timeline-item p {
  margin: 7px 0 8px;
  color: var(--muted);
}

.project-card a {
  font-weight: 750;
}

.timeline {
  position: relative;
  display: grid;
  gap: 44px;
  padding: 10px 0 18px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  border-radius: 999px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 220px;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  place-items: center;
  border: 4px solid #f7fafc;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.22);
}

.timeline:not(.project-timeline) .timeline-item:nth-child(3n + 2) .timeline-marker {
  background: var(--blue);
}

.timeline:not(.project-timeline) .timeline-item:nth-child(3n) .timeline-marker {
  background: var(--rust);
}

.timeline-copy {
  padding: 24px 26px;
  border: 1px solid rgba(221, 228, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17202a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.timeline-item:nth-child(odd) .timeline-copy {
  grid-column: 1;
  grid-row: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item:nth-child(odd) time {
  grid-column: 3;
  grid-row: 1;
}

.timeline-item:nth-child(even) time {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-marker {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item:nth-child(even) .timeline-copy {
  grid-column: 3;
  grid-row: 1;
}

.timeline-item h4 {
  margin: 4px 0 0;
  color: #526273;
  font-size: 0.98rem;
  font-weight: 750;
}

.timeline-item time {
  color: #000;
  text-shadow: none;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.25;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(221, 228, 236, 0.95);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #17202a;
  font-size: 0.94rem;
  font-weight: 750;
}

.skills-showcase {
  display: grid;
  gap: 22px;
}

.skills-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: end;
}

.skills-intro h3 {
  margin: 0;
}

.skills-intro p {
  max-width: 700px;
  margin: 10px 0 0;
  color: #526273;
  font-size: 1.04rem;
  line-height: 1.55;
}

.core-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.core-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #17202a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.18);
}

.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skills-category {
  display: grid;
  align-content: start;
  gap: 15px;
  min-height: 214px;
  padding: 20px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 246, 0.9));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.skills-category-head {
  display: flex;
  gap: 11px;
  align-items: center;
}

.skills-category-head span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #176b5f;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.skills-category:nth-child(2) .skills-category-head span,
.skills-category:nth-child(4) .skills-category-head span {
  background: #315f88;
}

.skills-category:nth-child(3) .skills-category-head span,
.skills-category:nth-child(6) .skills-category-head span {
  background: #a95c32;
}

.skills-category-head h4 {
  margin: 0;
  color: #17202a;
  font-size: 1.08rem;
  line-height: 1.2;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(23, 107, 95, 0.1);
  color: #175f52;
  font-size: 0.76rem;
  font-weight: 850;
}

.skills-category:nth-child(2) .skill-chip-list span,
.skills-category:nth-child(4) .skill-chip-list span {
  background: rgba(49, 95, 136, 0.11);
  color: #315f88;
}

.skills-category:nth-child(3) .skill-chip-list span,
.skills-category:nth-child(6) .skill-chip-list span {
  background: rgba(169, 92, 50, 0.12);
  color: #86451f;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.footer-list {
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.actions.compact {
  margin-top: 20px;
}

.domain-hero {
  padding: 64px 0 42px;
}

.domain-hero h1 {
  margin: 8px 0 14px;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1;
}

.domain-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.08;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-card,
.role,
.resume-viewer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.skill-card {
  min-height: 170px;
  padding: 20px;
}

.skill-card h3,
.resume-copy h3 {
  margin: 0 0 9px;
  font-size: 1.05rem;
}

.skill-card p,
.resume-copy p {
  margin: 0;
  color: var(--muted);
}

.domain-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.domain-card a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.role {
  padding: 22px;
}

.role-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.role-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.role-header p,
.role-header span {
  margin: 2px 0 0;
  color: var(--muted);
}

.role-header span {
  flex: 0 0 auto;
  font-weight: 750;
}

.role ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.fit-copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.fit-copy p {
  margin: 0;
}

.resume-section {
  padding-bottom: 76px;
}

.resume-viewer {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 24px;
}

.preview-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-link img {
  display: block;
  width: 100%;
  height: auto;
}

.resume-copy {
  max-width: 560px;
}

.resume-page {
  background: #eceff3;
}

.resume-document {
  width: min(880px, calc(100% - 32px));
  margin: 34px auto;
  padding: 46px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.resume-header {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--accent);
  text-align: center;
}

.resume-header > a {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.resume-header h1 {
  margin: 0 0 4px;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 2.4rem;
}

.resume-header p {
  margin: 0;
  color: var(--muted);
}

.resume-document section {
  padding: 20px 0 0;
}

.resume-document h2 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-document h3 {
  margin: 0;
  font-size: 1.05rem;
}

.resume-document p {
  margin: 0;
  color: var(--muted);
}

.resume-role {
  padding-top: 14px;
}

.resume-role span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.compact-list {
  gap: 5px;
}

/* Homepage layout inspired by the reference site. */
.homepage #data-network {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  opacity: 0.85;
  pointer-events: none;
}

.homepage .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  transition: background 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.homepage .site-header.is-scrolled {
  background: rgba(8, 10, 12, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.homepage main,
.homepage .site-footer {
  position: relative;
  z-index: 1;
}

.homepage .nav {
  width: 100%;
  min-height: 74px;
  padding: 0 28px;
  transition: min-height 180ms ease;
}

.homepage .site-header.is-scrolled .nav {
  min-height: 62px;
}

.homepage .brand {
  color: rgba(247, 250, 252, 0.9);
  font-size: 1.48rem;
  font-weight: 800;
}

.homepage .nav-links {
  gap: 10px;
}

.homepage .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 0;
  color: rgba(247, 250, 252, 0.9);
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
}

.homepage .nav-links a:hover {
  background: transparent;
  color: #fff;
}

.splash {
  display: grid;
  min-height: calc(100svh - 74px);
  place-items: center;
  align-content: start;
  row-gap: 0;
  padding: clamp(150px, 24vh, 260px) 16px clamp(76px, 14vh, 150px);
  text-align: center;
}

.profile-picture {
  width: clamp(86px, 8vw, 112px);
  margin-bottom: clamp(30px, 4vh, 40px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 18px 46px rgba(32, 33, 36, 0.18);
}

.splash h1 {
  max-width: min(92vw, 980px);
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 5.3vw, 4.35rem);
  font-weight: 300;
  line-height: 1.04;
}

.splash h2 {
  max-width: 680px;
  margin: clamp(28px, 4vh, 40px) 0 0;
  color: #c5d0da;
  font-size: clamp(1rem, 2vw, 1.38rem);
  font-weight: 400;
  line-height: 1.28;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: clamp(30px, 4.2vh, 42px);
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(141, 229, 210, 0.24);
  border-radius: 6px;
  background: rgba(23, 29, 36, 0.86);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.08);
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.homepage .container {
  width: min(1480px, calc(100% - 32px));
}

.page-section {
  padding: 42px 0;
  background: transparent;
}

.page-section > .container {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(247, 250, 252, 0.94);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  color: #17202a;
}

.page-section h3,
.page-section h4,
.page-section h5,
.page-section strong {
  color: #17202a;
}

.page-section .container > p {
  max-width: 820px;
  margin: 0 0 14px;
  color: #4f5f6d;
  font-size: 1.18rem;
}

.page-section .container > p strong {
  color: #17202a;
  font-size: 1.34rem;
}

.about-summary {
  display: grid;
  max-width: 900px;
  gap: 18px;
}

.about-summary p {
  margin: 0;
  color: #526273;
  line-height: 1.58;
}

.summary-kicker {
  color: #17202a;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 850;
}

.summary-lead {
  max-width: 780px;
  color: #17202a;
  font-size: clamp(1.38rem, 2.5vw, 2.05rem);
  font-weight: 850;
  line-height: 1.18;
}

.summary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 44px);
  max-width: 860px;
}

.summary-columns p {
  max-width: 42ch;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.summary-close {
  max-width: 680px;
  font-size: 1rem;
  font-weight: 750;
}

.section-title {
  padding: 42px 0 22px;
  background: transparent;
  border: 0;
  text-align: center;
}

.section-title h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7fafc;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

.page-section h3 {
  margin: 0 0 26px;
  font-size: 1.55rem;
  font-weight: 800;
}

.top-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.project-category {
  margin-top: 38px;
}

.project-category:first-of-type {
  margin-top: 0;
}

.category-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
}

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

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-timeline {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
  scroll-margin-top: 88px;
}

.section-note {
  max-width: 740px;
  margin: -16px 0 26px;
  color: #526273;
  font-size: 1.04rem;
}

.portfolio-card {
  display: grid;
  align-content: start;
  min-height: 286px;
  padding: 22px;
  border: 1px solid rgba(221, 228, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17202a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.portfolio-card h5 {
  margin: 0 0 10px;
  color: #17202a;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.28;
}

.portfolio-card p {
  margin: 0 0 18px;
  color: #526273;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8f5f1;
  color: #175f52;
  font-size: 0.76rem;
  font-weight: 800;
}

.showcase-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(32, 33, 36, 0.16);
}

.card-green {
  background: #176b5f;
}

.card-blue {
  background: #315f88;
}

.card-rust {
  background: #a95c32;
}

.card-dark {
  background: #34383c;
}

.card-content {
  padding: 24px;
}

.card-symbol {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 850;
}

.showcase-card img {
  display: block;
  width: 100%;
  max-height: 128px;
  margin-bottom: 18px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.showcase-card h4 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.showcase-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.card-actions {
  padding: 18px 24px 24px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.homepage .timeline-copy h3 {
  color: #17202a;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.homepage .timeline-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.homepage .timeline-copy h3 a:hover {
  color: #176b5f;
}

.homepage .timeline-copy h4 {
  color: #17202a;
  font-size: 1.1rem;
  font-weight: 800;
}

.homepage .timeline-copy p {
  color: #526273;
  font-size: 1.04rem;
}

.homepage .keyword-cloud span {
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.05);
}

.site-footer {
  background: rgba(16, 20, 25, 0.72);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.footer-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 44px 0;
}

.footer-section h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 650;
}

.footer-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.copyright {
  border-top: 1px solid var(--line);
  background: rgba(23, 29, 36, 0.72);
}

.copyright .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  color: var(--muted);
}

.copyright p {
  margin: 0;
}

@media print {
  .site-header,
  .resume-header > a {
    display: none;
  }

  .resume-page {
    background: #fff;
  }

  .resume-document {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .homepage .nav {
    width: 100%;
    padding: 12px 18px;
  }

  .homepage .brand {
    font-size: 1.25rem;
  }

  .homepage .nav-links a {
    padding: 0 8px;
    font-size: 0.92rem;
  }

  .splash {
    min-height: auto;
    padding-top: 42px;
  }

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

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

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

  .showcase-card {
    min-height: 340px;
  }

  .footer-sections,
  .copyright .container {
    grid-template-columns: 1fr;
  }

  .footer-sections {
    gap: 30px;
  }

  .copyright .container {
    display: grid;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .profile-hero,
  .section-heading,
  .fit-layout,
  .resume-viewer {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .profile-hero::before {
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 100%);
  }

  .identity-card {
    position: static;
  }

  .hello {
    padding-top: 0;
  }

  .timeline {
    gap: 26px;
    padding-left: 36px;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
  }

  .timeline-marker {
    width: 48px;
    height: 48px;
    margin: 0;
    border-width: 3px;
    font-size: 0.7rem;
  }

  .timeline-item:nth-child(odd) .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-item:nth-child(odd) time,
  .timeline-item:nth-child(even) time {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-copy,
  .timeline-item:nth-child(even) .timeline-copy {
    grid-column: 2;
    grid-row: 2;
  }

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

  .skills-intro {
    grid-template-columns: 1fr;
  }

  .core-stack {
    justify-content: flex-start;
  }

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

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .top-projects {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .summary-columns {
    grid-template-columns: 1fr;
  }

  .skills-category-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    min-height: auto;
  }

  .section-title {
    padding: 26px 0;
  }

  .page-section {
    padding: 42px 0;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    width: 100%;
    max-width: 180px;
  }

  .profile-hero {
    width: min(100%, calc(100% - 16px));
    padding-right: 18px;
    padding-left: 18px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline-copy {
    padding: 20px;
  }

  .quick-links,
  .actions,
  .role-header {
    flex-direction: column;
  }

  .quick-links a,
  .button {
    width: 100%;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: auto;
  }

  .resume-document {
    padding: 30px 22px;
  }
}

.homepage .section-title,
.homepage .section-title h2 {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.homepage .section-title h2 {
  padding: 0;
  color: #f7fafc;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
}

.timeline.timeline-groups {
  display: grid;
  gap: 24px;
  padding: 4px 0 0;
}

.timeline.timeline-groups::before {
  display: none;
}

.timeline-subtitle {
  margin: 42px 0 16px;
  color: #17202a;
  font-size: 1.36rem;
  font-weight: 850;
  line-height: 1.2;
}

.timeline-subtitle:first-of-type {
  margin-top: 0;
}

.project-timeline-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
}

.project-timeline-head .timeline-subtitle {
  margin: 0;
}

.project-domain-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.project-domain-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #17202a;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.domain-dot {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--domain-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--domain-color) 18%, #fff 82%);
}

.domain-data {
  --domain-color: #176b5f;
}

.domain-ml {
  --domain-color: #315f88;
}

.domain-ee {
  --domain-color: #a95c32;
}

.project-timeline {
  gap: 34px;
  margin-top: 10px;
}

.project-timeline::before {
  top: 28px;
  bottom: 34px;
  width: 3px;
  background: rgba(23, 107, 95, 0.36);
}

.project-timeline .timeline-item {
  min-height: 178px;
}

.project-timeline .timeline-marker {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 255, 255, 0.94);
  background: var(--domain-color);
  box-shadow:
    0 10px 24px rgba(32, 33, 36, 0.22),
    inset 0 0 0 8px color-mix(in srgb, #fff 18%, var(--domain-color) 82%);
}

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

.education-card {
  --education-accent: #176b5f;
  --education-logo-box: clamp(56px, 5.2vw, 72px);
  --education-logo-size: clamp(42px, 4.4vw, 58px);
  position: relative;
  display: grid;
  grid-template-columns: var(--education-logo-box) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 22px);
  align-items: start;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 246, 0.96));
  color: #17202a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.education-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--education-accent);
  content: "";
}

.education-poly {
  --education-accent: #315f88;
}

.education-tehran {
  --education-accent: #176b5f;
}

.education-logo {
  display: grid;
  width: var(--education-logo-box);
  min-width: var(--education-logo-box);
  height: var(--education-logo-box);
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--education-accent) 28%, #fff 72%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55);
}

.education-card .education-logo > img {
  display: block;
  width: var(--education-logo-size);
  max-width: 82%;
  height: var(--education-logo-size);
  max-height: 82%;
  object-fit: contain;
  object-position: center;
}

.education-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--education-accent) 24%, #fff 76%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--education-accent) 10%, #fff 90%);
  color: #17202a;
  font-size: clamp(0.74rem, 1vw, 0.82rem);
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

.education-copy {
  display: grid;
  align-content: start;
  min-width: 0;
}

.education-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.education-head h4 {
  margin: 0;
  color: #17202a;
  font-size: 1.45rem;
  line-height: 1.16;
}

.education-degree,
.education-location {
  margin: 0;
  line-height: 1.35;
}

.education-degree {
  margin-top: 8px;
  color: #176b5f;
  font-weight: 850;
}

.education-location {
  color: #526273;
  font-size: 0.94rem;
  font-weight: 750;
}

.education-copy > p:not(.education-degree):not(.education-location) {
  margin: 14px 0 0;
  color: #526273;
  font-size: 0.97rem;
  line-height: 1.52;
}

.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.education-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8f5f1;
  color: #175f52;
  font-size: 0.76rem;
  font-weight: 850;
}

.project-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 6px;
  background: #e8f5f1;
  color: #175f52;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.project-link:hover {
  background: #d5eee7;
  color: #0d4d44;
}

.certifications-section .container {
  overflow: hidden;
}

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

.certificate-card {
  --logo-size: clamp(24px, 3vw, 32px);
  --seal-size: clamp(54px, 6vw, 68px);
  position: relative;
  display: grid;
  grid-template-columns: var(--seal-size) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 16px);
  min-height: 280px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 246, 0.96));
  color: #17202a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.certificate-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: #176b5f;
  content: "";
}

.certificate-google::before {
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
}

.certificate-ai::before {
  background: linear-gradient(90deg, #176b5f, #48c6a7);
}

.certificate-azure::before {
  background: linear-gradient(90deg, #315f88, #7bb7e8);
}

.certificate-google {
  --logo-size: clamp(23px, 3vw, 32px);
}

.certificate-ai {
  --logo-size: clamp(25px, 3.2vw, 34px);
}

.certificate-azure {
  --logo-size: clamp(24px, 3vw, 33px);
}

.certificate-seal {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--seal-size);
  height: var(--seal-size);
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid rgba(23, 107, 95, 0.22);
  border-radius: 50%;
  background: #fff;
  color: #176b5f;
  font-size: 1rem;
  font-weight: 850;
  box-shadow: inset 0 0 0 clamp(4px, 0.7vw, 6px) rgba(255, 255, 255, 0.8);
}

.certificate-seal img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--logo-size);
  height: var(--logo-size);
  max-width: 62%;
  max-height: 62%;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}

.certificate-google .certificate-seal {
  border-color: rgba(66, 133, 244, 0.24);
  background: #eef5ff;
  color: #315f88;
}

.certificate-azure .certificate-seal {
  border-color: rgba(49, 95, 136, 0.24);
  background: #edf5fb;
  color: #315f88;
}

.certificate-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-width: 0;
}

.certificate-heading h4 {
  margin: 0;
  color: #17202a;
  font-size: 1.15rem;
  line-height: 1.2;
}

.certificate-heading span {
  display: block;
  margin-top: 6px;
  color: #176b5f;
  font-size: 0.86rem;
  font-weight: 850;
}

.certificate-card p {
  margin: 14px 0 0;
  color: #526273;
  font-size: 0.96rem;
  line-height: 1.5;
}

.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.certificate-actions a,
.certificate-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.certificate-actions a {
  background: #176b5f;
  color: #fff;
  text-decoration: none;
}

.certificate-actions a:hover {
  background: #0d4d44;
}

.certificate-actions span {
  background: #e8f5f1;
  color: #175f52;
}

.certificate-actions .certificate-status {
  background: #eef3f7;
  color: #526273;
}

.timeline-era {
  --era-accent: #176b5f;
  --era-logo-box: clamp(54px, 5vw, 68px);
  --era-logo-size: clamp(50px, 5vw, 66px);
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.timeline-era.era-bright {
  --era-accent: #176b5f;
}

.timeline-era.era-poly {
  --era-accent: #315f88;
}

.timeline-era.era-rahbord {
  --era-accent: #a95c32;
}

.timeline-era.era-tehran {
  --era-accent: #34383c;
}

.era-header {
  display: grid;
  grid-template-columns: var(--era-logo-box) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 16px);
  align-items: center;
  align-content: start;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--era-accent) 92%, #111 8%), var(--era-accent));
  color: #fff;
}

.era-badge {
  position: relative;
  display: grid;
  width: var(--era-logo-box);
  min-width: var(--era-logo-box);
  height: var(--era-logo-box);
  align-self: center;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.48);
}

.era-badge img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--era-logo-size);
  max-width: 94%;
  height: var(--era-logo-size);
  max-height: 94%;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}

.era-bright .era-badge img {
  border-radius: 50%;
}

.era-header p,
.era-header h4,
.era-header span {
  margin: 0;
  color: inherit;
}

.era-header p {
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.era-header h4 {
  margin-top: 4px;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.08;
}

.era-header span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.45;
}

.era-body {
  display: grid;
  gap: 18px;
}

.era-experience {
  padding: 18px 20px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17202a;
}

.era-experience h5,
.era-experience time {
  margin: 0;
}

.era-experience h5 {
  color: #17202a;
  font-size: 1.12rem;
  line-height: 1.2;
}

.era-experience time {
  display: block;
  margin-top: 3px;
  color: var(--era-accent);
  font-size: 0.88rem;
  font-weight: 850;
}

.era-experience ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #526273;
  font-size: 0.94rem;
  line-height: 1.48;
}

.era-projects {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 28px;
}

.era-projects::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--era-accent) 58%, #dfe7ee 42%);
  content: "";
}

.era-project {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-left: 4px solid var(--era-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17202a;
}

.era-project::before {
  position: absolute;
  top: 22px;
  left: -32px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--era-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--era-accent) 55%, #fff 45%);
  content: "";
}

.era-project::after {
  position: absolute;
  top: 28px;
  left: -17px;
  width: 17px;
  height: 2px;
  background: color-mix(in srgb, var(--era-accent) 62%, #dfe7ee 38%);
  content: "";
}

.era-project time {
  color: #111;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.era-project h5 {
  margin: 8px 0 8px;
  color: #17202a;
  font-size: 1.02rem;
  line-height: 1.24;
}

.era-project p {
  margin: 0;
  color: #526273;
  font-size: 0.94rem;
  line-height: 1.48;
}

.era-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.era-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--era-accent) 12%, #fff 88%);
  color: var(--era-accent);
  font-size: 0.74rem;
  font-weight: 850;
}

@media (max-width: 920px) {
  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    min-height: 0;
  }

  .certification-grid {
    grid-template-columns: 1fr;
  }

  .certificate-card {
    min-height: 0;
  }

  .timeline-era {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .education-card {
    --education-logo-box: 56px;
    --education-logo-size: 46px;
    grid-template-columns: var(--education-logo-box) minmax(0, 1fr);
    padding: 18px;
  }

  .education-year {
    min-height: 28px;
  }

  .certificate-card {
    --logo-size: 28px;
    --seal-size: 58px;
    grid-template-columns: 1fr;
  }

  .era-header {
    --era-logo-box: 56px;
    --era-logo-size: 54px;
    grid-template-columns: var(--era-logo-box) minmax(0, 1fr);
  }

  .timeline-era {
    padding: 12px;
  }

  .era-projects {
    padding-left: 24px;
  }
}

@media (max-width: 560px) {
  .project-timeline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-domain-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .education-head {
    grid-template-columns: 1fr;
  }

  .education-year {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .homepage #data-network {
    opacity: 0.62;
  }

  .homepage .site-header {
    background: rgba(8, 10, 12, 0.82);
    backdrop-filter: blur(10px);
  }

  .homepage .nav {
    min-height: auto;
    padding: 10px 14px 12px;
  }

  .homepage .brand {
    width: 100%;
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .homepage .nav-links {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .homepage .nav-links::-webkit-scrollbar {
    display: none;
  }

  .homepage .nav-links a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
  }

  .splash {
    min-height: calc(100svh - 92px);
    align-content: center;
    row-gap: 0;
    padding: 30px 16px 46px;
  }

  .profile-picture {
    width: clamp(78px, 22vw, 102px);
    margin-bottom: clamp(24px, 4.8vh, 36px);
  }

  .splash h1 {
    max-width: 13ch;
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.05;
  }

  .splash h2 {
    max-width: 22rem;
    margin-top: clamp(22px, 4vh, 30px);
    font-size: 1rem;
  }

  .socials {
    max-width: 320px;
    gap: 10px;
    margin-top: clamp(26px, 4.6vh, 36px);
  }

  .socials a {
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .homepage .container,
  .container {
    width: min(100% - 20px, 1480px);
  }

  .page-section {
    padding: 26px 0;
  }

  .page-section > .container {
    padding: 20px;
  }

  .homepage .section-title h2 {
    padding-inline: 10px;
    font-size: clamp(2rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .project-domain-legend span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .domain-dot {
    width: 0.78rem;
    height: 0.78rem;
    margin-right: 7px;
  }
}

@media (max-width: 560px) {
  .timeline {
    gap: 22px;
    padding-left: 28px;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .timeline-marker,
  .project-timeline .timeline-marker {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }

  .project-timeline .timeline-marker {
    box-shadow:
      0 8px 18px rgba(32, 33, 36, 0.18),
      inset 0 0 0 6px color-mix(in srgb, #fff 18%, var(--domain-color) 82%);
  }

  .timeline-copy {
    padding: 16px;
  }

  .homepage .timeline-copy h3 {
    font-size: 1.22rem;
  }

  .homepage .timeline-copy p {
    font-size: 0.94rem;
  }

  .timeline-item time {
    font-size: 0.98rem;
  }

  .education-grid,
  .certification-grid,
  .skills-category-grid {
    gap: 12px;
  }

  .education-card,
  .certificate-card,
  .skills-category {
    min-height: 0;
    padding: 16px;
  }

  .timeline-era {
    gap: 12px;
  }

  .era-header {
    padding: 16px;
  }

  .era-experience {
    padding: 16px;
  }

  .footer-sections,
  .copyright .container {
    width: min(100% - 20px, 1480px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .homepage #data-network {
    opacity: 0.38;
  }
}
