/* ============================================================
   SXG — SuperGenerative
   style.css
   ============================================================ */

/* --- Custom properties ----------------------------------- */
:root {
  --bg:           #060606;
  --bg-surface:   #0a0a0a;
  --bg-raised:    #111111;
  --bg-border:    #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-muted:   #444444;
  --accent:       #00ff87;
  --accent-dim:   rgba(0, 255, 135, 0.08);
  --accent-glow:  rgba(0, 255, 135, 0.15);
  --accent-border: rgba(0, 255, 135, 0.2);
  --danger:       #ff3366;
  --danger-dim:   rgba(255, 51, 102, 0.08);
  --danger-border: rgba(255, 51, 102, 0.25);
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --font-sans:    'Inter', -apple-system, sans-serif;
  --nav-height:   64px;
  --max-width:    900px;
  --section-gap:  140px;
}

/* --- Reset & base ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
}

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

strong {
  font-weight: 600;
  color: var(--text-primary);
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: none;
  font-family: inherit;
}

@media (max-width: 768px) {
  button {
    cursor: pointer;
  }
}

/* --- Overlays -------------------------------------------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.025;
  width: 100%;
  height: 100%;
}

.grain-overlay svg {
  width: 100%;
  height: 100%;
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.03;
}

/* --- Canvas background ----------------------------------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  #bg-canvas {
    display: none;
  }
}

/* --- Custom cursor --------------------------------------- */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease, opacity 0.2s ease;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.cursor-ring.is-hovering {
  width: 44px;
  height: 44px;
  border-color: var(--accent);
}

body:not(:hover) .cursor-dot,
body:not(:hover) .cursor-ring {
  opacity: 0;
}

@media (max-width: 768px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* --- Navigation ------------------------------------------ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#main-nav.is-scrolled {
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--bg-border);
}

.nav-inner {
  max-width: calc(var(--max-width) + 80px);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.logo-full {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link--cta {
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
    cursor: pointer;
  }
  .nav-inner {
    padding: 0 24px;
  }
}

/* --- Mobile nav drawer ----------------------------------- */
.nav-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(6, 6, 6, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border);
  padding: 24px;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}

.nav-drawer.is-open {
  transform: translateY(0);
}

.drawer-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-border);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.drawer-link:last-child {
  border-bottom: none;
}

.drawer-link:hover {
  color: var(--accent);
}

/* --- Layout ---------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

/* --- Reveal animations ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children */
.reveal-child:nth-child(2) { transition-delay: 0.1s; }
.reveal-child:nth-child(3) { transition-delay: 0.2s; }
.reveal-child:nth-child(4) { transition-delay: 0.3s; }
.reveal-child:nth-child(5) { transition-delay: 0.4s; }

/* --- Section typography ---------------------------------- */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.body-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 640px;
}

.body-text:last-child {
  margin-bottom: 0;
}

/* --- Hero section ---------------------------------------- */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
}

.hero-inner {
  max-width: 720px;
}

.hero-text {
  margin-bottom: 44px;
}

.hero-statement {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-statement:last-child {
  margin-bottom: 0;
}

/* --- Hero thesis block ----------------------------------- */
.hero-thesis {
  margin: 48px 0;
  padding: 32px 0 32px 28px;
  border-left: 3px solid var(--accent);
}

.hero-thesis-text {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-delta {
  margin-bottom: 48px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.delta-line {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* --- Scroll cue ------------------------------------------ */
.scroll-cue {
  margin-top: 64px;
  color: var(--text-muted);
  animation: scrollBob 2s ease-in-out infinite;
  width: fit-content;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.9; }
}

/* --- CTA button ------------------------------------------ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #060606;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid var(--accent);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.cta-primary:hover::before {
  transform: translateX(0);
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* --- Approach section ------------------------------------ */
.approach-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.approach-lead .section-heading {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 0;
}

.approach-principles {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--bg-border);
}

.principle {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-border);
}

.principle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 90px;
  flex-shrink: 0;
}

.principle-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Problem / Scenario section -------------------------- */
.scenario-block {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .scenario-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- SVG chart ------------------------------------------- */
.scenario-chart {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.chart-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scenario-chart.is-animated .chart-path {
  stroke-dashoffset: 0;
}

.metric-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 10px;
}

.resolution {
  border-top: 1px solid var(--bg-border);
  padding-top: 40px;
}

.resolution-text {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* --- Metric bars (scroll-animated) ----------------------- */
.metric-block {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: 90px 1fr 56px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.metric-row:last-child {
  margin-bottom: 0;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-bar-wrap {
  height: 4px;
  background: var(--bg-raised);
  border-radius: 2px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  width: var(--fill, 50%);
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-bar.is-animated {
  transform: scaleX(1);
}

.metric-bar--danger {
  background: var(--danger);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: right;
}

.metric-value--danger {
  color: var(--danger);
}

/* --- Competitive frame ----------------------------------- */
.competitive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

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

.competitive-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 28px 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.competitive-card--foil:hover {
  border-color: var(--danger-border);
  background: var(--danger-dim);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.card-tag--foil {
  color: var(--text-muted);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-outcome {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 2px;
}

.card-outcome--foil {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.competitive-resolution {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 28px 32px;
}

.competitive-resolution-text {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

/* --- How We Work / Modes --------------------------------- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  overflow: hidden;
}

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

.mode-card {
  background: var(--bg-surface);
  padding: 36px 28px;
  transition: background 0.2s ease;
}

.mode-card:hover {
  background: var(--bg-raised);
}

.mode-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.mode-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.mode-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mode-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
}

/* --- Service Tiers --------------------------------------- */
.tiers-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-border);
}

.tier-card {
  background: var(--bg-surface);
  cursor: pointer;
  transition: background 0.2s ease;
}

.tier-card:hover {
  background: var(--bg-raised);
}

.tier-card.is-expanded {
  background: var(--bg-raised);
}

.tier-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
}

.tier-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.tier-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.tier-window {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.tier-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex: 1;
}

.tier-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.tier-card.is-expanded .tier-toggle {
  transform: rotate(180deg);
  border-color: var(--accent-border);
  color: var(--accent);
}

.tier-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px 24px;
  flex-wrap: wrap;
}

.tier-state {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 2px;
}

.tier-state--before {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.tier-state--after {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.tier-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.tier-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  opacity: 0;
  padding: 0 32px;
  border-top: 0px solid var(--bg-border);
}

.tier-detail p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.tier-card.is-expanded .tier-detail {
  opacity: 1;
  padding: 24px 32px 28px;
  border-top-width: 1px;
}

.tier-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--bg-border);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .tier-header {
    padding: 20px 20px;
    gap: 12px;
  }
  .tier-summary {
    padding: 0 20px 20px;
  }
  .tier-card.is-expanded .tier-detail {
    padding: 20px 20px 24px;
  }
  .tier-meta {
    min-width: 64px;
  }
}

/* --- Programs -------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  overflow: hidden;
}

.programs-grid .program-card:last-child:nth-child(odd) {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .programs-grid .program-card:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}

.program-card {
  background: var(--bg-surface);
  padding: 32px 28px;
  transition: background 0.2s ease;
}

.program-card:hover {
  background: var(--bg-raised);
}

.program-card:hover .program-trigger {
  opacity: 1;
  transform: translateY(0);
}

.program-card--secondary {
  background: var(--bg);
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.program-card--secondary:hover {
  opacity: 1;
  background: var(--bg-raised);
}

.program-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--bg-border);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
}

.program-header {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.program-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.program-trigger {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: 0.04em;
  opacity: 0.6;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.program-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Contact section ------------------------------------- */
.section--contact {
  border-top: 1px solid var(--bg-border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.closing-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.closing-text--signal {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 17px;
}

/* --- Contact form ---------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-height: 20px;
  text-align: center;
  transition: color 0.2s ease;
}

.form-status.is-success {
  color: var(--accent);
}

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

.contact-footnote {
  border-top: 1px solid var(--bg-border);
  padding-top: 32px;
}

.contact-footnote p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footnote-highlight {
  color: var(--accent) !important;
  margin-top: 6px;
}

/* --- Footer ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--bg-border);
  padding: 32px 0;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.footer-descriptor {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* --- Utility / misc ------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Selection color */
::selection {
  background: var(--accent);
  color: #060606;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-raised);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Reduced motion support ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .metric-bar {
    transform: scaleX(1) !important;
    transition: none !important;
  }
  .cta-primary, .nav-link::after, .tier-detail, .program-trigger {
    transition: none;
  }
  .scroll-cue {
    animation: none;
  }
}
