/* Page layout. Color/spacing tokens: tokens.css (sync from LEXICOR DESIGN/tokens.css). */

:root {
  /* No third-party font CDN — system stack only for interim hosting. */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

/* ─── Dark-first theme ─────────────────────────────────────────────
   The marketing site ships dark for everyone (tokens.css itself is
   shared with other surfaces and stays untouched). These values pin
   the dark semantic set from tokens.css unconditionally. */
:root {
  color-scheme: dark;

  --bg-canvas:      var(--lex-ink);
  --bg-surface:     var(--lex-graphite);
  --bg-elevated:    #36332E;
  --bg-inverse:     var(--lex-vellum);

  --text-primary:   var(--lex-vellum);
  --text-secondary: #C9C2B5;
  --text-muted:     #8A8278;
  --text-inverse:   var(--lex-ink);

  --border-subtle:  rgba(245, 241, 234, 0.08);
  --border-default: rgba(245, 241, 234, 0.15);
  --border-strong:  rgba(245, 241, 234, 0.30);

  --accent:         #D9824F;
  --accent-hover:   #E89564;
  --accent-pressed: #C46F3D;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero wrapper keeps the card centered on first load;
   subsequent sections scroll naturally below it. */
.hero-area {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(48px + var(--space-8)) var(--space-6) var(--space-10);
  box-sizing: border-box;
}

/* .card is retained for the 404 page */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  max-width: 32rem;
  width: 100%;
  text-align: center;
}

/* Uncarded hero — open canvas, large type */
.hero {
  max-width: 46rem;
  width: 100%;
  text-align: center;
}

.logo-lockup {
  width: min(220px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto var(--space-5);
  overflow: visible;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.tagline {
  font-size: clamp(var(--text-3xl), 5.4vw, var(--text-5xl));
  color: #e8e2d8;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tightest);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
}

.tagline .kw {
  color: var(--accent);
}

.hero-hook {
  margin: 0;
  max-width: 30rem;
  margin-inline: auto;
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* Primary action — the one filled copper element per view.
   Dark-canvas copper is lighter, so ink text keeps contrast readable. */
.btn-primary {
  display: inline-block;
  padding: 12px var(--space-6);
  background: var(--accent);
  color: var(--lex-ink);
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background var(--duration-base) var(--easing-standard);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--lex-ink);
}

.btn-primary:active {
  background: var(--accent-pressed);
}

/* Secondary action — outline pill (NetBird dual-CTA pattern) */
.btn-secondary {
  display: inline-block;
  padding: 12px var(--space-6);
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: border-color var(--duration-base) var(--easing-standard),
              color var(--duration-base) var(--easing-standard);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-4);
}

/* "Designed for" framework strip — muted chips, never a certification claim */
.hero-frameworks {
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.hero-frameworks .hf-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-frameworks .hf-chip {
  padding: 4px var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--bg-surface);
  white-space: nowrap;
}

.footer-patent {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.teaser {
  text-align: left;
}

.teaser p {
  margin: 0 0 var(--space-4);
  font-size: var(--text-base);
  color: #ddd7ce;
  line-height: 1.72;
}

.teaser p strong {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.teaser p:last-child {
  margin-bottom: 0;
}

.rule {
  border: 0;
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  margin: var(--space-5) 0 var(--space-5);
}

.contact {
  text-align: left;
}

.contact-heading {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b5aea4;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-base);
}

.contact-list li:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-label {
  color: #b5aea4;
  font-weight: var(--weight-medium);
}

.contact-fallback {
  grid-column: 1 / -1;
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: #a39a90;
}

.accent-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
  word-break: break-word;
}

.accent-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Footer: multi-column on index; the 404's single-line footer stays centered */
.footer {
  margin-top: auto;
  width: 100%;
  padding: var(--space-7) var(--space-6) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: var(--text-sm);
  color: #a39a90;
  line-height: 1.55;
}

.footer-grid {
  max-width: 56rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: var(--space-6);
  text-align: left;
}

.footer-brand {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.footer-tag {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 16rem;
}

.footer-col-title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  word-break: break-word;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Minimal error page (404) — shares shell + card */
.error-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.error-body {
  margin: 0 0 var(--space-5);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.72;
}

.error-actions {
  margin: 0;
}

@media (max-width: 480px) {
  .contact-list li {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* ─── Scrolling sections ──────────────────────────────────────────── */

.section-divider {
  border: 0;
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  width: 100%;
  max-width: 42rem;
  margin: 0;
}

.section {
  width: 100%;
  max-width: 42rem;
  padding: var(--space-8) var(--space-6);
}

.section-eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading {
  margin: 0 0 var(--space-5);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

/* Keyword emphasis inside headings */
.section-heading .kw {
  color: var(--accent);
}

.section-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.72;
  margin: 0 0 var(--space-4);
}

.section-body:last-child {
  margin-bottom: 0;
}

/* ─── Problem callout pair ────────────────────────────────────────── */

.problem-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  align-items: stretch;
}

.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.problem-card-label {
  display: block;
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.problem-card-title {
  display: block;
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.problem-card-body {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* ─── "Why now" urgency strip (regulation driver) ────────────────── */

.why-now {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  text-align: left;
}

.why-now-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.why-now-body {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Outcome pillars (2×2 grid) ──────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  align-items: stretch;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-3);
  color: var(--accent);
}

.pillar-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.pillar-body {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* Bold-lead bullet lists inside lane/pillar cards */
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.75;
  transform: rotate(45deg);
}

.card-list strong {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

/* 3-card grids get a 3-up row on desktop (no orphan cell) */
@media (min-width: 769px) {
  #capabilities .pillars,
  .pillars-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Alternating feature rows (solution section) ─────────────────── */

/* Wider column for two-column feature rows */
@media (min-width: 900px) {
  .section.section-wide {
    max-width: 56rem;
  }
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-7);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

/* Alternate: even rows put the visual on the left */
.feature-row:nth-child(even) .feature-visual {
  order: -1;
}

.feature-title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Copper tick marker */
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.feature-list strong {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.feature-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.feature-visual svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text-secondary);
}

/* Stack on mobile — visual under text */
@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-row:nth-child(even) .feature-visual {
    order: 0;
  }

  .feature-rows {
    gap: var(--space-7);
  }
}

.one-liner {
  margin-top: var(--space-6);
  margin-bottom: 0;
  padding: var(--space-5);
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-base);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ─── Audience lanes ──────────────────────────────────────────────── */

.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  align-items: stretch;
}

.lane-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lane-eyebrow {
  display: block;
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.lane-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.lane-body {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* ─── Vertical timeline ───────────────────────────────────────────── */

.timeline-heading {
  margin: var(--space-8) 0 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent);
}

.timeline {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  position: relative;
}

/* Animated vertical connector line */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-default);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1) 0.15s;
}

.timeline.is-visible::before {
  transform: scaleY(1);
}

.timeline-item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.tl-node {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(245, 241, 234, 0.2);
  background: var(--bg-canvas);
  position: relative;
  top: 3px;
  z-index: 1;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.tl-complete .tl-node { border-color: var(--lex-healthy); background: var(--lex-healthy); }
.tl-active   .tl-node { border-color: var(--accent);      background: var(--accent); }
.tl-upcoming .tl-node { border-color: #8A8278; background: transparent; }

.tl-content {
  flex: 1;
  padding-bottom: var(--space-2);
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.tl-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.tl-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.tl-body {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Slide-from-left for timeline items (overrides default fade-up) */
.js-fade .timeline-item.fade-in:not(.is-visible) {
  opacity: 0;
  transform: translateX(-20px);
}

/* Stagger per item */
.timeline .fade-in:nth-child(2) { transition-delay: 80ms; }
.timeline .fade-in:nth-child(3) { transition-delay: 160ms; }
.timeline .fade-in:nth-child(4) { transition-delay: 240ms; }
.timeline .fade-in:nth-child(5) { transition-delay: 320ms; }
.timeline .fade-in:nth-child(6) { transition-delay: 400ms; }
.timeline .fade-in:nth-child(7) { transition-delay: 480ms; }
.timeline .fade-in:nth-child(8) { transition-delay: 560ms; }

/* ─── Contact CTA ───────────────────────────────────────────────── */

.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.cta-cards:has(.cta-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.cta-card-eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta-card-heading {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  line-height: var(--leading-snug);
}

.cta-card-body {
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Contact-card action: filled copper pill (mailto) */
.cta-email {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding: 10px var(--space-5);
  background: var(--accent);
  color: var(--lex-ink);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  word-break: break-word;
  transition: background var(--duration-base) var(--easing-standard);
}

.cta-email:hover {
  background: var(--accent-hover);
  color: var(--lex-ink);
}

.cta-email:active {
  background: var(--accent-pressed);
}

.security-contacts {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.security-contact-item {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.security-contact-item .sc-label {
  font-weight: var(--weight-medium);
}

/* ─── Scroll-triggered fade-in ───────────────────────────────────── */

/* Base transition — always present so adding .is-visible triggers the animation */
.fade-in {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Only hide when JS has confirmed it's running (js-fade on <html>).
   This prevents a flash-of-invisible-content on slow connections. */
.js-fade .fade-in:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

/* Stagger for sibling cards within grids (0 / 80 / 160 / 240 ms) */
.js-fade .fade-in:nth-child(2) { transition-delay: 80ms; }
.js-fade .fade-in:nth-child(3) { transition-delay: 160ms; }
.js-fade .fade-in:nth-child(4) { transition-delay: 240ms; }

/* Timeline item stagger is defined with the .timeline block above */

/* Respect reduced-motion preference — show everything immediately, no transitions */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
  }
  .js-fade .fade-in:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* ─── Sticky anchor nav ───────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 48px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-5);
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

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

/* Nav CTA: pill at every width */
.nav-links .nav-cta {
  display: inline-block;
  padding: 5px var(--space-4);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--accent);
  white-space: nowrap;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--lex-ink);
}

/* ─── Stats band ──────────────────────────────────────────────────── */

.stats-band {
  width: 100%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-7) var(--space-6);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Status chips (used by timeline) */

.status-chip {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.status-complete {
  background: rgba(74, 124, 89, 0.12);
  color: var(--lex-healthy);
}

.status-active {
  background: rgba(200, 132, 61, 0.12);
  color: var(--lex-warn);
}

.status-upcoming {
  background: rgba(168, 160, 150, 0.12);
  color: var(--lex-inactive);
}

/* ─── Founder bio ────────────────────────────────────────────────── */

.founder-card {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-5);
}

.founder-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(184, 97, 47, 0.10);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-sans);
}

.founder-name {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.founder-bio {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.founder-bio:last-child {
  margin-bottom: 0;
}

.founder-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.founder-stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.founder-stat-value {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ─── Forward-looking disclaimer ──────────────────────────────────── */

.disclaimer {
  width: 100%;
  max-width: 42rem;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.disclaimer p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Smooth anchor scrolling + sticky-nav offset ─────────────────── */

html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 72px; }

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

/* ─── Reading-progress bar ────────────────────────────────────────── */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.1s linear;
  z-index: 200;
  pointer-events: none;
}

/* ─── Right-edge dot rail ─────────────────────────────────────────── */

.dot-rail {
  position: fixed;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  pointer-events: none;
}

.dot-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-end;
}

.dot-rail a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  pointer-events: auto;
  padding: 6px 0;
}

.dot-rail .dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8A8278;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}

.dot-rail .dot-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: #b5aea4;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.dot-rail a:hover .dot,
.dot-rail a.is-active .dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.dot-rail a:hover .dot-label,
.dot-rail a.is-active .dot-label {
  opacity: 1;
  transform: translateX(0);
}

.dot-rail a.is-active .dot-label {
  color: var(--lex-vellum);
}

@media (max-width: 900px) {
  .dot-rail { display: none; }
}

/* ─── Top-nav active underline ────────────────────────────────────── */

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* The pill CTA has no underline */
.nav-links .nav-cta::after {
  display: none;
}

.nav-links a.is-active {
  color: var(--lex-vellum);
}

/* ─── Hero entrance choreography ──────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero .logo-lockup {
    animation: hero-mark 600ms cubic-bezier(0.2, 0, 0, 1) both;
  }
  .hero .tagline {
    animation: hero-fade-up 500ms cubic-bezier(0.2, 0, 0, 1) 250ms both;
  }
  .hero .hero-hook {
    animation: hero-fade-up 500ms cubic-bezier(0.2, 0, 0, 1) 350ms both;
  }
  .hero .hero-actions {
    animation: hero-fade-up 500ms cubic-bezier(0.2, 0, 0, 1) 450ms both;
  }
  .hero .hero-frameworks {
    animation: hero-fade-up 500ms cubic-bezier(0.2, 0, 0, 1) 550ms both;
  }
}

@keyframes hero-mark {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Card hover lifts ────────────────────────────────────────────── */

.problem-card,
.pillar-card,
.lane-card,
.cta-card {
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.problem-card:hover,
.pillar-card:hover,
.lane-card:hover,
.cta-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px -10px rgba(217, 130, 79, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .problem-card:hover,
  .pillar-card:hover,
  .lane-card:hover,
  .cta-card:hover {
    transform: none;
  }
}

/* ─── Alternating section bands (full-width wash) ─────────────────── */

.section-band {
  width: 100%;
  display: flex;
  justify-content: center;
  transition: background 0.6s ease;
}

.section-band-alt {
  background: var(--bg-elevated);
}

/* ─── Section head (normal, no longer pinned) ─────────────────────── */

.section-head {
  margin: 0 0 var(--space-5);
}

.section-head .section-heading {
  margin-bottom: 0;
}

/* ─── Section bands: grid w/ left marker on desktop, flex on mobile ─ */

.section-band {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  position: relative;
  background-color: var(--bg-canvas);
  transition: background 0.6s ease;
}

.section-band > .section { grid-column: 2; }
.section-band-alt { background-color: var(--bg-elevated); }

/* ─── Side marker (replaces pinned heading) ──────────────────────── */

.section-marker {
  grid-column: 1;
  justify-self: end;
  padding: var(--space-8) var(--space-6) 0 0;
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: calc(var(--text-xl) * 0.67);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  max-width: 12rem;
  line-height: 1.3;
}

.section-marker .marker-num {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-3);
  font-feature-settings: 'tnum';
}

@media (min-width: 1101px) {
  /* Markers handle the label — eyebrows inside sections are redundant */
  .section-band > .section .section-eyebrow,
  .section-band > .section .section-head .section-eyebrow {
    display: none;
  }
}

@media (max-width: 1100px) {
  .section-band {
    display: flex;
    justify-content: center;
  }
  .section-marker { display: none; }
}

/* ─── Per-band gradient washes (atmospheric depth) ────────────────── */

/* Band order: 2=problem, 3=solution, 4=for, 5=three-things, 6=capabilities, 7=contact */
.section-band:nth-of-type(2) {
  background-image:
    radial-gradient(ellipse 55% 60% at 0% 0%,   rgba(63, 91, 92, 0.05), transparent 70%),
    radial-gradient(ellipse 45% 55% at 100% 100%, rgba(184, 97, 47, 0.04), transparent 70%);
}
.section-band:nth-of-type(3) {
  background-image:
    radial-gradient(ellipse 55% 60% at 0% 0%,   rgba(184, 68, 58, 0.05), transparent 70%),
    radial-gradient(ellipse 45% 55% at 100% 100%, rgba(200, 132, 61, 0.04), transparent 70%);
}
.section-band:nth-of-type(4) {
  background-image:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(184, 97, 47, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(63, 91, 92, 0.05), transparent 70%);
}
.section-band:nth-of-type(5) {
  background-image:
    radial-gradient(ellipse 55% 55% at 50% 0%,  rgba(184, 97, 47, 0.05), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(63, 91, 92, 0.04), transparent 70%);
}
.section-band:nth-of-type(6) {
  background-image:
    radial-gradient(ellipse 50% 60% at 0% 50%,  rgba(107, 78, 140, 0.04), transparent 70%),
    radial-gradient(ellipse 55% 55% at 100% 100%, rgba(74, 124, 89, 0.04), transparent 70%);
}
.section-band:nth-of-type(7) {
  background-image:
    radial-gradient(ellipse 60% 55% at 100% 0%, rgba(74, 124, 89, 0.05), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 80%,  rgba(184, 97, 47, 0.05), transparent 70%);
}
/* ─── Echoing hex decoration ──────────────────────────────────────── */

.hex-decor {
  position: absolute;
  width: 180px;
  height: 180px;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section-band:nth-of-type(2) .hex-decor { top: 20%; right: 5%; transform: rotate(8deg); width: 160px; height: 160px; }
.section-band:nth-of-type(3) .hex-decor { top: 55%; right: 6%; transform: rotate(15deg); }
.section-band:nth-of-type(4) .hex-decor { top: 18%; left: 4%; transform: rotate(-20deg); width: 220px; height: 220px; }
.section-band:nth-of-type(6) .hex-decor { bottom: 12%; right: 4%; transform: rotate(45deg); width: 240px; height: 240px; opacity: 0.06; }
.section-band:nth-of-type(7) .hex-decor { top: 30%; left: 3%; transform: rotate(10deg); width: 200px; height: 200px; }

@media (max-width: 900px) { .hex-decor { display: none; } }

/* ─── Vellum noise grain (paper texture overlay) ──────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Keep content above the noise overlay */
.shell { position: relative; z-index: 2; }

/* ─── Asymmetric layout (Problem section) ─────────────────────────── */

@media (min-width: 1100px) {
  .section.section-asym {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-7);
    row-gap: var(--space-5);
    max-width: 56rem;
    align-items: start;
  }
  .section-asym .section-head { grid-column: 1; grid-row: 1; }
  .section-asym > p.section-body:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .section-asym .problem-pair {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

/* ─── Responsive ──────────────────────────────────────────────────── */

/* Tablets + large phones in landscape (769px → 1100px already handled by
   section-band flex override). This breakpoint collapses 2-col card grids
   before they get cramped, and removes alignment min-heights that only
   make sense in a 2-column context. */
@media (max-width: 768px) {
  .problem-pair,
  .pillars,
  .lanes,
  .cta-cards {
    grid-template-columns: 1fr;
  }
}

/* Small mobile (≤ 600px) */
@media (max-width: 600px) {
  /* ── Section layout ────────────────────────────────────────────── */
  .section {
    padding: var(--space-6) var(--space-5);
  }

  .section-heading {
    font-size: var(--text-xl);
  }

  /* ── Hero ──────────────────────────────────────────────────────── */
  .hero-area {
    padding: calc(48px + var(--space-6)) var(--space-5) var(--space-8);
  }

  .hero-hook {
    font-size: var(--text-base);
  }

  /* 404 card */
  .card {
    padding: var(--space-6) var(--space-5);
  }

  /* ── Nav: brand + pill CTA only — section links aren't useful on a
         single-page scroll where the user just reads down ──────────── */
  .site-nav {
    padding: 0 var(--space-4);
  }

  /* Hide section nav links (pill CTA styling is global now) */
  .site-nav .nav-links li:not(:last-child) {
    display: none;
  }

  /* ── Cards ─────────────────────────────────────────────────────── */
  .cta-card {
    padding: var(--space-5);
  }

  .one-liner {
    padding: var(--space-4);
  }

  /* ── Timeline ──────────────────────────────────────────────────── */
  .timeline-item {
    gap: var(--space-3);
  }

  .tl-title {
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
  }

  /* ── Legacy holdover ───────────────────────────────────────────── */
  .stats-band {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
  }

  .section-head {
    position: static;
    margin: 0 0 var(--space-5);
    padding: 0;
    backdrop-filter: none;
  }
}

/* ── Mobile: opacity-only fade, no translateY slide ───────────────
   The slide-up on mobile causes the next section to visually rise
   into the reading area of the section above before the user has
   finished reading it. Pure opacity is smooth without that. ──────── */
@media (max-width: 768px) {
  .js-fade .fade-in:not(.is-visible) {
    transform: none;
  }

  .js-fade .timeline-item.fade-in:not(.is-visible) {
    transform: none;
  }
}

/* ── Scroll-focus card highlight (mobile only) ────────────────────
   Cards and timeline items get a copper border + glow when they
   enter the active reading zone (centre of the viewport). ───────── */
@media (max-width: 768px) {
  .problem-card,
  .pillar-card,
  .lane-card,
  .cta-card {
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
  }

  .problem-card.is-focused,
  .pillar-card.is-focused,
  .lane-card.is-focused,
  .cta-card.is-focused {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 32px -8px rgba(217, 130, 79, 0.22);
  }

  .timeline-item .tl-title {
    transition: color 0.35s ease;
  }

  .timeline-item.is-focused .tl-title {
    color: var(--accent);
  }

  /* Upcoming nodes get the accent border when focused */
  .timeline-item.tl-upcoming.is-focused .tl-node {
    border-color: var(--accent);
  }
}

/* ─── Legal pages (Terms, Acceptable Use, Data Release) ───────────── */

.legal-page {
  width: 100%;
  max-width: 46rem;
  padding: calc(48px + var(--space-8)) var(--space-6) var(--space-9);
  margin-inline: auto;
}

.legal-head {
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-title {
  margin: var(--space-2) 0 var(--space-3);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tightest);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.legal-meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.legal-lead {
  margin: 0 0 var(--space-6);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sibling-page switcher */
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-7);
}

.legal-switch a {
  padding: 5px var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color var(--duration-base) var(--easing-standard),
              color var(--duration-base) var(--easing-standard);
}

.legal-switch a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.legal-switch a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.legal-body {
  counter-reset: legal-section;
}

.legal-body section {
  margin-bottom: var(--space-7);
}

.legal-body section:last-child {
  margin-bottom: 0;
}

.legal-body h2 {
  counter-increment: legal-section;
  margin: 0 0 var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.legal-body h2::before {
  content: counter(legal-section) ". ";
  color: var(--accent);
  font-feature-settings: 'tnum';
}

.legal-body h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.legal-body p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.72;
}

.legal-body p:last-child,
.legal-body ul:last-child,
.legal-body ol:last-child {
  margin-bottom: 0;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-body li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-body li::marker {
  color: var(--accent);
}

.legal-body strong {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.legal-body a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.legal-callout {
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.legal-callout p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .legal-page {
    padding: calc(48px + var(--space-6)) var(--space-5) var(--space-8);
  }
}

