:root {
  --ink: #07111f;
  --ink-2: #102238;
  --paper: #f7f3ec;
  --paper-2: #efe7dc;
  --card: #ffffff;
  --line: rgba(7, 17, 31, 0.12);
  --muted: #607084;
  --teal: #00a7a5;
  --green: #2e9d64;
  --gold: #d9a441;
  --red: #d95c45;
  --blue: #2b6fe8;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(7, 17, 31, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 10px 12px;
  border-radius: var(--radius);
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(247, 243, 236, 0.95);
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.08);
}

.topbar__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand__mark,
.avatar,
.contactMark {
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(7, 17, 31, 0.06);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.45);
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(46, 157, 100, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 64px 0 48px;
}

.heroCanvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(to top, var(--paper), rgba(247, 243, 236, 0));
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 44px;
  align-items: center;
}

.eyebrow,
.sectionHead p,
.label {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--teal);
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  font-weight: 600;
}

.hero__tags,
.chips,
.signalStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__tags {
  margin-top: 26px;
}

.hero__tags span,
.chips span,
.signalStrip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 11px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.hero__actions,
.contactActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 12px 16px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 12px 30px rgba(7, 17, 31, 0.1);
}

.button--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.button--primary:hover {
  background: #0d1c31;
}

.profilePanel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(0, 167, 165, 0.12), rgba(217, 164, 65, 0.14));
  box-shadow: var(--shadow);
}

.profilePanel__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  font-size: 24px;
}

.profilePanel__top p {
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 800;
}

.profilePanel__top strong {
  font-size: 30px;
  line-height: 1;
}

.signalStrip {
  padding: 0 20px 18px;
}

.marquee {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.94);
  color: white;
}

.marquee div {
  display: flex;
  min-width: max-content;
  gap: 10px;
  animation: marquee 28s linear infinite;
}

.marquee span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.stats div {
  background: rgba(255, 255, 255, 0.8);
  padding: 22px;
}

.stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats dd {
  margin: 6px 0 0;
  font-size: 34px;
  font-weight: 900;
}

.section {
  padding: 92px 0;
}

.section--ink {
  color: var(--ink);
  background: var(--paper-2);
}

.section--soft {
  background: var(--paper-2);
}

.sectionHead {
  max-width: 760px;
  margin-bottom: 34px;
}

.sectionHead h2,
.contactCard h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 128px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.timeline__item::after {
  content: "";
  position: absolute;
  left: 122px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px var(--paper);
}

.timeline time {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline h3,
.projectCard h3,
.researchCard h3,
.skillsGrid h3,
.achievementGrid h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.timeline p,
.projectCard p,
.researchCard p,
.achievementGrid p,
.contactCard p {
  color: var(--muted);
  line-height: 1.72;
}

.timeline .place {
  margin: 8px 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.projectGrid,
.researchGrid,
.skillsGrid,
.achievementGrid {
  display: grid;
  gap: 16px;
}

.projectGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.projectCard,
.researchCard,
.skillsGrid article,
.achievementGrid article,
.contactCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(7, 17, 31, 0.08);
}

.section--ink .projectCard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64)),
    var(--card);
  box-shadow: 0 12px 40px rgba(7, 17, 31, 0.08);
}

.section--ink .projectCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
}

.projectCard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 42px;
}

.projectCard__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projectCard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.section--ink .projectCard p {
  color: var(--muted);
}

.projectCard__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 167, 165, 0.1);
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
}

.chips {
  margin-top: auto;
  padding-top: 18px;
}

.projectCard__link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
}

.section--ink .chips span {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-2);
}

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

.venue {
  min-height: 58px;
  margin-bottom: 18px;
}

.certificate {
  display: inline-flex;
  margin: 0 0 16px;
  border-radius: 999px;
  background: rgba(0, 167, 165, 0.1);
  color: var(--teal) !important;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.researchCard dl {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.researchCard dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.researchCard dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.researchCard dd {
  margin: 0;
  max-width: 58%;
  text-align: right;
  font-weight: 800;
}

.textLink,
.achievementGrid a,
.footer a {
  color: var(--blue);
  font-weight: 900;
}

.textLink {
  display: inline-flex;
  margin-right: 16px;
  margin-top: 4px;
}

.textLink--secondary {
  color: var(--green);
}

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

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

.skillsGrid li {
  color: var(--ink-2);
  font-weight: 700;
}

.skillsGrid li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
}

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

.achievementGrid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.achievementGrid p {
  margin-bottom: auto;
}

.achievementGrid span {
  color: var(--muted);
  font-weight: 900;
}

.contactSection {
  padding: 72px 0;
  background: var(--ink);
}

.contactCard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: white;
}

.contactMark {
  width: 92px;
  height: 92px;
  border-radius: var(--radius);
  font-size: 30px;
}

.contactCard p {
  max-width: 720px;
  margin-bottom: 0;
}

.contactActions {
  grid-column: 2;
  margin-top: 0;
}

.footer {
  padding: 26px 0;
  background: #050b14;
  color: rgba(255, 255, 255, 0.72);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer p {
  margin: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 10px));
  }
}

@media (max-width: 1080px) {
  .status {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .topbar__inner {
    min-height: 64px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 60px;
  }

  .hero__grid,
  .researchGrid,
  .contactCard {
    grid-template-columns: 1fr;
  }

  .profilePanel {
    order: -1;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 76px);
  }

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

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }

  .timeline__item::after {
    left: 2px;
  }

  .projectGrid,
  .skillsGrid,
  .achievementGrid {
    grid-template-columns: 1fr;
  }

  .contactActions {
    grid-column: auto;
  }

  .footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

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