:root {
  --ink: #f8fbff;
  --paper: #f5f1e7;
  --paper-strong: #fffaf0;
  --charcoal: #151a21;
  --navy: #071525;
  --blue: #123864;
  --gold: #d7b24c;
  --red: #b64a3f;
  --green: #4f8068;
  --line-light: rgba(248, 251, 255, 0.22);
  --line-dark: rgba(21, 26, 33, 0.18);
  --panel-surface: rgba(255, 250, 240, 0.92);
  --panel-surface-strong: rgba(255, 255, 255, 0.96);
  --panel-tint: rgba(245, 241, 231, 0.78);
  --panel-text: rgba(7, 21, 37, 0.88);
  --muted-text: rgba(7, 21, 37, 0.68);
  --shadow: 0 24px 80px rgba(7, 21, 37, 0.18);
  --header-surface: linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(248, 251, 255, 0.9));
  --header-surface-scrolled: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 241, 231, 0.94));
  --next-surface: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.94));
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--panel-text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--navy);
  background: var(--paper-strong);
  border-radius: 4px;
  font-weight: 800;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 12px 28px;
  background: var(--header-surface);
  border-bottom: 3px solid rgba(215, 178, 76, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: var(--header-surface-scrolled);
  box-shadow: 0 10px 38px rgba(7, 21, 37, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-strong);
  background: var(--navy);
  border: 2px solid rgba(215, 178, 76, 0.86);
  border-radius: 4px;
  font-size: 0.8rem;
}

.brand-name {
  color: var(--navy);
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: rgba(7, 21, 37, 0.76);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--paper-strong);
  background: var(--navy);
}

.panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 0;
}

.hero {
  align-items: center;
}

@supports (height: 100dvh) {
  .panel {
    min-height: 100dvh;
  }
}

.image-panel {
  --parallax-y: 0px;
}

.image-bg {
  position: absolute;
  inset: -9%;
  z-index: -3;
  background-position: center;
  background-size: cover;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.08);
  will-change: transform;
}

.image-hero .image-bg {
  background-image: url("assets/hero-stadium.png");
}

.image-travel .image-bg {
  background-image: url("assets/exile-travel.png");
}

.image-hub .image-bg {
  background-image: url("assets/hub-meeting.png");
}

.image-recognition .image-bg {
  background-image: url("assets/recognition-register.png");
}

.image-fan .image-bg {
  background-image: url("assets/fan-voice-meeting.png");
}

.image-governance .image-bg {
  background-image: url("assets/governance-ballot.png");
}

.image-constitution .image-bg {
  background-image: url("assets/constitution-table.png");
}

.image-network .image-bg {
  background-image: url("assets/exile-network.png");
}

.image-projects .image-bg {
  background-image: url("assets/exile-network.png");
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 21, 37, 0.72) 0%, rgba(7, 21, 37, 0.48) 42%, rgba(255, 250, 240, 0.16) 100%),
    linear-gradient(0deg, rgba(255, 250, 240, 0.18), rgba(7, 21, 37, 0.16));
}

.scrim-left {
  background:
    linear-gradient(90deg, rgba(7, 21, 37, 0.74) 0%, rgba(7, 21, 37, 0.48) 47%, rgba(255, 250, 240, 0.18) 100%),
    linear-gradient(0deg, rgba(255, 250, 240, 0.2), rgba(7, 21, 37, 0.1));
}

.scrim-right {
  background:
    linear-gradient(270deg, rgba(7, 21, 37, 0.74) 0%, rgba(7, 21, 37, 0.5) 48%, rgba(255, 250, 240, 0.18) 100%),
    linear-gradient(0deg, rgba(255, 250, 240, 0.2), rgba(7, 21, 37, 0.1));
}

.panel-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 46px) 0 110px;
}

#governance .panel-inner {
  padding-bottom: 70px;
}

#projects .panel-inner {
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 92px;
}

.hero-inner {
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 118px;
}

.eyebrow,
.document-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

h1,
h2,
h3,
p,
dl,
ul,
ol {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--paper-strong);
  font-size: 4.75rem;
  line-height: 0.98;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}

h2 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 2.65rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.2rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: var(--navy);
  background: var(--gold);
  border-color: rgba(255, 250, 240, 0.58);
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 250, 240, 0.9);
  border-color: rgba(255, 250, 240, 0.82);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.82);
  border-radius: 8px;
  background: rgba(215, 178, 76, 0.65);
  box-shadow: var(--shadow);
}

.quick-facts div {
  min-height: 124px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.quick-facts dt {
  margin-bottom: 6px;
  color: var(--blue);
  font-weight: 850;
}

.quick-facts dd {
  margin: 0;
  color: var(--panel-text);
}

.next-peek {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 13px max(20px, calc((100% - 1120px) / 2));
  color: var(--navy);
  background: var(--next-surface);
  border-top: 3px solid rgba(215, 178, 76, 0.82);
  box-shadow: 0 -12px 34px rgba(7, 21, 37, 0.14);
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.next-peek span {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.next-peek strong {
  max-width: min(760px, calc(100% - 74px));
  font-size: 0.98rem;
}

.copy-block,
.compare-panel {
  color: var(--panel-text);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--panel-surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.copy-block {
  max-width: 760px;
  padding: 38px;
}

.copy-block.wide {
  max-width: 1040px;
}

.copy-block.align-right {
  margin-left: auto;
}

.copy-block p {
  color: var(--panel-text);
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.compare-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
  background: rgba(215, 178, 76, 0.45);
}

.compare-panel > div {
  padding: 30px;
  background: var(--panel-surface);
}

.compare-panel h3 {
  color: var(--navy);
}

.compare-panel ul,
.principle-card p,
.person-copy p,
.next-grid p {
  margin-bottom: 0;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 8px;
}

.compare-panel li,
.constitution-list li,
.principle-card p,
.person-copy p,
.next-grid p {
  color: var(--panel-text);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.principle-card,
.project-card,
.person-card,
.next-grid article {
  padding: 22px;
  border: 1px solid rgba(7, 21, 37, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.principle-card h3,
.project-card h3,
.person-card h3,
.next-grid h3 {
  color: var(--navy);
}

.project-lab {
  max-width: 1120px;
}

.project-lab > p {
  max-width: 880px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 318px;
}

.project-card p {
  margin-bottom: 14px;
}

.project-card p:last-child {
  margin-bottom: 0;
}

.project-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.people-panel {
  max-width: 1120px;
}

.people-panel > p {
  max-width: 820px;
}

.person-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  min-height: 0;
}

.person-initial {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: var(--paper-strong);
  border: 2px solid rgba(215, 178, 76, 0.86);
  border-radius: 4px;
  font-weight: 900;
}

.person-copy h3 {
  margin-bottom: 12px;
}

.empty-bio p {
  min-height: 132px;
  border-top: 1px solid rgba(7, 21, 37, 0.16);
}

.contact-panel {
  max-width: 920px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--panel-text);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--charcoal);
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(255, 250, 240, 0.8);
  border-radius: 4px;
  font: inherit;
}

.contact-form textarea {
  min-height: 154px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(215, 178, 76, 0.7);
  outline-offset: 2px;
}

.contact-form button {
  width: fit-content;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 1.4em;
  color: var(--panel-text);
  font-weight: 800;
}

.form-status.is-success {
  color: #1f6f46;
}

.form-status.is-error {
  color: var(--red);
}

.mandate-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.mandate-strip span {
  padding: 9px 12px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 850;
}

.constitution-section {
  align-items: flex-start;
}

.governance-intro {
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--panel-surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.governance-intro p {
  max-width: 820px;
  color: var(--panel-text);
}

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

.governance-grid article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(7, 21, 37, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.governance-grid h3 {
  color: var(--navy);
}

.governance-grid p {
  margin-bottom: 0;
}

.constitution-document {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px;
  color: var(--charcoal);
  background: var(--panel-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.constitution-document .document-label {
  color: var(--red);
}

.constitution-document h2 {
  margin-bottom: 8px;
  color: var(--navy);
}

.document-subtitle {
  max-width: 740px;
  margin-bottom: 30px;
  color: rgba(21, 26, 33, 0.72);
  font-size: 1.08rem;
  font-weight: 700;
}

.constitution-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.constitution-list > li {
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}

.constitution-list > li:last-child {
  padding-bottom: 0;
}

.constitution-list h3 {
  color: var(--blue);
}

.constitution-list p,
.constitution-list li {
  color: rgba(21, 26, 33, 0.84);
}

.constitution-list ul {
  margin-bottom: 0;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  color: rgba(255, 250, 240, 0.88);
  background: var(--navy);
  border-top: 4px solid var(--gold);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 980px) {
  :root {
    --header-height: 112px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 18px;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 2px;
  }

  .panel-inner,
  .hero-inner {
    padding-top: calc(var(--header-height) + 34px);
  }

  .split-layout,
  .compare-panel,
  .governance-grid,
  .principle-grid,
  .project-grid,
  .people-grid,
  .form-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-height: 760px) {
  .hero-inner {
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 86px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: 4.15rem;
  }

  .hero-copy {
    margin-bottom: 22px;
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-bottom: 28px;
  }

  .quick-facts div {
    min-height: 100px;
    padding: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 112px;
  }

  .panel-inner {
    width: min(100% - 28px, 1120px);
    padding: calc(var(--header-height) + 24px) 0 104px;
  }

  .hero-inner {
    padding-bottom: 114px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .copy-block,
  .compare-panel > div,
  .governance-intro,
  .constitution-document {
    padding: 24px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-facts {
    display: none;
  }

  .next-peek {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    min-height: 66px;
    padding: 10px 14px;
  }

  .next-peek strong {
    max-width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .image-bg {
    transform: none !important;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .copy-block,
  .compare-panel,
  .quick-facts div {
    background: var(--panel-surface-strong);
  }

  .site-header {
    background: var(--header-surface-scrolled);
  }
}
