/* =============================================================
   Centre of VaseBit — cov.edu.rs
   Institutional design system
   Palette: deep navy / white / neutral gray / restrained academic blue
   ============================================================= */

/* ---------- Fonts (self-hosted Inter) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02CC, U+02CE, U+02D2, U+02D8-02DB, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02CC, U+02CE, U+02D2, U+02D8-02DB, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02CC, U+02CE, U+02D2, U+02D8-02DB, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02CC, U+02CE, U+02D2, U+02D8-02DB, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;

  --navy-950: #04101F;
  --navy-900: #071A2E;
  --navy-800: #0B2440;

  --ink: #0C1A2B;
  --body: #35455A;
  --muted: #5C6B80;
  --faint: #8A97A8;

  --line: #E3E8EF;
  --line-strong: #C9D2DE;

  --paper: #FFFFFF;
  --mist: #F6F8FB;
  --mist-2: #EDF1F6;

  --accent: #1A5CA8;
  --accent-strong: #13467E;
  --accent-light: #7FB3E8;
  --accent-soft: #EAF1F9;
  --accent-line: #BFD5EC;

  --on-dark: #E8EEF5;
  --on-dark-muted: #9DB0C7;
  --line-dark: rgba(157, 176, 199, 0.16);

  --danger: #B42318;
  --success: #1F7A45;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(12, 26, 43, 0.05);
  --shadow-2: 0 12px 32px -12px rgba(12, 26, 43, 0.18);

  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent-soft);
}

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

.hero :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.error-main :focus-visible {
  outline-color: var(--accent-light);
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Chinese typography adjustments */
html[lang='zh-CN'] body {
  line-height: 1.8;
}
html[lang='zh-CN'] .hero-title,
html[lang='zh-CN'] .page-hero-title,
html[lang='zh-CN'] .section-head h2,
html[lang='zh-CN'] .cta-band-title,
html[lang='zh-CN'] .card h3 {
  letter-spacing: 0;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-tint {
  background: var(--mist);
}

.section-dark {
  background: var(--navy-900);
  color: var(--on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px -18px rgba(12, 26, 43, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  color: var(--ink);
}

.brand-mark circle {
  fill: currentColor;
}

.brand-mark .mark-accent {
  fill: var(--accent);
}

.brand-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.brand-desc {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.014em;
  line-height: 1.3;
  margin-top: 0.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
}

.nav-list a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-list a[aria-current='page'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-extra {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
}

.lang-switch a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.2rem 0.1rem;
}

.lang-switch a:hover {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch a[aria-current] {
  color: var(--accent);
  font-weight: 600;
}

.lang-switch span {
  color: var(--line-strong);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 16, 31, 0.45);
  border: 0;
  padding: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.72rem 1.35rem;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-head {
  max-width: 720px;
  margin-bottom: 3.25rem;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
}

.section-dark .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow {
  color: var(--accent-light);
}

.prose p {
  max-width: 76ch;
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.prose-limit {
  max-width: 68ch;
}

.note-box {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-top: 1.75rem;
}

.note-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.note-box p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

.note-important {
  font-size: 0.9375rem;
  color: var(--muted);
  border-left: 3px solid var(--accent-line);
  padding-left: 1rem;
  line-height: 1.7;
}

.inline-cta {
  margin-top: 2.25rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
}

.hero-net {
  width: 100%;
  height: 100%;
}

.net-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 3 9;
}

.net-edge {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
}

.net-node {
  fill: rgba(233, 240, 248, 0.7);
  animation: net-pulse 4.2s ease-in-out infinite;
}

.net-node-accent {
  fill: var(--accent-light);
}

.net-nodes circle:nth-child(6n + 2) { animation-delay: 0.5s; }
.net-nodes circle:nth-child(6n + 3) { animation-delay: 1s; }
.net-nodes circle:nth-child(6n + 4) { animation-delay: 1.5s; }
.net-nodes circle:nth-child(6n + 5) { animation-delay: 2s; }
.net-nodes circle:nth-child(6n + 6) { animation-delay: 2.6s; }

@keyframes net-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 660px;
  padding: 7.5rem 0;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent-light);
  opacity: 0.7;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 1.4rem 0 1.5rem;
}

.hero-lead {
  color: #B9C7D8;
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 2.4rem;
}

.hero-meta {
  margin-top: 3.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.hero-meta-domain {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.hero .status-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #C6D2E2;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
  padding: 4.75rem 0 4.5rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.page-hero-eyebrow {
  color: var(--accent-light);
}

.page-hero-title {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  max-width: 24ch;
}

.page-hero-lead {
  color: #B9C7D8;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 64ch;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 1.1rem;
}

.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

a.card {
  color: inherit;
  display: flex;
  flex-direction: column;
}

a.card:hover {
  text-decoration: none;
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

.card-icon {
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.line-icon {
  width: 22px;
  height: 22px;
}

.card-area-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  display: block;
  margin-bottom: 1.4rem;
}

.card-area h3 {
  font-size: 1.1rem;
}

.card-area p {
  margin-bottom: 1.5rem;
}

.card-area-more {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.card-inquiry h3 {
  font-size: 1rem;
}

.card-inquiry p {
  font-size: 0.875rem;
}

.card-pub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-pub-meta time {
  font-size: 0.8125rem;
  color: var(--faint);
  font-family: var(--font-mono);
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

.card-pub-author {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.card-pub-actions {
  margin-top: 1.25rem;
}

/* ---------- Status chip ---------- */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: #fff;
  white-space: nowrap;
}

.status-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}

.status-chip[data-pulse] .status-chip-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.6;
  animation: chip-ping 2.4s var(--ease) infinite;
}

@keyframes chip-ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.split-map-wide {
  grid-template-columns: 1.1fr 0.9fr;
}

.split-eco {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.split-email {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 3.5rem;
}

.split-aside h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.split-aside p {
  margin-bottom: 1.25rem;
}

.split-aside .cta-row {
  margin-top: 1.75rem;
}

/* ---------- Region map ---------- */

.map-figure {
  margin: 0;
}

.region-map {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-orbit {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 2 7;
}

.map-edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.map-hub {
  fill: var(--accent-soft);
  animation: hub-breathe 5s ease-in-out infinite;
}

.map-hub-core {
  fill: var(--accent);
}

.map-region-halo {
  fill: rgba(26, 92, 168, 0.05);
  stroke: var(--accent-line);
  stroke-width: 1;
  transition: fill 0.2s var(--ease), stroke 0.2s var(--ease);
}

.map-region-dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pulse 3.2s ease-in-out infinite;
}

g.map-region:nth-of-type(2) .map-region-dot { animation-delay: 0.45s; }
g.map-region:nth-of-type(3) .map-region-dot { animation-delay: 0.9s; }
g.map-region:nth-of-type(4) .map-region-dot { animation-delay: 1.35s; }
g.map-region:nth-of-type(5) .map-region-dot { animation-delay: 1.8s; }
g.map-region:nth-of-type(6) .map-region-dot { animation-delay: 2.25s; }

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

@keyframes hub-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.map-region-label {
  text-anchor: middle;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--muted);
  transition: fill 0.2s var(--ease);
}

.map-region:hover .map-region-halo,
.map-region:focus-visible .map-region-halo {
  fill: rgba(26, 92, 168, 0.12);
  stroke: var(--accent);
}

.map-region:hover .map-region-label,
.map-region:focus-visible .map-region-label {
  fill: var(--accent);
  font-weight: 600;
}

.map-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

/* ---------- Ecosystem flow ---------- */

.eco-flow {
  list-style: none;
  counter-reset: eco;
}

.eco-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.4rem;
  position: relative;
  padding-bottom: 1.9rem;
}

.eco-step:last-child {
  padding-bottom: 0;
}

.eco-step::before {
  content: '';
  position: absolute;
  left: 1.13rem;
  top: 2.7rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--line-strong);
}

.eco-step:last-child::before {
  display: none;
}

.eco-step-marker {
  counter-increment: eco;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.eco-step-marker::before {
  content: '0' counter(eco);
}

.eco-step-hub .eco-step-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.eco-step-body h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  padding-top: 0.25rem;
}

.eco-step-body p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Numbered list ---------- */

.numbered-list {
  list-style: none;
  counter-reset: item;
  border-top: 1px solid var(--line);
}

.numbered-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.6rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.numbered-marker {
  counter-increment: item;
}

.numbered-marker::before {
  content: '0' counter(item);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.numbered-list p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  padding-top: 0.25rem;
}

/* ---------- Chips ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.chip {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--body);
  background: #fff;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip-lg {
  font-size: 0.9375rem;
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chip-status {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  border-left: 1px solid var(--line);
  padding-left: 0.85rem;
}

.chip-row-large {
  margin-bottom: 1.5rem;
}

/* ---------- Mini list ---------- */

.mini-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.25rem;
}

.mini-list li {
  padding: 1.35rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  border-left: 1px solid var(--line);
}

.mini-list li:first-child {
  border-left: none;
}

/* ---------- Service list ---------- */

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 34rem));
  gap: 1rem 3.5rem;
  justify-content: center;
}

.service-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--body);
}

.service-check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ---------- Check list ---------- */

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.65;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---------- Empty states ---------- */

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 3.25rem 2rem;
  text-align: center;
}

.empty-state-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.1rem;
  color: var(--faint);
}

.empty-state-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.empty-state-text {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 54ch;
  margin: 0.55rem auto 0;
  line-height: 1.65;
}

.empty-state-note {
  color: var(--faint);
  font-size: 0.8125rem;
  margin-top: 1rem;
}

.empty-note {
  font-size: 0.875rem;
  color: var(--faint);
  margin: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.empty-note::before {
  content: '—';
  color: var(--line-strong);
}

/* ---------- Email band ---------- */

.section-email .container {
  max-width: 1080px;
}

.email-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.25rem;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
}

.email-band-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.email-band-copy .eyebrow {
  margin-bottom: 0.45rem;
}

.email-band-title {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.email-band-text {
  font-size: 0.9375rem;
  color: var(--body);
  max-width: 62ch;
  margin: 0 0 1.1rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy-950);
  color: var(--on-dark);
  text-align: center;
  padding: 5.75rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band-title {
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-band-lead {
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  max-width: 56ch;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.cta-row-centered {
  justify-content: center;
}

/* ---------- Forms ---------- */

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.25rem;
  box-shadow: var(--shadow-1);
}

.form-panel-wide {
  max-width: 780px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.5rem;
}

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

.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.req {
  color: var(--accent);
}

.opt {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.75rem;
}

.input {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.input:hover {
  border-color: var(--faint);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 92, 168, 0.14);
}

.input[aria-invalid='true'] {
  border-color: var(--danger);
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235C6B80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--faint);
  margin-top: 0.45rem;
  line-height: 1.55;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 0.45rem;
}

.username-input {
  display: flex;
}

.username-input .input {
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.username-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.field-turnstile {
  margin-top: 0.25rem;
}

.field-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--body);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.form-actions .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.form-banner-success {
  border-color: #BEE3CC;
  background: #F0F9F4;
  color: #155E36;
}

.form-banner-error {
  border-color: #F1B8B4;
  background: #FCF2F1;
  color: #8E2A22;
}

.form-banner-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding: 4.75rem 0 3.25rem;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.footer-brand .brand-mark {
  color: #fff;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.footer-brand-desc {
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  margin: 0.2rem 0 0;
}

.footer-tagline {
  color: var(--on-dark-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1.4rem;
  max-width: 40ch;
}

.footer-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--on-dark-muted);
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: #C6D2E2;
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.6rem 0 2.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

.footer-domain {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ---------- Legal pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
}

.legal-toc-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--faint);
  margin-bottom: 1rem;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
}

.legal-toc a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
}

.legal-toc a::before {
  content: '0' counter(toc) '  ';
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.legal-toc a:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal-updated {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--faint);
}

.legal-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.95rem;
  letter-spacing: -0.01em;
}

.legal-section p {
  margin-bottom: 0.95rem;
  line-height: 1.75;
  max-width: 78ch;
}

.legal-section ul {
  list-style: none;
  margin-bottom: 0.95rem;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.7;
  max-width: 76ch;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1.5px;
  background: var(--line-strong);
}

/* ---------- Error pages ---------- */

.error-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  color: var(--on-dark);
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.error-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
}

.error-main .container {
  position: relative;
}

.error-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  border: 1px solid rgba(127, 179, 232, 0.35);
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.75rem;
}

.error-title {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.error-text {
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  margin-bottom: 2.25rem;
}

/* ---------- Reveal animations ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
html.js .reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (max-width: 1160px) {
  .nav-list {
    gap: 0.85rem;
  }
  .nav-list a {
    font-size: 0.78rem;
  }
  .nav-extra {
    gap: 0.8rem;
    padding-left: 1rem;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.75rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 110;
    overflow-y: auto;
    box-shadow: -16px 0 48px rgba(4, 16, 31, 0.18);
  }
  body.nav-open .site-nav {
    transform: none;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid var(--line);
  }
  .nav-list a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1rem;
    border-bottom: none !important;
  }
  .nav-extra {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 0;
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
  }
  .nav-extra .btn {
    justify-content: center;
  }
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 1020px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .split-map-wide,
  .split-eco,
  .split-email {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-visual {
    width: 100%;
    opacity: 0.32;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
    mask-image: linear-gradient(to bottom, transparent, #000 30%);
  }
  .hero-copy {
    padding: 5.5rem 0;
    max-width: 640px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .service-list {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 1.35rem;
  }
  .section {
    padding: 4rem 0;
  }
  .section-tight {
    padding: 2.5rem 0;
  }
  .section-head {
    margin-bottom: 2.4rem;
  }
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-list {
    grid-template-columns: 1fr 1fr;
  }
  .mini-list li:nth-child(3) {
    border-left: none;
  }
  .mini-list li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .form-panel {
    padding: 1.6rem;
  }
  .email-band {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.9rem 1.6rem;
  }
  .email-band-cta {
    justify-items: start;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .legal-toc {
    position: static;
  }
  .hero-copy {
    padding: 4.5rem 0;
  }
  .page-hero {
    padding: 3.5rem 0 3.25rem;
  }
}

@media (max-width: 560px) {
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }
  .mini-list {
    grid-template-columns: 1fr;
  }
  .mini-list li {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .mini-list li:first-child {
    border-top: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-desc {
    display: none;
  }
  .header-inner {
    height: 64px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .status-chip {
    font-size: 0.625rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .net-node,
  .map-region-dot,
  .map-hub,
  .status-chip[data-pulse] .status-chip-dot::after {
    animation: none;
  }
  .site-nav,
  .btn,
  .card,
  a.card {
    transition: none;
  }
}
