﻿:root {
  --ink: #28232d;
  --muted: #6f6879;
  --paper: #fbfaf7;
  --paper-soft: #f3f0ea;
  --lavender: #c8b8df;
  --lavender-deep: #7c609b;
  --mint: #cce6c8;
  --sage: #789473;
  --butter: #efe0a5;
  --line: rgba(38, 36, 43, 0.12);
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.42);
  --shadow: 0 28px 96px rgba(96, 75, 120, 0.14);
  --detail-heading-size: clamp(30px, 3vw, 42px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #f3eaff;
  background-attachment: fixed;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset-block: 0;
  z-index: -1;
  width: 72px;
  content: "";
  opacity: 0.08;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

body::before {
  left: 0;
}

body::after {
  right: 0;
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 34px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(244, 235, 255, 0.24)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -18px 34px rgba(163, 139, 194, 0.08),
    0 12px 38px rgba(85, 68, 106, 0.1);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
}

.nav-pill {
  display: flex;
  width: min(680px, 100%);
  gap: 4px;
  justify-content: center;
}

.nav-pill a {
  min-width: 112px;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--muted);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-pill a:hover,
.nav-pill a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 26px rgba(124, 96, 155, 0.12);
  transform: translateY(-1px);
}

.hero-section {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 124px);
  padding: 34px 0 86px;
}

.profile-panel {
  position: relative;
  display: grid;
  gap: 16px;
}

.profile-panel::before {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: -1;
  width: 246px;
  height: 246px;
  border-radius: 46% 54% 53% 47%;
  content: "";
  background: linear-gradient(135deg, var(--lavender), var(--mint));
  filter: blur(1px);
  transform: rotate(-8deg);
}

.portrait-echo {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 0.74 / 1;
  margin: 0 auto 4px;
  isolation: isolate;
}

.portrait-echo::before {
  position: absolute;
  inset: 9% 5% 16% 3%;
  z-index: 0;
  display: block;
  border-radius: 48% 52% 54% 46%;
  content: "";
  background:
    radial-gradient(circle at 36% 42%, rgba(201, 185, 226, 0.5), transparent 58%),
    radial-gradient(circle at 64% 62%, rgba(245, 224, 154, 0.42), transparent 60%),
    rgba(255, 255, 255, 0.16);
  filter: blur(9px);
  opacity: 0.72;
  transition: transform 360ms ease, opacity 360ms ease;
}

.portrait-echo::after {
  position: absolute;
  left: 16%;
  right: 12%;
  bottom: 1%;
  z-index: 0;
  height: 18%;
  border-radius: 50%;
  content: "";
  background: rgba(68, 54, 84, 0.16);
  filter: blur(18px);
}

.portrait-layer {
  z-index: 1;
  position: absolute;
  display: block;
  width: 78%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.86, 0.22, 1);
  user-select: none;
}

.portrait-main {
  left: 2%;
  bottom: 0;
  z-index: 3;
  width: 82%;
  filter:
    drop-shadow(0 22px 30px rgba(47, 39, 58, 0.18))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.55));
  transform: translateX(10px) translateY(2px) scale(1.01);
}

.portrait-shadow {
  right: 0;
  bottom: 1%;
  z-index: 2;
  opacity: 0.32;
  filter:
    blur(1.8px)
    saturate(1.08)
    drop-shadow(0 0 22px rgba(124, 96, 155, 0.34));
  mix-blend-mode: multiply;
  transform: translateX(2px) translateY(5px) scale(0.96);
}

.portrait-echo:hover::before,
.portrait-echo:focus-within::before {
  opacity: 0.82;
  transform: scale(1.03) translateY(4px);
}

.portrait-echo:hover .portrait-main,
.portrait-echo:focus-within .portrait-main {
  transform: translateX(-8px) translateY(0) scale(1.02);
}

.portrait-echo:hover .portrait-shadow,
.portrait-echo:focus-within .portrait-shadow {
  opacity: 0.68;
  filter:
    blur(0.7px)
    saturate(1.18)
    drop-shadow(0 0 28px rgba(124, 96, 155, 0.46));
  transform: translateX(58px) translateY(-4px) scale(1.01);
}

.timeline-card,
.project-card {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 24px 72px rgba(78, 68, 90, 0.1);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.eyebrow,
.section-kicker,
.block-label {
  margin: 0 0 8px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-copy {
  position: relative;
  isolation: isolate;
  width: min(100%, 780px);
  padding: clamp(28px, 4vw, 46px);
  border-radius: 34px;
  background: transparent;
}

.about-copy::before,
.about-copy::after {
  position: absolute;
  content: "";
  border-radius: 34px;
  box-shadow: 0 22px 54px rgba(82, 64, 104, 0.12);
}

.about-copy::before {
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: #d8c4ee;
  box-shadow:
    0 30px 84px rgba(82, 64, 104, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.about-copy::after {
  inset: -18px -18px -24px -18px;
  z-index: -3;
  background:
    linear-gradient(84deg, #2a2730 0 52%, transparent 52% 100%),
    linear-gradient(96deg, transparent 0 10%, #b9dcb2 10% 100%);
  transform: rotate(-2deg) translate(-16px, 16px);
}
.about-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
}

.about-copy h1 span {
  color: var(--lavender-deep);
}

.hero-slogan {
  max-width: 780px;
  margin: 14px 0 28px;
  color: #686174;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 650;
  letter-spacing: 0;
}

.profile-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  align-items: start;
  padding-top: 22px;
  border-top: 1px dashed rgba(124, 96, 155, 0.26);
}

.fact-item {
  position: relative;
  min-height: 0;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(124, 96, 155, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 238, 252, 0.58)),
    rgba(252, 249, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 22px rgba(73, 58, 94, 0.08);
  overflow: hidden;
}

.fact-item::before {
  display: none;
}

.fact-item:nth-child(1) {
  margin-left: 0;
  border-radius: 18px;
}

.fact-item:nth-child(2) {
  width: 100%;
  margin-left: 0;
  transform: none;
  border-radius: 18px;
}

.fact-item:nth-child(3) {
  width: 100%;
  margin-left: 0;
  transform: none;
  border-radius: 18px;
}

.fact-item h3 {
  margin: 0 0 12px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}

.fact-item p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.skill-line {
  color: rgba(111, 104, 121, 0.86) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.education-route {
  display: grid;
  grid-template-columns: auto minmax(88px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 800;
}

.route-line {
  position: relative;
  display: block;
  height: 18px;
}

.route-line::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 20px;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20' viewBox='0 0 96 20'%3E%3Cpath d='M2 10 C14 0 24 20 36 10 S58 0 70 10 S84 20 94 10' fill='none' stroke='%237c609b' stroke-width='3' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 96px 20px;
  transform: translateY(-50%);
}

.route-line::after {
  display: none;
}

.route-plane {
  position: absolute;
  top: calc(50% - 7px);
  right: -1px;
  z-index: 1;
  width: 22px;
  height: 14px;
  background: var(--lavender-deep);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
  filter: drop-shadow(0 5px 8px rgba(124, 96, 155, 0.24));
}

.content-section {
  padding: 96px 0;
  border-top: 1px solid rgba(38, 36, 43, 0.09);
}

.page-section {
  padding-top: 42px;
  border-top: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.timeline-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.timeline-card:nth-child(1) {
  border-radius: 36px 62px 42px 36px;
}

.featured-internship {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(246, 241, 253, 0.38)),
    rgba(255, 255, 255, 0.28);
}

.featured-internship::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(124, 96, 155, 0.42));
}

.timeline-card:nth-child(2) {
  border-radius: 54px 34px 58px 38px;
}

.timeline-card:nth-child(3) {
  border-radius: 34px 54px 36px 64px;
}

.timeline-index {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--lavender-deep);
  background: linear-gradient(135deg, rgba(200, 184, 223, 0.72), rgba(204, 230, 200, 0.76));
  font-weight: 800;
}

.timeline-card h3,
.project-card h3 {
  margin: 0 0 10px;
  font-family: Inter, "Helvetica Neue", Arial, "KaiTi", serif;
  font-size: 24px;
}

.featured-internship h3 {
  max-width: 820px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

.timeline-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-lead {
  max-width: 880px;
  font-size: 16px;
}

.impact-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
  margin: 22px 0;
}

.impact-strip div {
  padding: 16px;
  border: 1px solid rgba(124, 96, 155, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.impact-strip strong {
  display: block;
  color: var(--lavender-deep);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.impact-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.workflow-grid article {
  min-height: 174px;
  padding: 16px;
  border: 1px solid rgba(124, 96, 155, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 243, 253, 0.54)),
    rgba(255, 255, 255, 0.32);
}

.workflow-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--lavender-deep);
  background: rgba(200, 184, 223, 0.34);
  font-size: 12px;
  font-weight: 800;
}

.workflow-grid h4,
.star-board h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.workflow-grid p {
  font-size: 13px;
  line-height: 1.65;
}

.star-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(124, 96, 155, 0.12);
  border-radius: 22px;
  background: rgba(124, 96, 155, 0.12);
}

.star-board section {
  padding: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.star-board h4 {
  color: var(--lavender-deep);
  font-size: 14px;
  text-transform: uppercase;
}

.star-board p {
  font-size: 14px;
}

.todo-copy {
  color: rgba(111, 104, 121, 0.72) !important;
  font-style: italic;
}

.detail-star {
  margin-top: 0;
}

.sop-button {
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(124, 96, 155, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  font-weight: 800;
}

.sop-panel {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-left: 3px solid var(--sage);
  border-radius: 0 24px 24px 0;
  background: rgba(204, 230, 200, 0.3);
}

.sop-panel.open {
  display: block;
}

.sop-steps {
  border-left-color: var(--lavender-deep);
  background: rgba(255, 255, 255, 0.42);
}

.sop-steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  margin-right: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(124, 96, 155, 0.2);
  border-radius: 999px;
  color: #fff;
  background: var(--lavender-deep);
  box-shadow: 0 12px 28px rgba(124, 96, 155, 0.18);
  font-weight: 800;
}

.detail-shell {
  width: min(1240px, calc(100% - 40px));
}

.detail-hero,
.detail-section {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(246, 241, 253, 0.36)),
    rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 26px 74px rgba(78, 68, 90, 0.1);
  backdrop-filter: blur(20px) saturate(1.24);
  -webkit-backdrop-filter: blur(20px) saturate(1.24);
}

.detail-hero {
  padding: clamp(28px, 5vw, 62px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--lavender-deep);
  font-size: 14px;
  font-weight: 800;
}

.detail-back-outside {
  margin: 8px 0 18px;
  padding: 10px 16px;
  border: 1px solid rgba(124, 96, 155, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 30px rgba(82, 64, 104, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: var(--detail-heading-size);
  line-height: 1.14;
  text-align: center;
}

.detail-hero > p:not(.section-kicker) {
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  text-align: center;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.detail-metrics div,
.architecture-grid article {
  border: 1px solid rgba(124, 96, 155, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-metrics div {
  padding: 18px;
}

.detail-metrics strong {
  display: block;
  color: var(--lavender-deep);
  font-size: 30px;
  line-height: 1;
}

.detail-metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-section {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.detail-section-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.detail-section-heading h2 {
  margin: 0;
  font-size: var(--detail-heading-size);
  line-height: 1.16;
  text-align: center;
}

.detail-section-heading p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.architecture-grid article {
  padding: 18px;
}

.architecture-grid span,
.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--lavender-deep);
  background: rgba(200, 184, 223, 0.34);
  font-size: 12px;
  font-weight: 800;
}

.architecture-grid h3,
.sop-step-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.architecture-grid p,
.sop-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.sop-gallery {
  display: grid;
  gap: 18px;
}

.sop-step-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(124, 96, 155, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
}

.sop-step-card:has(figure:only-of-type) {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2fr);
}

.sop-step-card figure,
.result-showcase figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(124, 96, 155, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.sop-step-card img,
.result-showcase img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sop-step-card figure {
  align-self: start;
}

.sop-step-card figcaption,
.result-showcase figcaption {
  padding: 10px 12px;
  border-top: 1px solid rgba(124, 96, 155, 0.1);
  color: var(--muted);
  font-size: 13px;
}

.result-showcase {
  display: grid;
  gap: 16px;
}

.result-showcase figure {
  background: rgba(255, 255, 255, 0.64);
}

.result-showcase img {
  height: auto;
  object-fit: contain;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border-radius: 44px;
}

.project-card:nth-child(2) {
  border-radius: 58px 38px 46px 36px;
}

.project-visual {
  display: grid;
  place-items: center;
  min-height: 210px;
  color: var(--sage);
  background:
    linear-gradient(135deg, rgba(200, 184, 223, 0.34), rgba(204, 230, 200, 0.46)),
    radial-gradient(circle at 50% 50%, rgba(239, 224, 165, 0.72), transparent 42%);
  font-weight: 800;
}

.project-body {
  padding: 24px;
}

.project-body dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.project-body div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-body dt {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.project-body dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Project book shelf */
.project-book-section {
  min-height: calc(100vh - 110px);
  padding: clamp(44px, 7vw, 88px) 0 90px;
}

.project-book-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0 auto 42px;
  text-align: center;
}

.project-book-heading h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
}

.project-book-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.book-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
}

.book-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(128, 92, 52, 0.18);
  border-radius: 18px 34px 34px 18px;
  color: #372b24;
  background:
    linear-gradient(90deg, rgba(111, 75, 42, 0.24), transparent 10%),
    radial-gradient(circle at 70% 16%, rgba(125, 96, 155, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 241, 0.9), rgba(237, 226, 202, 0.78));
  box-shadow:
    inset 8px 0 20px rgba(93, 58, 32, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.8),
    0 30px 70px rgba(82, 64, 104, 0.16);
  isolation: isolate;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.book-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    url("assets/project-book-bg.jpg") center / cover no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(239, 224, 165, 0.18));
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.book-card::after {
  position: absolute;
  inset: 14px 18px 14px 44px;
  border: 1px solid rgba(128, 92, 52, 0.18);
  border-radius: 10px 24px 24px 10px;
  content: "";
  pointer-events: none;
}

.book-card:hover {
  box-shadow:
    inset 8px 0 20px rgba(93, 58, 32, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.8),
    0 38px 86px rgba(82, 64, 104, 0.22);
  transform: translateY(-8px) rotate(-0.7deg);
}

.book-card-alt:hover {
  transform: translateY(-8px) rotate(0.7deg);
}

.book-binding {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 34px;
  background:
    repeating-linear-gradient(180deg, rgba(86, 55, 35, 0.2) 0 2px, transparent 2px 16px),
    linear-gradient(90deg, rgba(86, 55, 35, 0.26), rgba(255, 255, 255, 0.1));
}

.book-binding::before,
.book-binding::after {
  position: absolute;
  left: 12px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(86, 55, 35, 0.26);
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.38);
}

.book-binding::before {
  top: 88px;
}

.book-binding::after {
  bottom: 88px;
}

.book-cover-scene {
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: min(46%, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.52), transparent 56%),
    url("assets/project-book-bg.jpg") center / cover no-repeat;
  filter: saturate(0.9);
  opacity: 0.48;
}

.book-cover-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: inherit;
  padding: 58px 54px 58px 78px;
  text-align: center;
}

.book-seal {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: rgba(124, 96, 155, 0.86);
  box-shadow: 0 12px 24px rgba(124, 96, 155, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.book-cover-copy h2 {
  margin: 0;
  max-width: 360px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.35;
}

.book-cover-copy p {
  max-width: 340px;
  margin: 18px 0 0;
  color: rgba(55, 43, 36, 0.68);
  line-height: 1.8;
}

.book-open-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1px solid rgba(128, 92, 52, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #5d4635;
  font-size: 13px;
  font-weight: 850;
}

.book-detail-main {
  padding-bottom: 80px;
}

.open-book-detail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(128, 92, 52, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(128, 92, 52, 0.16) 50%, transparent calc(50% + 1px)),
    linear-gradient(135deg, #fffaf0, #efe3c7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 30px 74px rgba(82, 64, 104, 0.15);
}

.open-book-detail::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    url("assets/project-book-bg.jpg") center / cover no-repeat,
    radial-gradient(circle at 50% 50%, rgba(124, 96, 155, 0.08), transparent 38%);
  opacity: 0.13;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.book-page {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding: clamp(34px, 5vw, 62px);
}

.book-page-left {
  box-shadow: inset -20px 0 34px rgba(96, 64, 32, 0.06);
}

.book-page-right {
  box-shadow: inset 20px 0 34px rgba(96, 64, 32, 0.06);
}

.book-page h1,
.book-page h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  line-height: 1.25;
}

.book-page h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.book-page h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.book-page p {
  color: rgba(55, 43, 36, 0.72);
  line-height: 1.85;
}

.book-note-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
}

.book-note-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(128, 92, 52, 0.18);
}

.book-note-list dt {
  color: #4c392d;
  font-weight: 850;
}

.book-note-list dd {
  margin: 8px 0 0;
  color: rgba(55, 43, 36, 0.72);
  line-height: 1.75;
}

.book-result-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin: 24px 0 18px;
  border: 1px dashed rgba(128, 92, 52, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  color: rgba(76, 57, 45, 0.62);
  font-weight: 850;
}

/* Project results page */
.project-results-page {
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 68px);
  margin: -34px calc(50% - 50vw) 0;
  padding: clamp(74px, 9vw, 128px) max(28px, calc((100vw - 1180px) / 2)) 92px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.24)),
    url("assets/1.jpg") center / cover no-repeat;
  isolation: isolate;
}

.project-results-page figcaption {
  text-align: center;
}

.project-results-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(243, 234, 255, 0.16));
  pointer-events: none;
}

.project-results-page::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    radial-gradient(circle, rgba(124, 96, 155, 0.11) 0 0.8px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 0.8px, transparent 1px);
  background-position: 0 0, 8px 10px;
  background-size: 16px 16px, 22px 22px;
  opacity: 0.22;
  pointer-events: none;
}

.project-stars span,
.project-result-divider span {
  position: absolute;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.82);
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.project-stars span:nth-child(1) {
  top: 12%;
  left: 12%;
}

.project-stars span:nth-child(2) {
  top: 18%;
  right: 18%;
  width: 18px;
  height: 18px;
}

.project-stars span:nth-child(3) {
  top: 48%;
  left: 7%;
  width: 10px;
  height: 10px;
}

.project-stars span:nth-child(4) {
  right: 8%;
  bottom: 20%;
  width: 11px;
  height: 11px;
}

.project-stars span:nth-child(5) {
  left: 50%;
  bottom: 10%;
  width: 9px;
  height: 9px;
}

.project-result-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
  max-width: 1080px;
  min-height: calc(100vh - 230px);
  margin: 0 auto;
}

.result-paper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 22px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(238, 231, 255, 0.32)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 24px 70px rgba(63, 65, 128, 0.12);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  min-height: clamp(220px, 28vh, 320px);
}

.result-paper::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 12% 18%, rgba(204, 230, 200, 0.18), transparent 25%),
    radial-gradient(circle at 88% 82%, rgba(125, 169, 211, 0.18), transparent 28%);
  pointer-events: none;
}

.result-paper-opd {
  margin-top: 0;
  align-content: start;
}

.result-paper-grpo {
  align-content: start;
}

.grpo-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.grpo-summary-left {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.grpo-summary-grid section,
.grpo-summary-left section {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.grpo-summary-grid > section {
  min-height: 100%;
}

.grpo-summary-grid h3 {
  margin: 0 0 10px;
  color: #5f7f58;
  font-size: 17px;
}

.grpo-summary-grid p,
.grpo-summary-grid li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.76;
}

.result-paper-heading strong,
.grpo-summary-grid strong {
  color: var(--ink);
  font-weight: 850;
}

.grpo-summary-grid p,
.grpo-summary-grid ul {
  margin: 0;
}

.grpo-summary-grid ul {
  padding-left: 18px;
}

.grpo-param-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.grpo-param-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(124, 96, 155, 0.1);
}

.grpo-param-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.grpo-param-list dt,
.grpo-param-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grpo-param-list dt {
  color: var(--ink);
  font-weight: 800;
}

.grpo-result-figures {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grpo-result-figures figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.grpo-result-figures img {
  display: block;
  width: 100%;
  height: auto;
}

.grpo-result-figures figcaption {
  padding: 10px 12px;
  border-top: 1px solid rgba(124, 96, 155, 0.1);
  color: var(--muted);
  font-size: 13px;
}

.opd-module-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.opd-module-grid section {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.opd-module-grid h3 {
  margin: 0 0 10px;
  color: #5f7f58;
  font-size: 17px;
}

.opd-module-grid p,
.opd-module-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.76;
}

.opd-module-grid p + p {
  margin-top: 10px;
}

.opd-loss-figure {
  margin: 14px 0 0;
}

.opd-loss-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(124, 96, 155, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.opd-module-grid dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.opd-module-grid dl div {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(124, 96, 155, 0.1);
}

.opd-module-grid dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.opd-module-grid dt {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.opd-wandb-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.opd-wandb-strip figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.opd-actor-figure {
  grid-row: 2;
}

.opd-wandb-strip img {
  display: block;
  width: 100%;
  height: auto;
}

.opd-wandb-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: rgba(77, 60, 96, 0.58);
  background:
    linear-gradient(135deg, rgba(204, 230, 200, 0.3), rgba(238, 231, 255, 0.22)),
    rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 850;
}

.opd-wandb-strip figcaption {
  padding: 10px 12px;
  border-top: 1px solid rgba(124, 96, 155, 0.1);
  color: var(--muted);
  font-size: 13px;
}

.project-results-page figure figcaption {
  color: var(--muted);
  text-align: center;
}

.project-results-page strong {
  color: var(--ink);
  font-weight: 850;
}

.result-paper-heading,
.result-paper-body {
  position: relative;
  z-index: 1;
}

.result-paper-heading {
  text-align: center;
}

.result-paper-heading span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 850;
}

.result-paper-heading h2 {
  max-width: 460px;
  margin: 0 auto;
  font-size: clamp(24px, 2.45vw, 32px);
  line-height: 1.2;
}

.result-paper-opd .result-paper-heading h2 {
  max-width: none;
  font-size: clamp(24px, 2.45vw, 32px);
  white-space: nowrap;
}

.result-paper-heading p {
  max-width: 440px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.result-paper-body {
  display: grid;
  gap: 18px;
}

.result-figure-placeholder {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(231, 241, 255, 0.18)),
    rgba(255, 255, 255, 0.18);
  color: rgba(77, 60, 96, 0.62);
  font-weight: 850;
}

.result-paper dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.result-paper dl div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.24);
}

.result-paper dt {
  color: var(--ink);
  font-weight: 850;
}

.result-paper dd {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-result-divider {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 34px;
}

.project-result-divider::before {
  position: absolute;
  top: 50%;
  right: 10%;
  left: 10%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
}

.project-result-divider span {
  position: relative;
  display: block;
  margin: 0 12px;
}

.project-result-divider span:nth-child(1) {
  transform: translateX(-24px);
}

.project-result-divider span:nth-child(2) {
  width: 17px;
  height: 17px;
}

.project-result-divider span:nth-child(3) {
  transform: translateX(24px);
}

/* Open-book project landing */
.project-open-book {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(132, 98, 58, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(112, 82, 48, 0.07), transparent 5%, transparent 95%, rgba(112, 82, 48, 0.07)),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(100, 72, 42, 0.2) 50%, transparent calc(50% + 1px)),
    linear-gradient(135deg, #fffaf0, #efe5ca);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 36px 0 52px rgba(116, 82, 46, 0.06),
    inset -36px 0 52px rgba(116, 82, 46, 0.06),
    0 34px 86px rgba(82, 64, 104, 0.16);
}

.project-open-book::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.62), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(128, 92, 52, 0.06), transparent 34%),
    repeating-linear-gradient(0deg, rgba(104, 83, 56, 0.045) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(104, 83, 56, 0.03) 0 1px, transparent 1px 22px);
  opacity: 0.72;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.project-open-book::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 24px);
  width: 48px;
  content: "";
  background:
    radial-gradient(ellipse at center, rgba(80, 56, 34, 0.24), transparent 60%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  pointer-events: none;
}

.project-book-page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 560px;
  color: #27232d;
  transition: background 220ms ease, transform 220ms ease;
}

.project-book-page::before {
  position: absolute;
  top: 34px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(124, 96, 155, 0.16);
  border-radius: 50%;
  color: rgba(124, 96, 155, 0.18);
  content: "实验";
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 700;
  transform: rotate(-14deg);
}

.project-book-page::after {
  position: absolute;
  bottom: 28px;
  color: rgba(93, 70, 45, 0.42);
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 0;
}

.project-book-page-left {
  box-shadow: inset -28px 0 46px rgba(116, 82, 46, 0.07);
}

.project-book-page-left::before {
  left: 48px;
}

.project-book-page-left::after {
  left: 54px;
  content: "第 01 页";
}

.project-book-page-right {
  box-shadow: inset 28px 0 46px rgba(116, 82, 46, 0.07);
}

.project-book-page-right::before {
  right: 48px;
}

.project-book-page-right::after {
  right: 54px;
  content: "第 02 页";
}

.project-book-page:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.project-open-book .book-cover-copy {
  padding: clamp(42px, 5vw, 68px);
}

.project-open-book .book-cover-copy h2 {
  color: #2f2924;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.54);
}

.project-open-book .book-cover-copy p {
  color: rgba(67, 52, 38, 0.68);
}

.project-open-book .book-open-link {
  border-color: rgba(128, 92, 52, 0.2);
  color: #5b4534;
  background: rgba(255, 255, 255, 0.58);
}

/* Pinned paper result detail */
.pinned-paper-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 46px);
  padding: clamp(38px, 5vw, 70px);
  border: 1px solid rgba(128, 92, 52, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 252, 241, 0.96), rgba(240, 232, 211, 0.9)),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.86), transparent 34%);
  box-shadow:
    0 32px 70px rgba(82, 64, 104, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: rotate(-0.35deg);
}

.pinned-paper-detail::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.62), transparent 26%),
    radial-gradient(circle at 76% 72%, rgba(128, 92, 52, 0.07), transparent 32%),
    repeating-linear-gradient(0deg, rgba(104, 83, 56, 0.045) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(104, 83, 56, 0.03) 0 1px, transparent 1px 22px);
  opacity: 0.72;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.paper-pin {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(135deg, #8970a5, #5d4a78);
  box-shadow:
    0 10px 20px rgba(64, 48, 86, 0.24),
    inset 0 -5px 10px rgba(34, 23, 48, 0.2);
  transform: translateX(-50%);
}

.paper-content {
  position: relative;
  z-index: 1;
}

.paper-content h1,
.paper-content h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  color: #2b2530;
}

.paper-content h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.28;
}

.paper-content h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.paper-content p,
.paper-content dd {
  color: rgba(55, 43, 36, 0.72);
  line-height: 1.85;
}

.pinned-paper-detail .book-seal {
  margin-bottom: 20px;
}

.tag-groups {
  display: grid;
  gap: 14px;
}

.tag-groups div {
  display: grid;
  grid-template-columns: minmax(170px, 0.56fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 96, 155, 0.12);
}

.tag-groups div:first-child {
  padding-top: 0;
  border-top: 0;
}

.tag-title,
.honor-type {
  color: var(--lavender-deep) !important;
  font-size: 13px !important;
  font-weight: 800;
}

.tag-groups p {
  margin: 0;
  color: #6f6879;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 760;
  line-height: 1.45;
}

.honor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.honor-column,
.english-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 132px;
}

.english-column {
  padding-left: 24px;
  border-left: 1px solid rgba(124, 96, 155, 0.14);
}

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

.honor-grid strong,
.honor-column span:not(.honor-type),
.english-column p {
  margin: 0;
  color: #6f6879;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 760;
  line-height: 1.45;
}

.honor-type {
  margin: 0 0 8px !important;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 28px, 720px);
  }

  .site-header {
    align-items: stretch;
    border-radius: 0;
  }

  .nav-pill {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-pill a {
    min-width: 0;
    padding-inline: 8px;
  }

  .grpo-summary-left {
    grid-template-rows: none;
  }

  .hero-section,
  .section-heading,
  .project-grid,
  .grpo-summary-grid,
  .grpo-result-figures,
  .opd-module-grid,
  .opd-wandb-strip,
  .profile-facts,
  .impact-strip,
  .star-board {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .architecture-grid,
  .detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-section-heading,
  .sop-step-card {
    grid-template-columns: 1fr;
  }

  .tag-groups div,
  .honor-grid {
    grid-template-columns: 1fr;
  }

  .english-column {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(124, 96, 155, 0.14);
  }

  .fact-item:nth-child(2),
  .fact-item:nth-child(3) {
    transform: none;
    width: 100%;
    margin-left: 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 18px;
  }

  .profile-panel {
    order: 2;
  }

  .about-copy {
    order: 1;
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .about-copy::after {
    inset: -12px -12px -18px -12px;
    transform: rotate(-1.4deg) translate(-8px, 12px);
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .book-shelf,
  .open-book-detail,
  .project-open-book,
  .pinned-paper-detail,
  .result-paper,
  .result-paper-opd,
  .result-paper dl {
    grid-template-columns: 1fr;
  }

  .result-paper-opd .result-paper-heading,
  .result-paper-opd .result-paper-body {
    order: initial;
  }

  .result-paper-opd .result-paper-heading h2 {
    white-space: normal;
  }

  .project-hero {
    min-height: 300px;
    border-radius: 0 0 28px 28px;
  }

  .book-card {
    min-height: 430px;
  }

  .open-book-detail {
    background: linear-gradient(135deg, #fffaf0, #efe3c7);
  }

  .project-open-book {
    min-height: auto;
    background: linear-gradient(135deg, rgba(235, 248, 255, 0.88), rgba(244, 239, 255, 0.8));
  }

  .project-book-page {
    min-height: 390px;
  }

  .project-open-book::after {
    display: none;
  }

  .pinned-paper-detail {
    transform: none;
  }

  .book-page {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  body::before,
  body::after {
    display: none;
  }

  .about-copy h1 {
    font-size: 38px;
  }

  .about-copy {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .about-copy::before,
  .about-copy::after {
    border-radius: 24px;
  }

  .content-section {
    padding: 70px 0;
  }

  .timeline-card,
  .project-body,
  .fact-item {
    padding: 18px;
  }

  .workflow-grid,
  .architecture-grid,
  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .workflow-grid article {
    min-height: auto;
  }

  .education-route {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .route-line {
    width: 128px;
  }

  .project-book-heading h1 {
    font-size: 34px;
  }

  .book-cover-copy {
    padding: 42px 28px 42px 60px;
  }

  .book-cover-copy h2 {
    font-size: 27px;
  }
}
/* Internship landing */
.internship-section {
  position: relative;
  padding: 8px 0 92px;
}

.internship-hero {
  position: relative;
  left: 50%;
  width: min(100vw, 1680px);
  min-height: clamp(270px, 33.4vw, 500px);
  margin-left: calc(min(100vw, 1680px) / -2);
  overflow: hidden;
  border: 0;
  border-radius: 0 0 34px 34px;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.66),
    0 24px 70px rgba(82, 64, 104, 0.12);
  isolation: isolate;
}

.internship-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) brightness(1.08);
  opacity: 0.82;
}

.internship-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(43, 36, 48, 0.32), transparent 22%, transparent 78%, rgba(255, 244, 226, 0.38)),
    linear-gradient(180deg, rgba(255, 251, 246, 0.18), rgba(255, 247, 236, 0.34) 70%, rgba(243, 234, 255, 0.96));
}

.internship-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(90deg, rgba(243, 234, 255, 0.5), transparent 9%, transparent 91%, rgba(243, 234, 255, 0.58));
  pointer-events: none;
}

.internship-hero-copy {
  display: grid;
  justify-items: center;
  align-content: center;
  width: min(1120px, calc(100% - 44px));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) 0;
  color: #fff;
  text-align: center;
  text-shadow:
    0 2px 16px rgba(50, 38, 58, 0.28),
    0 1px 2px rgba(50, 38, 58, 0.18);
}

.internship-hero-copy h1 {
  margin: 0;
  font-size: clamp(26px, 3.15vw, 44px);
  line-height: 1.18;
  font-weight: 850;
  white-space: nowrap;
}

.internship-hero-copy p:last-child {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 650;
  line-height: 1.7;
}

.wave-divider {
  position: relative;
  z-index: 2;
  height: 70px;
  margin: -42px calc(50% - 50vw) -8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 1280 80'%3E%3Cpath d='M0 39 C130 5 257 75 402 36 C546 -3 694 18 842 42 C1010 69 1137 27 1280 22 L1280 80 L0 80 Z' fill='%23f3eaff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.wave-divider::after {
  position: absolute;
  inset: 24px 0 auto;
  height: 28px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.78;
}

.internship-card-deck {
  display: flex;
  gap: 14px;
  align-items: stretch;
  height: clamp(260px, 31vw, 350px);
  margin: 42px auto 0;
}

.internship-card {
  position: relative;
  display: flex;
  flex: 0.62;
  min-width: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(246, 241, 253, 0.08)),
    linear-gradient(160deg, #2b2434, #8069a0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 22px 54px rgba(72, 55, 92, 0.18);
  transition:
    flex 520ms cubic-bezier(0.2, 0.86, 0.22, 1),
    transform 240ms ease,
    box-shadow 240ms ease;
}

.internship-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(246, 241, 253, 0.08)),
    linear-gradient(160deg, #2c3340, #789473);
}

.internship-card:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(246, 241, 253, 0.08)),
    linear-gradient(160deg, #272430, #b99b62);
}

.internship-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.3), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(204, 230, 200, 0.18), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(20, 16, 27, 0.42));
  opacity: 0.86;
}

.internship-card.active,
.internship-card-deck:hover .internship-card:hover {
  flex: 3.4;
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 30px 76px rgba(72, 55, 92, 0.24);
}

.internship-card-deck:hover .internship-card:not(:hover) {
  flex: 0.5;
  transform: translateY(0);
}

.internship-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  width: min(760px, 100%);
  margin: auto;
  padding: 38px clamp(28px, 5vw, 64px);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 240ms ease, transform 360ms ease;
}

.internship-card.active .internship-card-content,
.internship-card:hover .internship-card-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 120ms;
}

.internship-card-deck:hover .internship-card .internship-card-content {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition-delay: 0ms;
}

.internship-card-deck:hover .internship-card:hover .internship-card-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 120ms;
}

.internship-card-content .block-label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.internship-card-content h2 {
  grid-column: 1 / -1;
  margin: 0;
  max-width: none;
  overflow: hidden;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internship-card-content p:not(.block-label) {
  max-width: 440px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.internship-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.internship-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.internship-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  margin-top: 24px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #4d3c60;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 28px rgba(24, 18, 34, 0.16);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.internship-card:hover .internship-detail-button {
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(24, 18, 34, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .internship-section {
    padding-top: 0;
  }

  .internship-hero {
    min-height: 300px;
    border-radius: 0 0 28px 28px;
  }

  .internship-hero-copy {
    width: min(100% - 32px, 640px);
    padding: 32px 0;
  }

  .wave-divider {
    height: 54px;
    margin-top: -34px;
  }

  .internship-card-deck {
    display: grid;
    height: auto;
    gap: 16px;
    margin-top: 32px;
  }

  .internship-card,
  .internship-card.active,
  .internship-card-deck:hover .internship-card:hover,
  .internship-card-deck:hover .internship-card:not(:hover) {
    min-height: 230px;
    transform: none;
  }

  .internship-card-content {
    opacity: 1;
    transform: none;
    padding: 30px 22px;
  }

  .internship-detail-button {
    justify-self: center;
  }

  .internship-card-deck:hover .internship-card .internship-card-content,
  .internship-card-deck:hover .internship-card:hover .internship-card-content {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }
}

@media (max-width: 520px) {
  .internship-hero {
    min-height: 250px;
  }

  .internship-hero-copy h1 {
    font-size: 27px;
    white-space: normal;
  }

  .internship-card,
  .internship-card.active,
  .internship-card-deck:hover .internship-card:hover,
  .internship-card-deck:hover .internship-card:not(:hover) {
    min-height: 250px;
  }

  .internship-card-content {
    padding: 28px 20px 28px 58px;
  }

  .internship-card-content h2 {
    font-size: 25px;
    white-space: normal;
  }
}

/* Self-check project detail polish */
.selfcheck-detail-page {
  --selfcheck-heading-size: var(--detail-heading-size);
}

.selfcheck-detail-page .detail-hero {
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  text-align: center;
}

.selfcheck-detail-page .detail-hero::before,
.selfcheck-detail-page .detail-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 12%, rgba(204, 230, 200, 0.2), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(239, 224, 165, 0.16), transparent 24%);
  pointer-events: none;
}

.selfcheck-detail-page .detail-hero h1 {
  max-width: 860px;
  font-size: var(--selfcheck-heading-size);
  line-height: 1.08;
  text-align: center;
}

.selfcheck-detail-page .detail-hero > p:not(.section-kicker) {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.8;
  text-align: center;
}

.selfcheck-detail-page .detail-metrics {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.selfcheck-detail-page .detail-metrics div {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 122px;
  padding: 18px 14px;
  text-align: center;
}

.selfcheck-detail-page .detail-metrics strong {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.12;
}

.selfcheck-detail-page .detail-section {
  overflow: hidden;
}

.selfcheck-detail-page .detail-section-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.selfcheck-detail-page .detail-section-heading h2 {
  font-size: var(--selfcheck-heading-size);
  line-height: 1.16;
  text-align: center;
}

.selfcheck-detail-page .detail-section-heading p:last-child {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

.selfcheck-detail-page .architecture-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.selfcheck-detail-page .architecture-grid article {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 190px;
  padding: 22px 18px;
  text-align: center;
}

.selfcheck-detail-page .architecture-grid h3,
.selfcheck-detail-page .sop-step-card h3,
.selfcheck-detail-page .star-board h4 {
  font-size: 17px;
  text-align: center;
}

.selfcheck-detail-page .architecture-grid p,
.selfcheck-detail-page .sop-step-card p {
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
}

.selfcheck-detail-page .sop-step-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(246, 241, 253, 0.28)),
    rgba(255, 255, 255, 0.26);
}

.selfcheck-detail-page .sop-step-card > div {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.selfcheck-detail-page .star-board {
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.selfcheck-detail-page .star-board section {
  border: 1px solid rgba(124, 96, 155, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.selfcheck-detail-page .star-board p {
  font-size: 14px;
  line-height: 1.78;
}

@media (max-width: 820px) {
  .selfcheck-detail-page .detail-hero h1 {
    font-size: var(--selfcheck-heading-size);
  }

  .selfcheck-detail-page .detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selfcheck-detail-page .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .selfcheck-detail-page .detail-metrics,
  .selfcheck-detail-page .architecture-grid {
    grid-template-columns: 1fr;
  }
}
