/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #146c64;
  --primary-hover: #0f514b;
  --secondary-color: #62706c;
  --accent-color: #c06b20;
  --text-primary: #17201f;
  --text-secondary: #5d6c68;
  --text-light: #899893;
  --background-primary: #ffffff;
  --background-secondary: #f4f7f5;
  --background-accent: #ecf1ee;
  --border-color: #d9e2de;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #146c64 0%, #4d7f5f 100%);
  --gradient-accent: linear-gradient(135deg, #146c64 0%, #c06b20 100%);
  --gradient-subtle: linear-gradient(135deg, #f7faf8 0%, #eef3ef 100%);
  --border-radius: 8px;
  --border-radius-lg: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section {
  padding-top: 1.65rem;
  padding-bottom: 2.15rem;
}


/* Modern Button Styles */
.button {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.footer .icon-link {
    font-size: 25px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-block a,
.link-block .button {
    margin: 8px 4px;
}

.dnerf {
  font-variant: small-caps;
}


/* Hero Section Modernization */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.teaser {
  font-family: 'Inter', sans-serif;
}


/* Publication Content Styling */
.publication-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(2.6rem, 3vw, 3.25rem) !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    max-width: 1360px;
    margin-bottom: 2rem !important;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.08 !important;
    text-wrap: balance;
}

.publication-banner {
  max-height: 70vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 2rem 0;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

.publication-header .hero-body {
  padding: 4.5rem 1.5rem 0.85rem;
}

.publication-header .container.is-max-desktop {
  max-width: 1380px;
}

.publication-authors {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.publication-venue {
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 600;
    background: var(--background-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: inline-block;
}

.publication-awards {
    color: #ef4444;
    width: fit-content;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ef4444;
    margin-top: 1rem;
}

.publication-authors a {
   color: inherit !important;
   text-decoration: none;
   font-weight: inherit;
   transition: var(--transition);
   position: relative;
}

.publication-authors a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.publication-authors a:hover::after {
    width: 100%;
}

.publication-authors a:hover {
    color: var(--text-primary) !important;
}

.placeholder-link {
  cursor: default;
  opacity: 0.78;
}

.button.is-dark.placeholder-link:hover {
  background: var(--text-primary) !important;
  box-shadow: var(--shadow-md);
  transform: none;
}

.author-block {
  display: inline-block;
  margin-right: 0.5rem;
}

.publication-authors {
  max-width: 760px;
  margin: 0 auto 0.75rem;
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.8;
}

.publication-authors .author-block {
  margin-right: 0.35rem;
  white-space: nowrap;
  font-weight: 700;
}

.publication-authors .author-block:not(:last-child)::after {
  content: ",";
}

.publication-authors sup,
.publication-affiliation sup,
.author-notes sup {
  font-size: 0.72em;
  top: -0.35em;
}

.publication-affiliation {
  color: var(--text-secondary);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.author-notes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.5rem 0;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.logo-strip img {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
  padding: 0.35rem 0.45rem;
  border-radius: var(--border-radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center;
}

.logo-strip img:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.14);
}

.logo-strip img[alt*="Nanyang"] {
  height: 60px;
}

.publication-banner img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.publication-banner img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Modern Video and Carousel Styling */
.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.publication-video:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.publication-body img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.publication-body img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.results-carousel {
  overflow: hidden;
  padding: 1rem 0;
}

.results-carousel .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.results-carousel .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.results-carousel .item img,
.results-carousel video {
  margin: 0;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.results-carousel .subtitle {
  font-size: 1rem !important;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 500;
}

/* Pagination and Misc Improvements */
.slider-pagination .slider-page {
  background: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.slider-pagination .slider-page.is-active {
  background: var(--primary-hover);
  transform: scale(1.2);
}

.eql-cntrb { 
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Section Titles */
.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-primary);
  margin-bottom: 1.25rem !important;
  position: relative;
  padding-bottom: 0;
}

.title.is-3::after {
  display: none;
}

/* Content Improvements */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 1.5rem;
}

/* Footer Improvements */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer .content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.visit-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.visit-stat {
  align-items: center;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 0.35rem;
  line-height: 1;
  padding: 0.42rem 0.72rem;
}

.visit-stat .icon {
  color: var(--primary-color);
  font-size: 0.86rem;
  height: auto;
  width: auto;
}

.visit-stat strong {
  color: var(--text-primary);
  font-weight: 800;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* BibTeX Styling */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: var(--background-accent) !important;
  color: var(--text-primary) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

/* BibTeX Section Improvements */
.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.copy-bibtex-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-bibtex-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.copy-bibtex-btn.copied {
  background: #10b981;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-header .hero-body {
    padding: 2.75rem 1rem 0.75rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .publication-authors {
    font-size: 1rem !important;
  }
  
  .button {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }
  
  .more-works-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
  
  .results-carousel .item {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .teaser .hero-body {
    padding: 1rem;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2rem !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .more-works-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body {
    padding: 3rem 2rem;
  }
  
  .publication-header .hero-body {
    padding: 3.5rem 2rem 0.9rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.button:focus,
.related-works-btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
}

/* ADAPT project page */
.eyebrow {
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.publication-header {
  background:
    linear-gradient(180deg, rgba(20, 108, 100, 0.06), rgba(255, 255, 255, 0) 45%),
    var(--background-primary);
}

.publication-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.publication-meta span {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.4rem 0.65rem;
  background: var(--background-primary);
}

.hero-summary {
  max-width: 780px;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
  font-size: 1.18rem;
  line-height: 1.7;
}

.overview-section {
  padding-top: 1rem;
}

.full-video-section {
  padding-top: 0.45rem;
  padding-bottom: 1.65rem;
}

.overview-claim {
  --adapt-red: #dc6768;
  margin: 0 auto 1.45rem;
  max-width: 1220px;
  text-align: center;
}

.overview-claim-main {
  color: var(--text-primary);
  font-size: 1.98rem;
  font-weight: 900;
  line-height: 1.12;
  margin: 0 auto 0.85rem;
  max-width: 1220px;
  white-space: nowrap;
}

.overview-claim-main .claim-brand,
.overview-claim-main .claim-highlight {
  color: var(--adapt-red);
}

.overview-claim-sub {
  color: var(--text-secondary);
  font-size: 1.18rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 980px;
}

.overview-claim-sub strong {
  color: var(--text-primary);
  font-weight: 850;
}

.full-video {
  aspect-ratio: 16 / 9;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  display: block;
  margin: 0 auto;
  max-width: 960px;
  object-fit: contain;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
  width: 100%;
}

.full-video:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
}

.paper-figure {
  display: block;
  width: 100%;
  min-height: 330px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-primary);
  box-shadow: var(--shadow-md);
}

.paper-figure-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-primary);
  box-shadow: var(--shadow-md);
}

.overview-figure-img {
  max-width: 1120px;
  width: 88%;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.wide-figure-img {
  width: 100%;
}

.overview-figure {
  min-height: 430px;
}

.wide-figure {
  min-height: 300px;
}

.figure-caption {
  max-width: 860px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  position: relative;
  text-align: center;
}

.section-heading::before,
.section-heading::after {
  display: none;
}

.section-heading .title.is-3 {
  margin-bottom: 1rem !important;
}

.section-heading p {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.7;
}

.analytical-observer-section .title.is-3,
#feedback-policy .title.is-3 {
  padding-bottom: 0;
}

.analytical-observer-section .title.is-3::after,
#feedback-policy .title.is-3::after {
  display: none;
}

.demo-stack,
.result-block {
  display: grid;
  gap: 2rem;
}

.demo-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
}

.demo-block:last-child {
  border-bottom: 1px solid var(--border-color);
}

.demo-copy h3,
.result-text h3,
.method-cards h3,
.challenge-grid h3,
.detail-grid h3 {
  color: var(--text-primary);
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.demo-copy p,
.result-text p,
.method-cards p,
.challenge-grid p,
.detail-grid p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.video-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.video-comparison figure {
  margin: 0;
}

.video-comparison figcaption {
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

video {
  display: block;
  width: 100%;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: #0f1715;
  box-shadow: var(--shadow-md);
}

.challenge-grid,
.method-cards,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.challenge-grid article,
.method-cards article,
.detail-grid article {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-primary);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(20, 108, 100, 0.1);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.observer-advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 980px;
  margin: 0 auto 1.6rem;
}

.observer-advantage-card {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  border: 1px solid rgba(24, 38, 35, 0.12);
  border-radius: var(--border-radius);
  background: var(--background-primary);
  padding: 1rem;
  transition: border-color 180ms ease;
}

.observer-advantage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(116, 152, 198, 0.42), transparent) top left / 42% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(128, 143, 184, 0.34), transparent) top right / 1px 42% no-repeat,
    linear-gradient(270deg, transparent, rgba(154, 178, 211, 0.36), transparent) bottom right / 42% 1px no-repeat,
    linear-gradient(0deg, transparent, rgba(112, 130, 170, 0.28), transparent) bottom left / 1px 42% no-repeat;
  background-position:
    -45% 0,
    100% -45%,
    145% 100%,
    0 145%;
  opacity: 0;
  pointer-events: none;
}

.observer-advantage-card:hover {
  border-color: rgba(116, 152, 198, 0.22);
}

.observer-advantage-card:hover::before {
  animation: observer-border-flow 1.25s ease-out 1 both;
}

@keyframes observer-border-flow {
  0% {
    opacity: 0;
    background-position:
      -45% 0,
      100% -45%,
      145% 100%,
      0 145%;
  }

  14%,
  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    background-position:
      145% 0,
      100% 145%,
      -45% 100%,
      0 -45%;
  }
}

.observer-advantage-card h3 {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.observer-advantage-card p {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.pipeline-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.pipeline-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-accent);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
}

.result-block {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.result-block:last-child {
  border-bottom: 1px solid var(--border-color);
}

.torso-result-block {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.torso-result-copy {
  max-width: 900px;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.torso-result-intro {
  max-width: 820px;
  margin: 0.45rem auto 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.torso-result-copy .tag-list {
  justify-content: center;
}

.torso-demo-board {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(340px, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.torso-demo-caption {
  max-width: 1040px;
  margin: 1.05rem auto 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}

.torso-demo-caption strong {
  color: var(--text-primary);
  font-weight: 800;
}

.direction-demo-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 1.2rem;
  max-width: 960px;
  margin: 0 auto;
}

.direction-radar-figure {
  display: flex;
  justify-content: center;
  margin: 0;
}

.direction-radar-img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.direction-video-column {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.direction-demo-caption {
  max-width: 900px;
}

.stance-demo-caption {
  max-width: 980px;
  margin-top: 1.55rem;
}

.stance-test-block {
  padding-top: 2rem;
}

.stance-ppt-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.15rem;
  max-width: 1180px;
  margin: 0 auto;
  --baseline-blue: #4f79a8;
  --adapt-red: #e65a59;
}

.stance-ppt-layout .stance-policy-row {
  margin-top: -0.35rem;
}

.stance-ppt-layout .baseline-policy-row {
  margin-top: 0;
}

.stance-column-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.1rem;
  text-align: center;
}

.stance-policy-row {
  grid-column: 1 / -1;
  border: 2px solid rgba(24, 38, 35, 0.1);
  border-radius: var(--border-radius);
  padding: 0.42rem 0.42rem 1rem;
  position: relative;
}

.adapt-policy-row {
  background: rgba(255, 248, 248, 0.36);
  border-color: rgba(232, 84, 88, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 235, 235, 0.28),
    0 0 8px rgba(230, 90, 89, 0.28);
}

.baseline-policy-row {
  background: rgba(247, 251, 255, 0.38);
  border-color: rgba(82, 132, 194, 0.74);
  box-shadow:
    0 0 0 1px rgba(230, 242, 255, 0.3),
    0 0 8px rgba(79, 121, 168, 0.28);
}

.stance-policy-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.stance-video-cell {
  margin: 0;
  min-width: 0;
  position: relative;
}

.stance-video-cell video {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--border-radius) - 2px);
  max-height: none;
  object-fit: cover;
  background: #050607;
  box-shadow: none;
}

.stance-row-label {
  align-items: center;
  display: inline-flex;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 500;
  justify-content: center;
  line-height: 1.2;
  left: 50%;
  letter-spacing: 0;
  min-width: 0;
  padding: 0 0.95rem;
  position: absolute;
  text-align: center;
  top: calc(100% - 0.95rem);
  transform: translateX(-50%);
  white-space: nowrap;
}

.stance-row-label.adapt-label {
  color: var(--adapt-red);
}

.stance-row-label.baseline-label {
  color: var(--baseline-blue);
  margin-bottom: 0;
}

.stance-row-label.adapt-label {
  background: #fffafa;
}

.stance-row-label.baseline-label {
  background: #fbfdff;
}

.torso-curve-figure,
.torso-video-column figure {
  margin: 0;
}

.torso-video-case {
  display: block;
  position: relative;
}

.torso-curves-img {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.torso-video-column {
  position: relative;
  display: grid;
  gap: 0.6rem;
  min-height: 0;
  --baseline-blue: #4f79a8;
  --adapt-red: #e65a59;
}

.torso-video-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-self: end;
  text-align: right;
}

.torso-video-column figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  min-height: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  left: 0.65rem;
  margin: 0;
  padding: 0.42rem 0.74rem;
  pointer-events: none;
  position: absolute;
  top: 0.65rem;
  z-index: 2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.torso-video-case.baseline-case figcaption {
  color: var(--baseline-blue);
  background: rgba(247, 251, 255, 0.28);
  box-shadow: 0 5px 12px rgba(18, 37, 62, 0.08);
}

.torso-video-case.adapt-case figcaption {
  color: var(--adapt-red);
  background: rgba(255, 247, 247, 0.28);
  box-shadow: 0 5px 12px rgba(72, 24, 26, 0.08);
}

.torso-video-column video {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(247, 251, 255, 0.46);
  border-radius: var(--border-radius);
  max-height: none;
  object-fit: cover;
  background: #050607;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.torso-video-case.baseline-case video {
  border-color: rgba(82, 132, 194, 0.78);
  box-shadow:
    0 0 0 1px rgba(230, 242, 255, 0.3),
    0 0 8px rgba(79, 121, 168, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.torso-video-case.adapt-case video {
  border-color: rgba(232, 84, 88, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 235, 235, 0.28),
    0 0 8px rgba(230, 90, 89, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.handload-test-block {
  padding-top: 2rem;
}

.handload-static-layout,
.handload-walk-layout {
  --baseline-blue: #4f79a8;
  --adapt-red: #e65a59;
}

.handload-static-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 1120px;
  margin: 0 auto;
}

.handload-static-video,
.handload-walk-video,
.handload-trajectory-video {
  margin: 0;
  min-width: 0;
  position: relative;
}

.handload-static-video,
.handload-walk-video {
  box-sizing: border-box;
}

.video-corner-label {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  left: 0.65rem;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  pointer-events: none;
  position: absolute;
  top: 0.65rem;
  z-index: 2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.video-corner-label.baseline-label {
  background: rgba(247, 251, 255, 0.28);
  color: var(--baseline-blue);
}

.video-corner-label.adapt-label {
  background: rgba(255, 247, 247, 0.28);
  color: var(--adapt-red);
}

.handload-static-video video,
.handload-walk-video video {
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(247, 251, 255, 0.46);
  border-radius: var(--border-radius);
  box-sizing: border-box;
  max-height: none;
  object-fit: cover;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.handload-static-video.baseline-case video,
.handload-walk-video.baseline-case video {
  border-color: rgba(82, 132, 194, 0.74);
  box-shadow:
    0 0 0 1px rgba(230, 242, 255, 0.3),
    0 0 8px rgba(79, 121, 168, 0.28);
}

.handload-static-video.adapt-case video,
.handload-walk-video.adapt-case video {
  border-color: rgba(232, 84, 88, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 235, 235, 0.28),
    0 0 8px rgba(230, 90, 89, 0.28);
}

.handload-load-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.35;
  margin: -0.2rem 0 0;
  text-align: center;
}

.handload-walk-layout {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  max-width: 1120px;
  margin: 1.55rem auto 0;
}

.handload-walk-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1280px;
  margin: 1.55rem auto 0;
  position: relative;
}

.handload-walk-compare::before {
  background-image: linear-gradient(
    to bottom,
    rgba(31, 48, 44, 0.5) 0 52%,
    transparent 46% 100%
  );
  background-size: 2px 11px;
  content: "";
  height: calc(100% - 1.35rem);
  left: 50%;
  position: absolute;
  top: 1.35rem;
  transform: translateX(-50%);
  width: 2px;
}

.handload-walk-panel {
  min-width: 0;
}

.handload-walk-panel h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.55rem;
  text-align: center;
}

.handload-walk-panel .handload-walk-layout {
  gap: 0.55rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 0;
  max-width: none;
}

.handload-walk-videos {
  display: grid;
  gap: 0.65rem;
}

.handload-trajectory-video video {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(24, 38, 35, 0.12);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.handload-demo-caption {
  max-width: 920px;
  margin-top: 1rem;
}

.handload-static-caption {
  margin-top: 0.85rem;
}

.handload-walk-caption {
  margin-top: 0.95rem;
}

.light-step-block {
  padding-top: 1.4rem;
}

.light-step-demo-board {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(380px, 0.8fr) minmax(520px, 1.2fr);
  max-width: 1280px;
  margin: 0 auto;
}

.light-step-figure {
  border-radius: var(--border-radius);
  justify-self: center;
  margin: 0;
  width: min(100%, 580px);
}

.light-step-img {
  aspect-ratio: 1257 / 573;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.light-step-video-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  justify-self: center;
  width: 100%;
}

.light-step-transition-caption {
  margin-top: 0.9rem;
  max-width: 1120px;
}

.light-step-audio-cue {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 0.45rem;
  justify-content: center;
  line-height: 1.45;
  margin: 1.1rem auto 0;
  text-align: center;
}

.light-step-audio-cue .icon {
  color: var(--baseline-blue);
  font-size: 0.95rem;
}

.light-step-audio-board {
  --adapt-red: #e65a59;
  --baseline-blue: #4f79a8;
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.44fr) minmax(0, 1fr);
  margin: 0.55rem auto 0;
  max-width: 1280px;
}

.light-step-audio-board figure {
  margin: 0;
}

.light-step-audio-board figcaption {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.4rem;
  left: 0.65rem;
  line-height: 1;
  margin: 0;
  min-height: 1.8rem;
  padding: 0.42rem 0.74rem;
  pointer-events: none;
  position: absolute;
  top: 0.65rem;
  z-index: 2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.light-step-audio-board .baseline-case figcaption {
  color: var(--baseline-blue);
  background: rgba(247, 251, 255, 0.28);
  box-shadow: 0 5px 12px rgba(18, 37, 62, 0.08);
}

.light-step-audio-board .adapt-case figcaption {
  color: var(--adapt-red);
  background: rgba(255, 247, 247, 0.28);
  box-shadow: 0 5px 12px rgba(72, 24, 26, 0.08);
}

.light-step-audio-board video {
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(247, 251, 255, 0.46);
  box-sizing: border-box;
  max-height: none;
  object-fit: cover;
}

.light-step-audio-center {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  min-width: 0;
}

.light-step-sound-switch {
  align-items: center;
  background: #f6f8f7;
  border: 1px solid rgba(24, 38, 35, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  isolation: isolate;
  justify-self: center;
  margin: -0.2rem auto 0;
  overflow: hidden;
  padding: 0.25rem;
  position: relative;
  touch-action: manipulation;
  transform: translateZ(0);
  width: 100%;
}

.light-step-sound-switch button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.35rem;
  justify-content: center;
  line-height: 1;
  min-height: 2.15rem;
  padding: 0 0.8rem;
  position: relative;
  transition: color 260ms ease 80ms, opacity 180ms ease;
  z-index: 2;
}

.light-step-sound-switch button:hover {
  opacity: 0.9;
}

.light-step-sound-switch button:focus {
  outline: none;
}

.light-step-sound-switch button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
  outline: none;
}

.light-step-sound-switch button.is-active {
  color: #ffffff;
}

.light-step-sound-switch .icon {
  font-size: 0.82rem;
  height: 1rem;
  opacity: 0.78;
  transform: scale(0.96);
  transition: opacity 260ms ease 80ms, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 1rem;
}

.light-step-sound-switch button.is-active .icon {
  opacity: 1;
  transform: scale(1.05);
}

.light-step-switch-thumb {
  background: var(--baseline-blue);
  border-radius: 999px;
  bottom: 0.25rem;
  box-shadow: 0 6px 18px rgba(23, 32, 31, 0.16);
  left: 0.25rem;
  position: absolute;
  top: 0.25rem;
  transform: translate3d(0, 0, 0);
  transition:
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 320ms ease,
    box-shadow 320ms ease;
  will-change: transform;
  width: calc(50% - 0.25rem);
  z-index: 1;
}

.light-step-sound-switch.is-adapt .light-step-switch-thumb {
  background: var(--adapt-red);
  transform: translate3d(100%, 0, 0);
}

.light-step-sound-switch.is-switching .light-step-switch-thumb {
  box-shadow: 0 8px 24px rgba(23, 32, 31, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .light-step-sound-switch button,
  .light-step-sound-switch .icon,
  .light-step-switch-thumb {
    transition-duration: 1ms;
  }
}

.light-step-audio-board .baseline-case video {
  border-color: rgba(82, 132, 194, 0.78);
  box-shadow:
    0 0 0 1px rgba(230, 242, 255, 0.3),
    0 0 8px rgba(79, 121, 168, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.light-step-audio-board .adapt-case video {
  border-color: rgba(232, 84, 88, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 235, 235, 0.28),
    0 0 8px rgba(230, 90, 89, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.light-step-live-audio {
  --adapt-red: #e65a59;
  --baseline-blue: #4f79a8;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 38, 35, 0.12);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin: 1.25rem auto 0;
  max-width: 1120px;
  padding: 0.85rem;
}

.light-step-live-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.light-step-live-header h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.light-step-audio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.light-step-audio-pills span {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.42rem 0.55rem;
}

.light-step-meter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.light-step-audio-center .light-step-meter-grid {
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.light-step-meter-card {
  border: 1px solid rgba(24, 38, 35, 0.12);
  border-radius: var(--border-radius);
  min-width: 0;
  padding: 0.75rem;
}

.light-step-audio-center .light-step-meter-card {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-rows: minmax(96px, 1fr) auto;
  justify-items: center;
  min-height: 154px;
  padding: 0.62rem 0.5rem;
}

.light-step-meter-card.baseline-card {
  background: rgba(247, 251, 255, 0.7);
  border-color: rgba(82, 132, 194, 0.26);
}

.light-step-meter-card.adapt-card {
  background: rgba(255, 248, 248, 0.72);
  border-color: rgba(232, 84, 88, 0.24);
}

.light-step-meter-topline {
  align-items: baseline;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.light-step-meter-topline span {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.light-step-audio-center .light-step-meter-topline span {
  font-size: 0.82rem;
}

.light-step-audio-center .light-step-meter-topline {
  align-items: center;
  display: contents;
}

.light-step-meter-topline strong {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.light-step-audio-center .light-step-meter-topline strong {
  font-size: 0.78rem;
  grid-row: 2;
}

.light-step-meter-track {
  background: linear-gradient(90deg, #edf2f0, #f7faf8);
  border: 1px solid rgba(24, 38, 35, 0.12);
  border-radius: 999px;
  height: 0.8rem;
  overflow: hidden;
  position: relative;
}

.light-step-audio-center .light-step-meter-track {
  align-items: flex-end;
  background: linear-gradient(180deg, #f7faf8, #edf2f0);
  display: flex;
  grid-row: 1;
  height: 112px;
  justify-content: center;
  width: 0.9rem;
}

.light-step-meter-fill {
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 120ms linear;
  width: 0;
}

.light-step-audio-center .light-step-meter-fill {
  height: 0;
  transition: height 120ms linear;
  width: 100%;
}

.baseline-card .light-step-meter-fill {
  background: var(--baseline-blue);
}

.adapt-card .light-step-meter-fill {
  background: var(--adapt-red);
}

.light-step-meter-marker {
  background: rgba(23, 32, 31, 0.55);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateX(-1px);
  transition: left 120ms linear;
  width: 2px;
}

.light-step-audio-center .light-step-meter-marker {
  height: 2px;
  left: 0;
  top: auto;
  transform: translateY(1px);
  transition: bottom 120ms linear;
  width: 100%;
}

.light-step-delta-readout {
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.light-step-audio-plot {
  position: relative;
}

.light-step-audio-canvas {
  aspect-ratio: 5 / 1;
  background: #fbfcfb;
  border: 1px solid rgba(24, 38, 35, 0.12);
  border-radius: var(--border-radius);
  cursor: grab;
  display: block;
  touch-action: none;
  user-select: none;
  width: 100%;
}

.light-step-audio-canvas.is-scrubbing,
.light-step-live-audio.is-scrubbing .light-step-audio-canvas {
  cursor: grabbing;
}

.light-step-audio-cursor {
  background: rgba(23, 32, 31, 0.62);
  height: var(--cursor-height, calc(100% - 54px));
  left: 0;
  pointer-events: none;
  position: absolute;
  top: var(--cursor-top, 20px);
  transform: translate3d(var(--cursor-x, 46px), 0, 0);
  width: 2px;
  will-change: transform;
  z-index: 2;
}

.light-step-cursor-dot {
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(23, 32, 31, 0.22);
  height: 10px;
  left: 50%;
  position: absolute;
  top: var(--dot-y, 50%);
  transform: translate(-50%, -50%);
  width: 10px;
}

.light-step-cursor-dot.baseline-dot {
  background: var(--baseline-blue);
}

.light-step-cursor-dot.adapt-dot {
  background: var(--adapt-red);
}

.light-step-caption {
  max-width: 980px;
}

.observer-figure-block {
  margin: 0 auto;
  max-width: 980px;
  padding: 0.25rem 0 0;
}

.observer-figure-block figcaption {
  max-width: 880px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: center;
}

.observer-figure-block figcaption strong {
  color: var(--text-primary);
  font-weight: 800;
}

.observer-performance-img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.featured-result {
  background: linear-gradient(90deg, rgba(20, 108, 100, 0.06), rgba(192, 107, 32, 0.05));
  border-radius: var(--border-radius);
  padding-left: 1rem;
  padding-right: 1rem;
}

.result-media {
  display: grid;
  gap: 1rem;
}

.result-media.two-col {
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
}

.video-comparison.compact video {
  max-height: 260px;
  object-fit: cover;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-primary);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.34rem 0.55rem;
}

@media screen and (max-width: 900px) {
  .section {
    padding-top: 1.35rem;
    padding-bottom: 1.85rem;
  }

  .demo-block,
  .result-block,
  .result-media.two-col,
  .torso-demo-board,
  .direction-demo-board,
  .light-step-demo-board,
  .handload-static-layout,
  .handload-walk-layout,
  .handload-walk-compare {
    grid-template-columns: 1fr;
  }

  .stance-ppt-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .stance-policy-videos {
    grid-template-columns: 1fr;
  }

  .torso-curve-figure,
  .torso-video-column {
    height: auto;
  }

  .torso-curves-img {
    height: auto;
  }

  .direction-radar-img {
    max-height: none;
  }

  .torso-video-column {
    grid-template-rows: none;
  }

  .torso-video-column video {
    height: auto;
    max-height: 260px;
  }

  .handload-static-layout,
  .handload-walk-layout {
    max-width: 560px;
  }

  .handload-walk-panel .handload-walk-layout {
    grid-template-columns: 1fr;
  }

  .handload-walk-compare::before {
    display: none;
  }

  .handload-trajectory-video video {
    aspect-ratio: 16 / 9;
  }

  .light-step-demo-board {
    max-width: 560px;
  }

  .light-step-video-column {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .light-step-audio-board {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .light-step-audio-center {
    align-self: auto;
    width: 100%;
  }

  .light-step-meter-grid {
    grid-template-columns: 1fr;
  }

  .light-step-live-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .light-step-audio-pills {
    justify-content: flex-start;
  }

  .overview-claim-main {
    font-size: 1.58rem;
    white-space: normal;
  }

  .overview-claim-sub {
    font-size: 1.05rem;
  }

  .challenge-grid,
  .method-cards,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .observer-advantage-grid {
    grid-template-columns: 1fr;
  }

  .overview-figure,
  .paper-figure,
  .wide-figure {
    min-height: 300px;
  }

  .overview-figure-img {
    max-width: 100%;
    width: 100%;
  }
}

@media screen and (max-width: 560px) {
  .video-comparison {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .overview-claim-main {
    font-size: 1.3rem;
  }

  .overview-claim-sub {
    font-size: 0.98rem;
  }

  .publication-meta {
    gap: 0.45rem;
  }

}



