:root {
  --bg: #f5f0e8;
  --bg-deep: #efe6d8;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #17202c;
  --muted: #586171;
  --accent: #245f7a;
  --accent-strong: #193f58;
  --accent-soft: #dceaf1;
  --line: rgba(23, 32, 44, 0.12);
  --shadow: 0 24px 60px rgba(23, 32, 44, 0.12);
  --shadow-soft: 0 14px 40px rgba(23, 32, 44, 0.08);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(171, 205, 223, 0.42), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(242, 210, 180, 0.52), transparent 20%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -10rem;
  left: -8rem;
  background: rgba(175, 208, 221, 0.48);
}

.page-glow-right {
  top: 10rem;
  right: -8rem;
  background: rgba(237, 199, 170, 0.4);
}

.hero-shell,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.section-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.content-shell {
  width: min(calc(100% - 2rem), 1080px);
}

.hero-shell {
  padding: 1.25rem 0 2.5rem;
}

.hero-stack {
  display: grid;
  gap: 1.6rem;
}

.top-nav {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto 2rem;
  padding: 0.95rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 1rem;
  z-index: 20;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.top-nav.is-compact {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(23, 32, 44, 0.16);
}

.brand-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-strong);
  background: rgba(36, 95, 122, 0.11);
}

.hero-copy {
  padding: 1.5rem 0 0.2rem;
  text-align: center;
  width: min(100%, 1360px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-copy h1,
.section-header h2 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4.15vw, 3.25rem);
  max-width: min(100%, 1080px);
  margin-left: auto;
  margin-right: auto;
  text-wrap: normal;
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  margin-top: 1.35rem;
}

.affiliations-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 0.45rem;
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.affiliation-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.affiliation-logo {
  width: auto;
  height: 2.3rem;
  object-fit: contain;
}

.dexforce-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.authors-line,
.affiliation-line {
  margin: 0;
  line-height: 1.7;
}

.authors-line {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.14rem;
}

.authors-line a {
  color: var(--accent-strong);
  text-decoration: none;
}

.authors-line a:hover {
  text-decoration: underline;
}

.authors-line sup,
.affiliation-line sup {
  font-size: 0.72em;
}

.affiliation-line {
  color: var(--muted);
  font-size: 1rem;
  white-space: nowrap;
}

.corresponding-line {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  .affiliations-line {
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
  }
}

.cta-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-tldr {
  max-width: 58rem;
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.82;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 95, 122, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(23, 32, 44, 0.14);
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cta-icon-badge {
  width: auto;
  height: auto;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(36, 95, 122, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-points {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.point-card,
.body-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.point-card {
  padding: 1rem 1rem 1.1rem;
}

.point-card h2 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}

.point-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.media-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-media {
  width: min(100%, 840px);
  margin: 0 auto;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  background: #ece8e2;
}

.media-caption {
  margin: 0.9rem 0 0;
  padding: 0 0.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.content-section {
  padding: 2.4rem 0 0.8rem;
}

.section-header {
  max-width: 50rem;
  margin-bottom: 1.25rem;
}

.section-header-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subtitle {
  max-width: 52rem;
  margin: -0.2rem auto 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.section-header h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.section-title-simple {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.22rem, 1.75vw, 1.5rem) !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose-card,
.feature-card,
.resource-card,
.citation-card,
.comparison-block,
.image-card,
.figure-card,
.video-card.body-card {
  padding: 1.1rem;
}

.prose-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
  font-size: 1.03rem;
}

.prose-card-large p {
  font-size: 1.18rem;
  line-height: 1.95;
}

.abstract-card {
  max-width: 58rem;
  margin: 0 auto;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.abstract-card p {
  font-size: 1.05rem;
  line-height: 1.82;
}

.video-embed-card {
  max-width: 58rem;
  margin: 0 auto;
  padding: 1rem;
}

.video-embed-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #ece8e2;
}

.video-embed-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.prose-card p + p {
  margin-top: 1rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 1.2rem;
  align-items: stretch;
}

.image-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f3efe8;
}

.image-card figcaption,
.figure-card figcaption {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.8rem;
}

.stack-column {
  display: grid;
  gap: 1rem;
}

.feature-card h3,
.resource-card h3,
.video-card h3,
.comparison-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.feature-card p,
.resource-card p,
.video-card p,
.comparison-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.figure-card img {
  width: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.figure-card-wide {
  grid-column: 1 / -1;
}

.qualitative-figure-grid {
  margin-top: 1rem;
}

.comparison-block {
  display: grid;
  gap: 1.15rem;
}

.comparison-copy {
  max-width: 44rem;
}

.comparison-matrix {
  width: min(100%, 76rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.333fr);
  gap: 1rem 0.9rem;
  align-items: center;
  transform: translateX(-1.45rem);
}

.comparison-corner {
  min-height: 1px;
}

.comparison-task-title {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.comparison-method {
  text-align: right;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--accent-strong);
  letter-spacing: 0.01em;
}

.comparison-video-cell {
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.68);
}

.comparison-video-cell video {
  width: 100%;
  border-radius: 16px;
  background: #f3efe8;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 44, 0.06);
}

.comparison-video-cell.task-open video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.comparison-video-cell.task-shoes video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.comparison-video-cell.task-fork video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

video[data-hover-controls]::-webkit-media-controls-panel,
video[data-hover-controls]::-webkit-media-controls-enclosure {
  opacity: 0;
  transition: opacity 140ms ease;
}

video[data-hover-controls]:hover::-webkit-media-controls-panel,
video[data-hover-controls]:hover::-webkit-media-controls-enclosure,
video[data-hover-controls]:focus::-webkit-media-controls-panel,
video[data-hover-controls]:focus::-webkit-media-controls-enclosure,
.video-card video[data-hover-controls]:hover::-webkit-media-controls-panel,
.video-card video[data-hover-controls]:hover::-webkit-media-controls-enclosure,
.video-card video[data-hover-controls]:focus::-webkit-media-controls-panel,
.video-card video[data-hover-controls]:focus::-webkit-media-controls-enclosure {
  opacity: 1;
}

.video-grid {
  display: grid;
  gap: 1rem;
}

.video-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.real-world-grid,
.reward-analysis-copy,
.reward-analysis-grid {
  max-width: 66rem;
  margin-left: auto;
  margin-right: auto;
}

.real-world-grid {
}

.reward-analysis-copy {
  margin-bottom: 1rem;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.reward-analysis-grid {
}

.wide-gap {
  margin-top: 1rem;
}

.video-card video {
  width: 100%;
  border-radius: 18px;
  background: #ece8e2;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 44, 0.06);
}

.video-grid .video-card video:not([controls]) {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.video-grid .video-card video[controls] {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card h4 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1rem;
}

.video-card h3 {
  margin-top: 0.9rem;
}

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

.resource-grid-compact {
  margin-top: 0.2rem;
}

.large-video-card {
  padding: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.large-video-card video {
  width: 100%;
  border-radius: 18px;
  background: #ece8e2;
}

.video-carousel {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.1rem 4.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.carousel-viewport {
  position: relative;
}

.carousel-slide {
  display: none;
  margin: 0;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-slide video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #ece8e2;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 44, 0.05);
}

.carousel-slide figcaption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.76;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  box-shadow: 0 12px 28px rgba(23, 32, 44, 0.12);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 16px 34px rgba(23, 32, 44, 0.16);
}

.carousel-prev {
  left: 0.95rem;
}

.carousel-next {
  right: 0.95rem;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 0.9rem;
  height: 0.9rem;
  border: none;
  border-radius: 999px;
  background: rgba(36, 95, 122, 0.26);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.1);
}

.resource-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  margin-top: 1rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(36, 95, 122, 0.1);
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 700;
}

.citation-card {
  margin-top: 1rem;
}

.citation-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.citation-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(20, 29, 40, 0.95);
  color: #e6edf3;
}

.citation-card code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.75;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
}

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

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

@media (max-width: 1080px) {
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: min(100%, 1120px);
  }

  .hero-points,
  .video-grid.two-up,
  .video-grid.three-up,
  .resource-grid,
  .figure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figure-card-wide {
    grid-column: auto;
  }

  .comparison-matrix {
    width: min(100%, 70rem);
    grid-template-columns: 5.8rem minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.333fr);
    gap: 0.85rem 0.85rem;
    transform: translateX(-1rem);
  }
}

@media (max-width: 760px) {
  .hero-shell {
    padding-top: 1rem;
  }

  .top-nav {
    border-radius: 28px;
    padding: 0.95rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-points,
  .video-grid.two-up,
  .video-grid.three-up,
  .resource-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .comparison-matrix {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    transform: none;
  }

  .comparison-corner {
    display: none;
  }

  .comparison-task-title,
  .comparison-method {
    text-align: left;
  }

  .video-carousel {
    max-width: 58rem;
    padding: 0.9rem 0.9rem 1rem;
  }

  .carousel-arrow {
    width: 2.8rem;
    height: 2.8rem;
    top: auto;
    bottom: 1.35rem;
    transform: none;
  }

  .carousel-arrow:hover {
    transform: scale(1.04);
  }

  .carousel-prev {
    left: 1.1rem;
  }

  .carousel-next {
    right: 1.1rem;
  }

  .content-section {
    padding-top: 1.8rem;
  }

  .hero-copy {
    padding-top: 0.3rem;
  }

  .hero-lead,
  .prose-card p {
    font-size: 1rem;
  }
}
