* {
  box-sizing: border-box;
}

:root {
  --ink: #172026;
  --muted: #596774;
  --soft: #f4f7f6;
  --soft-strong: #e6eeee;
  --line: #d9e2df;
  --accent: #0f7c75;
  --accent-dark: #075f5a;
  --paper: #ffffff;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.highlight-container {
  width: min(1360px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 124, 117, 0.14);
  background: rgba(198, 232, 220, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 24px;
}

.brand {
  display: inline-block;
  background: none;
  color: #101820;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
  -webkit-text-fill-color: #101820;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #2b3842;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

.side-nav {
  position: fixed;
  top: 50%;
  left: max(12px, calc((100vw - 1780px) / 2));
  z-index: 90;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.side-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.08);
  color: #2b3842;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a.active {
  border-color: rgba(15, 124, 117, 0.44);
  background: rgba(226, 246, 238, 0.96);
  color: var(--accent);
  outline: none;
}

.side-nav a.active {
  box-shadow: 0 10px 26px rgba(15, 124, 117, 0.18);
}

.hero {
  background: var(--paper);
}

.hero-inner {
  padding: 66px 0 56px;
  text-align: center;
}

.publication-title {
  max-width: 1060px;
  margin: 0 auto;
  color: #101820;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.publication-title span {
  display: inline-block;
  background: none;
  color: #101820;
  font-weight: 900;
  -webkit-text-fill-color: #101820;
}

.publication-authors {
  margin-top: 24px;
  color: #2f3d47;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.38rem;
  font-weight: 400;
}

.author-block {
  display: inline-block;
}

.author-link {
  color: var(--accent);
  font-weight: 400;
  text-decoration: none;
}

.author-link:hover,
.author-link:focus-visible {
  color: var(--accent-dark);
  outline: none;
  text-decoration: underline;
}

.publication-affiliation {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: #46524e;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #101820;
  border-radius: 999px;
  background: #101820;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: #000;
  background: #000;
  outline: none;
}

.button-light {
  background: #101820;
  color: #fff;
}

.button-light:hover,
.button-light:focus-visible {
  background: #000;
}

.button-disabled {
  border-color: #101820;
  background: #101820;
  color: #fff;
  cursor: default;
}

.section {
  padding: 58px 0 66px;
  background: var(--paper);
}

.section-tint {
  background: var(--soft);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: #101820;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

.section-description {
  max-width: 780px;
  margin: 12px auto 0;
  color: #66736e;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.heading-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #d9f4e8;
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  background: #05090c;
}

.demo-item {
  min-width: 0;
}

.demo-item video {
  box-shadow: 0 14px 36px rgba(23, 32, 38, 0.12);
}

.video-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
}

.prompt-badge {
  position: absolute;
  top: calc(34% + 12px);
  left: 50%;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 12, 0.78);
  color: #fff;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  pointer-events: none;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
  transform: translateX(-50%);
}

.demo-item p {
  margin: 10px 0 0;
  color: #2c3942;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.demo-item-interactive {
  position: relative;
  cursor: default;
  border-radius: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.demo-item-interactive video {
  pointer-events: auto;
}

.demo-item-interactive:hover,
.demo-item-interactive:focus-within {
  transform: translateY(-4px);
}

.demo-item-interactive:hover video,
.demo-item-interactive:focus-within video {
  outline: 2px solid rgba(15, 124, 117, 0.72);
  outline-offset: 3px;
}

.feature-video {
  max-width: 1020px;
  margin: 0 auto;
}

.citation-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.citation-card h3 {
  margin: 0 0 30px;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.citation-reference {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.citation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
}

.citation-copy {
  flex-shrink: 0;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f1f1;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.citation-copy:hover {
  background: var(--soft-strong);
}

.citation-copy:focus-visible,
.citation-code:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.citation-code {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9f9f9;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.citation-code code {
  font: inherit;
}

.citation-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.citation-status:empty {
  display: none;
}

.highlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 23px;
  align-items: stretch;
}

.highlight-layout .feature-video {
  max-width: none;
  margin: 0;
}

.key-moments {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
  background: #e7ecea;
}

.key-moments h3 {
  margin: 0 0 12px;
  color: #14212a;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}

.key-moment-list {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.key-moment {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
  min-height: 74px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.key-moment:hover,
.key-moment:focus-visible,
.key-moment.active {
  border-color: rgba(0, 166, 81, 0.48);
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.key-moment-media {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #07100d;
}

.key-moment-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.key-moment-time {
  position: absolute;
  right: 7px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(7, 16, 13, 0.76);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.key-moment-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 10px 0;
}

.key-moment-index {
  color: #8b9792;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.key-moment-title {
  color: #66736e;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  white-space: nowrap;
}

.scenario-list {
  display: grid;
  gap: 34px;
}

.scenario {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.scenario:first-child {
  padding-top: 0;
  border-top: 0;
}

.scenario-heading {
  margin-bottom: 18px;
}

.scenario-heading h3 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: #14212a;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: clamp(1.28rem, 1.6vw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

.scenario-heading .scenario-description {
  max-width: 860px;
  margin: 7px 0 0;
  color: #66736e;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.52;
  text-align: left;
}

.scenario-number {
  color: #14212a;
}

.scenario-title {
  color: var(--accent);
}

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

.long-video-list {
  display: grid;
  max-width: 1020px;
  margin: 0 auto;
  gap: 32px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #101820;
  color: #d9e2df;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media screen and (max-width: 860px) {
  .side-nav {
    display: none;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 13px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner {
    padding: 46px 0 44px;
  }

  .publication-title {
    font-size: 2.16rem;
  }

  .publication-authors {
    font-size: 1.12rem;
  }

  .section {
    padding: 44px 0 50px;
  }

  .section-heading h2 {
    font-size: 1.58rem;
  }

  .highlight-layout {
    grid-template-columns: 1fr;
  }

  .highlight-container {
    width: min(100% - 24px, 1180px);
  }

  .key-moment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-moment {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .paired-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 1680px) {
  .side-nav {
    display: none;
  }
}

@media screen and (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .publication-title {
    font-size: 1.72rem;
  }

  .publication-affiliation {
    font-size: 1rem;
  }

  .publication-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .key-moment-list {
    grid-template-columns: 1fr;
  }

  .key-moment {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .prompt-badge {
    top: calc(34% + 10px);
    left: 50%;
    max-width: calc(100% - 20px);
    padding: 6px 9px;
    font-size: 0.76rem;
  }

}
