/* ============================================
   DIALOGISTIC INDUSTRIES ,  Main Stylesheet
   Built on Mike Abbink's IBM Plex family.
   IBM Plex Serif / IBM Plex Sans / IBM Plex Mono
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:         #cb544c;
  --red-on-dark: #e06560;
  --lime:   #c2c94b;
  --green:  #4bc952;
  --teal:   #4bc2c9;
  --indigo: #524bc9;
  --magenta:#c94bc2;
  --midgrey: #333333;

  --bg:     #ffffffd0;
  --fg:     #1a1a1a;
  --muted:  #181818;
  --border: rgba(0,0,0,.30);

  /* Alias variables used by snapshot & software pages */
  --text:    var(--fg);     /* primary text */
  --text-2:  #555555;       /* secondary / caption text */
  --surface: #f0efec;       /* card / elevated surface */
  --accent:  var(--red);    /* interactive link accent */

  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-hand:    'IBM Plex Mono', monospace;

  --max-w: 1360px;
  --gutter: clamp(1.5rem, 5vw, 6rem);
}

html { font-size: 16px; scroll-behavior: smooth; }

/* ── Page entrance animation ─────────────────────────────────────────────── */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes page-exit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
body {
  animation: none;
}
main {
  opacity: 0;
}
main.animate-in {
  animation: page-enter .4s ease-out forwards;
}
main.is-leaving {
  animation: page-exit .3s ease-in forwards;
}
@media (prefers-reduced-motion: reduce) {
  main { opacity: 1; }
  main.animate-in, main.is-leaving { animation: none; }
}

/* Offset anchor scroll targets so sticky header doesn't overlap */
[id] { scroll-margin-top: 8rem; }

/* Skip to main content — visible only on keyboard focus */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1.5rem;
  background: var(--fg);
  color: var(--bg);
  padding: .75rem 1.5rem;
  font-weight: 600;
  font-size: .875rem;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .15s;
}
.skip-nav:focus { top: 0; }

/* Universal keyboard focus ring (mouse users keep clean UI) */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 1rem; font-weight: 600; }

p, li { font-size: clamp(1rem, 1.1vw, 1.2rem); }
p + p { margin-top: 1rem; }

.eyebrow {
  font-family: var(--font-hand);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: .65rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2.4rem;
  border: none; border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.btn-primary { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline  { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-sm { padding: .7rem 1.6rem; font-size: .9rem; }

/* ---------- Decorative Jazz Shapes ---------- */
.jazz-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .12;
}

/* ---------- Header / Nav ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--max-w); margin: 0 auto;
  padding: 1rem var(--gutter);
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--fg); }
.logo svg { width: 42px; height: 42px; }
.logo span { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1vw, 1.25rem);
  list-style: none;
}

/* ---------- Dropdown Nav ---------- */
.has-dropdown {
  position: relative;
}
/* Invisible bridge fills the gap between toggle and dropdown so hover isn't lost */
.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -.5rem;
  left: 0;
  right: 0;
  height: .5rem;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .875rem;
  padding: 0;
  transition: color .2s;
  white-space: nowrap;
}
.nav-dropdown-toggle .chevron {
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-dropdown-toggle:hover,
.has-dropdown:hover .nav-dropdown-toggle,
.has-dropdown:focus-within .nav-dropdown-toggle,
.has-dropdown.is-open .nav-dropdown-toggle { color: var(--red); }

.has-dropdown.is-open .nav-dropdown-toggle .chevron,
.has-dropdown:focus-within .nav-dropdown-toggle .chevron { transform: rotate(180deg); }

/* Highlight parent toggle when a child page is current */
.has-dropdown:has(a[aria-current="page"]) .nav-dropdown-toggle { color: var(--red); }

.dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem;
  min-width: 210px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s .15s, transform .15s .15s;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  transition: opacity .15s, transform .15s;
}
.dropdown li { list-style: none; }
.dropdown li a {
  display: block;
  padding: .6rem 1rem;
  border-radius: 4px;
  color: var(--fg);
  text-decoration: none;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .15s, color .15s;
  font-weight: 400;
}
.dropdown li a:hover { background: rgba(203,84,76,.06); color: var(--red); text-decoration: none; }
.dropdown li a[aria-current="page"] {
  color: var(--red);
  font-weight: 600;
  background: rgba(203,84,76,.06);
}

.nav-cta { display: none; }
@media(min-width:1024px) { .nav-cta { display: inline-flex; } }
.nav-cta[aria-current="page"] { opacity: .4; cursor: default; pointer-events: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--fg); }
@media(max-width:1023px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.25rem var(--gutter) 2rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-menu ul li a {
  display: block;
  padding: .6rem 0 .6rem .75rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul a:hover,
.mobile-menu ul a[aria-current="page"] { color: var(--red); text-decoration: none; }
.mobile-group-label {
  font-family: var(--font-hand);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 0 .25rem;
  display: block;
  list-style: none;
  border-bottom: none !important;
}
.mobile-group-label:first-child { padding-top: .25rem; }
.mobile-menu .mobile-cta {
  margin-top: 1.25rem;
  display: inline-flex;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 10vh, 12rem) 0;
  /* -webkit-mask-image: linear-gradient(to bottom, black 97%, transparent 100%); */
  /* mask-image: linear-gradient(to bottom, black 97%, transparent 100%); */
  border-bottom: 1px solid var(--border);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero__content { max-width: 1000px; }
.hero p { max-width: 1000px; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.hero .btn { margin-top: 2.5rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: clamp(2.5rem, 5vh, 4rem) 0;
  /* border-bottom: 1px solid var(--border); */
}
.page-hero .eyebrow { margin-bottom: 1rem; }
/* .page-hero h1 { font-size: clamp(2rem, 4vw, 3.8rem); } */
.page-hero p { max-width: 800px; margin: 2rem 0; font-size: clamp(1rem, 1.2vw, 1.2rem); color: var(--muted); }

/* ---------- SECTION COMMON ---------- */
section { padding: clamp(3rem, 7vh, 6rem) 0; }
section:nth-child(even) { background: #fff; }

.section-header { max-width: 800px; margin-bottom: 3.5rem; }

/* ---------- REALITY CHECK ---------- */
.reality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media(min-width:900px) {
  .reality-grid { grid-template-columns: 1fr 1.1fr; }
}
.reality .section-header { margin-bottom: 0; }
.reality .stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 0;
}
.stat-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom:1.2rem;
  text-align: center;
  transition: border-color .3s, transform .3s;
}
.stat-card:hover { border-color: var(--red); transform: translateY(-4px); }
.stat-card .number {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-card .label {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .85rem;
  font-family: var(--font-hand);
  letter-spacing: .06em;
}

/* ---------- PHILOSOPHY ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media(min-width:900px) {
  .philosophy-grid { grid-template-columns: 2fr 1fr; align-items: center; }
  .philosophy-visual { order: 2; }
}
.philosophy-visual {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.philosophy-visual .circle-human {
  width: 220px; height: 220px; border-radius: 50%;
  border: 3px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-size: .78rem; color: var(--red);
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; z-index: 2;
  background: var(--bg);
}
.philosophy-visual .circle-ai {
  width: 220px; height: 220px; border-radius: 50%;
  border: 3px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-size: .78rem; color: var(--teal);
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; z-index: 2;
  margin-left: -60px;
  background: var(--bg);
}
.philosophy-visual .overlap-label {
  position: absolute;
  font-family: var(--font-hand);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.service-card .accent-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.service-card:nth-child(1) .accent-bar { background: var(--red); }
.service-card:nth-child(2) .accent-bar { background: var(--teal); }
.service-card:nth-child(3) .accent-bar { background: var(--indigo); }
.service-card:nth-child(4) .accent-bar { background: var(--lime); }

.service-card .num {
  font-family: var(--font-hand);
  font-size: 2.8rem; font-weight: 400;
  color: var(--red);
  line-height: 1;
  margin-bottom: .5rem;
}
.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin-top: .75rem; }

/* ---------- SOCIAL PROOF ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.quote-card {
  padding: 2.5rem 2rem;
  border-left: 4px solid var(--red);
  background: #fff;
  border-radius: 0 8px 8px 0;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.quote-card cite {
  font-style: normal;
  font-family: var(--font-hand);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.wins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.win-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.win-card .big {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  color: var(--red);
  letter-spacing: -.03em;
}
.win-card .context { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* ---------- ROADMAP ---------- */
.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: 'Phase_' counter(step);
  font-family: var(--font-hand);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: .75rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* ---------- WHY US / CTA DARK BAND ---------- */
.why-us {
  position: relative;
  overflow: hidden;
  background: #1a1a1a !important;
  color: #fff;
}
.why-us h2 { color: #fff; }
.why-us p { color: rgba(255,255,255,.7); max-width: 680px; }
.why-us .btn-primary { margin-top: 2rem; }


/* ---------- LISTING CARDS (Blog / News / Case Studies / Research) ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width:700px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
.listing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.listing-card__thumb {
  display: none;
}
.listing-card__thumb-accent {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--red) 0%, #333 40%, var(--teal) 70%, #333 100%);
  opacity: .6;
}
.listing-card__body {
  padding: 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-card__body h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.listing-card__body p { color: var(--muted); font-size: .95rem; flex: 1; line-height: 1.6; }
.listing-card__meta {
  /* margin-top: 1rem; */
  font-family: var(--font-hand);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  background: rgba(203,84,76,.1);
  color: var(--red);
  margin-bottom: 1rem;
  padding: .2rem .65rem;
  border-radius: 3px;
  font-family: var(--font-hand);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.listing-card__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}
.listing-card__footer a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.listing-card__footer a:hover { text-decoration: underline; }

/* ---------- TWO-COLUMN CONTENT LAYOUT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media(min-width:900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
/* .two-col--wide { } */
@media(min-width:900px) { .two-col--wide { grid-template-columns: 1.4fr 1fr; } }

/* ---------- FEATURED CARD ---------- */
.featured-card {
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-top: 4px solid var(--red);
  margin-bottom: 2rem;
}
.featured-card h3 { font-size: 1.5rem; }
.featured-card p { color: var(--muted); margin-top: .75rem; }
.featured-card .btn { margin-top: 1.5rem; }

/* ---------- CONTACT FORM ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media(min-width:900px) { .contact-layout { grid-template-columns: 1.5fr 1fr; align-items: start; } }

.contact-form { max-width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media(max-width:600px) { .form-row { grid-template-columns: 1fr; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: var(--font-hand);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { min-height: 160px; resize: vertical; }

.form-status {
  display: none;
  padding: .9rem 1.1rem;
  border-radius: 5px;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.form-status.success {
  display: block;
  background: color-mix(in srgb, var(--lime) 15%, var(--bg));
  border: 1px solid var(--lime);
  color: var(--fg);
}
.form-status.error {
  display: block;
  background: color-mix(in srgb, var(--red) 10%, var(--bg));
  border: 1px solid var(--red);
  color: var(--fg);
}

.contact-info h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-item .icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-info-item div span {
  font-family: var(--font-hand);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: .25rem;
}
.contact-info-item div p { font-size: 1rem; color: var(--fg); margin: 0; }

/* ---------- ABOUT PAGE ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.team-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.team-card__avatar {
  height: 200px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__avatar .initials {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.03em;
}
.team-card__body { padding: 1.5rem; }
.team-card__body h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.team-card__body .role {
  font-family: var(--font-hand);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
  display: block;
}
.team-card__body p { font-size: .9rem; color: var(--muted); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.value-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.value-card .value-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: -.04em;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.value-card p { font-size: .9rem; color: var(--muted); }

/* ---------- FOOTER ---------- */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
footer .tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: .75rem;
}
footer a { color: var(--red); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Body content inline links — match footer link style */
a:not([class]) { color: var(--red); text-decoration: none; }
a:not([class]):hover { text-decoration: underline; }

/* ---------- Dark Mode ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #222222;
  --fg: #f5f5f5;
  --muted: #a8a8a8;
  --border: rgba(255,255,255,.08);

  /* Dark-mode alias overrides */
  --text-2:  var(--muted);       /* #a8a8a8 — readable secondary text */
  --surface: #2c2c2c;            /* slightly elevated dark surface */
  --accent:  var(--red-on-dark); /* brighter red for dark bg links */
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--fg);
}

html[data-theme="dark"] header {
  background: rgba(26,26,26,.85);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .mobile-menu {
  background: #1a1a1a;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-outline {
  color: var(--red-on-dark);
  border-color: var(--red);
  background-color: #222;
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-outline:hover {
  background: var(--red-on-dark);
  border-color: var(--red-on-dark);
  color: #fff;
}

html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .listing-card,
html[data-theme="dark"] .featured-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .win-card {
  background: #1a1a1a;
  border-color: var(--border);
border-top: 5px solid var(--midgrey);
}

html[data-theme="dark"] .stat-card .number,
html[data-theme="dark"] .win-card .big { color: #ff6b5b; }

html[data-theme="dark"] section:nth-child(even) { background: hsl(0deg 0% 0% / 0%); }

html[data-theme="dark"] .nav-links a { color: var(--muted); }
html[data-theme="dark"] .nav-links a:hover { color: var(--red-on-dark); }
html[data-theme="dark"] .nav-dropdown-toggle { color: var(--muted); }
html[data-theme="dark"] .nav-dropdown-toggle:hover,
html[data-theme="dark"] .has-dropdown:hover .nav-dropdown-toggle,
html[data-theme="dark"] .has-dropdown:focus-within .nav-dropdown-toggle,
html[data-theme="dark"] .has-dropdown.is-open .nav-dropdown-toggle { color: var(--red-on-dark); }
html[data-theme="dark"] .has-dropdown:has(a[aria-current="page"]) .nav-dropdown-toggle { color: var(--red-on-dark); }
html[data-theme="dark"] .dropdown {
  background: #1a1a1a;
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
html[data-theme="dark"] .dropdown li a { color: var(--fg); }
html[data-theme="dark"] .dropdown li a:hover { background: rgba(224,101,96,.08); color: var(--red-on-dark); }
html[data-theme="dark"] .dropdown li a[aria-current="page"] { color: var(--red-on-dark); background: rgba(224,101,96,.08); }

html[data-theme="dark"] .eyebrow { color: var(--red-on-dark); }
html[data-theme="dark"] .why-us .eyebrow { color: var(--lime); }
html[data-theme="dark"] footer a { color: var(--red-on-dark); border-bottom:1px solid #111;}
html[data-theme="dark"] a:not([class]) { color: #d87b74; }
html[data-theme="dark"] .step::before { color: var(--red-on-dark); }
html[data-theme="dark"] .tag { color: #d87b74; }

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .form-group select {
  background: #1a1a1a;
  border-color: var(--border);
  color: var(--fg);
}

html[data-theme="dark"] .listing-card__footer {
  border-top-color: var(--border);
}
html[data-theme="dark"] .team-card__avatar { background: #0e0e0e; }
html[data-theme="dark"] .contact-info-item .icon { border-color: var(--border); }

/* Dark mode toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 44px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  color: var(--fg);
  padding: 0;
}
.theme-toggle:hover { color: var(--red); }

/* ---------- Responsive helpers ---------- */
@media(max-width:600px) {
  .philosophy-visual { flex-direction: column; }
  .philosophy-visual .circle-ai { margin-left: 0; margin-top: -40px; }
}

/* ========================================================
   STRATEGIC SNAPSHOT PAGES
   ======================================================== */

.snapshot-hero {
  padding: 2rem 0 2rem;
  border-bottom: 0;
}
.snapshot-hero .eyebrow { color: var(--red, #e05252); }
.snapshot-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  max-width: 780px;
  margin: .4rem 0 .6rem;
}
.snapshot-hero .subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 0;
}
.snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  font-size: .8125rem;
  color: var(--text-2);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  border-top: 1px solid var(--border);
  padding-top: .85rem;
  margin-top: .85rem;
}
.snapshot-meta span strong { color: var(--text); }

section.snapshot-tight { padding: 0; }

.snapshot-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.snapshot-stat {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.snapshot-stat .num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif, 'IBM Plex Serif', serif);
  color: var(--snap-accent, var(--red, #e05252));
  line-height: 1;
}
.snapshot-stat .lbl {
  font-size: .75rem;
  color: var(--text-2);
  margin-top: .4rem;
  line-height: 1.4;
}

.snapshot-body {
  display: grid;
  grid-template-columns: 1fr minmax(0, 680px) 1fr;
  gap: 0;
}
.snapshot-body > * { grid-column: 2; }
@media (max-width: 900px) {
  .snapshot-body { grid-template-columns: 1fr; }
  .snapshot-body > * { grid-column: 1; }
}

.snapshot-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.snapshot-section:last-of-type { border-bottom: none; }
.snapshot-section h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.snapshot-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 .4rem;
  color: var(--text);
}
.snapshot-section p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: .85rem;
}
.snapshot-section ul {
  margin: .75rem 0 1rem 1.25rem;
  color: var(--text-2);
  line-height: 1.75;
}
.snapshot-section ul li { margin-bottom: .5rem; }
.snapshot-section ul li strong { color: var(--text); }

.pull-quote {
  border-left: 3px solid var(--snap-accent, var(--red, #e05252));
  padding: .85rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.pull-quote p {
  font-family: var(--font-serif, 'IBM Plex Serif', serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text) !important;
  margin: 0 !important;
  line-height: 1.6;
}

.lesson-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}
.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.lesson-card .lesson-num {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .75rem;
  color: var(--snap-accent, var(--red, #e05252));
  font-weight: 600;
  margin-bottom: .5rem;
}
.lesson-card h3 { font-size: .9375rem; margin: 0 0 .5rem !important; color: var(--text) !important; }
.lesson-card p { font-size: .875rem; margin: 0 !important; }

.citation {
  font-size: .65rem;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  color: var(--snap-accent, var(--red, #e05252));
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
  opacity: .85;
}
.citation:hover { opacity: 1; text-decoration: underline; }

.tag-snapshot {
  background: color-mix(in srgb, var(--snap-accent, var(--red, #e05252)) 12%, transparent);
  color: var(--snap-accent, var(--red, #e05252));
  border: 1px solid color-mix(in srgb, var(--snap-accent, var(--red, #e05252)) 30%, transparent);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 4px;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  display: inline-block;
}

.snapshot-refs { padding: 2.5rem 0 3rem; }
.snapshot-refs summary {
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  padding: .75rem 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.snapshot-refs summary::before {
  content: '▶';
  font-size: .6rem;
  transition: transform .2s;
}
details[open] .snapshot-refs summary::before,
.snapshot-refs details[open] summary::before { transform: rotate(90deg); }
.snapshot-refs ol {
  margin: 1rem 0 0 1.25rem;
  color: var(--text-2);
  font-size: .8125rem;
  line-height: 1.7;
}
.snapshot-refs ol li { margin-bottom: .35rem; }
.snapshot-refs ol a { color: var(--accent); }

/* ========================================================
   SOFTWARE PAGE
   ======================================================== */

.software-intro {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.software-intro p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.software-products { padding: 5rem 0; }
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.product-card:last-child { margin-bottom: 0; }

.product-card__header {
  padding: 2.75rem 3rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
}
.product-card__header-left { flex: 1; min-width: 200px; }
.product-card__header-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: .5rem;
}
.product-card__header-left p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
  margin-top: 0;
  line-height: 1.65;
}
.product-card__badges {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: .25rem;
  flex-shrink: 0;
}
.badge {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
}
.badge--beta {
  color: var(--indigo);
  border-color: color-mix(in srgb, var(--indigo) 35%, transparent);
  background: color-mix(in srgb, var(--indigo) 8%, transparent);
}
.badge--oss {
  color: var(--teal);
  border-color: color-mix(in srgb, var(--teal) 35%, transparent);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
}
.badge--wp {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
  background: color-mix(in srgb, var(--red) 8%, transparent);
}

.product-card__body {
  padding: 2.75rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .product-card__body { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

.features-heading {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
}
.features-list li {
  font-size: .9375rem;
  color: var(--muted);
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.55;
}
.features-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
}

.product-card__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.product-card__cta-group {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.product-card__aside .btn { justify-content: center; text-align: center; }
.product-note {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted);
  opacity: .7;
  line-height: 1.6;
}

.accent-top-red  { border-top: 4px solid var(--red); }
.accent-top-teal { border-top: 4px solid var(--teal); }

@media (max-width: 700px) {
  .product-card__header,
  .product-card__body { padding: 1.75rem 1.5rem; }
}
