/* ==========================================================================
   Kulinich Tech — site styles
   Palette: ink / paper, one drop of vermillion. Type: Outfit, Instrument Sans,
   Instrument Serif (italic accents), system mono for labels.
   ========================================================================== */

:root {
  --ink: #101114;
  --ink-2: #16181c;
  --ink-3: #1d1f25;
  --ink-4: #2a2d35;
  --paper: #f4f0e8;
  --paper-2: #ece7dc;
  --paper-3: #e2dccd;
  --line: #d8d1c1;
  --line-dark: rgba(240, 234, 222, 0.11);
  --line-dark-strong: rgba(240, 234, 222, 0.22);
  --muted: #6e6c66;
  --muted-dark: #9c988e;
  --light: #f0eade;
  --accent: #e0492a;
  --accent-deep: #c73d21;
  --accent-soft: rgba(224, 73, 42, 0.14);

  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --r: 14px;
  --r-lg: 24px;
  --shadow-md: 0 8px 24px -8px rgb(16 17 20 / 0.14);
  --shadow-lg: 0 32px 64px -24px rgb(16 17 20 / 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--paper); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: inherit;
}

h1 em, h2 em, h3 em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none !important; }
  .hero-ring { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--light);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(16, 17, 20, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--light);
}
.logo img { width: 34px; height: 34px; }
.logo .logo-suffix { color: var(--muted-dark); font-weight: 500; }

.nonprofit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line-dark-strong);
  border-radius: 999px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 6px;
}
.nonprofit-pill::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: var(--muted-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--light); }
.main-nav .btn { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-dark-strong);
  border-radius: 10px;
  background: rgba(240, 234, 222, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--light); display: block; position: relative; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--light);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

.btn-light { background: var(--light); color: var(--ink); border-color: var(--light); }
.btn-light:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(240, 234, 222, 0.35); }

.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-3); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost-light { background: transparent; color: var(--light); border-color: var(--line-dark-strong); }
.btn-ghost-light:hover { border-color: var(--light); background: rgba(240, 234, 222, 0.06); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(224, 73, 42, 0.5); }

.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--light);
  padding: 176px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240, 234, 222, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 234, 222, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 75%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 45% at 22% 18%, rgba(224, 73, 42, 0.16), transparent 70%),
    radial-gradient(ellipse 55% 55% at 78% 60%, rgba(240, 234, 222, 0.06), transparent 70%);
}

.hero-ring {
  position: absolute;
  right: -14vw;
  top: -6vw;
  width: 60vw; height: 60vw;
  min-width: 620px; min-height: 620px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 234, 222, 0.10);
  z-index: -1;
  animation: ring-drift 26s ease-in-out infinite alternate;
}
.hero-ring::before {
  content: '';
  position: absolute; inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(240, 234, 222, 0.07);
}
.hero-ring::after {
  content: '';
  position: absolute; inset: 30%;
  border-radius: 50%;
  border: 1px dashed rgba(240, 234, 222, 0.08);
}
@keyframes ring-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-3vw, 2vw, 0) rotate(28deg); }
}

.hero-content { position: relative; max-width: 960px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-dark-strong);
  background: rgba(240, 234, 222, 0.04);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 34px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50% { box-shadow: 0 0 0 7px rgba(224, 73, 42, 0.06); }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 30px;
  color: var(--light);
}
.hero h1 em { color: var(--paper); }
.hero h1 .accent-word { position: relative; white-space: nowrap; }
.hero h1 .accent-word::after {
  content: '';
  position: absolute; left: 0.02em; right: 0.02em; bottom: 0.06em;
  height: 0.055em;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left;
  animation: underline-in 1.1s var(--ease) 0.5s both;
}
@keyframes underline-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--muted-dark);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero .lede strong { color: var(--light); font-weight: 500; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 84px; }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  padding-bottom: 72px;
  gap: 24px;
}
.proof-item { display: flex; flex-direction: column; gap: 6px; }
.proof-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--light);
  line-height: 1;
}
.proof-num em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.proof-label { font-size: 0.86rem; color: var(--muted-dark); }

/* Ticker */
.ticker {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink-2);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 18px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--muted-dark);
  white-space: nowrap;
  transition: color 0.2s;
}
.ticker-item:hover { color: var(--light); }
.ticker-item::after {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 128px 0; position: relative; }
.section-dark { background: var(--ink); color: var(--light); }
.section-paper-2 { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.section-dark .kicker { color: var(--muted-dark); }
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.section-head h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.04em;
}
.section-head p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}
.section-dark .section-head p { color: var(--muted-dark); }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center p { max-width: 600px; }
.section-head.center .kicker::before { display: none; }

/* --------------------------------------------------------------------------
   Tools grid
   -------------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  min-height: 380px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s ease;
}
.tool::before {
  /* spotlight that follows the cursor (set via --mx / --my from JS) */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 73, 42, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c9c1ae; }
.tool:hover::before { opacity: 1; }

.tool-featured { grid-column: span 2; flex-direction: row; gap: 32px; }
.tool-featured .tool-main { flex: 1 1 52%; display: flex; flex-direction: column; }
.tool-featured .tool-demo { flex: 1 1 48%; display: flex; align-items: center; }

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.tool-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--accent-deep); border-color: rgba(224, 73, 42, 0.35); background: var(--accent-soft); }
.status-live::before { box-shadow: 0 0 0 3px rgba(224, 73, 42, 0.15); }

.tool-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.tool:hover .tool-icon { transform: rotate(-6deg) scale(1.04); background: var(--accent); color: #fff; }
.tool-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tool h3 { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 4px; }
.tool-domain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 16px;
}
.tool p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; margin-bottom: 20px; }
.tool p strong { color: var(--ink); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.chip {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

.tool-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.tool-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.25s var(--ease); }
.tool:hover .tool-link svg { transform: translate(3px, -3px); }
.tool-link .u { border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }

/* Inverted "what's next" card */
.tool-invert {
  grid-column: span 2;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--light);
  justify-content: center;
}
.tool-invert::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 73, 42, 0.18), transparent 45%); }
.tool-invert:hover { border-color: var(--ink-4); }
.tool-invert .tool-index { color: var(--muted-dark); }
.tool-invert .status { background: rgba(240, 234, 222, 0.06); border-color: var(--line-dark-strong); color: var(--muted-dark); }
.tool-invert .tool-icon { background: var(--light); color: var(--ink); }
.tool-invert h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--light); max-width: 520px; }
.tool-invert h3 em { color: var(--paper); }
.tool-invert p { color: var(--muted-dark); max-width: 560px; }
.tool-invert .tool-link { color: var(--light); }
.tool-invert .tool-link .u { border-bottom-color: var(--light); }

/* Featured demo: translated caption panel */
.demo {
  width: 100%;
  background: var(--ink);
  color: var(--light);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--ink-4);
  box-shadow: 0 30px 60px -30px rgba(16, 17, 20, 0.6);
  font-size: 0.9rem;
}
.demo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 14px;
}
.demo-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--light); }
.demo-head .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.demo-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(240, 234, 222, 0.045);
  border: 1px solid var(--line-dark);
  margin-bottom: 8px;
  align-items: start;
}
.demo-row:last-child { margin-bottom: 0; }
.demo-lang {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted-dark);
  padding-top: 3px;
}
.demo-text { line-height: 1.45; color: var(--light); }
.demo-row.src .demo-text { color: var(--muted-dark); }
.demo-row.src { background: transparent; border-style: dashed; }
.demo-row .cursor {
  display: inline-block; width: 7px; height: 1em; background: var(--accent);
  vertical-align: -2px; margin-left: 2px; border-radius: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mission-statement h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.mission-statement h2 em { color: var(--paper); }
.mission-statement p {
  color: var(--muted-dark);
  font-size: 1.1rem;
  margin-bottom: 18px;
  max-width: 540px;
}
.mission-statement p strong { color: var(--light); font-weight: 500; }

.verse {
  margin-top: 36px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: rgba(240, 234, 222, 0.03);
  border-radius: 0 14px 14px 0;
}
.verse p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--light);
  margin: 0 0 8px;
  max-width: none;
}
.verse cite { font-style: normal; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); }

.pillars { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.pillar {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left 0.3s var(--ease);
}
.pillar:hover { padding-left: 8px; }
.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
}
.pillar h3 { font-size: 1.32rem; letter-spacing: -0.025em; margin-bottom: 8px; color: var(--light); }
.pillar p { color: var(--muted-dark); font-size: 1rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Integrations strip
   -------------------------------------------------------------------------- */
.integrations {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.integrations-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.integrations-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
}
.integration-list { display: flex; flex-wrap: wrap; gap: 10px; }
.integration {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf9f4;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s;
}
.integration:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-md); }
.integration svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Impact numbers
   -------------------------------------------------------------------------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.impact {
  padding: 34px 30px 30px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
.impact:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9c1ae; }
.impact::after {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid var(--line);
}
.impact-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
}
.impact-num em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--accent); }
.impact-label { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: 4px; }
.impact-sub { font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Steps (how we work)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  background: rgba(240, 234, 222, 0.03);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.step:hover { background: rgba(240, 234, 222, 0.06); border-color: var(--line-dark-strong); transform: translateY(-3px); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 22px;
}
.step h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin-bottom: 10px; color: var(--light); }
.step p { color: var(--muted-dark); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Support / CTA
   -------------------------------------------------------------------------- */
.support {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--light);
  padding: 128px 0;
  isolation: isolate;
}
.support::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(224, 73, 42, 0.16), transparent 70%);
}
.support .hero-ring { right: auto; left: -18vw; top: auto; bottom: -30vw; animation-duration: 34s; }

.support-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.support-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.04em; margin-bottom: 18px; }
.support-head p { color: var(--muted-dark); font-size: 1.15rem; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.support-card {
  padding: 38px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark-strong);
  background: rgba(240, 234, 222, 0.04);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s;
}
.support-card:hover { transform: translateY(-3px); background: rgba(240, 234, 222, 0.06); }
.support-card.primary { background: var(--light); color: var(--ink); border-color: var(--light); }
.support-card .card-kicker { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); }
.support-card.primary .card-kicker { color: var(--accent-deep); }
.support-card h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.support-card p { color: var(--muted-dark); font-size: 1rem; flex-grow: 1; }
.support-card.primary p { color: var(--muted); }
.support-card .btn { align-self: flex-start; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-2);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; max-width: 340px; margin-bottom: 18px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.95rem; color: var(--muted-dark); transition: color 0.15s; }
.footer-col a:hover { color: var(--light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.84rem;
}
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nonprofit-pill { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: rgba(16, 17, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 28px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--line-dark);
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.05rem; }
  .main-nav .btn { width: 100%; }

  .hero { padding-top: 140px; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); padding-bottom: 56px; }
  .hero-ctas { margin-bottom: 60px; }
  .section { padding: 92px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .tool-featured { grid-column: span 2; flex-direction: column; }
  .tool-invert { grid-column: span 2; }
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .support { padding: 92px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-featured, .tool-invert { grid-column: auto; }
  .tool { padding: 26px; min-height: 0; }
  .impact-grid { grid-template-columns: 1fr; }
  .hero-proof { grid-template-columns: 1fr 1fr; gap: 20px; }
  .proof-num { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .integrations-inner { gap: 20px; }
  .support-card { padding: 28px; }
  .verse p { font-size: 1.15rem; }
}
