@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700;800&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --bg: #151018;
  --bg-deep: #09080c;
  --bg-soft: #1d1724;
  --surface: rgba(29, 23, 36, 0.72);
  --surface-strong: rgba(38, 31, 47, 0.9);
  --text: #f5f1e8;
  --muted: #c5bbc9;
  --quiet: #95899b;
  --gold: #e0c663;
  --gold-strong: #f1dc83;
  --violet: #7040c8;
  --violet-soft: rgba(112, 64, 200, 0.28);
  --border: rgba(224, 198, 99, 0.19);
  --border-violet: rgba(150, 98, 240, 0.2);
  --shadow-gold: 0 0 34px rgba(224, 198, 99, 0.2);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.36);
  --font-display: "Exo 2", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
  --container: 1160px;
  --header-height: 76px;
}

body.light-mode {
  color-scheme: light;
  --bg: #fbf8ee;
  --bg-deep: #f3eedc;
  --bg-soft: #fffdf5;
  --surface: rgba(255, 252, 241, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #231d29;
  --muted: #4f4757;
  --quiet: #766a7c;
  --gold: #9f842a;
  --gold-strong: #c5a238;
  --violet: #5f37a9;
  --violet-soft: rgba(112, 64, 200, 0.12);
  --border: rgba(159, 132, 42, 0.28);
  --border-violet: rgba(95, 55, 169, 0.18);
  --shadow-gold: 0 0 28px rgba(159, 132, 42, 0.16);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(112, 64, 200, 0.26), transparent 34rem),
    radial-gradient(circle at 90% 16%, rgba(224, 198, 99, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 34rem, #111016);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(224, 198, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 198, 99, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../img/bg-grid-hero-m.svg") top center / min(1300px, 140vw) auto no-repeat;
  opacity: 0.12;
}

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

a:hover {
  color: var(--gold-strong);
}

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: #151018;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(9, 8, 12, 0.34);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, min-height 0.25s ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  background: rgba(9, 8, 12, 0.82);
  border-bottom-color: rgba(224, 198, 99, 0.12);
}

body.light-mode .site-header,
body.light-mode .site-header.is-scrolled {
  background: rgba(255, 252, 241, 0.86);
}

.nav-shell {
  min-height: inherit;
  width: min(1320px, calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 150px;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(112, 64, 200, 0.45));
}

.brand-logo-light,
body.light-mode .brand-logo-dark {
  display: none;
}

body.light-mode .brand-logo-light {
  display: block;
}

.site-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.5rem);
}

.site-menu a,
.language-switch,
.theme-toggle {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.site-menu a {
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid transparent;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--gold-strong);
  border-bottom-color: rgba(224, 198, 99, 0.55);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

.language-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid var(--border-violet);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.language-switch button {
  padding: 0.12rem 0.42rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.language-switch [aria-current="true"] {
  background: rgba(224, 198, 99, 0.14);
  color: var(--gold-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #141015;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  color: #141015;
  box-shadow: 0 0 46px rgba(224, 198, 99, 0.32);
}

.btn-secondary {
  color: var(--gold-strong);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.btn-secondary:hover {
  border-color: rgba(224, 198, 99, 0.42);
  background: rgba(224, 198, 99, 0.09);
}

.nav-cta {
  min-height: 38px;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  background:
    linear-gradient(180deg, rgba(112, 64, 200, 0.32), rgba(9, 8, 12, 0.18) 46%, var(--bg) 100%),
    url("../img/bg.png") center / cover no-repeat;
}

body.light-mode .hero-section {
  background:
    linear-gradient(180deg, rgba(18, 12, 28, 0.72), rgba(18, 12, 28, 0.42) 42%, rgba(251, 248, 238, 0.98) 100%),
    url("../img/bg.png") center / cover no-repeat;
}

.hero-section::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

body.light-mode .hero-section::after,
body.light-mode .page-hero::after {
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background: url("../img/bg-grid-hero-m.svg") center / cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: slow-float 18s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: min(780px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 198, 99, 0.2), rgba(112, 64, 200, 0.1) 42%, transparent 70%);
  filter: blur(46px);
  opacity: 0.9;
  pointer-events: none;
}

.tailor-lines {
  position: absolute;
  inset: 18% 6% 8% auto;
  width: min(360px, 34vw);
  aspect-ratio: 0.72;
  opacity: 0.42;
  pointer-events: none;
}

.tailor-lines span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(224, 198, 99, 0.22);
  border-radius: 52% 48% 56% 44% / 22% 22% 78% 78%;
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1));
}

.tailor-lines span:nth-child(2) {
  --r: -9deg;
  --s: 0.78;
  border-color: rgba(150, 98, 240, 0.3);
}

.tailor-lines span:nth-child(3) {
  --r: 11deg;
  --s: 0.58;
}

.hero-content,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 940px;
}

body.light-mode .hero-content h1,
body.light-mode .hero-content .hero-lead,
body.light-mode .page-hero h1,
body.light-mode .page-hero p {
  color: #fffaf0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
}

body.light-mode .hero-content .eyebrow,
body.light-mode .page-hero .eyebrow {
  color: #f1dc83;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.28rem;
  font-weight: 700;
}

p {
  color: var(--muted);
}

.hero-lead {
  max-width: 820px;
  margin: 1.4rem auto 0;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.badge-row span {
  padding: 0.43rem 0.72rem;
  color: var(--gold-strong);
  font-size: 0.9rem;
  border: 1px solid rgba(224, 198, 99, 0.24);
  border-radius: 999px;
  background: rgba(224, 198, 99, 0.06);
  backdrop-filter: blur(8px);
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split-layout > div > p:not(.eyebrow),
.statement-block > p:not(.eyebrow),
.page-hero p {
  max-width: 760px;
  font-size: 1.13rem;
}

.statement-block {
  max-width: 980px;
}

.mission-section .statement-block {
  max-width: var(--container);
}

.statement-block h2 {
  max-width: 940px;
}

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

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

.ecosystem-grid,
.technical-grid,
.research-grid,
.future-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ecosystem-grid .surface-card,
.technical-grid .surface-card,
.research-grid .surface-card {
  grid-column: span 3;
}

.ecosystem-grid .featured-card {
  grid-column: span 6;
}

.technical-grid .surface-card {
  grid-column: span 4;
}

.future-grid .surface-card {
  grid-column: span 6;
}

.surface-card,
.beta-panel,
.observatory-panel,
.access-form,
.system-map {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(224, 198, 99, 0.07), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(16px);
}

.surface-card {
  min-height: 210px;
  padding: 1.35rem;
  border-radius: 8px;
  overflow: hidden;
}

.surface-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(112, 64, 200, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.surface-card:hover::before {
  opacity: 1;
}

.surface-card p {
  margin: 0.9rem 0 0;
}

.surface-card h2 {
  font-size: 1.28rem;
  line-height: 1.16;
}

.card-index {
  display: block;
  margin-bottom: 1.8rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
}

.featured-card {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(224, 198, 99, 0.12), rgba(112, 64, 200, 0.08)),
    var(--surface-strong);
}

.text-link {
  display: inline-flex;
  margin-top: 1.1rem;
  color: var(--gold-strong);
  font-weight: 700;
  border-bottom: 1px solid rgba(224, 198, 99, 0.45);
}

.vision-preview {
  background:
    linear-gradient(90deg, rgba(112, 64, 200, 0.08), transparent 55%),
    linear-gradient(180deg, transparent, rgba(224, 198, 99, 0.04), transparent);
}

.observatory-panel {
  padding: 1rem;
  border-radius: 8px;
}

.panel-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-violet);
  color: var(--quiet);
}

.panel-line:last-child {
  border-bottom: 0;
}

.panel-line strong {
  color: var(--gold-strong);
  font-family: var(--font-display);
}

.manifesto-strip {
  text-align: center;
}

.manifesto-strip h2 {
  max-width: 900px;
  margin-inline: auto;
}

.manifesto-lines {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}

.manifesto-lines p {
  margin: 0;
  padding: 1.25rem;
  background: var(--surface);
  color: var(--text);
}

.beta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
}

.beta-panel p {
  max-width: 760px;
}

.page-main {
  padding-top: 0;
}

.page-hero {
  position: relative;
  min-height: 68svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-height) + 6.5rem) 0 6.5rem;
  background:
    linear-gradient(180deg, rgba(112, 64, 200, 0.32), rgba(9, 8, 12, 0.16) 54%, var(--bg)),
    url("../img/bg.png") center / cover no-repeat;
}

body.light-mode .page-hero {
  background:
    linear-gradient(180deg, rgba(18, 12, 28, 0.72), rgba(18, 12, 28, 0.38) 56%, rgba(251, 248, 238, 0.98)),
    url("../img/bg.png") center / cover no-repeat;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 6.2rem);
}

.page-hero .btn {
  margin-top: 1.2rem;
}

.manifesto-document {
  max-width: 920px;
}

.legal-document {
  max-width: 920px;
}

.legal-document article {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-violet);
}

.legal-document article:first-child {
  padding-top: 0;
}

.legal-document p {
  max-width: 760px;
  margin-bottom: 0;
}

.manifesto-document article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-violet);
}

.manifesto-document article:first-child {
  padding-top: 0;
}

.manifesto-document span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.manifesto-document p {
  grid-column: 2;
  margin: 0;
  font-size: 1.08rem;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}

.compact-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.map-core,
.map-branch {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
}

.map-core {
  grid-column: 1 / -1;
  min-height: 118px;
  color: #151018;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  letter-spacing: 0.08em;
}

.map-branch {
  color: var(--text);
  background: var(--surface-strong);
}

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
}

.badge-cloud span,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(224, 198, 99, 0.08);
  color: var(--gold-strong);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-badge {
  margin-bottom: 1.2rem;
}

.legal-note {
  max-width: 920px;
  margin-top: 1rem;
  color: var(--quiet);
  font-size: 0.92rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 1.5rem;
  align-items: start;
}

.access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 8px;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--gold-strong);
  font-family: var(--font-display);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-violet);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.82rem 0.9rem;
}

.form-field select option {
  color: #17121b;
}

.form-field textarea {
  resize: vertical;
}

.access-form .btn {
  justify-self: start;
}

.form-status {
  margin: 0;
  align-self: center;
}

.contact-aside {
  min-height: auto;
}

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem 2rem;
  align-items: start;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 24px rgba(224, 198, 99, 0.12));
}

body.light-mode .footer-logo {
  content: url("../img/logo-dark.png");
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.footer-social {
  grid-column: 2;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-social a {
  color: var(--gold-strong);
}

.footer-note,
.copyright {
  margin: 0;
  color: var(--quiet);
}

.copyright {
  text-align: right;
}

@keyframes slow-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(9, 8, 12, 0.96);
    box-shadow: var(--shadow-deep);
  }

  body.light-mode .site-menu {
    background: rgba(255, 252, 241, 0.98);
  }

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

  .site-menu a {
    padding: 0.85rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .language-switch {
    gap: 0.12rem;
    padding: 0.28rem;
  }

  .language-switch button {
    padding-inline: 0.32rem;
  }

  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid .surface-card,
  .technical-grid .surface-card,
  .research-grid .surface-card,
  .future-grid .surface-card {
    grid-column: span 6;
  }

  .ecosystem-grid .featured-card {
    grid-column: span 12;
  }

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

@media (min-width: 761px) and (max-width: 1080px) {
  .site-header {
    min-height: 70px;
  }

  .hero-section {
    min-height: 86svh;
    padding-top: calc(var(--header-height) + 3rem);
  }

  .page-hero {
    min-height: 56svh;
    padding-bottom: 4rem;
  }

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

  .manifesto-document {
    max-width: 860px;
  }
}

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

  .container,
  .nav-shell {
    width: min(100% - 28px, var(--container));
  }

  .brand-mark {
    width: 126px;
  }

  .brand-logo {
    height: 36px;
  }

  .nav-cta {
    display: none;
  }

  .language-switch {
    max-width: 190px;
    overflow-x: auto;
  }

  .hero-section {
    min-height: 92svh;
    padding-top: calc(var(--header-height) + 3rem);
  }

  .page-hero {
    min-height: 58svh;
    padding: calc(var(--header-height) + 4rem) 0 4rem;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.65rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .card-grid,
  .compact-grid,
  .manifesto-lines,
  .access-form,
  .system-map,
  .compact-map {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid .surface-card,
  .ecosystem-grid .featured-card,
  .technical-grid .surface-card,
  .research-grid .surface-card,
  .future-grid .surface-card {
    grid-column: 1 / -1;
  }

  .tailor-lines {
    inset: auto -12% 6% auto;
    width: 62vw;
  }

  .beta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .manifesto-document article {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .manifesto-document p {
    grid-column: auto;
  }

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

  .footer-links,
  .footer-social,
  .copyright {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-social {
    grid-column: auto;
  }
}
