/* ObsidianNW — page layout & components */

/* =========================
   NAV (fixed, transparent on hero)
   ========================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: background-color 350ms ease, border-color 350ms ease, backdrop-filter 350ms ease;
}
.nav.is-solid {
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}
.brand-text {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 16px;
  color: var(--paper);
}
.brand-text .dim { color: var(--paper-3); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper-2);
  white-space: nowrap;
  transition: color 200ms ease;
}
.nav-link:hover { color: var(--paper); }

.nav-cta {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ob-0);
  background: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}
.nav-cta:hover { background: var(--cyan-bri); transform: translateY(-1px); }

/* =========================
   HERO SECTION
   ========================= */
.hero {
  position: relative;
  height: 380vh;
  background: var(--ob-1);
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}
.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Overlay layer above the canvas */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.hero-overlay > * { pointer-events: auto; }

/* Top status row (left + right mono captions) */
.hero-status {
  position: absolute;
  top: 88px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.hero-status .l, .hero-status .r {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-status .r { text-align: right; align-items: flex-end; }
.hero-status .live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* Stage container — each stage occupies same space, opacity-toggled */
.stages {
  position: absolute;
  inset: 0;
}
.stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1);
}
.stage.is-on { opacity: 1; }

/* Stage A — headline + CTAs */
.stage-a {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 56px 56px;
}
.headline-wrap {
  align-self: end;
  max-width: 1180px;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
}
.eyebrow .num {
  color: var(--paper-3);
  margin-right: 14px;
}
.headline {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(56px, 8.6vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--paper);
  text-wrap: balance;
}
.headline em {
  font-style: normal;
  color: var(--cyan-bri);
  position: relative;
}
.headline em::after {
  /* tiny signal dot on the highlighted word */
  content: "";
  position: absolute;
  top: 0.04em;
  right: -0.4em;
  width: 0.10em;
  height: 0.10em;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0.4em var(--cyan);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-top: 40px;
}
.support-copy {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--paper-2);
  font-weight: 400;
}
.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--paper);
  color: var(--ob-0);
}
.btn-primary:hover { background: var(--cyan-bri); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper-2); background: rgba(236,234,217,0.04); }

/* Stage B — signal acquired */
.stage-b {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
}
.stage-b-inner {
  text-align: center;
  max-width: 980px;
}
.stage-b .eyebrow {
  margin-bottom: 28px;
}
.stage-b .headline {
  font-size: clamp(48px, 7vw, 124px);
}
.stage-b .sub {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper-2);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Telemetry chips, appear in stage B */
.telemetry {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-2);
  opacity: 0;
  will-change: opacity;
}
.telemetry .item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.telemetry .v {
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--cyan-bri);
  font-feature-settings: "tnum";
}
.telemetry .k { color: var(--paper-3); font-size: 9.5px; }

/* Stage C — capability labels */
.stage-c {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 56px 32px;
}
.stage-c-top {
  align-self: start;
  padding-top: 200px;
  max-width: 920px;
}
.stage-c .eyebrow { margin-bottom: 22px; }
.stage-c .headline { font-size: clamp(48px, 7.2vw, 120px); }
.stage-c .sub {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper-2);
  max-width: 560px;
}

/* Capability strip — 8 systems online */
.cap-strip {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 56px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  opacity: 0;
  will-change: opacity;
}
.cap-strip::before {
  /* small cyan tick at left of border */
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 64px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.cap-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.cap-item.is-on { opacity: 1; transform: translateY(0); }
.cap-item .num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 10px;
}
.cap-item .name {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 4px;
}
.cap-item .desc {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 300ms ease;
}
.scroll-hint .glyph {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, var(--paper-3));
  animation: scrollGlyph 2s ease-in-out infinite;
}
@keyframes scrollGlyph {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: 0.4; }
}

/* Progress bar at bottom of hero */
.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-soft);
  z-index: 6;
}
.hero-progress .fill {
  height: 100%;
  background: var(--cyan);
  width: 0%;
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width 50ms linear;
}

/* =========================
   GENERIC PAGE WRAPPERS
   ========================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: 120px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}
.section-head .index {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
  padding-top: 12px;
}
.section-head .index .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  margin-right: 10px;
  vertical-align: 1px;
}
.section-head h2 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
  max-width: 18ch;
  text-wrap: balance;
}
.section-head .lede {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--paper-2);
  max-width: 56ch;
}

/* =========================
   WHAT WE BUILD — editorial list
   ========================= */
.build {
  border-top: 1px solid var(--line);
  background: var(--ob-1);
}
.build-list {
  display: grid;
  grid-template-columns: 1fr;
}
.build-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.5fr 1fr;
  gap: 48px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding 250ms ease, background 250ms ease;
  position: relative;
}
.build-row:last-child { border-bottom: 1px solid var(--line); }
.build-row::before {
  /* hover signal dot */
  content: "";
  position: absolute;
  left: -28px;
  top: 42px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(.2,.7,.2,1);
}
.build-row:hover::before { opacity: 1; transform: scale(1); }
.build-row:hover { background: linear-gradient(90deg, rgba(95,229,238,0.04), transparent 60%); }
.build-row .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--paper-3);
  padding-top: 8px;
}
.build-row h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 1.05;
}
.build-row .body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--paper-2);
  max-width: 52ch;
}
.build-row .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}

/* =========================
   HOW WE WORK — process scroll
   ========================= */
.process {
  border-top: 1px solid var(--line);
  background: var(--ob-2);
}
.process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-rail::after {
  /* cyan progress line across all steps */
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--cyan), transparent 90%);
  opacity: 0.5;
}
.step {
  padding: 40px 32px 48px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-height: 320px;
}
.step:last-child { border-right: none; }
.step .step-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.step .step-meta .marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: rgba(95,229,238,0.18);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.step h4 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1;
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-2);
}
.step .step-detail {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =========================
   BUILT TO KEEP WORKING
   ========================= */
.support {
  border-top: 1px solid var(--line);
  background: var(--ob-1);
  position: relative;
  overflow: hidden;
}
.support::before {
  /* faint topographic backdrop */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(95,229,238,0.05) 80px),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(95,229,238,0.05), transparent 60%);
  pointer-events: none;
  mask: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.support-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px 36px;
  background: rgba(11,14,21,0.6);
  position: relative;
  min-height: 220px;
  transition: background 250ms ease;
}
.support-cell:hover { background: rgba(95,229,238,0.04); }
.support-cell .num {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.support-cell h5 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.022em;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.05;
}
.support-cell p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--paper-2);
}
.support-cell .meta {
  position: absolute;
  bottom: 18px;
  left: 28px;
  right: 28px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-3);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.support-callout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(95,229,238,0.06), transparent 50%);
  border-radius: 4px;
}
.support-callout .text h6 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 10px;
}
.support-callout .text p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper-2);
  max-width: 64ch;
}

/* =========================
   CONTACT
   ========================= */
.contact {
  border-top: 1px solid var(--line);
  background: var(--ob-0);
  padding: 160px 0 140px;
  position: relative;
  overflow: hidden;
}
.contact-inner {
  position: relative;
  z-index: 2;
}
.contact-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 36px;
}
.contact h2 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 184px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--paper);
  max-width: 14ch;
  margin-bottom: 56px;
}
.contact h2 em {
  font-style: normal;
  color: var(--cyan-bri);
}
.contact-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-meta {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.contact-meta .ck {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 10px;
}
.contact-meta .cv {
  font-family: var(--f-sans);
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.contact-meta .cv .dim { color: var(--paper-3); }

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.contact-bg svg { width: 100%; height: 100%; display: block; }

/* =========================
   FOOTER
   ========================= */
.foot {
  background: var(--ob-0);
  border-top: 1px solid var(--line);
  padding: 40px 0 36px;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.foot .brand-text { color: var(--paper-3); font-size: 13px; }
.foot .foot-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-3);
}

/* =========================
   ACCENTS
   ========================= */
.cyan { color: var(--cyan); }
.cyan-bri { color: var(--cyan-bri); }
.dim { color: var(--paper-3); }
.warm { color: var(--warm); }
