:root {
  --bg: #000000;
  --fg: #f5f4ee;
  --dim: #898983;
  --line: rgba(245, 244, 238, 0.12);
  --accent: oklch(0.72 0.14 60);
  --noise-opacity: 0.33;
  --page-pad: clamp(24px, 4vw, 72px);
  --content-width: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  position: relative;
}
::selection { background: var(--accent); color: #000; }

/* Ashoka Chakra ASCII background */
#chakra-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#chakra-bg pre {
  font-family: "Geist Mono", monospace;
  font-size: 7.5px;
  line-height: 7.5px;
  color: var(--fg);
  opacity: var(--noise-opacity);
  white-space: pre;
  letter-spacing: 0;
  user-select: none;
  transform-origin: center;
  animation: spin 240s linear infinite;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0) 80%);
}
@keyframes spin {
  from { transform: translate3d(var(--chakra-x, 0), var(--chakra-y, 0), 0) rotate(0deg); }
  to { transform: translate3d(var(--chakra-x, 0), var(--chakra-y, 0), 0) rotate(360deg); }
}

/* Subtle film grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Vignette */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%);
}

main { position: relative; z-index: 5; }

/* Nav */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  min-height: 66px;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: min(100%, var(--content-width));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
nav.top.scrolled {
  background: rgba(0,0,0,0.75);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 16px;
}
.brand-mark {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--fg);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--fg);
}
nav.top .brand {
  gap: 10px;
  font-size: 17px;
}
nav.top .brand-mark {
  width: 26px;
  height: 26px;
  border-width: 2px;
}
nav.top .brand-mark::after {
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
}
.nav-links {
  display: flex;
  gap: 38px;
  align-items: center;
  justify-self: center;
}
.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.75;
  transition: color 0.2s, opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: #fff;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(245, 244, 238, 0.04);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-family: inherit;
}
.btn:hover {
  background: rgba(245, 244, 238, 0.09);
  border-color: rgba(245, 244, 238, 0.2);
}
.btn.primary {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}
.btn.primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Layout */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* Hero */
section.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px var(--page-pad) 96px;
  position: relative;
}
.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
h1.hero-title {
  font-size: 92px;
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 1120px;
  margin-bottom: 34px;
  text-wrap: balance;
}
h1.hero-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--dim);
}
.hero-sub {
  font-size: 19px;
  color: var(--dim);
  max-width: 760px;
  line-height: 1.55;
  margin-bottom: 48px;
  text-wrap: pretty;
}
.hero-sub strong {
  color: var(--fg);
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Trust strip */
.trust {
  padding: 120px var(--page-pad) 92px;
  text-align: center;
  position: relative;
}
.trust-label {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(245, 244, 238, 0.72);
  margin-bottom: 44px;
}
.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: center;
  border-top: 1px solid rgba(245, 244, 238, 0.18);
  border-bottom: 1px solid rgba(245, 244, 238, 0.18);
  max-width: var(--content-width);
  margin: 0 auto;
}
.logo-cell {
  padding: 38px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist Mono", monospace;
  color: rgba(245, 244, 238, 0.68);
  font-size: 18px;
  letter-spacing: 0;
  border-right: 1px solid rgba(245, 244, 238, 0.16);
  text-align: center;
  min-height: 122px;
  transition: color 0.2s, background 0.2s;
}
.logo-cell:nth-child(5n) { border-right: none; }
.logo-cell:hover {
  color: var(--fg);
  background: rgba(245, 244, 238, 0.035);
}

/* Generic section */
section.s {
  padding: 150px var(--page-pad);
  position: relative;
}
.section-label {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--dim);
}
.section-label-centered { justify-content: center; }
h2.section-title {
  font-size: 54px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 860px;
  margin-bottom: 24px;
  text-wrap: balance;
}
h2.section-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--dim);
}
.section-sub {
  font-size: 17px;
  color: var(--dim);
  max-width: 760px;
  line-height: 1.6;
}
.approach-sub { margin-top: 16px; }
.text-strong {
  color: var(--fg);
  font-weight: 400;
}
.text-link {
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* Capabilities */
.cap-grid {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap {
  background: #000;
  padding: 46px 40px;
  min-height: 300px;
  display: grid;
  grid-template-rows: 44px 118px 1fr;
  transition: background 0.3s, transform 0.25s ease;
  cursor: default;
}
.cap:hover {
  background: #070706;
  transform: translateY(-4px);
}
.cap-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0;
}
.cap-heading {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.cap-icon {
  width: 30px;
  height: 30px;
  color: var(--fg);
  opacity: 0.9;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.cap-title {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
  align-self: start;
}
.cap-desc {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.55;
  align-self: start;
}

/* Approach split */
.approach-grid {
  margin-top: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.approach-list {
  list-style: none;
  counter-reset: step;
}
.approach-list li {
  counter-increment: step;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.approach-list li:hover {
  background: rgba(245, 244, 238, 0.025);
  padding-left: 12px;
}
.approach-list li::before {
  content: "0" counter(step);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0;
  padding-top: 4px;
}
.approach-list li:last-child { border-bottom: 1px solid var(--line); }
.approach-list .ap-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.approach-list .ap-desc {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.55;
}

/* CTA */
.cta {
  padding: 150px var(--page-pad);
  text-align: center;
}
.cta h2 {
  font-size: 62px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  max-width: 1500px;
  margin: 0 auto 30px;
}
.cta h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--dim);
}
.cta p {
  font-size: 17px;
  color: var(--dim);
  max-width: 680px;
  margin: 0 auto 42px;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  min-height: 560px;
  padding: 58px var(--page-pad) clamp(210px, 21vw, 300px);
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.foot-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.55fr) minmax(210px, 0.65fr);
  gap: 96px;
  position: relative;
  z-index: 1;
}
.foot-col h4 {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
  font-weight: 400;
}
.foot-col a {
  display: block;
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  opacity: 0.86;
  transition: opacity 0.2s;
}
.foot-col a:hover { opacity: 1; }
.social-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.social-links a {
  display: inline-flex;
}
.foot-col .footer-brand {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 0;
  opacity: 1;
}
.foot-blurb {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin-top: 16px;
}
.footer-wordmark {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 0;
  color: rgba(245, 244, 238, 0.04);
  -webkit-text-stroke: 1px rgba(245, 244, 238, 0.12);
  text-stroke: 1px rgba(245, 244, 238, 0.12);
  font-size: clamp(180px, 17vw, 330px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.blink-dot {
  animation: blink-dot 1.1s steps(2, start) infinite;
}
@keyframes blink-dot {
  50% { opacity: 0; }
}
.foot-bottom {
  max-width: var(--content-width);
  margin: 42px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 880px) {
  nav.top {
    min-height: 60px;
    padding: 0 20px;
  }
  .nav-links { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 22px; height: 22px; }
  nav.top .brand { font-size: 18px; }
  nav.top .brand-mark {
    width: 26px;
    height: 26px;
    border-width: 2.25px;
  }
  nav.top .brand-mark::after {
    width: 6px;
    height: 6px;
  }
  .btn {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 13px;
  }
  section.hero { padding: 120px 20px 64px; }
  h1.hero-title { font-size: 48px; }
  .hero-sub { font-size: 16px; }
  .trust {
    padding: 84px 20px 70px;
  }
  .trust-label {
    font-size: 12px;
    line-height: 1.45;
  }
  .logo-cell {
    min-height: 100px;
    font-size: 16px;
  }
  .wrap { padding: 0 20px; }
  section.s { padding: 90px 20px; }
  h2.section-title { font-size: 38px; }
  .section-sub { font-size: 16px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap {
    min-height: 240px;
    padding: 34px 28px;
    grid-template-rows: auto;
    gap: 24px;
  }
  .cap-heading {
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }
  .cap-icon {
    width: 26px;
    height: 26px;
  }
  .cap-title { font-size: 24px; }
  .cap-desc,
  .approach-list .ap-desc { font-size: 15px; }
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-list li:hover {
    padding-left: 0;
    background: transparent;
  }
  .cta { padding: 110px 20px; }
  .cta h2 { font-size: 40px; }
  .cta p { font-size: 16px; }
  footer {
    min-height: 520px;
    padding-top: 52px;
    padding-bottom: 190px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .foot-col a,
  .foot-blurb { font-size: 15px; }
  .footer-wordmark {
    font-size: 124px;
  }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { border-right: 1px solid var(--line) !important; }
  .logo-cell:nth-child(2n) { border-right: none !important; }
}

@media (max-width: 520px) {
  h1.hero-title { font-size: 42px; }
  h2.section-title { font-size: 34px; }
  .cta h2 { font-size: 36px; }
  .hero-sub,
  .section-sub,
  .cta p {
    font-size: 15px;
  }
  .foot-grid,
  .foot-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .foot-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
