:root {
  --background: #fff6df;
  --background-a: rgba(255, 247, 225, 0.28);
  --main: #050505;
  --headline: #411e03;
  --paragraph: #332f2f;
  --highlight: #720f32;
  --tint: #005c7f;
  --cn-name-color: #e9ac5a;
  --muted: rgba(65, 30, 3, 0.13);
  --jump-1: #00867b;
  --jump-2: #8763c7;
  --jump-3: #f79900;
  --jump-4: #0060ab;
  --jump-5: #be1e1f;
}

html[data-theme="dark"] {
  --background: #0b1518;
  --background-a: rgba(255, 255, 254, 0.09);
  --main: #fffffe;
  --headline: #d8c0b2;
  --paragraph: #94a1b2;
  --highlight: #cf9c7e;
  --tint: #e9ac5a;
  --cn-name-color: #005c7f;
  --muted: rgba(255, 255, 254, 0.11);
  --jump-1: #e9ac5a;
  --jump-2: #90d05a;
  --jump-3: #ff6d8d;
  --jump-4: #6ea3fe;
  --jump-5: #00c09a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--background);
  color: var(--headline);
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

a,
button {
  color: inherit;
}

button {
  border: 0;
  background: transparent;
  font: inherit;
}

.page {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
}

.home-main {
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #fff6df;
}

.home-main::before,
.home-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.home-main::before {
  inset: -12%;
  opacity: 0.62;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse at 12% 13%, rgba(255, 255, 255, 0.68), transparent 24%),
    radial-gradient(ellipse at 18% 20%, rgba(255, 255, 255, 0.76), transparent 34%),
    radial-gradient(ellipse at 77% 72%, rgba(232, 205, 142, 0.30), transparent 41%),
    radial-gradient(ellipse at 88% 18%, rgba(202, 171, 103, 0.13), transparent 28%),
    radial-gradient(ellipse at 46% 58%, rgba(255, 255, 255, 0.34), transparent 29%),
    conic-gradient(from 138deg at 48% 52%, rgba(255, 255, 255, 0.12), transparent 18%, rgba(190, 154, 82, 0.08), transparent 49%, rgba(255, 255, 255, 0.10), transparent 77%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.18), transparent 43%, rgba(174, 137, 70, 0.10));
  background-size: 100% 100%;
  background-position: 0 0;
  filter: blur(0.35px) contrast(1.08);
}

.home-main::after {
  inset: -8%;
  opacity: 0.38;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72 0.96' numOctaves='4' seed='43'/%3E%3CfeColorMatrix type='matrix' values='0.36 0 0 0 0.63 0 0.32 0 0 0.59 0 0 0.24 0 0.49 0 0 0 0.42 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.65 1.22' numOctaves='3' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0.42 0 0 0 0.58 0 0.38 0 0 0.57 0 0 0.28 0 0.47 0 0 0 0.34 0'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23g)' opacity='.52'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 31% 24%, rgba(91, 67, 19, 0.035), transparent 24%),
    radial-gradient(ellipse at 69% 61%, rgba(255, 255, 255, 0.060), transparent 31%),
    radial-gradient(ellipse at 52% 84%, rgba(107, 82, 31, 0.026), transparent 22%);
  background-size: 360px 440px, 113px 151px, 100% 100%, 100% 100%, 100% 100%;
  background-position: -83px 37px, 29px -17px, 0 0, 0 0, 0 0;
  background-blend-mode: multiply, soft-light, multiply, soft-light, multiply;
  filter: contrast(1.30) brightness(1.035) saturate(0.90);
  transform: rotate(-0.7deg) scale(1.03);
}

html[data-theme="dark"] .home-main::before,
html[data-theme="dark"] .home-main::after {
  opacity: 0;
}

html[data-light-background="ribbon"]:not([data-theme="dark"]) .home-main::before,
html[data-light-background="ribbon"]:not([data-theme="dark"]) .home-main::after {
  opacity: 0;
}

.ambient-bg,
.ambient-ribbon-bg,
.night-bg,
.night-ribbon-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.ambient-bg {
  background: #fff6df;
  opacity: 1;
  transition: opacity 280ms ease;
}

.ambient-ribbon-bg {
  background: #f8fbff;
  opacity: 0;
  transition: opacity 280ms ease;
}

html[data-light-background="ribbon"]:not([data-theme="dark"]) .ambient-bg {
  opacity: 0;
}

html[data-light-background="ribbon"]:not([data-theme="dark"]) .ambient-ribbon-bg {
  opacity: 1;
}

.night-bg {
  background: #050208;
  opacity: 0;
  filter: contrast(1.02) saturate(1.05);
  transition: opacity 280ms ease;
}

.night-ribbon-bg {
  background: #05090d;
  opacity: 0;
  transition: opacity 280ms ease;
}

html[data-theme="dark"] .home-main {
  background: #050208;
}

html[data-theme="dark"] .ambient-bg,
html[data-theme="dark"] .ambient-ribbon-bg {
  opacity: 0;
}

html[data-theme="dark"] .night-bg {
  opacity: 1;
}

html[data-theme="dark"][data-night-background="ribbon"] .night-bg {
  opacity: 0;
}

html[data-theme="dark"][data-night-background="ribbon"] .night-ribbon-bg {
  opacity: 1;
}

.title-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.svg-title {
  width: min(680px, 86vw);
  height: 120px;
  overflow: visible;
}

.name-frame {
  --fill-color: var(--tint);
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.19, 1, 0.22, 1);
}

.name-frame text {
  transform-box: fill-box;
  transform-origin: center;
}

.name-full .draw-text,
.name-full .fill-text {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.name-cn {
  --fill-color: var(--cn-name-color);
}

.name-cn .draw-text,
.name-cn .fill-text {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", SimHei, sans-serif;
  font-size: 82px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.name-cn .draw-text {
  stroke: var(--cn-name-color);
}

.draw-text {
  fill: transparent;
  stroke: var(--main);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  paint-order: stroke fill;
}

.draw-text tspan {
  --outline-delay: 0s;
  --stroke-length: 260;
  opacity: 0;
  fill: transparent;
  stroke-dasharray: var(--stroke-length);
  stroke-dashoffset: var(--stroke-length);
  transform-box: fill-box;
  transform-origin: center;
}

.fill-text {
  fill: var(--fill-color);
  opacity: 0;
  paint-order: stroke fill;
}

.fill-text.rainbow-name {
  opacity: 1;
}

.fill-text.cn-sequence {
  opacity: 1;
}

.rainbow-name tspan {
  opacity: 1;
  fill-opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.cn-sequence tspan {
  opacity: 1;
  fill-opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.rainbow-name .rainbow-1 { fill: var(--jump-1); }
.rainbow-name .rainbow-2 { fill: var(--jump-2); }
.rainbow-name .rainbow-3 { fill: var(--jump-3); }
.rainbow-name .rainbow-4 { fill: var(--jump-4); }
.rainbow-name .rainbow-5 { fill: var(--jump-5); }

.rainbow-slot-1 { animation-delay: 2.02s; }
.rainbow-slot-2 { animation-delay: 2.13s; }
.rainbow-slot-3 { animation-delay: 2.24s; }
.rainbow-slot-4 { animation-delay: 2.35s; }
.rainbow-slot-5 { animation-delay: 2.46s; }
.rainbow-slot-6 { animation-delay: 2.57s; }
.rainbow-slot-7 { animation-delay: 2.68s; }
.rainbow-slot-8 { animation-delay: 2.79s; }
.rainbow-slot-9 { animation-delay: 2.90s; }
.rainbow-slot-10 { animation-delay: 3.01s; }

.cn-slot-1 { animation-delay: 2.08s; }
.cn-slot-2 { animation-delay: 2.28s; }
.cn-slot-3 { animation-delay: 2.48s; }

.draw-text .outline-slot-1 { --outline-delay: 0s; }
.draw-text .outline-slot-2 { --outline-delay: 0.09s; }
.draw-text .outline-slot-3 { --outline-delay: 0.18s; }
.draw-text .outline-slot-4 { --outline-delay: 0.27s; }
.draw-text .outline-slot-5 { --outline-delay: 0.36s; }
.draw-text .outline-slot-6 { --outline-delay: 0.45s; }
.draw-text .outline-slot-7 { --outline-delay: 0.54s; }
.draw-text .outline-slot-8 { --outline-delay: 0.63s; }
.draw-text .outline-slot-9 { --outline-delay: 0.72s; }
.draw-text .outline-slot-10 { --outline-delay: 0.81s; }

.draw-text .cn-outline-slot-1 { --outline-delay: 0s; }
.draw-text .cn-outline-slot-2 { --outline-delay: 0.16s; }
.draw-text .cn-outline-slot-3 { --outline-delay: 0.32s; }

.name-frame.is-active {
  opacity: 1;
  animation: name-frame-enter 3.75s ease forwards;
}

.name-frame.is-active .draw-text {
  animation: none;
}

.name-frame.is-active .draw-text tspan {
  animation-name: outline-glyph-draw;
  animation-duration: 1.18s;
  animation-timing-function: cubic-bezier(0.48, 0.02, 0.14, 0.99);
  animation-delay: var(--outline-delay);
  animation-fill-mode: forwards;
}

.name-frame.is-active .fill-text {
  animation: name-fill-pop 260ms cubic-bezier(0.075, 0.82, 0.165, 1) 2.14s forwards;
}

.name-frame.is-active .fill-text.rainbow-name {
  animation: none;
}

.name-frame.is-active .fill-text.cn-sequence {
  animation: none;
}

.name-frame.is-active .rainbow-name tspan {
  animation-name: name-fill-pop;
  animation-duration: 190ms;
  animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
  animation-fill-mode: forwards;
}

.name-frame.is-active .cn-sequence tspan {
  animation-name: name-fill-pop;
  animation-duration: 210ms;
  animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
  animation-fill-mode: forwards;
}

@keyframes outline-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 1160;
    clip-path: inset(0 100% 0 0);
  }
  12% {
    opacity: 1;
  }
  68% {
    opacity: 1;
    stroke-dashoffset: 0;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes outline-glyph-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: var(--stroke-length);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

@keyframes name-frame-enter {
  0% {
    translate: 0 12px;
    scale: 0.982;
  }
  42%,
  100% {
    translate: 0 0;
    scale: 1;
  }
}

@keyframes name-fill-pop {
  0% {
    fill-opacity: 0;
    translate: 0 0;
  }
  50% {
    fill-opacity: 1;
    translate: 0 -2.5px;
  }
  100% {
    fill-opacity: 1;
    translate: 0 0;
  }
}

.home-line {
  position: fixed;
  z-index: 2;
  bottom: 40%;
  width: 0;
  height: 3px;
  background: var(--main);
  animation: line-expand 600ms linear 1.5s forwards;
}

@keyframes line-expand {
  to { width: min(35vw, 300px); }
}

.home-links {
  position: fixed;
  z-index: 2;
  top: calc(60% + 12px);
  left: 50%;
  display: flex;
  transform: translateX(-50%);
}

.split-link {
  min-width: 128px;
  opacity: 0;
  display: flex;
  align-items: center;
  color: var(--main);
  font-size: 23px;
  text-decoration: none;
  animation: appear 500ms linear 2s forwards;
}

.split-link:first-child {
  justify-content: flex-end;
  padding-right: 10px;
  border-right: 1px solid var(--headline);
}

.split-link:nth-child(2) {
  justify-content: flex-start;
  padding-left: 10px;
  border-left: 1px solid var(--headline);
}

.icon-button {
  position: fixed;
  left: 20px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--headline);
  text-decoration: none;
  transform: scale(1.2);
  animation: appear 2.5s 2s forwards;
  transition: transform 200ms ease, color 200ms ease;
}

.icon-button:hover {
  transform: scale(1.2) rotate(50deg);
}

.icon-button:focus {
  outline: none;
}

.icon-button:focus-visible {
  outline: none;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-button {
  bottom: 20px;
  color: #3b210d;
}

.theme-button .theme-icon {
  position: absolute;
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.theme-button:hover {
  transform: scale(1.2) rotate(50deg);
}

.theme-button .theme-icon-moon {
  opacity: 1;
}

.theme-button .theme-icon-sun {
  opacity: 0;
  transform: scale(0.78) rotate(-18deg);
}

html[data-theme="dark"] .theme-button {
  color: #ead8c3;
}

html[data-theme="dark"] .theme-button .theme-icon-moon {
  opacity: 0;
  transform: scale(0.78) rotate(18deg);
}

html[data-theme="dark"] .theme-button .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.section-button {
  bottom: 62px;
}

@keyframes appear {
  to { opacity: 1; }
}

.navigation-page {
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.navigation-list {
  height: 90%;
  margin-left: 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.navigation-item {
  margin-top: 20px;
  padding-block: 3px;
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  font-size: clamp(36px, 2vh + 4vw, 92px);
  font-weight: 400;
  white-space: nowrap;
}

.navigation-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: var(--headline);
  text-decoration: none;
  opacity: 0;
  animation: tracking-in 1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  transition: color 200ms linear, font-weight 200ms linear;
}

.navigation-text span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 400;
}

.navigation-text::before {
  content: attr(data-text);
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 40%;
  z-index: -1;
  width: 1800px;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: min(13vw, 190px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 500px;
  transform: translate(-50%, -50%);
  transition: opacity 500ms ease, letter-spacing 500ms ease, left 500ms ease;
}

.navigation-list:hover .navigation-text {
  color: var(--paragraph);
}

.navigation-list:hover .navigation-text:hover {
  color: var(--headline);
  font-weight: 900;
}

.navigation-list:hover .navigation-text:hover::before {
  left: 50%;
  opacity: 1;
  letter-spacing: 10px;
}

@keyframes tracking-in {
  0% { letter-spacing: -0.5em; opacity: 0; }
  40% { opacity: 0.6; }
  100% { opacity: 1; }
}

.research-page {
  min-height: 100vh;
  background: var(--background);
  color: var(--headline);
  overflow-y: auto;
}

.research-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px 30px;
  background: var(--background-a);
  backdrop-filter: blur(18px);
}

.mini-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--headline);
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.mini-logo::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 100%;
  border-top: 2px solid var(--headline);
  animation: rotate-border 10s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes rotate-border {
  to { rotate: 360deg; }
}

.research-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.research-tabs a {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  border-radius: 5px;
  color: var(--headline);
  font-size: 17px;
  text-decoration: none;
}

.research-tabs a.active {
  border: 2px solid var(--highlight);
  color: var(--highlight);
}

.research-layout {
  position: relative;
  top: 110px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding-left: 10px;
  padding-bottom: 80px;
}

.profile {
  width: min(300px, 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}

.avatar {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--headline);
  background:
    radial-gradient(circle at 34% 28%, rgba(0, 134, 123, 0.22), transparent 26%),
    radial-gradient(circle at 72% 72%, rgba(190, 30, 31, 0.18), transparent 32%),
    var(--background-a);
  object-fit: cover;
  object-position: 66% 38%;
  overflow: hidden;
}

.profile h1,
.profile p {
  width: 200px;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
}

.profile p {
  margin-top: 5px;
}

.profile-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-links a {
  width: 150px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--headline);
  font-size: 14px;
  text-decoration: none;
}

.profile-links svg {
  width: 15px;
  height: 15px;
  margin-right: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.research-content {
  width: min(max(75%, calc(100% - 300px)), 90%);
  min-width: 450px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
}

.content-section {
  width: 95%;
  min-height: 150px;
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  backdrop-filter: blur(15px);
}

.content-section h2 {
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--headline);
  color: var(--headline);
  font-size: 22px;
  font-weight: 500;
}

.content-section p {
  width: 100%;
  margin-bottom: 10px;
  color: var(--headline);
  font-size: 17px;
  line-height: 30px;
}

.content-section b {
  color: var(--highlight);
}

.interest-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--headline);
  font-size: 17px;
  line-height: 25px;
}

.news-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin-bottom: 5px;
}

.news-row span {
  min-width: 100px;
  margin-right: 10px;
  color: var(--highlight);
  font-size: 17px;
  font-weight: 500;
}

.news-row p {
  margin: 0;
  font-weight: 500;
}

.publication-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-block: 10px;
  color: var(--headline);
  font-size: 17px;
}

.publication-row p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 25px;
}

.publication-row > span {
  color: var(--highlight);
  font-weight: 500;
}

.simple-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  color: var(--headline);
  overflow: hidden;
}

.fixed-logo {
  position: fixed;
  top: 20px;
  left: 20px;
}

.simple-panel {
  width: min(78vw, 820px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.simple-panel span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--highlight);
}

.simple-panel h1 {
  margin-top: 10px;
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  font-size: clamp(52px, 11vw, 150px);
  line-height: 0.95;
}

.simple-panel p {
  width: min(680px, 100%);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--headline);
  color: var(--headline);
  font-size: 20px;
  line-height: 1.7;
}

.about-panel {
  width: min(86vw, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: center;
  gap: clamp(34px, 7vw, 98px);
}

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

.about-sketch-frame {
  width: min(32vw, 340px);
  justify-self: end;
  margin: 0;
  pointer-events: none;
  position: relative;
}

.about-sketch {
  display: block;
  width: 100%;
  height: auto;
}

.about-sketch-light {
  opacity: 0.88;
  filter: drop-shadow(0 18px 34px rgba(0, 92, 127, 0.11));
}

.about-sketch-dark {
  display: none;
}

html[data-theme="dark"] .about-sketch-light {
  display: none;
}

html[data-theme="dark"] .about-sketch-dark {
  display: block;
  opacity: 0.78;
  mix-blend-mode: normal;
  filter: saturate(0.72) contrast(0.94) brightness(0.9) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.16));
}

.contact-panel {
  width: min(86vw, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

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

.contact-sketch-frame {
  width: min(34vw, 360px);
  justify-self: end;
  pointer-events: none;
  position: relative;
}

.contact-sketch {
  display: block;
  width: 100%;
  height: auto;
}

.contact-sketch-light {
  opacity: 0.88;
  filter: drop-shadow(0 18px 34px rgba(0, 92, 127, 0.11));
}

.contact-sketch-dark {
  display: none;
}

html[data-theme="dark"] .contact-sketch-light {
  display: none;
}

html[data-theme="dark"] .contact-sketch-dark {
  display: block;
  opacity: 0.78;
  mix-blend-mode: normal;
  filter: saturate(0.72) contrast(0.94) brightness(0.9) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.16));
}

@media (max-width: 868px) {
  .research-nav {
    height: 118px;
    align-items: flex-end;
    padding-bottom: 20px;
  }

  .research-tabs {
    display: none;
  }

  .research-layout {
    top: 150px;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .profile {
    width: 100%;
  }

  .profile-links {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .profile-links a {
    width: auto;
  }

  .profile-links span {
    display: none;
  }

  .profile-links svg {
    width: 20px;
    height: 20px;
    margin: 0 3px;
  }

  .research-content {
    width: 90%;
    min-width: 0;
    margin-top: 50px;
    padding: 0;
  }

  .content-section {
    width: min(100%, 800px);
    padding-inline: 10px;
  }

  .content-section h2 {
    font-size: 23px;
  }

  .content-section p,
  .interest-list,
  .news-row span,
  .news-row p,
  .publication-row {
    font-size: 14px;
  }

  .publication-row {
    flex-direction: column;
    gap: 4px;
  }

  .contact-panel {
    width: min(84vw, 680px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-panel {
    width: min(84vw, 680px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-sketch-frame {
    width: min(62vw, 320px);
    justify-self: center;
    order: -1;
    opacity: 0.92;
  }

  .contact-sketch-frame {
    width: min(62vw, 320px);
    justify-self: center;
    order: -1;
    opacity: 0.92;
  }
}

@media (max-width: 768px) {
  .svg-title {
    width: min(420px, 84vw);
  }

  .svg-title text {
    font-size: 84px;
  }

  .home-line {
    bottom: 41%;
  }

  .home-links {
    top: calc(50% + 78px);
  }

  .split-link {
    min-width: 106px;
    font-size: 18px;
  }

  .navigation-list {
    margin-left: 8vw;
  }

  .navigation-item {
    font-size: clamp(34px, 12vw, 72px);
  }

  .icon-button {
    top: 50px;
    left: auto;
    bottom: auto;
  }

  .theme-button {
    right: 20px;
  }

  .section-button {
    right: 60px;
  }

  .fixed-logo {
    top: 30px;
  }

  .simple-panel p {
    font-size: 16px;
  }
}

@media (max-height: 620px) {
  .home-line {
    bottom: 28%;
  }

  .home-links {
    top: auto;
    bottom: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-bg,
  .ambient-ribbon-bg {
    display: none;
  }
}
