:root {
  color-scheme: light;
  --paper: #f6f6f3;
  --paper-soft: #ededeb;
  --paper-deep: #d9d9d5;
  --ink: #0d0d0c;
  --ink-muted: #5f5f5a;
  --ink-soft: #a8a8a1;
  --line: rgba(13, 13, 12, 0.14);
  --line-strong: rgba(13, 13, 12, 0.34);
  --core: #a12820;
  --core-dark: #35110e;
  --signal: #0d0d0c;
  --white: #ffffff;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 8px;
  --display:
    Georgia,
    "Iowan Old Style",
    "Times New Roman",
    serif;
  --serif: var(--display);
  --sans:
    "Helvetica Neue",
    Helvetica,
    Arial,
    ui-sans-serif,
    sans-serif;
  font-family: var(--display);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 12%, rgba(13, 13, 12, 0.07), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 54%, #ffffff 100%);
  font-family: var(--sans);
  line-height: 1.45;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 18px var(--gutter);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 60px var(--gutter) 76px;
  overflow: hidden;
}

#identity-graph {
  position: absolute;
  z-index: 1;
  top: clamp(210px, 28vh, 330px);
  right: var(--gutter);
  width: min(41vw, 540px);
  height: min(48vh, 460px);
  cursor: pointer;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  touch-action: none;
}

#identity-graph canvas {
  display: block;
  outline: none;
}

#identity-graph .scene-container {
  background: transparent !important;
  overflow: visible !important;
  transform: translate(-20%, -10%);
  transform-origin: left top;
}

.graph-tooltip {
  width: min(350px, calc(100vw - 40px));
  padding: 16px 18px 18px;
  color: var(--paper);
  background: rgba(13, 13, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(13, 13, 12, 0.24);
  backdrop-filter: blur(14px);
  font-family: var(--sans);
  pointer-events: none;
}

.graph-tooltip span {
  display: block;
  margin-bottom: 6px;
  color: rgba(246, 246, 243, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.graph-tooltip strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

.graph-tooltip p {
  margin: 10px 0 0;
  color: rgba(246, 246, 243, 0.72);
  font-size: 0.92rem;
}

.float-tooltip-kap {
  z-index: 40 !important;
  padding: 0 !important;
  color: var(--paper) !important;
  background: transparent !important;
  border-radius: var(--radius) !important;
  font: inherit !important;
  pointer-events: none !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(246, 246, 243, 0.9));
  pointer-events: none;
}

.graph-readout {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  top: clamp(570px, 65vh, 760px);
  width: min(350px, calc(100vw - 40px));
  padding: 16px 18px 18px;
  color: var(--paper);
  background: rgba(13, 13, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(13, 13, 12, 0.24);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  visibility: hidden;
}

.graph-readout.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.graph-readout span {
  display: block;
  margin-bottom: 6px;
  color: rgba(246, 246, 243, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.graph-readout strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

.graph-readout p {
  margin: 10px 0 0;
  color: rgba(246, 246, 243, 0.72);
  font-size: 0.92rem;
}

.graph-readout small {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  color: rgba(246, 246, 243, 0.66);
  border-top: 1px solid rgba(246, 246, 243, 0.14);
  font-size: 0.78rem;
  line-height: 1.35;
}

.graph-hover-readout {
  z-index: 30;
  top: 0;
  right: auto;
  left: 0;
  transform: none;
}

.graph-hover-readout.is-visible {
  transform: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(720px, 55vw);
  min-width: 0;
  pointer-events: none;
  transform: translateY(-32px);
}

.hero-signature {
  display: block;
  width: min(61vw, 620px);
  height: auto;
  margin: 0;
  opacity: 0.62;
  pointer-events: none;
  transform: rotate(12deg);
  transform-origin: 30% 52%;
  user-select: none;
}

.hero-actions,
.hero-actions * {
  pointer-events: auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.12vw, 1.08rem);
  font-weight: 650;
  letter-spacing: 0.025em;
  text-transform: none;
}

h1,
h2,
h3 {
  max-width: 100%;
  margin: 0;
  font-family: var(--display);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 1.06;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  max-width: 7em;
  font-size: clamp(3.5rem, 7.2vw, 6.8rem);
  line-height: 1.02;
  overflow-wrap: break-word;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.15rem, 5.4vw, 4.65rem);
  line-height: 1.04;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.hero-text {
  max-width: min(660px, 100%);
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: clamp(1.16rem, 1.7vw, 1.52rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.positioning-band {
  padding: clamp(54px, 7vw, 92px) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eeeeeb;
}

.positioning-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.positioning-grid article {
  min-height: 210px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.76);
}

.positioning-grid span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.positioning-grid strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  line-height: 1.07;
}

.positioning-grid p {
  margin: 22px 0 0;
  color: var(--ink-muted);
}

.section {
  padding: clamp(78px, 11vw, 150px) var(--gutter);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto clamp(34px, 6vw, 72px);
}

.section-heading.narrow {
  max-width: 880px;
  text-align: center;
}

.intro-grid,
.evidence-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.intro-grid article,
.evidence-grid article {
  min-height: 240px;
  margin: 0;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.74);
}

.intro-grid p,
.evidence-grid p {
  color: var(--ink-muted);
  font-size: 1rem;
}

.split {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.68fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: start;
}

.dark {
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 18%, rgba(161, 40, 32, 0.26), transparent 30rem),
    #10100f;
}

.dark .eyebrow,
.dark .prose {
  color: rgba(246, 246, 243, 0.68);
}

.prose p {
  margin: 0 0 22px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.steps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps li {
  min-height: 330px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
}

.steps span {
  color: var(--core);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
}

.steps p {
  color: var(--ink-muted);
}

.demo {
  background: #eeeeeb;
}

.demo-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.demo-flow {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.flow-node {
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.flow-node.active {
  color: var(--paper);
  border-color: var(--core);
  background: var(--core);
}

.flow-line {
  width: 1px;
  height: 36px;
  margin-left: 22px;
  background: var(--line-strong);
}

.demo-copy p {
  margin: 0 0 22px;
  color: var(--ink-muted);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--core-dark);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evidence-grid article {
  min-height: 270px;
}

.ecosystem-list {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ecosystem-list article {
  min-height: 230px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.ecosystem-list span {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 2rem;
}

.ecosystem-list h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.ecosystem-list p {
  margin: auto 0 0;
  color: var(--ink-muted);
  line-height: 1.35;
}

.final-cta {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

.final-cta p:not(.eyebrow) {
  max-width: 760px;
  color: var(--ink-muted);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.final-cta .cta-body {
  max-width: 860px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.2;
}

.final-cta .button {
  align-self: flex-start;
  margin-top: 18px;
}

.proof-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(13, 13, 12, 0.06), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 58%, #ffffff 100%);
}

.proof-page .site-header {
  position: sticky;
}

.proof-hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: min(1080px, calc(100vw - (var(--gutter) * 2)));
  margin: 0 auto;
  padding-top: clamp(110px, 18vw, 220px);
}

.proof-hero h1 {
  max-width: 9.5em;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
}

.proof-hero p {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: clamp(1.16rem, 1.8vw, 1.55rem);
}

.proof-hero .button {
  width: max-content;
  margin-top: 34px;
}

.proof-section {
  background: #eeeeeb;
  border-top: 1px solid var(--line);
}

.proof-grid,
.proof-artifact {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid article,
.proof-artifact article {
  min-height: 250px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.76);
}

.proof-grid span,
.proof-steps span {
  color: var(--core);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-grid p,
.proof-artifact p,
.proof-steps p {
  color: var(--ink-muted);
}

.proof-run {
  border-top: 1px solid rgba(246, 246, 243, 0.12);
}

.proof-steps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  background: rgba(246, 246, 243, 0.14);
  border: 1px solid rgba(246, 246, 243, 0.14);
}

.proof-steps li {
  min-height: 320px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
}

.proof-steps h3,
.proof-steps p {
  color: var(--paper);
}

.proof-artifact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-artifact article {
  min-height: 220px;
}

.proof-cta {
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 28px var(--gutter);
  color: var(--ink-muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.86rem;
}

@media (max-width: 1040px) {
  #identity-graph {
    top: clamp(170px, 24vh, 250px);
    width: min(41vw, 500px);
    height: min(44vh, 420px);
    opacity: 0.82;
  }

  .hero-copy {
    width: min(760px, 70vw);
  }

  .intro-grid,
  .steps,
  .positioning-grid,
  .ecosystem-list,
  .proof-grid,
  .proof-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-grid,
  .demo-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .intro-grid article,
  .steps li,
  .positioning-grid article,
  .ecosystem-list article,
  .proof-grid article,
  .proof-steps li {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .site-header {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 36px;
  }

  #identity-graph {
    top: 116px;
    right: -18vw;
    width: 75vw;
    height: 38vh;
    opacity: 0.16;
    pointer-events: none;
  }

  .hero-copy {
    width: 100%;
    transform: translateY(-14px);
  }

  .hero-signature {
    width: min(84vw, 336px);
    margin: 0 0 6px 0;
    opacity: 0.62;
    transform: rotate(12deg);
  }

  .graph-readout {
    display: none;
  }

  h1 {
    max-width: 6.2em;
    font-size: clamp(3.2rem, 13.2vw, 4.5rem);
  }

  .hero-text {
    max-width: 31ch;
    font-size: 1.12rem;
  }

  .intro-grid,
  .steps,
  .evidence-grid,
  .positioning-grid,
  .ecosystem-list,
  .proof-grid,
  .proof-steps,
  .proof-artifact {
    grid-template-columns: 1fr;
  }

  .positioning-grid article,
  .ecosystem-list article,
  .proof-grid article,
  .proof-steps li,
  .proof-artifact article {
    min-height: 180px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .text-link:hover {
    transform: none;
  }
}
