:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f7f7f5;
  --line: #e6e8e5;
  --text: #1f2320;
  --muted: #6a6f69;
  --accent: #b75d26;
  --accent-deep: #8d471d;
  --accent-soft: #f7ece4;
  --green: #496b54;
  --green-soft: #edf4ef;
  --shadow: 0 14px 30px rgba(31, 35, 32, 0.06);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(106, 111, 105, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 111, 105, 0.05) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.12) 72%, transparent 100%);
}

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

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

code,
pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(230, 232, 229, 0.92);
}

.site-header-inner,
.page-main,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

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

.brand,
h1,
h2,
h3 {
  font-family: "Newsreader", serif;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a {
  padding: 8px 0;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--accent-deep);
}

.page-main {
  padding: 44px 0 56px;
}

.hero,
.media-section,
.info-strip,
.section {
  margin-bottom: 34px;
}

.hero {
  text-align: center;
  padding-top: 18px;
}

.hero-kicker,
.hero-meta,
.section-head p,
.caption-text,
.info-label,
.task-subtitle,
.status,
.news-date,
.author-affiliations,
.author-note {
  color: var(--muted);
}

.hero-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 800;
}

h1 {
  margin: 0 auto;
  max-width: 24ch;
  font-size: clamp(2.35rem, 4.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.author-block {
  max-width: 980px;
  margin: 18px auto 0;
}

.author-line,
.author-affiliations,
.author-note {
  margin: 0;
  line-height: 1.75;
}

.author-line {
  font-size: 1rem;
}

.author-line + .author-line {
  margin-top: 8px;
}

.author-affiliations {
  margin-top: 14px;
  font-size: 0.95rem;
}

.affiliation-item {
  display: block;
}

.affiliation-item + .affiliation-item {
  margin-top: 4px;
}

.author-note {
  margin-top: 10px;
  font-size: 0.94rem;
}

.author-note a {
  color: var(--accent-deep);
  font-weight: 700;
}

.author-block sup {
  font-size: 0.68em;
  vertical-align: super;
}

.hero-subtitle {
  max-width: 780px;
  margin: 20px auto 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-meta {
  margin: 16px auto 0;
  max-width: 760px;
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 35, 32, 0.04);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.resource-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(31, 35, 32, 0.07);
}

.button-primary {
  border-color: rgba(201, 106, 43, 0.3);
  background: linear-gradient(180deg, #d97836 0%, #c96a2b 100%);
  color: #fff8ef;
}

.button-muted {
  color: var(--muted);
  background: linear-gradient(180deg, #fbfbfa 0%, #f5f5f2 100%);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}

.media-frame,
.panel,
.snapshot-card,
.task-card,
.schema-card,
.resource-card,
.table-panel,
.news-item,
.info-chip,
.figure-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.caption-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-chip {
  padding: 18px 18px 16px;
  border-radius: 16px;
}

.info-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding-top: 6px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
}

.section-head p {
  margin: 10px 0 0;
  line-height: 1.75;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.two-column-grid,
.snapshot-grid,
.task-grid,
.schema-grid,
.benchmark-grid,
.resource-grid,
.news-list,
.figure-grid {
  display: grid;
  gap: 16px;
}

.video-grid {
  grid-template-columns: 1fr;
  max-width: 1120px;
  margin: 0 auto;
}

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

.snapshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.schema-grid,
.resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.figure-grid-collection,
.figure-grid-annotation {
  grid-template-columns: 1fr;
}

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

.paired-figure-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr);
  align-items: stretch;
}

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

.panel,
.snapshot-card,
.task-card,
.schema-card,
.resource-card,
.news-item,
.figure-card {
  padding: 16px;
  border-radius: var(--radius);
}

.figure-card {
  margin: 0;
}

.figure-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #ffffff;
}

.figure-card-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

.figure-card-centered img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.figure-card-statistics {
  max-width: 1000px;
  margin: 0 auto 18px;
  padding-inline: 24px;
}

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

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

.figure-card-paired,
.figure-card-workstation {
  height: 100%;
}

.figure-card-paired img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.figure-card-workstation {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.figure-card-video-placeholder {
  padding: 18px;
}

.figure-card-video {
  padding: 16px;
}

.media-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: #0f1110;
  pointer-events: none;
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  border-radius: 16px;
  border: 1.5px dashed #d7dbd6;
  background:
    radial-gradient(circle at top, rgba(183, 93, 38, 0.07), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #fbfbf9 100%);
  display: grid;
  place-items: center;
  padding: 28px;
}

.media-placeholder-copy {
  text-align: center;
}

.media-placeholder strong {
  display: block;
  font-family: "Newsreader", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.media-placeholder span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.figure-card-full {
  margin-bottom: 18px;
}

.full-span {
  grid-column: 1 / -1;
}

.panel ul,
.table-panel table,
.news-item p,
.task-card p,
.snapshot-card p,
.schema-card p,
.resource-card p,
.panel p,
.panel pre {
  margin: 0;
}

.panel ul,
.task-card p:last-child,
.snapshot-card p,
.schema-card p,
.resource-card p,
.news-item p {
  line-height: 1.7;
}

.panel ul {
  padding-left: 18px;
}

.panel li + li {
  margin-top: 8px;
}

.panel-accent {
  background: linear-gradient(180deg, #fcfcfb 0%, #ffffff 100%);
}

.panel-placeholder {
  background: linear-gradient(180deg, #fbfbfa 0%, #ffffff 100%);
}

.snapshot-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.task-card {
  position: relative;
  overflow: hidden;
}

.task-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 93, 38, 0.08), transparent 70%);
}

.task-subtitle {
  margin: -2px 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.news-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
}

.news-date {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-panel {
  overflow-x: auto;
  border-radius: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

th {
  font-size: 0.92rem;
  color: var(--accent-deep);
  background: #fbfbfa;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.status-live {
  background: var(--green-soft);
  color: var(--green);
}

.resource-card {
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

pre {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  overflow-x: auto;
  background: #fafaf8;
  border: 1px solid var(--line);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 44px;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-deep);
  font-weight: 700;
}

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

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

@media (max-width: 1080px) {
  .snapshot-grid,
  .schema-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .site-header-inner,
  .site-footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .page-main {
    width: min(calc(100% - 20px), var(--max-width));
    margin: 0 auto;
  }

  .site-header-inner {
    min-height: 64px;
    display: grid;
    justify-content: stretch;
    padding: 12px 0;
  }

  .site-nav {
    gap: 10px 16px;
  }

  .info-strip,
  .two-column-grid,
  .video-grid,
  .snapshot-grid,
  .task-grid,
  .schema-grid,
  .benchmark-grid,
  .resource-grid,
  .figure-grid,
  .figure-grid-collection,
  .figure-grid-tasks,
  .figure-grid-annotation,
  .paired-figure-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .brand-logo {
    height: 40px;
  }

  .figure-card-statistics {
    padding-inline: 16px;
  }

  .media-placeholder {
    min-height: 220px;
  }

  .author-line,
  .author-affiliations,
  .author-note {
    font-size: 0.94rem;
  }
}
