:root {
  --white: #ffffff;
  --porcelain: #f8fbff;
  --cloud: #eef6ff;
  --sky: #dceeff;
  --navy: #071b36;
  --blue-deep: #082a5e;
  --blue: #1769e0;
  --blue-bright: #4b97ff;
  --green: #13a976;
  --green-dark: #087e59;
  --mint: #ddf8ee;
  --ink-muted: #617188;
  --line: rgba(8, 42, 94, 0.11);
  --shadow-sm: 0 12px 35px rgba(7, 27, 54, 0.08);
  --shadow-lg: 0 35px 100px rgba(7, 27, 54, 0.15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  --page: min(1200px, calc(100vw - 48px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--porcelain);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(circle at 15% 18%, rgba(8, 42, 94, 0.035) 0 0.6px, transparent 0.8px), radial-gradient(circle at 75% 62%, rgba(19, 169, 118, 0.03) 0 0.5px, transparent 0.8px);
  background-size: 7px 7px, 9px 9px;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

.page-width {
  width: var(--page);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: 140px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  color: white;
  background: var(--blue-deep);
  border-radius: 10px;
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.55);
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 18px rgba(19, 169, 118, 0.55);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 44vw;
  aspect-ratio: 1;
  pointer-events: none;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.16;
  animation: ambient-drift 20s ease-in-out infinite alternate;
}

.ambient-one {
  top: 8%;
  left: -22%;
  background: var(--blue-bright);
}

.ambient-two {
  right: -22%;
  bottom: 5%;
  background: var(--green);
  animation-delay: -8s;
}

.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(67, 156, 255, 0.11), rgba(19, 169, 118, 0.04) 42%, transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.4s ease;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  z-index: 1000;
  width: 100%;
  transition: top 0.45s var(--ease);
}

.nav-shell {
  display: flex;
  width: min(1260px, calc(100vw - 36px));
  min-height: 72px;
  margin-inline: auto;
  padding: 10px 12px 10px 16px;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 35px rgba(7, 27, 54, 0.06);
  backdrop-filter: blur(20px) saturate(150%);
  transition: box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.site-header.scrolled {
  top: 9px;
}

.site-header.scrolled .nav-shell {
  border-color: rgba(8, 42, 94, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(7, 27, 54, 0.1);
}

.brand {
  display: flex;
  min-width: 225px;
  align-items: center;
  gap: 11px;
}

.brand-flag {
  position: relative;
  display: flex;
  width: 50px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(8, 42, 94, 0.48);
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 7px 18px rgba(8, 42, 94, 0.18);
}

.brand-flag::before {
  display: none;
}

.brand-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.brand-flag i {
  display: block;
  height: 100%;
  flex: 1;
}

.brand-flag i:nth-child(1) { background: var(--blue-deep); }
.brand-flag i:nth-child(2) { background: var(--white); }
.brand-flag i:nth-child(3) { background: var(--green); }

.brand-flag b {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--blue-deep);
  font-family: var(--serif);
  font-size: 7px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.brand-flag.small {
  width: 46px;
  height: 31px;
}

.brand-copy {
  display: flex;
  line-height: 1.12;
  flex-direction: column;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  margin-inline: auto;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  color: #40526a;
  font-size: 13px;
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-links a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
  transform-origin: right;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-deep);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  min-width: 170px;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  border-radius: 15px;
  background: var(--blue-deep);
  box-shadow: 0 12px 25px rgba(8, 42, 94, 0.18);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.015em;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.nav-cta:hover { background: var(--blue); }

.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
}

.mobile-menu > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-deep);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 930px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #f7fbff;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 160px;
  pointer-events: none;
  content: "";
  background: linear-gradient(transparent, var(--porcelain));
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(8, 42, 94, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 42, 94, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.42;
  mask-image: linear-gradient(90deg, black 0%, black 48%, transparent 68%);
}

.motion-glow,
.motion-ring,
.motion-particles {
  position: absolute;
  display: block;
}

.motion-glow {
  border-radius: 50%;
  filter: blur(32px);
  mix-blend-mode: multiply;
}

.glow-blue {
  top: 19%;
  left: 3%;
  width: 430px;
  height: 430px;
  opacity: 0.1;
  background: radial-gradient(circle at 36% 35%, rgba(75, 151, 255, 0.62), rgba(220, 238, 255, 0.2) 48%, transparent 72%);
  animation: hero-glow-blue 11s ease-in-out infinite alternate;
}

.glow-green {
  bottom: 8%;
  left: 28%;
  width: 360px;
  height: 360px;
  opacity: 0.085;
  background: radial-gradient(circle at 50% 50%, rgba(19, 169, 118, 0.58), rgba(221, 248, 238, 0.2) 52%, transparent 74%);
  animation: hero-glow-green 13s ease-in-out infinite alternate;
}

.motion-ring {
  border: 1px solid rgba(23, 105, 224, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(23, 105, 224, 0.012), 0 0 0 48px rgba(19, 169, 118, 0.009);
}

.motion-ring::before,
.motion-ring::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.motion-ring::before {
  inset: 17%;
  border: 1px dashed rgba(8, 42, 94, 0.085);
}

.motion-ring::after {
  top: 10%;
  left: 48%;
  width: 9px;
  height: 9px;
  background: var(--blue);
  opacity: 0.55;
  box-shadow: 0 0 0 7px rgba(23, 105, 224, 0.035), 0 0 16px rgba(23, 105, 224, 0.16);
}

.motion-ring-one {
  top: 23%;
  left: 5%;
  width: 350px;
  height: 350px;
  animation: hero-ring-float 18s linear infinite;
}

.motion-ring-two {
  bottom: 10%;
  left: 31%;
  width: 185px;
  height: 185px;
  border-color: rgba(19, 169, 118, 0.1);
  animation: hero-ring-float-reverse 14s linear infinite;
}

.motion-ring-two::after {
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(19, 169, 118, 0.035), 0 0 16px rgba(19, 169, 118, 0.16);
}

.motion-particles {
  top: 28%;
  left: 9%;
  width: 4px;
  height: 4px;
  opacity: 0.28;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 120px -65px 0 rgba(19, 169, 118, 0.75), 255px 20px 0 rgba(23, 105, 224, 0.55), 390px 115px 0 rgba(19, 169, 118, 0.58), 78px 285px 0 rgba(23, 105, 224, 0.55), 310px 360px 0 rgba(19, 169, 118, 0.55), 460px 250px 0 rgba(23, 105, 224, 0.45);
  animation: hero-particles 8s ease-in-out infinite alternate;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  transform: scale(1.035);
  transition: transform 0.18s ease-out;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.99) 0%, rgba(248, 251, 255, 0.92) 30%, rgba(248, 251, 255, 0.35) 58%, rgba(248, 251, 255, 0.02) 82%), linear-gradient(0deg, rgba(248, 251, 255, 0.45), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 760px;
  padding-top: 120px;
  grid-template-columns: minmax(0, 670px) 1fr;
  align-content: center;
}

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

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.3;
}

.eyebrow-line {
  width: 35px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.hero h1 {
  max-width: 700px;
  margin-top: 24px;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: clamp(64px, 6.4vw, 98px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-lede {
  max-width: 590px;
  margin-top: 30px;
  color: #445a75;
  font-size: 19px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 57px;
  padding: 0 23px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.button::before {
  position: absolute;
  top: -50%;
  left: -80%;
  width: 40%;
  height: 200%;
  content: "";
  opacity: 0.35;
  background: linear-gradient(90deg, transparent, white, transparent);
  transform: rotate(20deg);
  transition: left 0.75s var(--ease);
}

.button:hover::before { left: 130%; }
.button:hover { transform: translateY(-3px); }

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #1158c0);
  box-shadow: 0 16px 35px rgba(23, 105, 224, 0.23);
}

.button-primary:hover { box-shadow: 0 22px 48px rgba(23, 105, 224, 0.32); }

.button-ghost {
  color: var(--blue-deep);
  border-color: rgba(8, 42, 94, 0.14);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  border-color: rgba(23, 105, 224, 0.28);
  background: white;
  box-shadow: var(--shadow-sm);
}

.button-arrow {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: transform 0.35s var(--ease);
}

.button-ghost .button-arrow { background: var(--cloud); }
.button:hover .button-arrow { transform: rotate(45deg); }

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 25px 70px rgba(7, 27, 54, 0.12);
  backdrop-filter: blur(22px) saturate(150%);
}

.status-card {
  position: relative;
  display: grid;
  width: min(680px, 100%);
  min-height: 122px;
  margin-top: 38px;
  padding: 15px;
  align-items: stretch;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  border-radius: 23px;
}

.status-heading {
  display: grid;
  padding: 12px 13px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.status-heading strong {
  grid-column: 2;
  color: var(--green-dark);
  font-size: 12px;
  letter-spacing: 0;
}

.live-dot {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(19, 169, 118, 0.12);
}

.live-dot::after {
  position: absolute;
  inset: -6px;
  content: "";
  border: 1px solid var(--green);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.status-card dl {
  display: grid;
  margin-top: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(8, 42, 94, 0.08);
}

.status-card dl div {
  display: flex;
  min-height: 90px;
  padding: 15px 14px;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.84);
  flex-direction: column;
}

.status-card dt {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.status-card dd {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
}

.scroll-cue {
  position: absolute;
  bottom: 52px;
  left: 50%;
  z-index: 3;
  display: flex;
  color: rgba(7, 27, 54, 0.6);
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: relative;
  width: 25px;
  height: 39px;
  border: 1px solid rgba(7, 27, 54, 0.22);
  border-radius: 20px;
}

.scroll-cue span::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 8px;
  content: "";
  border-radius: 3px;
  background: var(--blue);
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

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

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .kicker { justify-content: center; }

.section-heading h2,
.split-heading h2,
.government-copy h2,
.nations-copy h2,
.history-heading h2,
.join-copy h2 {
  margin-top: 18px;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.section-heading > p:last-child,
.split-heading > p,
.government-copy > p:not(.kicker),
.nations-copy > p:not(.kicker),
.history-heading > p:not(.kicker) {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.75;
}

.pillar-grid {
  display: grid;
  margin-top: 72px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1200px;
}

.pillar-card {
  position: relative;
  min-height: 420px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 15px 50px rgba(7, 27, 54, 0.045);
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.18s ease-out;
}

.pillar-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(75, 151, 255, 0.15), transparent 37%);
  transition: opacity 0.4s ease;
}

.pillar-card:hover {
  border-color: rgba(23, 105, 224, 0.22);
  box-shadow: 0 30px 75px rgba(7, 27, 54, 0.1);
}

.pillar-card:hover::after { opacity: 1; }

.pillar-card.featured {
  color: white;
  border-color: transparent;
  background: linear-gradient(155deg, #0b3572 0%, #0a4f73 52%, #087e66 100%);
  box-shadow: 0 28px 70px rgba(8, 60, 93, 0.2);
}

.card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: rgba(8, 42, 94, 0.3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.featured .card-number { color: rgba(255, 255, 255, 0.45); }

.pillar-icon {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 24px auto 39px;
  border: 1px solid rgba(23, 105, 224, 0.17);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 105, 224, 0.1), transparent 65%);
}

.pillar-icon::before,
.pillar-icon::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.pillar-icon::before {
  inset: 16px;
  border: 1px dashed rgba(23, 105, 224, 0.42);
  animation: spin 18s linear infinite;
}

.pillar-icon::after {
  inset: 37px;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 0 25px rgba(23, 105, 224, 0.25);
}

.pillar-icon > span {
  position: absolute;
  inset: -7px 48px;
  border-top: 7px solid var(--blue);
  border-bottom: 7px solid var(--green);
  border-radius: 50%;
}

.featured .pillar-icon {
  border-color: rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 65%);
}

.featured .pillar-icon::before { border-color: rgba(255, 255, 255, 0.4); }
.featured .pillar-icon::after { background: white; box-shadow: 0 0 35px rgba(255, 255, 255, 0.35); }
.featured .pillar-icon > span { border-color: white; }

.globe-icon { transform: rotate(28deg); }
.archive > span { transform: rotate(90deg); }

.pillar-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.pillar-card p {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.72;
}

.pillar-card.featured p { color: rgba(255, 255, 255, 0.72); }

.card-link {
  position: absolute;
  bottom: 25px;
  left: 30px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.featured .card-link { color: white; }
.card-link b { font-size: 17px; transition: transform 0.3s var(--ease); }
.pillar-card:hover .card-link b { transform: translate(3px, -3px); }

.government {
  overflow: hidden;
  background: linear-gradient(145deg, #071b36, #082f5d 62%, #075b62);
}

.government::before {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 65vw;
  aspect-ratio: 1;
  content: "";
  opacity: 0.2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018), 0 0 0 210px rgba(255, 255, 255, 0.012);
}

.government-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.government-copy h2,
.government-copy > p:not(.kicker) { color: white; }
.government-copy > p:not(.kicker) { color: rgba(255, 255, 255, 0.64); }
.government .kicker { color: #79ddbd; }

.text-link {
  display: inline-flex;
  margin-top: 32px;
  padding-bottom: 6px;
  align-items: center;
  gap: 17px;
  color: var(--blue);
  border-bottom: 1px solid rgba(23, 105, 224, 0.3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease), border-color 0.3s ease;
}

.government .text-link { color: white; border-color: rgba(255, 255, 255, 0.3); }
.text-link:hover { gap: 24px; border-color: currentColor; }

.institution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.institution {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 23px;
  background-color: rgba(255, 255, 255, 0.065);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease;
}

.institution:hover {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.26);
  background-color: rgba(255, 255, 255, 0.11);
  transform: translateY(-7px);
}

.institution.executive-card {
  color: var(--blue-deep);
  background-color: white;
  background-image: url("./images/executive.webp");
}

.institution.legislature-card {
  background-color: #304873;
  background-image: url("./images/legislature.webp");
}

.institution.judiciary-card {
  background-color: #263858;
  background-image: url("./images/judiciary.webp");
}

.institution.constitution-card {
  background-color: #478876;
  background-image: url("./images/constitution.webp");
}

.institution-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.executive-card .institution-top { color: rgba(8, 42, 94, 0.3); }

.institution-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
}

.executive-card .institution-symbol { color: var(--blue); border-color: var(--line); background: var(--cloud); }

.institution > p {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.executive-card > p { color: var(--ink-muted); }

.institution h3 {
  max-width: 220px;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.institution-orbit {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(23, 105, 224, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(23, 105, 224, 0.035), 0 0 0 36px rgba(19, 169, 118, 0.025);
  animation: spin 18s linear infinite;
}

.split-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1.2fr 0.65fr;
  gap: 100px;
}

.split-heading > p { margin-bottom: 8px; }

.political-layout {
  display: grid;
  margin-top: 70px;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
}

.parliament-card {
  position: relative;
  display: flex;
  min-height: 690px;
  padding: 30px 30px 24px;
  overflow: hidden;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, white, #eef7ff 60%, #e5fbf4);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
}

.parliament-copy {
  position: absolute;
  top: 28px;
  left: 30px;
  display: flex;
  flex-direction: column;
}

.parliament-copy span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.parliament-copy strong {
  margin-top: 5px;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.senate-chart {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  margin-top: 74px;
}

.senate-pie {
  position: relative;
  width: min(275px, 74vw);
  aspect-ratio: 1;
  border: 9px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: conic-gradient(from -90deg, #3568d4 0 46.154%, #6f91e4 46.154% 61.538%, #3e976f 61.538% 84.615%, #78b79a 84.615% 92.307%, #d5a338 92.307% 100%);
  box-shadow: 0 22px 55px rgba(8, 42, 94, 0.18);
}

.senate-pie-labels { position: absolute; inset: 0; pointer-events: none; }

.senate-percentage {
  position: absolute;
  min-width: 61px;
  padding: 5px 6px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(7, 27, 54, 0.64);
  box-shadow: 0 5px 15px rgba(7, 27, 54, 0.2);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
}

.senate-percentage.compact {
  min-width: 55px;
  padding-inline: 5px;
  font-size: 8px;
}

.senate-total {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--blue-deep);
}

.senate-total strong { font-family: var(--serif); font-size: 27px; font-weight: 500; }
.senate-total span { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.election-countdown {
  position: relative;
  display: flex;
  width: 100%;
  margin-top: 14px;
  padding: 16px 18px 14px;
  overflow: hidden;
  align-items: center;
  color: white;
  border-radius: 18px;
  background: linear-gradient(125deg, #0a2e66, #126f84 68%, #11916c);
  box-shadow: 0 16px 38px rgba(7, 42, 75, 0.18);
  flex-direction: column;
}

.election-countdown::before {
  position: absolute;
  inset: -80% 45% -80% -20%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.countdown-kicker {
  position: relative;
  color: #9ce5cf;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.countdown-units {
  position: relative;
  display: grid;
  width: 100%;
  margin-top: 11px;
  grid-template-columns: repeat(4, 1fr);
}

.countdown-units div {
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  flex-direction: column;
}

.countdown-units div:last-child { border-right: 0; }
.countdown-units strong { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-units small { margin-top: 4px; color: rgba(255, 255, 255, 0.58); font-size: 7px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.election-countdown time { position: relative; margin-top: 10px; color: rgba(255, 255, 255, 0.7); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.election-countdown.complete .countdown-units { display: none; }
.election-countdown.complete time { margin-top: 9px; color: white; font-size: 13px; text-transform: none; }
}

.party-list {
  display: grid;
  gap: 10px;
}

.party-card {
  position: relative;
  display: grid;
  min-height: 130px;
  padding: 18px 22px;
  align-items: center;
  grid-template-columns: 66px 1fr auto;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--party-color, var(--blue));
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 35px rgba(7, 27, 54, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.party-card:hover {
  border-color: rgba(23, 105, 224, 0.22);
  box-shadow: 0 23px 55px rgba(7, 27, 54, 0.09);
  transform: translateX(7px);
}

.party-mark {
  display: grid;
  width: 62px;
  height: 62px;
  overflow: hidden;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 17px;
  background: var(--party-color, var(--blue));
  box-shadow: 0 10px 25px color-mix(in srgb, var(--party-color, var(--blue)) 28%, transparent);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.party-mark img { width: 100%; height: 100%; object-fit: cover; }

.party-card h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.party-card p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.58;
}

.party-coalition {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 7px;
  color: var(--party-color, var(--blue));
  border-radius: 999px;
  background: color-mix(in srgb, var(--party-color, var(--blue)) 10%, white);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.party-share { min-width: 61px; color: var(--blue-deep); text-align: right; }
.party-share strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.party-share small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 8px; font-weight: 750; }

.party-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.party-card:hover .party-arrow { color: white; background: var(--blue); transform: rotate(45deg); }

.nations {
  overflow: hidden;
  background: #edf7f6;
}

.nations::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.35;
  background-image: linear-gradient(rgba(8, 42, 94, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 42, 94, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.nations-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.atlas {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(8, 42, 94, 0.1);
  border-radius: 32px;
  background: linear-gradient(145deg, #d9edff, #dff8ee);
  box-shadow: 0 35px 80px rgba(7, 27, 54, 0.12);
}

.atlas::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 100px rgba(7, 27, 54, 0.09);
}

.atlas-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(rgba(8, 42, 94, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 42, 94, 0.1) 1px, transparent 1px);
  background-size: 55px 55px;
}

.atlas-land {
  position: absolute;
  opacity: 0.82;
  background: linear-gradient(145deg, #78cbb6, #259478);
  box-shadow: inset -15px -15px 28px rgba(7, 83, 72, 0.2), 0 25px 45px rgba(7, 82, 75, 0.14);
  filter: drop-shadow(0 5px 8px rgba(7, 82, 75, 0.15));
}

.land-one {
  top: 17%;
  left: 13%;
  width: 42%;
  height: 33%;
  border-radius: 56% 44% 62% 38% / 45% 59% 41% 55%;
  transform: rotate(-12deg);
}

.land-two {
  top: 42%;
  right: 9%;
  width: 38%;
  height: 39%;
  border-radius: 42% 58% 37% 63% / 61% 36% 64% 39%;
  transform: rotate(18deg);
}

.land-three {
  right: 38%;
  bottom: 11%;
  width: 18%;
  height: 19%;
  border-radius: 57% 43% 64% 36%;
  transform: rotate(-22deg);
}

.map-point {
  position: absolute;
  z-index: 4;
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 18px rgba(7, 27, 54, 0.25);
  backdrop-filter: blur(7px);
}

.map-point::before,
.map-point::after {
  position: absolute;
  inset: 4px;
  content: "";
  border-radius: 50%;
  background: var(--blue);
  transition: background 0.3s ease, transform 0.3s ease;
}

.map-point::after {
  inset: -8px;
  z-index: -1;
  border: 1px solid var(--blue);
  background: transparent;
  animation: map-pulse 2.2s ease-out infinite;
}

.map-point.active::before { background: var(--green); transform: scale(1.25); }
.map-point.active::after { border-color: var(--green); }
.point-one { top: 27%; left: 34%; }
.point-two { top: 57%; right: 24%; }
.point-three { right: 46%; bottom: 19%; }

.atlas-label {
  position: absolute;
  top: 24px;
  left: 25px;
  z-index: 3;
  display: flex;
  padding: 12px 15px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

.atlas-label span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; }
.atlas-label strong { margin-top: 2px; font-family: var(--serif); font-size: 15px; font-weight: 500; }

.nation-preview {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  width: min(300px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(7, 27, 54, 0.12);
  backdrop-filter: blur(18px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.nation-preview.changing { opacity: 0; transform: translateY(8px); }
.nation-index { color: var(--ink-muted); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; }
.mini-flag { display: flex; width: 62px; height: 5px; margin-top: 18px; overflow: hidden; border-radius: 5px; }
.mini-flag i { flex: 1; background: var(--blue-deep); }
.mini-flag i:nth-child(2) { background: white; }
.mini-flag i:nth-child(3) { background: var(--green); }
.nation-preview h3 { margin-top: 16px; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.15; }
.nation-preview p { margin-top: 7px; color: var(--ink-muted); font-size: 11px; }

.nations-copy h2 { font-size: clamp(45px, 4.4vw, 67px); }

.nation-roster {
  display: grid;
  margin-top: 35px;
  gap: 3px;
}

.nation-roster button {
  display: grid;
  width: 100%;
  padding: 15px 4px;
  align-items: center;
  color: var(--ink-muted);
  border: 0;
  border-bottom: 1px solid rgba(8, 42, 94, 0.11);
  background: transparent;
  grid-template-columns: 42px 1fr;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease, padding-left 0.3s var(--ease);
}

.nation-roster button:hover,
.nation-roster button.active { padding-left: 8px; color: var(--blue); }
.nation-roster span { font-size: 9px; font-weight: 800; letter-spacing: 0.14em; }
.nation-roster strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.nation-name { display: flex; flex-direction: column; }
.nation-name small { margin-top: 2px; color: var(--ink-muted); font-size: 9px; font-weight: 650; letter-spacing: 0.035em; }

.history-heading {
  display: grid;
  max-width: 900px;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
}

.history-heading .kicker { grid-column: 1 / -1; }
.history-heading h2 { grid-column: 1; }
.history-heading > p:not(.kicker) { grid-column: 2; align-self: end; }

.timeline {
  position: relative;
  display: grid;
  margin-top: 95px;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.timeline-line {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 1px;
  overflow: hidden;
  background: rgba(8, 42, 94, 0.13);
}

.timeline-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 1.8s var(--ease);
}

.timeline-line span.active { width: 100%; }

.timeline-event {
  position: relative;
  padding-top: 48px;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 17px;
  height: 17px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(23, 105, 224, 0.25), 0 0 22px rgba(23, 105, 224, 0.2);
}

.timeline-event:nth-child(4) .timeline-dot { background: var(--green); }
.timeline-event > span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 0.15em; }
.timeline-event h3 { margin-top: 13px; font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -0.035em; }
.timeline-event p { max-width: 315px; margin-top: 13px; color: var(--ink-muted); font-size: 13px; line-height: 1.72; }

.join {
  padding-top: 40px;
}

.join-card {
  position: relative;
  min-height: 530px;
  padding: 75px;
  overflow: hidden;
  color: white;
  border-radius: 36px;
  background: linear-gradient(130deg, #0a2e66 0%, #0e5a82 52%, #0d9970 100%);
  box-shadow: 0 40px 100px rgba(7, 45, 79, 0.22);
}

.join-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.join-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.join-copy h2 { color: white; font-size: clamp(55px, 6vw, 83px); }
.join-copy > p:not(.kicker) { max-width: 570px; margin-top: 23px; color: rgba(255, 255, 255, 0.7); font-size: 17px; }
.kicker.light { color: #8ce1c5; }

.button-white { color: var(--blue-deep); background: white; box-shadow: 0 18px 40px rgba(7, 27, 54, 0.18); }
.button-outline { color: white; border-color: rgba(255, 255, 255, 0.27); background: rgba(255, 255, 255, 0.06); }
.button-outline:hover { background: rgba(255, 255, 255, 0.13); }

.join-rings {
  position: absolute;
  top: 50%;
  right: 8%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translateY(-50%);
}

.join-rings::before,
.join-rings::after,
.join-rings i {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.join-rings::before { inset: 35px; }
.join-rings::after { inset: 70px; }
.join-rings i:nth-child(1) { inset: -18px 145px; border-width: 5px 0; animation: spin 11s linear infinite; }
.join-rings i:nth-child(2) { inset: 47px -10px 47px 260px; border-width: 0 5px; animation: spin 8s linear reverse infinite; }
.join-rings i:nth-child(3) { inset: 110px; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 80px rgba(255, 255, 255, 0.12); }
.join-rings > span { position: absolute; inset: 116px; display: grid; z-index: 2; place-items: center; border-radius: 50%; background: white; color: var(--blue-deep); font-family: var(--serif); font-size: 40px; box-shadow: 0 15px 50px rgba(7, 27, 54, 0.2); }

.footer {
  display: grid;
  min-height: 180px;
  padding-block: 45px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: var(--blue-deep); font-family: var(--serif); font-size: 16px; font-weight: 600; }
.footer-brand p { margin-top: 2px; }
.footer > p { text-align: center; }
.footer > a { justify-self: end; color: var(--blue); font-weight: 750; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.president-access {
  position: fixed;
  right: 17px;
  bottom: 15px;
  z-index: 900;
  display: grid;
  width: 58px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: var(--blue-deep);
  border: 1px solid rgba(8, 42, 94, 0.16);
  border-radius: 9px;
  opacity: 0.52;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 20px rgba(7, 27, 54, 0.09);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.13em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.president-access::after {
  display: none;
}

.president-access:hover,
.president-access:focus-visible {
  opacity: 0.92;
  box-shadow: 0 12px 30px rgba(7, 27, 54, 0.15);
  transform: scale(1.12);
}

.login-dialog {
  width: min(470px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  color: var(--navy);
  border: 0;
  border-radius: 29px;
  background: transparent;
  box-shadow: 0 40px 130px rgba(7, 27, 54, 0.3);
}

.login-dialog::backdrop {
  background: rgba(5, 18, 37, 0.56);
  backdrop-filter: blur(12px);
}

.login-dialog[open] { animation: dialog-in 0.45s var(--ease); }

.login-panel {
  position: relative;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--porcelain);
  font-size: 20px;
  cursor: pointer;
}

.login-seal {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 27px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 15px 35px rgba(23, 105, 224, 0.2);
  font-family: var(--serif);
  font-size: 24px;
}

.login-panel h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.login-panel > p:not(.kicker):not(.form-error) {
  margin-top: 13px;
  color: var(--ink-muted);
  font-size: 13px;
}

.login-panel label {
  display: block;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
}

.password-field {
  display: flex;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(8, 42, 94, 0.14);
  border-radius: 15px;
  background: var(--porcelain);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.password-field:focus-within {
  border-color: rgba(23, 105, 224, 0.5);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.08);
}

.password-field input {
  width: 100%;
  min-width: 0;
  padding: 0 15px;
  color: var(--navy);
  border: 0;
  outline: 0;
  background: transparent;
}

.password-field button {
  padding: 0 15px;
  color: var(--blue);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.form-error {
  min-height: 20px;
  margin-top: 8px;
  color: #b3263c;
  font-size: 11px;
  font-weight: 650;
}

.login-submit {
  width: 100%;
  margin-top: 3px;
}

.login-panel > small {
  display: block;
  margin-top: 13px;
  color: var(--ink-muted);
  font-size: 9px;
  text-align: center;
}

.senate-editor-dialog {
  width: min(940px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  color: var(--navy);
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 40px 130px rgba(7, 27, 54, 0.35);
}

.senate-editor-dialog::backdrop {
  background: rgba(5, 18, 37, 0.62);
  backdrop-filter: blur(12px);
}

.senate-editor-dialog[open] { animation: dialog-in 0.42s var(--ease); }

.senate-editor-panel {
  position: relative;
  max-height: calc(100vh - 28px);
  padding: 34px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 27px;
  background: rgba(250, 252, 255, 0.98);
}

.senate-editor-panel > header { display: flex; padding-right: 45px; align-items: start; justify-content: space-between; }
.senate-editor-panel h2 { margin-top: 7px; font-family: var(--serif); font-size: 36px; font-weight: 500; letter-spacing: -0.04em; }
.senate-editor-intro { max-width: 700px; margin-top: 12px; color: var(--ink-muted); font-size: 12px; line-height: 1.65; }

.senate-date-field {
  display: flex;
  margin-top: 24px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.senate-date-field span { font-size: 11px; font-weight: 800; }
.senate-date-field input { min-height: 40px; padding: 0 11px; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; background: var(--porcelain); font: inherit; font-size: 11px; }

.senate-editor-labels {
  display: grid;
  margin: 22px 10px 7px;
  grid-template-columns: 78px 1fr 64px 54px 34px;
  gap: 11px;
  color: var(--ink-muted);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.senate-editor-rows { display: grid; gap: 9px; }

.senate-editor-row {
  display: grid;
  padding: 11px;
  align-items: center;
  grid-template-columns: 78px 1fr 64px 54px 34px;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.party-logo-control { position: relative; display: grid; width: 68px; height: 68px; overflow: hidden; place-items: center; color: white; border: 0; border-radius: 16px; background: var(--row-color, var(--blue)); cursor: pointer; font-family: var(--serif); font-weight: 700; }
.party-logo-control img { width: 100%; height: 100%; object-fit: cover; }
.party-logo-control::after { position: absolute; right: 4px; bottom: 4px; display: grid; width: 20px; height: 20px; content: "+"; place-items: center; border-radius: 50%; background: rgba(7, 27, 54, 0.8); font: 700 13px/1 var(--sans); }
.party-logo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.senate-party-details { display: grid; grid-template-columns: 95px 1fr; gap: 7px; }
.senate-party-details .coalition-input { grid-column: 1 / -1; }
.senate-editor-row input[type="text"],
.senate-editor-row input[type="number"] { width: 100%; min-width: 0; min-height: 37px; padding: 0 10px; color: var(--navy); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--porcelain); font: inherit; font-size: 10px; }
.senate-editor-row input:focus { border-color: rgba(23, 105, 224, 0.5); box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.07); }
.senate-editor-row input[type="number"] { text-align: center; }
.senate-editor-row input[type="color"] { width: 48px; height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }

.delete-party-button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: #a62d43; border: 1px solid rgba(166, 45, 67, 0.18); border-radius: 50%; background: rgba(166, 45, 67, 0.05); cursor: pointer; }
.add-party-button { width: 100%; min-height: 45px; margin-top: 10px; color: var(--blue); border: 1px dashed rgba(23, 105, 224, 0.32); border-radius: 13px; background: rgba(23, 105, 224, 0.04); font-size: 10px; font-weight: 800; cursor: pointer; }
.senate-editor-panel > footer { display: flex; margin-top: 8px; justify-content: flex-end; gap: 8px; }
.senate-editor-panel .toolbar-button.secondary { color: var(--blue-deep); border-color: var(--line); background: white; }
.senate-editor-panel .toolbar-button.primary { color: white; border-color: var(--blue); background: var(--blue); }

.editor-toolbar {
  position: fixed;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1500;
  display: flex;
  width: min(760px, calc(100vw - 48px));
  min-height: 70px;
  margin-inline: auto;
  padding: 10px 11px 10px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 21px;
  opacity: 0;
  pointer-events: none;
  background: rgba(7, 27, 54, 0.94);
  box-shadow: 0 25px 70px rgba(7, 27, 54, 0.3);
  backdrop-filter: blur(20px);
  transform: translateY(35px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

body.edit-mode .editor-toolbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.editor-status {
  display: flex;
  align-items: center;
  gap: 11px;
}

.editor-status > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #44dfac;
  box-shadow: 0 0 0 5px rgba(68, 223, 172, 0.12);
}

.editor-status div { display: flex; flex-direction: column; line-height: 1.2; }
.editor-status strong { font-size: 12px; }
.editor-status small { margin-top: 3px; color: rgba(255, 255, 255, 0.57); font-size: 9px; }
.editor-actions { display: flex; align-items: center; gap: 7px; }

.toolbar-button {
  min-height: 43px;
  padding: 0 15px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.toolbar-button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.13); }
.toolbar-button.primary { color: var(--blue-deep); border-color: white; background: white; }
.toolbar-button.senate-button { border-color: rgba(93, 150, 255, 0.45); background: rgba(44, 106, 218, 0.35); }
.toolbar-button.icon { width: 43px; padding: 0; font-size: 17px; }

body.edit-mode [data-editable] {
  border-radius: 4px;
  outline: 1px dashed rgba(23, 105, 224, 0.42);
  outline-offset: 4px;
  cursor: text;
  transition: outline-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.edit-mode [data-editable]:hover,
body.edit-mode [data-editable]:focus {
  outline: 2px solid rgba(23, 105, 224, 0.8);
  background: rgba(221, 248, 238, 0.18);
  box-shadow: 0 0 0 6px rgba(23, 105, 224, 0.06);
}

body.edit-mode .president-access { display: none; }
body.edit-mode { padding-bottom: 100px; }

.toast {
  position: fixed;
  top: 105px;
  left: 50%;
  z-index: 2000;
  max-width: calc(100vw - 32px);
  padding: 12px 17px;
  color: white;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  background: var(--blue-deep);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  font-weight: 750;
  transform: translate(-50%, -15px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #9c2740; }

@keyframes ambient-drift {
  from { transform: translate3d(0, -3%, 0) scale(0.92); }
  to { transform: translate3d(10%, 7%, 0) scale(1.08); }
}

@keyframes pulse-ring {
  0% { opacity: 0.65; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.65); }
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 14px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes map-pulse {
  0% { opacity: 0.8; transform: scale(0.65); }
  100% { opacity: 0; transform: scale(1.45); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-glow-blue {
  from { transform: translate3d(-25px, -12px, 0) scale(0.9); }
  to { transform: translate3d(55px, 35px, 0) scale(1.12); }
}

@keyframes hero-glow-green {
  from { transform: translate3d(35px, 20px, 0) scale(1.05); }
  to { transform: translate3d(-45px, -30px, 0) scale(0.88); }
}

@keyframes hero-ring-float {
  0% { transform: translate3d(-18px, 16px, 0) rotate(0deg); }
  50% { transform: translate3d(28px, -20px, 0) rotate(180deg); }
  100% { transform: translate3d(-18px, 16px, 0) rotate(360deg); }
}

@keyframes hero-ring-float-reverse {
  0% { transform: translate3d(20px, -12px, 0) rotate(360deg); }
  50% { transform: translate3d(-24px, 18px, 0) rotate(180deg); }
  100% { transform: translate3d(20px, -12px, 0) rotate(0deg); }
}

@keyframes hero-particles {
  from { transform: translate3d(0, -12px, 0); opacity: 0.35; }
  to { transform: translate3d(18px, 22px, 0); opacity: 0.78; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-image-wrap img { object-position: 58% center; }
  .hero-image-wash { background: linear-gradient(90deg, rgba(248, 251, 255, 0.99), rgba(248, 251, 255, 0.92) 43%, rgba(248, 251, 255, 0.3) 73%, transparent); }
  .government-layout { gap: 50px; }
  .nations-layout { gap: 48px; }
  .join-rings { right: -6%; opacity: 0.65; }
}

@media (max-width: 900px) {
  :root { --page: min(100% - 34px, 720px); }
  .section { padding-block: 105px; }
  .site-header { top: 10px; }
  .nav-shell { width: calc(100vw - 20px); min-height: 65px; border-radius: 19px; }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .nav-cta { min-width: 0; padding: 0 14px; }
  .nav-cta span:first-child { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 74px;
    right: 10px;
    left: 10px;
    display: flex;
    padding: 13px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .mobile-menu[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .mobile-menu[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 910px; }
  .hero-content { display: flex; min-height: 800px; padding-top: 130px; justify-content: center; flex-direction: column; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(58px, 10vw, 84px); }
  .hero-image-wrap img { object-position: 66% center; }
  .hero-image-wash { background: linear-gradient(90deg, rgba(248, 251, 255, 0.99) 0%, rgba(248, 251, 255, 0.93) 48%, rgba(248, 251, 255, 0.42) 85%), linear-gradient(0deg, rgba(248, 251, 255, 0.5), transparent); }
  .status-card { width: min(620px, 100%); }
  .scroll-cue { display: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 350px; }
  .government-layout,
  .political-layout,
  .nations-layout { grid-template-columns: 1fr; }
  .government-layout { gap: 65px; }
  .government-copy { max-width: 620px; }
  .institution-grid { max-width: 700px; }
  .split-heading { grid-template-columns: 1fr; gap: 10px; }
  .split-heading > p { max-width: 570px; }
  .political-layout { gap: 15px; }
  .parliament-card { min-height: 640px; }
  .senate-editor-labels { display: none; }
  .senate-editor-row { grid-template-columns: 72px 1fr 60px 48px 34px; }
  .nations-layout { gap: 65px; }
  .atlas { min-height: 560px; }
  .nations-copy { max-width: 620px; }
  .history-heading { display: block; }
  .history-heading > p:not(.kicker) { max-width: 600px; }
  .timeline { grid-template-columns: 1fr; gap: 47px; }
  .timeline-line { top: 0; bottom: 0; left: 8px; width: 1px; height: auto; }
  .timeline-line span { width: 100%; height: 0; background: linear-gradient(var(--blue), var(--green)); }
  .timeline-line span.active { width: 100%; height: 100%; }
  .timeline-event { padding-top: 0; padding-left: 50px; }
  .timeline-dot { top: 3px; }
  .join-card { padding: 65px 50px; }
  .join-rings { right: -14%; opacity: 0.3; }
  .footer { grid-template-columns: 1fr auto; }
  .footer > p { display: none; }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 28px); }
  .section { padding-block: 83px; }
  .brand-copy strong { font-size: 14px; }
  .brand-flag { width: 43px; height: 30px; }
  .nav-shell { padding-left: 12px; gap: 4px; }
  .nav-cta { min-height: 43px; }
  .hero { min-height: 960px; }
  .hero-content { min-height: 860px; padding-top: 115px; justify-content: flex-start; }
  .hero-copy { padding-top: 70px; }
  .hero h1 { font-size: clamp(49px, 14.7vw, 70px); line-height: 0.98; }
  .hero-lede { margin-top: 23px; font-size: 16px; }
  .hero-actions { margin-top: 29px; }
  .button { width: 100%; justify-content: space-between; }
  .hero-image-wrap { inset: auto -13% -5% 12%; height: 61%; }
  .hero-image-wrap img { object-position: 68% center; border-radius: 34% 0 0 0; }
  .hero-image-wash { background: linear-gradient(180deg, var(--porcelain), rgba(248, 251, 255, 0.14) 35%, rgba(248, 251, 255, 0.04)); }
  .hero-motion { opacity: 0.28; mask-image: linear-gradient(180deg, black, transparent 68%); }
  .motion-ring-one { left: -30%; }
  .motion-ring-two { left: 55%; }
  .status-card { width: 100%; grid-template-columns: 1fr; }
  .status-card dl { grid-template-columns: 1fr; }
  .status-card dl div { min-height: 48px; }
  .section-heading h2,
  .split-heading h2,
  .government-copy h2,
  .nations-copy h2,
  .history-heading h2 { font-size: clamp(42px, 12vw, 58px); }
  .pillar-grid { margin-top: 48px; }
  .pillar-card { padding: 25px; }
  .card-link { left: 25px; }
  .institution-grid { grid-template-columns: 1fr; }
  .institution { min-height: 195px; }
  .institution > p { margin-top: 35px; }
  .parliament-card { min-height: 570px; padding: 20px; }
  .parliament-copy { top: 20px; left: 20px; }
  .senate-chart { margin-top: 72px; }
  .senate-pie { width: min(235px, 72vw); }
  .senate-percentage { min-width: 54px; padding: 4px 5px; font-size: 8px; }
  .senate-percentage.compact { min-width: 49px; font-size: 7px; }
  .election-countdown { padding-inline: 11px; }
  .countdown-units strong { font-size: 23px; }
  .party-card { min-height: 0; padding: 16px; grid-template-columns: 54px 1fr auto; gap: 13px; }
  .party-mark { width: 51px; height: 51px; border-radius: 14px; font-size: 11px; }
  .party-card h3 { font-size: 21px; }
  .party-share { min-width: 48px; }
  .party-share strong { font-size: 19px; }
  .atlas { min-height: 520px; border-radius: 25px; }
  .nation-preview { right: 15px; bottom: 15px; width: calc(100% - 30px); }
  .land-one { top: 20%; left: 4%; width: 49%; }
  .land-two { top: 42%; right: 2%; width: 46%; }
  .point-one { left: 27%; }
  .point-two { right: 19%; }
  .join { width: 100%; }
  .join-card { min-height: 560px; padding: 55px 26px; border-radius: 0; }
  .join-copy h2 { font-size: clamp(51px, 14vw, 70px); }
  .join-rings { right: -45%; bottom: -22%; top: auto; transform: none; }
  .footer { min-height: 160px; grid-template-columns: 1fr; }
  .footer > a { justify-self: start; }
  .login-panel { padding: 38px 24px 27px; }
  .senate-editor-panel { padding: 27px 18px; }
  .senate-editor-panel h2 { font-size: 30px; }
  .senate-date-field { align-items: stretch; flex-direction: column; }
  .senate-editor-row { position: relative; grid-template-columns: 60px 1fr 58px; gap: 9px; }
  .party-logo-control { width: 58px; height: 58px; border-radius: 14px; }
  .senate-party-details { grid-column: 2 / 4; }
  .senate-editor-row input[type="number"] { grid-column: 2; }
  .senate-editor-row input[type="color"] { grid-column: 3; grid-row: 2; }
  .delete-party-button { position: absolute; top: 5px; right: 5px; }
  .editor-toolbar { right: 8px; bottom: 8px; left: 8px; width: auto; min-height: 62px; padding: 8px 9px 8px 13px; }
  .editor-status small { display: none; }
  .editor-status strong { display: none; }
  .toolbar-button { min-height: 39px; padding: 0 10px; }
  .toolbar-button.secondary { display: none; }
  .president-access { right: 10px; bottom: 9px; width: 54px; }
}

@media (pointer: coarse) {
  .cursor-aura { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .cursor-aura { display: none; }
  .reveal { opacity: 1; transform: none; }
}
