:root {
  --ink: #17191f;
  --muted: #626873;
  --line: #e7e9ee;
  --soft: #f8f9fb;
  --lift: #ef767a;
  --lift-soft: #fff0f0;
  --see: #3e9fbd;
  --see-soft: #edf9fc;
  --act: #9a6bb8;
  --act-soft: #f7f0fb;
  --accent: #ff715b;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #1684aa; }
.hero { position: relative; background: radial-gradient(circle at 50% -20%, #f5fbfd 0, #fff 48%); }
.hero-body { padding: 2.8rem 1rem 2.2rem; }

/* A playful trophy in the existing top padding; no layout changes. */
.reviewer-playground { position: absolute; inset: 0 0 auto; z-index: 6; height: 44px; overflow: hidden; pointer-events: none; }
.reviewer-trophy { --reviewer-hop: 3px; position: absolute; top: 2px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid #eedbad; border-radius: 999px; background: #fffaf0; color: #88631f; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 22px; white-space: nowrap; box-shadow: 0 2px 8px rgba(165, 122, 31, .08); animation: reviewer-bounce 70s linear infinite; will-change: transform; cursor: pointer; pointer-events: auto; }
.reviewer-trophy:focus-visible { outline: 2px solid #d3a94c; outline-offset: 2px; }
.reviewer-trophy.is-stopped, .reviewer-trophy.is-stopped .reviewer-spark { animation-play-state: paused; }
.reviewer-confetti { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.reviewer-confetti-piece { position: absolute; top: -22px; width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation: reviewer-confetti-fall var(--fall-duration) ease-in var(--fall-delay) forwards; }
.reviewer-confetti-flower { width: auto; height: auto; background: none !important; font-size: 17px; }
@keyframes reviewer-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  8%, 80% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--fall-drift), var(--fall-height), 0) rotate(var(--fall-spin)); }
}
.reviewer-spark { color: #d3a94c; animation: reviewer-twinkle 2.4s ease-in-out infinite; }
@keyframes reviewer-bounce {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  12.5%, 87.5% { transform: translate3d(calc(25vw - 25% - 6px), var(--reviewer-hop), 0); }
  25%, 75% { transform: translate3d(calc(50vw - 50% - 12px), 0, 0) rotate(1deg); }
  37.5%, 62.5% { transform: translate3d(calc(75vw - 75% - 18px), var(--reviewer-hop), 0); }
  50% { transform: translate3d(calc(100vw - 100% - 24px), 0, 0) rotate(-1deg); }
}
@keyframes reviewer-twinkle { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@media screen and (max-width: 768px) {
  .reviewer-playground { height: 32px; }
  .reviewer-trophy { --reviewer-hop: 0px; top: 2px; padding: 2px 8px; gap: 5px; font-size: 12px; line-height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .reviewer-trophy { animation: none; left: auto; right: 12px; will-change: auto; }
  .reviewer-spark { animation: none; }
  .reviewer-confetti-piece { top: 20px; animation-name: reviewer-confetti-fade; animation-duration: .8s; animation-delay: 0s; }
}
@keyframes reviewer-confetti-fade { 0%, 100% { opacity: 0; } 40% { opacity: .8; } }

.venue-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .4rem .82rem;
  border: 1px solid #e9d9b5;
  border-radius: 999px;
  color: #6f5520;
  background: #fffaf0;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.publication-title {
  max-width: 1180px;
  margin: 0 auto 1.35rem !important;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 44.5px !important;
  line-height: 1.18;
  letter-spacing: -1.2px;
}

.shakefont {
  display: inline-block;
  font-family: "Shantell Sans", "Noto Sans", sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  transform-origin: 50% 100%;
}

.lift-word { color: var(--lift); }
.see-word { color: var(--see); }
.act-word { color: var(--act); }
.title-punctuation, .title-rest { color: #111; font-weight: 700; }

@keyframes bounce1 { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-20px) rotate(-2deg); } 60% { transform: translateY(-10px) rotate(1deg); } }
@keyframes bounce2 { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-30px) rotate(2deg); } 60% { transform: translateY(-15px) rotate(-1deg); } }
@keyframes bounce3 { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-25px) rotate(-2deg); } 60% { transform: translateY(-5px) rotate(1deg); } }
.word1 { animation: bounce1 1s infinite; }
.word2 { animation: bounce2 2s infinite; }
.word3 { animation: bounce3 3s infinite; }

.publication-authors { font-family: "Google Sans", "Noto Sans", sans-serif; line-height: 1.75; }
.author-block { display: inline-block; }
.author-name { color: hsl(204, 86%, 43%); font-weight: 600; }
.author-note { margin-top: .05rem; color: var(--muted); font-size: .95rem !important; }
.affiliations { margin-top: .05rem; color: #31343b; }
.publication-links { display: flex; justify-content: center; gap: .45rem; margin-top: 1rem; flex-wrap: wrap; }
.publication-links .button { transition: transform .2s ease, box-shadow .2s ease; }
.publication-links .button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22, 25, 31, .14); }

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 1.55rem;
  padding: .82rem 1rem;
  border-top: 1px solid rgba(231, 233, 238, .8);
  border-bottom: 1px solid rgba(231, 233, 238, .9);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
}

.section-nav a { color: #444a55; font-size: .9rem; font-weight: 700; }
.section-nav a:hover { color: var(--see); }
.content-section { padding: 5.2rem 1.5rem; }
.soft-section { background: var(--soft); }

.section-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.centered-heading { justify-content: center; text-align: left; }
.split-heading { justify-content: space-between; }
.section-heading .title { margin: 0 !important; color: var(--ink); font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.035em; }
.eyebrow { margin: 0 0 .25rem !important; color: #7a7f89; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.section-icon {
  position: relative;
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .035);
}
.section-icon::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; right: -3px; top: 8px; background: currentColor; opacity: .6; animation: floatDot 2.8s ease-in-out infinite; }
.icon-lift { color: var(--lift); background: var(--lift-soft); }
.icon-see { color: var(--see); background: var(--see-soft); }
.icon-act { color: var(--act); background: var(--act-soft); }
@keyframes floatDot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(11px); } }

.key-points, .micro-points, .stage-list { margin: 0; padding: 0; list-style: none; }
.key-points li, .micro-points li, .stage-list li { position: relative; padding-left: 1.35rem; }
.key-points li::before, .micro-points li::before, .stage-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--lift), var(--act)); box-shadow: 0 0 0 4px rgba(239, 118, 122, .1); }
.overview-points { max-width: 900px; margin: 0 auto 2.25rem; display: grid; gap: .65rem; color: #3f444d; font-size: 1.02rem; line-height: 1.65; }
.compact-points { max-width: 880px; margin: 0 auto 2.2rem; display: grid; gap: .48rem; color: #4f5560; line-height: 1.58; }
.left-points { margin-left: 0; }
.micro-points { margin-top: .85rem; color: #616771; font-size: .9rem; line-height: 1.5; }
.micro-points li::before { width: 6px; height: 6px; top: .65em; box-shadow: none; }

.comparison-board { display: grid; gap: 1rem; }
.comparison-lane { padding: 1.3rem 1.45rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 36px rgba(29, 35, 47, .055); }
.prior-lane { opacity: .78; }
.lsa-lane { border-color: #d5e9f0; background: linear-gradient(110deg, #fff 0, #f7fcfd 100%); }
.lane-label { margin-bottom: 1rem; color: #4a505a; font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .075em; }
.lsa-lane .lane-label { color: #237e9a; }
.flow-row { display: flex; align-items: center; gap: .8rem; }
.flow-node { display: flex; min-height: 76px; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: .38rem; padding: .75rem; border: 1px solid #e4e7ec; border-radius: 16px; background: #fff; text-align: center; font-size: .9rem; font-weight: 700; }
.flow-node i { color: #69717d; font-size: 1.25rem; }
.muted-node { background: #f5f6f8; }
.accent-node { border-color: #bfe1eb; background: var(--see-soft); }
.accent-node i { color: var(--see); }
.flow-arrow { color: #a7acb4; }
.knowledge-stack { display: grid; flex: 1.35; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.knowledge-stack span { display: flex; min-height: 76px; flex-direction: column; align-items: center; justify-content: center; gap: .36rem; padding: .6rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #dfeaf0; color: #39414c; text-align: center; font-size: .82rem; font-weight: 700; }
.knowledge-stack i { color: var(--see); font-size: 1.05rem; }

.pipeline-shell { display: grid; grid-template-columns: 1fr 44px 1.7fr 44px 1fr; align-items: stretch; gap: .6rem; }
.pipeline-stage { position: relative; overflow: hidden; padding: 1.35rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 35px rgba(24, 28, 38, .05); }
.pipeline-stage h3 { margin: .8rem 0 1rem; color: #252932; font-size: 1.12rem; font-weight: 800; }
.stage-topline { display: flex; justify-content: space-between; align-items: center; color: #9298a3; }
.stage-topline i { font-size: 1.2rem; }
.stage-number { color: #a6abb5; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.stage-list { display: grid; gap: .65rem; color: #545a65; font-size: .9rem; }
.stage-list li::before { width: 5px; height: 5px; top: .7em; box-shadow: none; }
.signal-row { display: flex; gap: 7px; margin-top: 1.35rem; }
.signal-row span { width: 9px; height: 9px; border-radius: 3px; background: #b9dce7; animation: signalFlow 2.1s ease-in-out infinite; }
.signal-row span:nth-child(2) { animation-delay: .15s; }.signal-row span:nth-child(3) { animation-delay: .3s; }.signal-row span:nth-child(4) { animation-delay: .45s; }.signal-row span:nth-child(5) { animation-delay: .6s; }
@keyframes signalFlow { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-6px); opacity: 1; } }
.pipeline-connector { display: flex; align-items: center; color: #abb0b8; }
.pipeline-connector span { flex: 1; height: 1px; background: #d5d8de; }
.pipeline-connector i { font-size: .7rem; }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.phase-card { display: flex; min-height: 145px; flex-direction: column; justify-content: space-between; padding: 1rem; border-radius: 16px; }
.phase-card strong { font-family: "Shantell Sans", "Noto Sans", sans-serif; font-size: 1.35rem; }
.phase-card span { color: #535a65; font-size: .82rem; line-height: 1.45; }
.lift-card { background: var(--lift-soft); }.lift-card strong { color: var(--lift); }
.see-card { background: var(--see-soft); }.see-card strong { color: var(--see); }
.act-card { background: var(--act-soft); }.act-card strong { color: var(--act); }
.control-orbit { position: absolute; right: 1rem; bottom: .7rem; display: grid; width: 56px; height: 56px; place-items: center; color: var(--act); font-size: 1.15rem; }
.control-orbit span { position: absolute; inset: 0; border: 1px dashed #c9aed9; border-radius: 50%; animation: orbitSpin 7s linear infinite; }
.control-orbit span::after { content: ""; position: absolute; top: -3px; left: 25px; width: 6px; height: 6px; border-radius: 50%; background: var(--act); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.objective-card { margin-top: 1rem; padding: 1.35rem 1.5rem; border: 1px solid #e5e7ec; border-radius: 22px; background: #fff; }
.objective-title { display: flex; align-items: center; gap: .65rem; color: #4d535d; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.objective-title i { color: var(--act); }
.formula { overflow-x: auto; padding: .7rem 0 .25rem; color: #20232b; text-align: center; font-size: 1.03rem; }
.inline-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; color: #555c67; font-size: .88rem; line-height: 1.5; }

.science-figure { margin: 0; }
.paper-figure { margin-top: 1.2rem; }
.paper-source-crop { position: relative; overflow: hidden; width: 100%; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 14px 34px rgba(25, 32, 44, .065); }
.paper-source-crop img { position: absolute; max-width: none; width: auto; }
.comparison-source-crop { max-width: 820px; margin-inline: auto; aspect-ratio: 1.14 / 1; }
.comparison-source-crop img { height: 200%; transform: translate(-13.5%, -12.4%); }
.comparison-animation { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.architecture-animation { display: block; width: 100%; max-width: 960px; height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.architecture-source-crop { aspect-ratio: 1.69 / 1; }
.architecture-source-crop img { height: 119%; transform: translate(-7.8%, -8.8%); }
.attention-crop { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4.3 / 1; border-radius: 20px; background: #f8f8fb; box-shadow: 0 14px 34px rgba(25, 32, 44, .08); }
.attention-crop img { position: absolute; width: 114%; max-width: none; height: auto; transform: translate(-6.2%, -34.8%); }
.science-figure figcaption { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: .9rem; color: #6d727c; font-size: .88rem; }
.caption-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--lift), var(--act)); }

.novelty-badge { display: inline-flex; align-items: center; gap: .42rem; margin-bottom: .62rem; padding: .38rem .68rem; border: 1px solid #ecdca8; border-radius: 999px; color: #7f6218; background: #fff9e8; font-size: .74rem; font-weight: 800; letter-spacing: .035em; }
.novelty-badge i { color: #e6b534; animation: starPulse 2.4s ease-in-out infinite; }
@keyframes starPulse { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.14) rotate(7deg); } }

.formula-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1.5rem; }
.formula-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .85rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.formula-step-index { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #237e9a; background: var(--see-soft); font-size: .82rem; font-weight: 800; }
.formula-step-body { min-width: 0; }
.formula-step h3 { margin: .22rem 0 .45rem; color: #2c313a; font-size: .97rem; font-weight: 800; }
.formula-step p { position: relative; margin: .45rem 0 0; padding-left: 1rem; color: #666d78; font-size: .84rem; line-height: 1.5; }
.formula-step p::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--see); }
.structural-step { grid-column: 1 / -1; background: linear-gradient(100deg, #fff 0, #fbf8fd 100%); }
.small-formula { padding: .15rem 0; color: #20242c; font-size: clamp(.72rem, 1.28vw, .92rem); text-align: left; }
mjx-container[jax="SVG"][display="true"] { max-width: 100%; margin: .55rem 0 !important; overflow-x: auto; overflow-y: hidden; }

.insight-panel { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; margin-top: .9rem; padding: 1.15rem 1.25rem; border: 1px solid #eedfb6; border-radius: 18px; background: #fffaf0; }
.insight-title { display: flex; align-items: flex-start; gap: .5rem; color: #7f6218; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.insight-title i { margin-top: .18rem; color: #e3ae24; }
.insight-panel .key-points { display: grid; gap: .5rem; color: #545962; font-size: .86rem; line-height: 1.55; }
.insight-panel .key-points li::before { background: #d6a32d; box-shadow: 0 0 0 4px rgba(214, 163, 45, .12); }
#see-phase .insight-claim { margin: 0; color: #70551d; font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
#see-phase .insight-claim strong { color: #a16d0d; }

.full-real-world-figure { margin-bottom: 1.2rem; padding: .7rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(25, 32, 44, .055); }
.full-real-world-figure > img { display: block; width: 100%; height: auto; border-radius: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1rem; }
.metric-card { display: flex; min-height: 120px; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: center; }
.metric-value { color: #222630; font-size: 2rem; font-weight: 800; letter-spacing: -.05em; }
.metric-label { margin-top: .25rem; color: #6f7580; font-size: .79rem; line-height: 1.35; }
.scaling-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.chart-card { padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.chart-heading, .table-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.chart-heading h3, .table-title-row h3 { margin: 0; color: #262a33; font-size: 1.05rem; font-weight: 800; }
.chart-trend, .chart-legend, .best-chip { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .35rem .62rem; border-radius: 999px; background: var(--lift-soft); color: #b64d53; font-size: .72rem; font-weight: 800; }
.chart-legend { background: #f5f6f8; color: #636a75; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lift); }
.chart-legend i:nth-of-type(2) { margin-left: .25rem; background: #f5b4b4; }
.scaling-chart { display: block; width: 100%; height: auto; margin-top: .5rem; }
.grid-lines line { stroke: #e4e6ea; stroke-width: 1; }
.axis-labels text { fill: #7b818b; font-size: 13px; }
.ours-line, .baseline-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.ours-line { stroke: var(--lift); }.baseline-line { stroke: #f4b2b3; stroke-dasharray: 6 7; }
.ours-points circle { fill: var(--lift); }.baseline-points circle { fill: #f4b2b3; }

.real-world-strip { display: grid; grid-template-columns: 1.65fr .65fr; gap: 1rem; margin-bottom: 1rem; }
.photo-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.panel-label { display: flex; align-items: center; gap: .55rem; padding: .78rem 1rem; color: #4d535e; font-size: .82rem; font-weight: 800; }
.panel-label i { color: var(--see); }
.source-crop { position: relative; overflow: hidden; width: 100%; background: #f5f5f6; }
.source-crop img { position: absolute; max-width: none; }
.demo-source-crop { aspect-ratio: 1.65 / 1; }
.demo-source-crop img { height: 100%; width: auto; transform: translate(-25.3%, -8.2%); }
.ood-source-crop { aspect-ratio: .78 / 1; }
.ood-source-crop img { height: 135%; width: auto; transform: translate(-70.2%, -15.6%); }

.table-card { margin: 1rem 0 1.4rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.best-chip { background: #fff7df; color: #8b6714; }
.table-scroll { overflow-x: auto; margin-top: 1rem; }
.results-table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; color: #444a54; font-size: .86rem; }
.results-table th, .results-table td { padding: .75rem .72rem; border-bottom: 1px solid #eceef2; text-align: center; }
.results-table th:first-child { text-align: left; }
.results-table thead th { color: #777d87; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.results-table tbody th { color: #30343c; font-weight: 700; }
.ours-row th, .ours-row td { border-bottom-color: #d8c4e5; background: #faf6fc; color: #6f4d85; }
.ours-row th:first-child { border-radius: 11px 0 0 11px; }.ours-row td:last-child { border-radius: 0 11px 11px 0; }

.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.demo-item { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 25px rgba(27, 33, 45, .06); transition: transform .2s ease, box-shadow .2s ease; }
.demo-item:hover { transform: translateY(-3px); box-shadow: 0 15px 32px rgba(27, 33, 45, .11); }
.demo-item video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f2f3f5; cursor: pointer; }
.demo-caption { display: flex; align-items: center; gap: .55rem; padding: .82rem .95rem; color: #3f444d; font-size: .86rem; font-weight: 700; }
.demo-caption i { color: var(--act); }

.bibtex-block { padding: 3rem 1.5rem 3.5rem; }
.bibtex-heading { display: flex; align-items: center; justify-content: space-between; }
.bibtex-heading .title { margin: 0 !important; font-size: 1.7rem; }
.bibtex-heading .button { display: inline-flex; gap: .4rem; }
.bibtex-block pre { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #f7f8fa; }
.footer { padding: 2rem 1rem !important; background: #fafafa !important; }
.footer-credit { display: flex; align-items: center; justify-content: center; gap: .5rem; color: #737985; font-size: .84rem; }
.back-to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 10; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #e2e5e9; border-radius: 50%; background: rgba(255,255,255,.92); color: #555b65; box-shadow: 0 8px 20px rgba(28, 33, 44, .1); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.visitor-welcome[hidden] { display: none; }
.hero .hero-body { padding-top: 6rem; }
.visitor-calendar { position: absolute; top: 46px; right: 20px; z-index: 7; width: 100px; padding-bottom: 7px; border: 1px solid #dce7ec; border-radius: 11px; background: #fff; box-shadow: 0 5px 0 -2px #edf3f6, 0 8px 0 -3px #dfe9ee, 0 12px 24px rgba(44, 87, 106, .1); }
.visitor-calendar::before, .visitor-calendar::after { content: ""; position: absolute; top: -5px; z-index: 2; width: 5px; height: 12px; border: 1px solid #abbfc9; border-radius: 4px; background: #dce7ed; }
.visitor-calendar::before { left: 23px; }
.visitor-calendar::after { right: 23px; }
.visitor-calendar-heading { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 13px 3px 7px; border-radius: 10px 10px 0 0; background: #e9f6fa; color: #377e98; font-size: .55rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.visitor-calendar-heading i { font-size: .75rem; }
.visitor-calendar-pages { position: relative; height: 54px; margin: 0 5px; perspective: 600px; }
.visitor-calendar-number, .visitor-calendar-flip { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 0 0 6px 6px; background: linear-gradient(#fff 49%, #eef2f5 50%, #fff 52%); color: #2d657d; font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.visitor-calendar-flip { display: none; transform-origin: center top; backface-visibility: hidden; }
.visitor-calendar.is-flipping .visitor-calendar-flip { display: grid; animation: calendar-page-turn .7s ease-in-out both; }
.visitor-calendar[data-digits="4"] .visitor-calendar-number, .visitor-calendar[data-digits="4"] .visitor-calendar-flip { font-size: 1.65rem; }
.visitor-calendar[data-digits="5"] .visitor-calendar-number, .visitor-calendar[data-digits="5"] .visitor-calendar-flip { font-size: 1.35rem; }
.visitor-calendar[data-digits="6"] .visitor-calendar-number, .visitor-calendar[data-digits="6"] .visitor-calendar-flip { font-size: 1.05rem; }
.visitor-calendar-info { position: absolute; right: 3px; bottom: 2px; }
.visitor-calendar-info summary { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: #8cabb9; font-size: .6rem; font-weight: 700; line-height: 1; cursor: pointer; list-style: none; }
.visitor-calendar-info summary::-webkit-details-marker { display: none; }
.visitor-calendar-info summary:hover { background: #eaf4f8; color: #377e98; }
.visitor-calendar-info summary:focus-visible { outline: 2px solid #3e9fbd; outline-offset: 2px; }
.visitor-calendar-info p { position: absolute; top: 22px; right: -3px; width: min(280px, calc(100vw - 32px)); margin: 0; padding: .85rem; border: 1px solid #dce7ec; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px rgba(44, 87, 106, .12); color: #69737f; font-size: .7rem; line-height: 1.6; }
@keyframes calendar-page-turn { 0% { transform: rotateX(0deg); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateX(-165deg); opacity: 0; } }
@media (max-width: 768px) { .visitor-calendar { top: 37px; right: 12px; width: 85px; } .visitor-calendar-heading { font-size: .48rem; gap: 3px; padding-top: 11px; } .visitor-calendar-pages { height: 46px; } .visitor-calendar-number, .visitor-calendar-flip { font-size: 1.7rem; } .visitor-calendar::before { left: 18px; } .visitor-calendar::after { right: 18px; } }
@media (prefers-reduced-motion: reduce) { .visitor-calendar.is-flipping .visitor-calendar-flip { display: none; animation: none; } }
.visitor-welcome { position: fixed; right: 1.2rem; bottom: 4.7rem; z-index: 30; display: flex; align-items: center; gap: .8rem; width: min(355px, calc(100vw - 2rem)); padding: 1rem 2rem 1rem 1rem; border: 1px solid #dcebf0; border-radius: 18px; background: rgba(255, 255, 255, .98); box-shadow: 0 10px 35px rgba(39, 79, 96, .12); animation: visitor-arrive .45s ease-out both; }
.visitor-wave { display: inline-block; font-size: 1.85rem; transform-origin: 70% 75%; animation: visitor-wave 1.1s ease-in-out .35s; }
.visitor-welcome-title { margin: 0 0 .2rem !important; color: #2b657c; font-size: .95rem; font-weight: 700; }
.visitor-welcome-message { margin: 0 !important; color: #69737f; font-size: .8rem; line-height: 1.5; }
.visitor-sparkle { position: absolute; right: 2rem; top: .5rem; color: #d9ac48; font-size: .85rem; animation: visitor-sparkle 1.2s ease-in-out 2; }
.visitor-welcome-close { position: absolute; top: .4rem; right: .35rem; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a929b; font-size: 1.25rem; cursor: pointer; }
.visitor-welcome-close:hover { background: #f0f5f7; color: #2b657c; }
.visitor-welcome-close:focus-visible { outline: 2px solid #389cba; outline-offset: 2px; }
@keyframes visitor-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes visitor-wave { 0%, 100% { transform: rotate(0); } 25%, 65% { transform: rotate(15deg); } 45%, 85% { transform: rotate(-8deg); } }
@keyframes visitor-sparkle { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 480px) { .visitor-welcome { right: 1rem; bottom: 4.5rem; padding-top: .8rem; padding-bottom: .8rem; } }
@media (prefers-reduced-motion: reduce) { .visitor-welcome, .visitor-wave, .visitor-sparkle { animation: none; } }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media screen and (max-width: 1024px) {
  .content-section { padding: 4.4rem 1.25rem; }
  .pipeline-shell { grid-template-columns: 1fr; }
  .pipeline-connector { height: 30px; flex-direction: column; justify-content: center; }
  .pipeline-connector span { width: 1px; flex: 1; }
  .pipeline-connector i { transform: rotate(90deg); }
  .phase-card { min-height: 126px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .scaling-grid { grid-template-columns: 1fr; }
  .formula-steps { grid-template-columns: 1fr; }
  .structural-step { grid-column: auto; }
}

@media screen and (max-width: 768px) {
  .hero-body { padding: 2rem 1rem 1.5rem; }
  .publication-title { font-size: 29px !important; line-height: 1.22; letter-spacing: -.5px; }
  .shakefont { font-size: 36px; }
  .section-nav { gap: .9rem; overflow-x: auto; justify-content: flex-start; }
  .section-nav a { white-space: nowrap; font-size: .8rem; }
  .content-section { padding: 3.5rem 1rem; }
  .section-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
  .centered-heading { justify-content: flex-start; }
  .flow-row { align-items: stretch; flex-direction: column; }
  .flow-arrow { align-self: center; transform: rotate(90deg); }
  .knowledge-stack { width: 100%; }
  .phase-grid, .inline-points { grid-template-columns: 1fr; }
  .phase-card { min-height: 116px; }
  .attention-crop { aspect-ratio: 2.4 / 1; }
  .attention-crop img { width: 190%; transform: translate(-23.5%, -34.8%); }
  .comparison-source-crop { max-width: 100%; }
  .architecture-source-crop { border-radius: 14px; }
  .insight-panel { grid-template-columns: 1fr; }
  .full-real-world-figure { padding: .35rem; border-radius: 14px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .metric-card { min-height: 105px; }
  .metric-value { font-size: 1.65rem; }
  .real-world-strip { grid-template-columns: 1fr; }
  .ood-source-crop { aspect-ratio: 1.55 / 1; }
  .ood-source-crop img { height: 140%; transform: translate(-70.2%, -15.6%); }
  .demo-grid { grid-template-columns: 1fr; }
  .chart-heading, .table-title-row { align-items: flex-start; flex-direction: column; }
  .bibtex-block { padding: 2.5rem 1rem; }
  .footer-credit { align-items: flex-start; text-align: left; }
}

@media screen and (max-width: 480px) {
  .knowledge-stack { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .publication-links .button { font-size: .82rem; }
  .chart-card { padding: 1rem .75rem; }
  .axis-labels text { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .section-icon::after, .signal-row span, .control-orbit span, .novelty-badge i { animation: none; }
}
