/* ============================================================
   SEKTOR7 LABS — design system
   Black, white, subtle grays. Blueprint grid. Thin lines.
   ============================================================ */

:root {
  --bg: #f4f4f2;
  --panel: #fbfbfa;
  --ink: #111214;
  --ink-72: rgba(17, 18, 20, 0.8);
  --ink-55: rgba(17, 18, 20, 0.63);
  --ink-40: rgba(17, 18, 20, 0.48);
  --line: rgba(17, 18, 20, 0.14);
  --line-soft: rgba(17, 18, 20, 0.08);
  --trace: rgba(17, 18, 20, 0.08);
  --trace-soft: rgba(17, 18, 20, 0.045);
  --signal: #16a34a;
  /* Pairing: Archivo (display/body, matches the wordmark) +
     IBM Plex Mono (technical layer: labels, numbers, buttons, diagrams). */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1080px;
  --measure: 660px;
  --radius: 4px;
  --header-h: 64px;
  --section-pad: clamp(80px, 10vw, 128px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 10px 16px;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- global blueprint backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(0deg, var(--trace-soft) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, var(--trace-soft) 0 1px, transparent 1px 72px);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(244, 244, 242, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
}
.header-brand svg { width: 26px; height: 26px; flex: none; }
.header-brand .labs { font-weight: 300; color: var(--ink-72); }

.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--ink-55);
  transition: color 0.15s ease;
}
.header-nav a:hover { color: var(--ink); }

.header-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  padding: 11px 20px;
  border-radius: var(--radius);
  transition: opacity 0.15s ease;
}
.header-cta:hover { opacity: 0.85; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(244, 244, 242, 0.98);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .header-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- hero (preserved first fold) ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: calc(var(--header-h) + clamp(20px, 5vh, 52px)) 24px var(--section-pad);
  overflow: hidden;
}

.traces {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(26vw, 380px);
  pointer-events: none;
  color: var(--trace);
}
.traces.left { left: 0; }
.traces.right { right: 0; transform: scaleX(-1); }
.traces svg { width: 100%; height: 100%; }

.hero-logo {
  width: clamp(84px, 11vw, 120px);
  height: auto;
  margin-bottom: 26px;
}
.hero-logo .cell {
  opacity: 0;
  animation: cell-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.hero-logo .cell:nth-child(1) { animation-delay: 0.03s; }
.hero-logo .cell:nth-child(2) { animation-delay: 0.09s; }
.hero-logo .cell:nth-child(3) { animation-delay: 0.15s; }
.hero-logo .cell:nth-child(4) { animation-delay: 0.21s; }
.hero-logo .cell:nth-child(5) { animation-delay: 0.27s; }
.hero-logo .cell:nth-child(6) { animation-delay: 0.33s; }
.hero-logo .cell:nth-child(7) { animation-delay: 0.39s; }
.hero-logo .cell:nth-child(8) { animation-delay: 0.45s; }

@keyframes cell-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo .x-mark line {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: draw-x 0.35s ease-out forwards;
}
.hero-logo .x-mark line:nth-child(1) { animation-delay: 0.58s; }
.hero-logo .x-mark line:nth-child(2) { animation-delay: 0.72s; }

@keyframes draw-x { to { stroke-dashoffset: 0; } }

.wordmark {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0;
  animation: rise 0.55s ease-out 0.35s forwards;
}
.wordmark .labs { font-weight: 300; color: var(--ink-72); }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-55);
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 0.55s ease-out 0.48s forwards;
}

.hero-headline {
  font-size: clamp(26px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.02em;
  max-width: 820px;
  margin-bottom: 16px;
  opacity: 0;
  animation: rise 0.55s ease-out 0.6s forwards;
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 18.5px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-72);
  max-width: 640px;
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 0.55s ease-out 0.72s forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0;
  animation: rise 0.55s ease-out 0.84s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-micro {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-55);
}

.hero-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-55);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #202126 0%, #111214 60%);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 20px 42px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
  /* radar ring: a pulse expands from the button every cycle.
     Ring lives on box-shadow keyframes; transform stays free for hover. */
  animation: btn-ring 4.2s cubic-bezier(0.3, 0, 0.4, 1) infinite;
}
@keyframes btn-ring {
  0%, 52% { box-shadow: 0 18px 40px -18px rgba(17, 18, 20, 0.55), 0 0 0 0 rgba(17, 18, 20, 0.32); }
  86%     { box-shadow: 0 18px 40px -18px rgba(17, 18, 20, 0.55), 0 0 0 17px rgba(17, 18, 20, 0); }
  100%    { box-shadow: 0 18px 40px -18px rgba(17, 18, 20, 0.55), 0 0 0 0 rgba(17, 18, 20, 0); }
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
}
.btn .arrow {
  transition: transform 0.2s ease;
  animation: arrow-nudge 4.2s ease-in-out infinite;
}
@keyframes arrow-nudge {
  0%, 58%, 82%, 100% { transform: translateX(0); }
  66%, 74%           { transform: translateX(5px); }
}
.btn:hover .arrow { animation: none; transform: translateX(4px); }
/* tech scan: a monochrome light band sweeps the surface periodically,
   and accelerates on hover. Tiny paint area — cheap on any device. */
.btn::before,
.sticky-cta a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.14) 52%,
    transparent 58%);
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  animation: btn-scan 5.2s ease-in-out infinite;
}
.btn:hover::before,
.sticky-cta a:hover::before {
  animation-duration: 1.4s;
}
@keyframes btn-scan {
  0%, 68% { background-position: 130% 0; }
  100%    { background-position: -30% 0; }
}
@keyframes btn-ring-sm {
  0%, 52% { box-shadow: 0 0 0 0 rgba(17, 18, 20, 0.3); }
  86%     { box-shadow: 0 0 0 10px rgba(17, 18, 20, 0); }
  100%    { box-shadow: 0 0 0 0 rgba(17, 18, 20, 0); }
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 18, 20, 0.28);
  transform: translate(6px, 6px);
  z-index: -1;
  transition: transform 0.2s ease;
}
.btn:hover::after { transform: translate(8px, 8px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}
.btn.ghost::after { display: none; }

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: var(--section-pad) 24px;
}
.section.bordered { border-top: 1px solid var(--line-soft); }
.section.panel { background: var(--panel); }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section-inner.narrow { max-width: var(--measure); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-55);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink-40);
  flex: none;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink-40);
  flex: none;
}

h2.section-title {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
  max-width: 760px;
  margin-bottom: 24px;
}
.center h2.section-title, h2.section-title.center { margin-left: auto; margin-right: auto; }

.section-body {
  max-width: var(--measure);
  color: var(--ink-72);
  font-weight: 400;
  font-size: 16.5px;
}
.section-body p + p { margin-top: 1em; }
.section-body strong { font-weight: 600; color: var(--ink); }

.text-center { text-align: center; }
.text-center .section-body { margin-left: auto; margin-right: auto; }

/* ---------- numbered problem grid ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 44px;
}
.problem-grid article {
  background: var(--bg);
  padding: 36px 32px;
}
.problem-grid .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-40);
  display: block;
  margin-bottom: 16px;
}
.problem-grid h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.problem-grid p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--ink-72);
}

/* ---------- three pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.pillars article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg);
}
.pillars h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
}
.pillars p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--ink-72);
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink-72);
  margin-top: 38px;
}

/* ---------- six layers ---------- */

.layers {
  margin-top: 44px;
  border-left: 1px solid var(--line);
  max-width: 720px;
}
.layer {
  position: relative;
  padding: 26px 0 26px 44px;
  transition: background 0.2s ease;
}
.layer + .layer { border-top: 1px solid var(--line-soft); }
.layer::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 34px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  transition: background 0.2s ease;
}
.layer:hover { background: rgba(17, 18, 20, 0.025); }
.layer:hover::before { background: var(--ink); }
.layer .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-40);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 6px;
}
.layer h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.layer p {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-72);
  max-width: 520px;
}

/* Layer 07 — Reliability: the Sektor7 X motif marks the node,
   double top rule sets it apart from the six layers it protects. */
.layer.reliability {
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 0 -3px var(--line);
}
.layer.reliability::before {
  border: none;
  width: 12px;
  height: 12px;
  left: -6.5px;
  background:
    linear-gradient(45deg, transparent 41%, var(--ink) 41% 59%, transparent 59%),
    linear-gradient(135deg, transparent 41%, var(--ink) 41% 59%, transparent 59%);
}

.principle {
  margin-top: 44px;
  max-width: 720px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 30px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-72);
}
.principle strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------- flow diagram ---------- */

.flow {
  margin: 44px auto 0;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 40px 32px;
}
.flow ol { list-style: none; }
.flow li {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
}
.flow li + li { margin-top: 26px; position: relative; }
.flow li + li::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 1px;
  height: 26px;
  background: var(--line);
}
.flow li + li::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--ink-40);
  border-bottom: 1px solid var(--ink-40);
}

/* ---------- checklist ---------- */

.checklist {
  list-style: none;
  margin-top: 40px;
  columns: 2;
  column-gap: 48px;
  max-width: 820px;
}
.checklist li {
  break-inside: avoid;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink-72);
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
}

/* ---------- video placeholder ---------- */

.video-frame {
  margin: 48px auto 0;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, var(--trace-soft) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, var(--trace-soft) 0 1px, transparent 1px 36px),
    var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.video-frame .mini-logo { width: 56px; opacity: 0.85; }
.video-frame figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-55);
}
.video-frame iframe, .video-frame video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ---------- protocol modules (accordion) ---------- */

.modules { margin-top: 44px; border-top: 1px solid var(--line); }
.module {
  border-bottom: 1px solid var(--line);
}
.module summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 26px 8px;
  transition: background 0.15s ease;
}
.module summary::-webkit-details-marker { display: none; }
.module summary:hover { background: rgba(17, 18, 20, 0.02); }
.module .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-40);
  flex: none;
  width: 34px;
}
.module h3 {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.1em;
  flex: 1;
}
.module .indicator {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink-40);
  flex: none;
  transition: transform 0.2s ease;
}
.module[open] .indicator { transform: rotate(45deg); }
.module-body {
  padding: 0 8px 30px 54px;
  max-width: 680px;
}
.module-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-72);
}
.module-output {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 14px;
}
.module-output .label {
  display: block;
  color: var(--ink-40);
  font-size: 10px;
  letter-spacing: 0.22em;
  margin-bottom: 4px;
}

/* ---------- deliverables ---------- */

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.deliverables article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg);
}
.deliverables article.wide { grid-column: 1 / -1; }
.deliverables h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.deliverables p {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-72);
  max-width: 560px;
}

.build-banner {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 24px;
  text-align: center;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.build-banner strong { font-weight: 700; }

/* ---------- component library ---------- */

.library {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.library section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--bg);
}
.library h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.library ul { list-style: none; }
.library li {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-72);
  padding: 6px 0 6px 18px;
  position: relative;
}
.library li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink-40);
}

/* ---------- for who ---------- */

.forwho {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.forwho section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.forwho h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.forwho ul { list-style: none; }
.forwho li {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-72);
  padding: 9px 0 9px 26px;
  position: relative;
}
.forwho li + li { border-top: 1px solid var(--line-soft); }
.forwho .yes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.forwho .no li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-40);
}

/* ---------- beta section ---------- */

.beta-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.beta-cols section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  background: var(--bg);
}
.beta-cols h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  margin-bottom: 20px;
}
.beta-cols ul { list-style: none; }
.beta-cols li {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--ink-72);
  padding: 8px 0 8px 24px;
  position: relative;
}
.beta-cols li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ink-55);
}

.beta-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
}
.beta-seal::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
}

/* ---------- pricing ---------- */

.price-card {
  max-width: 480px;
  margin: 44px auto 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
}
.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transform: translate(8px, 8px);
  z-index: -1;
}
.price-card .plan {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-55);
  margin-bottom: 20px;
}
.price-card .amount {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
.price-card .terms {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink-55);
  margin: 14px 0 6px;
}
.price-card .limit {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-72);
  margin-bottom: 28px;
}
.price-card ul {
  list-style: none;
  text-align: left;
  margin: 0 auto 32px;
  max-width: 320px;
  border-top: 1px solid var(--line-soft);
}
.price-card li {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-72);
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--ink);
}
.price-card .btn { width: 100%; }
.price-micro {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.12em;
  color: var(--ink-55);
}
.price-launch {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-55);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 44px;
}
.avatar-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}
.signature {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 2;
}
.signature .role { color: var(--ink-55); }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 44px; border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(17, 18, 20, 0.02); }
.faq-item .indicator {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink-40);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] .indicator { transform: rotate(45deg); }
.faq-answer {
  padding: 0 8px 28px;
  max-width: 680px;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink-72);
}

/* ---------- final CTA ---------- */

.final-cta {
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  max-width: 780px;
  margin: 0 auto;
}
.final-cta .it-needs {
  display: block;
  margin-top: 8px;
}
.final-cta .section-body { margin: 28px auto 44px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 24px 36px;
  background: var(--panel);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.26em;
}
.footer-brand svg { width: 42px; height: 42px; flex: none; }
.footer-brand .sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-55);
  margin-top: 1px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 40px;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--ink); }
.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--ink-55);
}

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 244, 242, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #202126 0%, #111214 60%);
  color: #ffffff;
  animation: btn-ring-sm 4.2s cubic-bezier(0.3, 0, 0.4, 1) infinite;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 16px;
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .sticky-cta { display: block; }
  body.has-sticky-cta { padding-bottom: 0; }
}

/* ---------- scroll progress rail ---------- */

.progress-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  height: 220px;
  width: 1px;
  background: var(--line);
  z-index: 60;
}
.progress-rail .node {
  position: absolute;
  left: -3.5px;
  top: 0;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  will-change: transform;
}
@media (max-width: 1200px) { .progress-rail { display: none; } }

/* ---------- forms ---------- */

.form {
  max-width: 520px;
  margin-top: 48px;
}
.form-row { margin-bottom: 22px; }
.form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-55);
  margin-bottom: 8px;
}
.form input, .form textarea {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-72);
}
.form .consent input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--ink);
}
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}
.form-status.ok { display: block; border: 1px solid var(--ink); color: var(--ink); }
.form-status.error { display: block; border: 1px solid #b91c1c; color: #b91c1c; }

/* ---------- prose pages (legal, method, about) ---------- */

.page-head {
  padding: calc(var(--header-h) + 48px) 24px 0;
}
.prose {
  max-width: var(--measure);
  color: var(--ink-72);
  font-weight: 400;
}
.prose h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 2.2em 0 0.7em;
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--ink); }
.last-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-40);
  margin-top: 20px;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-40);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--ink-55); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .library { grid-template-columns: 1fr; }
  .forwho { grid-template-columns: 1fr; }
  .beta-cols { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .deliverables { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .avatar-frame { max-width: 220px; }
  .footer-top { flex-direction: column; }
  .footer-nav { grid-template-columns: repeat(2, auto); }
  .module-body { padding-left: 8px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo .cell,
  .wordmark, .hero-tagline, .hero-headline, .hero-sub, .hero-actions { animation: none; opacity: 1; }
  .hero-logo .x-mark line { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn::after, .btn .arrow { transition: none; }
  .btn::before, .sticky-cta a::before { animation: none; }
  .btn, .btn .arrow, .sticky-cta a { animation: none; }
  .sticky-cta { transition: none; }
  .progress-rail .node { transition: none; }
}

/* ============================================================
   Project Zero additions
   ============================================================ */

/* hero: eyebrow + support lines */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-55);
  margin-bottom: 18px;
  opacity: 0;
  animation: rise 0.55s ease-out 0.55s forwards;
}
.hero-support {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-55);
  margin-bottom: 30px;
  opacity: 0;
  animation: rise 0.55s ease-out 0.78s forwards;
}
.hero-support strong { font-weight: 600; color: var(--ink); }

/* secondary nav link (member access) */
.nav-member { color: var(--ink-40) !important; }
.nav-member:hover { color: var(--ink) !important; }

/* four-area build grid */
.pillars.quad { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .pillars.quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pillars.quad { grid-template-columns: 1fr; } }

/* compact technical flow */
.flow.mini { max-width: 340px; padding: 30px 26px; }
.flow.mini li { font-size: 12px; }

/* missions */
.missions { margin-top: 56px; display: grid; gap: 32px; }
.mission {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 44px 40px;
  position: relative;
}
@media (max-width: 640px) { .mission { padding: 32px 24px; } }
.mission-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-55);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mission-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  flex: none;
}
.mission h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 14px 0 8px;
}
.mission .objective {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.mission .desc {
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink-72);
  max-width: 640px;
}
.mission .areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.mission .areas span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 12px;
}
.mission .completion {
  margin-top: 26px;
  border-left: 2px solid var(--ink);
  padding-left: 14px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-72);
  max-width: 560px;
}

/* mission detail (project-zero page) */
.mission-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;
  margin-top: 30px;
}
.mission-detail-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.mission-detail-grid p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-72);
}
@media (max-width: 720px) { .mission-detail-grid { grid-template-columns: 1fr; } }

.mission-outputs {
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.mission-outputs .label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink-40);
  display: block;
  margin-bottom: 10px;
}
.mission-outputs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mission-outputs li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-72);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 7px 12px;
}

/* also-included compact list */
.also-included {
  margin-top: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 30px;
}
.also-included .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink-55);
  display: block;
  margin-bottom: 14px;
}
.also-included ul { list-style: none; columns: 2; column-gap: 40px; }
.also-included li {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-72);
  padding: 5px 0 5px 20px;
  position: relative;
  break-inside: avoid;
}
.also-included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ink-55);
}
@media (max-width: 640px) { .also-included ul { columns: 1; } }

/* inline section CTA link */
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.15s ease;
}
.section-cta:hover { border-color: var(--ink); }

/* definition blocks (AEO) */
.definitions { margin-top: 52px; display: grid; gap: 22px; max-width: 760px; }
.definition {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 26px 30px;
}
.definition h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.definition p { font-size: 14.5px; font-weight: 300; color: var(--ink-72); }

/* one-page LP: horizontal idea flow */
.flow-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 44px;
}
.flow-line .node {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 13px 20px;
}
.flow-line .arr {
  font-family: var(--font-mono);
  color: var(--ink-40);
  font-size: 14px;
}

/* compact founder block */
.founder-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 48px;
}
@media (max-width: 720px) {
  .founder-grid { grid-template-columns: 1fr; gap: 28px; }
  .founder-grid .avatar-frame { max-width: 180px; }
}
