:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0f766e;
  --accent-soft: #ecfdf5;
  --accent-deep: #115e59;
  --disabled-bg: rgba(17, 24, 39, 0.04);
  --disabled-text: rgba(17, 24, 39, 0.45);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  --max-width: 1180px;
  --hero-width: 1120px;
  --fs-micro: 0.72rem;
  --fs-xs: 0.78rem;
  --fs-sm: 0.92rem;
  --fs-base: 1.02rem;
  --fs-md: 1.12rem;
  --fs-lg: 1.3rem;
  --fs-xl: 1.58rem;
  --fs-subsection: 1.75rem;
  --fs-section: 2.6rem;
  --fs-hero-mark: 3.35rem;
  --fs-hero-mark-mobile: 2.75rem;
  --fs-hero-title: 1.62rem;
  --line-tight: 1.15;
  --line-normal: 1.6;
  --line-relaxed: 1.75;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: var(--line-normal);
  color: var(--text);
  background: var(--bg);
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.brand,
.eyebrow,
.mono-label {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0;
}

.brand {
  font-size: var(--fs-base);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: var(--fs-base);
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 54px 0 18px;
}

.hero-copy {
  width: min(100%, var(--hero-width));
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.mono-label {
  margin: 0 0 14px;
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
}

#hero-eyebrow {
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
  font-size: var(--fs-hero-mark);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.08;
  color: #0f172a;
  text-indent: 0.08em;
}

.hero h1,
.section-heading h2,
.footer h2,
.method-step h3 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-family: "Manrope", sans-serif;
  font-size: var(--fs-hero-title);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  color: #374151;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 68ch;
  margin: 18px auto 18px;
  font-size: var(--fs-base);
  line-height: var(--line-relaxed);
  color: var(--muted);
}

.author-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 20px;
  margin-bottom: 14px;
  width: min(100%, var(--hero-width));
  margin-left: auto;
  margin-right: auto;
}

.author-chip {
  color: #1d8fe8;
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0;
}

.author-affiliations {
  margin-left: 3px;
  font-size: 0.68em;
  vertical-align: super;
  line-height: 0;
}

.author-separator {
  color: #9ca3af;
  font-size: var(--fs-xs);
}

.affiliation-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  width: min(100%, var(--hero-width));
  margin-left: auto;
  margin-right: auto;
}

.affiliation-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.affiliation-row-notes {
  gap: 6px 18px;
}

.affiliation-item {
  margin: 0;
  color: #64748b;
  font-size: var(--fs-base);
  line-height: 1.55;
}

.affiliation-note {
  font-size: var(--fs-base);
}

.affiliation-marker {
  font-size: 0.78em;
  vertical-align: super;
  line-height: 0;
}

.hero-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(100%, var(--hero-width));
  margin-left: auto;
  margin-right: auto;
}

.hero-link-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 17px 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-link-card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.hero-link-card.disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
  pointer-events: none;
}

.hero-link-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-link-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.hero-link-label {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.1;
}

.hero-link-note {
  margin: 2px 0 0 23px;
  font-size: var(--fs-micro);
  line-height: 1.1;
  color: var(--muted);
}

.hero-link-card.disabled .hero-link-label,
.hero-link-card.disabled .hero-link-note {
  color: var(--disabled-text);
}

.hero-card {
  width: min(100%, var(--hero-width));
  margin: 0 auto;
  text-align: center;
}

.card-label {
  margin: 4px 0 12px;
  color: #64748b;
  font-size: var(--fs-sm);
  letter-spacing: 0;
}

.hero-card h2 {
  margin: 10px 0;
  font-size: var(--fs-subsection);
}

.hero-card p {
  line-height: var(--line-relaxed);
}

.video-frame {
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faf9, #fcfcfc);
}

.video-frame iframe,
.video-frame video,
.video-frame img,
.demo-browser-frame iframe,
.demo-browser-frame video,
.modal-body iframe,
.modal-body video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame img {
  display: block;
  object-fit: contain;
}

.poster-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(160deg, #f6fbf9, #ffffff);
}

.poster-panel strong {
  max-width: 24ch;
  font-size: var(--fs-xl);
  line-height: 1.08;
}

.poster-panel span {
  margin-top: 10px;
  max-width: 58ch;
  line-height: var(--line-normal);
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding: 72px 0 0;
}

.section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.section-heading h2,
.footer h2 {
  font-size: var(--fs-section);
  line-height: var(--line-tight);
}

.overview-grid {
  display: grid;
  gap: 20px;
}

.overview-grid {
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}

.overview-card,
.footer {
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.overview-card,
.footer {
  padding-top: 10px;
}

.overview-card p,
#contact-description,
#abstract-text,
.method-step p,
.demo-browser-summary {
  line-height: var(--line-relaxed);
  color: var(--muted);
}

#abstract-text {
  max-width: 90ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.text-strong {
  color: var(--text);
  font-weight: 700;
}

.bullet-list {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
  display: grid;
  gap: 10px;
  text-align: center;
}

.tracking-carousel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.tracking-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.tracking-card {
  display: grid;
  grid-template-rows: auto auto;
  flex: 0 0 calc((100% - 52px) / 3);
  min-width: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  scroll-snap-align: start;
}

.tracking-card.clickable-media {
  cursor: pointer;
}

.tracking-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f7faf9, #fcfcfc);
}

.tracking-media iframe,
.tracking-media video,
.tracking-media .poster-panel {
  width: 100%;
  height: 100%;
  border: 0;
}

.tracking-media video {
  display: block;
  object-fit: contain;
  background: #000;
}

.tracking-media .poster-panel {
  padding: 20px;
  text-align: left;
}

.tracking-media .poster-panel strong {
  font-size: var(--fs-lg);
}

.tracking-card-body {
  display: grid;
  align-content: center;
  padding: 18px 22px;
  text-align: left;
}

.tracking-card-body h3 {
  margin: 0;
  font-size: var(--fs-md);
}

.tracking-card-body p {
  display: none;
}

.carousel-arrow {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: var(--fs-xl);
  line-height: 1;
}

.carousel-arrow:hover {
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--accent-deep);
}

.demo-browser {
  max-width: 1080px;
  margin: 46px auto 0;
}

.demo-task-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.demo-task-tab {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: pre-line;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.demo-task-tab.active {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-deep);
}

.demo-browser-card {
  text-align: center;
}

.demo-browser-heading {
  max-width: 760px;
  margin: 0 auto 18px;
}

.demo-browser-title {
  margin: 0;
  font-size: var(--fs-subsection);
  line-height: var(--line-tight);
}

.demo-browser-summary {
  margin: 12px auto 0;
}

.demo-setup-strip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  max-width: 700px;
  margin: 0 auto 20px;
}

.demo-nav-arrow {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: var(--fs-xl);
  line-height: 1;
}

.demo-nav-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-setup-status {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.demo-browser-stage-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.demo-browser-visual {
  width: 100%;
}

.demo-media-shell {
  position: relative;
  min-height: 380px;
}

.demo-browser-frame {
  display: grid;
  grid-template-rows: minmax(0, 8fr) minmax(88px, 2fr);
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faf9, #fcfcfc);
}

.demo-frame-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.demo-frame-media iframe,
.demo-frame-media video,
.demo-media-placeholder {
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-frame-media video {
  object-fit: contain;
}

.demo-media-placeholder {
  display: block;
}

.demo-frame-caption {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  text-align: left;
}

.demo-frame-caption h4,
.demo-frame-caption p {
  margin: 0;
}

.demo-frame-caption h4 {
  font-size: var(--fs-lg);
  line-height: 1.2;
}

.demo-frame-caption p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.modal-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.tag-row,
.demo-browser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-browser-tags {
  justify-content: center;
  margin-top: 18px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-deep);
  font-size: var(--fs-xs);
}

.method-steps {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  justify-items: stretch;
}

.method-step {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.method-step.has-media {
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 10px;
  text-align: left;
}

.method-step.has-media .step-number {
  grid-row: auto;
}

.method-step-media {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7faf9, #fcfcfc);
}

.method-step-media.has-image {
  aspect-ratio: auto;
  background: transparent;
}

.method-step-media img,
.method-step-media video,
.method-step-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.method-step-media.has-image img {
  height: auto;
}

.method-step-media img,
.method-step-media video {
  object-fit: contain;
}

.method-step-media.has-video video {
  object-fit: cover;
  object-position: center top;
  transform: translateY(-14%) scale(1.08);
  transform-origin: top center;
}

.step-number {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 18px;
  background: var(--accent-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--accent-deep);
}

.method-step p {
  margin: 10px 0 0;
  max-width: 86ch;
  font-size: var(--fs-base);
  line-height: 1.72;
}

.method-step h3 {
  font-size: var(--fs-lg);
  line-height: 1.18;
}

.results-panel {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.results-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 960px);
  margin: 0 auto;
  gap: 18px;
}

.results-figure-card {
  text-align: left;
}

.results-figure-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.results-figure-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.results-figure-placeholder {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0;
  text-transform: uppercase;
}

.results-figure-card p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.results-findings {
  max-width: 900px;
  margin: 52px auto 0;
  text-align: center;
}

.results-summary {
  width: min(100%, 960px);
  margin: 10px auto 28px;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  text-align: left;
  color: #374151;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.55;
}

.results-summary li {
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fafafa);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  display: grid;
  align-content: center;
  text-align: center;
}

.results-summary:empty {
  display: none;
}

.results-findings h3 {
  margin: 0 0 18px;
  font-size: var(--fs-xl);
}

.results-findings .bullet-list {
  gap: 14px;
  font-size: var(--fs-base);
  line-height: var(--line-relaxed);
}

.results-findings .bullet-list li:empty {
  list-style: none;
}

.results-findings .bullet-list li.media-only {
  list-style: none;
}

.results-finding-media {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  margin: 16px auto 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.results-finding-media video,
.results-finding-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.results-finding-media video {
  object-fit: contain;
}

.failure-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.failure-card {
  display: grid;
  gap: 10px;
}

.failure-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000;
}

.failure-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.failure-card h3 {
  display: none;
}

.footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer > div {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.citation-section {
  padding-bottom: 24px;
}

.citation-block {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
  white-space: pre;
}

.citation-block code {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-sm);
  line-height: var(--line-relaxed);
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 20, 32, 0.82);
}

.media-modal.hidden {
  display: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.modal-body {
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1080px) {
  .overview-grid,
  .demo-browser-stage-inner {
    grid-template-columns: 1fr;
  }

  .tracking-card {
    flex-basis: calc((100% - 26px) / 2);
  }

}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero {
    padding-top: 28px;
  }

  #hero-eyebrow {
    font-size: var(--fs-hero-mark-mobile);
  }

  .hero h1 {
    max-width: 100%;
    font-size: var(--fs-xl);
    line-height: 1.18;
    white-space: normal;
  }

  .hero-links {
    justify-content: center;
  }

  .tracking-carousel {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .tracking-card {
    flex-basis: 100%;
    min-width: 100%;
  }

  .demo-task-tabs {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    width: 48px;
    height: 48px;
  }

  .demo-setup-strip {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .demo-nav-arrow {
    width: 48px;
    height: 48px;
  }

  .demo-media-shell,
  .demo-browser-frame {
    min-height: 340px;
  }

  .demo-frame-caption {
    padding: 16px;
    text-align: center;
  }

  .demo-browser-tags {
    justify-content: center;
  }

  .results-figures {
    grid-template-columns: 1fr;
  }

  .results-figure-card p {
    white-space: normal;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }

  .failure-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    justify-content: center;
  }

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

  .method-step.has-media {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .method-step.has-media .step-number {
    grid-row: auto;
  }
}
