@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-v20.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --black: #020305;
  --ink: #070a0e;
  --panel: #0a0e13;
  --white: #f4f7fa;
  --muted: #8e969f;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #b9e9ff;
  --blue: #5ea8d8;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", "Avenir Next", Avenir, Inter, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

body.intro-active {
  height: 100vh;
  overflow: hidden;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 12px 16px;
  background: white;
  color: black;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #010204;
  opacity: 1;
  visibility: visible;
  transition: opacity 800ms ease, visibility 0s linear 800ms;
  cursor: pointer;
}

.intro.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__space-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.025);
  animation: space-arrival 2.8s var(--ease-out) 120ms forwards;
  transition: opacity 1.1s ease, transform 2.1s var(--ease-out), filter 2.1s ease;
  will-change: transform, filter, opacity;
}

.intro__space-scene::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 1, 3, 0.68) 0%, rgba(0, 2, 5, 0.36) 28%, transparent 59%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 46%, rgba(0, 3, 6, 0.04));
  content: "";
  pointer-events: none;
}

.intro__space-scene::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 235, 185, 0.035), transparent 18%),
    radial-gradient(ellipse at 50% 54%, transparent 0 38%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.52) 100%);
  content: "";
  pointer-events: none;
}

.intro__space-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: contrast(1.1) saturate(0.92) brightness(0.96);
}

@keyframes space-arrival {
  from { opacity: 0; transform: scale(1.09); filter: blur(8px); }
  to { opacity: 1; transform: scale(1.025); filter: blur(0); }
}

.intro.is-entering .intro__space-scene {
  opacity: 1;
  filter: brightness(1.24) blur(1.1px);
  transform: scale(1.14) translateY(2.5%);
}

.intro__data-scan {
  position: absolute;
  z-index: 2;
  inset: 47% 0 auto;
  height: 33%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.45;
  clip-path: ellipse(78% 92% at 50% 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.intro__data-scan::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(235, 217, 170, 0.12) 19px, transparent 20px),
    repeating-linear-gradient(86deg, transparent 0 7.5vw, rgba(168, 218, 239, 0.085) calc(7.5vw + 1px), transparent calc(7.5vw + 2px));
  content: "";
  transform: perspective(520px) rotateX(67deg) scale(1.25);
  transform-origin: center top;
  animation: data-grid-flow 11s linear infinite;
}

.intro__data-scan i {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 245, 216, 0.98);
  box-shadow: 0 0 8px #fff2c3, 0 0 28px rgba(212, 169, 84, 0.86);
  animation: data-node 4.8s ease-in-out infinite;
}

.intro__data-scan i:nth-child(2) { left: 73%; top: 39%; animation-delay: -1.4s; }
.intro__data-scan i:nth-child(3) { left: 29%; top: 58%; animation-delay: -3.2s; }

@keyframes data-grid-flow { to { transform: perspective(520px) rotateX(67deg) translateY(20px) scale(1.25); } }
@keyframes data-node { 50% { opacity: 0.25; transform: scale(0.55); } }

.intro__planet-orbits {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 51.5%;
  width: min(135vw, 1900px);
  height: min(38vw, 540px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.48;
  mix-blend-mode: screen;
}

.intro__planet-orbits i {
  position: absolute;
  inset: 18% 2%;
  border: 1px solid rgba(223, 229, 225, 0.16);
  border-radius: 50%;
  transform: rotate(-2.5deg);
  animation: orbit-breathe 7s ease-in-out infinite;
}

.intro__planet-orbits i:nth-child(2) { inset: 31% 13%; transform: rotate(4deg); border-color: rgba(213, 178, 105, 0.16); animation-delay: -2.3s; }
.intro__planet-orbits i:nth-child(3) { inset: 5% -8%; transform: rotate(-7deg); border-color: rgba(130, 214, 253, 0.07); animation-delay: -4.5s; }

@keyframes orbit-breathe { 50% { opacity: 0.42; transform: rotate(1deg) scale(1.025); } }

.intro__copy {
  position: absolute;
  z-index: 5;
  left: clamp(20px, 5vw, 76px);
  top: 62%;
  width: min(780px, 57vw);
  animation: copy-arrival 1.6s var(--ease-out) 500ms both;
  transition: opacity 600ms ease, transform 1.1s var(--ease-out), filter 800ms ease;
}

@keyframes copy-arrival {
  from { opacity: 0; transform: translateY(25px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.intro.is-entering .intro__copy {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-34px);
}

.intro__cinematic {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 52%, transparent 0 28%, rgba(0, 0, 0, 0.055) 61%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.015) 48%, rgba(0, 3, 7, 0.015) 74%, rgba(0, 0, 0, 0.15) 100%);
}

.intro__lens {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 51.5%;
  width: min(62vw, 920px);
  aspect-ratio: 2.8;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  mix-blend-mode: screen;
}

.intro__lens::before {
  position: absolute;
  inset: 46% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 226, 250, 0.2) 30%, white 50%, rgba(176, 226, 250, 0.2) 70%, transparent);
  content: "";
}

.intro__lens i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 29%;
  aspect-ratio: 1;
  border: 1px solid rgba(188, 230, 249, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.intro__lens i:last-child {
  width: 52%;
  border-color: rgba(153, 205, 231, 0.08);
}

.intro__canvas,
.intro__noise,
.intro__light-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro__canvas {
  z-index: 2;
}

.intro__noise {
  z-index: 2;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.intro__light-wash {
  z-index: 4;
  left: 50%;
  top: 6.5%;
  width: 20vmin;
  height: 20vmin;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.02);
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0 12%, rgba(255, 246, 210, 0.98) 24%, rgba(218, 182, 104, 0.58) 50%, transparent 72%);
  filter: blur(1px);
}

.intro.is-entering .intro__light-wash {
  animation: light-expansion 2s var(--ease-out) forwards;
}

@keyframes light-expansion {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.02); }
  22% { opacity: 0.8; }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(14); }
  82% { opacity: 0.94; transform: translate(-50%, -50%) scale(18); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(22); }
}

.intro__brand {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 20%;
  display: flex;
  width: min(64vw, 920px);
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  animation: brand-arrival 2.2s var(--ease-out) both;
  transition: opacity 650ms ease, transform 1.2s var(--ease-out), filter 900ms ease;
}

.intro__brand-flare {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 0;
  width: clamp(150px, 22vw, 330px);
  height: clamp(70px, 9vw, 126px);
  pointer-events: none;
  transform: translate(-50%, -46%);
  background:
    linear-gradient(90deg, transparent, rgba(255, 243, 202, 0.15) 31%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 243, 202, 0.15) 69%, transparent) center / 100% 1px no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 2%, rgba(255, 239, 188, 0.66) 4%, rgba(212, 173, 91, 0.2) 14%, transparent 46%);
  filter: drop-shadow(0 0 14px rgba(255, 235, 174, 0.48));
  mix-blend-mode: screen;
  animation: brand-flare-pulse 3.8s ease-in-out infinite;
}

.intro__brand-flare::before,
.intro__brand-flare::after {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(224, 195, 132, 0.18);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.intro__brand-flare::before { width: 34px; height: 34px; }
.intro__brand-flare::after { width: 68px; height: 68px; border-color: rgba(203, 220, 222, 0.09); }

@keyframes brand-flare-pulse {
  0%, 100% { opacity: 0.62; transform: translate(-50%, -46%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -46%) scale(1.1); }
}

@keyframes brand-arrival {
  from { opacity: 0; filter: blur(18px); transform: translate(-50%, -45%) scale(0.94); }
  to { opacity: 1; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
}

.intro.is-entering .intro__brand {
  opacity: 0;
  filter: blur(8px);
  transform: translate(-50%, -62%) scale(0.86);
}

.intro__emblem {
  display: block;
  position: relative;
  z-index: 2;
  width: clamp(180px, 19vw, 285px);
  height: auto;
  margin-bottom: clamp(2px, 0.7vh, 8px);
  filter: drop-shadow(0 0 22px rgba(226, 237, 236, 0.12)) drop-shadow(0 0 34px rgba(196, 150, 64, 0.08));
}

.intro__wordmark {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.11)) drop-shadow(0 0 34px rgba(204, 164, 88, 0.08));
}

.intro__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.99);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(36px, 3.85vw, 62px);
  font-weight: 200;
  letter-spacing: 0.035em;
  line-height: 1.14;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.96), 0 0 28px rgba(0, 0, 0, 0.82), 0 0 34px rgba(185, 221, 233, 0.18);
}

.enter-button {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(38px, 6vh, 68px);
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
  animation: enter-arrival 1s 2s ease both;
}

@keyframes enter-arrival {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.intro.is-entering .enter-button,
.intro.is-entering .intro__hint {
  opacity: 0;
  pointer-events: none;
}

.enter-button__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 241, 225, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 15, 13, 0.76), rgba(2, 5, 7, 0.4) 64%, transparent 67%);
  box-shadow: inset 0 0 25px rgba(221, 191, 127, 0.065), 0 0 24px rgba(224, 231, 226, 0.13), 0 0 52px rgba(191, 148, 67, 0.1);
  backdrop-filter: blur(9px);
  transition: transform 600ms var(--ease-out), border-color 400ms ease, background 400ms ease;
}

.enter-button__ring::before {
  position: absolute;
  inset: -7px;
  border: 1px solid transparent;
  border-top-color: rgba(255, 239, 196, 0.96);
  border-right-color: rgba(214, 225, 225, 0.28);
  border-radius: 50%;
  content: "";
  animation: orbit 7s linear infinite;
}

.enter-button__ring::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(224, 231, 228, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 22px rgba(213, 174, 95, 0.1);
}

.enter-button__label {
  position: relative;
  z-index: 2;
  color: rgba(255, 250, 234, 0.96);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.3em;
  text-indent: 0.25em;
  text-shadow: 0 0 14px rgba(255, 231, 176, 0.55);
}

.enter-button:hover .enter-button__ring,
.enter-button:focus-visible .enter-button__ring {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.12);
}

@keyframes orbit { to { transform: rotate(360deg); } }

.intro__hint {
  position: absolute;
  z-index: 5;
  right: 36px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(246, 243, 229, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-shadow: 0 0 14px rgba(220, 192, 133, 0.22);
  transition: opacity 300ms ease;
  animation: hint-arrival 1s 2.5s ease both;
}

@keyframes hint-arrival { from { opacity: 0; } to { opacity: 1; } }

.intro__mouse {
  display: block;
  width: 21px;
  height: 32px;
  border: 1px solid rgba(244, 238, 215, 0.55);
  border-radius: 10px;
}

.intro__mouse i {
  display: block;
  width: 2px;
  height: 7px;
  margin: 6px auto;
  border-radius: 2px;
  background: #f1d495;
  box-shadow: 0 0 8px rgba(238, 205, 136, 0.7);
  animation: mouse-scroll 1.8s ease infinite;
}

@keyframes mouse-scroll {
  0%, 100% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  75% { opacity: 0; transform: translateY(7px); }
}

.site {
  min-height: 100vh;
  overflow: hidden;
  background: var(--black);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 1.1s ease, transform 1.8s var(--ease-out), visibility 0s linear 1.1s;
}

.site.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 78px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(to bottom, rgba(2, 3, 5, 0.88), rgba(2, 3, 5, 0.45));
  backdrop-filter: blur(16px);
  transform: translateY(-100%);
  transition: transform 1s 650ms var(--ease-out);
}

.site.is-visible .site-header {
  transform: translateY(0);
}

.direct-main .intro {
  display: none;
}

.direct-main .site,
.direct-main .site-header {
  transition: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(245, 248, 251, 0.94);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
}

.site-logo__emblem {
  display: block;
  width: 46px;
  height: 30px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.primary-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  background: white;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease-out);
}

.primary-nav a:hover {
  color: white;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-contact {
  padding: 12px 16px;
  border: 1px solid var(--line);
}

.primary-nav .nav-contact::after {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 30px) clamp(24px, 7.2vw, 112px) 70px;
  background:
    radial-gradient(circle at 76% 55%, rgba(38, 71, 91, 0.15), transparent 36%),
    linear-gradient(120deg, #030507 0%, #05080b 48%, #020304 100%);
}

.hero::after {
  position: absolute;
  right: -20%;
  bottom: -42%;
  width: 85vw;
  height: 85vw;
  border: 1px solid rgba(210, 239, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.hero__canvas,
.hero__vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__vignette {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 3, 5, 0.98) 0%, rgba(2, 3, 5, 0.82) 27%, transparent 63%),
    linear-gradient(0deg, rgba(2, 3, 5, 0.65), transparent 34%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(780px, 64vw);
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 1.2s 750ms ease, transform 1.5s 750ms var(--ease-out);
}

.site.is-visible .hero__content {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: rgba(202, 236, 255, 0.75);
}

.hero h1,
.section-heading h2,
.research-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(56px, 7.5vw, 118px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1 em,
.section-heading h2 em,
.research-copy h2 em,
.contact-section h2 em {
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px rgba(213, 234, 245, 0.74);
  text-transform: none;
}

.hero__summary {
  width: min(540px, 92%);
  margin: 34px 0 0;
  color: rgba(232, 238, 243, 0.58);
  font-size: clamp(15px, 1.28vw, 19px);
  font-weight: 300;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease, transform 280ms ease;
}

.button i {
  font-style: normal;
  font-size: 14px;
}

.button--primary {
  min-width: 208px;
  background: rgba(239, 246, 250, 0.94);
  color: #06090c;
}

.button--primary:hover {
  background: white;
  transform: translateY(-3px);
}

.button--ghost {
  border: 1px solid var(--line);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.text-link span {
  transition: transform 350ms var(--ease-out);
}

.text-link:hover {
  color: white;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.hero__index {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 76px);
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.hero__index i {
  display: block;
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255,255,255,.8) 25%, rgba(255,255,255,.12) 25%);
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 4vw, 62px);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: left bottom;
}

.hero__scroll i {
  width: 46px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.hero__scroll i::after {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  content: "";
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  from { transform: translateX(-105%); }
  to { transform: translateX(105%); }
}

.signal-strip {
  display: grid;
  min-height: 118px;
  grid-template-columns: repeat(3, 1fr) 1.45fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #05070a;
}

.signal-strip > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px clamp(22px, 3vw, 50px);
  border-right: 1px solid var(--line);
}

.signal-strip strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip span {
  color: var(--muted);
  font-size: 11px;
}

.signal-strip__status {
  flex-direction: row !important;
  align-items: center;
  border-right: 0 !important;
}

.signal-strip__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7e7c3;
  box-shadow: 0 0 12px rgba(167, 231, 195, 0.7);
  animation: status-pulse 2s ease infinite;
}

@keyframes status-pulse { 50% { opacity: 0.35; } }

.content-section {
  position: relative;
  padding: clamp(110px, 14vw, 210px) clamp(24px, 7vw, 108px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: clamp(60px, 9vw, 120px);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.research-copy h2,
.contact-section h2 {
  font-size: clamp(48px, 6vw, 90px);
}

.section-heading > p:last-child,
.section-heading--row > p,
.research-copy > p,
.about-section__body > p {
  max-width: 480px;
  margin: 0 0 6px auto;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 1.8;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.36fr 0.82fr;
  gap: clamp(22px, 3vw, 46px);
  align-items: start;
}

.project-card {
  border: 1px solid var(--line);
  background: #070a0e;
  transition: transform 600ms var(--ease-out), border-color 400ms ease;
}

.project-card:nth-child(2) {
  margin-top: 14vw;
}

.project-card:hover {
  border-color: rgba(205, 237, 255, 0.28);
  transform: translateY(-8px);
}

.project-card__visual {
  position: relative;
  height: clamp(280px, 33vw, 520px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at center, #15232c, #06090d 62%, #020304);
}

.project-card:nth-child(2) .project-card__visual {
  height: clamp(260px, 25vw, 390px);
}

.project-card__visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: radial-gradient(circle, black, transparent 70%);
}

.project-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 30px white, 0 0 90px rgba(139, 215, 255, 0.8), 0 0 170px rgba(68, 154, 202, 0.45);
  transform: translate(-50%, -50%);
  animation: core-breathe 4s ease-in-out infinite;
}

@keyframes core-breathe { 50% { transform: translate(-50%, -50%) scale(1.16); } }

.orbital {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(181, 227, 250, 0.36);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(12deg);
}

.orbital::after {
  position: absolute;
  left: 8%;
  top: 48%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 15px white;
  content: "";
}

.orbital--one { animation: orbital-one 12s linear infinite; }
.orbital--two { width: 83%; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-32deg); animation: orbital-two 17s linear infinite; }

@keyframes orbital-one { to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(372deg); } }
@keyframes orbital-two { to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-392deg); } }

.mesh-sphere {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(194, 232, 251, 0.6);
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 11%, rgba(187, 225, 246, .28) 12%, transparent 13%),
    repeating-linear-gradient(90deg, transparent 0 12%, rgba(187, 225, 246, .2) 12.5%, transparent 13%);
  box-shadow: inset 0 0 40px rgba(107, 190, 233, 0.25), 0 0 80px rgba(74, 145, 183, 0.2);
  transform: translate(-50%, -50%);
  animation: sphere-float 7s ease-in-out infinite;
}

@keyframes sphere-float { 50% { transform: translate(-50%, -54%) rotate(8deg); } }

.project-card__body {
  padding: clamp(26px, 3vw, 45px);
}

.project-card__number {
  color: #7d8993;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.project-card h3 {
  margin: 22px 0 16px;
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 350;
  letter-spacing: -0.035em;
}

.project-card p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.project-card a {
  display: inline-flex;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-section {
  display: grid;
  min-height: 840px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: radial-gradient(circle at 28% 50%, #0b151c, #040609 44%, #020304 76%);
}

.research-orbit {
  position: relative;
  width: min(38vw, 580px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(181, 224, 246, 0.12);
  border-radius: 50%;
}

.research-orbit::before,
.research-orbit::after,
.research-orbit span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(181, 224, 246, 0.14);
  border-radius: 50%;
  content: "";
}

.research-orbit::after { inset: 30%; }
.research-orbit span:nth-child(1) { inset: 0 44%; }
.research-orbit span:nth-child(2) { inset: 44% 0; }
.research-orbit span:nth-child(3) { inset: 16%; transform: rotate(45deg) scaleY(.27); }
.research-orbit i {
  position: absolute;
  left: 50%; top: 50%;
  width: 12%; aspect-ratio: 1;
  border-radius: 50%;
  background: #e6f8ff;
  box-shadow: 0 0 36px white, 0 0 100px #68bce8, 0 0 190px rgba(74, 160, 205, .7);
  transform: translate(-50%, -50%);
}

.research-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.research-copy h2 {
  font-size: clamp(43px, 5vw, 76px);
  line-height: 1.02;
  text-transform: none;
}

.research-copy > p {
  margin: 36px 0 34px;
}

.section-heading--row {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
}

.section-heading--row .eyebrow {
  margin-bottom: 30px;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication-item {
  display: grid;
  min-height: 128px;
  grid-template-columns: 90px 1fr 140px 30px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  transition: background 300ms ease, padding 400ms var(--ease-out);
}

.publication-item:hover {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.025);
}

.publication-item__year,
.publication-item__venue {
  color: #7e8790;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.publication-item__title {
  font-size: clamp(17px, 1.65vw, 25px);
  font-weight: 350;
  letter-spacing: -0.02em;
}

.publication-item__arrow {
  font-size: 17px;
}

.about-section {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 9vw;
  align-items: end;
  background: #06090c;
}

.about-section__quote {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5.2vw, 78px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.about-section__body .button {
  margin-top: 30px;
}

.contact-section {
  position: relative;
  min-height: 92vh;
  padding: clamp(120px, 15vw, 220px) clamp(24px, 7vw, 108px) 42px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, #183243, #06090d 38%, #020304 70%);
}

.contact-section__glow {
  position: absolute;
  left: 50%;
  bottom: -65vw;
  width: 110vw;
  aspect-ratio: 1;
  border: 1px solid rgba(197, 235, 255, .45);
  border-radius: 50%;
  box-shadow: 0 -8px 48px rgba(144, 211, 246, .18), 0 -1px 8px rgba(255,255,255,.7);
  transform: translateX(-50%);
}

.contact-section h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(54px, 7.3vw, 110px);
}

.contact-mail {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 70px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
  font-size: clamp(17px, 1.8vw, 27px);
  font-weight: 300;
}

.contact-section footer {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 108px);
  bottom: 35px;
  left: clamp(24px, 7vw, 108px);
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.38);
  font-size: 8px;
  letter-spacing: .18em;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms ease, transform 1.1s var(--ease-out);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root { --header-height: 72px; }

  .intro__brand { top: 19%; width: min(82vw, 700px); }

  .site-header { padding: 0 24px; }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 1px;
    background: white;
    transition: transform 300ms ease;
  }

  .menu-toggle span:nth-child(2) { width: 16px; }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { width: 24px; transform: translateY(-4px) rotate(-45deg); }

  .primary-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(2, 4, 7, .97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 300ms ease, transform 450ms var(--ease-out);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a { font-size: 16px; }
  .primary-nav .nav-contact { margin-top: 12px; }

  .hero { padding-left: 8vw; padding-right: 8vw; }
  .hero__content { width: 88vw; }
  .hero__vignette { background: linear-gradient(90deg, rgba(2,3,5,.94), rgba(2,3,5,.42) 80%, transparent); }
  .hero__index { display: none; }

  .signal-strip { grid-template-columns: repeat(3, 1fr); }
  .signal-strip__status { grid-column: 1 / -1; border-top: 1px solid var(--line); }

  .section-heading,
  .section-heading--row,
  .research-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child,
  .section-heading--row > p,
  .about-section__body > p { margin: 36px 0 0; }

  .project-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(2) { margin-top: 0; }
  .research-section { min-height: auto; gap: 90px; }
  .research-orbit { width: min(72vw, 520px); }
  .about-section { gap: 80px; }
}

@media (max-width: 600px) {
  .intro__space-scene { inset: 0; }
  .intro__space-scene::before { background: linear-gradient(180deg, rgba(0, 1, 3, 0.38), transparent 45%, rgba(0, 0, 0, 0.05)); }
  .intro__space-scene img { object-position: center bottom; }
  .intro__planet-orbits { top: 51%; width: 210vw; height: 70vw; }
  .intro__data-scan { inset: 48% -32% auto; height: 28%; opacity: 0.25; }
  .intro__lens { top: 51%; width: 112vw; }
  .intro__brand { top: 16.5%; width: 91vw; }
  .intro__brand-flare { top: -1%; width: 180px; height: 76px; }
  .intro__emblem { width: 140px; margin-bottom: 3px; }
  .intro__copy { left: 16px; top: 60.5%; width: calc(100vw - 32px); }
  .intro__tagline { font-size: clamp(24px, 6.5vw, 28px); letter-spacing: 0; line-height: 1.15; }
  .enter-button { bottom: 42px; width: 84px; height: 84px; }
  .enter-button__label { font-size: 9.5px; }
  .intro__hint { right: 10px; bottom: 16px; gap: 8px; font-size: 8px; letter-spacing: .1em; }
  .intro__mouse { width: 18px; height: 28px; }
  .intro__mouse i { height: 5px; margin-top: 4px; }
  .intro__light-wash { top: 10%; }

  .site-logo span { display: none; }
  .site-logo__emblem { width: 49px; }

  .hero { min-height: 100svh; padding: 100px 24px 70px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); line-height: .94; }
  .hero__summary { font-size: 14px; line-height: 1.65; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero__scroll { display: none; }

  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip > div { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-strip__status { grid-column: auto; }

  .content-section { padding: 100px 24px; }
  .section-heading { margin-bottom: 55px; }
  .project-card__visual { height: 280px !important; }
  .research-section { gap: 70px; }

  .publication-item {
    grid-template-columns: 46px 1fr 25px;
    gap: 12px;
    padding: 24px 0;
  }

  .publication-item__venue { display: none; }
  .publication-item__title { font-size: 16px; line-height: 1.45; }

  .contact-section { padding: 110px 24px 100px; }
  .contact-section footer { left: 24px; right: 24px; flex-wrap: wrap; gap: 18px; }
  .contact-section footer span:nth-child(2) { display: none; }
}

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

/* Portfolio page: quiet white canvas, blue instrument-panel details. */
:root {
  color-scheme: light;
  --portfolio-ink: #0b1520;
  --portfolio-muted: #607084;
  --portfolio-blue: #1577d4;
  --portfolio-blue-bright: #39a8ff;
  --portfolio-pale: #eef7ff;
  --portfolio-border: #d9e5ef;
}

html[data-language="en"] .lang-zh,
html[data-language="zh"] .lang-en {
  display: none !important;
}

.site {
  overflow: visible;
  background: #f8fbfe;
  color: var(--portfolio-ink);
  transform: none;
}

.site.is-visible {
  transform: none;
}

.site-header {
  height: 82px;
  padding: 0 clamp(24px, 6vw, 96px);
  border-bottom: 1px solid rgba(20, 71, 108, 0.12);
  background: rgba(248, 251, 254, 0.88);
  box-shadow: 0 10px 30px rgba(17, 62, 93, 0.04);
  backdrop-filter: blur(18px);
}

.site-logo {
  color: var(--portfolio-ink);
  font-size: 12px;
  letter-spacing: 0.3em;
}

.site-logo__emblem {
  width: 45px;
  height: 28px;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
}

.primary-nav {
  gap: clamp(18px, 2.6vw, 42px);
}

.primary-nav a {
  color: #50677b;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.primary-nav a:hover {
  color: var(--portfolio-blue);
}

.primary-nav a::after {
  bottom: -8px;
  background: var(--portfolio-blue);
}

.primary-nav .nav-future {
  color: #8494a3;
}

.language-toggle {
  min-width: 38px;
  padding: 7px 8px;
  border: 1px solid #b9cfdf;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--portfolio-blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--portfolio-blue);
  background: var(--portfolio-pale);
  outline: none;
  transform: translateY(-1px);
}

.portfolio-section,
.portfolio-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.profile-frame {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  align-self: start;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(21, 119, 212, 0.45);
  background: linear-gradient(145deg, rgba(238, 247, 255, 0.9), rgba(255, 255, 255, 0.8));
  box-shadow: 0 0 0 8px rgba(21, 119, 212, 0.05), 0 22px 55px rgba(20, 77, 122, 0.12);
}

.profile-frame::before,
.profile-frame::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.profile-frame::before {
  inset: 10px;
  border: 1px solid rgba(57, 168, 255, 0.55);
}

.profile-frame::after {
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 24%;
  background: linear-gradient(to top, rgba(8, 78, 139, 0.18), transparent);
}

.profile-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.profile-frame__scan {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 23%;
  left: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 168, 255, 0.9), transparent);
  box-shadow: 0 0 11px rgba(57, 168, 255, 0.76);
  animation: profile-scan 4.8s ease-in-out infinite;
}

@keyframes profile-scan {
  0%, 100% { opacity: 0.35; transform: translateY(-60px); }
  50% { opacity: 0.8; transform: translateY(60px); }
}

.profile-frame__corner {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-color: var(--portfolio-blue-bright);
  border-style: solid;
}

.profile-frame__corner--tl { top: -5px; left: -5px; border-width: 2px 0 0 2px; }
.profile-frame__corner--tr { top: -5px; right: -5px; border-width: 2px 2px 0 0; }
.profile-frame__corner--bl { bottom: -5px; left: -5px; border-width: 0 0 2px 2px; }
.profile-frame__corner--br { right: -5px; bottom: -5px; border-width: 0 2px 2px 0; }

.portfolio-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 23px;
  color: var(--portfolio-blue);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.21em;
}

.portfolio-kicker > span:first-child {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.portfolio-section h2 em {
  color: var(--portfolio-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.fact-label {
  display: block;
  margin-bottom: 9px;
  color: #7e91a2;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-facts a,
.project-feature a,
.research-work a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.profile-facts a:hover,
.profile-facts a:focus-visible,
.project-feature a:hover,
.project-feature a:focus-visible,
.research-work a:hover,
.research-work a:focus-visible {
  color: var(--portfolio-blue);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.portfolio-section {
  padding: 90px 0 115px;
  border-top: 1px solid var(--portfolio-border);
}

.portfolio-section__heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(260px, 0.75fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.portfolio-section__heading h2 {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 6vw, 75px);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.portfolio-section__heading > p {
  max-width: 380px;
  margin: 0 0 4px auto;
  color: var(--portfolio-muted);
  font-size: 15px;
  line-height: 1.65;
}

.project-feature {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.project-feature + .project-feature {
  margin-top: 80px;
  padding-top: 72px;
  border-top: 1px solid var(--portfolio-border);
}

.project-feature h3,
.research-topic__title {
  margin: 0;
  color: #173b76;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3.1vw, 40px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
}

.work-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  min-width: 0;
  padding: 18px 22px;
  border-left: 3px solid #245c9c;
  border-radius: 0 8px 8px 0;
  background: #edf3fb;
}

.work-titlebar > h3,
.work-titlebar > h4 {
  min-width: 0;
  margin: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 0;
  padding-left: 22px;
  list-style: disc;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
}

.project-links li::marker {
  color: #788ca2;
}

.project-links a {
  white-space: nowrap;
}

.project-point {
  --point-icon-width: 28px;
  --point-indent: 44px;
  min-width: 0;
}

.project-point + .project-point {
  margin-top: 22px;
}

.project-point__heading {
  display: grid;
  grid-template-columns: var(--point-icon-width) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0;
  color: var(--portfolio-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  text-wrap: pretty;
}

.project-point__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-top: 3px;
  color: #245f9c;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-details {
  display: grid;
  gap: 10px;
  margin: 16px 0 0 var(--point-indent);
  padding-left: 22px;
  color: #4a5a6a;
  font-size: 22px;
  line-height: 1.7;
  text-wrap: pretty;
}

.project-details li::marker {
  color: #788ca2;
}

.project-point__description {
  margin: 8px 0 0 var(--point-indent);
  color: #4a5a6a;
  font-size: 22px;
  line-height: 1.65;
}

.keep-together {
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .project-point__heading--scaling {
    font-size: clamp(20px, 1.7vw, 22px);
    white-space: nowrap;
  }
}

.project-figure {
  min-width: 0;
  width: 96%;
  margin: 28px auto 0;
}

.project-figure a {
  display: block;
  cursor: zoom-in;
}

.project-figure a:focus-visible {
  outline: 2px solid var(--portfolio-blue);
  outline-offset: 5px;
}

.project-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.research-overview,
.research-contributions {
  display: grid;
  gap: 14px;
  padding-left: 24px;
  color: #4a5a6a;
  font-size: 22px;
  line-height: 1.7;
  text-wrap: pretty;
}

.research-overview {
  margin: 24px 0 56px;
  color: #173b76;
}

.research-contributions {
  margin: 22px 0 0;
}

.research-impact p {
  margin: 0;
}

.research-impact p + p {
  margin-top: 14px;
}

.research-overview li::marker,
.research-contributions li::marker {
  color: #788ca2;
}

.research-overview strong,
.research-contributions strong {
  color: var(--portfolio-ink);
  font-weight: 650;
}

.research-overview strong,
.research-overview li::marker {
  color: inherit;
}

.research-topic {
  min-width: 0;
  scroll-margin-top: 112px;
}

.research-topic + .research-topic {
  margin-top: 80px;
  padding-top: 72px;
  border-top: 1px solid var(--portfolio-border);
}

.research-work {
  margin-top: 36px;
  min-width: 0;
}

.research-work + .research-work {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--portfolio-border);
}

.research-work__title {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.research-work__subtitle {
  margin: 18px 0 0;
  color: var(--portfolio-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}

.research-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: 96%;
  margin: 28px auto 0;
}

.research-gallery figure {
  min-width: 0;
  margin: 0;
}

.research-gallery a {
  display: block;
  cursor: zoom-in;
}

.research-gallery a:focus-visible {
  outline: 2px solid var(--portfolio-blue);
  outline-offset: 5px;
}

.research-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.research-gallery--split-layer {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.research-gallery--falconnet {
  grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
}

.research-gallery__overview {
  grid-column: 1 / -1;
}

.research-gallery--falconnet .research-gallery__overview {
  /* Match 80% of the content column within a 96%-wide gallery. */
  width: calc(100% * 80 / 96);
  justify-self: center;
}

.project-figure--scaling,
.research-figure--compact {
  width: 80%;
}

.portfolio-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  border-top: 1px solid var(--portfolio-border);
  color: #7d8f9f;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-footer .footer-line {
  width: 34px;
  height: 1px;
  background: #b7cbd9;
}

.portfolio-footer a {
  margin-left: auto;
  color: var(--portfolio-blue);
}

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .portfolio-section__heading { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-section__heading > p { margin-left: 0; }
}

@media (max-width: 680px) {
  .site-header { padding: 0 20px; }
  .site-logo { font-size: 10px; }
  .site-logo__emblem { width: 38px; }
  .site-header__tools { gap: 14px; }
  .primary-nav { position: absolute; top: 72px; right: 20px; left: 20px; display: none; padding: 18px; border: 1px solid var(--portfolio-border); background: rgba(248, 251, 254, 0.97); box-shadow: 0 18px 36px rgba(20, 77, 122, 0.11); }
  .primary-nav.is-open { display: grid; gap: 18px; }
  .primary-nav a { font-size: 12px; }
  .menu-toggle { display: grid; gap: 5px; padding: 8px 0 8px 12px; }
  .menu-toggle > span { display: block; width: 25px; height: 1px; background: var(--portfolio-ink); }
  .portfolio-section, .portfolio-footer { width: min(100% - 40px, 1180px); }
  .portfolio-section { padding: 72px 0 86px; }
  .portfolio-section__heading h2 { font-size: 54px; }
  .portfolio-footer { min-height: 120px; flex-wrap: wrap; gap: 10px 15px; padding: 25px 0; }
  .portfolio-footer a { width: 100%; margin-left: 0; }
}

/* Editorial pass: fewer boxes, larger type, and a clearer reading rhythm. */
.site-header__tools { gap: clamp(28px, 4vw, 62px); }
.primary-nav { gap: clamp(24px, 3.4vw, 48px); }
.primary-nav a { font-size: 14px; letter-spacing: 0.1em; }
.language-toggle { min-width: 44px; padding: 9px 10px; font-size: 12px; }

.portfolio-section,
.portfolio-footer { width: min(1240px, calc(100% - 72px)); }

.portfolio-kicker { margin-bottom: 28px; font-size: 12px; letter-spacing: 0.16em; }
.portfolio-kicker > span:first-child { width: 38px; }

.portfolio-section { padding: 132px 0 150px; }
.portfolio-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 67px;
}
.portfolio-section__heading h2 { font-size: clamp(56px, 7.2vw, 96px); line-height: 0.9; }
.portfolio-section__heading > p { max-width: 475px; margin: 0 0 5px; font-size: 18px; line-height: 1.65; }

.portfolio-footer { min-height: 115px; font-size: 12px; }

@media (max-width: 900px) {
  .portfolio-section__heading { display: grid; gap: 22px; }
  .portfolio-section__heading > p { max-width: 600px; margin: 0; }
}

@media (max-width: 680px) {
  .site-header__tools { gap: 14px; }
  .primary-nav a { font-size: 14px; }
  .portfolio-section,
  .portfolio-footer { width: min(100% - 40px, 1240px); }
  .portfolio-section { padding: 88px 0 104px; }
  .portfolio-section__heading h2 { font-size: 62px; }
  .project-feature { gap: 22px; }
  .project-feature + .project-feature { margin-top: 56px; padding-top: 48px; }
}

/* Final profile hierarchy adjustments. */
.site-header {
  --nav-font-size: 22px;
}

.site-logo {
  gap: 12px;
  font-size: var(--nav-font-size);
  letter-spacing: 0.18em;
}

.site-logo__emblem {
  width: 76px;
  height: 44px;
  flex-shrink: 0;
}

.site-logo > span {
  display: inline;
}

.site-header .primary-nav a,
.site-header .language-toggle {
  font-size: var(--nav-font-size);
  letter-spacing: 0;
  text-transform: none;
}

.site-header .primary-nav {
  gap: clamp(20px, 2.5vw, 36px);
}

.site-header .language-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 9px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .site-header .primary-nav {
    position: absolute;
    inset: 100% 20px auto;
    display: none;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--portfolio-border);
    background: #f8fbfe;
    box-shadow: 0 18px 36px rgba(20, 77, 122, 0.11);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-header .primary-nav.is-open { display: flex; }
  .site-header .menu-toggle span:not(.sr-only) { background: var(--portfolio-ink); }
}

@media (max-width: 680px) {
  .site-header { --nav-font-size: 19px; }
  .site-logo { gap: 8px; }
  .site-logo__emblem { width: 58px; height: 34px; }
}

/* The portrait and biography share the first section; other sections follow below. */
.portfolio-layout {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 144px;
}

.portfolio-about {
  --profile-royal-blue: #173b96;
  display: grid;
  /* Keep the full 2:3 portrait approximately 576px tall on desktop. */
  grid-template-columns: 392px minmax(0, 1fr);
  column-gap: clamp(28px, 3.5vw, 48px);
  row-gap: 24px;
  align-items: stretch;
  padding: 0 0 88px;
  scroll-margin-top: 112px;
}

.profile-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
}

.profile-motto {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #245f8e;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

.motto-line {
  display: block;
  white-space: nowrap;
}

.profile-motto > .lang-en {
  font-style: italic;
}

.profile-motto > .lang-zh {
  font-style: normal;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.5;
  white-space: nowrap;
}

.portfolio-scroll {
  width: 100%;
}

.about-title {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: "Manrope", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.profile-lede {
  max-width: 800px;
  margin: 22px 0 30px;
  color: #516578;
  font-size: 22px;
  line-height: 1.6;
}

.profile-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  color: var(--portfolio-ink);
  list-style: none;
  font-size: 22px;
  line-height: 1.6;
}

.profile-facts li {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 0;
}

.profile-facts .fact-label {
  display: grid;
  align-items: center;
  justify-items: start;
  width: 144px;
  height: 48px;
  margin: 0;
  padding-left: 16px;
  border: 0;
  border-left: 1px solid rgba(23, 59, 150, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--profile-royal-blue);
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.profile-facts .fact-value {
  display: block;
  min-width: 0;
  padding: 6px 0;
}

.profile-facts .fact-value--affiliation {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.affiliation-mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Both translations size the same grid cell; only the active one is visible
   and accessible. This keeps every profile row and the portrait stable. */
.portfolio-about .bilingual-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.portfolio-about .bilingual-stack > .lang-en,
.portfolio-about .bilingual-stack > .lang-zh {
  display: block !important;
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

html[data-language="en"] .portfolio-about .bilingual-stack > .lang-en,
html[data-language="zh"] .portfolio-about .bilingual-stack > .lang-zh {
  visibility: visible;
  pointer-events: auto;
  user-select: auto;
}

.profile-facts abbr {
  text-decoration: none;
}

.portfolio-scroll .portfolio-section,
.portfolio-scroll .portfolio-footer {
  width: 100%;
}

.portfolio-scroll .portfolio-section {
  padding: 115px 0 135px;
  scroll-margin-top: 100px;
}

.portfolio-scroll .portfolio-section__heading {
  margin-bottom: 58px;
}

.portfolio-scroll .portfolio-section__heading h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.portfolio-scroll .portfolio-projects,
.portfolio-scroll .portfolio-research {
  border-top: 0;
}

.portfolio-scroll .portfolio-section__heading--rule {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
}

.projects-intro {
  margin: 0 0 52px;
  max-width: 1100px;
  color: #173b76;
  font-size: 22px;
  line-height: 1.65;
  text-wrap: pretty;
}

.portfolio-section__heading--rule::after {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--portfolio-border);
  content: "";
}

.portfolio-scroll .portfolio-section__heading > p {
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 1279px) {
  .portfolio-about {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .profile-frame,
  .profile-motto {
    width: min(100%, 320px);
    justify-self: center;
  }

  .profile-copy {
    grid-column: 1;
    grid-row: 3;
    padding-top: 16px;
  }
}

@media (max-width: 680px) {
  .portfolio-layout {
    width: calc(100% - 40px);
    padding-top: 112px;
  }

  .portfolio-about { padding-bottom: 64px; }
  .about-title { font-size: 34px; }
  .profile-lede { font-size: 20px; }
  .profile-facts { font-size: 20px; gap: 24px; }
  .profile-facts .fact-label { font-size: 21px; }
  .profile-facts li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .profile-facts .fact-value { padding: 0; }
  .portfolio-scroll .portfolio-section { padding: 82px 0 98px; }
  .portfolio-scroll .portfolio-section__heading h2 { font-size: 34px; }
  .project-point__heading { gap: 12px; }
  .project-point { --point-indent: 40px; }
  .project-details,
  .project-point__description,
  .project-point__heading,
  .project-links,
  .projects-intro,
  .research-overview,
  .research-contributions,
  .research-work__subtitle { font-size: 20px; }
  .research-gallery { gap: 12px; margin-top: 22px; }
  .work-titlebar { padding: 16px; gap: 14px; }
  .research-topic + .research-topic { margin-top: 56px; padding-top: 48px; }
  .research-work + .research-work { margin-top: 48px; padding-top: 40px; }
  .project-figure { margin-top: 22px; }
  .keep-together { white-space: normal; }
}
