:root,
:root[data-theme="light"] {
  color-scheme: light;
  --text: #181b20;
  --text-soft: #50565f;
  --text-muted: #6a717b;
  --line: rgba(25, 29, 34, 0.09);
  --line-strong: rgba(25, 29, 34, 0.14);
  --orange: #f4951a;
  --amber: #f5ac23;
  --green: #68b82d;
  --cyan: #2aa9df;
  --blue: #14639a;
  --violet: #8c49c4;
  --shadow: 0 22px 54px rgba(31, 28, 23, 0.08);
  --shadow-soft: 0 12px 28px rgba(31, 28, 23, 0.06);
  --page-bg:
    radial-gradient(circle at 12% 0%, rgba(244, 149, 26, 0.14), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(42, 169, 223, 0.1), transparent 24%),
    radial-gradient(circle at 18% 74%, rgba(104, 184, 45, 0.1), transparent 20%),
    radial-gradient(circle at 74% 86%, rgba(140, 73, 196, 0.1), transparent 22%),
    linear-gradient(180deg, #f8f4ef 0%, #f4f0eb 50%, #ece7e1 100%);
  --grid-color: rgba(24, 27, 32, 0.03);
  --header-bg: rgba(248, 244, 239, 0.84);
  --menu-bg: #fbf8f4;
  --header-border: rgba(24, 27, 32, 0.06);
  --section-alt-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  --section-alt-border: rgba(24, 27, 32, 0.04);
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82));
  --hero-bg:
    radial-gradient(circle at 100% 0%, rgba(244, 149, 26, 0.12), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(140, 73, 196, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 243, 0.94));
  --stage-bg:
    radial-gradient(circle at 18% 18%, rgba(244, 149, 26, 0.14), transparent 22%),
    radial-gradient(circle at 80% 16%, rgba(42, 169, 223, 0.12), transparent 20%),
    radial-gradient(circle at 54% 100%, rgba(140, 73, 196, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 239, 0.95));
  --footer-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 239, 0.92));
  --toolbar-bg: rgba(24, 27, 32, 0.04);
  --toolbar-border: rgba(24, 27, 32, 0.08);
  --hover-bg: rgba(24, 27, 32, 0.05);
  --active-bg: rgba(255, 255, 255, 0.86);
  --active-border: rgba(24, 27, 32, 0.06);
  --button-secondary-bg: rgba(24, 27, 32, 0.04);
  --button-secondary-border: rgba(24, 27, 32, 0.1);
  --button-secondary-text: var(--text);
  --control-bg: rgba(255, 255, 255, 0.86);
  --control-border: var(--line);
  --detail-bg: rgba(255, 255, 255, 0.76);
  --detail-border: rgba(24, 27, 32, 0.08);
  --timeline-bg: rgba(20, 99, 154, 0.08);
  --timeline-text: #14639a;
  --scrollbar-thumb: rgba(24, 27, 32, 0.18);
  --container: min(1200px, calc(100vw - 40px));
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --spectrum: linear-gradient(90deg, var(--amber), var(--orange) 25%, var(--green) 50%, var(--cyan) 74%, var(--violet));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #f4f7fb;
  --text-soft: #c8ced7;
  --text-muted: #96a2b0;
  --blue: #8fd7ff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.24);
  --page-bg:
    radial-gradient(circle at 12% 0%, rgba(244, 149, 26, 0.16), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(42, 169, 223, 0.14), transparent 24%),
    radial-gradient(circle at 18% 74%, rgba(104, 184, 45, 0.12), transparent 20%),
    radial-gradient(circle at 74% 86%, rgba(140, 73, 196, 0.16), transparent 22%),
    linear-gradient(180deg, #181b20 0%, #12151a 52%, #0d1014 100%);
  --grid-color: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(13, 16, 20, 0.86);
  --menu-bg: #101419;
  --header-border: rgba(255, 255, 255, 0.08);
  --section-alt-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  --section-alt-border: rgba(255, 255, 255, 0.06);
  --panel-bg: linear-gradient(180deg, rgba(24, 28, 34, 0.94), rgba(15, 18, 24, 0.92));
  --hero-bg:
    radial-gradient(circle at 100% 0%, rgba(244, 149, 26, 0.16), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(140, 73, 196, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(24, 28, 34, 0.98), rgba(15, 18, 24, 0.96));
  --stage-bg:
    radial-gradient(circle at 18% 18%, rgba(244, 149, 26, 0.16), transparent 22%),
    radial-gradient(circle at 80% 16%, rgba(42, 169, 223, 0.14), transparent 20%),
    radial-gradient(circle at 54% 100%, rgba(140, 73, 196, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(21, 25, 31, 0.98), rgba(12, 15, 20, 0.96));
  --footer-bg: linear-gradient(180deg, rgba(21, 25, 31, 0.94), rgba(14, 17, 22, 0.92));
  --toolbar-bg: rgba(255, 255, 255, 0.06);
  --toolbar-border: rgba(255, 255, 255, 0.1);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --active-bg: rgba(255, 255, 255, 0.08);
  --active-border: rgba(255, 255, 255, 0.1);
  --button-secondary-bg: rgba(255, 255, 255, 0.06);
  --button-secondary-border: rgba(255, 255, 255, 0.1);
  --button-secondary-text: var(--text);
  --control-bg: rgba(21, 25, 31, 0.92);
  --control-border: rgba(255, 255, 255, 0.12);
  --detail-bg: rgba(255, 255, 255, 0.04);
  --detail-border: rgba(255, 255, 255, 0.08);
  --timeline-bg: rgba(42, 169, 223, 0.16);
  --timeline-text: #9fdcff;
  --scrollbar-thumb: rgba(255, 255, 255, 0.22);
}

:root[data-theme="darkblue"] {
  color-scheme: dark;
  --text: #eef5ff;
  --text-soft: #c6d4e6;
  --text-muted: #8fa4bf;
  --blue: #9fe1ff;
  --line: rgba(171, 204, 255, 0.12);
  --line-strong: rgba(171, 204, 255, 0.18);
  --shadow: 0 24px 56px rgba(0, 10, 28, 0.42);
  --shadow-soft: 0 14px 30px rgba(0, 10, 28, 0.3);
  --page-bg:
    radial-gradient(circle at 10% 0%, rgba(244, 149, 26, 0.14), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(42, 169, 223, 0.2), transparent 26%),
    radial-gradient(circle at 22% 80%, rgba(104, 184, 45, 0.12), transparent 20%),
    radial-gradient(circle at 70% 88%, rgba(140, 73, 196, 0.18), transparent 24%),
    linear-gradient(180deg, #0f1c2c 0%, #0a1422 52%, #06101b 100%);
  --grid-color: rgba(171, 204, 255, 0.05);
  --header-bg: rgba(7, 16, 29, 0.88);
  --menu-bg: #081421;
  --header-border: rgba(171, 204, 255, 0.1);
  --section-alt-bg: linear-gradient(180deg, rgba(22, 42, 70, 0.34), rgba(10, 22, 39, 0.28));
  --section-alt-border: rgba(171, 204, 255, 0.08);
  --panel-bg: linear-gradient(180deg, rgba(14, 28, 46, 0.96), rgba(9, 20, 35, 0.94));
  --hero-bg:
    radial-gradient(circle at 100% 0%, rgba(244, 149, 26, 0.14), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(140, 73, 196, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(16, 32, 52, 0.98), rgba(10, 20, 35, 0.96));
  --stage-bg:
    radial-gradient(circle at 18% 18%, rgba(244, 149, 26, 0.16), transparent 22%),
    radial-gradient(circle at 80% 16%, rgba(42, 169, 223, 0.22), transparent 20%),
    radial-gradient(circle at 54% 100%, rgba(140, 73, 196, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(15, 31, 50, 0.98), rgba(9, 20, 35, 0.96));
  --footer-bg: linear-gradient(180deg, rgba(15, 31, 50, 0.94), rgba(8, 18, 31, 0.92));
  --toolbar-bg: rgba(171, 204, 255, 0.08);
  --toolbar-border: rgba(171, 204, 255, 0.12);
  --hover-bg: rgba(171, 204, 255, 0.08);
  --active-bg: rgba(171, 204, 255, 0.1);
  --active-border: rgba(171, 204, 255, 0.14);
  --button-secondary-bg: rgba(171, 204, 255, 0.08);
  --button-secondary-border: rgba(171, 204, 255, 0.14);
  --button-secondary-text: var(--text);
  --control-bg: rgba(10, 24, 41, 0.92);
  --control-border: rgba(171, 204, 255, 0.14);
  --detail-bg: rgba(171, 204, 255, 0.06);
  --detail-border: rgba(171, 204, 255, 0.1);
  --timeline-bg: rgba(42, 169, 223, 0.18);
  --timeline-text: #a9e8ff;
  --scrollbar-thumb: rgba(171, 204, 255, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--page-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 84%);
}

main {
  overflow: clip;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 44px 0;
}

.section--alt {
  background: var(--section-alt-bg);
  border-top: 1px solid var(--section-alt-border);
  border-bottom: 1px solid var(--section-alt-border);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.35rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.16rem;
}

h4 {
  font-size: 0.98rem;
}

p,
li,
dd,
span {
  overflow-wrap: anywhere;
}

.lede,
.section-heading p,
.card p,
.feature-card p,
.timeline-card p,
.publication-card p,
.footer p,
.module-panel__scope {
  margin: 0;
  color: var(--text-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.site-header__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 320px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand-mark__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-mark__title {
  color: var(--text);
  font-family: "Days", "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 1.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand-mark__subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.2;
}

.brand .brand-mark__subtitle {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--hover-bg);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: var(--text);
  background: var(--active-bg);
  box-shadow: inset 0 0 0 1px var(--active-border);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: var(--spectrum);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.theme-switcher,
.language-switcher {
  display: inline-flex;
  align-items: center;
}

.theme-switcher__control,
.language-switcher__options {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
}

.theme-switcher__control {
  position: relative;
  min-width: 126px;
}

.theme-switcher__control::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 6px;
  pointer-events: none;
  background: currentColor;
  color: var(--text-soft);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(-50%);
}

.theme-select {
  min-height: 36px;
  width: 100%;
  padding: 0 30px 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
  appearance: none;
}

.theme-select:focus {
  outline: none;
}

.language-option {
  min-width: 44px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-option.is-active {
  color: #fff;
  background: var(--spectrum);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--toolbar-bg);
  color: var(--text);
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.split-grid,
.timeline-grid,
.detail-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

.hero__content,
.hero-stage,
.feature-card,
.showcase-slide,
.card,
.news-card,
.timeline-card,
.module-panel,
.publication-card,
.footer__inner,
.page-header__content {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__content::before,
.hero-stage::before,
.feature-card::before,
.showcase-slide::before,
.card::before,
.news-card::before,
.timeline-card::before,
.module-panel::before,
.publication-card::before,
.footer__inner::before,
.page-header__content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--spectrum);
}

.hero__content,
.hero-stage,
.feature-card,
.showcase-slide,
.card,
.news-card,
.timeline-card,
.module-panel,
.publication-card,
.page-header__content {
  padding: 24px;
  background: var(--panel-bg);
}

.page-header {
  padding-top: 30px;
  padding-bottom: 10px;
}

.page-header__content .lede {
  max-width: 66ch;
}

.hero__content {
  padding: clamp(28px, 4vw, 42px);
  background: var(--hero-bg);
}

.hero__content--wide .lede {
  max-width: 78ch;
}

.hero__actions,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.hero__actions {
  margin-top: 26px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-stage {
  display: grid;
  gap: 22px;
  align-content: start;
  background: var(--stage-bg);
}

.hero-stage__band {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--spectrum);
  opacity: 0.9;
}

.hero-stage .brand-mark__icon {
  width: 72px;
  height: 72px;
}

.hero-stage .brand-mark__title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.hero-stage__body {
  display: grid;
  gap: 12px;
}

.hero-stage__label {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: var(--spectrum);
  box-shadow: 0 12px 30px rgba(20, 99, 154, 0.18);
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.button--secondary {
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
  border: 1px solid var(--button-secondary-border);
  box-shadow: none;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 62ch;
}

.showcase-shell {
  display: grid;
  gap: 18px;
}

.showcase-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.showcase-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--toolbar-bg);
  border: 1px solid var(--toolbar-border);
  color: var(--text-soft);
  font-weight: 700;
}

.showcase-stage {
  overflow: hidden;
}

.showcase-track {
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.showcase-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2vw, 24px);
}

.showcase-slide__header {
  display: grid;
  gap: 8px;
  width: min(100%, var(--showcase-max-width, 760px));
  margin: 0 auto;
}

.showcase-slide__header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.showcase-slide__copy {
  display: grid;
  gap: 8px;
  width: min(100%, var(--showcase-max-width, 760px));
  margin: 0 auto;
}

.showcase-slide__copy p {
  color: var(--text-soft);
}

.showcase-slide--plain {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.showcase-slide--plain::before {
  display: none;
}

.showcase-media,
.showcase-compare {
  width: min(100%, var(--showcase-max-width, 760px));
  margin: 0 auto;
  aspect-ratio: var(--showcase-aspect-ratio, 1 / 1);
}

.showcase-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--detail-border);
}

.showcase-media__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.showcase-compare {
  --before-after-position: 58%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--detail-border);
}

.showcase-compare__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.showcase-compare__overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--before-after-position));
}

.showcase-compare__overlay .showcase-compare__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.showcase-compare__divider {
  position: absolute;
  inset: 0 auto 0 var(--before-after-position);
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.showcase-compare__divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(10, 16, 24, 0.2);
}

.showcase-compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  box-shadow: var(--shadow-soft);
}

.showcase-compare__handle::before,
.showcase-compare__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text);
  border-right: 2px solid var(--text);
}

.showcase-compare__handle::before {
  left: 14px;
  transform: translateY(-50%) rotate(-135deg);
}

.showcase-compare__handle::after {
  right: 14px;
  transform: translateY(-50%) rotate(45deg);
}

.showcase-compare__badge {
  position: absolute;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.62);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.showcase-compare__badge--after {
  right: 16px;
}

.showcase-compare__badge--before {
  left: 16px;
}

.showcase-compare__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}

.showcase-compare__range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.showcase-compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.showcase-compare__range::-moz-range-track {
  height: 100%;
  background: transparent;
}

.showcase-compare__range::-moz-range-thumb {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card__meta,
.case-card__subtitle,
.publication-card__authors,
.timeline-card__period,
.module-panel__scope {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.card__link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
}

.module-summary-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 18px;
}

.module-summary-card h3 {
  margin-top: 0;
}

.module-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.module-summary-card .clean-list {
  gap: 8px;
}

.module-summary-card .clean-list li {
  padding-left: 22px;
}

.module-summary-card .clean-list li::before {
  top: 0.78em;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(20, 99, 154, 0.38);
  background: rgba(20, 99, 154, 0.08);
  transform: translateY(-50%);
}

.module-summary-card .clean-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 3px;
  height: 6px;
  border-right: 1.8px solid var(--blue);
  border-bottom: 1.8px solid var(--blue);
  transform: translateY(-68%) rotate(42deg);
}

.news-shell {
  display: grid;
  gap: 18px;
}

.news-actions {
  display: inline-flex;
  gap: 10px;
}

.scroll-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: var(--control-bg);
  color: var(--text);
  cursor: pointer;
}

.scroll-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.news-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(296px, 34vw);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.news-track::-webkit-scrollbar {
  height: 10px;
}

.news-track::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.news-card {
  scroll-snap-align: start;
  min-height: 100%;
}

.news-card--link {
  display: grid;
  align-content: start;
  gap: 12px;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.news-card__media,
.news-detail__media {
  overflow: hidden;
  background: var(--detail-bg);
  border: 1px solid var(--detail-border);
}

.news-card__media {
  aspect-ratio: 16 / 9;
  margin: -24px -24px 0;
  border-width: 0 0 1px;
}

.news-detail__media {
  margin: 18px 0;
  border-radius: var(--radius-md);
}

.news-card__media img,
.news-detail__media img {
  width: 100%;
  object-fit: contain;
}

.news-card__media img {
  height: 100%;
}

.news-detail__media img {
  height: auto;
}

.news-card--link:hover,
.news-card--link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.news-card--link:focus-visible {
  outline: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.chip--warm {
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.split-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.clean-list,
.flow-list {
  margin: 0;
  padding: 0;
}

.clean-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green), var(--cyan));
  transform: translateY(-50%);
}

.flow-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.flow-list li::marker {
  color: var(--orange);
  font-weight: 700;
}

.module-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 2px;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}

.module-tabs::-webkit-scrollbar {
  height: 8px;
}

.module-tabs::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.module-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--toolbar-bg);
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.module-button.is-active {
  border-color: var(--active-border);
  background: var(--active-bg);
  box-shadow: inset 0 0 0 1px var(--active-border), var(--shadow-soft);
}

.module-panels {
  min-width: 0;
}

.module-panel {
  display: none;
}

.module-panel.is-active {
  display: block;
}

.module-panel__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.module-panel__scope span {
  color: var(--text);
  font-weight: 700;
}

.detail-grid,
.detail-stack,
.timeline-grid {
  margin-top: 22px;
}

.news-detail__actions {
  margin-top: 24px;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.detail-block {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--detail-bg);
  border: 1px solid var(--detail-border);
}

.detail-block h3,
.detail-block h4 {
  margin-bottom: 10px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.timeline-card__period {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--timeline-bg);
  color: var(--timeline-text);
}

.feature-card--wide {
  max-width: 860px;
}

.publication-meta {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.publication-meta div {
  padding-top: 12px;
  border-top: 1px solid var(--detail-border);
}

.publication-meta__label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  padding: 28px 0 36px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--footer-bg);
}

.footer__primary,
.footer__contact {
  min-width: 0;
}

.footer__contact {
  max-width: 420px;
}

.footer .brand-mark__icon {
  width: 48px;
  height: 48px;
}

.footer .brand-mark__title {
  font-size: 1.45rem;
}

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

.footer__email {
  color: var(--text-soft);
  font-weight: 600;
}

.footer__note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 1080px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--menu-bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .module-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header__row {
    min-height: auto;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand {
    flex: 1 1 100%;
  }

  .site-header__actions {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .brand .brand-mark__subtitle {
    white-space: normal;
  }

  .section-heading,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-track {
    grid-auto-columns: minmax(280px, 78vw);
  }

  .hero__content,
  .hero-stage,
  .feature-card,
  .showcase-slide,
  .card,
  .news-card,
  .timeline-card,
  .module-panel,
  .publication-card,
  .page-header__content,
  .footer__inner {
    padding: 20px;
  }

  .news-card__media {
    margin-right: -20px;
    margin-left: -20px;
  }
}

@media (max-width: 640px) {
  .module-overview-grid {
    grid-template-columns: 1fr;
  }

  :root,
  :root[data-theme="light"],
  :root[data-theme="dark"],
  :root[data-theme="darkblue"] {
    --container: min(1200px, calc(100vw - 24px));
  }

  .section {
    padding: 36px 0;
  }

  .page-header {
    padding-top: 22px;
  }

  .site-header__actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  .brand-mark {
    gap: 10px;
  }

  .brand-mark__icon {
    width: 42px;
    height: 42px;
  }

  .brand-mark__title {
    font-size: 1.3rem;
  }

  .brand-mark__subtitle {
    font-size: 0.78rem;
  }

  .theme-select,
  .language-option {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .button,
  .module-button {
    min-height: 44px;
  }

  .showcase-slide {
    padding: 16px;
  }

  .showcase-slide--plain {
    padding: 0;
  }

  .showcase-controls {
    justify-content: stretch;
  }

  .showcase-counter {
    flex: 1 1 auto;
    justify-content: center;
  }

  .showcase-compare__badge {
    top: 12px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .showcase-compare__badge--after {
    right: 12px;
  }

  .showcase-compare__badge--before {
    left: 12px;
  }

  .showcase-compare__handle {
    width: 48px;
    height: 48px;
  }
}

.module-summary-card__scope {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-overview-grid--compact {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 285px;
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 4px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.module-overview-grid--compact::-webkit-scrollbar {
  height: 8px;
}

.module-overview-grid--compact::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}
