:root {
  color-scheme: light;
  --paper: #f8f3e8;
  --paper-soft: #fffaf0;
  --ink: #20313d;
  --muted: #65747d;
  --line: rgba(32, 49, 61, 0.15);
  --blue: #1f8fbd;
  --teal: #12a899;
  --coral: #ef7d63;
  --gold: #c8912c;
  --sage: #6e9b72;
  --white: rgba(255, 255, 255, 0.74);
  --shadow: 0 28px 80px rgba(49, 71, 82, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(31, 143, 189, 0.22), transparent 25rem),
    radial-gradient(circle at 82% 12%, rgba(239, 125, 99, 0.2), transparent 24rem),
    radial-gradient(circle at 50% 84%, rgba(18, 168, 153, 0.18), transparent 27rem),
    linear-gradient(135deg, #fff8ea 0%, #eef8f4 52%, #f8eee5 100%);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(rgba(32, 49, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 49, 61, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#space {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.depth-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
}

.depth-layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 220ms ease-out;
}

.holo-cube,
.holo-panel,
.holo-ring {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}

.holo-cube {
  width: clamp(52px, 7vw, 96px);
  aspect-ratio: 1;
  border: 1px solid rgba(31, 143, 189, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(18, 168, 153, 0.1)),
    repeating-linear-gradient(45deg, rgba(31, 143, 189, 0.08) 0 1px, transparent 1px 8px);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.66),
    0 20px 60px rgba(31, 143, 189, 0.14);
  animation: cubeDrift 12s ease-in-out infinite;
}

.holo-cube::before,
.holo-cube::after {
  position: absolute;
  inset: 0;
  border: inherit;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.holo-cube::before {
  transform: translateZ(-26px) rotateY(0deg);
}

.holo-cube::after {
  transform: rotateY(78deg) translateZ(26px);
}

.holo-panel {
  width: clamp(150px, 18vw, 260px);
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.4)),
    linear-gradient(90deg, rgba(31, 143, 189, 0.16), transparent 56%);
  box-shadow: 0 24px 70px rgba(49, 71, 82, 0.13);
  backdrop-filter: blur(16px);
  animation: panelDrift 10s ease-in-out infinite;
}

.holo-panel::before,
.holo-panel::after {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal), transparent);
  content: "";
}

.holo-panel::before {
  top: 22px;
}

.holo-panel::after {
  top: 46px;
  width: 58%;
}

.holo-ring {
  width: clamp(130px, 18vw, 240px);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 125, 99, 0.28);
  border-radius: 50%;
  box-shadow:
    inset 0 0 28px rgba(239, 125, 99, 0.08),
    0 0 42px rgba(31, 143, 189, 0.1);
  animation: ringDrift 14s linear infinite;
}

.holo-ring::before,
.holo-ring::after {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(31, 143, 189, 0.28);
  border-radius: 50%;
  content: "";
  transform: rotateX(68deg);
}

.holo-ring::after {
  border-color: rgba(18, 168, 153, 0.26);
  transform: rotateY(72deg);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, rgba(32, 49, 61, 0.03) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(200, 145, 44, 0.028) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
}

.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1210px, calc(100% - 32px));
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
}

.brand,
.nav,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(31, 143, 189, 0.35);
  border-radius: 50%;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(31, 143, 189, 0.12), rgba(255, 255, 255, 0.62));
  font-size: 0.78rem;
}

.nav {
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.nav a {
  transition: color 180ms ease;
}

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

.language-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.lang-btn {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

.lang-btn.active {
  color: #fffaf0;
  background: var(--ink);
}

main {
  width: min(1210px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: 100svh;
  padding: 148px 0 74px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.hero-depth {
  position: absolute;
  top: 18%;
  right: 28%;
  z-index: 1;
  width: min(36vw, 430px);
  aspect-ratio: 1;
  pointer-events: none;
  perspective: 1000px;
  transform-style: preserve-3d;
  opacity: 0.8;
}

.hero-depth-ring,
.hero-depth-core,
.hero-depth-chip {
  position: absolute;
  transform-style: preserve-3d;
}

.hero-depth-ring {
  inset: 15%;
  border: 1px solid rgba(31, 143, 189, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(31, 143, 189, 0.12);
  animation: heroOrbit 13s linear infinite;
}

.hero-depth-ring:nth-child(2) {
  border-color: rgba(239, 125, 99, 0.3);
  animation-duration: 17s;
  animation-direction: reverse;
}

.hero-depth-ring:nth-child(3) {
  inset: 28%;
  border-color: rgba(18, 168, 153, 0.34);
  animation-duration: 9s;
}

.hero-depth-core {
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(31, 143, 189, 0.62), transparent 72%);
  box-shadow: 0 0 70px rgba(31, 143, 189, 0.32);
  animation: pulseCore 3.6s ease-in-out infinite;
}

.hero-depth-chip {
  display: grid;
  min-width: 96px;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.7);
  box-shadow: 0 18px 45px rgba(31, 143, 189, 0.13);
  font-size: 0.72rem;
  font-weight: 950;
  backdrop-filter: blur(14px);
  animation: chipFloat 5.4s ease-in-out infinite;
}

.hero-depth-chip:nth-last-child(3) {
  top: 16%;
  left: 4%;
}

.hero-depth-chip:nth-last-child(2) {
  right: 0;
  bottom: 24%;
  animation-delay: -1.7s;
}

.hero-depth-chip:nth-last-child(1) {
  left: 34%;
  bottom: 4%;
  animation-delay: -3.1s;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  font-size: clamp(4.6rem, 13vw, 10.4rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(32, 49, 61, 0.78);
  font-size: clamp(1.18rem, 2.1vw, 1.68rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  box-shadow: 0 16px 36px rgba(31, 143, 189, 0.16);
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.button.ghost {
  background: rgba(255, 255, 255, 0.62);
}

.hero-console,
.feature-card,
.timeline-item,
.research-card,
.skill-panel,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-console {
  overflow: hidden;
  padding: 26px;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid rgba(32, 49, 61, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.62);
  aspect-ratio: 1.05;
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
}

.hero-image-wrap img,
.lab-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-wrap::before,
.lab-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.62) 50%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(31, 143, 189, 0.12) 0 1px, transparent 1px 10px);
  content: "";
  mix-blend-mode: screen;
  opacity: 0.45;
}

.hero-image-wrap figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

.scanline {
  position: absolute;
  inset: -20% 0 auto;
  z-index: 2;
  height: 34%;
  background: linear-gradient(to bottom, transparent, rgba(31, 143, 189, 0.22), transparent);
  animation: scan 4.8s ease-in-out infinite;
}

.orbital-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95), transparent 15%),
    linear-gradient(135deg, rgba(31, 143, 189, 0.13), rgba(239, 125, 99, 0.14));
  transform-style: preserve-3d;
}

.ring,
.core,
.satellite {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
}

.ring {
  border: 1px solid rgba(31, 143, 189, 0.46);
  animation: spin 10s linear infinite;
}

.ring-two {
  border-color: rgba(239, 125, 99, 0.5);
  transform: rotateX(68deg) rotateZ(42deg);
  animation-duration: 15s;
}

.ring-one {
  transform: rotateX(62deg) rotateZ(-18deg);
}

.core {
  inset: 40%;
  background: radial-gradient(circle, white, rgba(31, 143, 189, 0.72), rgba(31, 143, 189, 0));
  box-shadow: 0 0 64px rgba(31, 143, 189, 0.34);
}

.satellite {
  inset: 11%;
  border: 1px dashed rgba(110, 155, 114, 0.5);
  animation: tilt 7s ease-in-out infinite alternate;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.console-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.68);
}

.console-grid strong,
.console-grid span {
  display: block;
}

.console-grid strong {
  color: var(--coral);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.console-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.profile-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  padding: 76px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-band h2 {
  margin-bottom: 0;
}

.profile-band > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.impact-section {
  border-bottom: 1px solid var(--line);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.impact-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.58)),
    radial-gradient(circle at 20% 10%, rgba(31, 143, 189, 0.15), transparent 12rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.impact-card::after {
  position: absolute;
  inset: auto -30% -40% -30%;
  height: 120px;
  background: linear-gradient(90deg, rgba(31, 143, 189, 0.24), rgba(18, 168, 153, 0.2), rgba(239, 125, 99, 0.2));
  content: "";
  filter: blur(30px);
}

.impact-card strong,
.impact-card span,
.impact-card p {
  position: relative;
  z-index: 1;
}

.impact-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
}

.impact-card span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.impact-card p {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.section {
  padding: 90px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

.feature-card {
  min-height: 310px;
  padding: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.feature-card span {
  color: var(--coral);
  font-weight: 950;
}

.feature-card h3 {
  margin: 78px 0 16px;
  font-size: 1.55rem;
}

.feature-card p,
.timeline-item p,
.timeline-item li,
.research-card span {
  color: var(--muted);
  line-height: 1.65;
}

.lab-section {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.lab-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
}

.floating-hud {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 156px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 46px rgba(49, 71, 82, 0.16);
  backdrop-filter: blur(18px);
  animation: floatHud 5.2s ease-in-out infinite;
}

.floating-hud b {
  color: var(--blue);
  font-size: 1.25rem;
}

.floating-hud span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.hud-one {
  top: 24px;
  left: 24px;
}

.hud-two {
  right: 24px;
  bottom: 24px;
  animation-delay: -1.8s;
}

.lab-copy h2 {
  margin-bottom: 22px;
}

.lab-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.lab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lab-pills span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-weight: 850;
}

.timeline-section,
.skills-section {
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 26px;
  padding: 26px;
}

.timeline-item time {
  color: var(--blue);
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.timeline-item ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
}

.research-section {
  border-top: 1px solid var(--line);
}

.research-card {
  min-height: 300px;
  padding: 24px;
}

.research-card p {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.research-card h3 {
  margin: 58px 0 14px;
  font-size: 1.42rem;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 0.86fr;
  gap: 16px;
}

.skill-panel {
  padding: 24px;
}

.skill-panel h3 {
  margin-bottom: 22px;
  font-size: 1.35rem;
}

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

.skill-tags span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.76);
  font-weight: 760;
}

.language-bars {
  display: grid;
  gap: 18px;
}

.language-bars div {
  display: grid;
  gap: 8px;
}

.language-bars span {
  color: var(--muted);
  font-weight: 850;
}

.language-bars b {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 49, 61, 0.1);
}

.language-bars b::before {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  content: "";
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: end;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.contact-card a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--ink);
  font-weight: 850;
}

footer {
  display: flex;
  width: min(1210px, calc(100% - 32px));
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.tilt-card {
  transform-style: preserve-3d;
}

.tilt-card:hover {
  box-shadow: 0 34px 90px rgba(31, 143, 189, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes spin {
  from {
    transform: rotateX(62deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(62deg) rotateZ(360deg);
  }
}

@keyframes tilt {
  from {
    transform: rotateX(54deg) rotateZ(-18deg);
  }
  to {
    transform: rotateX(68deg) rotateZ(28deg);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-60%);
    opacity: 0;
  }
  18%,
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(360%);
    opacity: 0;
  }
}

@keyframes floatHud {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cubeDrift {
  0%,
  100% {
    transform: translate3d(var(--x), var(--y), var(--z)) rotateX(58deg) rotateY(-28deg) rotateZ(0deg);
  }
  50% {
    transform: translate3d(calc(var(--x) + 18px), calc(var(--y) - 24px), calc(var(--z) + 80px)) rotateX(70deg) rotateY(32deg) rotateZ(18deg);
  }
}

@keyframes panelDrift {
  0%,
  100% {
    transform: translate3d(var(--x), var(--y), var(--z)) rotateX(64deg) rotateY(var(--ry));
  }
  50% {
    transform: translate3d(calc(var(--x) - 16px), calc(var(--y) + 22px), calc(var(--z) + 60px)) rotateX(54deg) rotateY(calc(var(--ry) + 18deg));
  }
}

@keyframes ringDrift {
  from {
    transform: translate3d(var(--x), var(--y), var(--z)) rotateX(70deg) rotateZ(0deg);
  }
  to {
    transform: translate3d(var(--x), var(--y), var(--z)) rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes heroOrbit {
  from {
    transform: rotateX(68deg) rotateY(-18deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(68deg) rotateY(-18deg) rotateZ(360deg);
  }
}

@keyframes pulseCore {
  0%,
  100% {
    transform: scale(0.92) translateZ(20px);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.18) translateZ(70px);
    opacity: 1;
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 80px) rotateY(-16deg);
  }
  50% {
    transform: translate3d(8px, -14px, 150px) rotateY(18deg);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .profile-band,
  .section-heading,
  .timeline-item,
  .lab-section,
  .skills-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .research-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 178px;
  }

  .hero-depth {
    top: 32%;
    right: 2%;
    width: 52vw;
    opacity: 0.42;
  }

  .depth-scene {
    opacity: 0.62;
  }
}

@media (max-width: 560px) {
  main,
  footer,
  .topbar {
    width: min(100% - 20px, 1210px);
  }

  .topbar {
    top: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    gap: 18px;
    font-size: 0.82rem;
  }

  .lang-btn {
    min-width: 38px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(4.4rem, 22vw, 6.7rem);
  }

  .hero-text {
    font-size: 1.07rem;
  }

  .button,
  .contact-card a {
    width: 100%;
  }

  .section,
  .contact-section {
    padding: 64px 0;
  }

  .profile-band {
    padding: 58px 0;
  }

  .feature-card,
  .research-card {
    min-height: 250px;
  }

  .feature-card h3,
  .research-card h3 {
    margin-top: 48px;
  }

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

  .lab-visual {
    min-height: 360px;
  }

  .holo-panel {
    display: none;
  }

  .hero-depth {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
