/* NLT Labs — global styles */

/* ── NLT Brand Tokens ──────────────────────────────── */
:root {
  --nlt-bg-primary: #0f1419;
  --nlt-bg-surface: #141b22;
  --nlt-bg-elevated: #1a2332;
  --nlt-accent-primary: #d97706;
  --nlt-accent-secondary: #f59e0b;
  --nlt-accent-dim: #b45309;
  --nlt-text-primary: #f0f4f8;
  --nlt-text-secondary: #8899aa;
  --nlt-border: rgba(255,255,255,0.08);
  --nlt-gradient: linear-gradient(135deg, #d97706, #f59e0b);
  --nlt-gradient-text: linear-gradient(135deg, #f59e0b, #d97706);
  --nlt-success: #22c55e;
  --nlt-warning: #f59e0b;
  --nlt-error: #ef4444;
  --nlt-info: #d97706;

  /* Prose links & focus (guide §2, §5) */
  --nlt-link: var(--nlt-accent-primary);
  --nlt-link-hover: var(--nlt-text-primary);
  --nlt-link-visited: var(--nlt-accent-secondary);
  --nlt-link-underline: rgba(245, 158, 11, 0.45);
  --nlt-focus-ring: #f59e0b;
  --nlt-focus-ring-offset: 2px;
}

/* ── Tokens (light default) ────────────────────────── */
:root {
  color-scheme: light;
  --bg:        #f0ede6;
  --bg-alt:    #f5f5f0;
  --surface:   #ffffff;
  --border:    rgba(0,0,0,0.1);
  --fg:        #1a1a1a;
  --fg-dim:    #5a6370;
  --accent:    var(--nlt-accent-primary);
  --accent-2:  var(--nlt-accent-secondary);
  /* Display: Fraunces (hero / H1 only per guide §3) */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* Prose links — nav / logo / buttons override below */
a {
  color: var(--nlt-link);
  text-decoration: underline;
  text-decoration-color: var(--nlt-link-underline);
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:visited {
  color: var(--nlt-link-visited);
}
a:hover {
  color: var(--nlt-link-hover);
  text-decoration-color: rgba(240, 244, 248, 0.35);
}

:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--nlt-focus-ring);
  outline-offset: var(--nlt-focus-ring-offset);
}

/* ── Utility ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(1.5rem + env(safe-area-inset-right, 0px)) 0 calc(1.5rem + env(safe-area-inset-left, 0px));
}

.gradient-text {
  background: var(--nlt-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) calc(1.5rem + env(safe-area-inset-right, 0px)) 1rem calc(1.5rem + env(safe-area-inset-left, 0px));
  background: rgba(240, 237, 230, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.site-header .nav {
  margin-left: auto;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:visited {
  color: var(--fg);
}
.logo:hover {
  color: var(--fg);
  text-decoration: none;
}
.logo-accent { color: var(--accent); }
.logo-full {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Production header: full horizontal lockup SVG, theme-aware (light/dark variants) */
.logo.logo--lockup {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-lockup-img {
  display: block;
  height: 76px;
  width: auto;
  max-width: 100%;
}
/* Light theme (default): show fullcolor lockup, hide dark variant */
.logo-lockup-img--dark { display: none; }
.logo-lockup-img--light { display: block; }
/* Dark theme: swap */
html[data-theme="dark"] .logo-lockup-img--dark { display: block; }
html[data-theme="dark"] .logo-lockup-img--light { display: none; }

/* Stacked-only lockup (legacy / docs): NLTlabs + NEW LOGIC TECH LABS + optional cipher */
.logo.logo--stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
}
.logo.logo--stacked .logo-line {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.logo.logo--stacked .logo-full {
  font-weight: 500;
  font-size: 0.4375rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-left: 0;
  margin-top: 0;
  vertical-align: unset;
  align-self: stretch;
  text-align: justify;
  text-align-last: justify;
  padding: 0 2px 0 4px;
}

/* Hidden script: company soul in Latin (nova logica = new logic); near-illegible; hover for a nudge to ask */
.logo.logo--stacked .logo-cipher {
  display: block;
  width: 100%;
  align-self: stretch;
  text-align: center;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 4.5px;
  font-weight: 500;
  letter-spacing: 0.65em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0.26;
  line-height: 1;
  user-select: none;
}

@media (max-width: 480px) {
  .logo-full,
  .logo-cipher {
    display: none;
  }
  .logo-lockup-img {
    height: 56px;
  }
}

.nav { display: flex; gap: 2rem; }
.nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:visited {
  color: var(--fg-dim);
}
.nav a:hover {
  color: var(--fg);
  text-decoration: none;
}
.nav a.nav-active { color: var(--fg); }

/* Mobile nav toggle — min 44×44px touch target (iOS HIG / WCAG comfort) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(6rem + env(safe-area-inset-top, 0px)) calc(1.5rem + env(safe-area-inset-right, 0px)) 4rem calc(1.5rem + env(safe-area-inset-left, 0px));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

/* Gradient overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(217, 119, 6, 0.08), transparent),
    linear-gradient(to bottom, transparent 60%, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-dim);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.55s forwards;
}
/* ── Hero sub depth line ─────────────────────────────── */
.hero-sub-depth {
  display: block;
  margin-top: 0.5rem;
  color: var(--fg-dim);
  font-size: 0.95em;
}


.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.72s forwards;
}

/* Section lead — narrative thread toward #north-star */
.section-lead {
  max-width: 46rem;
  margin: -0.5rem 0 2.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-dim);
}

.north-star-teaser {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
}
.north-star-teaser a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.north-star-teaser a:visited {
  color: var(--accent);
}
.north-star-teaser a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--nlt-link-underline);
}

.nav a.nav-north-star {
  color: var(--accent);
  opacity: 0.92;
}
.nav a.nav-north-star:hover {
  color: var(--accent-2);
}

/* Values section — narrative bridge under Hawking / hero theme */
.values-intro {
  max-width: 48rem;
  margin: 0 auto 2.75rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--fg-dim);
}
.values-intro em {
  font-style: italic;
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-dim);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.2s forwards, float 2s ease-in-out infinite 2s;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary,
.btn-primary:visited,
.btn-primary:active {
  background: var(--nlt-gradient);
  color: #fff;
  text-decoration: none;
}
.btn-primary:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.35);
}

.btn-ghost,
.btn-ghost:visited,
.btn-ghost:active {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(0,0,0,0.15);
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(0,0,0,0.3);
  color: var(--fg);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ── Sections ──────────────────────────────────────── */
.section {
  padding: 6rem 0;
  transition: background-color 0.5s ease;
}

.section-alt {
  background: radial-gradient(ellipse at 80% 50%, rgba(217, 119, 6, 0.06) 0%, transparent 50%), var(--bg-alt);
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
  line-height: 1.15;
}

.section-header-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}

.section-header-split .section-title {
  margin-bottom: 0;
}

.section-header-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

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

.section-lead--products {
  margin: 0 0 2.5rem;
  max-width: 42rem;
}

/* ── Product cards (portfolio-style: visual + meta + chips; 3-across desktop) ── */
.product-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .product-featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Must beat `.card { padding: 2rem }` — that rule appears later in this file */
.card.product-featured-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Square top: avoids linen bg peeking past rounded screenshot chrome; radius only on bottom */
  border-radius: 0 0 12px 12px;
}

.product-featured-visual {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  overflow: hidden;
  display: block;
  position: relative;
  background: #0f1419;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-featured-visual img.product-featured-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Below top ~white nav strip in captures; shows more hero band in the frame */
  object-position: center 22%;
  display: block;
}

/* Fallback if image fails */
.product-featured-visual--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a2332 0%, #0f1419 100%);
}

.product-featured-visual svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.95;
}

.product-featured-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.product-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.product-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.product-status-pill--live {
  color: #166534;
}

.product-status-pill--live .product-status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.product-pe-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--accent);
  background: rgba(217, 119, 6, 0.08);
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .product-status-pill--live {
  color: #4ade80;
}

.roadmap-badge--meta {
  margin-left: 0;
  flex-shrink: 0;
}

.card.product-featured-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.product-featured-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
  flex: 1;
}

.product-featured-chip {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--fg-dim);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
}

.product-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* ── Cards ─────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Product grid — even 2-col on desktop, stacks on mobile */
.card-grid.product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card-grid.product-grid .card {
  display: flex;
  flex-direction: column;
}
.card-grid.product-grid .card p {
  margin-bottom: 0.75rem;
}
.card-grid.product-grid .card p:last-of-type {
  margin-bottom: 0;
}
.card-grid.product-grid .service-list {
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  .card-grid.product-grid { grid-template-columns: 1fr; }
}
/* ── Bento grid (guide §4): featured 2×2 + supporting cells ─────── */
.card-grid.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-grid.bento .bento__featured {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  min-height: 280px;
}
.card-grid.bento .bento__cell:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
  min-height: 160px;
}
.card-grid.bento .bento__cell:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
  min-height: 160px;
}
.card-grid.bento .bento__cell:nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 2;
  min-height: 160px;
}
@media (max-width: 900px) {
  .card-grid.bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .card-grid.bento .bento__featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 200px;
  }
  .card-grid.bento .bento__cell:nth-child(2),
  .card-grid.bento .bento__cell:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    min-height: 140px;
  }
  .card-grid.bento .bento__cell:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media (max-width: 600px) {
  .card-grid.bento {
    grid-template-columns: 1fr;
  }
  .card-grid.bento .bento__featured,
  .card-grid.bento .bento__cell:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }
}


.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 12px 40px rgba(217, 119, 6, 0.08);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.card p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card.product-featured-card .product-featured-tagline {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fg-dim);
}

/* ── Approach ──────────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.approach-step {
  position: relative;
  padding-left: 0;
}

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.approach-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.approach-step p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* ── Contact ───────────────────────────────────────── */
.contact-container {
  text-align: center;
  max-width: 680px;
}

.contact-sub {
  color: var(--fg-dim);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ── About Block (Consulting page) ────────────────── */
.about-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.about-text {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

/* ── Section Sub (Consulting page) ─────────────────── */
.section-sub {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: -1.5rem 0 3rem;
  max-width: 680px;
}

/* ── Footer — north-star footnote (Hawking + wavy accent) ── */
.site-footnote {
  padding: 2.75rem 1.5rem 2.25rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06) 0%, transparent 85%);
  border-top: 1px solid var(--border);
}

.site-footnote-quoteblock {
  margin: 0 auto;
  max-width: 26rem;
  padding: 0;
  border: none;
}

.site-footnote-quoteblock p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}


.site-footnote-quoteblock cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding: 0 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: none;
}

.site-footer .footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links-label {
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.footer-links a {
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.92;
}
.footer-links a:visited {
  color: var(--fg);
}
.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.thinking-spotlight {
  max-width: 820px;
}

.thinking-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.thinking-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.25rem;
}

/* ── Deferred rendering for below-fold sections ───── */
#products, #consulting, #proof, #values, #thinking, #contact, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ── Reveal Animation ──────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ── Keyframes ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(240, 237, 230, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }
  .card { padding: 1.5rem; }
  .card-grid:not(.bento) { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }

  /* No reveal animations on mobile — show everything immediately */
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-tag, .hero-title, .hero-sub, .hero-actions, .scroll-hint {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .approach-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-tag, .hero-title, .hero-sub, .hero-actions, .scroll-hint,
  .consulting-hero-content .hero-tag,
  .consulting-hero-content .hero-title,
  .consulting-hero-content .hero-sub,
  .consulting-hero-content .hero-actions,
  .article-hero .hero-tag,
  .article-hero .hero-title,
  .article-hero .hero-sub {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   CONSULTING PAGE STYLES
   ═══════════════════════════════════════════════════════ */

/* ── Consulting Hero ───────────────────────────────── */
.consulting-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(8rem + env(safe-area-inset-top, 0px)) calc(1.5rem + env(safe-area-inset-right, 0px)) 5rem calc(1.5rem + env(safe-area-inset-left, 0px));
  overflow: hidden;
}

.consulting-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(217, 119, 6, 0.06), transparent),
    linear-gradient(to bottom, transparent 70%, var(--bg));
  z-index: 0;
}

.consulting-hero .container {
  position: relative;
  z-index: 1;
}

.consulting-hero-content {
  max-width: 860px;
}

.consulting-hero-content .hero-tag {
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.consulting-hero-content .hero-title {
  text-align: left;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.consulting-hero-content .hero-sub {
  text-align: left;
  margin-left: 0;
  max-width: 680px;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

.consulting-hero-content .hero-actions {
  justify-content: flex-start;
  animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}

/* ── Problem Section ───────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.08);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.problem-card p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Service Cards ─────────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
}

.service-icon {
  margin-bottom: 0.5rem;
}

.service-icon--blue {
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent);
}

.service-icon--purple {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-2);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--fg-dim);
  padding-left: 1.25rem;
  position: relative;
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 1px;
}

/* ── Differentiators ───────────────────────────────── */
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.differentiator {
  position: relative;
}

.differentiator .step-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.differentiator h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.differentiator p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Process Steps ─────────────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-num span {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.process-step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.process-step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.process-step-content p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.process-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent);
  letter-spacing: 0.02em;
  font-family: var(--font);
}

/* ── Consulting CTA ────────────────────────────────── */
.consulting-cta {
  background: var(--bg-alt);
}

/* Card hover — tuned for light default */
.card:hover {
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 12px 40px rgba(217, 119, 6, 0.08);
}

.cta-card {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.cta-sub {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .north-star-teaser {
  margin: 0 0 1.5rem;
}

.cta-email-note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--fg-dim);
}

/* ── Consulting Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .consulting-hero {
    padding: calc(7rem + env(safe-area-inset-top, 0px)) calc(1.5rem + env(safe-area-inset-right, 0px)) 4rem calc(1.5rem + env(safe-area-inset-left, 0px));
    min-height: auto;
  }

  .consulting-hero-content .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Kill consulting hero animations on mobile — show immediately */
  .consulting-hero-content .hero-tag,
  .consulting-hero-content .hero-title,
  .consulting-hero-content .hero-sub,
  .consulting-hero-content .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .problem-grid { grid-template-columns: 1fr; }
  .differentiator-grid { grid-template-columns: 1fr; }

  .process-step {
    gap: 1.25rem;
  }

  .process-step-num {
    width: 44px;
    height: 44px;
  }

  .consulting-hero-content .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .process-step-content h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .cta-sub {
    margin-bottom: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════════════════════ */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.proof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.25);
}

.proof-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0 0 1.25rem;
  font-style: italic;
}

.proof-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
}

.proof-meta {
  display: flex;
  flex-direction: column;
}

.proof-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.proof-role {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.proof-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.proof-stat {
  text-align: center;
}

.proof-stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.proof-stat-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

@media (max-width: 600px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-stats { gap: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════════════════ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-grid--solo {
  max-width: 360px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.25);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 auto 1rem;
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.team-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   ROADMAP BADGES
   ═══════════════════════════════════════════════════════ */

.roadmap-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  font-family: var(--font);
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.roadmap-badge--alpha {
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent);
}

.roadmap-badge--beta {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-2);
}

.roadmap-badge--building {
  background: rgba(136, 153, 170, 0.12);
  color: var(--fg-dim);
}

/* ═══════════════════════════════════════════════════════
   LIGHT MODE TOGGLE
   ═══════════════════════════════════════════════════════ */

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem;
  cursor: pointer;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: color 0.2s, border-color 0.2s;
  margin-left: 0.5rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover {
  color: var(--fg);
  border-color: rgba(0,0,0,0.2);
}
.theme-toggle svg { display: block; }
/* Light default: show moon (switch to dark), hide sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Dark mode overrides */
html[data-theme="dark"] {
  --nlt-bg-primary: #0f1419;
  --nlt-bg-surface: #141b22;
  --nlt-bg-elevated: #1a2332;
  --nlt-text-primary: #f0f4f8;
  --nlt-text-secondary: #8899aa;
  --nlt-border: rgba(255,255,255,0.08);
  --nlt-link-underline: rgba(245, 158, 11, 0.45);
  color-scheme: dark;
}

html[data-theme="dark"] {
  --bg: #0a0e13;
  --bg-alt: #0f1419;
  --surface: #141b22;
  --border: rgba(255,255,255,0.08);
  --fg: #f0f4f8;
  --fg-dim: #8899aa;
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 20, 25, 0.82);
}
html[data-theme="dark"] .nav.open {
  background: rgba(10, 14, 19, 0.95);
}

html[data-theme="dark"] .section-alt {
  background: radial-gradient(ellipse at 80% 50%, rgba(217, 119, 6, 0.04) 0%, transparent 50%), #111921;
}

html[data-theme="dark"] .consulting-hero-glow {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(217, 119, 6, 0.08), transparent),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(245, 158, 11, 0.06), transparent),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}

html[data-theme="dark"] .hero-bg::after {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 119, 6, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(217, 119, 6, 0.1), transparent),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(245, 158, 11, 0.06), transparent),
    linear-gradient(to bottom, transparent 60%, var(--bg));
}

html[data-theme="dark"] #hero-canvas {
  opacity: 0.4;
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-ghost:visited {
  color: var(--fg);
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
}

html[data-theme="dark"] .product-featured-visual {
  background: #0a0e13;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .product-featured-visual--fallback {
  background: linear-gradient(160deg, #1e2a3a 0%, #0d1218 100%);
}

html[data-theme="dark"] .product-featured-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(255,255,255,0.2);
}

html[data-theme="dark"] .consulting-cta {
  background: var(--bg-alt);
}

/* ═══════════════════════════════════════════════════════
   THINKING / BLOG
   ═══════════════════════════════════════════════════════ */

.article-hero {
  position: relative;
  padding: calc(8rem + env(safe-area-inset-top, 0px)) calc(1.5rem + env(safe-area-inset-right, 0px)) 4rem calc(1.5rem + env(safe-area-inset-left, 0px));
  overflow: hidden;
}

.article-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero .consulting-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero .container {
  position: relative;
  z-index: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.article-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.article-read-time {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.article-hero .hero-title {
  text-align: left;
  max-width: 800px;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.article-hero .hero-sub {
  text-align: left;
  margin-left: 0;
  max-width: 680px;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

/* Thinking index (hub): less air between hero and article grid */
.thinking-hub-hero {
  padding-bottom: 2rem;
}
.thinking-hub-hero .hero-sub {
  margin-bottom: 1rem;
}
section.section.thinking-archive {
  padding-top: 3rem;
}

.article-body {
  max-width: 760px;
  padding: 4rem calc(1.5rem + env(safe-area-inset-right, 0px)) 4rem calc(1.5rem + env(safe-area-inset-left, 0px));
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

.article-body ul, .article-body ol {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  color: var(--fg);
  font-style: italic;
  margin: 0;
}

.article-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-cta p {
  color: var(--fg-dim);
  font-size: 1rem;
  margin: 0 0 1rem;
}

@media (max-width: 768px) {
  .article-hero {
    padding: calc(6rem + env(safe-area-inset-top, 0px)) calc(1.5rem + env(safe-area-inset-right, 0px)) 3rem calc(1.5rem + env(safe-area-inset-left, 0px));
  }
  .thinking-hub-hero {
    padding-bottom: 1.5rem;
  }
  section.section.thinking-archive {
    padding-top: 2.5rem;
  }
  .article-body {
    padding: 3rem calc(1.5rem + env(safe-area-inset-right, 0px)) 3rem calc(1.5rem + env(safe-area-inset-left, 0px));
  }
}
