:root {
  --navy-900: #0a2342;
  --navy-700: #133c67;
  --slate-700: #4f5968;
  --slate-500: #6f7b8a;
  --paper: #f6f7f9;
  --ink: #1a1a1a;
  --accent: #c89b3c;
  --accent-strong: #9e7722;
  --success: #2e7d32;
  --warning: #b8860b;
  --info: #1d5fa7;
  --shadow: 0 24px 52px rgba(10, 35, 66, 0.08);
  --radius-lg: 1.6rem;
  --radius-md: 1.1rem;
  --max-width: 1600px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Arial", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.hero {
  width: 100vw;
  padding: 0;
  margin: 0;
}

.hero__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  color: #f7f7f8;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 40px 80px rgba(10, 35, 66, 0.16);
  padding: 1.25rem 2rem 3rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__inner--home {
  background-image: url("hero-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(5, 20, 38, 0.84), rgba(9, 34, 64, 0.7));
}

.hero__inner > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.topbar__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.topbar__tabs a {
  display: block;
  color: #f7f7f8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.topbar__tabs a:hover,
.topbar__tabs a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.topbar__tabs a[aria-current="location"],
.topbar__tabs a:active {
  color: var(--navy-900);
  background: #fff;
}

.hero__content {
  display: grid;
  gap: 2.8rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  padding: 1rem 0 0.25rem;
}

.hero__content--compact {
  grid-template-columns: 1fr;
  padding-top: 0.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e8c547;
  margin: 0 0 0.7rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.3rem, 2.6vw + 1.2rem, 4.2rem);
  max-width: 13ch;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

h2 {
  font-size: clamp(1.8rem, 1.4vw + 1.2rem, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 0.9vw + 0.8rem, 1.5rem);
}

.lead,
.section__body p,
.section p,
.card p,
.phase-card p,
.notice,
.footer p,
.policy-page p,
.objective-list li {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  color: inherit;
}

.hero__copy .lead {
  max-width: 70ch;
  margin-bottom: 1.6rem;
  color: rgba(247, 247, 248, 0.98);
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__actions,
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.hero__stats div {
  padding: 1rem 1rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
}

.hero__stats span {
  display: block;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.95rem;
  color: #d7b36d;
  margin-bottom: 0.35rem;
}

.hero__stats p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(247, 247, 248, 0.92);
}

.hero-right-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-data-panel {
  width: 100%;
  max-width: 450px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(3, 13, 31, 0.42);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.hero-metric {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 0.6rem;
}

.hero-metric + .hero-metric {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-metric__icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.72rem;
  fill: none;
  stroke: #f1d38b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
}

.hero-metric__value,
.hero-metric__label {
  margin: 0;
}

.hero-metric__value {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.hero-metric__label {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

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

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

.button--secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 247, 248, 0.5);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.seal-card {
  background: rgba(247, 247, 248, 0.15);
  border: 1px solid rgba(247, 247, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.seal-card svg {
  width: min(100%, 260px);
  margin-bottom: 0.9rem;
}

.seal__ring {
  fill: none;
  stroke: #d7b36d;
  stroke-width: 3;
}

.seal__line {
  fill: none;
  stroke: #f2dfb6;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.seal__node {
  fill: #f2dfb6;
}

.notice {
  margin-top: 1.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  color: rgba(247, 247, 248, 0.96);
  font-weight: 500;
}

.section,
.footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 0.5rem;
}

.section--intro,
.section--split {
  display: grid;
  gap: 2.25rem;
}

.section--intro {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  padding-bottom: 0;
}

.section--intro + .section {
  padding-top: 2rem;
}

.section--split {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.section__header {
  margin-bottom: 1.2rem;
  padding-left: 0.2rem;
}

.section__header h2 {
  max-width: 14ch;
}

.section__body {
  display: grid;
  gap: 1.5rem;
}

.card,
.phase-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 35, 66, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.65rem;
}

.card--rationale {
  background: linear-gradient(135deg, #fcfcfd, #f3f4f7);
}

.card--engagement {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
  background: linear-gradient(135deg, #f4f6f8, #ffffff);
  border-top: 4px solid var(--accent);
}

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

.phase-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100%;
  border-top: 4px solid var(--accent);
}

.phase-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.phase-number {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.95rem;
  color: var(--slate-700);
  letter-spacing: 0.18em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--completed {
  background: rgba(46, 125, 50, 0.12);
  color: var(--success);
}

.badge--ongoing {
  background: rgba(29, 95, 167, 0.12);
  color: var(--info);
}

.badge--planned {
  background: rgba(184, 134, 11, 0.14);
  color: var(--warning);
}

.badge--future {
  background: rgba(19, 60, 103, 0.1);
  color: var(--navy-700);
}

.phase-card ul,
.objective-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.objective-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.objective-list li {
  color: var(--ink);
}

.footer {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--paper);
  border-radius: 2rem 2rem 0 0;
  padding: 2.2rem 2rem 3rem;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: #f7f7f8;
  text-decoration: none;
}

.policy-page .section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  padding: 1rem;
}

.consent-banner.is-visible {
  display: block;
}

.consent-banner__content {
  max-width: 900px;
  margin: 0 auto;
  background: #fffdf9;
  border: 1px solid rgba(10, 35, 66, 0.15);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}

.consent-banner__content h2 {
  font-size: 1.35rem;
}

.consent-banner__content p {
  margin: 0;
}

.consent-banner__content a {
  color: var(--navy-700);
  font-weight: 700;
}

.consent-banner .button--secondary {
  color: var(--navy-900);
  border-color: rgba(10, 35, 66, 0.35);
  text-shadow: none;
}

.consent-banner .button--secondary:hover {
  color: var(--navy-900);
  background: rgba(10, 35, 66, 0.08);
}

.consent-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.consent-save {
  align-self: start;
}

.consent-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.consent-option input[disabled] {
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .section--intro,
  .section--split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__stats,
  .objective-list {
    grid-template-columns: 1fr;
  }

  .hero-right-container {
    padding: 0.5rem 1rem 1rem;
  }

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

  .topbar__tabs {
    width: 100%;
    border-radius: var(--radius-md);
  }

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

  .footer {
    padding-bottom: 4rem;
  }
}

@media (max-width: 560px) {
  .hero__inner,
  .section,
  .footer,
  .policy-page .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .consent-option {
    width: 100%;
  }

  .consent-actions .button,
  .consent-save {
    width: 100%;
  }

  .consent-actions {
    flex-direction: column;
  }

  .hero-right-container {
    padding: 0.5rem 0;
  }

  .hero-data-panel {
    max-width: 300px;
  }

  .hero-metric {
    grid-template-columns: 2.7rem 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }

  .hero-metric__icon {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0.55rem;
  }
}

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

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