:root {
  --bg: #f6f7f5;
  --bg-alt: #eef2f1;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #f8f6f1;
  --panel-soft: rgba(255, 255, 255, 0.98);
  --line: rgba(16, 36, 59, 0.1);
  --line-strong: rgba(16, 36, 59, 0.18);
  --text: #10243b;
  --muted: #556772;
  /* Teal-based identity */
  --primary: #2ea6a4;
  --primary-soft: rgba(46, 166, 164, 0.1);
  --primary-glow: rgba(46, 166, 164, 0.22);
  /* Status colors (no red in brand) */
  --success: #2fbf71;
  --danger: #b45309;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
  --shadow: 0 18px 54px rgba(17, 34, 57, 0.08);
  --page-pad: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  --fluid-width: 1440;
  --value: 12;
  --design-width: 1440;
  --design-height: 1080;
  --vw-ratio: 1;
  --vh-ratio: 0;
  --min-font-size: 10px;
  --max-font-size: 16px;
  font-size: clamp(
    var(--min-font-size),
    calc((((100vw / var(--design-width)) * (var(--value) * var(--vw-ratio))) + (1 - var(--vw-ratio)) * (var(--value) * 1px)) + ((((100vh / var(--design-height)) * (var(--value) * var(--vh-ratio))) + (1 - var(--vh-ratio)) * (var(--value) * 1px))) / 2),
    var(--max-font-size)
  );
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", Arial, sans-serif;
  font-variant-emoji: text;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 38%, var(--bg) 100%);
  overflow-x: clip;
}

.button-icon,
.nav-link-icon,
.meta-icon,
.label-icon,
.stat-icon,
.panel-title__icon,
.admin-step__icon,
.stack-card__icon,
.upload-drop__icon,
.kyc-step__mark {
  font-family: inherit !important;
  font-variant-emoji: text;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 27, 51, 0.015), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

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

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
}

#app {
  width: min(1200px, calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
  padding: 98px 0 64px;
}

body.is-landing-route #app {
  padding-top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 var(--page-pad);
  transition: transform 240ms ease, opacity 240ms ease;
  will-change: transform, opacity;
}

.site-header--hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.nav-open {
  overflow: hidden;
}

.site-header--overlay {
  background: transparent;
}

.nav-shell {
  position: relative;
  --nav-offset-x: 14px;
  --nav-offset-y: 15px;
  width: min(1200px, 100%);
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Visually center the nav content between the two stacked white shells. */
  padding: calc(12px + (var(--nav-offset-y) / 2)) 0 calc(12px - (var(--nav-offset-y) / 2));
  background: #fff;
  box-shadow: none;
  z-index: 2;
  isolation: isolate;
}

.nav-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(var(--nav-offset-x), var(--nav-offset-y));
  background: #fff;
  box-shadow: none;
  filter: none;
  pointer-events: none;
  z-index: -1;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 51, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 1;
}

.site-header.is--active .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 34px;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.brand img {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-wordmark__strong {
  font-weight: 800;
  color: var(--text);
}

.brand-wordmark__light {
  font-weight: 500;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-item,
.ghost-link {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  border: 0;
  background: transparent;
  transition: 180ms ease;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-link-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  opacity: 0.92;
}

.nav-link-icon svg {
  width: 18px;
  height: 18px;
}

.nav-link-item:hover,
.ghost-link:hover {
  color: var(--text);
  background: rgba(23, 27, 51, 0.04);
}

.nav-link-item.is-active {
  color: var(--primary);
}

.nav-link-item {
  position: relative;
}

.nav-link-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: rgba(46, 166, 164, 0.85);
  transition: width 180ms ease;
  pointer-events: none;
}

@media (min-width: 768px) {
  .nav-link-item:hover,
  .nav-link-item.is-active {
    padding-left: 18px;
  }

  .nav-link-item:hover::before,
  .nav-link-item.is-active::before {
    width: 10px;
  }
}

.site-header--overlay .nav-shell {
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 4;
}

.nav-toggle-line {
  width: 22px;
  height: 2px;
  background: rgba(19, 38, 61, 0.16);
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 180ms ease;
}

.nav-toggle-line-mark {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: currentColor;
  transition: width 240ms ease;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  min-height: calc(100svh - 1px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.hero--landing {
  width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100svh;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
}

.hero-video,
.hero-video-reverse,
.hero-still-wrap,
.hero-still,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 750ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity;
}

.hero-video-reverse {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: opacity;
}

.hero-video-reverse.is-active {
  opacity: 1;
}

.hero-still-wrap {
  opacity: 0;
  transition: opacity 750ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.hero-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero--still .hero-video {
  opacity: 0;
}

.hero--still .hero-still-wrap {
  opacity: 1;
  /* Drift runs forever so the background never feels frozen. */
  animation: hero-drift 25s linear infinite alternate;
}

.hero--still .hero-still {
  /* Zoom runs on its own layer for ultra-smooth Ken Burns movement. */
  animation: hero-zoom 22s linear infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-1.5%, -1%, 0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  pointer-events: none;
  z-index: 0;
}

/* Keeps the floating white nav legible without dulling the whole blueprint video. */
.hero-overlay--top {
  bottom: auto;
  height: 38%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.50) 42%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Localized readability only behind the hero copy. */
.hero-overlay--content {
  right: auto;
  bottom: auto;
  width: min(820px, 92vw);
  height: min(640px, 74vh);
  transform: translate(-8%, 17%);
  background:
    radial-gradient(
      ellipse at 34% 44%,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.82) 28%,
      rgba(255, 255, 255, 0.42) 54%,
      rgba(255, 255, 255, 0) 76%
    ),
    radial-gradient(
      ellipse at 32% 48%,
      rgba(19, 38, 61, 0.11) 0%,
      rgba(19, 38, 61, 0.04) 38%,
      rgba(19, 38, 61, 0) 70%
    );
}

/* Makes the hero dissolve into the pure white next section. */
.hero-overlay--bottom {
  top: auto;
  height: 42%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 58%,
    #fff 100%
  );
}

.page-hero {
  position: relative;
  z-index: 1;
  background: rgba(46, 166, 164, 0.06);
}

.page-hero.compact {
  padding: clamp(24px, 5vw, 52px);
}

.page-hero--tight {
  padding: clamp(22px, 4vw, 44px);
}

.page-hero--tight h1 {
  max-width: 15ch;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.hero h1,
.page-hero h1,
.section-heading h2,
.footer-cta h2,
.auth-copy h1 {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  max-width: 8.5ch;
}

.hero--landing h1 {
  text-transform: none;
  max-width: 16ch;
}

.page-hero h1,
.auth-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
}

.hero-copy,
.page-hero p,
.section-heading p,
.mission-card p,
.info-card p,
.detail-panel p,
.auth-copy p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(98px + 12px) clamp(22px, 5vw, 56px) 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-main {
  position: relative;
  max-width: 680px;
  padding: clamp(10px, 2vw, 18px) 0;
  color: var(--text);
  text-align: left;
  transform: translateY(-30px);
}

.hero-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -48px -72px -40px -54px;
  background:
    radial-gradient(
      ellipse at 32% 42%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.78) 36%,
      rgba(255, 255, 255, 0.30) 66%,
      rgba(255, 255, 255, 0) 82%
    ),
    radial-gradient(
      ellipse at 28% 48%,
      rgba(19, 38, 61, 0.10) 0%,
      rgba(19, 38, 61, 0.03) 46%,
      rgba(19, 38, 61, 0) 76%
    );
  pointer-events: none;
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: max(118px, calc(env(safe-area-inset-bottom) + 8px));
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #0f2740;
  text-decoration: none;
  padding: 0;
}

.hero-scroll-indicator__text {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.92;
  font-weight: 700;
}

.hero-scroll-indicator__line {
  width: 1px;
  height: 58px;
  background: rgba(15, 39, 64, 0.38);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.hero-scroll-indicator__line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0)
  );
  mix-blend-mode: screen;
  animation: hero-scroll-line-shine 1700ms ease-in-out infinite alternate;
}

.hero-scroll-indicator:hover {
  transform: translateX(-50%) translateY(-2px);
}

@keyframes hero-scroll-line-shine {
  0% {
    transform: translateY(-2px);
    opacity: 0.95;
  }
  100% {
    transform: translateY(42px);
    opacity: 0.55;
  }
}

.hero-copy {
  max-width: 400px;
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(19, 38, 61, 0.72);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50% !important;
  flex: 0 0 auto;
  animation: spin 720ms linear infinite;
}

.button.is-loading .button-spinner {
  display: inline-block;
}

.button.is-soft-disabled {
  opacity: 0.62;
  filter: grayscale(0.2);
}

.auth-provider.is-loading .button-spinner {
  display: inline-block;
}

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

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

.button.primary:hover {
  box-shadow: 0 18px 38px rgba(46, 166, 164, 0.22);
}

.button:disabled,
.button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.req {
  color: var(--primary);
  font-weight: 700;
  margin-left: 4px;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(46, 166, 164, 0.2);
  border-color: transparent;
}

.button.secondary {
  background: #fff;
  border-color: rgba(19, 38, 61, 0.14);
  color: var(--text);
}

.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.button.danger {
  background: #e11d48;
  color: #fff;
  border-color: transparent;
}

.button.danger:hover {
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.18);
}

.full-width {
  width: 100%;
}

.section-card,
.detail-panel {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  min-width: 0;
}

.section-card--framed {
  position: relative;
}

.section-card--seamless {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.hero--landing + .section-card--seamless {
  margin-top: -1px;
  padding-top: clamp(34px, 6vw, 76px);
}

.how-it-works {
  padding: 16px 18px 18px;
}

.how-it-works .section-heading {
  gap: 8px;
}

.how-it-works .section-heading.split {
  align-items: start;
}

.how-it-works .section-tag {
  margin-bottom: 8px;
}

.how-it-works h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.strategy-scroll-stage {
  position: relative;
  margin-top: 12px;
  min-height: 240vh;
}

.strategy-sticky {
  position: sticky;
  top: 110px;
}

.strategy-scroll-sentinels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.strategy-scroll-sentinel {
  height: 33.333%;
}

.strategy-block-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
}

.strategy-block-bg {
  position: absolute;
  inset: auto 0 0 260px;
  top: 0;
  border: 1px solid var(--line);
  background: rgba(46, 166, 164, 0.05);
  z-index: 0;
}

.strategy-nav,
.strategy-content-wrapper {
  position: relative;
  z-index: 1;
}

.strategy-nav {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.strategy-nav-item {
  --fill: 0%;
  min-height: 62px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background-color: #fff;
  color: var(--text);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  transition: color 180ms ease;
}

.strategy-nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill);
  background: rgba(46, 166, 164, 0.14);
  pointer-events: none;
  transition: width 120ms linear;
}

.strategy-nav-item > * {
  position: relative;
  z-index: 1;
}

.strategy-nav-item:last-child {
  border-bottom: 0;
}

.strategy-nav-item.is-active {
  color: var(--primary);
}

.strategy-nav-icon {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}

.strategy-content-wrapper {
  border: 1px solid var(--line);
  border-left: 0;
  min-height: 100%;
}

.strategy-content {
  display: none;
  padding: 22px;
}

.strategy-content.is-active {
  display: grid;
  gap: 22px;
}

.strategy-content-top {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.strategy-content-top-title {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.strategy-content-top-text {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.45;
}

.strategy-content-bottom {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.strategy-content-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.strategy-content-item:last-child {
  border-bottom: 0;
}

.strategy-content-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.strategy-content-item-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--text);
}

.strategy-content-item-icon svg {
  width: 100%;
  height: 100%;
}

.strategy-content-item-group {
  display: grid;
  gap: 8px;
}

.strategy-content-item-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.strategy-content-item-title h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.strategy-content-item-title-tag {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.strategy-content-item-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-heading,
.panel-header,
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.section-heading.split {
  align-items: end;
}

.section-lead {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-mark {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.three-up-grid,
.mission-grid,
.dashboard-grid,
.detail-layout {
  display: grid;
  gap: 18px;
}

.numbered-grid,
.three-up-grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-it-works .numbered-grid {
  margin-top: 12px;
  gap: 12px;
}

.mission-grid {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.browse-owned {
  margin-bottom: 18px;
}

.mission-grid--tight {
  margin-top: 14px;
  gap: 12px;
}

.mission-card,
.info-card,
.flow-card,
.skeleton-card,
.funded-item,
.vote-option,
.followup-card,
.notice-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #ffffff;
}

.mission-card,
.info-card,
.flow-card,
.skeleton-card,
.followup-card,
.notice-card {
  padding: 20px;
}

.ocr-inline,
.ocr-confirm {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(46, 166, 164, 0.32);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(46, 166, 164, 0.10), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.ocr-inline .form-grid,
.ocr-confirm .form-grid {
  margin-top: 12px;
}

.ocr-inline textarea,
.ocr-confirm textarea {
  min-height: 96px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.ocr-parsed {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
}

.ocr-parsed__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ocr-parsed__card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  display: grid;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.ocr-parsed__card strong,
.ocr-parsed__card p {
  margin: 0;
}

.ocr-parsed__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ocr-parsed__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
}

.ocr-parsed__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.ocr-parsed__table th,
.ocr-parsed__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ocr-parsed__table th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.paynow-button-row {
  margin: 14px 0 16px;
}

.paynow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.paynow-button img {
  display: block;
  height: 44px;
  width: auto;
  border: 0;
}

.how-it-works .flow-card {
  padding: 12px;
}

.section-card--seamless .flow-card {
  border-color: rgba(19, 38, 61, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 52px rgba(19, 38, 61, 0.045);
}

.mission-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-card__media {
  width: 100%;
  height: 170px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.mission-card__media-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.mission-card__media-placeholder svg {
  width: 28px;
  height: 28px;
}

.mission-card__map {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(46, 166, 164, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(46, 166, 164, 0.08) 1px, transparent 1px),
    #eef6f3;
  background-size: 28px 28px;
}

.mission-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  filter: saturate(0.9) contrast(0.95);
}

.mission-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mission-card__map-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  justify-items: center;
  color: #334155;
  background: #eef2f7;
  font-size: 0.82rem;
  font-weight: 600;
}

.mission-card__map-label {
  display: none;
}

.mission-card__topline,
.mission-card__category,
.mission-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-card__category {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-card__mark {
  color: var(--primary);
}

.mission-card h3,
.flow-card h3,
.info-card h3 {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mission-card__head,
.mission-meta,
.progress-topline,
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mission-meta,
.progress-topline,
.stats-grid span,
.contributor span,
.timeline-item small,
.tranche-item span,
.funded-item span,
.empty-inline {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  background: rgba(46, 166, 164, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.muted {
  background: rgba(46, 166, 164, 0.06);
  color: var(--muted);
}

.pill.success {
  background: rgba(47, 191, 113, 0.16);
  color: #0f5132;
}

.pill.danger {
  background: rgba(225, 29, 72, 0.14);
  color: #7f1d1d;
}

.pill.info {
  background: rgba(46, 166, 164, 0.14);
  color: var(--text);
}

.pill--link {
  gap: 8px;
  border: 1px solid rgba(16, 36, 59, 0.10);
  background: rgba(255, 255, 255, 0.85);
}

.pill--link:hover {
  border-color: rgba(46, 166, 164, 0.45);
}

.pill__icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}

.pill__icon svg {
  width: 16px;
  height: 16px;
}

.supporting-docs {
  margin-bottom: 12px;
}

.supporting-docs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.progress-block {
  display: grid;
  gap: 10px;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  background: rgba(16, 36, 59, 0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ea6a4, #6ad0c9);
  box-shadow: 0 0 30px rgba(46, 166, 164, 0.28);
}

.icon-ring {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.how-it-works .icon-ring {
  width: 42px;
  height: 42px;
}

.icon-ring svg {
  width: 24px;
  height: 24px;
  stroke: #97cbff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-it-works .icon-ring svg {
  width: 18px;
  height: 18px;
}

.flow-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 200px;
}

.how-it-works .flow-card {
  gap: 8px;
  min-height: 0;
}

.how-it-works .flow-card h3 {
  font-size: 1.1rem;
}

.how-it-works .flow-card p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.flow-number {
  color: rgba(23, 27, 51, 0.1);
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.how-it-works .flow-number {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: end;
}

.landing-intro .thesis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.thesis-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(16, 36, 59, 0.06);
}

.thesis-card h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.thesis-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.thesis-card .eyebrow {
  color: var(--primary);
}

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

.browse-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.browse-search input {
  min-height: 44px;
}

.browse-filter-toggle {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 12px;
}

.browse-filter-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 22px;
}

.browse-filter-grid.is-open {
  display: grid;
}

.dashboard-grid--profile {
  grid-template-columns: 1fr;
  align-items: start;
}

.dashboard-summary-card,
.dashboard-settings-card {
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

.profile-shell {
  font-family: Inter, Archivo, system-ui, sans-serif;
}

.profile-shell__title {
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.2;
  color: #171b33;
}

.profile-status-card {
  border-left: 4px solid var(--text);
  background: #f7f8fa;
}

.profile-block-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: #171b33;
}

.profile-form label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
}

.profile-form .checkbox-field {
  text-transform: none;
  font-size: 0.95rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 24px;
}

.profile-page {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
}

.profile-sidenav {
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #f9fafb;
  padding: 18px 0;
  height: fit-content;
}

.profile-sidenav__kicker {
  margin: 0 24px 14px;
  font-size: 11px;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.08em;
}

.profile-sidenav__nav {
  display: grid;
  gap: 2px;
}

.profile-sidenav__nav button {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: #4b5563;
  font-size: 12px;
  text-transform: uppercase;
  padding: 11px 22px;
  border-left: 4px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.profile-sidenav__nav button.is-active {
  background: #171b33;
  color: #fff;
  border-left-color: #0d4aff;
}

.profile-main,
.profile-side {
  display: grid;
  gap: 14px;
}

.profile-panel {
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 24px;
  background: #fff;
}

.profile-status {
  border: 1px solid #171b33;
  border-left: 4px solid #0d4aff;
  border-radius: 0;
  padding: 12px 16px;
  background: #171b33;
  color: #fff;
  height: 200px;
}

.profile-status .eyebrow {
  color: #9ca3af;
  letter-spacing: 0.09em;
}

.profile-status .muted {
  color: #c5c9d3;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  border-radius: 0;
  border-color: #e5e7eb;
  background: #fff;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  border-color: #0d4aff;
}

.profile-panel .button.primary {
  background: #171b33;
  border-color: #171b33;
}

.profile-panel .button.primary:hover {
  background: #0d4aff;
  border-color: #0d4aff;
}

.profile-panel .button.secondary {
  border-color: #171b33;
  color: #171b33;
  background: transparent;
}

.profile-panel .button.secondary:hover {
  border-color: #0d4aff;
  background: #0d4aff;
  color: #fff;
}

[data-portal-section].is-hidden {
  display: none !important;
}

.verification-image-card {
  display: grid;
  gap: 10px;
}

.verification-image-card__img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.verification-image-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .dashboard-grid--profile {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-page {
    grid-template-columns: 1fr;
  }
}

.browse-filter-grid select {
  min-height: 44px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-span-2 {
  grid-column: span 2;
}

.mission-map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line-strong);
  margin-top: 10px;
}

.mission-map-meta {
  margin-top: 6px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(46, 166, 164, 0.76);
  box-shadow: 0 0 0 4px rgba(46, 166, 164, 0.12);
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: var(--primary);
  background: rgba(46, 166, 164, 0.08);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.form-error {
  padding: 12px 14px;
  border: 1px solid rgba(185, 28, 28, 0.4);
  border-left: 4px solid #b91c1c;
  background: #fef2f2;
  color: #7f1d1d;
  font-weight: 700;
  line-height: 1.35;
  border-radius: var(--radius-md);
  margin-top: 2px;
}

.auth-error-banner {
  margin: 10px 0 14px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.checkbox-field input {
  width: 18px;
  min-height: auto;
}

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

.field-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.button.small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stepper-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.stepper-step.is-active {
  border-color: rgba(46, 166, 164, 0.35);
  color: var(--text);
  background: rgba(46, 166, 164, 0.09);
}

.stepper-step.is-locked {
  opacity: 0.55;
}

.stepper-step:disabled {
  cursor: not-allowed;
}

.stepper-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #fff;
  font-size: 0.8rem;
  border-radius: 50%;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wizard-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.warning-text {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  background: rgba(180, 83, 9, 0.12);
  color: #7b3d07;
  line-height: 1.4;
  white-space: pre-line;
}

.kyc-panel {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  border-radius: var(--radius-md);
}

.kyc-panel__top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.kyc-panel__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(46, 166, 164, 0.08);
  color: var(--primary);
  border-radius: var(--radius-md);
}

.kyc-panel__icon svg {
  width: 20px;
  height: 20px;
}

.kyc-panel__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.kyc-panel__sub {
  margin: 4px 0 0;
}

.kyc-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.kyc-step {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--muted);
}

.kyc-step__mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 166, 164, 0.22);
  background: rgba(46, 166, 164, 0.08);
  color: var(--primary);
  flex: 0 0 auto;
  border-radius: var(--radius-md);
}

.kyc-step__mark svg {
  width: 14px;
  height: 14px;
}

.upload-box {
  border: 1px dashed rgba(19, 38, 61, 0.22);
  background: #fff;
  padding: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  border-radius: var(--radius-md);
}

.upload-box.is-dragover {
  border-color: rgba(46, 166, 164, 0.9);
  background: rgba(46, 166, 164, 0.06);
  box-shadow: 0 0 0 4px rgba(46, 166, 164, 0.12);
}

.upload-drop {
  width: 100%;
  border: 0;
  padding: 12px;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text);
}

.upload-drop__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(46, 166, 164, 0.08);
  color: var(--primary);
  border-radius: var(--radius-md);
}

.upload-drop__icon svg {
  width: 18px;
  height: 18px;
}

.upload-drop__title {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}

.upload-drop__empty {
  padding: 4px 9px;
  background: rgba(19, 38, 61, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

.upload-drop__hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  max-width: 46ch;
}

.upload-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  background: rgba(185, 28, 28, 0.1);
  color: #7f1d1d;
  line-height: 1.35;
  border-radius: var(--radius-md);
}

.upload-preview {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
}

.upload-preview__img {
  width: 120px;
  height: 86px;
  object-fit: cover;
  border: 1px solid rgba(19, 38, 61, 0.12);
  background: rgba(19, 38, 61, 0.04);
  border-radius: var(--radius-md);
}

.upload-preview__meta {
  display: grid;
  gap: 6px;
}

.upload-preview__actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.upload-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.upload-progress__track {
  height: 8px;
  background: rgba(19, 38, 61, 0.08);
  border: 1px solid rgba(19, 38, 61, 0.12);
  overflow: hidden;
  border-radius: 999px;
}

.upload-progress__bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 120ms linear;
}

@media (max-width: 820px) {
  .upload-preview {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .upload-preview__img {
    width: 100%;
    height: 160px;
  }

  .upload-preview__actions {
    justify-content: flex-start;
  }
}

.repeat-list {
  display: grid;
  gap: 12px;
}

.repeat-row {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

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

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  border-color: rgba(46, 166, 164, 0.45);
  color: var(--text);
}

.icon-button:disabled,
.icon-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.repeat-summary {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 36, 59, 0.02);
  display: grid;
  gap: 8px;
}

.repeat-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.button-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.button-icon svg {
  width: 18px;
  height: 18px;
}

.label-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.label-icon svg {
  width: 16px;
  height: 16px;
}

.filter-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mission-meta .meta-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.mission-meta .meta-icon svg {
  width: 14px;
  height: 14px;
}

.mission-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.stat-icon svg {
  width: 14px;
  height: 14px;
}

.stepper-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.stepper-icon svg {
  width: 16px;
  height: 16px;
}

.inline-entry {
  margin-top: 10px;
}

.inline-entry__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr auto;
  gap: 12px;
  align-items: end;
}

.inline-entry__grid--evidence {
  grid-template-columns: 1.1fr 1fr auto;
}

.inline-entry__action {
  display: flex;
  align-items: end;
  padding-bottom: 2px;
}

.list-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.stack-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 15% 0%, rgba(46, 166, 164, 0.10), transparent 55%);
  pointer-events: none;
}

.stack-card.is-editing {
  border-color: rgba(46, 166, 164, 0.55);
  box-shadow: 0 10px 30px rgba(46, 166, 164, 0.10);
}

.stack-card__main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.stack-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stack-card__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(46, 166, 164, 0.08);
  color: var(--text);
}

.stack-card__icon svg {
  width: 18px;
  height: 18px;
}

.stack-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stack-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.icon-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-action svg {
  width: 18px;
  height: 18px;
}

.icon-action:hover {
  border-color: rgba(46, 166, 164, 0.45);
  color: var(--text);
  background: rgba(46, 166, 164, 0.05);
}

.icon-action.danger:hover {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(180, 83, 9, 0.08);
}

.empty-mini {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(16, 36, 59, 0.18);
  background: rgba(16, 36, 59, 0.02);
}

.empty-mini__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(46, 166, 164, 0.08);
}

.empty-mini__icon svg {
  width: 18px;
  height: 18px;
}

.timeline-preview {
  border: 1px solid rgba(19, 38, 61, 0.14);
  background:
    linear-gradient(#fff 0 0) padding-box,
    repeating-linear-gradient(90deg, rgba(46, 166, 164, 0.2) 0 1px, transparent 1px 14.28%) border-box;
  padding: 16px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: stretch;
  border-radius: var(--radius-md);
}

.timeline-preview__icon {
  width: 54px;
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--primary) 0 18px, rgba(46, 166, 164, 0.08) 18px 100%);
  color: var(--primary);
  border-radius: var(--radius-sm);
}

.timeline-preview__icon svg {
  width: 18px;
  height: 18px;
}

.timeline-preview__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-preview__row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.timeline-chip {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 38, 61, 0.05) 0 22px, rgba(46, 166, 164, 0.05) 22px 100%);
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 72px;
  border-radius: var(--radius-sm);
}

.timeline-arrow {
  color: var(--primary);
  display: grid;
  place-items: center;
}

.timeline-arrow svg {
  width: 18px;
  height: 18px;
}

.timeline-duration {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(46, 166, 164, 0.22);
  background: rgba(46, 166, 164, 0.08);
  color: var(--text);
  font-weight: 800;
  border-radius: var(--radius-sm);
}

.timeline-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.success-panel {
  text-align: center;
}

.success-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 166, 164, 0.35);
  background: rgba(46, 166, 164, 0.10);
  box-shadow: 0 18px 44px rgba(46, 166, 164, 0.12);
}

.success-badge svg {
  width: 26px;
  height: 26px;
}

.status-row {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
}

.status-pill__icon svg {
  width: 18px;
  height: 18px;
}

.success-meta {
  margin: 14px auto 0;
  max-width: 520px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 36, 59, 0.02);
}

.disbursement-list {
  display: grid;
  gap: 12px;
}

.disbursement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(46, 166, 164, 0.06);
}

.disbursement-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.detail-column {
  display: grid;
  gap: 18px;
}

.stats-grid {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid strong {
  display: block;
  margin-top: 4px;
}

.contributors-list,
.timeline {
  display: grid;
  gap: 14px;
}

.contributor,
.timeline-item,
.tranche-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.avatar,
.timeline-dot,
.tranche-check {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(46, 166, 164, 0.08);
  font-weight: 700;
}

.tranche-check svg {
  width: 18px;
  height: 18px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.tranche-list,
.vote-options,
.mission-list {
  display: grid;
  gap: 12px;
}

.divider {
  height: 1px;
  background: rgba(23, 27, 51, 0.1);
  margin: 18px 0;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-step {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-step__icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex: 0 0 auto;
}

.admin-step__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.admin-step__text {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panel-title__icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex: 0 0 auto;
}

.panel-help {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
  max-width: 52ch;
}

.admin-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
}

.admin-card__hint {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.admin-dispute-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.admin-dispute-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-dispute-evidence {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.page-hero.page-hero--media {
  color: #fff;
  background: #0b1b23;
}

.page-hero.page-hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-media);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.04);
  opacity: 0.85;
}

.page-hero.page-hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 27, 35, 0.65), rgba(11, 27, 35, 0.85) 55%, rgba(11, 27, 35, 0.92)),
    radial-gradient(1200px 400px at 20% 10%, rgba(46, 166, 164, 0.28), transparent 60%);
}

.page-hero.page-hero--media > * {
  position: relative;
  z-index: 1;
}

.page-hero.page-hero--media .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero.page-hero--media p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 70ch;
}

.page-hero.page-hero--map {
  color: #fff;
  background: #0b1b23;
}

.page-hero__mapbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.04);
}

.page-hero.page-hero--map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 27, 35, 0.65), rgba(11, 27, 35, 0.86) 55%, rgba(11, 27, 35, 0.92)),
    radial-gradient(1200px 400px at 20% 10%, rgba(46, 166, 164, 0.24), transparent 60%);
}

.page-hero.page-hero--map .page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero.page-hero--map .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero.page-hero--map p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 70ch;
}

.admin-contest-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.pill-button:hover {
  border-color: rgba(46, 166, 164, 0.35);
  box-shadow: 0 16px 34px rgba(17, 34, 57, 0.07);
}

.pill-button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(46, 166, 164, 0.16);
}

.admin-dispute-row details {
  margin-top: 8px;
}

.admin-dispute-row summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-dispute-extra {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(16, 36, 59, 0.16);
  background: rgba(46, 166, 164, 0.06);
}

.admin-dispute-extra p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-evidence-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-evidence-doc svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.admin-dispute-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-dispute-meta {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.admin-dispute-links {
  margin-top: 8px;
}

.admin-evidence-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.admin-evidence-link:hover {
  text-decoration: underline;
}

.admin-dispute-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
  min-width: 220px;
}

.admin-dispute-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.admin-dispute-actions .button {
  width: 100%;
}

.admin-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card__title {
  margin: 8px 0 6px;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.admin-card__meta {
  margin: 0;
  color: var(--muted);
}

.admin-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-card__details {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-card__details span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.admin-quote-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.admin-quote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-quote__meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.tranche-item.released .tranche-check {
  background: rgba(67, 200, 137, 0.16);
  color: #9bf1c7;
}

.vote-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.vote-option.selected {
  border-color: rgba(46, 166, 164, 0.58);
  background: rgba(46, 166, 164, 0.12);
}

.vote-option input {
  width: auto;
}

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

.evidence-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.evidence-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.evidence-card video {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: #02070d;
}

.evidence-card span {
  display: block;
  padding: 12px 14px;
  color: var(--muted);
}

.auth-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  background: rgba(19, 38, 61, 0.06);
  margin-bottom: 18px;
}

.auth-provider {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 27, 51, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.auth-provider:hover {
  background: rgba(46, 166, 164, 0.06);
}

.auth-provider:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-provider__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.auth-provider__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(23, 27, 51, 0.12);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  display: inline-block;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.88);
}

.tab-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.tab-button.active {
  background: var(--primary-soft);
  color: var(--text);
}

.auth-form.hidden {
  display: none;
}

.dashboard-grid {
  margin-top: 24px;
}

.funded-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.top-gap {
  margin-top: 16px;
}

.footer-cta {
  display: grid;
  gap: 14px;
  align-items: start;
  text-align: left;
}

.footer-cta__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  margin-top: 26px;
  padding: 34px var(--page-pad) 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 36, 59, 0.03), rgba(16, 36, 59, 0.01) 42%, transparent);
}

.site-footer__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer__brand {
  display: grid;
  gap: 12px;
  padding-right: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.footer-brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer-brand__strong {
  font-weight: 800;
  color: var(--text);
}

.footer-brand__light {
  font-weight: 500;
  color: var(--text);
}

.site-footer__about {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer__col h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__col p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.footer-link {
  color: var(--text);
}

.footer-link:hover {
  color: var(--primary);
}

.site-footer__bottom {
  width: min(1120px, 100%);
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 0.9rem;
}

.site-footer__dot {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .mission-grid,
  .landing-intro .thesis-grid,
  .numbered-grid,
  .three-up-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr;
  }
}

.mission-card__link {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-card__arrow {
  color: var(--primary);
  font-size: 1rem;
}

.config-banner {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 195, 78, 0.3);
  background: rgba(255, 195, 78, 0.16);
  color: #7b5810;
}

.centered-panel {
  text-align: center;
}

.empty-state,
.empty-inline {
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(3, 9, 16, 0.72);
  z-index: 40;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #f4efe6);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--text);
  background: rgba(19, 38, 61, 0.08);
}

.modal-open {
  overflow: hidden;
}

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.96);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: 220ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(47, 191, 113, 0.32);
}

.toast.error {
  border-color: rgba(180, 83, 9, 0.34);
}

.skeleton {
  background: linear-gradient(90deg, rgba(19, 38, 61, 0.05), rgba(19, 38, 61, 0.12), rgba(19, 38, 61, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line.wide {
  width: 80%;
}

.skeleton-bar {
  height: 10px;
  margin: 18px 0;
}

.skeleton-button {
  width: 50%;
  height: 44px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 767px) {
  html {
    --value: 10;
    --design-width: 390;
    --design-height: 844;
    --vw-ratio: 0.9;
    --vh-ratio: 0.9;
  }

  #app {
    width: min(100%, calc(100% - 2 * var(--page-pad)));
    padding-top: 90px;
    padding-bottom: 44px;
  }

  body.is-landing-route #app {
    padding-top: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-brand-row {
    min-width: 0;
  }

  .brand-wordmark {
    font-size: 1.55rem;
  }

  .brand {
    margin-left: 10px;
  }

  .nav-shell {
    --nav-offset-x: 9px;
    --nav-offset-y: 10px;
    gap: 10px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 6px;
    border: 1px solid rgba(16, 36, 59, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 9px 9px 0 #fff, 0 22px 60px rgba(16, 36, 59, 0.16);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 3;
  }

  .site-header--overlay .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-header.is--active .nav-links {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-link-item,
  .ghost-link {
    min-height: 52px;
    padding: 14px 12px;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    justify-content: space-between;
    border: 1px solid transparent;
    background: rgba(16, 36, 59, 0.02);
  }

  .nav-link-item::before {
    display: none;
  }

  .nav-link-item:hover,
  .nav-link-item.is-active {
    color: var(--text);
    background: rgba(46, 166, 164, 0.08);
    border-color: rgba(46, 166, 164, 0.18);
  }

  .nav-link-icon {
    order: 2;
    color: var(--primary);
  }

  .site-header.is--active .nav-toggle-line:nth-child(1) .nav-toggle-line-mark,
  .site-header.is--active .nav-toggle-line:nth-child(4) .nav-toggle-line-mark {
    width: 0;
  }

  .site-header.is--active .nav-toggle-line:nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.is--active .nav-toggle-line:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-header.is--active .nav-toggle-line:nth-child(2) .nav-toggle-line-mark,
  .site-header.is--active .nav-toggle-line:nth-child(3) .nav-toggle-line-mark {
    width: 100%;
  }

  .nav-links-wrapper {
    min-width: 0;
  }

  .page-hero.compact,
  .section-card,
  .detail-panel {
    padding: 22px;
  }

  .page-hero--tight {
    padding: 20px;
  }

  .page-hero h1,
  .auth-copy h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .numbered-grid,
  .three-up-grid,
  .strategy-block-wrapper,
  .mission-grid,
  .detail-layout,
  .thesis-grid,
  .auth-layout,
  .dashboard-grid,
  .form-grid,
  .evidence-grid,
  .admin-card__details {
    grid-template-columns: 1fr;
  }

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

  .browse-toolbar {
    grid-template-columns: 1fr auto;
  }

  .browse-filter-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .panel-header,
  .detail-header,
  .field-topline,
  .repeat-summary__row,
  .mission-card__head,
  .mission-meta,
  .progress-topline,
  .funded-item,
  .disbursement-item,
  .vote-option,
  .admin-quote,
  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-meta,
  .progress-topline,
  .repeat-summary__row,
  .funded-item,
  .disbursement-item,
  .vote-option,
  .admin-quote {
    gap: 8px;
  }

  .mission-card__topline,
  .mission-card__category,
  .mission-card__link {
    align-items: flex-start;
  }

  .mission-card__topline {
    flex-direction: column;
  }

  .mission-card__media {
    height: 190px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .tab-button {
    width: 100%;
  }

  .admin-steps {
    grid-template-columns: 1fr;
  }

  .admin-dispute-row {
    grid-template-columns: 1fr;
  }

  .admin-dispute-evidence {
    width: 100%;
    height: 180px;
  }

  .admin-dispute-side {
    justify-items: start;
    min-width: 0;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .stepper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .stepper-step {
    flex: 0 0 118px;
    scroll-snap-align: start;
    justify-content: flex-start;
  }

  .wizard-step.is-active {
    grid-template-columns: 1fr;
  }

  .repeat-row__grid {
    grid-template-columns: 1fr;
  }

  .repeat-row,
  .stack-card {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-entry__grid,
  .inline-entry__grid--evidence {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .inline-entry__action .button {
    width: 100%;
  }

  .timeline-preview {
    grid-template-columns: 1fr;
  }

  .timeline-preview__icon {
    width: 100%;
    min-height: 46px;
  }

  .timeline-preview__row {
    grid-template-columns: 1fr;
  }

  .timeline-chip {
    min-width: 0;
    width: 100%;
  }

  .hero {
    min-height: 100svh;
  }

  .hero--landing {
    min-height: 100svh;
    margin-top: 0;
  }

  .hero-grid {
    padding: calc(98px + 10px) 22px 18px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-main {
    text-align: left;
    width: min(100%, 620px);
    padding: 8px 0;
    transform: translateY(-45px);
  }

  .hero-main::before {
    inset: -40px -28px -34px -24px;
  }

  .hero-overlay--content {
    width: 110vw;
    height: 64vh;
    transform: translate(-22%, 19%);
  }

  .hero-overlay--bottom {
    height: 48%;
  }

  .hero-copy {
    margin-left: 0;
    margin-right: 0;
  }

  .button-row {
    justify-content: flex-start;
  }

  .admin-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-card__actions,
  .admin-dispute-actions {
    justify-content: stretch;
    width: 100%;
  }

  .admin-card__actions .button,
  .admin-dispute-actions .button {
    width: 100%;
  }

  .stack-card__title {
    align-items: flex-start;
  }

  .stack-card__actions {
    width: 100%;
    justify-content: stretch;
  }

  .stack-card__actions .icon-action {
    flex: 1;
  }

  .empty-mini {
    align-items: flex-start;
  }

  .timeline-preview__row {
    align-items: stretch;
  }

  .timeline-arrow {
    display: none;
  }

  .paynow-button,
  .paynow-button img {
    width: 100%;
  }

  .paynow-button img {
    height: auto;
    max-height: 52px;
    object-fit: contain;
  }

  .modal-backdrop {
    padding: 14px;
    align-items: end;
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100svh - 28px);
    padding: 22px 18px;
  }

  .section-heading.split {
    align-items: start;
  }

  .strategy-scroll-stage {
    min-height: auto;
  }

  .strategy-sticky {
    position: static;
  }

  .strategy-scroll-sentinels {
    display: none;
  }

  .strategy-block-wrapper {
    gap: 12px;
  }

  .strategy-block-bg {
    inset: 74px 0 0 0;
  }

  .strategy-nav {
    border-right: 1px solid var(--line);
  }

  .strategy-content-wrapper {
    border-left: 1px solid var(--line);
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer__brand {
    padding-right: 0;
  }

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

  .site-footer__dot {
    display: none;
  }

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

@media (max-width: 480px) {
  :root {
    --page-pad: 16px;
  }

  html {
    --min-font-size: 10px;
    --max-font-size: 14px;
  }

  .nav-shell {
    margin-top: 14px;
    padding: calc(12px + (var(--nav-offset-y) / 2)) 14px calc(12px - (var(--nav-offset-y) / 2));
  }

  .brand img {
    height: 36px;
    max-width: 112px;
  }

  .brand-wordmark {
    font-size: 1.35rem;
  }

  .hero-grid {
    padding: calc(86px + 8px) 18px 16px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 16vw, 4.2rem);
    line-height: 0.92;
  }

  .strategy-nav-item {
    min-height: 54px;
    padding: 14px 12px;
    font-size: 0.74rem;
  }

  .strategy-content {
    padding: 16px;
  }

  .strategy-content-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .strategy-content-item-img {
    width: 40px;
    height: 40px;
  }

  .strategy-content-item-icon {
    width: 40px;
    height: 40px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .stepper-step {
    flex-basis: 126px;
  }

  .stepper-index {
    width: 22px;
    height: 22px;
  }

  .admin-card,
  .mission-card,
  .info-card,
  .flow-card,
  .notice-card,
  .followup-card,
  .skeleton-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero.compact,
  .section-card,
  .detail-panel {
    padding: 18px;
  }

  .mission-card__media {
    height: 168px;
  }

  .admin-dispute-evidence {
    height: 150px;
  }

  .upload-preview__img {
    height: 132px;
  }

  .stack-card__actions,
  .upload-preview__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .icon-action,
  .icon-button {
    width: 100%;
  }

  .modal-panel {
    padding: 20px 16px;
  }

  .toast-root {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}
