/* ============================================================
   DEVSFLOW homepage. Single stylesheet, no layering.
   ============================================================ */

:root {
  --ink: #0E1116;
  --ink-2: #161B22;
  --paper: #FFFFFF;
  --alt: #F4F4F1;
  --line: #DEDEDA;
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: #5C6270;
  --muted-dark: rgba(255, 255, 255, 0.62);
  --mark: #F5C518;
  --mark-on-light: #876D00;
  --mark-hover: #FFD93D;
  --text-body: #23262D;
  --text-on-dark: #E6E8EB;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Mono', monospace;
  --col: 1180px;
  --gutter: 32px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
dl, dd, dt { margin: 0; }

.container {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Nav ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(14, 17, 22, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line-dark);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 30px; height: auto; }

.nav-brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
  font-weight: 500;
}

.nav-links a:hover { color: #fff; }

/* .nav-links a (0,1,1) outranks .nav-cta (0,1,0); without this the mobile
   menu CTA renders white on yellow at ~1.6:1. Found on all five properties. */
.nav-cta,
.nav-links a.nav-cta,
.nav-links .nav-cta {
  display: inline-block;
  padding: 9px 16px;
  background: var(--mark);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--mark-hover); }

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 1 / Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(95deg, rgba(14, 17, 22, 0.96) 0%, rgba(14, 17, 22, 0.92) 34%, rgba(14, 17, 22, 0.55) 62%, rgba(14, 17, 22, 0.3) 100%),
    url("slideshow/toronto.avif");
  background-size: auto, cover;
  background-position: center, 62% 40%;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 168px 0 112px;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(circle at 84% 50%, rgba(91, 117, 145, 0.07), transparent 35%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 48%, rgba(14, 17, 22, 0.88) 66%, rgba(14, 17, 22, 0.18) 100%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-system {
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -4%;
  width: min(54vw, 780px);
  height: 140%;
  opacity: 0.42;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 174, 199, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 174, 199, 0.28) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(900px) rotateY(-24deg) rotateZ(-12deg) scale(1.1);
  transform-origin: center right;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 82%, transparent 100%);
  animation: hero-grid-drift 30s linear infinite;
}

@keyframes hero-grid-drift {
  to { background-position: 72px 72px; }
}

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 3.8vw, 3.1rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-sub {
  max-width: 62ch;
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted-dark);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}

/* ---------- Clients ---------- */
.clients {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.clients-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 44px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.logo-row img {
  width: auto;
  max-width: 100%;
  height: 76px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.logo-row a:hover img { opacity: 1; }

.logo-row a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.client-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-font-smoothing: auto;
  transition: color 0.15s ease;
}

.logo-row a:hover .client-name { color: var(--ink); }

/* ---------- Blocks ---------- */
.block { padding: 104px 0; }
.block.alt { background: var(--alt); }

.kicker {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.block h2 {
  max-width: 20ch;
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  letter-spacing: -0.03em;
}

.lead {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- 3 / Cases ---------- */
.cases { margin-top: 64px; }

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0 64px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.case:last-child { border-bottom: 1px solid var(--line); }

.case > p.case-meta {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin-top: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.case-client {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.case h3 {
  grid-column: 2;
  font-size: 1.3rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.case > p {
  grid-column: 2;
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.case .lnk { grid-column: 2; justify-self: start; margin-top: 20px; }

/* ---------- 4 / Models ---------- */
.models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  margin-top: 64px;
}

.model h3 {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.35rem;
}

.model p {
  margin-top: 20px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.model-fit { color: var(--ink) !important; font-weight: 500; }

.model .lnk { margin-top: 22px; }

.model-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.model-links .lnk { margin-top: 0; }

/* ---------- 5 / Reference ---------- */
.quote { margin: 44px 0 0; }

.quote blockquote {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.quote figcaption img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.quote figcaption span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.quote figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.quote-note {
  max-width: 68ch;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.quote-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark-on-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- 6 / Contact ---------- */
.contact-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.contact-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.contact-row dd {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact-row dd a { border-bottom: 2px solid var(--mark-on-light); padding-bottom: 2px; }
.contact-row dd a:hover { border-bottom-color: var(--ink); }

.contact-row .note {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

.lnk {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid var(--mark-on-light);
  padding-bottom: 2px;
}

.lnk:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */
.footer-cta {
  background: var(--ink-2);
  color: #fff;
  padding: 86px 0;
}

.footer-cta-title {
  max-width: 20ch;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.footer-cta-sub {
  max-width: 60ch;
  margin: 20px 0 32px;
  font-size: 1rem;
  color: var(--muted-dark);
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-cta-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.footer-cta-actions .btn-outline:hover {
  border-color: #fff;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 40px;
  font-size: 0.86rem;
  font-weight: 500;
}

.footer a { color: rgba(255, 255, 255, 0.6); }
.footer a:hover { color: #fff; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 28px; height: auto; }
.footer-tagline { max-width: 34ch; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.footer-social { display: inline-flex; gap: 12px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.footer-bottom p { margin: 0; }

.footer-dot { opacity: 0.4; }

.back-to-top {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .footer { padding: 44px 0 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .footer-brand { align-items: flex-start; }
  .footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; width: 100%; }
  .footer-links a { display: flex; align-items: center; min-height: 24px; }
  .footer-end { justify-self: start; }
  .footer-social,
  .back-to-top { width: 44px; height: 44px; align-items: center; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; padding-top: 20px; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-dot { display: none; }
}

/* ---------- Entrance only ---------- */
.fade-in, .reveal-up, .reveal-left, .reveal-scale {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 24px; border-top: 1px solid var(--line-dark); }
  .nav-cta-mobile .nav-cta { margin: 12px 24px 16px; padding: 12px 16px; border-top: 0; text-align: center; }

  .models,
  .contact-rows { grid-template-columns: 1fr; gap: 36px; }

  .hero-system {
    top: 142px;
    right: -34%;
    width: 86%;
    opacity: 0.3;
  }

  .logo-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

  .case { grid-template-columns: 1fr; gap: 16px; padding: 34px 0; }
  .case-meta, .case h3, .case p, .case .lnk { grid-column: 1; grid-row: auto; }
  .block { padding: 72px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 122px; }
  .hero h1 { font-size: 2.15rem; letter-spacing: -0.03em; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-cta-actions { align-items: stretch; flex-direction: column; }
  .footer-cta-actions .btn { width: 100%; text-align: center; }
  .hero-system { right: -62%; width: 130%; opacity: 0.22; }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .footer-bottom { justify-content: flex-start; }
}

/* Grouped resource routes */
.routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.route-group { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }

.route-label {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.route-group a {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 500;
}

.route-group a:hover { text-decoration-color: var(--ink); }

@media (max-width: 860px) {
  .routes { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-system {
    animation: none;
  }
}

/* ============================================================
   Inner pages: about, blog index, articles, privacy, faq
   Same system as the homepage. Nothing here is homepage-scoped.
   ============================================================ */

/* ---------- Page header band ---------- */
.page-head,
.blog-header,
.blog-article-header {
  background: var(--ink);
  color: #fff;
  padding: 152px 0 64px;
}

.page-head h1,
.blog-header h1,
.blog-article-header h1 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.blog-article-header h1 { max-width: 28ch; }

.page-head p,
.blog-header p,
.blog-article-meta {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1rem;
  color: var(--muted-dark);
}

.blog-article-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.privacy-eyebrow,
.faq-eyebrow,
.blog-card-tag,
.pillar-tag,
.about-section-eyebrow,
.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.blog-article-header .blog-card-tag,
.blog-header .blog-card-tag { color: var(--mark); }

/* ---------- Generic section shell used by inner pages ---------- */
.section { padding: 88px 0; }

.section-title {
  max-width: 22ch;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ---------- Blog index ---------- */
.featured-pillars { background: var(--alt); }

.featured-pillars-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }
.featured-pillars-sub { max-width: 62ch; margin-top: 14px; color: var(--muted); }

.featured-pillars-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pillar-card,
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.pillar-card:hover,
.blog-card:hover { background: var(--alt); }

.pillar-card h3,
.blog-card h2 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.pillar-card p,
.blog-card-excerpt { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

.blog-card-meta,
.blog-card-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.pillar-link,
.blog-card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.blog-filter {
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.blog-filter:hover,
.blog-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Article ---------- */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--gutter) 88px;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.blog-back:hover { color: var(--ink); }

.blog-article p { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.72; color: var(--text-body); }

.blog-article h2 {
  margin: 52px 0 18px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.blog-article h3 { margin: 36px 0 14px; font-size: 1.1rem; font-weight: 600; }

.blog-article ul, .blog-article ol { margin: 0 0 22px; padding-left: 22px; }
.blog-article li { margin-bottom: 10px; font-size: 1.02rem; line-height: 1.7; color: var(--text-body); }

.blog-article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark-on-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-article code {
  padding: 2px 6px;
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
}

.blog-article pre {
  margin: 0 0 24px;
  padding: 20px;
  overflow-x: auto;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.6;
  font-weight: 500;
}

.blog-article pre code { padding: 0; background: none; border: 0; color: inherit; }

.blog-article blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--mark);
  font-size: 1.05rem;
  color: var(--ink);
}

.blog-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.blog-author-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.blog-author-card h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.blog-author-card p { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); font-weight: 500;}

.blog-related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.blog-related h3 { margin: 0 0 14px; font-size: 11px; font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 500;
  -webkit-font-smoothing: auto;
}
.blog-related ul { margin: 0; padding: 0; list-style: none; }
.blog-related li { margin-bottom: 10px; }
.blog-related a { font-size: 0.95rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.blog-related a:hover { text-decoration-color: var(--ink); }

/* ---------- About ---------- */
.about-wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.about-section { padding: 80px 0; border-top: 1px solid var(--line); }
.about-section.alt { background: var(--alt); }
.about-section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; }
.about-section-lead { max-width: 66ch; margin-top: 16px; font-size: 1rem; color: var(--muted); }

.about-founder { padding: 140px 0 72px; background: var(--ink); color: #fff; }
.about-founder h1 { max-width: 24ch; font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 600; color: #fff; }
.founder-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.founder-photo { width: 100%; border-radius: 2px; }
.founder-photo-tag { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-dark); font-weight: 500;
  -webkit-font-smoothing: auto;
}
.founder-text p { margin: 0 0 18px; color: rgba(255,255,255,0.78); line-height: 1.7; }
.founder-signoff { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.founder-signoff-name { display: block; font-weight: 600; color: #fff; }
.founder-signoff-role { font-size: 0.86rem; color: var(--muted-dark); font-weight: 500;}

.team-grid-r { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 34px; border-top: 1px solid var(--line); }
.team-member-r { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.team-photo-r { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.team-name-r { font-size: 0.95rem; font-weight: 600; }
.team-role-r, .team-bio-r { font-size: 0.85rem; color: var(--muted); font-weight: 500;}

.where-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.where-cell h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.where-cell p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

.beliefs-list { margin-top: 34px; border-top: 1px solid var(--line); }
.belief { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.belief-num { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); font-weight: 500;}
.belief p { margin: 0; color: var(--muted); line-height: 1.7; }

/* ---------- Privacy ---------- */
.privacy-wrap { max-width: 760px; margin: 0 auto; padding: 148px var(--gutter) 88px; }
.privacy-wrap h1 { max-width: 22ch; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; }
.privacy-wrap h2 { margin: 48px 0 16px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.privacy-wrap p, .privacy-wrap li { font-size: 1rem; line-height: 1.72; color: var(--text-body); }
.privacy-wrap p { margin: 0 0 20px; }
.privacy-wrap ul { margin: 0 0 20px; padding-left: 22px; }
.privacy-wrap a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark-on-light); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.privacy-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted) !important; font-weight: 500;}
.privacy-callout { margin: 0 0 24px; padding: 20px 22px; background: var(--alt); border-left: 2px solid var(--mark); }

/* ---------- FAQ page ---------- */
.faq-main { padding: 148px 0 96px; }
.faq-list-main { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item-main { border-bottom: 1px solid var(--line); }
.faq-item-main summary { padding: 18px 0; font-size: 1rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq-item-main summary::-webkit-details-marker { display: none; }
.faq-item-main summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
.faq-item-main[open] summary::after { content: '\2212'; }
.faq-item-main p { max-width: 74ch; margin: 0; padding: 0 0 20px; font-size: 0.98rem; line-height: 1.7; color: var(--muted); }
.faq-item-main strong { color: var(--ink); }
.industries-cta { margin-top: 34px; font-size: 0.9rem; font-weight: 500;}
.industries-cta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark-on-light); text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .featured-pillars-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-inner { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 200px; }
  .where-grid, .team-grid-r { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  .featured-pillars-grid, .blog-grid { grid-template-columns: 1fr; }
  .page-head, .blog-header, .blog-article-header { padding: 122px 0 48px; }
  .privacy-wrap, .faq-main { padding-top: 118px; }
  .blog-article { padding: 44px var(--gutter) 64px; }
}

/* ============================================================
   Fixes from the inner-page rollout
   ============================================================ */

/* script.js hides filtered blog cards with .hidden; there was no rule,
   so the category filter marked cards but never hid them. */
.hidden { display: none !important; }

/* Pages with no dark masthead (privacy, faq): the nav is transparent with
   white text by default, which is invisible on white. */
.light-top .navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.light-top .navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}

.light-top .nav-brand-name { color: var(--ink); }
.light-top .nav-links a { color: var(--muted); }
.light-top .nav-links a:hover { color: var(--ink); }
.light-top .nav-toggle span { background: var(--ink); }

@media (max-width: 860px) {
  .light-top .nav-links {
    background: var(--paper);
    border-bottom-color: var(--line);
  }
  .light-top .nav-links a { border-top-color: var(--line); }
}

/* Long identifiers in technical posts pushed the page wide on mobile */
.blog-article,
.privacy-wrap,
.faq-item-main p { overflow-wrap: break-word; }

.privacy-wrap code {
  padding: 2px 6px;
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
}

/* about.html: founder band spacing and label contrast on dark */
.about-founder h1 { margin-bottom: 18px; }
.about-founder .eyebrow { color: var(--mark); }

/* about.html client references (was inline in the page) */
.ref-list { margin-top: 32px; border-top: 1px solid var(--line); }
.ref-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ref-logo { width: 72px; height: auto; object-fit: contain; }
.ref-ctx { margin: 0 0 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 500;}
.ref-quote { margin: 0 0 12px; padding-left: 16px; border-left: 2px solid var(--mark); font-size: 0.98rem; line-height: 1.6; color: var(--ink); }
.ref-by { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 500;}
.ref-by a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark-on-light); text-underline-offset: 3px; }

/* CTA callout inside articles */
.article-cta {
  margin: 48px 0 0;
  padding: 24px 26px;
  background: var(--alt);
  border-left: 2px solid var(--mark);
}

.article-cta p { margin: 0; }

@media (max-width: 680px) {
  .ref-item { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Keyboard focus ---------- */
:focus-visible {
  outline: 2px solid var(--mark-on-light);
  outline-offset: 3px;
  border-radius: 1px;
}

.hero :focus-visible,
.footer :focus-visible,
.navbar :focus-visible { outline-color: var(--mark); }

/* ---------- Consent banner (canonical, shared by all properties) ---------- */
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mark);
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
  font-family: var(--sans);
}
.consent-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.consent-text { flex: 1; min-width: 280px; }
.consent-title { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.consent-body { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--muted); font-weight: 500;}
.consent-body a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--mark-on-light); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-btn {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.consent-btn-primary { background: var(--mark); color: var(--ink); }
.consent-btn-primary:hover { background: var(--mark-hover); }
.consent-btn-secondary { background: transparent; color: var(--ink); border-color: var(--muted); }
.consent-btn-secondary:hover { background: var(--alt); }
@media (max-width: 640px) {
  .consent-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}
