:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --paper: #f5f5f7;
  --cream: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --saffron: #0071e3;
  --teal: #2997ff;
  --moss: #1d1d1f;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --nav: 72px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(41, 151, 255, 0.1), transparent 52%),
    radial-gradient(700px 360px at 0% 18%, rgba(0, 113, 227, 0.05), transparent 46%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  counter-reset: section;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(41, 151, 255, 0.22);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.person {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(41, 151, 255, 0.45);
  text-underline-offset: 3px;
}

.person:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

.ink .person:hover {
  color: #7dc1ff;
  text-decoration-color: #7dc1ff;
}

button {
  font: inherit;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--saffron);
  color: #fff;
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, height 0.2s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 64px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.4rem;
}

.brand b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--moss);
  color: var(--paper);
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.brand:hover b {
  background: var(--saffron);
  transform: rotate(-6deg);
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.menu a.is-active,
.menu a:hover {
  color: var(--ink);
  background: rgba(41, 151, 255, 0.1);
}

.nav-cta {
  background: var(--saffron) !important;
  color: #fff !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  padding: 56px 0 40px;
  scroll-margin-top: calc(var(--nav) + 10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-grid>* {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero h1 {
  margin: 12px 0 12px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #3a3a3c;
}

.lede {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  overflow-wrap: break-word;
  text-align: justify;
  text-justify: inter-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-fill {
  background: var(--saffron);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.28);
}

.btn-line {
  border: 1px solid var(--line);
  background: var(--cream);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-fill:hover {
  background: #147ce5;
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.35);
}

.btn-line:hover {
  border-color: rgba(41, 151, 255, 0.45);
  background: #fff;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-3px);
  background: var(--saffron);
  color: #fff;
  border-color: transparent;
}

.ico {
  width: 20px;
  height: 20px;
  display: block;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 108px;
  padding: 14px 10px;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.logo-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(41, 151, 255, 0.4);
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.logo-tile span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}

.float-logos {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  gap: 8px;
  z-index: 2;
}

.float-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  animation: bob 3.4s ease-in-out infinite;
}

.float-logo .ico {
  width: 22px;
  height: 22px;
  color: var(--saffron);
}

.venue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.venue .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(41, 151, 255, 0.12);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
  transform: translateX(4px);
  border-color: rgba(41, 151, 255, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip .ico {
  width: 14px;
  height: 14px;
}

.school-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.stat {
  padding: 16px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 151, 255, 0.45);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(41, 151, 255, 0.32), transparent);
  height: 28%;
  animation: scan 4.5s linear infinite;
  pointer-events: none;
}

.overlay-svg {
  position: absolute;
  inset: 18px;
  z-index: 1;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  pointer-events: none;
}

.curve {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw 3.2s ease forwards infinite;
}

.c1 {
  stroke: #2997ff;
}

.c2 {
  stroke: #7dc1ff;
  animation-delay: 0.4s;
}

.c3 {
  stroke: #0071e3;
  animation-delay: 0.8s;
}

.float-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.78);
  color: var(--paper);
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
}

.section {
  padding: 88px 0;
  counter-increment: section;
  scroll-margin-top: calc(var(--nav) + 10px);
}

.section h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
}

.section h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-size: 1.08rem;
  text-align: justify;
  text-justify: inter-word;
}

.ink {
  background:
    radial-gradient(900px 380px at 8% 0%, rgba(41, 151, 255, 0.16), transparent 55%),
    var(--moss);
  color: var(--paper);
}

.ink .intro {
  color: rgba(245, 245, 247, 0.72);
}

.paper-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.paper-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(41, 151, 255, 0.35);
}

.paper-card .card:hover {
  transform: none;
  box-shadow: none;
}

.paper-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.5s ease;
}

.paper-card:hover img {
  transform: scale(1.04);
}

.badge {
  display: inline-block;
  margin-bottom: 8px;
  color: #2997ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.meta,
.abs {
  color: rgba(245, 245, 247, 0.7);
  text-align: justify;
  text-justify: inter-word;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.paper-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(41, 151, 255, 0.14);
  color: #7dc1ff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.paper-links a:hover {
  background: #2997ff;
  color: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

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

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

.card {
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-word;
}

.card a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.card a.person {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(41, 151, 255, 0.45);
}

.card a.person:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

.ink .card a.person:hover {
  color: #7dc1ff;
  text-decoration-color: #7dc1ff;
}

.when {
  display: block;
  margin-bottom: 6px;
  color: var(--saffron);
  font-size: 0.82rem;
  font-weight: 700;
}

.ink .when {
  color: #2997ff;
}

.ink .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.ink .card p {
  color: rgba(245, 245, 247, 0.72);
}

.courses {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-word;
}

.timeline {
  display: grid;
  gap: 8px;
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--teal), transparent);
  opacity: 0.35;
}

.row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.row::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.16);
}

.row:hover {
  background: var(--cream);
}

.row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.row p {
  margin: 0;
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-word;
}

.project {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.55s ease;
}

.project:hover img {
  transform: scale(1.06);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.project-body>p:last-child {
  margin-top: auto;
  padding-top: 14px;
  text-align: left;
}

.project a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.icon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.icon {
  width: 64px;
  height: 64px;
}

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

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: #ececf1;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.chip:hover {
  background: rgba(41, 151, 255, 0.14);
  color: var(--ink);
  transform: translateY(-1px);
}

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

.skills-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.skills-grid .card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.draft-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 113, 227, 0.38), transparent 52%),
    radial-gradient(circle at 72% 62%, rgba(41, 151, 255, 0.32), transparent 48%),
    rgba(255, 255, 255, 0.04);
}

.stack-card {
  margin-top: 16px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(130deg, rgba(41, 151, 255, 0.16), transparent 40%),
    linear-gradient(320deg, rgba(0, 113, 227, 0.1), transparent 42%),
    var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.contact h2 {
  margin-top: 0;
}

.contact .intro {
  margin-bottom: 0;
}

.venue .badge {
  margin: 0;
}

.venue a.logo-mark {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.venue a.logo-mark:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.footer {
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s ease forwards;
  animation-play-state: paused;
}

.reveal.in {
  animation-play-state: running;
}

.hero .reveal {
  animation-play-state: running;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

@keyframes scan {
  0% {
    transform: translateY(-40%);
  }

  100% {
    transform: translateY(380%);
  }
}

@keyframes draw {
  0% {
    stroke-dashoffset: 280;
  }

  40%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translateY(0);
  }

  to {
    transform: scale(1.08) translateY(-10px);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .menu.open {
    display: flex;
  }

  .hero-grid,
  .paper-card,
  .grid-2,
  .row,
  .contact,
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .grid-3,
  .grid-talks,
  .logo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  .visual,
  .visual img {
    min-height: 280px;
    height: 280px;
  }

  .wrap {
    width: min(1180px, calc(100% - 32px));
  }
}

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

  .scan,
  .curve,
  .visual img,
  .pulse,
  .reveal,
  .float-logo {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover,
  .paper-card:hover,
  .project:hover img,
  .logo-tile:hover,
  .stat:hover,
  .icon-btn:hover,
  .contact-item:hover,
  .chip:hover,
  .brand:hover b {
    transform: none;
  }
}