:root {
  color-scheme: dark;
  --bg: #050710;
  --text: #ecfbff;
  --muted: #8397ad;
  --line: rgba(74, 239, 255, 0.18);
  --glass: rgba(10, 15, 31, 0.92);
  --nav-bg: rgba(7, 11, 24, 0.88);
  --nav-text: #c4f9ff;
  --soft-text: #58f1ed;
  --card-text: #b8c7da;
  --shadow: rgba(0, 0, 0, 0.58);
  --accent: #37eee4;
  --accent-2: #d85cff;
  --max-width: 1120px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eef8f4;
  --text: #203b39;
  --muted: #687f7b;
  --line: rgba(52, 101, 92, 0.14);
  --glass: rgba(255, 255, 255, 0.62);
  --nav-bg: rgba(255, 255, 255, 0.64);
  --nav-text: #3e615b;
  --soft-text: #438b7f;
  --card-text: #58736f;
  --shadow: rgba(59, 111, 102, 0.14);
  --accent: #45a894;
  --accent-2: #438dac;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 229, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 30%, rgba(213, 62, 255, 0.1), transparent 38%),
    linear-gradient(155deg, #050710 0%, #090b19 52%, #080513 100%);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: color 400ms ease, background-color 400ms ease;
}

[data-theme="light"] body {
  background: linear-gradient(180deg, #edf9f4 0%, #e2f3ef 48%, #d5e6f1 100%);
}

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-one {
  width: 36rem;
  height: 36rem;
  top: -14rem;
  left: -10rem;
  background: radial-gradient(circle at 35% 35%, rgba(0, 238, 255, 0.26), rgba(0, 152, 190, 0.03) 67%, transparent 72%);
}

.orb-two {
  width: 38rem;
  height: 38rem;
  top: 10%;
  right: -18rem;
  background: radial-gradient(circle at 40% 45%, rgba(217, 70, 255, 0.2), rgba(121, 42, 190, 0.03) 68%, transparent 73%);
  animation-delay: -5s;
}

.orb-three {
  width: 34rem;
  height: 34rem;
  bottom: -16rem;
  left: 20%;
  background: radial-gradient(circle at center, rgba(67, 94, 255, 0.16), transparent 68%);
  animation-delay: -9s;
}

[data-theme="light"] .orb-one {
  background: radial-gradient(circle at 35% 35%, rgba(110, 231, 183, 0.3), rgba(186, 230, 253, 0.08) 67%, transparent 72%);
}

[data-theme="light"] .orb-two {
  background: radial-gradient(circle at 40% 45%, rgba(125, 211, 252, 0.3), rgba(204, 251, 241, 0.08) 68%, transparent 73%);
}

[data-theme="light"] .orb-three {
  background: radial-gradient(circle at center, rgba(110, 231, 183, 0.2), transparent 68%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  width: min(calc(100% - 40px), var(--max-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  transform: translateX(-50%);
}

.monogram {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--nav-bg);
  font: 600 0.78rem/1 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.theme-toggle {
  position: relative;
  width: 46px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--nav-text);
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--text) 28%, transparent);
}

.theme-toggle span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: opacity 280ms ease, transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle .sun {
  opacity: 0;
  transform: translateY(25px) rotate(60deg);
}

.theme-toggle .moon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

[data-theme="light"] .theme-toggle .sun {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

[data-theme="light"] .theme-toggle .moon {
  opacity: 0;
  transform: translateY(-25px) rotate(-60deg);
}

.nav-link {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--nav-text);
  font-size: 0.82rem;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease;
}

.nav-link:hover {
  border-color: color-mix(in srgb, var(--text) 28%, transparent);
  background: color-mix(in srgb, var(--nav-bg) 75%, var(--text) 8%);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 110px 110px;
  perspective: 1200px;
}

.hero::before {
  position: absolute;
  inset: 76px 20px 22px;
  z-index: -1;
  border: 1px solid rgba(64, 232, 255, 0.18);
  border-radius: 38px;
  background:
    radial-gradient(circle at 10% 12%, rgba(0, 235, 255, 0.1), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(216, 76, 255, 0.1), transparent 38%),
    linear-gradient(145deg, #09101f 0%, #101126 54%, #160c24 100%);
  box-shadow:
    inset 0 1px 0 rgba(112, 243, 255, 0.1),
    0 0 55px rgba(0, 222, 255, 0.04);
}

[data-theme="light"] .hero::before {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(180deg, #e6f7ef 0%, #d7efe9 48%, #cbdff0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 28px 90px rgba(70, 116, 123, 0.09);
}

.glass {
  border: 1px solid rgba(68, 235, 255, 0.16);
  background: #0b1020;
  box-shadow:
    0 35px 90px var(--shadow),
    inset 0 1px 0 rgba(93, 240, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14) 52%),
    var(--glass);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.profile-card {
  position: relative;
  width: min(100%, 820px);
  overflow: hidden;
  padding: 0;
  border-color: rgba(69, 237, 255, 0.26);
  border-radius: 34px;
  background: #0b1020;
  box-shadow:
    0 38px 100px var(--shadow),
    0 0 34px rgba(0, 226, 255, 0.08),
    -12px 10px 42px rgba(210, 69, 255, 0.05),
    inset 0 1px 0 rgba(103, 242, 255, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 250ms ease-out, border-color 250ms ease;
}

[data-theme="light"] .profile-card {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(250, 246, 253, 0.3) 56%),
    rgba(249, 245, 252, 0.34);
  box-shadow:
    0 40px 100px rgba(74, 86, 126, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(34px) saturate(125%);
  -webkit-backdrop-filter: blur(34px) saturate(125%);
}

.profile-card:hover {
  border-color: rgba(79, 242, 255, 0.42);
}

.card-glow {
  position: absolute;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  z-index: 2;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 239, 255, 0.2), rgba(207, 66, 255, 0.06) 42%, transparent 68%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.card-banner {
  position: relative;
  min-height: 0;
  padding: 16px 38px 12px;
  background:
    radial-gradient(circle at 12% 10%, rgba(78, 248, 255, 0.16), transparent 32%),
    linear-gradient(120deg, #07364a 0%, #182d59 52%, #421c5f 100%);
}

[data-theme="light"] .card-banner {
  background: linear-gradient(120deg, rgba(190, 232, 219, 0.94), rgba(207, 237, 230, 0.92) 50%, rgba(201, 222, 241, 0.94));
}

.card-topline,
.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.status,
.location,
.availability {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ff7ee;
  box-shadow: 0 0 14px rgba(49, 244, 235, 0.9);
}

[data-theme="light"] .status i {
  background: #86efac;
  box-shadow: 0 0 14px #4ade80;
}

.banner-identity {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: end;
  gap: 28px;
  margin-top: 4px;
}

.avatar {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 4px solid rgba(80, 240, 255, 0.74);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 24px rgba(37, 231, 255, 0.22),
    12px 12px 32px rgba(203, 61, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.24);
  transform: translateY(96px);
}

.identity-copy {
  min-width: 0;
  padding-bottom: 8px;
}

[data-theme="light"] .avatar {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 12px 28px rgba(62, 82, 107, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
}

.eyebrow,
.section-kicker,
.publication-meta {
  margin: 0 0 9px;
  color: var(--soft-text);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  padding: 90px 38px 24px;
}

.body-copy {
  min-width: 0;
}

.intro {
  position: relative;
  z-index: 1;
  max-width: 630px;
  margin: 0 0 22px;
  color: var(--card-text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding-top: 24px;
}

.links a,
.placeholder-link {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass) 56%, transparent);
  color: var(--text);
  font-size: 0.72rem;
}

.links a {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.links a:hover {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  color: var(--accent-2);
}

.placeholder-link {
  color: var(--muted);
  opacity: 0.7;
  cursor: help;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #7eeaf2;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(75, 232, 247, 0.22);
}

.scroll-cue i::after {
  position: absolute;
  width: 100%;
  height: 14px;
  background: #d65cff;
  content: "";
  animation: scroll-line 1.8s ease-in-out infinite;
}

[data-theme="light"] .scroll-cue {
  color: #526f69;
}

[data-theme="light"] .scroll-cue i {
  width: 2px;
  background: rgba(55, 105, 96, 0.24);
}

[data-theme="light"] .scroll-cue i::after {
  background: #438b7f;
}

.publications {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 150px 0 100px;
}

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

h2 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-note {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

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

.publication {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 5vw, 42px);
  border-radius: 24px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.publication:hover {
  z-index: 1;
  border-color: rgba(67, 238, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(27, 233, 244, 0.09), rgba(214, 68, 255, 0.08)),
    #0d1224;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34), 0 0 24px rgba(34, 222, 255, 0.06);
  transform: translateY(-5px);
}

[data-theme="light"] .publication:hover {
  border-color: rgba(61, 139, 127, 0.24);
  background:
    linear-gradient(135deg, rgba(74, 190, 168, 0.09), rgba(91, 157, 188, 0.04)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 44px rgba(72, 116, 108, 0.12);
}

.publication:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.publication-number {
  align-self: start;
  padding-top: 4px;
  color: #737687;
  font: 500 0.76rem/1 "Manrope", sans-serif;
  letter-spacing: 0.1em;
}

.publication-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f7f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.publication-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.publication:hover .publication-visual img {
  transform: scale(1.02);
}

.publication h3 {
  max-width: 720px;
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.publication-authors {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.publication-authors strong {
  color: var(--text);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

footer {
  width: min(calc(100% - 40px), var(--max-width));
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 40px 0 52px;
  border-top: 1px solid var(--line);
  color: #777a89;
  font-size: 0.76rem;
}

footer a:hover {
  color: var(--text);
}

@keyframes drift {
  to {
    transform: translate3d(50px, 35px, 0) scale(1.06);
  }
}

@keyframes scroll-line {
  from {
    transform: translateY(-15px);
  }
  to {
    transform: translateY(38px);
  }
}

@media (max-width: 980px) {
  .hero {
    padding-inline: 42px;
  }

  .avatar {
    width: 156px;
    height: 156px;
  }
}

@media (max-width: 700px) {
  .nav {
    padding-top: 20px;
  }

  .hero {
    padding: 112px 14px 96px;
  }

  .hero::before {
    inset: 66px 8px 16px;
    border-radius: 28px;
  }

  .profile-card {
    padding: 0;
    border-radius: 24px;
  }

  .card-topline .location,
  .availability {
    display: none;
  }

  .card-banner {
    min-height: 0;
    padding: 16px 24px 12px;
  }

  .banner-identity {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    margin-top: 16px;
    text-align: center;
  }

  .avatar {
    order: 2;
    width: 140px;
    height: 140px;
    margin-top: -58px;
    border-width: 5px;
    transform: translateY(82px);
  }

  .identity-copy {
    order: 1;
    padding-bottom: 0;
  }

  .card-body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 88px 24px 24px;
  }

  .intro {
    margin-bottom: 0;
    text-align: center;
  }

  .body-copy {
    order: 1;
  }

  .links {
    order: 2;
    align-content: flex-start;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px 18px 26px;
  }

  .publication-number {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(10, 18, 28, 0.58);
    color: white;
    backdrop-filter: blur(10px);
  }

  .publication-visual {
    border-radius: 14px;
  }

  .publications {
    padding-top: 110px;
  }

}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 950px) {
  .nav {
    padding-top: 12px;
  }

  .hero {
    min-height: 100svh;
    place-items: start center;
    padding: 50px 30px 8px;
  }

  .hero::before {
    inset: 52px 10px 8px;
    border-radius: 24px;
  }

  .profile-card {
    width: min(100%, 760px);
    border-radius: 22px;
  }

  .card-banner {
    padding: 6px 28px;
  }

  .banner-identity {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    margin-top: 0;
  }

  .avatar {
    width: 112px;
    height: 112px;
    margin-top: 0;
    border-width: 3px;
    transform: translateY(64px);
  }

  h1 {
    font-size: 2.65rem;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.66rem;
  }

  .card-body {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 60px 28px 8px;
  }

  .intro {
    margin-bottom: 8px;
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .links {
    align-content: flex-start;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .links a {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .availability {
    font-size: 0.7rem;
  }

  .scroll-cue {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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