:root {
  --bg: #020202;
  --body-bg: #000;
  --panel: rgba(12, 12, 12, 0.68);
  --panel-strong: rgba(14, 14, 14, 0.86);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --text-strong: rgba(244, 241, 234, 0.86);
  --text-soft: rgba(244, 241, 234, 0.74);
  --text-mid: rgba(244, 241, 234, 0.54);
  --text-dim: rgba(244, 241, 234, 0.48);
  --chip-text: rgba(244, 241, 234, 0.7);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #e7a05a;
  --accent-soft: rgba(231, 160, 90, 0.22);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-soft-hover: rgba(255, 255, 255, 0.08);
  --surface-card: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-strong: rgba(255, 255, 255, 0.14);
  --control-bg: rgba(6, 8, 10, 0.5);
  --control-border: rgba(255, 255, 255, 0.12);
  --header-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  --header-solid: linear-gradient(180deg, rgba(7, 9, 12, 0.92), rgba(7, 9, 12, 0.72));
  --header-border: rgba(255, 255, 255, 0.08);
  --nav-drawer-bg: rgba(8, 10, 12, 0.88);
  --nav-drawer-border: rgba(255, 255, 255, 0.1);
  --hero-overlay:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.54) 55%, rgba(0, 0, 0, 0.9));
  --wave-bg: #000;
  --wave-dot: radial-gradient(circle, rgba(255, 255, 255, 0.56) 0 1.2px, transparent 1.8px);
  --glow-overlay:
    radial-gradient(circle at 55% 26%, rgba(255, 255, 255, 0.1), transparent 22%),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.08), transparent 16%),
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.05), transparent 18%);
  --hero-video-opacity: 0.62;
  --hero-video-filter: saturate(0.88) contrast(1.08) brightness(0.46);
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --media-frame-bg: rgba(255, 255, 255, 0.04);
  --media-frame-border: rgba(255, 255, 255, 0.08);
  --play-bg: rgba(11, 14, 16, 0.68);
  --play-border: rgba(255, 255, 255, 0.18);
  --media-text: #f4f1ea;
  --header-height: 72px;
}

html[data-theme="light"],
body[data-theme="light"] {
  --bg: #f3ede4;
  --body-bg: #f6f1e8;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --text: #17120d;
  --muted: rgba(23, 18, 13, 0.68);
  --text-strong: rgba(23, 18, 13, 0.86);
  --text-soft: rgba(23, 18, 13, 0.72);
  --text-mid: rgba(23, 18, 13, 0.58);
  --text-dim: rgba(23, 18, 13, 0.5);
  --chip-text: rgba(23, 18, 13, 0.72);
  --line: rgba(23, 18, 13, 0.12);
  --line-strong: rgba(23, 18, 13, 0.18);
  --accent: #be6f35;
  --accent-soft: rgba(190, 111, 53, 0.18);
  --surface-soft: rgba(255, 255, 255, 0.62);
  --surface-soft-hover: rgba(255, 255, 255, 0.78);
  --surface-card: rgba(255, 255, 255, 0.52);
  --surface-border: rgba(23, 18, 13, 0.09);
  --surface-border-strong: rgba(23, 18, 13, 0.14);
  --control-bg: rgba(255, 255, 255, 0.62);
  --control-border: rgba(23, 18, 13, 0.12);
  --header-overlay: linear-gradient(180deg, rgba(246, 241, 232, 0.88), rgba(246, 241, 232, 0));
  --header-solid: linear-gradient(180deg, rgba(246, 241, 232, 0.96), rgba(246, 241, 232, 0.9));
  --header-border: rgba(23, 18, 13, 0.1);
  --nav-drawer-bg: rgba(247, 243, 235, 0.94);
  --nav-drawer-border: rgba(23, 18, 13, 0.1);
  --hero-overlay:
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.58), transparent 22%),
    radial-gradient(circle at 48% 56%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(246, 241, 232, 0.08), rgba(246, 241, 232, 0.54) 55%, rgba(246, 241, 232, 0.95));
  --wave-bg: #f3ede4;
  --wave-dot: radial-gradient(circle, rgba(23, 18, 13, 0.16) 0 1.2px, transparent 1.8px);
  --glow-overlay:
    radial-gradient(circle at 55% 26%, rgba(255, 255, 255, 0.42), transparent 22%),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.18), transparent 18%);
  --hero-video-opacity: 0.82;
  --hero-video-filter: saturate(0.78) contrast(0.92) brightness(0.98);
  --scrollbar-thumb: rgba(23, 18, 13, 0.18);
  --media-frame-bg: rgba(255, 255, 255, 0.66);
  --media-frame-border: rgba(23, 18, 13, 0.1);
  --play-bg: rgba(255, 255, 255, 0.74);
  --play-border: rgba(23, 18, 13, 0.14);
  --media-text: #f4f1ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--body-bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  transition: background-color 180ms ease, color 180ms ease;
}

html[data-theme="light"] body {
  background: #f6f1e8;
  color: #17120d;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1rem, 2vw, 2rem);
  color: var(--text);
  background: var(--header-overlay);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle,
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme-toggle {
  display: inline-flex;
  width: auto;
  min-width: 2.9rem;
  gap: 0.6rem;
  padding: 0 0.95rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
}

.theme-toggle-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.24rem var(--accent-soft);
}

.theme-toggle-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-toggle-line {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 0.14rem 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(231, 160, 90, 0.18));
}

.brand-text,
.top-nav a,
.eyebrow,
.section-label,
.panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.top-nav a {
  color: var(--text-soft);
}

.onefold,
.hero {
  min-height: 100svh;
}

.onefold {
  background: var(--body-bg);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  align-items: start;
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: -1;
}

.wave-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--wave-bg);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-video-opacity);
  filter: var(--hero-video-filter);
  transform: translateZ(0) scale(1.03);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

body[data-view]:not([data-view="home"]) .hero-video {
  opacity: 0;
  visibility: hidden;
}

.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.36;
  mix-blend-mode: screen;
  will-change: opacity;
}

.wave {
  position: absolute;
  inset: -8% -8% -18% -8%;
  pointer-events: none;
}

.wave-a,
.wave-b {
  background-image: var(--wave-dot);
  background-size: 14px 14px;
  filter: blur(0.15px);
  opacity: 0.1;
}

.wave-a {
  transform: perspective(1300px) rotateX(74deg) rotateZ(-6deg) translateY(22%) scale(1.55);
  mask-image: radial-gradient(circle at 54% 35%, black 0, rgba(0, 0, 0, 0.94) 40%, transparent 88%);
}

.wave-b {
  background-size: 16px 16px;
  opacity: 0.09;
  transform: perspective(1200px) rotateX(76deg) rotateZ(4deg) translateY(18%) scale(1.35);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, black 24%, black 76%, rgba(0, 0, 0, 0) 100%);
}

.glow {
  background: var(--glow-overlay);
  filter: blur(18px);
}

.atlas-nav,
.hero-layout {
  width: min(100% - 2rem, 1400px);
  margin: 0 auto;
}

.atlas-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: clamp(1rem, 2vw, 1.45rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
  min-height: calc(100svh - var(--header-height) - 7.4rem);
  padding: clamp(1.2rem, 2vw, 1.8rem) 0 1rem;
}

body[data-view]:not([data-view="home"]) .hero-layout {
  grid-template-columns: 1fr;
  min-height: calc(100svh - var(--header-height) - 8rem);
}

.hero-copyblock {
  max-width: 38rem;
  padding-bottom: 0.35rem;
  align-self: end;
}

body[data-view]:not([data-view="home"]) .hero-copyblock {
  display: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.hero-title,
#panel-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.hero-title {
  max-width: 8.2ch;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  text-transform: uppercase;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-tagline {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--text-strong);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  text-wrap: balance;
}

.hero-copy {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

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

.button-secondary {
  background: var(--surface-soft);
  border-color: var(--surface-border-strong);
}

.stage-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.section-label {
  margin: 0;
  color: var(--accent);
}

.stage-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tab-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  padding-top: 0.95rem;
  padding-bottom: 0.9rem;
  border-top: 1px solid var(--surface-border-strong);
  border-bottom: 1px solid var(--surface-border-strong);
}

.tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 0.1rem 0 0.55rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.tab:hover,
.tab:focus-visible,
.tab.active {
  color: var(--text);
}

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

.panel-stage {
  align-self: end;
  min-height: 0;
}

body[data-view="home"] .hero-layout {
  grid-template-columns: 1fr;
}

body[data-view="home"] .panel-stage {
  display: none;
}

body[data-view]:not([data-view="home"]) .panel-stage {
  width: min(100%, 1420px);
}

body[data-view="home"] .tab-panel {
  grid-template-columns: 1fr;
}

body[data-view="home"] .panel-main {
  display: none;
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  min-height: 0;
  align-items: start;
  transition: opacity 200ms ease, transform 200ms ease;
}

.tab-panel.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

body[data-view]:not([data-view="home"]) .tab-panel {
  grid-template-columns: 1fr;
}

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

body[data-view]:not([data-view="home"]) .panel-main {
  display: none;
}

.panel-label {
  margin: 0;
  color: var(--text-soft);
}

#panel-title {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 3.2vw, 3.9rem);
  max-width: 9.5ch;
}

.panel-copy {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.panel-meta span {
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--chip-text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--accent);
}

.panel-link::after {
  content: "↗";
}

.panel-list {
  min-height: 0;
  max-height: 210px;
  overflow: auto;
  padding-right: 0.35rem;
}

.panel-list.panel-list-buy {
  max-height: min(68svh, 760px);
  padding-right: 0.15rem;
}

.panel-list.panel-list-gallery {
  max-height: min(80svh, 960px);
  padding-right: 0.15rem;
}

.panel-list.panel-list-api {
  max-height: min(82svh, 980px);
  padding-right: 0.15rem;
}

.panel-list.panel-list-data {
  max-height: min(82svh, 980px);
  padding-right: 0.15rem;
}

.panel-list.panel-list-models {
  max-height: min(82svh, 980px);
  padding-right: 0.15rem;
}

.panel-list.panel-list-papers {
  max-height: min(82svh, 980px);
  padding-right: 0.15rem;
}

.panel-list.panel-list-events {
  max-height: min(80svh, 960px);
  padding-right: 0.15rem;
}

body[data-view]:not([data-view="home"]) .panel-list {
  max-height: min(80svh, 960px);
  padding-right: 0.15rem;
}

.panel-list::-webkit-scrollbar {
  width: 8px;
}

.panel-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
}

.entry {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.entry:first-child {
  padding-top: 0;
}

.entry-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry h4 {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border-strong);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.entry-link:hover,
.entry-link:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0d03;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.video-sections {
  display: grid;
  gap: 1.35rem;
}

.video-section {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line-strong);
}

.video-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.video-section-head h4 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.video-section-head p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
}

.resource-sections {
  display: grid;
  gap: 1.35rem;
}

.resource-section {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line-strong);
}

.resource-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.resource-section-head h4 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resource-section-head p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
}

.resource-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--surface-border);
  border-radius: 1.25rem;
  background: var(--surface-card);
}

.resource-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-card h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card {
  position: relative;
}

.video-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.6rem;
  aspect-ratio: 16 / 9;
  background: var(--media-frame-bg);
  border: 1px solid var(--media-frame-border);
}

.video-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.video-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.04), rgba(8, 10, 12, 0.12) 45%, rgba(8, 10, 12, 0.74));
  pointer-events: none;
}

.video-card-play {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--play-bg);
  border: 1px solid var(--play-border);
  backdrop-filter: blur(10px);
}

.video-card-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.72rem solid var(--media-text);
  transform: translate(-35%, -50%);
}

.video-card-media:hover .video-card-image,
.video-card-media:focus-visible .video-card-image {
  transform: scale(1.04);
  filter: brightness(1.02);
}

.video-card-title {
  margin: 0;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--media-text);
}

.event-feed {
  display: grid;
  gap: 1rem;
}

.event-feed-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
}

.event-feed-label,
.event-feed-stamp {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-feed-label {
  color: var(--accent);
}

.event-feed-stamp {
  color: var(--text-mid);
}

.event-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: 0.75rem 1rem;
  padding: 0.2rem 0 0.8rem;
  border-bottom: 1px solid var(--line);
}

.event-entry-hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  display: block;
  min-height: 11.5rem;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--media-frame-bg);
  border: 1px solid var(--media-frame-border);
}

.event-entry-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.event-entry-hero:hover .event-entry-image,
.event-entry-hero:focus-visible .event-entry-image {
  transform: scale(1.04);
  filter: brightness(1.03);
}

.event-entry-hero-fallback {
  align-items: end;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(231, 160, 90, 0.2), rgba(231, 160, 90, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.event-entry-hero-fallback span {
  align-self: end;
  color: var(--media-text);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-entry-topline {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-entry-main {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
}

.event-entry-copy h4 {
  margin: 0;
  font-size: clamp(0.96rem, 1.25vw, 1.22rem);
  line-height: 1.12;
}

.event-entry-copy p {
  max-width: 58rem;
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.event-entry-meta span {
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-feed {
  display: grid;
  gap: 0.95rem;
}

.paper-feed-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
}

.paper-feed-label,
.paper-feed-stamp {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-feed-label {
  color: var(--accent);
}

.paper-feed-stamp {
  color: var(--text-mid);
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
}

.paper-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--surface-border);
  border-radius: 1.25rem;
  background: var(--surface-card);
}

.paper-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-card h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.paper-card-authors {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.paper-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.paper-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paper-card-meta span {
  padding: 0.32rem 0.54rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-feed {
  display: grid;
  gap: 0.95rem;
}

.model-feed-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
}

.model-feed-label,
.model-feed-stamp {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.model-feed-label {
  color: var(--accent);
}

.model-feed-stamp {
  color: var(--text-mid);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0.95rem 1rem;
}

.model-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--surface-border);
  border-radius: 1.25rem;
  background: var(--surface-card);
}

.model-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.model-card h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.model-card-id {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  word-break: break-word;
}

.model-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.model-card-stats span,
.model-card-meta span {
  padding: 0.32rem 0.54rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dataset-feed {
  display: grid;
  gap: 0.95rem;
}

.dataset-feed-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
}

.dataset-feed-label,
.dataset-feed-stamp {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dataset-feed-label {
  color: var(--accent);
}

.dataset-feed-stamp {
  color: var(--text-mid);
}

.dataset-video-wall {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line-strong);
}

.dataset-media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dataset-media-card:first-child {
  grid-column: 1 / -1;
}

.dataset-media-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.45rem;
  aspect-ratio: 16 / 9;
  background: var(--media-frame-bg);
  border: 1px solid var(--media-frame-border);
}

.dataset-media-video,
.dataset-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.dataset-media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.02), rgba(8, 10, 12, 0.14) 42%, rgba(8, 10, 12, 0.84));
  pointer-events: none;
}

.dataset-media-link:hover .dataset-media-video,
.dataset-media-link:hover .dataset-media-image,
.dataset-media-link:focus-visible .dataset-media-video,
.dataset-media-link:focus-visible .dataset-media-image {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.dataset-media-copy {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.32rem;
}

.dataset-media-copy p {
  margin: 0;
  color: rgba(244, 241, 234, 0.76);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dataset-media-copy h5 {
  margin: 0;
  color: var(--media-text);
  font-size: clamp(0.98rem, 1.8vw, 1.28rem);
  line-height: 1.16;
}

.dataset-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1rem;
}

.dataset-section {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line-strong);
}

.dataset-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.dataset-section-head h4 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dataset-section-head p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
}

.dataset-links {
  display: grid;
  gap: 0.55rem;
}

.dataset-link {
  display: grid;
  gap: 0.3rem;
  padding: 0.72rem 0.78rem 0.8rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: var(--surface-card);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.dataset-link:hover,
.dataset-link:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-soft-hover);
  border-color: var(--surface-border-strong);
}

.dataset-link-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-dim);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dataset-link h5 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.22;
}

.dataset-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.buy-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.buy-section {
  padding-top: 0.25rem;
  border-top: 1px solid var(--line-strong);
}

.buy-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.buy-section-head h4 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.buy-section-head p {
  margin: 0;
  max-width: 16rem;
  color: var(--text-mid);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
}

.buy-products {
  display: grid;
}

.buy-product {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.buy-product-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.buy-product-media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 10rem;
  height: clamp(10rem, 20vw, 13.5rem);
  margin-bottom: 0.9rem;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.buy-product-media[data-tone="light"] {
  padding: 0.85rem 0.9rem 0;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(247, 244, 239, 0.98), rgba(230, 226, 219, 0.94));
}

.buy-product-image {
  display: block;
  width: min(100%, 18rem);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.24));
}

.buy-product-image[data-fit="cover"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.buy-product-vendor {
  margin: 0 0 0.35rem;
  color: var(--text-mid);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.buy-product h5 {
  margin: 0;
  font-size: 1rem;
}

.buy-product-detail {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.buy-product-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  flex-shrink: 0;
}

.buy-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border-strong);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.buy-button:hover,
.buy-button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0d03;
}

@media (min-width: 1101px) {
  body {
    overflow: hidden;
  }
}

@media (max-width: 1100px) {
  body {
    min-height: 100svh;
    -webkit-overflow-scrolling: touch;
  }

  .onefold {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    overflow: visible;
    padding-bottom: 1.8rem;
  }

  .hero-layout {
    width: min(100% - 2rem, 1400px);
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 1.3rem 0 1.8rem;
  }

  .panel-list,
  .panel-list.panel-list-buy,
  .panel-list.panel-list-gallery,
  .panel-list.panel-list-api,
  .panel-list.panel-list-data,
  .panel-list.panel-list-models,
  .panel-list.panel-list-papers,
  .panel-list.panel-list-events,
  body[data-view]:not([data-view="home"]) .panel-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  html,
  body,
  .onefold,
  .hero,
  .wave-field {
    width: 100%;
    max-width: 100dvw;
    overflow-x: clip;
  }

  .site-header {
    width: 100dvw;
    max-width: 100dvw;
    padding: 0.9rem 1rem;
  }

  body[data-view="home"] .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  body[data-view="home"] .hero-layout {
    min-height: calc(100svh - var(--header-height) - 1rem);
    min-height: calc(100dvh - var(--header-height) - 1rem);
    align-content: end;
    padding-bottom: max(1.35rem, env(safe-area-inset-bottom));
  }

  body[data-header-scrolled="true"] .site-header,
  body[data-nav-open="true"] .site-header,
  body[data-view]:not([data-view="home"]) .site-header {
    background: var(--header-solid);
    border-bottom-color: var(--header-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
  }

  .theme-toggle {
    min-width: 2.9rem;
    padding: 0;
  }

  .theme-toggle-text {
    display: none;
  }

  body[data-nav-open="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(0.29rem) rotate(45deg);
  }

  body[data-nav-open="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  body[data-nav-open="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-0.29rem) rotate(-45deg);
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-text {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .atlas-nav {
    position: fixed;
    top: calc(var(--header-height) + 0.5rem);
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-width: none;
    padding: 0.65rem;
    border: 1px solid var(--nav-drawer-border);
    border-radius: 1.25rem;
    background: var(--nav-drawer-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.45rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    z-index: 14;
    max-height: calc(100dvh - var(--header-height) - 1rem);
    overflow: auto;
  }

  body[data-nav-open="true"] .atlas-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-layout,
  .panel-stage,
  body[data-view]:not([data-view="home"]) .panel-stage {
    width: calc(100dvw - 1rem);
    max-width: calc(100dvw - 1rem);
    min-width: 0;
  }

  .tab-panel,
  .panel-list,
  .hero-copyblock {
    min-width: 0;
    max-width: 100%;
  }

  .tab-list {
    display: grid;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    overflow: visible;
    touch-action: auto;
  }

  .tab {
    width: 100%;
    padding: 0.82rem 0.9rem;
    border: 0;
    border-radius: 0.9rem;
    background: transparent;
    text-align: left;
  }

  .tab::after {
    display: none;
  }

  .tab:hover,
  .tab:focus-visible,
  .tab.active {
    color: var(--text);
    background: var(--surface-soft-hover);
  }

  .hero,
  .hero-layout,
  .panel-stage,
  .tab-panel,
  .panel-list,
  .buy-sections,
  .buy-products,
  .video-gallery,
  .video-sections,
  .resource-sections,
  .paper-feed,
  .model-feed,
  .dataset-feed,
  .event-feed {
    touch-action: pan-y;
  }
}

@media (max-width: 760px) {
  .top-nav {
    display: none;
  }

  .hero-layout {
    width: calc(100dvw - 1.2rem);
    max-width: calc(100dvw - 1.2rem);
    gap: 1.1rem;
    padding-top: 1rem;
  }

  body[data-view="home"] .hero-layout {
    min-height: calc(100svh - var(--header-height) - 1rem);
    min-height: calc(100dvh - var(--header-height) - 1rem);
    gap: 1.35rem;
    padding-top: 1.35rem;
  }

  .hero-copyblock {
    max-width: 100%;
    align-self: start;
    padding-bottom: 0;
  }

  .hero-title {
    max-width: 9ch;
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-tagline {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .buy-sections {
    grid-template-columns: 1fr;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }

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

  .video-section-head {
    flex-direction: column;
    align-items: start;
  }

  .resource-section-head {
    flex-direction: column;
    align-items: start;
  }

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

  .model-feed-head {
    flex-direction: column;
    align-items: start;
  }

  .dataset-sections {
    grid-template-columns: 1fr;
  }

  .dataset-media-gallery {
    grid-template-columns: 1fr;
  }

  .dataset-media-card:first-child {
    grid-column: auto;
  }

  .event-entry-main {
    grid-template-columns: 1fr;
  }

  .dataset-feed-head,
  .dataset-section-head,
  .paper-feed-head,
  .event-feed-head {
    flex-direction: column;
    align-items: start;
  }

  .event-entry {
    grid-template-columns: 1fr;
  }

  .event-entry-hero,
  .event-entry-topline,
  .event-entry-main {
    grid-column: auto;
    grid-row: auto;
  }

  #panel-title {
    max-width: 100%;
    margin-top: 0.35rem;
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .panel-copy {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .buy-section-head,
  .buy-product {
    flex-direction: column;
    align-items: start;
  }

  .buy-section-head p {
    max-width: none;
    text-align: left;
  }

  .buy-product-side {
    align-items: start;
  }

  .buy-product-media {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .buy-product-image,
  .buy-product-image[data-fit="cover"] {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  .stage-header {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .menu-toggle {
    width: 2.7rem;
    height: 2.7rem;
  }

  .theme-toggle {
    min-width: 2.7rem;
    height: 2.7rem;
  }

  .atlas-nav {
    left: 0.4rem;
    right: 0.4rem;
    padding: 0.55rem;
  }

  .tab {
    padding: 0.76rem 0.8rem;
    font-size: 0.69rem;
    letter-spacing: 0.12em;
  }

  .video-card-title {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-video {
    transform: none;
  }

  .wave-canvas {
    display: none;
  }

  .wave-a,
  .wave-b {
    opacity: 0.26;
  }
}
