:root {
  color-scheme: light;
  --bg: #081528;
  --bg-soft: #10294d;
  --panel: rgba(10, 24, 46, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(14, 108, 205, 0.18);
  --text: #0d1b2a;
  --text-soft: #526379;
  --text-light: rgba(255, 255, 255, 0.82);
  --accent: #62b1ff;
  --accent-strong: #2076d9;
  --accent-soft: rgba(98, 177, 255, 0.16);
  --shadow: 0 24px 72px rgba(5, 15, 31, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(63, 122, 255, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(77, 209, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #071322 0%, #0b1b33 36%, #132f58 100%);
  -webkit-text-size-adjust: 100%;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.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;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 calc(36px + env(safe-area-inset-bottom));
}

.page--home .page-shell {
  width: min(1320px, calc(100% - 20px));
  padding-top: 12px;
}

.page--home {
  background:
    radial-gradient(circle at top, rgba(60, 120, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #040c18 0%, #071324 40%, #0a1d36 100%);
}

.page--home.drawer-open {
  overflow: hidden;
}

.immersive-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 10px;
  background: rgba(7, 24, 46, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(2, 12, 26, 0.22);
  transition:
    background-color 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.immersive-nav.is-scrolled {
  background: rgba(7, 24, 46, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(3, 12, 26, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.immersive-nav__left {
  flex: 0 0 auto;
}

.immersive-nav__brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.immersive-nav__logo-wrap {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.immersive-nav__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.immersive-nav__title {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 5.6vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.immersive-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.icon-btn__glyph {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn__glyph svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn.is-active,
.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(135, 197, 255, 0.42);
  transform: translateY(-1px) scale(1.04);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(3, 10, 20, 0.48);
  opacity: 0;
  transition: opacity 0.38s ease;
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 20;
  width: min(82vw, 320px);
  padding: 18px 16px 24px;
  background: #eef2f6;
  color: #132741;
  box-shadow: 18px 0 40px rgba(1, 8, 18, 0.22);
  transform: translateX(-105%);
  transition: transform 0.42s ease;
}

.side-drawer.is-open {
  transform: translateX(0);
}

.side-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.side-drawer__title {
  margin: 0;
  font-size: 22px;
  color: #102944;
}

.side-drawer__close {
  border: 0;
  background: transparent;
  color: #224467;
  font-size: 30px;
  line-height: 1;
  padding: 4px;
}

.side-drawer__body {
  display: grid;
  gap: 16px;
}

.search-box--drawer input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(34, 68, 103, 0.16);
  border-radius: 16px;
  background: #fff;
  color: #11283f;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.drawer-category-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 2px;
}

.drawer-category {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(18, 48, 79, 0.06);
  color: #16314d;
  text-align: left;
  transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.drawer-category.is-active {
  background: linear-gradient(135deg, #123c6e, #1b5ca1);
  color: #fff;
  transform: translateX(4px);
}

.home-feed {
  position: relative;
  padding: 14px 12px 40px;
}

.pull-refresh {
  position: sticky;
  top: 114px;
  z-index: 2;
  display: flex;
  justify-content: center;
  height: 0;
  pointer-events: none;
}

.pull-refresh::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(8, 24, 44, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(calc(var(--pull-distance, 0px) - 58px)) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pull-refresh.is-pulling::before,
.pull-refresh.is-refreshing::before {
  opacity: 1;
}

.pull-refresh .atom-loader {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, calc(var(--pull-distance, 0px) - 58px));
  opacity: 0;
}

.pull-refresh.is-pulling .atom-loader,
.pull-refresh.is-refreshing .atom-loader {
  opacity: 1;
}

.waterfall {
  column-count: 2;
  column-gap: 12px;
}

.waterfall-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  break-inside: avoid;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
  transform: translate3d(0, 18px, 0) scale(0.98);
  opacity: 0;
  transition:
    transform 0.42s ease,
    opacity 0.42s ease,
    box-shadow 0.35s ease;
}

.waterfall-card.is-from-left {
  transform: translate3d(-22px, 24px, 0) rotate(-2deg);
}

.waterfall-card.is-from-right {
  transform: translate3d(22px, 24px, 0) rotate(2deg);
}

.waterfall-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.waterfall-card:hover,
.waterfall-card:focus-visible,
.waterfall-card:active {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.26);
  transform: scale(1.02);
}

.waterfall-card.is-pressed {
  animation: card-bounce 0.26s ease;
}

.waterfall-card__image {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.04) contrast(1.02) brightness(0.98);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.waterfall-card:hover .waterfall-card__image,
.waterfall-card:focus-visible .waterfall-card__image,
.waterfall-card:active .waterfall-card__image {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04) brightness(1);
}

.waterfall-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 42px 14px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 20%, rgba(0, 0, 0, 0.78) 100%);
  transform: translateY(0);
  transition: transform 0.38s ease, padding 0.38s ease;
}

.waterfall-card:hover .waterfall-card__overlay,
.waterfall-card:focus-visible .waterfall-card__overlay,
.waterfall-card:active .waterfall-card__overlay {
  transform: translateY(-4px);
  padding-bottom: 18px;
}

.waterfall-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.waterfall-card__name {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.waterfall-card__tag {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
}

.waterfall-card__extra {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.32s ease;
}

.waterfall-card:hover .waterfall-card__extra,
.waterfall-card:focus-visible .waterfall-card__extra,
.waterfall-card:active .waterfall-card__extra {
  max-height: 72px;
  opacity: 1;
}

.waterfall-card--placeholder {
  opacity: 1;
  transform: none;
}

.waterfall-card__image--placeholder {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(90deg, rgba(214, 225, 241, 0.8) 25%, rgba(236, 243, 251, 0.95) 37%, rgba(214, 225, 241, 0.8) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.waterfall-card__overlay--placeholder {
  position: absolute;
  inset: auto 0 0 0;
  padding: 38px 14px 14px;
}

.waterfall-card__line {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(214, 225, 241, 0.8) 25%, rgba(236, 243, 251, 0.95) 37%, rgba(214, 225, 241, 0.8) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.waterfall-card__line--title {
  width: 64%;
  height: 16px;
}

.waterfall-card__line--tag {
  width: 28%;
  margin-top: 10px;
}

.feed-loader {
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
}

.atom-loader {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}

.atom-loader::before,
.atom-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(141, 215, 255, 0.8);
  border-radius: 50%;
}

.atom-loader::before {
  transform: rotate(60deg);
}

.atom-loader::after {
  transform: rotate(120deg);
}

.page--detail {
  background:
    radial-gradient(circle at 20% 10%, rgba(64, 128, 255, 0.08), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(22, 93, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #071428 0%, #0b2545 24%, #123560 52%, #2d5d9a 72%, #e8f3ff 100%);
  overflow-x: hidden;
  animation: abyss-breathe 18s ease-in-out infinite;
}

.page--detail .page-shell,
.page-shell--detail {
  width: 100%;
  margin: 0;
  padding: 0;
}

.detail-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 18;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #165dff 0%, #6ea8ff 40%, #9fe3ff 70%, #165dff 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(22, 93, 255, 0.4);
  animation: aurora-progress 8s linear infinite;
}

.detail-flow-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.detail-flow-field__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
}

.detail-flow-field__orb--a {
  width: 220px;
  height: 220px;
  top: 12%;
  left: -10%;
  background: rgba(22, 93, 255, 0.45);
  animation: orb-drift-a 16s ease-in-out infinite;
}

.detail-flow-field__orb--b {
  width: 260px;
  height: 260px;
  top: 46%;
  right: -14%;
  background: rgba(64, 128, 255, 0.34);
  animation: orb-drift-b 18s ease-in-out infinite;
}

.detail-flow-field__orb--c {
  width: 180px;
  height: 180px;
  bottom: 12%;
  left: 24%;
  background: rgba(159, 227, 255, 0.22);
  animation: orb-drift-c 20s ease-in-out infinite;
}

.detail-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: calc(env(safe-area-inset-top) + 6px) 12px 0;
  background: rgba(10, 27, 52, 0.08);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.detail-topbar.is-scrolled {
  background: rgba(11, 37, 69, 0.76);
  box-shadow: 0 12px 28px rgba(6, 18, 36, 0.16);
}

.detail-topbar__icon {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.detail-topbar__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-topbar__icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.84);
}

.detail-topbar__icon::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(64, 128, 255, 0.18);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.78);
}

.detail-topbar__icon.is-playing,
.detail-topbar__icon:hover,
.detail-topbar__icon:focus-visible {
  background: rgba(22, 93, 255, 0.28);
  transform: scale(1.04);
}

.detail-topbar__icon.is-playing {
  background: rgba(22, 93, 255, 0.32);
}

.detail-topbar__icon.is-rippling::after {
  opacity: 1;
  animation: voice-wave-soft 1s ease-out 1;
}

.detail-topbar__icon.is-rippling::before {
  opacity: 1;
  animation: voice-wave-wide 1s ease-out 1;
}

.detail-topbar__spacer {
  width: 44px;
  height: 44px;
}

.detail-page {
  position: relative;
  z-index: 1;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.detail-hero {
  position: relative;
  min-height: 50vh;
  background: #0b2545;
}

.detail-hero__media {
  position: relative;
  height: 50vh;
  overflow: hidden;
  transform-origin: center top;
  transition: transform 0.3s linear;
  opacity: 0;
  animation: hero-fade-in 0.5s ease forwards;
}

.detail-hero__backdrop,
.detail-hero__media::after {
  content: "";
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(24px) saturate(1.18) brightness(0.72);
  transform: scale(1.08);
}

.detail-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 24%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 48% 72%, rgba(176, 198, 232, 0.16) 0 1px, transparent 1.6px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  opacity: 0.4;
  animation: particles-float 18s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.detail-hero__media::after {
  position: absolute;
  inset: -12% -28% auto auto;
  width: 54%;
  height: 88%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  filter: blur(20px);
  opacity: 0.42;
  transform: rotate(12deg) translateX(24%);
  animation: hero-light-sweep 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.detail-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.detail-hero__particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(232, 243, 255, 0.55);
  box-shadow: 0 0 8px rgba(159, 227, 255, 0.25);
  animation: star-drift 12s linear infinite;
}

.detail-hero__particles span:nth-child(1) { left: 14%; top: 72%; animation-delay: -1s; }
.detail-hero__particles span:nth-child(2) { left: 28%; top: 62%; animation-delay: -4s; }
.detail-hero__particles span:nth-child(3) { left: 46%; top: 78%; animation-delay: -2.5s; }
.detail-hero__particles span:nth-child(4) { left: 64%; top: 58%; animation-delay: -7s; }
.detail-hero__particles span:nth-child(5) { left: 76%; top: 68%; animation-delay: -3s; }
.detail-hero__particles span:nth-child(6) { left: 88%; top: 54%; animation-delay: -5.5s; }

.detail-hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: none;
}

.detail-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.02), transparent 40%),
    linear-gradient(180deg, rgba(22, 93, 255, 0) 0%, rgba(22, 93, 255, 0.08) 42%, rgba(11, 37, 69, 0.54) 72%, #0b2545 100%);
  z-index: 2;
}

.detail-hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: 3;
  height: 120px;
  pointer-events: none;
}

.detail-hero__curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

.detail-hero__curve path {
  fill: rgba(11, 37, 69, 0.01);
}

.detail-hero__curve::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 120% at 12% 100%, rgba(22, 93, 255, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(11, 37, 69, 0) 0%, rgba(11, 37, 69, 0.72) 66%, #0b2545 100%);
  clip-path: path("M0,104 C48,138 88,154 144,148 C198,142 231,112 284,108 C333,104 361,122 390,144 L390,180 L0,180 Z");
}

.detail-hero__info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.detail-hero__text {
  min-width: 0;
}

.detail-hero__tag {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 30px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 37, 69, 0.54);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    0 10px 24px rgba(22, 93, 255, 0.28),
    0 0 18px rgba(64, 128, 255, 0.18);
}

.detail-hero__name {
  margin: 14px 0 0;
  color: #fff;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow:
    0 10px 26px rgba(6, 17, 35, 0.26),
    0 0 12px rgba(22, 93, 255, 0.2);
}

.detail-hero__meta {
  margin: 10px 0 0;
  color: #b0c6e8;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.075em;
}

.detail-content {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  padding: 40px 16px calc(120px + env(safe-area-inset-bottom));
  border-radius: 40px 40px 0 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(64, 128, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(9, 32, 61, 0.96) 0%, rgba(11, 37, 69, 0.9) 22%, rgba(32, 78, 129, 0.58) 58%, rgba(232, 243, 255, 0.96) 100%);
  backdrop-filter: blur(24px);
}

.detail-content::before {
  content: "";
  position: absolute;
  inset: 24px 14px auto;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(64, 128, 255, 0.22), transparent 70%);
  filter: blur(34px);
  opacity: 0.48;
  pointer-events: none;
}

.detail-content.is-ready .detail-section {
  opacity: 1;
  transform: translateY(0);
}

.detail-section {
  opacity: 0;
  transform: translateY(30px);
  padding: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-section:nth-child(1) {
  transition-delay: 0.04s;
}

.detail-section:nth-child(2) {
  transition-delay: 0.19s;
}

.detail-section + .detail-section {
  margin-top: 48px;
}

.detail-section:nth-child(3) {
  transition-delay: 0.34s;
}

.detail-section:hover,
.detail-section:focus-within {
  transform: translateY(-2px);
}

.detail-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.detail-section__line {
  position: relative;
  width: 4px;
  min-height: 110px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(128, 194, 255, 0.1), #80c2ff 40%, rgba(22, 93, 255, 0.18));
  box-shadow: 0 0 18px rgba(64, 128, 255, 0.45);
}

.detail-section__line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(159, 227, 255, 0.9), rgba(64, 128, 255, 0));
  transform: translateX(-50%);
  animation: line-flow 3.6s ease-in-out infinite;
}

.detail-section__heading--light .detail-section__line {
  min-height: 72px;
}

.detail-section h3 {
  position: relative;
  margin: 0;
  padding: 0;
  color: #e8f3ff;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-section p,
.detail-section li,
.quote-box {
  color: #e8f3ff;
  font-size: 15px;
  line-height: 1.8;
}

.detail-section--intro p::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  color: #165dff;
  font-size: 64px;
  line-height: 0.9;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(22, 93, 255, 0.2);
}

.detail-timeline {
  position: relative;
  padding-top: 18px;
}

.detail-timeline__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 6px;
  background:
    radial-gradient(circle, rgba(159, 227, 255, 0.8) 0 3px, transparent 3.2px) 0 0 / 32px 6px repeat-x,
    linear-gradient(90deg, rgba(159, 227, 255, 0.18), rgba(159, 227, 255, 0.18)) center / 100% 1px no-repeat;
  opacity: 0.92;
}

.detail-timeline__glow {
  position: absolute;
  left: 0;
  top: 50%;
  width: 80px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(159, 227, 255, 0), rgba(159, 227, 255, 0.92), rgba(64, 128, 255, 0));
  transform: translateY(-50%);
  animation: rail-float 3.2s ease-in-out infinite;
}

.detail-contribution-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.detail-contribution-list::-webkit-scrollbar {
  display: none;
}

.detail-contribution-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
}

.detail-contribution-list li + li {
  margin-top: 0;
}

.detail-contribution-list__node {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 0;
  margin-left: 8px;
  border-radius: 50%;
  background: #9fe3ff;
  box-shadow:
    0 0 0 6px rgba(64, 128, 255, 0.14),
    0 0 18px rgba(64, 128, 255, 0.48);
}

.detail-contribution-list__year {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(232, 243, 255, 0.1);
  color: #e8f3ff;
  font-size: 12px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.detail-contribution-list__bubble {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(232, 243, 255, 0.84), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(232, 243, 255, 0.28);
  box-shadow:
    0 10px 24px rgba(6, 19, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.detail-contribution-list__bubble::before {
  content: "";
  position: absolute;
  inset: auto -18% -30% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 128, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.detail-contribution-list__bubble:active,
.detail-contribution-list__bubble:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(6, 19, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.detail-contribution-list__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #165dff, #4080ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(22, 93, 255, 0.22);
}

.detail-contribution-list__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-contribution-list p {
  margin: 0;
  color: #42556f;
  text-align: left;
}

.detail-contribution-list strong {
  color: #165dff;
  font-weight: 700;
}

.roll-number {
  color: #165dff;
  font-weight: 800;
}

.quote-box {
  position: relative;
  padding: 34px 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 243, 255, 0.14) 0%, rgba(232, 243, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: #ffffff;
  text-align: center;
  font-size: 24px;
  font-style: italic;
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(6, 19, 40, 0.12);
  text-shadow: 0 1px 2px rgba(11, 37, 69, 0.28);
}

.quote-box::before,
.quote-box::after {
  position: absolute;
  color: rgba(64, 128, 255, 0.1);
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
}

.quote-box::before {
  content: "“";
  left: 16px;
  top: 12px;
}

.quote-box::after {
  content: "”";
  right: 18px;
  bottom: 10px;
}

.quote-box::selection {
  background: rgba(22, 93, 255, 0.16);
}

.detail-section--quote {
  position: relative;
}

.detail-section--quote::after {
  content: "";
  position: absolute;
  inset: 36px -14px -10px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(232, 243, 255, 0.06), rgba(64, 128, 255, 0.02)),
    radial-gradient(circle at 50% 50%, rgba(64, 128, 255, 0.08), transparent 60%);
  filter: blur(32px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.tribute-banner {
  margin-top: 40px;
  padding: 20px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b2545, #165dff);
  color: #fff;
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 18px 44px rgba(22, 93, 255, 0.2);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(159, 227, 255, 0.22);
}

.detail-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 14;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #165dff, #3d7dff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(22, 93, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease;
}

.detail-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.detail-fab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-fab:hover,
.detail-fab:focus-visible,
.detail-fab:active {
  transform: translateY(0) scale(1.05);
  background: linear-gradient(135deg, #2b73ff, #5f9bff);
}

.touch-wave {
  position: absolute;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: rgba(64, 128, 255, 0.22);
  box-shadow: 0 0 0 0 rgba(64, 128, 255, 0.26);
  pointer-events: none;
  animation: touch-ripple 0.6s ease-out forwards;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes aurora-progress {
  to {
    background-position: 220% 0;
  }
}

@keyframes hero-light-sweep {
  0%,
  100% {
    transform: rotate(12deg) translateX(26%);
    opacity: 0.3;
  }
  50% {
    transform: rotate(12deg) translateX(-10%);
    opacity: 0.5;
  }
}

@keyframes voice-wave {
  0% {
    opacity: 0.65;
    transform: scale(0.84);
  }
  100% {
    opacity: 0;
    transform: scale(1.46);
  }
}

@keyframes voice-wave-soft {
  0% {
    opacity: 0.55;
    transform: scale(0.84);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes voice-wave-wide {
  0% {
    opacity: 0.42;
    transform: scale(0.78);
  }
  100% {
    opacity: 0;
    transform: scale(1.62);
  }
}

@keyframes particles-float {
  0% {
    transform: translateY(12px);
    opacity: 0.28;
  }
  50% {
    transform: translateY(-12px);
    opacity: 0.44;
  }
  100% {
    transform: translateY(12px);
    opacity: 0.28;
  }
}

@keyframes aurora-progress {
  to {
    background-position: 220% 0;
  }
}

@keyframes line-flow {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateX(-50%) translateY(42px);
    opacity: 1;
  }
}

@keyframes rail-float {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(220px);
  }
}

@keyframes star-drift {
  0% {
    transform: translate3d(0, 14px, 0) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(10px, -36px, 0) scale(1.18);
    opacity: 0;
  }
}

@keyframes aurora-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fab-pulse {
  0% {
    opacity: 0.4;
    transform: scale(0.88);
  }
  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@keyframes touch-ripple {
  0% {
    opacity: 0.52;
    box-shadow: 0 0 0 0 rgba(64, 128, 255, 0.28);
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 24px rgba(64, 128, 255, 0);
    transform: scale(1.3);
  }
}

@keyframes abyss-breathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.05);
  }
}

@keyframes orb-drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(26px, 38px);
  }
}

@keyframes orb-drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-34px, -24px);
  }
}

@keyframes orb-drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -28px);
  }
}

/* Blueprint Detail Page */
.page--detail {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px),
    radial-gradient(circle at 12% 18%, rgba(64, 128, 255, 0.15) 0 1px, transparent 1.2px),
    radial-gradient(circle at 78% 24%, rgba(64, 128, 255, 0.15) 0 1px, transparent 1.2px),
    radial-gradient(circle at 34% 66%, rgba(64, 128, 255, 0.14) 0 1px, transparent 1.2px),
    radial-gradient(circle at 84% 76%, rgba(64, 128, 255, 0.14) 0 1px, transparent 1.2px),
    linear-gradient(180deg, #0b2545 0%, #102a55 56%, #142f5d 100%);
  background-size: 30px 30px, 30px 30px, 120px 120px, 160px 160px, 180px 180px, 210px 210px, 100% 100%;
  animation: blueprint-breathe 20s ease-in-out infinite;
}

.detail-progress {
  background: #4080ff;
  background-size: auto;
  box-shadow: none;
  animation: none;
}

.detail-topbar {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.detail-topbar.is-scrolled {
  background: rgba(11, 37, 69, 0.86);
  box-shadow: 0 6px 20px rgba(4, 14, 30, 0.22);
}

.detail-topbar__icon {
  background: rgba(22, 93, 255, 0.08);
  border: 1px solid rgba(64, 128, 255, 0.28);
  transform: none;
}

.detail-topbar__icon:hover,
.detail-topbar__icon:focus-visible,
.detail-topbar__icon.is-playing {
  background: rgba(22, 93, 255, 0.16);
  transform: none;
}

.detail-topbar__icon::after {
  inset: -8px;
  border: 1px dashed rgba(64, 128, 255, 0.5);
  transform: scale(0.92);
}

.detail-topbar__icon::before {
  inset: -16px;
  border: 1px dashed rgba(64, 128, 255, 0.3);
  transform: scale(0.92);
}

.detail-topbar__icon.is-rippling::after {
  animation: blueprint-voice-ring 1s ease-out 1;
}

.detail-topbar__icon.is-rippling::before {
  animation: blueprint-voice-ring-wide 1s ease-out 1;
}

.detail-hero {
  min-height: 50vh;
}

.detail-hero__media {
  height: 50vh;
  animation: blueprint-hero-fade 0.3s ease forwards;
}

.detail-hero__backdrop,
.detail-hero__media::before,
.detail-hero__media::after {
  display: none;
}

.detail-hero__media img {
  z-index: 1;
  object-fit: contain;
  object-position: center bottom;
}

.detail-hero__overlay {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(11, 37, 69, 0) 0%, rgba(11, 37, 69, 0.08) 38%, rgba(11, 37, 69, 0.72) 78%, #0b2545 100%);
}

.detail-hero__curve {
  height: 104px;
}

.detail-hero__curve::before {
  background: linear-gradient(180deg, rgba(11, 37, 69, 0) 0%, rgba(11, 37, 69, 0.76) 68%, #0b2545 100%);
}

.detail-hero__info {
  align-items: flex-end;
}

.detail-hero__text {
  max-width: min(80%, 520px);
}

.detail-hero__label {
  display: inline-flex;
  align-items: center;
  min-height: 70px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(22, 93, 255, 0.2);
  border: 1px solid rgba(176, 198, 232, 0.22);
  backdrop-filter: blur(10px);
}

.detail-hero__name {
  margin: 0;
  font-size: 48px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(11, 37, 69, 0.28);
}

.detail-hero__connector {
  display: inline-block;
  width: 44px;
  height: 1px;
  margin-left: 12px;
  background: linear-gradient(90deg, rgba(176, 198, 232, 0.9), rgba(176, 198, 232, 0));
}

.detail-hero__meta {
  margin: 12px 0 0;
  color: #b0c6e8;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.detail-hero__tag {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 37, 69, 0.24);
  border: 1px dashed rgba(64, 128, 255, 0.8);
  color: #e8f3ff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.detail-content {
  margin-top: -18px;
  padding: 28px 20px calc(120px + env(safe-area-inset-bottom));
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0.5px, transparent 0.5px),
    linear-gradient(180deg, #0b2545 0%, #11315e 46%, #194171 72%, #1d2b40 100%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  backdrop-filter: none;
}

.detail-content::before {
  display: none;
}

.detail-section {
  transform: translateY(10px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.detail-content.is-ready .detail-section {
  opacity: 1;
  transform: translateY(0);
}

.detail-section:nth-child(1) {
  transition-delay: 0.08s;
}

.detail-section:nth-child(2) {
  transition-delay: 0.16s;
}

.detail-section:nth-child(3) {
  transition-delay: 0.24s;
}

.detail-section + .detail-section {
  position: relative;
  margin-top: 52px;
  padding-top: 44px;
}

.detail-section + .detail-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 1px;
  background: rgba(64, 128, 255, 0.3);
  box-shadow:
    -8px 0 0 -3px rgba(64, 128, 255, 0.55),
    38px 0 0 -3px rgba(64, 128, 255, 0.55);
}

.detail-section:hover,
.detail-section:focus-within {
  transform: none;
}

.detail-section__heading {
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-section__line {
  width: 3px;
  min-height: 88px;
  background: linear-gradient(180deg, rgba(64, 128, 255, 0.96), rgba(64, 128, 255, 0.3));
  box-shadow: 0 0 10px rgba(64, 128, 255, 0.18);
}

.detail-section__line::after {
  display: none;
}

.detail-section__heading--light .detail-section__line {
  min-height: 56px;
}

.detail-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4080ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.detail-section h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.detail-section p,
.detail-section li,
.quote-box {
  color: #e8f3ff;
  font-size: 15px;
  line-height: 1.8;
}

.detail-section--intro p {
  max-width: 66ch;
}

.detail-section--intro p::first-letter {
  color: #165dff;
  font-size: 72px;
  font-weight: 700;
  font-family: "Courier New", "Microsoft YaHei", monospace;
  text-shadow: none;
}

.detail-timeline {
  padding-top: 0;
}

.detail-timeline__rail,
.detail-timeline__glow {
  display: none;
}

.detail-contribution-list {
  display: block;
  padding: 0;
  overflow: visible;
}

.detail-contribution-list li {
  display: block;
  max-width: 760px;
}

.detail-contribution-list li + li {
  margin-top: 22px;
}

.detail-contribution-list__entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 44px;
  padding: 4px 0;
  border-radius: 18px;
  transition: background-color 0.2s ease;
}

.detail-contribution-list__entry:hover,
.detail-contribution-list__entry:active {
  background: rgba(255, 255, 255, 0.05);
}

.detail-contribution-list__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(22, 93, 255, 0.1);
  border: 1px solid rgba(64, 128, 255, 0.28);
  box-shadow: none;
}

.detail-contribution-list__icon svg {
  width: 20px;
  height: 20px;
}

.detail-contribution-list__text {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(232, 243, 255, 0.08);
  color: #e8f3ff;
}

.detail-contribution-list strong,
.roll-number {
  color: #4080ff;
}

.quote-box {
  padding: 30px 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(29, 43, 64, 0.9), rgba(29, 43, 64, 0.92)),
    linear-gradient(rgba(255, 255, 255, 0.04) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0.5px, transparent 0.5px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(64, 128, 255, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(11, 37, 69, 0.22);
}

.quote-box::before,
.quote-box::after {
  content: "";
}

.detail-section--quote::after {
  display: none;
}

.detail-section--quote .detail-section__heading {
  margin-bottom: 16px;
}

.detail-section--quote .detail-section__heading + .quote-box {
  position: relative;
}

.detail-section--quote .detail-section__heading + .quote-box::before,
.detail-section--quote .detail-section__heading + .quote-box::after {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 1px;
  background: rgba(64, 128, 255, 0.4);
}

.detail-section--quote .detail-section__heading + .quote-box::before {
  top: 12px;
}

.detail-section--quote .detail-section__heading + .quote-box::after {
  bottom: 12px;
}

.tribute-banner {
  margin-top: 52px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0b2545, #02070f);
  color: #4080ff;
  font-size: 12px;
  letter-spacing: 0.32em;
  box-shadow: inset 0 0 0 1px rgba(64, 128, 255, 0.14);
  text-shadow: 0 0 8px rgba(64, 128, 255, 0.18);
}

.detail-fab {
  width: 48px;
  height: 48px;
  border: 1px solid #4080ff;
  background: #165dff;
  box-shadow: none;
}

.detail-fab:hover,
.detail-fab:focus-visible,
.detail-fab:active {
  background: #2f76ff;
}

.touch-wave {
  display: none;
}

@keyframes blueprint-hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blueprint-breathe {
  0%,
  100% {
    background-color: #0b2545;
  }
  50% {
    background-color: #102a55;
  }
}

@keyframes blueprint-voice-ring {
  from {
    opacity: 0.56;
    transform: scale(0.92);
  }
  to {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes blueprint-voice-ring-wide {
  from {
    opacity: 0.36;
    transform: scale(0.92);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

@media (max-width: 720px) {
  .detail-hero__text {
    max-width: 100%;
  }

  .detail-hero__label {
    min-height: 62px;
    padding: 8px 12px;
  }

  .detail-hero__name {
    font-size: 40px;
  }

  .detail-hero__connector {
    width: 28px;
  }

  .detail-content {
    padding: 24px 14px calc(104px + env(safe-area-inset-bottom));
  }

  .detail-section + .detail-section {
    margin-top: 44px;
    padding-top: 38px;
  }
}

@media (max-width: 520px) {
  .detail-hero__media {
    height: 50vh;
  }

  .detail-hero__info {
    left: 14px;
    right: 14px;
    bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-hero__name {
    font-size: 34px;
  }

  .detail-hero__meta {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .detail-contribution-list__entry {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .detail-contribution-list__icon {
    width: 36px;
    height: 36px;
  }

  .quote-box {
    padding: 26px 16px;
    font-size: 20px;
  }
}

/* Blueprint Detail Refinements */
.detail-hero__media::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 0.6px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.04) 0.4px, transparent 0.6px);
  background-size: 9px 9px, 13px 13px;
  background-position: 0 0, 4px 6px;
  opacity: 0.18;
}

.detail-hero__overlay {
  z-index: 3;
}

.detail-hero__curve {
  z-index: 4;
}

.detail-hero__info {
  z-index: 5;
}

.detail-section h3 {
  font-size: 12px;
}

.detail-section--intro p::first-letter {
  all: unset;
}

.detail-dropcap {
  float: left;
  margin: 6px 12px 0 0;
  color: #165dff;
  font-size: 72px;
  line-height: 0.9;
  font-weight: 700;
  font-family: "Courier New", "Microsoft YaHei", monospace;
}

.detail-section--intro p + p {
  position: relative;
  margin-top: 18px;
  padding-top: 18px;
}

.detail-section--intro p + p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 1px;
  background: rgba(64, 128, 255, 0.3);
  box-shadow: 24px 0 0 rgba(64, 128, 255, 0.18);
}

.detail-contribution-list__icon {
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  border-radius: 0;
}

.detail-contribution-list__text {
  font-variant-numeric: tabular-nums;
}

.detail-contribution-list strong,
.roll-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quote-box {
  position: relative;
}

.quote-box::before,
.quote-box::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: rgba(64, 128, 255, 0.4);
}

.quote-box::before {
  top: 14px;
}

.quote-box::after {
  bottom: 14px;
}

.quote-box > * {
  position: relative;
  z-index: 1;
}

.quote-box {
  background:
    linear-gradient(180deg, rgba(29, 43, 64, 0.94), rgba(29, 43, 64, 0.94)),
    linear-gradient(rgba(255, 255, 255, 0.025) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0.5px, transparent 0.5px);
}

.detail-section--quote .quote-box::before,
.detail-section--quote .quote-box::after {
  content: "";
}

.detail-section--quote .quote-box::before,
.detail-section--quote .quote-box::after,
.detail-end-marker::before {
  background:
    linear-gradient(90deg, transparent 0, rgba(64, 128, 255, 0.4) 14px, rgba(64, 128, 255, 0.4) calc(100% - 14px), transparent 100%);
}

.detail-section--quote .quote-box::before {
  box-shadow:
    8px 0 0 -6px rgba(64, 128, 255, 0.4),
    calc(100% - 8px) 0 0 -6px rgba(64, 128, 255, 0.4);
}

.detail-end-marker {
  position: relative;
  margin-top: 52px;
  height: 40px;
}

.detail-end-marker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  opacity: 0.2;
}

@media (max-width: 520px) {
  .detail-dropcap {
    font-size: 60px;
  }
}

@keyframes line-flow {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateX(-50%) translateY(42px);
    opacity: 1;
  }
}

@keyframes rail-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(180px);
  }
}

@keyframes star-drift {
  0% {
    transform: translate3d(0, 14px, 0) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(10px, -36px, 0) scale(1.18);
    opacity: 0;
  }
}

@keyframes aurora-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fab-pulse {
  0% {
    opacity: 0.4;
    transform: scale(0.88);
  }
  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@keyframes touch-ripple {
  0% {
    opacity: 0.52;
    box-shadow: 0 0 0 0 rgba(64, 128, 255, 0.28);
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 24px rgba(64, 128, 255, 0);
    transform: scale(1.3);
  }
}

@keyframes abyss-breathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.05);
  }
}

@keyframes orb-drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(26px, 38px);
  }
}

@keyframes orb-drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-34px, -24px);
  }
}

@keyframes orb-drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -28px);
  }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(9, 24, 49, 0.94), rgba(12, 35, 72, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar__logo-wrap {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar__logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.topbar__title {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 420px);
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(9, 24, 49, 0.92), rgba(12, 35, 72, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(181, 223, 255, 0.92);
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero__logo-wrap {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(6, 19, 40, 0.24);
}

.hero__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.hero__brand-text {
  display: grid;
  gap: 4px;
}

.hero__school,
.hero__school-sub {
  margin: 0;
}

.hero__school {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.hero__school-sub {
  color: rgba(219, 237, 255, 0.8);
  font-size: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
}

.hero__desc {
  margin: 16px 0 0;
  max-width: 720px;
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.85;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(241, 248, 255, 0.94);
  font-size: 14px;
}

.hero__panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero__stat,
.hero__tips {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.hero__stat-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(204, 228, 255, 0.84);
  font-size: 13px;
}

.hero__stat strong {
  font-size: 22px;
}

.hero__tips p {
  margin: 0;
  color: rgba(233, 244, 255, 0.88);
  line-height: 1.8;
  word-break: break-word;
}

.hero__tips p + p {
  margin-top: 8px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.layout--home,
.layout--detail {
  grid-template-columns: 1fr;
}

.page--home .layout {
  margin-top: 14px;
}

.catalog,
.detail {
  min-width: 0;
}

.toolbar,
.detail__content,
.detail__empty {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.toolbar {
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.page--home .toolbar {
  position: sticky;
  top: 10px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 24, 46, 0.94), rgba(12, 35, 72, 0.9));
  backdrop-filter: blur(16px);
}

.toolbar__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.toolbar__top h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
}

.page--home .toolbar__top h2 {
  color: #fff;
  font-size: 24px;
}

.toolbar__controls {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f4f8fe;
  color: #153d6e;
  padding: 10px 16px;
  min-height: 44px;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-1px);
}

.chip.is-active {
  background: linear-gradient(135deg, #1e73d5, #65b8ff);
  color: #fff;
  border-color: transparent;
}

.search-box input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17, 84, 160, 0.18);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

.page--home .search-box input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.search-box input:focus {
  outline: 2px solid rgba(32, 118, 217, 0.18);
  border-color: rgba(32, 118, 217, 0.4);
}

.scientist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.page--home .scientist-grid {
  margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.scientist-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  box-shadow: 0 14px 32px rgba(6, 24, 52, 0.14);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.scientist-card--placeholder {
  pointer-events: none;
}

.scientist-card:hover,
.scientist-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(6, 24, 52, 0.18);
  border-color: rgba(32, 118, 217, 0.22);
}

.scientist-card.is-active {
  border-color: rgba(32, 118, 217, 0.32);
  box-shadow:
    0 20px 44px rgba(6, 24, 52, 0.18),
    0 0 0 2px rgba(32, 118, 217, 0.08);
}

.scientist-card__image-wrap--placeholder {
  background:
    linear-gradient(90deg, #dde8f6 25%, #eef4fb 37%, #dde8f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.scientist-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.8;
  border-radius: 18px;
  background: linear-gradient(135deg, #daeaff, #edf4ff);
}

.scientist-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scientist-card__category {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 28, 56, 0.7);
  color: #fff;
  font-size: 12px;
}

.scientist-card__body {
  padding: 14px 2px 4px;
}

.scientist-card__line {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #dde8f6 25%, #eef4fb 37%, #dde8f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.scientist-card__line + .scientist-card__line {
  margin-top: 10px;
}

.scientist-card__line--title {
  height: 18px;
  width: 70%;
}

.scientist-card__line--text.short {
  width: 58%;
}

.scientist-card__name {
  margin: 0;
  font-size: 22px;
  color: #112b4b;
}

.scientist-card__en {
  margin: 6px 0 0;
  min-height: 21px;
  font-size: 13px;
  color: #6181a5;
}

.scientist-card__summary {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.scientist-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.scientist-card__badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #13539b;
  font-size: 12px;
}

.scientist-card__more {
  font-size: 13px;
  color: var(--accent-strong);
}

.detail {
  position: sticky;
  top: 18px;
}

.detail__empty,
.detail__content {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  overflow: hidden;
}

.detail__content--standalone {
  max-width: 980px;
  margin: 0 auto;
}

.detail__empty {
  padding: 40px 32px;
  min-height: 360px;
  display: grid;
  place-content: center;
  text-align: center;
}

.detail__empty-title {
  margin: 0;
  font-size: 26px;
  color: #18355a;
}

.detail__empty-text {
  margin: 14px 0 0;
  max-width: 380px;
  color: var(--text-soft);
  line-height: 1.8;
}

.detail__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #d7e8ff, #edf5ff);
}

.detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 35, 72, 0.04), rgba(10, 35, 72, 0.35)),
    linear-gradient(180deg, transparent 48%, rgba(10, 19, 34, 0.55));
}

.detail__body {
  padding: 26px;
}

.detail__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.detail__badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #1557a0;
  font-size: 13px;
}

.detail__header h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  color: #102b49;
}

.detail__subtitle {
  margin: 10px 0 0;
  color: #5c7696;
  line-height: 1.7;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 12px 18px;
  border: 0;
  min-height: 46px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #1b73d7, #66b6ff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(32, 118, 217, 0.24);
}

.ghost-btn {
  background: #eff5fd;
  color: #173f71;
}

.ghost-btn--link {
  display: inline-flex;
  align-items: center;
}

.ghost-btn--light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.primary-btn:focus-visible,
.ghost-btn:hover,
.ghost-btn:focus-visible {
  transform: translateY(-1px);
}

.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.detail__status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f8fe;
  color: #355270;
  line-height: 1.6;
}

.detail__status.is-speaking {
  background: rgba(98, 177, 255, 0.14);
  color: #0f5eae;
}

.detail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail__section {
  margin-top: 26px;
}

.detail__section h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #14385f;
}

.detail__section p,
.detail__section li {
  margin: 0;
  color: #445e79;
  line-height: 1.9;
}

.detail__section ul {
  margin: 0;
  padding-left: 20px;
}

.detail__section li + li {
  margin-top: 10px;
}

.detail__notes {
  color: #4f6a86;
}

.empty-state {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: #38516d;
  text-align: center;
  line-height: 1.8;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-bounce {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .detail {
    position: static;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 12px;
  }

  .page--home .page-shell {
    width: calc(100% - 14px);
    padding-top: 8px;
  }

  .immersive-nav {
    padding: 12px 10px 8px;
  }

  .immersive-nav__brand {
    justify-content: flex-start;
  }

  .immersive-nav__logo-wrap {
    width: 38px;
    height: 38px;
  }

  .immersive-nav__title {
    font-size: 22px;
  }

  .side-drawer {
    width: min(84vw, 320px);
    padding: 16px 14px 22px;
  }

  .detail-hero__media {
    height: min(50vh, 420px);
  }

  .detail-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-feed {
    padding: 14px 10px 32px;
  }

  .waterfall {
    column-gap: 10px;
  }

  .topbar {
    min-height: 68px;
    padding: 10px 14px;
    border-radius: 20px;
  }

  .topbar__logo-wrap {
    width: 42px;
    height: 42px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .hero--detail {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .detail__body,
  .detail__empty {
    padding: 22px;
  }

  .detail__header {
    flex-direction: column;
  }

  .detail__actions {
    justify-content: flex-start;
  }

  .hero__brand {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .hero__desc {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero__meta {
    gap: 10px;
  }

  .hero__meta span {
    font-size: 13px;
  }

  .detail__header h2 {
    font-size: clamp(28px, 6vw, 38px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 10px, 1440px);
  }

  .page--home .page-shell {
    width: calc(100% - 8px);
    padding-top: 6px;
  }

  .immersive-nav {
    gap: 10px;
    padding: 10px 8px 8px;
  }

  .immersive-nav__brand {
    gap: 10px;
  }

  .immersive-nav__logo-wrap {
    width: 34px;
    height: 34px;
  }

  .immersive-nav__title {
    font-size: 20px;
  }

  .immersive-nav__actions {
    gap: 6px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn__glyph {
    font-size: 15px;
  }

  .side-drawer {
    width: calc(100vw - 42px);
    max-width: 300px;
    padding: 16px 12px 20px;
  }

  .side-drawer__title {
    font-size: 20px;
  }

  .detail-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .detail-topbar__icon {
    width: 42px;
    height: 42px;
  }

  .detail-topbar__spacer {
    width: 42px;
    height: 42px;
  }

  .detail-hero__media {
    height: min(50vh, 400px);
  }

  .detail-hero__info {
    left: 16px;
    right: 16px;
    bottom: 18px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-hero__name {
    font-size: 36px;
  }

  .detail-hero__meta {
    font-size: 14px;
  }

  .detail-content {
    margin-top: -28px;
    padding: 28px 12px calc(96px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
  }

  .detail-section {
    padding: 0;
  }

  .detail-section__heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .detail-section__line {
    min-height: 92px;
  }

  .detail-section h3 {
    font-size: 18px;
  }

  .detail-section p,
  .detail-section li,
  .quote-box {
    font-size: 15px;
  }

  .detail-contribution-list li {
    flex-basis: min(82vw, 260px);
  }

  .detail-contribution-list__bubble {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px 16px 16px 14px;
  }

  .detail-fab {
    width: 50px;
    height: 50px;
  }

  .home-feed {
    padding: 12px 8px 28px;
  }

  .hero,
  .toolbar,
  .detail__empty,
  .detail__content {
    border-radius: 18px;
  }

  .scientist-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .toolbar__top {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    padding: 18px;
  }

  .page--home .toolbar {
    top: 6px;
    padding: 14px;
  }

  .waterfall {
    column-count: 2;
    column-gap: 8px;
  }

  .waterfall-card {
    margin-bottom: 8px;
    border-radius: 20px;
  }

  .waterfall-card__overlay {
    padding: 34px 12px 12px;
  }

  .waterfall-card__name {
    font-size: 16px;
  }

  .waterfall-card__tag {
    font-size: 11px;
  }

  .waterfall-card__extra {
    font-size: 11px;
  }

  .hero {
    padding: 18px;
  }

  .hero__brand {
    gap: 12px;
    align-items: center;
  }

  .hero__logo-wrap {
    width: 64px;
    height: 64px;
    padding: 5px;
  }

  .hero__school {
    font-size: 16px;
  }

  .hero__school-sub {
    font-size: 12px;
  }

  .hero__eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .hero__desc {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero__panel {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero__tips {
    grid-column: 1 / -1;
  }

  .ghost-btn--light {
    width: 100%;
  }

  .hero__stat,
  .hero__tips {
    padding: 14px;
    border-radius: 16px;
  }

  .hero__stat strong {
    font-size: 18px;
  }

  .scientist-card {
    display: block;
    padding: 12px;
    border-radius: 18px;
  }

  .scientist-card__image-wrap {
    aspect-ratio: 1 / 1.12;
    border-radius: 14px;
  }

  .scientist-card__body {
    padding: 10px 2px 2px;
  }

  .scientist-card__name {
    font-size: 19px;
    line-height: 1.25;
  }

  .scientist-card__en {
    min-height: 0;
    font-size: 12px;
    line-height: 1.5;
  }

  .scientist-card__summary {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .scientist-card__footer {
    margin-top: 10px;
    align-items: center;
  }

  .scientist-card__badge,
  .scientist-card__more {
    font-size: 12px;
  }

  .detail__nav,
  .detail__actions {
    flex-direction: column;
  }

  .detail__body,
  .detail__empty {
    padding: 18px;
  }

  .detail__cover {
    aspect-ratio: 4 / 3;
  }

  .detail__header h2 {
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.2;
  }

  .detail__subtitle {
    margin-top: 8px;
    font-size: 14px;
  }

  .detail__status {
    margin-top: 14px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .detail__nav {
    margin-top: 14px;
    gap: 8px;
  }

  .detail__section {
    margin-top: 22px;
  }

  .detail__section h3 {
    font-size: 18px;
  }

  .detail__section p,
  .detail__section li {
    font-size: 15px;
    line-height: 1.8;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .page-shell {
    width: calc(100% - 8px);
  }

  .immersive-nav__title {
    font-size: 18px;
  }

  .side-drawer {
    width: calc(100vw - 30px);
  }

  .detail-hero__media {
    height: 50vh;
  }

  .detail-hero__info {
    gap: 10px;
  }

  .detail-hero__name {
    font-size: 34px;
  }

  .detail-hero__meta {
    font-size: 14px;
  }

  .detail-section h3 {
    font-size: 18px;
  }

  .detail-section p,
  .detail-section li,
  .quote-box {
    font-size: 15px;
  }

  .detail-section--intro p::first-letter {
    font-size: 52px;
  }

  .detail-timeline {
    padding-top: 16px;
  }

  .detail-timeline__rail {
    top: 19px;
  }

  .detail-contribution-list li {
    flex-basis: min(84vw, 240px);
    gap: 8px;
  }

  .detail-contribution-list__year {
    margin-left: 8px;
    width: fit-content;
  }

  .detail-contribution-list__node {
    margin-left: 8px;
  }

  .detail-contribution-list__bubble {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .quote-box {
    padding: 24px 20px;
    font-size: 17px;
  }

  .tribute-banner {
    letter-spacing: 0.18em;
  }

  .hero {
    padding: 16px;
  }
}

  .hero__panel {
    grid-template-columns: 1fr;
  }


  .page--home .scientist-grid {
    grid-template-columns: 1fr;
  }

  .waterfall {
    column-count: 2;
    column-gap: 6px;
  }
}
