:root {
  --ink: #10241f;
  --muted: #597068;
  --paper: #f6f4ed;
  --white: #fffdf7;
  --mint: #c9f6de;
  --aqua: #13c7aa;
  --orange: #ff6a3d;
  --yellow: #f5d84f;
  --blue: #2c5cff;
  --line: #b9c8c1;
  --shadow: 8px 8px 0 #10241f;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 99;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
}
.spark { color: var(--orange); font-size: 1.4rem; }
nav { display: flex; gap: 1.35rem; align-items: center; }
nav a { font-weight: 750; text-decoration: none; }
nav a:hover { color: var(--blue); }
.nav-pill { border: 1.5px solid var(--ink); padding: .5rem .75rem; }

.hero {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 710px;
  padding: 6rem 0 5rem;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.live-dot {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  margin-right: .4rem;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(19,199,170,.16);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 8vw, 7.4rem); margin-bottom: 1.4rem; }
.hero-kicker { font-size: clamp(1.4rem, 2.7vw, 2.35rem); font-weight: 800; line-height: 1.15; max-width: 22ch; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
.visit-note { color: var(--muted); font-size: .82rem; margin: 1rem 0 0; max-width: 60ch; }
.experiment-context { width: min(calc(100% - 2rem), var(--max)); margin: 1.25rem auto 0; color: var(--muted); font-size: .85rem; }
.evidence-index { border-top: 2px solid var(--ink); }
.evidence-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.evidence-links a { display: block; border: 1.5px solid var(--ink); padding: 1.5rem; text-decoration: none; background: var(--white); }
.evidence-links a:hover { border-color: var(--blue); }
.evidence-links strong { display: block; color: var(--blue); margin-bottom: .6rem; }
.evidence-links span { color: var(--muted); }
.hero-actions, .cta-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 2px solid var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.button.primary { color: white; background: var(--ink); }
.button.secondary { background: transparent; }
.button:hover, .button:focus-visible { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--orange); }

.hero-art {
  position: relative;
  display: block;
  background: #061917;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: rotate(1.4deg);
  transition: transform 180ms ease;
}
.hero-art:hover { transform: rotate(0deg) translateY(-5px); }
.art-tag {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: .7rem .9rem;
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.signal-strip {
  border-block: 2px solid var(--ink);
  background: var(--mint);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
}
.signal-strip div { padding: 1.6rem 1rem; border-right: 1px solid rgba(16,36,31,.3); }
.signal-strip div:last-child { border-right: 0; }
.signal-strip strong { display: block; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; }
.signal-strip span { color: var(--muted); font-size: .85rem; font-weight: 750; }

.section { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 7rem 0; }
.section-head { max-width: 800px; margin-bottom: 2.5rem; }
h2 { font-size: clamp(2.6rem, 5vw, 5rem); margin-bottom: 1rem; }
.section-head > p:last-child, .recipe-copy > p:last-child { color: var(--muted); font-size: 1.1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: .55rem .9rem;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 850;
}
.filter.active, .filter:hover { background: var(--ink); color: white; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.project {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.project:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.project[hidden] { display: none; }
.project.feature { grid-column: span 2; grid-row: span 2; }
.project.feature .project-image { aspect-ratio: 1.9 / 1; }
.project-image { aspect-ratio: 16/10; overflow: hidden; border-bottom: 1.5px solid var(--ink); background: #0c2622; }
.project-image img { height: 100%; object-fit: cover; }
.faith-image img { object-position: 50% 47%; }
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: clamp(1.55rem, 2.3vw, 2.3rem); margin-bottom: .85rem; }
.project-body p { color: var(--muted); }
.project-meta { display: flex; gap: .7rem; align-items: center; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .1em; margin-bottom: 1rem; }
.status { padding: .28rem .42rem; border: 1px solid currentColor; }
.status.public { color: #08755f; background: #d8faea; }
.status.lab { color: #7b4f00; background: #fff1b5; }
.micro-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: 0; margin: 1.2rem 0; list-style: none; }
.micro-list li { background: var(--mint); padding: .65rem; font-size: .78rem; font-weight: 800; line-height: 1.3; }
.link-row { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.link-row a, .text-link { color: var(--blue); font-weight: 900; text-underline-offset: .2em; }
.credit-line { border-left: 3px solid var(--orange); padding-left: 1rem; font-size: .9rem; }

.project-glyph {
  height: 190px;
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--mint);
}
.glyph-grid { grid-template-columns: repeat(2, 54px); grid-template-rows: repeat(2, 54px); gap: 9px; background: var(--yellow); }
.glyph-grid span { width: 54px; height: 54px; border: 2px solid var(--ink); background: var(--white); }
.glyph-grid i { position: absolute; font-size: 4rem; color: var(--blue); font-style: normal; transform: rotate(-25deg); }
.glyph-pulse { display: flex; justify-content: center; gap: 8px; background: #120c32; }
.glyph-pulse i { width: 12px; height: var(--h, 100px); background: var(--aqua); box-shadow: 22px 0 0 var(--orange); transform: skew(-12deg); }
.glyph-pulse i:nth-child(2) { --h: 150px; background: var(--yellow); }
.glyph-pulse i:nth-child(3) { --h: 75px; background: var(--blue); }
.glyph-flame { background: var(--orange); color: var(--paper); font-size: 7rem; font-weight: 200; }
.glyph-seed { background: #c5baff; color: var(--ink); font-size: 7rem; }
.glyph-hold { background: var(--ink); color: #ff4d4d; font: 950 4rem/1 monospace; letter-spacing: -.08em; }
.glyph-recorder { background: #dce5ff; grid-template-columns: auto auto; gap: 1rem; font: 900 2rem/1 monospace; }
.glyph-recorder span { color: var(--orange); font-size: 3.5rem; }
.glyph-recorder i { font-style: normal; letter-spacing: .08em; }
.glyph-forge { background: var(--aqua); grid-template-columns: auto auto auto; gap: .8rem; padding: 1rem; font: 900 1.05rem/1 monospace; }
.glyph-forge i { color: var(--white); font-style: normal; font-size: 3rem; }
.glyph-forge strong { background: var(--ink); color: var(--white); padding: .8rem; }

.tests { border-top: 2px solid var(--ink); }
.split-head { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.test-card { padding: 1.5rem; min-height: 360px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--white); }
.test-card:nth-child(even) { background: #e8ecff; }
.test-no { font: 800 .75rem/1 monospace; color: var(--orange); }
.test-card h3 { font-size: 1.65rem; margin: 2rem 0 .9rem; }
.big-stat { color: var(--ink) !important; font-size: 2.4rem; font-weight: 950; letter-spacing: -.04em; line-height: 1; }
.test-card p { color: var(--muted); }
.finding { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }

.recipe { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.recipe-copy { position: sticky; top: 2rem; }
.recipe-steps { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.recipe-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.recipe-steps span { color: var(--orange); font: 900 1rem/1 monospace; }
.recipe-steps strong { font-size: 1.2rem; }
.recipe-steps p { margin: .35rem 0 0; color: var(--muted); }

.honest { padding-top: 2rem; }
.honest-card { background: var(--ink); color: var(--white); padding: clamp(2rem, 6vw, 5rem); box-shadow: 10px 10px 0 var(--orange); }
.honest-card .eyebrow { color: var(--aqua); }
.honest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.honest-grid > div { padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.honest-grid strong { font-size: 1.25rem; }
.honest-grid p { color: #bfd1c9; margin: .6rem 0 0; }

.cta { text-align: center; max-width: 900px; }
.cta > p:not(.eyebrow) { color: var(--muted); font-size: 1.25rem; max-width: 700px; margin-inline: auto; }
.cta-links { justify-content: center; }

footer {
  border-top: 2px solid var(--ink);
  padding: 2rem max(1rem, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: start;
  font-weight: 800;
}
.footer-note { color: var(--muted); font-size: .78rem; font-weight: 600; }

@media (max-width: 900px) {
  nav a:not(.nav-pill) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-art { max-width: 680px; }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip div { border-bottom: 1px solid rgba(16,36,31,.3); }
  .signal-strip div:last-child { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project.feature { grid-column: span 2; }
  .split-head, .recipe { grid-template-columns: 1fr; gap: 2rem; }
  .recipe-copy { position: static; }
  .test-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; }
  .wordmark { font-size: .8rem; }
  .nav-pill { font-size: .75rem; padding: .4rem .5rem; }
  h1 { font-size: clamp(3.5rem, 19vw, 5rem); }
  .hero { padding-top: 3rem; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 5rem 0; }
  .project-grid, .test-grid, .honest-grid, .evidence-links { grid-template-columns: 1fr; }
  .project.feature { grid-column: span 1; }
  .micro-list { grid-template-columns: 1fr; }
  .project-glyph { height: 160px; }
  .test-card { min-height: 0; }
  footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
