:root {
  --bg: #f5f2eb;
  --bg-soft: #ece5d9;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --ink: #171a20;
  --muted: #5f6470;
  --line: rgba(23, 26, 32, 0.09);
  --accent: #20344d;
  --accent-strong: #132337;
  --accent-soft: #dfe6ef;
  --gold-soft: #c8a88a;
  --shadow: 0 24px 70px rgba(18, 28, 42, 0.08);
  --shadow-soft: 0 14px 36px rgba(18, 28, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --content-width: min(1280px, calc(100vw - 56px));
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(180deg, #f8f5ef 0%, #f3efe7 42%, #eee7dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 52, 77, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 52, 77, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
  pointer-events: none;
  z-index: -3;
}

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -2;
}

.page-glow-left {
  top: 68px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: rgba(198, 168, 138, 0.22);
}

.page-glow-right {
  top: 140px;
  right: -110px;
  width: 420px;
  height: 420px;
  background: rgba(135, 154, 179, 0.16);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.52;
}

.site-shell {
  min-height: 100vh;
  position: relative;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  width: var(--content-width);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand,
.topnav a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.topnav a {
  position: relative;
  font-size: 0.92rem;
  color: #263241;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 84px 0;
}

.section-shell {
  position: relative;
}

.stats-section {
  width: min(1420px, calc(100vw - 40px));
  padding: 46px 0 44px;
}

.section-frame {
  position: relative;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.stats-frame {
  overflow: hidden;
  padding-left: 46px;
  padding-right: 46px;
}

.section-frame-strong {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.26));
}

.hero {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: minmax(700px, 1.22fr) minmax(420px, 0.78fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 84px;
  row-gap: 18px;
  padding-top: 160px;
}

.hero-copy,
.hero-aside,
.hero-sensor-strip {
  position: relative;
}

.hero-copy {
  padding: 0;
  z-index: 2;
}

.hero-aside {
  display: grid;
  gap: 18px;
  align-content: start;
  z-index: 2;
}

.hero-sensor-strip {
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 2px 0 0;
  margin-top: 18px;
  pointer-events: none;
  opacity: 0.56;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.92) 8%, rgba(0, 0, 0, 0.92) 92%, transparent 100%);
}

.hero-sensor-row {
  position: relative;
  left: 0;
  display: flex;
  gap: 18px;
  width: max-content;
}

.hero-sensor-row-top {
  display: none;
}

.hero-sensor-row-bottom {
  margin-left: -180px;
  animation: heroSensorSlideRight 38s linear infinite;
}

.hero-sensor-card {
  width: 176px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 26px rgba(20, 30, 44, 0.08);
  backdrop-filter: blur(8px);
}

.hero-sensor-image-shell {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.hero-sensor-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.hero-sensor-card span {
  display: block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -18px -22px -14px -18px;
  z-index: -1;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.98), rgba(248, 245, 239, 0.94) 66%, rgba(248, 245, 239, 0.34)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.84), transparent 62%);
  box-shadow: 0 18px 40px rgba(248, 245, 239, 0.36);
}

.hero-copy h1,
.hero-copy .hero-slogan,
.hero-copy .hero-description,
.hero-copy .eyebrow {
  text-shadow: 0 2px 14px rgba(248, 245, 239, 0.82);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-head h2,
.modal-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.96;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(3.1rem, 5.4vw, 6rem);
  max-width: none;
  letter-spacing: -0.04em;
  text-wrap: nowrap;
  color: #12161d;
}

.hero-slogan {
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 1.35vw, 1.26rem);
  color: #172231;
  font-weight: 600;
  max-width: none;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-description,
.section-head p,
.maintainers,
.modal-card p {
  color: var(--muted);
  line-height: 1.7;
}

#contribute-modal-copy {
  color: #1b2430;
  font-weight: 600;
}

#contribute-modal-copy p {
  text-align: justify;
  text-justify: inter-word;
  color: #1b2430;
}

#contribute-modal-copy a,
#contribute-modal-copy strong,
#contribute-modal-copy code {
  font-weight: 700;
}

.hero-description {
  max-width: 39rem;
  margin: 18px 0 0;
  font-size: 1rem;
  text-align: justify;
  color: #495667;
  font-weight: 500;
}

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

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  color: #5f6772;
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-footnote span {
  position: relative;
  padding-left: 16px;
}

.hero-footnote span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
  transform: translateY(-50%);
}

.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f8fafc;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: #24364c;
}

.white-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--surface));
  border: 1px solid rgba(24, 27, 32, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-width: 460px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(36, 54, 76, 0.07), transparent 34%),
    linear-gradient(315deg, rgba(211, 222, 234, 0.28), transparent 42%);
  pointer-events: none;
}

.hero-panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.panel-kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.panel-caption {
  margin: 8px 0 0;
  color: #55606c;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.summary-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(240, 243, 247, 0.96), rgba(255, 255, 255, 0.99)),
    #ffffff;
  border: 1px solid rgba(36, 54, 76, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 230, 239, 0.7), rgba(223, 230, 239, 0));
}

.summary-card .summary-value {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent-strong);
}

.summary-card .summary-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.hero-aside-note {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.hero-aside-note p {
  margin: 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(2.05rem, 3.2vw, 3.5rem);
  letter-spacing: -0.025em;
}

.stats-carousel {
  position: relative;
  margin-top: 10px;
}

.stats-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  margin: 0;
}

.stats-section .section-head {
  margin-bottom: 18px;
}

.stats-card {
  position: absolute;
  top: 50%;
  width: min(520px, 35.8vw);
  min-height: 440px;
  padding: 34px 34px 32px;
  transition:
    left 420ms ease,
    top 420ms ease,
    transform 420ms ease,
    opacity 320ms ease,
    box-shadow 320ms ease,
    filter 320ms ease;
  cursor: default;
}

.stats-card[data-pos="center-left"] {
  left: 31.5%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

.stats-card[data-pos="center-right"] {
  left: 68.5%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

.stats-card[data-pos="left"] {
  left: 9%;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0.4;
  z-index: 1;
  cursor: pointer;
  filter: saturate(0.78) blur(0.2px);
}

.stats-card[data-pos="right"] {
  left: 91%;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0.4;
  z-index: 1;
  cursor: pointer;
  filter: saturate(0.78) blur(0.2px);
}

.stats-card-side::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.62));
  pointer-events: none;
}

.stats-card h3 {
  margin: 0 0 24px;
  font-size: 1.78rem;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.stats-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.stats-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3f7fb, #eaf0f7);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(36, 54, 76, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

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

.metric {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(250, 251, 253, 0.98), rgba(238, 231, 218, 0.96));
  border: 1px solid rgba(36, 54, 76, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(16, 28, 44, 0.05);
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 226, 236, 0.8), rgba(223, 230, 239, 0));
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(32, 52, 77, 0.74), rgba(200, 168, 138, 0.46));
}

.metric strong {
  display: block;
  font-size: 1.9rem;
  color: var(--accent-strong);
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.metric span {
  color: #4f5864;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}

.cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  align-content: flex-start;
}

.stats-marquee-block {
  display: grid;
  gap: 12px;
  min-height: 276px;
  padding: 6px 2px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.96) 8%, rgba(0, 0, 0, 0.96) 92%, transparent 100%);
}

.stats-marquee-row {
  overflow: hidden;
}

.stats-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.stats-marquee-track-left {
  animation: statsMarqueeLeft var(--marquee-duration, 30s) linear infinite;
}

.stats-marquee-track-right {
  animation: statsMarqueeRight var(--marquee-duration, 30s) linear infinite;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(36, 54, 76, 0.1);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  color: var(--accent-strong);
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 18px rgba(16, 28, 44, 0.04);
}

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

.pie-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.96));
  border: 1px solid rgba(24, 27, 32, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(16, 28, 44, 0.05);
}

.pie-card h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--accent-strong);
}

.pie-shell {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.pie-svg {
  width: 146px;
  height: 146px;
  transform: rotate(-90deg);
}

.legend {
  width: 100%;
  display: grid;
  gap: 8px;
}

.legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.filters::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 52, 79, 0.035), transparent 30%);
  pointer-events: none;
}

.filter-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.filter-field span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.filter-field input,
.filter-field select,
.contribute-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 251, 252, 0.96);
  padding: 0 14px;
  color: var(--ink);
}

.preview-meta {
  margin: 24px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-meta p,
.preview-meta span {
  color: var(--muted);
}

.preview-meta p {
  font-size: 1rem;
}

.pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c5868;
  font-size: 0.92rem;
  font-weight: 600;
}

.pager-jump input {
  width: 78px;
  min-height: 38px;
  border: 1px solid rgba(36, 54, 76, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 12px;
  color: var(--accent-strong);
  text-align: center;
}

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

.dataset-card {
  overflow: hidden;
  border: 1px solid rgba(24, 27, 32, 0.06);
  padding: 0;
  text-align: left;
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.dataset-card:hover,
.dataset-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(19, 27, 38, 0.1);
  border-color: rgba(36, 54, 76, 0.15);
}

.dataset-card:hover .dataset-video,
.dataset-card:focus-visible .dataset-video {
  transform: scale(1.015);
}

.dataset-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
}

.dataset-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(10, 18, 28, 0.34));
  pointer-events: none;
}

.dataset-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.dataset-card-body {
  padding: 18px 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff);
}

.dataset-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2f6, #edf0f4);
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: capitalize;
  border: 1px solid rgba(36, 54, 76, 0.06);
}

.empty-state {
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.marquee-shell {
  overflow: hidden;
  padding: 26px 22px;
}

.institution-marquee {
  display: grid;
  gap: 18px;
}

.institution-marquee-row {
  overflow: hidden;
  width: 100%;
}

.institution-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.institution-marquee-track-left {
  animation: statsMarqueeLeft var(--marquee-duration, 24s) linear infinite;
}

.institution-marquee-track-right {
  animation: statsMarqueeRight var(--marquee-duration, 24s) linear infinite;
}

.institution-card {
  min-width: clamp(180px, 16vw, 220px);
  min-height: 112px;
  padding: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 27, 32, 0.06);
  box-shadow: var(--shadow-soft);
}

.institution-card img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
  filter: saturate(0.95) contrast(1.03);
}

.institution-card strong {
  font-size: 1.05rem;
  color: var(--accent-strong);
}

.institution-card span {
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.maintainers {
  margin: 24px 0 0;
  max-width: none;
  width: 100%;
  font-size: 1rem;
  line-height: 1.65;
}

.maintainers a {
  color: inherit;
  text-decoration-thickness: 1px;
}

.modal {
  width: min(1180px, calc(100vw - 32px));
  padding: 0;
  border: none;
  background: transparent;
}

.modal::backdrop {
  background: rgba(20, 12, 7, 0.48);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  padding: 32px;
}

.modal-large {
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(23, 20, 18, 0.06);
  color: var(--ink);
  font-size: 1.4rem;
}

.sensor-preview-card {
  min-height: 220px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(24, 27, 32, 0.12);
  background: #fff;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.sensor-preview-card img {
  max-width: 240px;
  max-height: 180px;
  object-fit: contain;
}

.dataset-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 24px;
}

.modal-video-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  border: 1px solid rgba(24, 27, 32, 0.06);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-stack {
  display: grid;
  gap: 16px;
}

.detail-block {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(24, 27, 32, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(16, 28, 44, 0.05);
}

.detail-block h4 {
  margin: 0 0 14px;
  font-size: 1.08rem;
  color: #172231;
  letter-spacing: -0.015em;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 248, 251, 0.94), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(36, 54, 76, 0.07);
}

.detail-label {
  color: #20344d;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.45;
  white-space: nowrap;
}

.detail-value,
.detail-value a {
  color: #2d3948;
  word-break: break-word;
  line-height: 1.7;
  font-weight: 500;
  font-size: 0.98rem;
}

.detail-value a {
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 54, 76, 0.24);
  color: #22364d;
}

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

.sensor-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 252, 0.98));
  border: 1px solid rgba(24, 27, 32, 0.06);
  box-shadow: 0 10px 22px rgba(16, 28, 44, 0.05);
}

.sensor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.sensor-card strong {
  display: block;
  margin-top: 10px;
  color: #172231;
  font-size: 0.98rem;
}

.sensor-card span {
  color: #55616f;
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: capitalize;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes heroSensorSlideLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes heroSensorSlideRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes statsMarqueeLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes statsMarqueeRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .dataset-modal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    row-gap: 16px;
    padding-top: 80px;
  }

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

  .hero-sensor-card {
    width: 150px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-slogan {
    white-space: normal;
  }

  .hero-panel {
    min-width: 0;
  }

  .hero-sensor-strip {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .topbar {
    top: 8px;
    width: min(100vw - 20px, 100%);
    padding: 12px 14px;
    border-radius: 24px;
  }

  .section {
    width: min(100vw - 20px, 100%);
    padding: 58px 0;
  }

  .section-frame {
    padding: 22px;
  }

  .stats-section {
    width: min(100vw - 20px, 100%);
    padding: 44px 0;
  }

  .stats-frame {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-sensor-strip {
    opacity: 0.42;
  }

  .hero-panel-grid,
  .stats-grid,
  .pie-row,
  .filters,
  .sensor-gallery {
    grid-template-columns: 1fr;
  }

  .detail-item {
    grid-template-columns: 1fr;
  }

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

  .stats-stage {
    min-height: 1080px;
    margin: 0;
  }

  .stats-card {
    width: 100%;
  }

  .stats-card[data-pos="center-left"] {
    left: 50%;
    top: 19%;
  }

  .stats-card[data-pos="center-right"] {
    left: 50%;
    top: 47%;
  }

  .stats-card[data-pos="left"] {
    left: 50%;
    top: 74%;
  }

  .stats-card[data-pos="right"] {
    left: 50%;
    top: 92%;
  }

  .preview-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .topnav {
    gap: 10px 14px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 5.8vw, 2rem);
  }

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

  .hero-actions,
  .pager {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .modal-card {
    padding: 22px;
  }

  .hero-footnote {
    gap: 10px 14px;
  }

  .hero-sensor-background {
    display: none;
  }
}
