/* ===========================
   Counterfactual Capital
   Design System — Constellation-inspired
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --bg-light: #f7f8fa;
  --bg-blue: #eef3fb;
  --near-black: #111218;
  --text-primary: #111218;
  --text-secondary: rgba(17, 18, 24, 0.60);
  --blue-light: #dbeafe;
  --blue-mid: #3b82f6;
  --blue-dark: #1e3a8a;
  --blue-deep: #0d1f4e;
  --border: rgba(17, 18, 24, 0.10);
  --border-strong: rgba(17, 18, 24, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ===========================
   Navigation
   =========================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(17, 18, 24, 0.05);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--blue-dark);
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--near-black);
  background: rgba(17, 18, 24, 0.05);
}

.nav-links a.active {
  color: var(--near-black);
  font-weight: 600;
}

.nav-cta {
  background: var(--blue-deep) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
  background: var(--blue-deep) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--near-black);
  transition: 0.2s;
}

/* ===========================
   Layout
   =========================== */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ===========================
   Hero
   =========================== */

.hero {
  background: linear-gradient(180deg, #dbeafe 0%, #ffffff 75%);
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Overlay so text stays crisp over the dithered image */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(219, 234, 254, 0.55) 0%,
    rgba(255, 255, 255, 0.45) 60%,
    rgba(255, 255, 255, 0.80) 100%
  );
  pointer-events: none;
  z-index: 2;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: block;
  opacity: 0;
  transform-origin: center center;
  animation: heroDrift 32s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  0%   { transform: scale(1.00) translate(0px, 0px); }
  100% { transform: scale(1.04) translate(-12px, -4px); }
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--near-black);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-dark);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--near-black);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(17, 18, 24, 0.04);
  text-decoration: none;
  color: var(--near-black);
}

/* ===========================
   Page Header (inner pages)
   =========================== */

.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, #dbeafe 0%, #ffffff 80%);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ===========================
   Section anatomy
   =========================== */

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-dark {
  background: var(--blue-deep);
  color: var(--white);
}

.section-light {
  background: var(--bg-light);
}

.section-blue {
  background: var(--bg-blue);
}

/* ===========================
   Streak highlight animation
   =========================== */

.streak {
  background-image: linear-gradient(#bfdbfe, #bfdbfe);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 40%;
  transition: background-size 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 3px;
}

.streak.in-view {
  background-size: 100% 40%;
}

.overline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1rem;
  display: block;
}

.section-dark .overline {
  color: #93c5fd;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-dark .section-heading {
  color: var(--white);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 4rem;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, 0.65);
}

/* ===========================
   Divider
   =========================== */

hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ===========================
   Grid layouts
   =========================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ===========================
   Cards
   =========================== */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(17, 18, 24, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-blue);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Dark card variant */
.card-dark {
  background: var(--blue-deep);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.card-dark h3 {
  color: var(--white);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.65);
}

.card-dark .card-icon {
  background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   Stats
   =========================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===========================
   Proposal cards (editorial)
   =========================== */

.proposal-list {
  border-top: 1px solid var(--border);
}

.proposal-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.proposal-item:hover {
  background: var(--bg-light);
  margin: 0 -2.5rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.proposal-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-top: 0.2rem;
}

.proposal-body {}

.proposal-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--bg-blue);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(30, 58, 138, 0.15);
}

.tag-gray {
  color: var(--text-secondary);
  background: var(--bg-light);
  border-color: var(--border);
}

.proposal-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.proposal-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.proposal-body p + p {
  margin-top: 0.75rem;
}

.proposal-status {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  border: 1px solid rgba(30, 58, 138, 0.2);
  background: var(--bg-blue);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ===========================
   Article / Long-form
   =========================== */

.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 2.5rem;
}

.article-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  display: block;
  margin-bottom: 1.25rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--near-black);
  margin: 3rem 0 1rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.article-body p {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.article-body blockquote {
  border-left: 3px solid var(--blue-dark);
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: var(--bg-blue);
  border-radius: 0 10px 10px 0;
}

.article-body blockquote p {
  color: var(--blue-dark);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0;
  font-style: italic;
}

/* ===========================
   Airtable placeholder
   =========================== */

.airtable-placeholder {
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  margin: 1.5rem 0;
  background: var(--bg-light);
  transition: border-color 0.2s;
}

.airtable-placeholder:hover {
  border-color: var(--blue-mid);
}

.at-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.airtable-placeholder p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.airtable-placeholder strong {
  color: var(--near-black);
}

.airtable-placeholder a {
  font-size: 0.85rem;
  color: var(--blue-mid);
  font-weight: 600;
}

/* ===========================
   Forms
   =========================== */

.forms-section {
  background: var(--bg-light);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.75rem;
  transition: box-shadow 0.2s;
}

.form-box:hover {
  box-shadow: 0 8px 32px rgba(17, 18, 24, 0.07);
}

.form-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.form-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--near-black);
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ===========================
   Callout
   =========================== */

.callout {
  background: var(--bg-blue);
  border: 1px solid rgba(30, 58, 138, 0.12);
  border-radius: 14px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.callout h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.callout p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* Dark CTA section */
.cta-section {
  background: var(--blue-deep);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.btn-white {
  background: var(--white);
  color: var(--blue-deep);
}

.btn-white:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--blue-deep);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--white);
}

/* ===========================
   Gap Analysis
   =========================== */

.gap-list {
  border-top: 1px solid var(--border);
}

.gap-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  transition: background 0.2s;
}

.gap-item:hover {
  background: var(--bg-light);
  margin: 0 -2.5rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.gap-meta {
  padding-top: 0.2rem;
}

.gap-org {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
  display: block;
}

.gap-severity {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-top: 0.75rem;
}

.severity-high {
  background: #fee2e2;
  color: #991b1b;
}

.severity-med {
  background: #fef3c7;
  color: #92400e;
}

.severity-low {
  background: #dcfce7;
  color: #14532d;
}

.gap-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.gap-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gap-body p + p {
  margin-top: 0.75rem;
}

/* ===========================
   Feature row (alternating)
   =========================== */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-text .overline {
  margin-bottom: 0.75rem;
}

.feature-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.feature-visual {
  background: var(--bg-blue);
  border-radius: 16px;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--blue-dark);
  opacity: 0.5;
}

/* ===========================
   Footer
   =========================== */

footer {
  background: var(--near-black);
  padding: 70px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   Responsive
   =========================== */

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

  .feature-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

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

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .gap-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.1rem;
    box-shadow: 0 8px 24px rgba(17,18,24,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .container,
  .container-wide {
    padding: 0 1.5rem;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .page-header {
    padding: 130px 0 60px;
  }

  .grid-3,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .proposal-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .proposal-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .gap-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-wrap {
    padding: 60px 1.5rem;
  }
}
