/* ==================================================================
   DESIGN SYSTEM — Enclave: Whitepaper
   ================================================================== */
:root {
  --bg: #F8F6F3;
  --bg2: #F0EDE8;
  --bg3: #E5E2DC;
  --surface: #FFFFFF;
  --border: #D4D0CA;
  --border-l: #E0DDD7;
  --ink: #1E1C1A;
  --ink-d: #4A4744;
  --ink-dd: #8A8784;
  --emerald: #00AA88;
  --emerald-d: #009977;
  --emerald-8: rgba(0, 170, 136, 0.08);
  --emerald-15: rgba(0, 170, 136, 0.15);
  --ink-bg: #F8F6F3;
  --ink-bg2: #F0EDE8;
  --ink-surface: #FFFFFF;
  --ink-border: #D4D0CA;
  --ink-border-l: #E0DDD7;
  --ink-text: #1E1C1A;
  --ink-text-d: #4A4744;
  --ink-text-dd: #8A8784;
  --coral: #B83426;
  --amber: #9A6E15;
  --font-d: "Libre Baskerville", Georgia, serif;
  --font-b: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-ma: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --w: 1500px;
  --px: 56px;
  --r: 0;
}


/* BACKGROUND ART */
.bg-art {
  position: fixed;
  top: 650px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: bgFadeIn 1s ease-in-out forwards
}

@keyframes bgFadeIn {
  to {
    opacity: 0.4
  }
}

.bg-art>div {
  width: 50vw;
  aspect-ratio: 1/1;
  position: absolute;
  transform: translate(-50%, -50%)
}

.bg-art>div:nth-child(1) {
  transform: rotate(0deg)
}

.bg-art>div:nth-child(2) {
  transform: rotate(72deg)
}

.bg-art>div:nth-child(3) {
  transform: rotate(144deg)
}

.bg-art>div:nth-child(4) {
  transform: rotate(216deg)
}

.bg-art>div:nth-child(5) {
  transform: rotate(288deg)
}

.bg-art>div::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.05) 100%);
  border-radius: 50%;
  position: absolute;
  top: -80%;
  left: 0;
  animation: breath 7.5s ease-in-out infinite both;
  box-shadow: 0 1px #00000010
}

@keyframes breath {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.1)
  }
}

.bg-art>div:nth-child(1)::after {
  animation-delay: .5s
}

.bg-art>div:nth-child(2)::after {
  animation-delay: 1s
}

.bg-art>div:nth-child(3)::after {
  animation-delay: 1.5s
}

.bg-art>div:nth-child(4)::after {
  animation-delay: 2s
}

.bg-art>div:nth-child(5)::after {
  animation-delay: 2.5s
}

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

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

body {
  font-family: var(--font-m);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh
}

main {
  flex: 1
}

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

img {
  display: block;
  max-width: 100%
}

button {
  font-family: inherit;
  cursor: pointer
}

ul {
  list-style: none
}


/* ==================================================================
   LAYOUT
   ================================================================== */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
  position: relative;
  z-index: 1
}

section {
  position: relative;
  z-index: 1
}

/* ==================================================================
   TYPOGRAPHY
   ================================================================== */
h1,
h2,
h3 {
  font-family: var(--font-m);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink)
}

h1 {
  font-size: clamp(42px, 7vw, 88px);
  letter-spacing: -0.04em;
  text-wrap: balance
}

h2 {
  font-size: clamp(32px, 5vw, 58px)
}

h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--ink)
}

h3 em {
  font-style: italic;
  color: var(--ink-d)
}

.hero h1 em {
  color: var(--ink)
}

/* Section label */
.sl {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dd)
}

.sl .sn {
  margin-right: 6px
}

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-m);
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: all 0.2s;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap
}

.btn:hover {
  background: transparent;
  color: var(--ink)
}

.btn-em {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg)
}

.btn-em:hover {
  background: transparent;
  color: var(--ink)
}

.btn-o {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-l)
}

.btn-o:hover {
  border-color: var(--ink);
  color: var(--ink)
}

.hero .btn-o {
  border-color: var(--border);
  color: var(--ink)
}

.hero .btn-o:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--ink)
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap
}

/* ==================================================================
   HEADER
   ================================================================== */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 246, 243, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06)
}

.hd-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.hd-left {
  display: flex;
  align-items: center;
  gap: 48px
}

.logo img {
  height: 24px;
  width: auto
}

.hd-nav {
  display: flex;
  align-items: center;
  gap: 0
}

.hd-nav a {
  font-size: 11px;
  font-weight: 500;
  padding: 8px 18px;
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.2s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer
}

.hd-nav a:hover {
  color: rgba(0, 0, 0, 0.85)
}

.hd-right {
  display: flex;
  align-items: center;
  gap: 8px
}

.hd-right .soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(0, 0, 0, 0.35);
  background: transparent;
  transition: color 0.2s
}

.hd-right .soc:hover {
  color: rgba(0, 0, 0, 0.85)
}

.hd-right .soc svg {
  width: 14px;
  height: 14px;
  fill: currentColor
}

.mob-tog {
  display: none;
  font-size: 20px;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.6);
  padding: 4px
}

/* ==================================================================
   PAGE LAYOUT
   ================================================================== */

/* ==================================================================
   HERO — Asymmetric, cinematic
   ================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 64px 0 0;
  position: relative;
  background: var(--ink-bg);
  box-sizing: border-box
}

.hero>.wrap {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 60px
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: stretch
}

.hero h1 {
  margin-bottom: 36px;
  color: var(--ink)
}

.hero h1 br {
  display: block
}

.hero .sub {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-text-d);
  max-width: 480px;
  margin-bottom: 48px
}

.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards
}

.hero-anim-2 {
  animation-delay: 0.5s
}

.hero-anim-3 {
  animation-delay: 0.65s
}

.hero-anim-4 {
  animation-delay: 0.75s
}

.hero-note {
  font-size: 12px;
  color: var(--ink-dd);
  margin-top: 12px
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Hero headline line-reveal */
.h1-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0
}

.h1-word {
  display: block;
  transform: translateY(110%);
  animation: lineUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards
}

.h1-d1 {
  animation-delay: 0.12s
}

.h1-d2 {
  animation-delay: 0.28s
}

.h1-d3 {
  animation-delay: 0.44s
}

@keyframes lineUp {
  to {
    transform: translateY(0)
  }
}

/* ---- Hero Research Visual ---- */
.hero-viz {
  position: relative;
  display: flex;
  flex-direction: column
}

.rpanel {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  overflow: hidden;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08)
}

.rpanel-hd {
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px
}

.rpanel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-d);
  animation: pulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(203, 203, 203, 0.15)
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.rpanel-lbl {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-d)
}

.rsteps {
  padding: 12px 20px 4px;
  flex: 1
}

.rstep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-border);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease
}

.rstep:last-child {
  border-bottom: none
}

.rstep.vis {
  opacity: 1;
  transform: translateY(0)
}

.rstep.done {
  opacity: 0.4
}

.rstep.done .st {
  color: var(--ink-text-dd)
}

.rstep.done .st .hl {
  color: var(--ink-text-dd);
  font-weight: 500
}

.si {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-d)
}

.si.sp img {
  width: 16px;
  height: 16px;
  animation: spin 1.8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.si.ck svg {
  width: 16px;
  height: 16px
}

.st {
  flex: 1;
  color: var(--ink-text);
  text-align: left
}

.st .hl {
  color: var(--ink);
  font-weight: 600
}

.sd {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--ink-text-dd);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease
}

.rstep.done .sd {
  opacity: 1
}

.rinput {
  padding: 12px 14px;
  border-top: 1px solid var(--ink-border);
  display: flex;
  align-items: center;
  gap: 12px
}

.rinput input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--ink-text);
  outline: none;
  padding: 4px 0
}

.rinput input::placeholder {
  color: var(--ink-text-dd)
}

.rinput .sbtn {
  width: 34px;
  height: 34px;
  background: var(--ink-dd);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s
}

.rinput .sbtn:hover {
  background: var(--ink-d)
}

.rinput .sbtn svg {
  width: 16px;
  height: 16px;
  stroke: white
}


/* ==================================================================
   PROBLEM STATEMENT
   ================================================================== */
/* ==================================================================
   NARRATIVE SCROLL
   ================================================================== */
.narrative {
  padding: 120px 0 80px;
  position: relative;
  border-top: 1px solid var(--ink-border);
  background: var(--bg);
  z-index: 1
}

.narr-step {
  padding: 200px 0
}

.narr-step:first-child {
  padding-top: 0
}

.narr-step:last-child {
  padding-bottom: 0
}

.narr-chart {
  margin-top: 150px
}

.growth-track {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.growth-bar {
  height: 32px;
  background: var(--emerald);
  opacity: 0.5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px
}

.growth-bar span {
  font-family: var(--font-m);
  font-size: clamp(11px, 2.5vw, 13px);
  color: #fff;
  opacity: 1;
  font-weight: 500
}

.growth-bar.growth-now {
  opacity: 1;
  background: var(--emerald)
}

.growth-bar.growth-now span {
  color: #fff;
  opacity: 1;
  font-weight: 600
}

.narr-text {
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--ink)
}

.narr-sub {
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-d);
  margin-top: 20px
}

.narr-sub a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px
}

.narr-sub a:hover {
  opacity: 0.8
}

.narr-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

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

.narr-step .problem-visual {
  margin-top: 40px
}

.narr-step .noise-viz {
  margin-top: 40px;
  max-width: 100%
}

.problem-visual {
  max-width: 100%;
  margin-top: 48px
}

.problem-bar-track {
  height: 32px;
  background: var(--coral);
  border-radius: 6px;
  position: relative;
  overflow: hidden
}

.problem-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 6.7%;
  height: 100%;
  background: var(--emerald);
  border-radius: 6px 0 0 6px
}

.problem-bar-gap {
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--coral);
  margin-top: 12px;
  text-align: right
}

.problem-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--font-m);
  font-size: 14px;
  color: var(--ink-d)
}

.problem-bar-labels strong {
  font-weight: 600;
  color: var(--ink)
}

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

  .narr-step {
    padding: 120px 0
  }

  .growth-bar {
    height: 38px;
    padding: 0 12px
  }

  .features {
    padding: 100px 0 0
  }
}

.stmt-proof {
  font-family: var(--font-m);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-d);
  margin-top: 28px
}

.stmt-proof a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s
}

.stmt-proof a:hover {
  color: var(--ink)
}

/* Mid-section background art (comp + features zone) */
.mid-zone {
  position: relative;
  overflow: hidden;
  background: var(--bg)
}

.mid-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none
}

.mid-art>div {
  width: 50vw;
  max-width: 800px;
  aspect-ratio: 1/1;
  position: absolute;
  transform: translate(-50%, -50%)
}

.mid-art>div:nth-child(1) {
  transform: rotate(0deg)
}

.mid-art>div:nth-child(2) {
  transform: rotate(72deg)
}

.mid-art>div:nth-child(3) {
  transform: rotate(144deg)
}

.mid-art>div:nth-child(4) {
  transform: rotate(216deg)
}

.mid-art>div:nth-child(5) {
  transform: rotate(288deg)
}

.mid-art>div::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.05) 100%);
  border-radius: 50%;
  position: absolute;
  top: -80%;
  left: 0;
  animation: midBreath 7.5s ease-in-out infinite both;
  box-shadow: 0 1px #00000010
}

@keyframes midBreath {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.1)
  }
}

.mid-art>div:nth-child(1)::after {
  animation-delay: .5s
}

.mid-art>div:nth-child(2)::after {
  animation-delay: 1s
}

.mid-art>div:nth-child(3)::after {
  animation-delay: 1.5s
}

.mid-art>div:nth-child(4)::after {
  animation-delay: 2s
}

.mid-art>div:nth-child(5)::after {
  animation-delay: 2.5s
}

/* Noise field visualization */
.noise-viz {
  margin-top: 16px
}

.noise-field {
  display: grid;
  grid-template-columns: repeat(auto-fill, 14px);
  gap: 4px;
  margin-bottom: 40px;
  max-width: 100%
}

.noise-field .dot {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  transition: opacity 0.6s ease, transform 0.6s ease
}

.noise-field .dot.noise {
  background: var(--coral);
  opacity: 0.30
}

.noise-field .dot.mid {
  background: var(--amber);
  opacity: 0.5
}

.noise-field .dot.real {
  background: var(--emerald);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(0, 170, 136, 0.5);
  border-radius: 50%;
  position: relative;
  z-index: 1
}

.noise-legend {
  display: flex;
  gap: 32px;
  flex-wrap: wrap
}

.noise-legend-item {
  display: flex;
  align-items: center;
  gap: 10px
}

.noise-legend-num {
  font-family: var(--font-m);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1
}

.noise-legend-num.nl-noise {
  color: var(--coral)
}

.noise-legend-num.nl-mid {
  color: var(--amber)
}

.noise-legend-num.nl-real {
  color: var(--emerald)
}

.noise-legend-label {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dd);
  line-height: 1.4
}

.noise-arrow {
  font-family: var(--font-m);
  font-size: 16px;
  color: var(--ink-dd);
  align-self: center
}

@media(max-width:768px) {
  .noise-field .dot {
    width: 6px;
    height: 6px
  }

  .noise-legend {
    gap: 20px
  }
}

/* ==================================================================
   FEATURES — Staggered editorial cards
   ================================================================== */
.features {
  padding: 240px 0 0
}

.feat-hd {
  margin-bottom: 24px
}

.feat-hd h2 {
  margin-bottom: 14px
}

.feat-hd p {
  font-size: 14px;
  color: var(--ink-dd)
}

.feat {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden
}

.feat:last-of-type {
  border-bottom: 1px solid var(--border)
}

.feat-num {
  font-family: var(--font-m);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.04;
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 0;
  pointer-events: none
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1
}

.feat.rev .feat-grid {
  grid-template-columns: 1.2fr 1fr
}

.feat.rev .feat-grid .ft {
  order: 2
}

.fv {
  min-width: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0.15s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s
}

.fv.visible {
  opacity: 1;
  transform: translateY(0)
}

.feat.rev .feat-grid .fv {
  order: 1
}

.ft {
  padding-top: 8px
}

.ft .sl {
  margin-bottom: 28px;
  display: block
}

.ft h3 {
  margin-bottom: 18px
}

.ft p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-d);
  margin-bottom: 24px;
  max-width: 440px
}

.fp {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.fp li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-d)
}

.fp li::before {
  content: "\2014";
  flex-shrink: 0;
  color: var(--ink-dd)
}

/* Code visual — dark warm theme */
.cv {
  background: var(--surface);
  border: 1px solid var(--border-l);
  overflow: hidden;
  max-width: 100%
}

.cv-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-l);
  background: var(--bg2)
}

.cv-dots {
  display: none
}

.cv-fn {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--ink-dd);
  margin-left: 8px
}

.cbl {
  padding: 16px 0;
  font-family: var(--font-m);
  font-size: 12.5px;
  line-height: 1.85;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--ink-d)
}

.cl {
  display: flex;
  padding: 0 16px;
  transition: background 0.3s;
  white-space: pre
}

.cl.fl {
  background: rgba(0, 170, 136, 0.08);
  border-left: 2px solid var(--emerald)
}

.ln {
  width: 32px;
  text-align: right;
  color: var(--ink-dd);
  user-select: none;
  flex-shrink: 0;
  margin-right: 16px;
  font-size: 11px;
  opacity: 0.6
}

.kw {
  color: #7C3AED
}

.fn {
  color: #2563EB
}

.vr {
  color: var(--ink-d)
}

.cm {
  color: var(--ink-dd);
  font-style: italic
}

/* Finding card */
.fc {
  margin: 12px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.fc-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--emerald)
}

.fc-icon svg {
  width: 20px;
  height: 20px
}

.fc-txt strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px
}

.fc-txt span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-d)
}

.fc-txt code {
  font-family: var(--font-m);
  font-size: 11px;
  background: var(--emerald-8);
  color: var(--emerald);
  padding: 1px 5px
}

/* Trace visual */
.tv {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px
}

.ts {
  position: relative;
  padding-left: 24px
}

.ts::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border)
}

.tst {
  position: relative;
  padding-bottom: 24px
}

.tst:last-child {
  padding-bottom: 0
}

.td {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--surface);
  z-index: 1
}

.tst.act .td {
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-8)
}

.tt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px
}

.tds {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-d);
  margin-bottom: 8px
}

.tds code {
  font-family: var(--font-m);
  font-size: 11px;
  background: var(--emerald-8);
  color: var(--emerald);
  padding: 1px 5px
}

.tf {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.tfl {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--ink-dd);
  background: var(--bg2);
  padding: 3px 8px;
  border: 1px solid var(--border)
}

/* GitHub PR visual */
.gv {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden
}

.gv-hd {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px
}

.gv-icon {
  width: 18px;
  height: 18px;
  color: var(--emerald);
  flex-shrink: 0
}

.gv-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink)
}

.gv-num {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--ink-dd)
}

.gc {
  padding: 16px;
  border-bottom: 1px solid var(--border)
}

.gc:last-child {
  border-bottom: none
}

.gc-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px
}

.gc-av {
  width: 24px;
  height: 24px;
  background: var(--emerald-8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald)
}

.gc-av svg {
  width: 14px;
  height: 14px
}

.gc-nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink)
}

.gc-bdg {
  font-family: var(--font-m);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--emerald);
  background: var(--emerald-8);
  padding: 2px 7px
}

.gc-tm {
  font-size: 11px;
  color: var(--ink-dd);
  margin-left: auto
}

.gc-bd {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-d)
}

.gc-bd code {
  font-family: var(--font-m);
  font-size: 11.5px;
  background: var(--bg2);
  padding: 1px 5px;
  color: var(--ink)
}

.gc-sev {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 8px
}

.gc-sev.sh {
  background: rgba(196, 62, 48, 0.12);
  color: var(--coral)
}

.gc-sev.sm {
  background: rgba(176, 126, 30, 0.12);
  color: var(--amber)
}

/* ==================================================================
   PRICING
   ================================================================== */
.pricing {
  padding: 120px 0;
  position: relative;
  background: var(--bg2)
}

.pricing-hd {
  margin-bottom: 64px;
  max-width: 460px
}

.pricing-hd h2 {
  margin-bottom: 14px
}

.pricing-hd p {
  font-size: 14px;
  color: var(--ink-dd)
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  align-items: stretch;
  background: var(--border)
}

.pcard {
  background: var(--surface);
  padding: 32px 24px;
  text-align: left
}

.pcard.hi {
  outline: 2px solid var(--emerald);
  outline-offset: -1px;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 170, 136, 0.12);
  position: relative
}

.pcard.hi::before {
  content: "MOST POPULAR";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  text-align: center;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--surface);
  background: var(--emerald);
  padding: 5px 12px;
  transform: translateY(-50%)
}

.pcard .pn {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dd);
  margin-bottom: 12px
}

.pcard.hi .pn {
  color: var(--ink)
}

.pcard .pp {
  font-family: var(--font-m);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 4px
}

.pcard .pp span {
  font-size: 12px;
  color: var(--ink-dd);
  letter-spacing: 0
}

.pcard .pd {
  font-size: 12px;
  color: var(--ink-dd);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 40px
}

.pcard .pf {
  margin-bottom: 28px
}

.pcard .pf li {
  font-size: 12px;
  color: var(--ink-d);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px
}

.pcard .pf li:last-child {
  border-bottom: none
}

.pcard .pf li::before {
  content: "\2014";
  flex-shrink: 0;
  color: var(--ink-dd)
}

.pcard.oss {
  background: var(--emerald-15);
  border-left: 2px solid var(--emerald)
}

.pcard.oss .pn {
  color: var(--ink);
  opacity: 1
}

.pcard.oss .btn-o {
  border-color: var(--ink);
  opacity: 0.8
}

.pcard.oss .btn-o:hover {
  opacity: 1
}

.pcard .btn {
  width: 100%;
  text-align: center;
  justify-content: center
}

/* ==================================================================
   CTA — Dark cinematic section
   ================================================================== */
.cta {
  padding: 140px 0;
  position: relative;
  background: var(--ink);
  overflow: hidden
}

.cta h2 {
  margin-bottom: 16px;
  color: var(--bg)
}

.cta h2 em {
  color: var(--bg);
  font-style: italic
}

.cta p {
  font-size: 14px;
  color: rgba(248, 246, 243, 0.5);
  max-width: 440px;
  margin-bottom: 40px
}

.cta .btn-em {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink)
}

.cta .btn-em:hover {
  background: transparent;
  color: var(--bg)
}

.cta .btn-o {
  border-color: rgba(248, 246, 243, 0.2);
  color: var(--bg)
}

.cta .btn-o:hover {
  border-color: rgba(248, 246, 243, 0.5);
  background: transparent;
  color: var(--bg)
}

/* ==================================================================
   SOCIAL PROOF STRIP — After hero
   ================================================================== */
/* ==================================================================
   INVESTOR LOGOS — Bottom (kept for footer context)
   ================================================================== */
.inv-band {
  padding: 64px 0;
  position: relative;
  background: var(--ink)
}

.inv-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(248, 246, 243, 0.08)
}

.inv-inner {
  text-align: left;
  overflow: visible
}

.inv-label {
  font-family: var(--font-m);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--bg);
  margin-bottom: 24px;
  opacity: 0.6;
  line-height: 1.5
}

.inv-label a {
  color: var(--bg);
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s;
  font-weight: 600;
  font-size: 18px
}

.inv-label a:hover {
  opacity: 0.8
}

.inv-names {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 32px;
  line-height: 1.6;
  overflow: hidden;
  width: 100%;
  position: relative
}

.inv-names::before,
.inv-names::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none
}

.inv-names::before {
  left: 0;
  background: linear-gradient(to right, var(--ink), transparent)
}

.inv-names::after {
  right: 0;
  background: linear-gradient(to left, var(--ink), transparent)
}

@keyframes scroll {
  0% {
    transform: translateX(0)
  }
  100% {
    transform: translateX(-50%)
  }
}

.inv-names-inner {
  display: flex;
  gap: 32px;
  animation: scroll 40s linear infinite;
  will-change: transform
}

.inv-names span {
  font-family: var(--font-m);
  font-size: 15px;
  color: var(--bg);
  letter-spacing: -0.01em;
  opacity: 0.7;
  position: relative;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0
}

.inv-names span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -18px;
  opacity: 0.3
}

/* ==================================================================
   FOOTER — Dark continuation
   ================================================================== */
.ft-bar {
  border-top: 1px solid rgba(248, 246, 243, 0.08);
  padding: 40px 0;
  background: var(--ink);
  color: var(--bg)
}

.ft-inner {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.ft-left {
  display: flex;
  align-items: center;
  gap: 32px
}

.ft-sym {
  height: 28px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1)
}

.ft-links {
  display: flex;
  gap: 24px
}

.ft-links a {
  font-size: 11px;
  color: var(--bg);
  transition: opacity 0.2s;
  cursor: pointer;
  opacity: 0.7;
  letter-spacing: 0.06em;
  text-transform: uppercase
}

.ft-links a:hover {
  opacity: 1
}

.ft-right {
  font-size: 13px;
  color: var(--bg);
  opacity: 0.7
}

/* ==================================================================
   MANIFESTO
   ================================================================== */
/* Body bg already var(--bg), no override needed for subpages */

.mani {
  padding: 140px var(--px) 100px;
  max-width: 680px;
  margin: 0 auto
}

.mani h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px
}

.mani p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-d);
  margin-bottom: 24px
}

.mani p.ld {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.85;
  font-weight: 500
}

.mani p strong {
  color: var(--ink)
}

.mani .mi {
  margin: 48px 0
}

.mani .sig {
  font-family: var(--font-m);
  font-size: 14px;
  color: var(--ink-dd);
  margin-top: 48px
}

/* ==================================================================
   DEMO
   ================================================================== */
.demo {
  padding: 140px var(--px) 100px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center
}

.demo h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px
}

.demo>p {
  color: var(--ink-dd);
  margin-bottom: 40px;
  font-size: 14px
}

.demo form {
  text-align: left
}

.demo input,
.demo textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  margin-bottom: 12px;
  transition: border-color 0.2s
}

.demo input:focus,
.demo textarea:focus {
  outline: none;
  border-color: var(--ink)
}

.demo input::placeholder,
.demo textarea::placeholder {
  color: var(--ink-dd)
}

.demo textarea {
  min-height: 100px;
  resize: vertical
}



/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media(max-width:1024px) {
  :root {
    --px: 32px
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .hero-text {
    max-width: none
  }

  .hero-viz {
    max-width: none
  }

  .h1-line {
    display: inline
  }

  .h1-word {
    display: inline
  }

  .feat-grid,
  .feat.rev .feat-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .feat.rev .feat-grid .ft {
    order: 0
  }

  .feat.rev .feat-grid .fv {
    order: 0
  }

  .pgrid {
    grid-template-columns: repeat(2, 1fr)
  }

  .feat-num {
    font-size: 80px;
    top: 40px
  }
}

@media(max-width:768px) {
  :root {
    --px: 20px
  }

  h1 {
    font-size: 36px
  }

  h2 {
    font-size: 30px
  }

  .hd-inner {
    height: 56px
  }

  .hd-nav {
    display: none
  }

  .hd-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--ink-bg);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--ink-border)
  }

  .hd-nav.open a {
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--ink-border);
    color: var(--ink-text-d)
  }

  .mob-tog {
    display: block
  }

  .hd-left {
    gap: 0
  }

  .hd-right .soc {
    display: none
  }

  .hero {
    min-height: 100vh;
    padding: 64px 0 0
  }

  .feat {
    padding: 40px 0
  }

  .pricing {
    padding: 80px 0
  }

  .pgrid {
    grid-template-columns: 1fr;
    gap: 0
  }

  .cta {
    padding: 80px 0
  }

  .feat-num {
    font-size: 64px;
    top: 20px
  }

  .fv {
    padding: 12px;
    overflow: hidden
  }

  .cbl {
    font-size: 11px
  }

  .ft-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center
  }

  .ft-left {
    flex-direction: column;
    gap: 16px
  }

  .inv-band {
    padding: 48px 0
  }

  .inv-label {
    font-size: 14px
  }

  .inv-label a {
    font-size: 16px
  }

  .inv-names span {
    font-size: 14px
  }

  .mani,
  .demo {
    padding: 80px var(--px) 60px
  }
}

@media(max-width:480px) {
  .btn-row {
    flex-direction: column;
    width: 100%
  }

  .btn-row .btn {
    width: 100%
  }

  .inv-label {
    font-size: 13px
  }

  .inv-label a {
    font-size: 15px
  }

  .inv-names {
    gap: 6px 16px
  }

  .inv-names span {
    font-size: 13px
  }

  .noise-field .dot {
    width: 5px;
    height: 5px
  }
}

/* ==================================================================
   ACCESSIBILITY — WCAG 2.1 AA
   ================================================================== */

/* Screen-reader-only utility (visually hidden, accessible to assistive tech) */
.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
}

/* Skip-to-main link: visible only on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  white-space: nowrap
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--emerald);
  outline-offset: 2px
}

/* Visible focus indicators for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px
}

/* Remove default outline only when :focus-visible is supported */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none
}

/* Override the demo form focus style to use visible outline instead of border-only */
.demo input:focus-visible,
.demo textarea:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--emerald);
  outline-offset: 2px
}

/* Contrast fix: header nav links (was rgba(0,0,0,0.45) = ~4.0:1, bump to 4.6:1+) */
.hd-nav a {
  color: rgba(0, 0, 0, 0.58)
}

/* Contrast fix: social icons in header (was 0.35, need 3:1 for non-text) */
.hd-right .soc {
  color: rgba(0, 0, 0, 0.5)
}

/* Contrast fix: section labels .sl (--ink-dd #8A8784 on --bg #F8F6F3 = ~3.0:1, need 4.5:1) */
.sl {
  color: #6B6865
}

/* Contrast fix: hero-note, feat-hd p, pricing-hd p, .pd (--ink-dd on --bg variants) */
.hero-note,
.feat-hd p,
.pricing-hd p {
  color: #6B6865
}

/* Contrast fix: CTA paragraph text (was rgba(248,246,243,0.5) on --ink) */
.cta p {
  color: rgba(248, 246, 243, 0.75)
}

/* Contrast fix: investor label (was opacity 0.5 on dark bg) */
.inv-label {
  opacity: 0.75
}

/* Contrast fix: investor names (was opacity 0.5 on dark bg) */
.inv-names span {
  opacity: 0.75
}

/* Contrast fix: pricing card description */
.pcard .pd {
  color: #6B6865
}

/* Contrast fix: pricing feature list items */
.pcard .pf li {
  color: var(--ink-d)
}

/* Contrast fix: pricing card tier name */
.pcard .pn {
  color: #6B6865
}

/* Reduced-motion: respect user preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important
  }

  .hero-anim,
  .fv,
  .narr-reveal,
  .rstep {
    opacity: 1 !important;
    transform: none !important
  }
}

/* Accessibility statement page */
.a11y-stmt {
  padding: 140px var(--px) 100px;
  max-width: 680px;
  margin: 0 auto
}

.a11y-stmt h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px
}

.a11y-stmt h3 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px
}

.a11y-stmt p,
.a11y-stmt li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-d);
  margin-bottom: 12px
}

.a11y-stmt ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px
}

.a11y-stmt a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px
}

.a11y-stmt a:hover {
  color: var(--ink)
}
