:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #f6f8ff;
  --muted: #aab3c6;
  --line: rgba(163, 183, 255, 0.22);
  --accent: #7aa7ff;
  /* --accent: #ff7a7a; */
  --accent-2: #b77dff;
  --ring: rgba(122, 167, 255, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);

  /* Typography scale */
  --type-display: clamp(2.6rem, 6.5vw, 4.6rem);
  --type-display-sm: clamp(1.85rem, 9.5vw, 2.25rem);
  --type-display-lh: 0.9;
  --type-display-ls: -0.025em;

  --type-section: clamp(1.5rem, 3.5vw, 2.6rem);
  --type-section-lh: 0.95;
  --type-section-ls: -0.06em;

  --type-hero-role: clamp(1.4rem, 3vw, 2.2rem);
  --type-hero-role-lh: 1.15;
  --type-hero-role-ls: -0.05em;

  --type-label: 0.78rem;
  --type-label-lh: 1.3;
  --type-label-ls: 0.14em;

  --type-card-title: clamp(1.1rem, 2.2vw, 1.35rem);
  --type-card-title-lh: 1.25;
  --type-card-title-ls: 0;

  --type-body-lg: 1.05rem;
  --type-body: 0.9rem;
  --type-body-lh: 1.55;

  --type-caption: 0.8rem;
  --type-caption-ls: 0.02em;

  --type-ui: 0.95rem;

  --weight-bold: 800;
  --weight-semibold: 700;
}

img {
  height: auto;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(122, 167, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(183, 125, 255, 0.2), transparent 28rem),
    linear-gradient(135deg, #050712 0%, #0a1020 45%, #070a12 100%);
}


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

button {
  font: inherit;
}

.page-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  min-height: 40vh;
  padding-bottom: 60px;
}

.hero__content {
  max-width: 660px;
}

/* Shared text roles */
.text-label,
.eyebrow,
.timeline-item__period,
.timeline-section__label {
  color: var(--accent);
  font-size: var(--type-label);
  font-weight: var(--weight-bold);
  line-height: var(--type-label-lh);
  letter-spacing: var(--type-label-ls);
  text-transform: uppercase;
}

.text-card-title,
.timeline-item__title,
.work .project-card h3,
.publication-card h3 {
  color: var(--text);
  font-size: var(--type-card-title);
  font-weight: var(--weight-bold);
  line-height: var(--type-card-title-lh);
  letter-spacing: var(--type-card-title-ls);
}

.text-body,
.hero__summary,
.section-heading p,
.project-card p,
.timeline-item__description,
.publication-card__authors,
.publication-card__doi,
.project-card ul {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
}

.text-body-lg,
.hero__summary {
  font-size: var(--type-body-lg);
}

.text-link,
.publication-card__doi a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible,
.publication-card__doi a:hover,
.publication-card__doi a:focus-visible {
  color: var(--text);
}

.text-caption,
.project-card__featured {
  font-size: var(--type-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--type-caption-ls);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: var(--type-display);
  line-height: var(--type-display-lh);
  letter-spacing: var(--type-display-ls);
}

h2 {
  margin-bottom: 14px;
  font-size: var(--type-section);
  line-height: var(--type-section-lh);
  letter-spacing: var(--type-section-ls);
}

h3 {
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0 0 14px;
}

.work .project-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45em;
}

.project-card__featured {
  display: inline-block;
  padding: 0.3em 0.72em;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 255, 255, 0.12);
  color: #0a1020;
  vertical-align: middle;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card__featured:hover,
.project-card__featured:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(255, 255, 255, 0.18);
}

.hero__roles {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: var(--type-hero-role);
  font-weight: var(--weight-semibold);
  line-height: var(--type-hero-role-lh);
  letter-spacing: var(--type-hero-role-ls);
}

.hero__summary {
  max-width: 600px;
  margin-bottom: 30px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border: none;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.socials__link:hover,
.socials__link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.socials__link--linkedin {
  background: #0077b5;
  color: #fff;
}

.socials__link--twitter {
  background: var(--panel-strong);
  color: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.socials__link--email {
  padding: 0;
  overflow: hidden;
}

.socials__icon--email {
  width: 100%!important;
  height: 100%!important;
  object-fit: cover;
  border-radius: inherit;
}

.socials__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.portrait__glow {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: blur(46px);
  opacity: 0.34;
}

.portrait__card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 30%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait__card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(5, 7, 18, 0.2), transparent 45%);
}

.portrait__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research,
.work {
  padding: 60px 0 0;
}

.section-heading {
  margin-bottom: 25px;
}

.publication-list {
  display: grid;
  gap: 16px;
}

.publication-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.publication-card:hover {
  border-color: rgba(122, 167, 255, 0.18);
}

.publication-card > div:not(.publication-card__media) {
  min-width: 0;
}

.publication-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-top: 2px;
}

.publication-card__media img {
  display: block;
  width: 70%;
  height: 70%;
  object-fit: cover;
}

.publication-card__venue {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: clamp(0.9rem, 2.1vw, 1.05rem);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a.publication-card__media {
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

a.publication-card__media:hover {
  transform: scale(1.05);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(122, 167, 255, 0.24);
}

a.publication-card__media:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.publication-card h3 {
  margin: 0 0 12px;
}

.publication-card__doi {
  margin: 0 0 8px;
}

.publication-card__authors {
  margin: 0;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  gap: 22px;
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 17px;
  width: 2px;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

.timeline-item {
  position: relative;
  grid-column: 2;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  overflow: visible;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.timeline-item.is-open {
  border-color: rgba(122, 167, 255, 0.28);
  background: var(--panel-strong);
}

.timeline-item:nth-child(odd) {
  justify-self: stretch;
}

.timeline-item:nth-child(even) {
  justify-self: stretch;
}

.timeline-item--nested {
  margin-left: 0;
}

.timeline-item--learning {
  border-style: dashed;
  border-color: var(--accent);
  background: rgba(122, 167, 255, 0.04);
  box-shadow: none;
}

.timeline-item--learning.is-open {
  border-color: rgba(122, 167, 255, 0.42);
  background: rgba(122, 167, 255, 0.07);
}

.timeline-item--learning .timeline-item__dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: learning-pulse 2.4s ease-in-out infinite;
}

.timeline-item--learning.is-open .timeline-item__dot {
  border-color: rgba(122, 167, 255, 0.85);
}

.timeline-item--learning.is-open .timeline-item__trigger::after {
  color: var(--accent);
}

.timeline-item--learning .timeline-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
}

.timeline-item__badge {
  display: inline-block;
  padding: 0.28em 0.68em;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: rgba(122, 167, 255, 0.12);
  color: var(--accent);
  font-size: var(--type-caption);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item--learning .timeline-item__skills {
  border-top-style: dashed;
  border-top-color: rgba(122, 167, 255, 0.18);
  background: rgba(122, 167, 255, 0.05);
}

.timeline-item--compact .timeline-item__header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 24px;
}

.timeline-item--compact .timeline-item__heading {
  padding-right: 0;
}

.timeline-item--compact .timeline-item__title {
  flex-wrap: nowrap;
}

.timeline-item--compact .timeline-item__skills {
  border-top: 0;
  padding-top: 18px;
}

.skills--learning span {
  border-style: dashed;
  border-color: rgba(122, 167, 255, 0.28);
  background: rgba(122, 167, 255, 0.1);
  color: #dce5ff;
}

@keyframes learning-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(122, 167, 255, 0.45);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(122, 167, 255, 0);
  }
}

.timeline-item__trigger {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  width: 100%;
  padding: 24px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.timeline-item__trigger::after {
  position: absolute;
  top: 26px;
  right: 24px;
  color: var(--muted);
  content: "+";
  font-size: 1.45rem;
  font-weight: 500;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.timeline-item.is-open .timeline-item__trigger::after {
  color: var(--accent);
  transform: rotate(45deg);
}

.timeline-item__trigger:hover .timeline-item__title,
.timeline-item__trigger:focus-visible .timeline-item__title {
  color: var(--text);
}

.timeline-item__trigger:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -3px;
}

.timeline-item__dot {
  display: block;
  position: absolute;
  top: 30px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.timeline-item.is-open .timeline-item__dot {
  border: 3px solid rgba(246, 248, 255, 0.95);
}


.timeline-item:nth-child(odd) .timeline-item__dot {
  left: -55px;
}

.timeline-item:nth-child(even) .timeline-item__dot {
  left: -55px;
}

.timeline-item__heading {
  display: grid;
  gap: 8px;
  padding-right: 34px;
}

.timeline-item__title {
  display: block;
  transition: color 180ms ease;
}

.timeline-item__body {
  display: grid;
  gap: 22px;
  max-height: 0;
  padding: 0 24px 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    padding 320ms ease;
}

.timeline-item.is-open .timeline-item__body {
  max-height: 4000px;
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

.timeline-item__body[hidden] {
  display: none;
}

.timeline-section {
  display: grid;
  gap: 12px;
}

.timeline-item__skills {
  border-radius: 0 0 24px 24px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.timeline-section__label {
  margin-bottom: 0;
}

.timeline-item__description {
  max-width: 660px;
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.project-card:hover {
  border-color: rgba(122, 167, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.project-card > div:not(.project-card__media) {
  min-width: 0;
}

.project-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--type-ui);
  font-weight: var(--weight-bold);
  letter-spacing: -0.05em;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-top: 2px;
}

a.project-card__media {
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

a.project-card__media:hover {
  transform: scale(1.05);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(122, 167, 255, 0.24);
}

a.project-card__media:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__media--escapenow {
  background: rgba(0, 0, 0, 0.8)
}

.project-card__media--robotics {
  background: linear-gradient(135deg, #4b7bff, #23d5ab);
}

.project-card__media--vision {
  background: linear-gradient(135deg, #5f6cff, #d96fff);
}

.project-card__media--spatial,
.project-card__media--xr {
  background: linear-gradient(135deg, #ff7ab6, #7b61ff);
}

.project-card__media--visionos {
  background: linear-gradient(135deg, #f7faff, #7aa7ff 45%, #b77dff);
}

.project-card__media--web {
  background: linear-gradient(135deg, #1f8fff, #59f0c6);
}

.project-card__media--cloud {
  background: linear-gradient(135deg, #f48120, #ffd166);
}

.project-card p {
  margin-bottom: 0;
}

.project-card ul {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.project-card li::marker {
  color: var(--accent);
}

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

.skills span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #dce5ff;
  font-size: var(--type-caption);
  font-weight: 500;
}

.skills span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


@media (max-width: 820px) {
  :root {
    --type-section: clamp(2.15rem, 7vw, 2.6rem);
  }

  .page-shell {
    width: min(100% - 40px, 640px);
    padding-top: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 36px 0 56px;
  }

  .portrait {
    order: -1;
    min-height: 240px;
  }

  .portrait__card {
    width: 220px;
    border-radius: 34px;
  }

  .portrait__card span {
    font-size: 6rem;
  }

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

  .project-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px 16px;
    justify-items: start;
  }

  .project-card > div:not(.project-card__media) {
    width: 100%;
  }

  .project-card__media {
    width: 104px;
    height: 104px;
    margin-top: 0;
    border-radius: 22px;
    justify-self: start;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px 16px;
    justify-items: start;
  }

  .publication-card > div:not(.publication-card__media) {
    width: 100%;
  }

  .publication-card__media {
    width: 104px;
    height: 104px;
    margin-top: 0;
    border-radius: 22px;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .timeline {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  .timeline-item--nested {
    margin-left: 0;
  }

  .timeline-item__trigger,
  .timeline-item--compact .timeline-item__header {
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .timeline-item__dot {
    position: static;
    align-self: start;
    margin-top: 5px;
  }

  .timeline-item:nth-child(odd) .timeline-item__dot,
  .timeline-item:nth-child(even) .timeline-item__dot {
    right: auto;
    left: auto;
  }

  .timeline-item__body {
    padding-left: 24px;
  }

  .timeline-item__skills {
    padding-left: 24px;
  }
}

@media (max-width: 520px) {
  :root {
    --type-section: clamp(2.35rem, 8vw, 2.6rem);
  }

  .page-shell {
    width: min(100% - 32px, 440px);
  }

  h1 {
    font-size: var(--type-display-sm);
  }

  .timeline {
    padding-left: 0;
  }

  .timeline-item__trigger {
    padding: 20px;
  }

  .timeline-item__body {
    padding: 0 20px 0;
  }

  .timeline-item.is-open .timeline-item__body {
    padding-bottom: 20px;
  }

  .timeline-item__skills {
    padding: 16px 20px 20px;
  }

  .timeline-item__trigger::after {
    top: 20px;
    right: 20px;
  }
}
