:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-end: #050b14;
  --bg-soft: rgba(10, 24, 43, 0.82);
  --panel: rgba(10, 21, 39, 0.78);
  --panel-strong: rgba(9, 18, 33, 0.94);
  --line: rgba(157, 184, 255, 0.12);
  --line-strong: rgba(157, 184, 255, 0.24);
  --text: #eff5ff;
  --muted: #9caecc;
  --text-soft: #9eb1d1;
  --eyebrow: #b9c9e8;
  --brand: #daa5de;
  --brand-deep: #b77ec1;
  --accent: #7c5cff;
  --accent-warm: #ff5f8f;
  --accent-cool: #4cc9f0;
  --success: #7ef0b5;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --surface-grid: rgba(255, 255, 255, 0.018);
  --header-bg: rgba(6, 14, 26, 0.72);
  --section-bg: linear-gradient(180deg, rgba(10, 22, 40, 0.76), rgba(7, 15, 28, 0.88));
  --section-glow: rgba(124, 92, 255, 0.16);
  --card-bg: rgba(255, 255, 255, 0.025);
  --tag-bg: rgba(255, 255, 255, 0.03);
  --button-secondary-bg: rgba(255, 255, 255, 0.03);
  --button-secondary-text: var(--text);
  --footer-text: var(--muted);
  --theme-toggle-bg: rgba(255, 255, 255, 0.04);
  --theme-toggle-active-bg: rgba(255, 255, 255, 0.1);
  --theme-toggle-active-text: var(--text);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4fb;
  --bg-end: #edf4ff;
  --bg-soft: rgba(255, 255, 255, 0.92);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(72, 93, 141, 0.14);
  --line-strong: rgba(72, 93, 141, 0.22);
  --text: #182234;
  --muted: #5f6f8c;
  --text-soft: #556783;
  --eyebrow: #63779a;
  --shadow: 0 24px 60px rgba(83, 100, 139, 0.14);
  --surface-grid: rgba(31, 45, 74, 0.05);
  --header-bg: rgba(255, 255, 255, 0.86);
  --section-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.96));
  --section-glow: rgba(183, 126, 193, 0.12);
  --card-bg: rgba(255, 255, 255, 0.72);
  --tag-bg: rgba(255, 255, 255, 0.84);
  --button-secondary-bg: rgba(255, 255, 255, 0.78);
  --button-secondary-text: #182234;
  --footer-text: #5f6f8c;
  --theme-toggle-bg: rgba(24, 34, 52, 0.06);
  --theme-toggle-active-bg: rgba(24, 34, 52, 0.12);
  --theme-toggle-active-text: #182234;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 92, 255, 0.18), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(76, 201, 240, 0.16), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255, 95, 143, 0.14), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, #ffffff 0%) 0%, var(--bg) 45%, var(--bg-end) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--surface-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.4;
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header,
.site-footer,
.section,
.spotlight-panel,
.future-shell,
.constellation-frame {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(220px, 42vw);
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--theme-toggle-bg);
}

.theme-option {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.theme-option.is-active {
  background: var(--theme-toggle-active-bg);
  color: var(--theme-toggle-active-text);
}

.site-nav a:hover,
.footer-links a:hover,
.inline-link:hover {
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.header-cta:hover,
.berry:hover {
  transform: translateY(-2px);
}

.header-cta,
.button-primary {
  background: linear-gradient(135deg, rgba(218, 165, 222, 0.96), rgba(183, 126, 193, 0.92));
  box-shadow: 0 18px 38px rgba(218, 165, 222, 0.24);
  color: #190f1f;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}

.section {
  position: relative;
  margin-top: 24px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--section-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--section-glow), transparent 70%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-top: 68px;
}

.eyebrow,
.panel-label {
  margin: 0 0 18px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--eyebrow);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 15ch;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.91;
  text-wrap: balance;
}

.hero-emphasis {
  display: block;
  color: #e6efff;
}

html[data-theme="light"] .hero-emphasis {
  color: #22324c;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.05;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  max-width: 68ch;
  margin-top: 24px;
  font-size: 1.04rem;
  line-height: 1.88;
  color: var(--text-soft);
}

.hero-copy {
  max-width: 980px;
}

.hero-actions,
.spotlight-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.cluster-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tag-bg);
  color: #cfe0ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.hero-visual {
  width: 100%;
}

.hero-metrics article,
.overview-card,
.product-card,
.thesis-card,
.future-points article,
.matrix-card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: var(--radius-md);
}

.hero-metrics article {
  padding: 20px 18px;
}

.hero-metrics strong,
.future-points strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.hero .button {
  min-height: 50px;
  padding: 0 20px;
  font-weight: 700;
}

.constellation-frame {
  position: relative;
  min-height: 100%;
  padding: 20px 20px 118px;
  border-radius: calc(var(--radius-xl) - 6px);
  border: 1px solid rgba(157, 184, 255, 0.15);
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 92, 255, 0.22), transparent 30%),
    radial-gradient(circle at 25% 20%, rgba(255, 95, 143, 0.12), transparent 24%),
    radial-gradient(circle at 80% 22%, rgba(76, 201, 240, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(8, 18, 35, 0.92), rgba(8, 15, 28, 0.86));
  overflow: hidden;
}

.hero .constellation-frame {
  max-width: 980px;
  margin: 0 auto;
}

.constellation-glow {
  position: absolute;
  inset: 8% 8% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.24), transparent 70%);
  filter: blur(6px);
}

.hero-cluster-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: none;
}

.svg-lines path,
.stem-layer path {
  fill: none;
  stroke-linecap: round;
}

.svg-lines path {
  stroke: rgba(157, 203, 255, 0.35);
  stroke-width: 3;
  stroke-dasharray: 10 14;
  animation: data-flow 9s linear infinite;
}

.stem-layer path {
  stroke: rgba(163, 192, 153, 0.45);
  stroke-width: 5;
}

.svg-berry {
  cursor: grab;
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;
  animation: berry-float 7s ease-in-out infinite;
  outline: none;
}

.svg-berry.is-dragging {
  cursor: grabbing;
  animation-play-state: paused;
}

.svg-berry:nth-of-type(2n) {
  animation-duration: 8.5s;
}

.svg-berry:nth-of-type(3n) {
  animation-duration: 6.5s;
}

.svg-berry .berry-halo {
  fill: rgba(124, 92, 255, 0.18);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  filter: url(#berryGlow);
}

.svg-berry .berry-orb {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.35));
}

.svg-berry .berry-ring {
  fill: none;
  stroke: rgba(239, 245, 255, 0.22);
  stroke-width: 1.2;
}

.svg-berry.berry-muted {
  opacity: 0.6;
}

.svg-berry.berry-muted .berry-orb {
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.22));
}

.svg-berry text {
  fill: #f8fbff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-anchor: middle;
  pointer-events: none;
}

.svg-berry:hover,
.svg-berry:focus-visible,
.svg-berry.is-active {
  transform: translateY(-5px) scale(1.03);
}

.svg-berry.berry-muted:hover,
.svg-berry.berry-muted:focus-visible,
.svg-berry.berry-muted.is-active {
  opacity: 0.82;
}

.svg-berry:hover .berry-halo,
.svg-berry:focus-visible .berry-halo,
.svg-berry.is-active .berry-halo {
  opacity: 1;
}

.svg-berry.is-active .berry-ring,
.svg-berry:hover .berry-ring,
.svg-berry:focus-visible .berry-ring {
  stroke: rgba(255, 255, 255, 0.6);
}

.svg-berry.berry-live .berry-halo {
  fill: rgba(76, 201, 240, 0.22);
}

.constellation-frame.is-energized .svg-lines path {
  stroke: rgba(185, 225, 255, 0.62);
}

.cluster-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 16, 30, 0.78);
}

.cluster-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.cluster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.section-heading {
  max-width: 760px;
}

.section-heading p:last-child {
  margin-top: 18px;
}

.overview-grid,
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.overview-card,
.product-card,
.thesis-card {
  padding: 24px;
}

.overview-card p,
.product-card p,
.thesis-card p,
.future-points span {
  margin-top: 12px;
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.product-card {
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.product-card.is-active {
  border-color: rgba(178, 210, 255, 0.36);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(2, 10, 22, 0.26);
}

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

.featured {
  grid-column: 1 / -1;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(10, 23, 44, 0.94), rgba(8, 17, 30, 0.92)),
    radial-gradient(circle at top right, rgba(76, 201, 240, 0.12), transparent 30%);
}

html[data-theme="light"] .featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.96)),
    radial-gradient(circle at top right, rgba(76, 201, 240, 0.08), transparent 30%);
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #dfe8fb;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="light"] .pill {
  color: #1f2f4a;
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .hero-tags span,
html[data-theme="light"] .cluster-meta span,
html[data-theme="light"] .nodeberries-badges span {
  color: #1f2f4a;
}

.pill.live {
  border-color: rgba(126, 240, 181, 0.4);
  color: var(--success);
}

.pill.concept {
  color: #f0d6e2;
}

html[data-theme="light"] .pill.live {
  border-color: rgba(31, 156, 96, 0.22);
  color: #20895e;
}

html[data-theme="light"] .pill.concept {
  color: #7f5877;
}

.card-subtitle {
  margin-top: 10px;
  color: #dbe8ff;
  font-weight: 600;
}

html[data-theme="light"] .card-subtitle {
  color: #314562;
}

.inline-link {
  display: inline-flex;
  margin-top: 20px;
  color: #dfe6ff;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.product-actions .inline-link {
  margin-top: 0;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.spotlight-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 24%, rgba(76, 201, 240, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(8, 16, 29, 0.92), rgba(11, 22, 40, 0.94));
}

.spotlight-copy p + p {
  margin-top: 18px;
}

.spotlight-graph {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  margin-top: 12px;
}

.nodeberries-canvas,
.nodeberries-detail {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 96%, transparent), color-mix(in srgb, var(--panel) 92%, transparent)),
    var(--tag-bg);
}

.nodeberries-canvas {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.nodeberries-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

.nodeberries-glow-a {
  top: 8%;
  left: 8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 137, 102, 0.16), transparent 72%);
}

.nodeberries-glow-b {
  right: 6%;
  bottom: 8%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(126, 183, 255, 0.14), transparent 72%);
}

.nodeberries-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.nodeberries-edge {
  fill: none;
  stroke: rgba(116, 138, 166, 0.34);
  stroke-width: 0.36;
  stroke-linecap: round;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

.nodeberries-edge.is-active {
  stroke: rgba(190, 228, 255, 0.92);
  stroke-width: 0.62;
}

.nodeberries-node {
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
  outline: none;
}

.nodeberries-node text {
  fill: rgba(244, 248, 255, 0.94);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

html[data-theme="light"] .nodeberries-node text {
  fill: rgba(34, 43, 63, 0.96);
}

.nodeberries-node.is-dim {
  opacity: 0.5;
}

.nodeberries-node.is-dragging {
  cursor: grabbing;
}

.nodeberries-node.is-active .nodeberries-orb,
.nodeberries-node:hover .nodeberries-orb,
.nodeberries-node:focus-visible .nodeberries-orb {
  stroke: rgba(255, 255, 255, 0.9);
}

.nodeberries-orb {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 0.3;
  transition: stroke 180ms ease, opacity 180ms ease, r 180ms ease;
}

.nodeberries-logo-mark .nodeberries-orb {
  stroke-width: 0.22;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.nodeberries-highlight {
  fill: rgba(255, 255, 255, 0.28);
}

.nodeberries-detail {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nodeberries-detail h3 {
  font-size: 1.6rem;
}

.nodeberries-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nodeberries-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tag-bg);
  color: #dbe7ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nodeberries-related-label {
  margin-top: 6px;
  color: #cddbfa;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

html[data-theme="light"] .nodeberries-related-label {
  color: #465b7b;
}

.nodeberries-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nodeberries-related button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nodeberries-related button:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 183, 255, 0.36);
  background: rgba(126, 183, 255, 0.14);
}

.nodeberries-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(170, 182, 197, 0.56);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.future-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
}

.future-points {
  display: grid;
  gap: 14px;
}

.future-points article {
  padding: 20px;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px 10px 10px;
  color: var(--footer-text);
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-brand .brand-logo {
  height: 30px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 184, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: #dce8ff;
}

html[data-theme="light"] .social-link {
  border-color: rgba(72, 93, 141, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .social-link:hover {
  border-color: rgba(72, 93, 141, 0.28);
  background: rgba(244, 248, 255, 0.96);
}

html[data-theme="light"] .social-link svg {
  fill: #314562;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 14px;
}

@keyframes berry-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes data-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -120;
  }
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (max-width: 1100px) {
  .hero,
  .ecosystem-layout,
  .spotlight-panel,
  .future-shell {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .overview-grid,
  .thesis-grid,
  .ecosystem-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-graph {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .contact-content,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.95rem;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    padding: 28px 20px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-metrics,
  .overview-grid,
  .thesis-grid,
  .ecosystem-cards,
  .spotlight-graph {
    grid-template-columns: 1fr;
  }

  .constellation-frame {
    padding: 16px 16px 138px;
  }

  .hero-cluster-svg text {
    font-size: 14px;
  }

}

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

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

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
