:root {
  --ink: #172033;
  --ink-soft: #354055;
  --muted: #6e7685;
  --line: #dfe4ea;
  --line-strong: #cbd3de;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --light: #f1f3f5;
  --link: #1d5fbc;
  --accent: #2468c9;
  --accent-dark: #153b68;
  --accent-soft: #eaf1fb;
  --shadow-sm: 0 8px 24px rgba(20, 31, 48, .055);
  --shadow-md: 0 18px 48px rgba(20, 31, 48, .085);
}

html { font-size: 17px; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; width: 100%; }
a { color: var(--link); }
::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 3px solid rgba(36, 104, 201, .32); outline-offset: 3px; }

.hero { display: block; }
.hero-body { padding: 2.3rem 1.5rem; }
.hero.is-light, .section.is-light { background: var(--light); }
.hero.is-small .hero-body { padding: 1.5rem; }
.container { width: min(100% - 2rem, 1152px); margin-inline: auto; }
.container.is-max-desktop { max-width: 960px; }
.container.is-widescreen { max-width: 1152px; }
.has-text-centered { text-align: center !important; }
.has-text-justified { text-align: justify !important; }
.columns { display: flex; margin: -.75rem; }
.columns.is-centered { justify-content: center; }
.columns.is-multiline { flex-wrap: wrap; }
.column { display: block; flex: 1 1 0; padding: .75rem; }
.column.is-five-sixths { flex: none; width: 83.3333%; }
.title { margin: 0 0 1.1rem; color: var(--ink); font-weight: 650; line-height: 1.125; }
.title.is-1 { font-size: 3rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.subtitle { margin: -.65rem 0 1.1rem; color: var(--ink); font-weight: 400; line-height: 1.25; }
.subtitle.is-6 { font-size: 1.05rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  padding: calc(.5em - 1px) 1em;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.is-dark { color: #fff; border-color: var(--accent-dark); background: var(--accent-dark); box-shadow: 0 5px 16px rgba(21, 59, 104, .14); }
.button.is-dark:hover { color: #fff; border-color: #0d2b4e; background: #0d2b4e; box-shadow: 0 8px 20px rgba(21, 59, 104, .2); }
.button.is-rounded { padding-inline: 1.25em; border-radius: 9999px; }
.content p:not(:last-child) { margin-bottom: 1em; }
.table-container { max-width: 100%; overflow: auto; }
.table { width: 100%; border-collapse: collapse; border-spacing: 0; background: var(--surface); }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--ink); font-weight: 600; }
.table.is-hoverable tbody tr:hover { background: #f7f9fb; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #fff;
  background: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.publication-header { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f4f6f8 100%); }
.publication-header::before {
  position: absolute;
  width: 34rem;
  height: 34rem;
  top: -23rem;
  left: 50%;
  border: 1px solid rgba(36, 104, 201, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(36, 104, 201, .025), 0 0 0 10rem rgba(36, 104, 201, .018);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}
.publication-header .hero-body { position: relative; padding: 3.8rem 1.5rem 3.2rem; }
.publication-title {
  max-width: 940px;
  margin: 0 auto .9rem !important;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(2.55rem, 5vw, 4.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em;
}
.publication-authors { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .7rem; max-width: 920px; margin: 0 auto 1rem; font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 1.02rem; line-height: 1.5; }
.publication-authors a { display: inline-flex; align-items: center; gap: .7rem; color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.publication-authors a:not(:last-child)::after { color: #9ba8ba; content: "·"; font-weight: 400; }
.publication-authors a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.publication-tldr { max-width: 840px; margin: .35rem auto 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.65; }
.publication-tldr strong { color: var(--accent-dark); font-weight: 700; }
.publication-venue {
  margin-bottom: .6rem !important;
  color: var(--accent-dark);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: .92rem !important;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.35rem; }
.publication-links .button { display: inline-flex; gap: .5rem; min-height: 2.65rem; padding-inline: 1.25rem; font-size: .88rem; }
.publication-links .button:last-child { color: var(--accent-dark); border-color: var(--line-strong); background: rgba(255,255,255,.75); box-shadow: none; }
.publication-links .button:last-child:hover { color: var(--accent-dark); border-color: #9eacc0; background: #fff; }

.teaser { border-bottom: 1px solid var(--line); background: var(--paper); }
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--accent);
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 1040px; margin-inline: auto; }
.demo-group + .demo-group { margin-top: 2.8rem; padding-top: 2.6rem; border-top: 1px solid var(--line-strong); }
.demo-group-heading { display: flex; align-items: flex-start; gap: .8rem; max-width: 1040px; margin: 0 auto 1.1rem; text-align: left; }
.demo-group-heading > span { flex: 0 0 auto; display: grid; width: 2.25rem; height: 2.25rem; place-items: center; color: var(--accent); border: 1px solid #b9cbe5; border-radius: 7px; background: var(--accent-soft); font-family: "Google Sans", sans-serif; font-size: .68rem; font-weight: 700; }
.demo-group-heading h3 { margin: 0; color: var(--ink); font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 1.3rem; font-weight: 650; line-height: 1.2; }
.demo-group-heading p { margin: .3rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.video-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.video-frame { position: relative; border-bottom: 1px solid var(--line); background: #f2f4f7; overflow: hidden; }
.episode-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.episode-clip { min-width: 0; background: var(--surface); overflow: hidden; }
.episode-label { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 30px; padding: .35rem .5rem; color: var(--muted); border-bottom: 1px solid var(--line); background: #f7f9fb; font-size: .56rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.episode-label b { display: grid; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; place-items: center; color: var(--accent-dark); border: 1px solid #c8d7eb; border-radius: 50%; background: #fff; font-family: "Google Sans", sans-serif; font-size: .58rem; line-height: 1; }
.episode-clip video { display: block; width: 100%; }
.video-card video { aspect-ratio: 1; object-fit: contain; background: var(--surface); }
.video-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 54px; padding: .65rem .8rem; }
.video-card figcaption span, .video-card figcaption strong, .video-card figcaption small { display: block; }
.video-card figcaption strong { color: var(--ink); font-size: .94rem; font-weight: 650; }
.video-card figcaption small { margin-top: .18rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.video-card figcaption b { flex: 0 0 auto; padding: .4rem .65rem; color: #0b5c45; border-radius: 999px; background: #e5f6ef; font-family: "Google Sans", "Noto Sans", sans-serif; font-size: .92rem; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.video-card figcaption b em { margin-right: .28rem; font-size: .52rem; font-style: normal; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: .08em; opacity: .7; }
.density-card figcaption b { font-size: 1.08rem; }
.video-card.is-challenge figcaption b { color: #8a4d00; background: #fff1d6; }
.caption { max-width: 850px; margin: .8rem auto 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.section { padding: 3.8rem 1.5rem; }
.section.teaser { padding-top: 3.6rem; padding-bottom: 3.8rem; }
.section-divider { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.55rem; }
.section-heading .subtitle { max-width: 760px; margin-inline: auto; color: var(--muted); }
.training-distribution { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.2rem; max-width: 1040px; margin: 0 auto 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid #c8d7eb; border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); text-align: left; }
.training-distribution-label { padding: .4rem .7rem; color: #fff; border-radius: 999px; background: var(--accent-dark); font-family: "Google Sans", "Noto Sans", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.training-distribution p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; text-align: left; }
.training-distribution strong { color: var(--ink); font-size: inherit; font-weight: 700; }
.title { font-family: "Google Sans", "Noto Sans", sans-serif; }
.abstract-copy { padding: 1.55rem 1.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.abstract-copy p { margin-bottom: 1rem; color: var(--ink-soft); }

.figure-shell { margin: 0; padding: clamp(.7rem, 1.5vw, 1rem); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.figure-shell img { max-height: 540px; object-fit: contain; background: var(--surface); }
.method-figure { margin-top: 1.4rem; }
.method-figure img { max-height: 330px; }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 960px; margin-inline: auto; }
.feature-list p { margin: 0 !important; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.feature-list strong { display: block; margin-bottom: .35rem; color: var(--ink); }

.result-highlight { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: .6rem; color: #fff; border: 1px solid var(--accent-dark); border-radius: 10px; background: var(--accent-dark); box-shadow: var(--shadow-md); overflow: hidden; }
.result-highlight > div { padding: 1.35rem 1.5rem; }
.result-highlight-value { border-right: 1px solid rgba(255,255,255,.18); }
.result-highlight span { display: block; color: #bbd4f4; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.result-highlight strong { display: block; margin-top: .35rem; color: #fff; font-family: "Google Sans", sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.result-highlight small { display: block; margin-top: .45rem; color: #dce9f8; font-size: .84rem; }
.result-highlight-finding { align-self: center; }
.result-highlight-finding strong { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.result-highlight-finding p { margin: .45rem 0 0; color: #e4edf7; font-size: .95rem; line-height: 1.5; }

.result-density-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .9rem; }
.density-result-card { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.density-result-card > span { display: block; color: var(--accent-dark); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.density-result-card strong { display: inline-block; margin-top: .35rem; color: var(--ink); font-family: "Google Sans", sans-serif; font-size: 1.6rem; line-height: 1; letter-spacing: -.025em; }
.density-result-card small { margin-left: .35rem; color: var(--muted); font-size: .78rem; }
.density-result-card p { margin: .45rem 0 0; color: var(--muted); font-size: .86rem; }
.density-result-card.is-emphasized { border-color: #afc4df; background: var(--accent-soft); }

.chart-card { margin: 1.6rem 0 0; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.chart-card img { width: 100%; height: auto; }
.chart-card figcaption { max-width: 820px; margin: .8rem auto .15rem; color: var(--muted); font-size: .9rem; line-height: 1.55; text-align: center; }
.dense-chart { margin-top: .9rem; }
.ood-chart { max-width: 960px; margin: 0 auto 1.2rem; }

.result-evidence-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: .9rem; margin-top: .9rem; }
.result-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.result-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #f7f9fb; }
.result-panel-heading h3 { margin: 0; color: var(--ink); font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 1rem; }
.result-panel-heading span { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.result-table-wrap { margin: 0; overflow: hidden; }
.result-table { margin: 0 !important; }
.result-table th, .result-table td { padding: .68rem 1rem !important; vertical-align: middle; }
.result-table th:last-child, .result-table td:last-child { text-align: right; }
.result-table tbody tr.is-best { background: var(--accent-soft); }
.result-table tbody tr.is-best td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.result-protocol-list { margin: 0; padding: .25rem 1rem .65rem; }
.result-protocol-list > div { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.result-protocol-list > div:last-child { border-bottom: 0; }
.result-protocol-list dt { color: var(--ink); font-family: "Google Sans", sans-serif; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.result-protocol-list dd { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.result-caveat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .8rem; margin-top: .9rem; padding: .85rem 1rem; border: 1px solid #e5d1a8; border-left: 3px solid #bd7914; border-radius: 8px; background: #fffaf0; }
.result-caveat > span { padding: .25rem .5rem; color: #75470a; border-radius: 999px; background: #f7e2ba; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.result-caveat p { margin: 0; color: #66563f; font-size: .82rem; line-height: 1.5; }

.ood-macro { display: inline-flex; align-items: baseline; gap: .55rem; margin: .35rem 0 0; padding: .55rem .8rem; border: 1px solid #c8d7eb; border-radius: 999px; background: var(--accent-soft); }
.ood-macro strong { color: var(--accent-dark); font-family: "Google Sans", sans-serif; font-size: 1.35rem; }
.ood-macro span { color: var(--muted); font-size: .82rem; }

.scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.scenario-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.scenario-grid img { aspect-ratio: 1; object-fit: cover; }
.scenario-grid figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .9rem 1rem; font-size: .9rem; }
.scenario-grid figcaption span { color: var(--muted); white-space: nowrap; }

.ood-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 1040px; margin-inline: auto; }
.ood-card { grid-column: span 1; }
.ood-card figcaption { min-height: 70px; }
.ood-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc((100% - .9rem) / 2); justify-self: center; }

.platform-demo { margin: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.platform-video-frame { padding: .55rem; background: #0a0e14; }
.platform-demo video { aspect-ratio: 2 / 1; object-fit: contain; background: #0a0e14; }
.platform-demo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; }
.platform-demo figcaption span, .platform-demo figcaption strong, .platform-demo figcaption small { display: block; }
.platform-demo figcaption strong { color: var(--ink); font-size: .92rem; }
.platform-demo figcaption small { margin-top: .18rem; color: var(--muted); font-size: .86rem; }
.platform-demo figcaption b { flex: 0 0 auto; padding: .34rem .65rem; color: #254f9b; border: 1px solid #c8d8fa; border-radius: 999px; background: #edf3ff; font-size: .7rem; white-space: nowrap; }
.platform-metrics { margin-top: .8rem; }
.platform-metrics .column { text-align: center; }
.platform-metrics strong, .platform-metrics span { display: block; }
.platform-metrics strong { font-family: "Google Sans", sans-serif; font-size: 1.55rem; }
.platform-metrics span { color: var(--muted); font-size: .88rem; }
.platform-coming-soon { display: flex; align-items: center; gap: .8rem; margin-top: .7rem; padding: .8rem 1rem; border: 1px solid #c8d7eb; border-radius: 8px; background: var(--accent-soft); text-align: left; }
.platform-coming-soon > span { flex: 0 0 auto; padding: .28rem .58rem; color: #fff; border-radius: 999px; background: var(--accent); font-family: "Google Sans", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.platform-coming-soon p, .platform-coming-soon strong, .platform-coming-soon small { display: block; margin: 0; }
.platform-coming-soon strong { color: #253652; font-size: .88rem; }
.platform-coming-soon small { margin-top: .15rem; color: var(--muted); font-size: .86rem; }

.footer { padding: 2rem 1.5rem; border-top: 1px solid var(--line); background: #eceff2; }
.footer p { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .columns { flex-wrap: wrap; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ood-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ood-card { grid-column: span 1; }
}

@media (max-width: 600px) {
  .publication-header .hero-body { padding: 2.7rem 1rem 2.35rem; }
  .publication-title { font-size: clamp(2.05rem, 10.8vw, 3rem) !important; }
  .publication-venue { font-size: .8rem !important; }
  .publication-links { align-items: stretch; flex-direction: column; }
  .publication-links .button { width: 100%; }
  .columns { display: block; margin: 0; }
  .column, .column.is-five-sixths { width: 100%; padding: .55rem 0; }
  .section { padding: 3rem 1rem; }
  .section.teaser { padding: 3rem 1rem; }
  .abstract-copy { padding: 1.4rem 1.25rem; text-align: left !important; }
  .training-distribution { grid-template-columns: 1fr; gap: .55rem; }
  .training-distribution-label { justify-self: start; }
  .demo-grid, .ood-video-grid { grid-template-columns: 1fr; }
  .ood-card:last-child:nth-child(odd) { grid-column: span 1; width: 100%; }
  .demo-group + .demo-group { margin-top: 2.2rem; padding-top: 2.2rem; }
  .demo-group-heading { gap: .75rem; }
  .demo-group-heading > span { width: 2rem; height: 2rem; }
  .episode-pair { grid-template-columns: 1fr; }
  .video-card figcaption { align-items: flex-start; flex-wrap: wrap; }
  .feature-list { grid-template-columns: 1fr; }
  .result-highlight { grid-template-columns: 1fr; }
  .result-highlight-value { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .result-density-grid, .result-evidence-grid { grid-template-columns: 1fr; }
  .result-caveat { grid-template-columns: 1fr; }
  .result-caveat > span { justify-self: start; }
  .chart-card { padding: .45rem; }
  .chart-card figcaption { padding-inline: .35rem; }
  .scenario-grid { grid-template-columns: 1fr; }
  .result-table th, .result-table td { padding: .7rem .6rem !important; font-size: .78rem; }
  .platform-metrics { display: grid; grid-template-columns: 1fr; gap: .7rem; }
  .platform-demo figcaption { align-items: flex-start; flex-direction: column; }
  .platform-coming-soon { align-items: flex-start; }
}

@media (hover: hover) {
  .video-card:hover { border-color: #b7c4d5; box-shadow: var(--shadow-md); transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .video-card { transition: none; }
}
