/* ============================================================
   JQ AI SYSTEMS — version_04
   "Same Brand, Dark Mode" — joaoqueiros.com DNA, night mode.

   Design principle: v4 should feel like the user opened
   joaoqueiros.com in dark mode. Identical typographic DNA,
   identical accent colors, identical gradient formula.
   The only change is background: light cream → warm dark.

   joaoqueiros.com originals used directly:
   - Heading font: Libre Baskerville (same)
   - Body font:    Inter (same)
   - Teal accent:  #00A89D (same)
   - Blue accent:  #0099D6 (same)
   - Gradient:     linear-gradient(135deg,#00A89D,#0099D6) (same)
   - Dark bg:      #1A1A18 (same — already used in testimonials)
   - Text on dark: #F5F5F0 (same — it was the light bg!)
   ============================================================ */

/* ── FONT FALLBACK METRIC OVERRIDES ─────────────────────────
   Prevents mobile CLS by matching fallback font metrics to
   the web fonts. When Google Fonts are slow or unavailable
   (display=optional), these fallbacks render at near-identical
   size/height, so text never reflows on font load.
   ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Libre Baskerville Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Times');
  font-display: swap;
  size-adjust: 100.5%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica'), local('Segoe UI');
  font-display: swap;
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Backgrounds — warm dark (not cold zinc) */
  --bg:          #111110;
  --bg-surface:  #1A1A18;   /* exact same dark used in joaoqueiros.com */
  --bg-card:     #1F1F1D;
  --bg-elevated: #252521;

  /* Brand colors — EXACT match to joaoqueiros.com */
  --teal:        #00A89D;
  --blue:        #0099D6;
  --grad:        linear-gradient(135deg, #00A89D 0%, #0099D6 100%);
  --grad-hover:  linear-gradient(135deg, #00BFB4 0%, #00ADEE 100%);
  --live:        #22D390;

  /* Text — cream and muted tones from original inverted */
  --text:        #F5F5F0;   /* was the bg on original — now the text */
  --text-body:   #A3A39F;   /* original muted text */
  --text-muted:  #6B6B68;   /* original secondary text */

  /* Borders — dark-adapted version of original's #E8E8E3 */
  --border:      rgba(232, 232, 227, 0.08);
  --border-acc:  rgba(0, 168, 157, 0.2);
  --border-hov:  rgba(0, 168, 157, 0.45);

  /* Typography — EXACT match to joaoqueiros.com
     Fallback fonts have metric overrides (see @font-face above)
     so the swap from fallback → web font causes no layout shift. */
  --f-serif:     'Libre Baskerville', 'Libre Baskerville Fallback', Georgia, 'Times New Roman', serif;
  --f-sans:      'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Layout */
  --max-w:       1200px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:         0.3s;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animate-fade-rise, .animate-fade-rise-delay, .animate-fade-rise-delay-2 { opacity: 1 !important; transform: none !important; }
}
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (pointer: fine) {
  body                    { cursor: none; }
  .btn                    { cursor: none; }
  .nav-cta                { cursor: none; }
  .form-group select      { cursor: none; }
  .training-faq summary   { cursor: none; }
}
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
svg  { display: block; }

/* ── GRAIN TEXTURE (very subtle warmth) ─────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────── */
#cursor-dot {
  width: 5px; height: 5px;
  background: var(--teal);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99999;
  transition: width .15s, height .15s, background .2s;
  will-change: transform;
}
#cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(0, 168, 157, 0.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99998;
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
  will-change: transform;
}
body.hovered #cursor-dot  { width: 8px;  height: 8px;  background: var(--blue); }
body.hovered #cursor-ring { width: 50px; height: 50px; border-color: rgba(0,153,214,.45); }
body.clicked #cursor-dot  { width: 3px;  height: 3px; }
body.clicked #cursor-ring { width: 24px; height: 24px; }

/* ── FOCUS-VISIBLE (keyboard accessibility) ─────────────── */
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-cta:focus-visible,
.nav-hamburger:focus-visible,
.service-card a:focus-visible,
.system-card a:focus-visible,
.system-title a:focus-visible,
.feed-card:focus-visible,
.footer-col a:focus-visible,
.post-toc a:focus-visible,
.breadcrumb a:focus-visible,
.testimonial-link:focus-visible,
.radio-card:focus-visible,
.checkbox-card:focus-visible,
.cert-card:focus-visible,
.training-faq summary:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ── GRADIENT TEXT ───────────────────────────────────────── */
.gt {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.375rem; }

/* ── OVERLINE / LABEL ────────────────────────────────────── */
.overline {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.9rem;
  border-radius: 4px;        /* matches original */
  text-decoration: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(232,232,227,0.25);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-teal {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--border-acc);
}
.btn-teal:hover {
  background: rgba(0,168,157,0.08);
  border-color: var(--teal);
  transform: translateY(-1px);
}

/* Gradient-outlined button: gradient border + gradient text */
.btn-grad-outline {
  background: transparent;
  color: var(--teal);
  border: none;
  border-radius: 4px;
  position: relative;
  z-index: 0;
  /* Gradient text */
  background-image: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-grad-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.btn-grad-outline:hover {
  background-image: var(--grad-hover);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-1px);
}
.btn-grad-outline:hover::before {
  background: var(--grad-hover);
}

/* ── TAGS ────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.tag {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(0, 168, 157, 0.06);
  border: 1px solid rgba(0, 168, 157, 0.15);
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease),
              transform 0.65s var(--ease);
}
.rv.visible { opacity: 1; transform: translateY(0); }
.rv[data-delay="1"] { transition-delay: .08s; }
.rv[data-delay="2"] { transition-delay: .16s; }
.rv[data-delay="3"] { transition-delay: .24s; }
.rv[data-delay="4"] { transition-delay: .32s; }
.rv[data-delay="5"] { transition-delay: .40s; }

/* ── SECTION BASE ────────────────────────────────────────── */
.section       { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-dark  { background: var(--bg-surface); }
.section-card  { background: var(--bg-card); }

.section-header { max-width: 640px; margin-bottom: clamp(2.5rem, 4.5vw, 4rem); }
.section-header h2 { margin-top: 0.3rem; }
.section-header p  { margin-top: 0.9rem; font-size: 1.0625rem; line-height: 1.8; }

.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}
.section-header-split > p { max-width: 360px; font-size: 1.0625rem; line-height: 1.8; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--dur), background var(--dur), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  padding: 0.8rem 2.5rem;
  background: rgba(17,17,16,0.94);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: var(--border);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  font-family: var(--f-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--f-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.55rem 1.35rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: transparent;
  text-decoration: none;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.nav-cta:hover {
  background: rgba(0,168,157,0.08);
  border-color: var(--border-acc);
  color: var(--teal);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(17, 17, 16, 0.55);
  border: 1px solid rgba(232, 232, 227, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 501;
  align-items: center;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
#nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: rgba(17,17,16,0.97);
  backdrop-filter: blur(24px);
  z-index: 499;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
#nav-mobile.open { display: flex; }
#nav-mobile a {
  font-family: var(--f-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--dur);
}
#nav-mobile a:hover { color: var(--text); }
#nav-mobile a.cta { color: var(--teal); }

/* ============================================================
   LIQUID GLASS
   ============================================================ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.12) 20%,
    rgba(255,255,255,0) 45%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.12) 80%, rgba(255,255,255,0.38) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   FADE-RISE ANIMATIONS
   ============================================================ */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise          { animation: fade-rise 0.85s ease-out both; }
.animate-fade-rise-delay    { animation: fade-rise 0.85s ease-out 0.18s both; }
.animate-fade-rise-delay-2  { animation: fade-rise 0.85s ease-out 0.36s both; }
.animate-fade-rise-delay-3  { animation: fade-rise 0.85s ease-out 0.54s both; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  /* 100vh on mobile includes the URL bar area; when the bar hides on scroll,
     the hero grows and pushes content below it down, causing CLS.
     100svh (small viewport height) is stable across URL-bar show/hide. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Fullscreen background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark overlay so text stays legible */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(6, 8, 9, 0.95) 0%,
    rgba(6, 8, 9, 0.86) 55%,
    rgba(6, 8, 9, 0.94) 100%
  );
  pointer-events: none;
}

/* Bottom fade — dissolves hero into the section below */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}

/* Subtle warm radial behind logo area */
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0,168,157,.08) 0%,
    rgba(0,153,214,.05) 40%,
    transparent 70%);
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; z-index: 2;
}

#hero > .wrap {
  position: relative;
  z-index: 3;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

/* Left column */
.hero-left { position: relative; z-index: 1; }

.hero-overline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}
.hero-overline-line { width: 28px; height: 1px; background: var(--teal); opacity: .5; flex-shrink: 0; }
.hero-overline-text {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-h1 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-h1 em {
  font-style: italic;
  color: var(--text);
}
.hero-h1-kicker {
  display: block;
  font-family: var(--f-serif);
  font-weight: 700;
  /* Smaller than the main H1, scaled so it sits visually balanced above
     "Design thinking." without dominating the composition. */
  font-size: clamp(1.25rem, 2.55vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: .35rem;
  white-space: nowrap;
}

/* Typewrite cursor */
.tw-cursor {
  display: inline;
  font-weight: 300;
  color: var(--teal);
  animation: twBlink .6s step-end infinite;
}
@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-lead {
  font-family: var(--f-sans);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-body);
  max-width: 500px;
  margin-bottom: 2.2rem;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Stats — styled like original's .jq-hero__stats */
.hero-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  border-top: none;
  margin-top: 1rem;
}
.hero-stat {
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--text-body);
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}
.hero-stat strong {
  display: inline-block;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

/* Right column — logo presentation stage */
.hero-right {
  position: relative; z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -3rem;
}

.logo-stage {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ring-outer {
  width: 370px; height: 370px;
  border: 1px dashed rgba(232,232,227,0.07);
}
.ring-mid {
  width: 288px; height: 288px;
  border: 1px dashed rgba(0,168,157,0.12);
}
.ring-inner-sm {
  width: 200px; height: 200px;
  border: 1px solid rgba(0,168,157,0.08);
}

@keyframes rotateSlow { to { transform: rotate(360deg); } }

.logo-stage img {
  position: relative;
  z-index: 2;
  width: 155px;
  height: auto;
  filter: drop-shadow(0 0 32px rgba(0,168,157,0.18));
}

/* Corner crosshair decorations */
.corner-mark {
  position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
}
.corner-mark::before,
.corner-mark::after {
  content: '';
  position: absolute;
  background: var(--teal);
  opacity: 0.35;
}
.corner-mark::before { width: 1px; height: 100%; left: 0; top: 0; }
.corner-mark::after  { width: 100%; height: 1px; left: 0; top: 0; }
.cm-tl { top: 52px;  left: 52px; }
.cm-tr { top: 52px;  right: 52px; transform: scaleX(-1); }
.cm-br { bottom: 52px; right: 52px; transform: scale(-1); }
.cm-bl { bottom: 52px; left: 52px;  transform: scaleY(-1); }

/* Certification badge */
.cert-badge {
  position: absolute;
  bottom: 48px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(22, 24, 26, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}
.cert-dot {
  width: 5px; height: 5px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── LOGO BOOT ANIMATION ────────────────────────────────── */

/* Scan-line sweeps top to bottom */
.logo-scan {
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  z-index: 10;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 18px 4px rgba(0,168,157,0.35);
  opacity: 0;
  animation: scanSweep 1s ease-in-out 0.3s both;
}
@keyframes scanSweep {
  0%   { opacity: 1; top: 0; }
  80%  { opacity: 1; }
  100% { opacity: 0; top: 100%; }
}

/* Logo image: glitch-decode reveal */
.logo-stage img {
  animation: logoReveal 0.6s ease-out 0.6s both;
}
@keyframes logoReveal {
  0%   { opacity: 0; clip-path: inset(0 0 100% 0); filter: drop-shadow(0 0 32px rgba(0,168,157,0.18)) brightness(2); }
  30%  { opacity: 1; clip-path: inset(0 0 60% 0);  filter: drop-shadow(0 0 32px rgba(0,168,157,0.18)) brightness(1.6); }
  50%  { clip-path: inset(0 0 30% 0);  filter: drop-shadow(0 0 32px rgba(0,168,157,0.18)) brightness(1); }
  65%  { clip-path: inset(0 0 5% 0); }
  70%  { clip-path: inset(40% 0 0 0); opacity: 0.7; }
  75%  { clip-path: inset(0); opacity: 1; }
  85%  { filter: drop-shadow(0 0 50px rgba(0,168,157,0.5)) brightness(1.3); }
  100% { clip-path: inset(0); filter: drop-shadow(0 0 32px rgba(0,168,157,0.18)) brightness(1); }
}

/* Rings: scale from 0 and start rotation */
.ring-outer {
  animation: ringBoot 0.8s ease-out 0.4s both, rotateSlow 90s linear 1.2s infinite;
}
.ring-mid {
  animation: ringBoot 0.8s ease-out 0.55s both, rotateSlow 60s linear 1.35s infinite reverse;
}
.ring-inner-sm {
  animation: ringBoot 0.7s ease-out 0.7s both, rotateSlow 110s linear 1.4s infinite;
}
@keyframes ringBoot {
  0%   { transform: scale(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Corner marks: snap in from edges */
.corner-mark {
  animation: cornerSnap 0.35s ease-out 1.0s both;
}
.cm-tr { animation-delay: 1.05s; }
.cm-br { animation-delay: 1.1s; }
.cm-bl { animation-delay: 1.15s; }
@keyframes cornerSnap {
  0%   { opacity: 0; transform: scale(2.5); }
  50%  { opacity: 0.35; }
  100% { opacity: 1; }
}
/* Preserve mirror transforms after animation */
.cm-tr { animation-name: cornerSnapTR; }
.cm-br { animation-name: cornerSnapBR; }
.cm-bl { animation-name: cornerSnapBL; }
@keyframes cornerSnapTR {
  0%   { opacity: 0; transform: scaleX(-1) scale(2.5); }
  100% { opacity: 1; transform: scaleX(-1); }
}
@keyframes cornerSnapBR {
  0%   { opacity: 0; transform: scale(-1) scale(2.5); }
  100% { opacity: 1; transform: scale(-1); }
}
@keyframes cornerSnapBL {
  0%   { opacity: 0; transform: scaleY(-1) scale(2.5); }
  100% { opacity: 1; transform: scaleY(-1); }
}

/* Cert badge: slide up + fade in */
.cert-badge {
  animation: badgeUp 0.5s ease-out 1.3s both;
}
@keyframes badgeUp {
  0%   { opacity: 0; transform: translateX(-50%) translateY(12px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Reduce motion: skip everything */
@media (prefers-reduced-motion: reduce) {
  .logo-scan,
  .logo-stage img,
  .ring-outer, .ring-mid, .ring-inner-sm,
  .corner-mark, .cm-tl, .cm-tr, .cm-br, .cm-bl,
  .cert-badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cert-badge { transform: translateX(-50%) !important; }
}

/* Hero demo links (below hero stats) */
.hero-demos {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: .6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: rgba(0,168,157,.04);
  position: relative;
}
.hero-demos::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.hero-demos-label {
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--teal);
  margin-right: .25rem;
}
.hero-demo-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur);
}
.hero-demo-link:hover { color: #fff; }
.hero-demo-link .rec-dot {
  width: 6px; height: 6px;
  background: #e53e3e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(229,62,62,.6);
  animation: recPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem; z-index: 3;
}
.scroll-hint-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.25} 50%{opacity:.65} }
.scroll-hint-label {
  font-family: var(--f-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   TICKER
   ============================================================ */
#ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  height: 44px;
  display: flex;
  align-items: center;
  position: relative; z-index: 2;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.ticker-item {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 2rem;
  flex-shrink: 0;
}
.ticker-item.hi { color: var(--teal); }
.ticker-sep {
  display: inline-block;
  width: 4px; height: 4px;
  background: rgba(0,168,157,.2);
  border-radius: 50%;
  margin-left: 2rem;
  vertical-align: middle;
}

/* ============================================================
   SERVICE CARDS — mirroring original's .jq-service-card
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  transition: background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover { background: rgba(0,168,157,0.04); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.service-icon {
  width: 36px; height: 36px;
  color: var(--teal);
  margin-bottom: 1.1rem;
  opacity: .7;
  transition: opacity var(--dur);
}
.service-card:hover .service-icon { opacity: 1; }

.service-title {
  font-family: var(--f-serif);   /* serif — matches original's h3 in cards */
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.service-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.service-card:hover .service-title a,
.service-title a:hover {
  color: var(--teal);
  background-size: 100% 1px;
}

/* "View details →" link at the bottom of every service card that has a
   matching detail page. */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.1rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.service-card-link:hover { gap: .7rem; }
.service-card-link span { font-size: 1rem; line-height: 1; }

.service-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Placeholder variant ─ dimmed until the service is live */
.service-card--soon {
  background: rgba(31,31,29,0.35);
}
.service-card--soon .service-num,
.service-card--soon .service-title,
.service-card--soon .service-desc {
  opacity: .55;
  transition: opacity var(--dur) var(--ease);
}
.service-card--soon .service-icon { opacity: .35; }
.service-card--soon:hover .service-num,
.service-card--soon:hover .service-title,
.service-card--soon:hover .service-desc { opacity: .85; }
.service-card--soon:hover .service-icon { opacity: .7; }
.service-card--soon .tag {
  opacity: .6;
  border-style: dashed;
}

.service-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--f-sans);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  padding: 0.3rem 0.55rem;
  border: 1px dashed var(--teal);
  border-radius: 2px;
  background: rgba(0,168,157,0.06);
}

/* ============================================================
   SYSTEM CARDS
   ============================================================ */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.system-card {
  background: rgba(22, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(1.75rem, 3vw, 2.2rem);
  transition: background var(--dur) var(--ease);
}
.system-card:hover { background: rgba(0,168,157,0.08); }

.system-icon {
  width: 40px; height: 40px;
  color: var(--teal);
  opacity: 0.6;
  margin-bottom: 1.2rem;
  transition: opacity var(--dur);
}
.system-card:hover .system-icon { opacity: .9; }

.system-status {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}
.status-live { color: var(--live); }
.status-dot {
  width: 5px; height: 5px;
  background: var(--live);
  border-radius: 50%;
  animation: statusPulse 2.5s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(34,211,144,.45); }
  50%    { box-shadow: 0 0 0 5px rgba(34,211,144,0); }
}

.system-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--text);
  margin-bottom: 0.7rem;
  line-height: 1.35;
}
.system-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.system-card:hover .system-title a,
.system-title a:hover {
  color: var(--teal);
  background-size: 100% 1px;
}
.system-desc { font-size: 0.9375rem; line-height: 1.75; }

/* Placeholder / coming-soon cards */
.system-card-placeholder {
  border-style: dashed;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.015);
}
.system-status-soon {
  font-family: var(--f-sans);
  font-size: .6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .7rem;
}
.system-title-muted {
  color: var(--text-muted);
}

.system-card-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.1rem;
}

.system-demo-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.15rem;
  font-family: var(--f-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--teal);
  background: transparent;
  border: none;
  border-radius: 5px;
  position: relative;
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur);
}
.system-demo-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  padding: 1px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.system-demo-link:hover {
  box-shadow: 0 0 22px rgba(0,168,157,.25);
  color: #fff;
  transform: translateY(-1px);
}
.system-demo-link .rec-dot {
  width: 7px; height: 7px;
  background: #e53e3e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(229,62,62,.6);
  animation: recPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes recPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px rgba(229,62,62,.6); }
  50%     { opacity: .4; box-shadow: 0 0 2px rgba(229,62,62,.3); }
}

/* ── Skills Lab: card dates & actions ─────────────────────── */
.skill-date {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.skill-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.skill-btn {
  font-size: .82rem !important;
  padding: .55rem 1.1rem !important;
}

/* ── Skill Detail Page ───────────────────────────────────── */
.skill-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 768px) {
  .skill-wrap { padding: 0 1.25rem; }
}
.skill-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.skill-hero-sep { opacity: 0.4; }
.skill-hero-cmd {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--teal);
  background: rgba(0,168,157,0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.skill-hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* X-Ray transparency panel */
.skill-xray {
  background: rgba(22, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}
.skill-xray-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.skill-xray-title svg { color: var(--teal); flex-shrink: 0; }
.skill-xray-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.skill-xray-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.skill-xray-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.xray-safe {
  background: var(--live);
  box-shadow: 0 0 6px rgba(34,211,144,0.4);
}
.xray-note {
  background: #F5A623;
  box-shadow: 0 0 6px rgba(245,166,35,0.35);
}
.skill-xray-label {
  color: var(--text-muted);
  min-width: 110px;
}
.skill-xray-value {
  color: var(--text);
  font-weight: 500;
}

/* Skill steps (detail page) */
.post-body .skill-steps,
.skill-steps {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
  counter-reset: skill-step;
}
.post-body .skill-steps li,
.skill-steps li {
  counter-increment: skill-step;
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0.6rem 1rem;
  align-items: start;
  margin-bottom: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.skill-steps li:last-child { border-bottom: none; }
.skill-steps li::before {
  content: counter(skill-step) ".";
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}
.post-body .skill-steps li strong,
.skill-steps li strong {
  display: block;
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.skill-steps li span {
  display: block;
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  grid-column: 2;
}

/* Skill table (detail page) */
.post-body .skill-table,
.skill-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  background: rgba(22, 24, 26, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.skill-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,168,157,0.05);
}
.skill-table td {
  padding: 0.85rem 1.2rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
}
.skill-table tr:last-child td { border-bottom: none; }

/* Skill download CTA (bottom of detail page) */
.skill-cta {
  background: rgba(0,168,157,0.06);
  border: 1px solid var(--border-acc);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3rem;
  text-align: center;
}
.skill-cta h3 {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.skill-cta p {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.skill-cta code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  color: var(--teal);
}

@media (max-width: 600px) {
  .skill-hero-meta { flex-wrap: wrap; gap: 0.4rem 0.75rem; }
  .skill-xray-grid { grid-template-columns: 1fr; }
}

/* Studio demos row (index.php systems section) */
.studio-demos {
  text-align: center;
  margin-top: 2.5rem;
}
.studio-demos-label {
  display: block;
  font-family: var(--f-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.studio-demos-links {
  display: inline-flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.studio-demo-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  font-family: var(--f-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--teal);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 5px;
  position: relative;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur);
}
.studio-demo-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  padding: 1px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.studio-demo-link:hover {
  color: #fff;
  box-shadow: 0 0 22px rgba(0,168,157,.25);
  transform: translateY(-1px);
}
.studio-demo-link .rec-dot {
  width: 7px; height: 7px;
  background: #e53e3e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(229,62,62,.6);
  animation: recPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.system-read-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  font-family: var(--f-sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--text-body);
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur), background var(--dur);
}
.system-read-link:hover {
  border-color: rgba(255,255,255,.3);
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.system-read-link svg { flex-shrink: 0; opacity: .6; transition: opacity var(--dur); }
.system-read-link:hover svg { opacity: 1; }

/* ============================================================
   ABOUT BRIDGE
   ============================================================ */
#about-bridge { background: var(--bg); }
.bridge-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.bridge-text h2  { margin-top: .3rem; margin-bottom: 1.4rem; }
.bridge-text p   { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.3rem; }

.bridge-timeline { display: flex; flex-direction: column; }

.bridge-step {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}
.bridge-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10px; top: 22px; bottom: 0;
  width: 1px;
  background: var(--border);
}

.bridge-dot {
  width: 21px; height: 21px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
  transition: border-color var(--dur);
}
.bridge-dot-inner {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: background var(--dur);
}
.bridge-step.active .bridge-dot       { border-color: var(--teal); }
.bridge-step.active .bridge-dot-inner { background: var(--teal); }

.bridge-label {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: .28rem;
}
.bridge-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: .38rem;
}
.bridge-desc { font-size: 0.9375rem; line-height: 1.72; }

/* ============================================================
   LAB / BLOG PREVIEW
   ============================================================ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.feed-card {
  background: rgba(22, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(1.75rem, 3vw, 2.2rem);
  display: block;
  transition: background var(--dur) var(--ease);
}
.feed-card:hover { background: rgba(0,168,157,0.08); }

.feed-date {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.feed-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.38;
  margin-bottom: 0.7rem;
}
.feed-text { font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1.4rem; }
.feed-more {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  display: flex; align-items: center; gap: .45rem;
}

.feed-placeholder {
  background: rgba(22, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(1.75rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  min-height: 220px;
}
.feed-placeholder p { font-size: .9rem; line-height: 1.7; color: var(--text-muted); }
.feed-placeholder a { color: var(--teal); }

/* ============================================================
   CTA BAND — like original's dark testimonials section
   ============================================================ */
#cta-band {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: clamp(5rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-band::before {
  content: '';
  position: absolute;
  width: 600px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,157,.07) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  z-index: 3;
  pointer-events: none;
}
#cta-band .wrap { position: relative; z-index: 4; }
#cta-band .overline { justify-content: center; }
#cta-band h2 { margin: .4rem auto 1.1rem; }
#cta-band p {
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col ul a {
  font-size: 0.9375rem;
  color: var(--text-body);
  transition: color var(--dur);
}
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-copy, .footer-tagline {
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-tagline {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .systems-grid  { grid-template-columns: repeat(2, 1fr); }
  .feed-grid     { grid-template-columns: repeat(2, 1fr); }
  .bridge-inner  { gap: 3.5rem; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-stats { gap: 1rem; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .systems-grid  { grid-template-columns: 1fr; }
  .feed-grid     { grid-template-columns: 1fr; }
  .bridge-inner  { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header-split { flex-direction: column; align-items: flex-start; }

  #nav { padding: 1.1rem 1.25rem; }
  #nav.scrolled { padding: .75rem 1.25rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 1.25rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; }
  .page-hero-stats { flex-wrap: wrap; }
}

/* ============================================================
   PAGE HERO — inner pages
   ============================================================ */
.page-hero {
  padding: clamp(7rem, 10vw, 9rem) 0 clamp(4rem, 6vw, 5.5rem);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* ── SECTION VIDEO BACKGROUND (reusable) ────────────────── */
.section-has-video {
  position: relative;
  overflow: hidden;
}
.section-has-video .wrap {
  position: relative;
  z-index: 2;
}
.section-has-video .section-header { position: relative; z-index: 2; }
.section-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(6, 8, 9, 0.93) 0%,
    rgba(6, 8, 9, 0.82) 50%,
    rgba(6, 8, 9, 0.91) 100%
  );
  pointer-events: none;
}

/* ── RULE: cards inside a video-background section must be
   semi-transparent so the video reads through the grid.
   Applies automatically to every known card class when nested
   under .section-has-video. Do not add opaque backgrounds to
   cards in these sections; extend this selector list instead. */
.section-has-video .training-outcome-card,
.section-has-video .training-foryou-card,
.section-has-video .process-step,
.section-has-video .service-card,
.section-has-video .system-card,
.section-has-video .feed-card {
  background: rgba(22, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}
.section-has-video .training-outcome-card:hover,
.section-has-video .training-foryou-card:hover,
.section-has-video .process-step:hover,
.section-has-video .service-card:hover,
.section-has-video .system-card:hover,
.section-has-video .feed-card:hover {
  background: rgba(0, 168, 157, 0.08);
}

/* Timeline: content must sit above the edge blends */
#timeline.section-has-video .wrap { z-index: 4; }

/* Timeline: blend top into #certs (--bg-surface) and bottom into #origin (--bg-surface) */
#timeline.section-has-video::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, var(--bg-surface), transparent);
  z-index: 3;
  pointer-events: none;
}
#timeline.section-has-video::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg-surface), transparent);
  z-index: 3;
  pointer-events: none;
}

/* Video background for about page hero */
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(6, 8, 9, 0.95) 0%,
    rgba(6, 8, 9, 0.86) 50%,
    rgba(6, 8, 9, 0.94) 100%
  );
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; width: 100%; }

/* Bottom fade — dissolves page hero into the section below */
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,157,.07) 0%, transparent 70%);
  right: -10%; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}
.page-hero h1 { margin-top: .3rem; margin-bottom: 1.2rem; }
.page-hero-lead {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 600px;
}
.page-hero-stats {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0.85rem 1.4rem;
  border-top: none;
  border-radius: 8px;
}
.page-hero-stat {
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--text-body);
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}
.page-hero-stat strong {
  display: inline-block;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

/* ============================================================
   ADOBE STOCK BANNER
   ============================================================ */
/* Adobe Stock — full-width gradient bar */
.adobe-stock-section {
  padding: 0;
  width: 100%;
}
.adobe-banner {
  background: var(--grad);
  width: 100%;
}
.adobe-banner .wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.adobe-icon {
  width: 160px;
  height: auto;
  flex-shrink: 0;
}
.adobe-strip-icon {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

.adobe-banner-body { min-width: 0; flex: 1; }
.adobe-banner-desc {
  font-size: .9375rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.adobe-banner-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
}
.adobe-banner-stat strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .2rem;
}
.adobe-banner-stat span {
  font-size: .8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

.adobe-banner-links {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.adobe-banner-links .btn {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  font-size: .8125rem;
  padding: .6rem 1.2rem;
}
.adobe-banner-links .btn:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: none;
}

/* Compact adobe strip — index about-bridge */
.adobe-strip {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 1.5rem;
}
.adobe-strip-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 1px; /* optical nudge so the icon caps align with the "Adobe Stock Contributor" title */
}
.adobe-strip-text {
  font-size: .8125rem;
  color: var(--text-body);
  line-height: 1.5;
}
.adobe-strip-text strong {
  display: block;
  font-family: var(--f-sans);
  font-weight: 600;
  color: var(--text);
  margin-bottom: .1rem;
}
.adobe-strip-links {
  display: flex;
  gap: .75rem;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center; /* keep links vertically centered even though the strip aligns to the top */
}
.adobe-strip-links a {
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: color var(--dur);
  white-space: nowrap;
}
.adobe-strip-links a:hover { color: var(--blue); }

@media (max-width: 860px) {
  .adobe-banner .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .adobe-icon { width: 110px; }
  .adobe-banner-body { flex: none; width: 100%; }
  .adobe-banner-links {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    gap: .6rem;
  }
  .adobe-banner-links .btn {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: .75rem;
    padding: .7rem 1rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
  }
  .adobe-strip { flex-wrap: wrap; }
  .adobe-strip-links { margin-left: 0; }
}

/* ============================================================
   ORIGIN — about page
   ============================================================ */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.origin-text h2 { margin-top: .3rem; }
.origin-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.origin-body p:last-child { margin-bottom: 0; }

/* ============================================================
   CERTIFICATIONS — about page
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2.5rem;
}
/* Anthropic badge — used once, inline-right of the certs description */
.certs-overline-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.certs-overline-row .overline {
  display: inline;
  margin-bottom: 0;
}
.anthropic-badge {
  display: inline-flex;
  flex-shrink: 0;
}
.anthropic-badge-ring {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0,168,157,0.35);
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
}
.anthropic-badge-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.4rem; font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  user-select: none;
}

.cert-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  padding: 1.75rem 1.5rem;
  transition: background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.cert-card:hover { background: rgba(0,168,157,0.04); }
.cert-card:hover::before { transform: scaleX(1); }

.cert-icon-wrap {
  width: 32px; height: 32px;
  color: var(--teal);
  opacity: .65;
  margin-bottom: 1.2rem;
}
.cert-issuer {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.cert-name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: .45rem;
}
.cert-date {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   STACK GRID — about page
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2.5rem;
}
.stack-cat {
  background: rgba(22, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.75rem 1.6rem;
}
.stack-cat-label {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.stack-tools { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ============================================================
   PROCESS STEPS — about page
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2.5rem;
}
.process-step {
  background: var(--bg-card);
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  position: relative;
}
.process-num {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.process-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.process-desc { font-size: 0.9rem; line-height: 1.72; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6rem;
  align-items: start;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1rem;
  padding: .85rem 1rem;
  transition: border-color var(--dur);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(0,168,157,.5); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-color: var(--bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B68' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  color: var(--text);
}
.form-group select option { background: var(--bg-surface); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-info-block {}
.contact-info-block h3 { margin-bottom: 1rem; }
.contact-info-block > p { font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-item-label {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.contact-item-val { font-size: 1rem; color: var(--text); }
.contact-item-val a { color: var(--teal); transition: opacity var(--dur); }
.contact-item-val a:hover { opacity: .75; }

#form-msg {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: 4px;
  font-size: .9375rem;
  display: none;
}
#form-msg.success { background: rgba(34,211,144,.1); color: var(--live); border: 1px solid rgba(34,211,144,.2); display: block; }
#form-msg.error   { background: rgba(220,80,80,.1);  color: #e07070; border: 1px solid rgba(220,80,80,.2);  display: block; }

/* ============================================================
   CONTACT SUCCESS PANEL
   Shown after successful submission, replaces the form
   ============================================================ */
.contact-success {
  background: linear-gradient(160deg, rgba(0,168,157,0.06) 0%, rgba(31,31,29,0.4) 55%);
  border: 1px solid rgba(0,168,157,0.28);
  border-radius: 6px;
  padding: clamp(2rem, 4vw, 3rem);
  animation: successFadeIn 0.55s var(--ease) both;
  position: relative;
  overflow: hidden;
}
.contact-success::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
@keyframes successFadeIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.success-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0,168,157,0.12);
  border: 1px solid rgba(0,168,157,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 1.6rem;
}
.success-badge svg { width: 36px; height: 36px; }

.success-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .9rem;
}
.success-title [data-success-name] {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.success-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 2.2rem;
  max-width: 56ch;
}

.success-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0;
  margin: 0 0 2.4rem;
}
.success-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1rem 1.2rem;
  background: rgba(6,8,9,0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--dur), background var(--dur);
}
.success-step:hover {
  border-color: rgba(0,168,157,0.35);
  background: rgba(6,8,9,0.5);
}
.success-step-num {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  padding: .35rem .55rem;
  border: 1px solid rgba(0,168,157,0.35);
  border-radius: 2px;
  align-self: flex-start;
}
.success-step-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: .2rem;
}
.success-step-desc {
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Cross-promo: joaoqueiros.com branding portfolio */
.success-plug {
  background: rgba(6,8,9,0.6);
  border: 1px dashed rgba(0,168,157,0.35);
  border-radius: 4px;
  padding: 1.8rem;
  margin-bottom: 1.6rem;
  position: relative;
}
.success-plug-label {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: .7rem;
}
.success-plug-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: .7rem;
}
.success-plug-desc {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.3rem;
}
.success-plug-btn { display: inline-flex; }

.success-footnote {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .success-step { grid-template-columns: 1fr; gap: .6rem; }
}

/* ============================================================
   INNER PAGE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .origin-grid { grid-template-columns: 1fr; gap: 3rem; }
  .certs-grid  { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
}
@media (max-width: 768px) {
  .certs-grid  { grid-template-columns: repeat(2, 1fr); }
  .stack-grid  { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .certs-grid  { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rv { transition: none; }
  .ticker-track { animation: none; }
  .ring-mid { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   BLOG — listing + single post
   ============================================================ */

/* ── Filter tabs ────────────────────────────────────────────── */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.blog-filter-btn {
  font-family: var(--f-sans);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .45rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
  border-color: var(--border-hov);
  color: var(--teal);
  background: rgba(0,168,157,.06);
}
.blog-filter-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ── Blog grid ──────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(31,31,29,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.blog-card:hover { border-color: var(--border-hov); transform: translateY(-3px); }
.blog-card:hover::before { transform: scaleX(1); }
.blog-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}
.blog-cat {
  font-family: var(--f-sans);
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .25rem .65rem;
  border-radius: 3px;
  background: rgba(0,168,157,.1);
  color: var(--teal);
  border: 1px solid rgba(0,168,157,.2);
}
.blog-readtime {
  font-family: var(--f-sans);
  font-size: .8125rem;
  color: var(--text-muted);
}
.blog-date {
  font-family: var(--f-sans);
  font-size: .8125rem;
  color: var(--text-muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.blog-card-title {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: .75rem;
  text-wrap: balance;
}
.blog-card-excerpt {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-cta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-sans);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  transition: gap var(--dur);
  margin-top: auto;
}
.blog-card:hover .blog-card-cta { gap: .75rem; }

.blog-card-placeholder {
  background: rgba(31,31,29,0.3);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  gap: 1rem;
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.7;
}
.blog-card-placeholder a { color: var(--teal); }

/* ── Single post layout ─────────────────────────────────────── */
.post-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-sans);
  font-size: .8125rem;
  color: var(--text-muted);
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--dur); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { opacity: .35; }
.breadcrumb [aria-current="page"] { color: var(--text-body); }

/* Post header */
.post-header {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.post-header .blog-cat { display: inline-flex; margin-bottom: 1.25rem; }
.post-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--f-sans);
  font-size: .875rem;
  color: var(--text-muted);
}
.post-meta-row time { font-variant-numeric: tabular-nums; }
.post-author-inline {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-body);
}
.post-author-inline strong { color: var(--text); }

/* Table of contents */
.post-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.post-toc-title {
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.post-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.post-toc a {
  font-family: var(--f-sans);
  font-size: .9375rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur);
}
.post-toc a:hover { color: var(--teal); }

/* Post body prose */
.post-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-body);
}
.post-body h2 {
  font-size: 1.625rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
  color: var(--text);
}
.post-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
  scroll-margin-top: 5rem;
  color: var(--text);
}
.post-body p { margin-bottom: 1.5rem; }
.post-body p:last-child { margin-bottom: 0; }
.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.5rem; }
.post-body li { margin-bottom: .4rem; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--blue); }
.post-body a.btn { color: #fff; text-decoration: none; }
.post-body a.btn:hover { color: #fff; }

/* Post table (decision-matrix style) */
.post-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.post-table th,
.post-table td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
.post-table th { color: var(--text); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.post-table td { color: var(--text-muted); }
.post-table a { color: var(--teal); }
@media (max-width: 600px) {
  .post-table { font-size: .82rem; }
  .post-table th, .post-table td { padding: .5rem .55rem; }
}
.post-body code {
  font-family: var(--f-mono);
  font-size: .875em;
  background: rgba(0,168,157,.08);
  border: 1px solid rgba(0,168,157,.15);
  border-radius: 3px;
  padding: .15em .4em;
  color: var(--teal);
}
.post-body pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .875rem;
  color: var(--text-body);
}
.post-body blockquote {
  border-left: 3px solid var(--teal);
  padding: .75rem 1.5rem;
  margin: 0 0 1.5rem;
  background: rgba(0,168,157,.04);
  border-radius: 0 4px 4px 0;
  color: var(--text);
  font-style: italic;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* In-post video block */
.post-video {
  position: relative;
  width: 100%;
  height: clamp(220px, 35vw, 380px);
  overflow: hidden;
  border-radius: 10px;
  margin: 2.5rem 0;
}
.post-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,8,9,.35) 0%,
    rgba(6,8,9,.15) 50%,
    rgba(6,8,9,.45) 100%
  );
  pointer-events: none;
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 3.5rem;
}
.author-bio-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}
.author-bio-text h4 { font-size: 1rem; margin-bottom: .15rem; }
.author-bio-label {
  font-family: var(--f-sans);
  font-size: .8125rem;
  color: var(--teal);
  margin-bottom: .5rem;
}
.author-bio-text p {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: .75rem;
}
.author-bio-text a {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.author-bio-text a:hover { color: var(--blue); }

/* Related posts */
.related-section { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.related-section h3 { font-size: 1.125rem; margin-bottom: 1.5rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Post page tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-tag {
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 500;
  padding: .3rem .7rem;
  border-radius: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Blog responsive */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-wrap { padding: 0 1.25rem; }
  .author-bio { flex-direction: column; gap: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TRAINING PAGE
   ============================================================ */

/* ── Is this for you / not for you ─────────────────────────── */
.training-foryou {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.training-foryou-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(1.8rem, 2.5vw, 2.4rem);
  position: relative;
  overflow: hidden;
}
.training-foryou-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.training-foryou-card.is-yes::before { background: var(--grad); }
.training-foryou-card.is-no::before  { background: var(--text-muted); opacity: .5; }
.training-foryou-card h3 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1.6rem;
  line-height: 1.3;
}
.training-foryou-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.training-foryou-card li {
  font-size: .95rem;
  line-height: 1.65;
  padding-left: 1.9rem;
  position: relative;
  color: var(--text-body);
}
.training-foryou-card.is-yes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(0, 168, 157, 0.12);
}
.training-foryou-card.is-no li::before {
  content: '';
  position: absolute;
  left: .5px;
  top: .6rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  opacity: .55;
}

/* ── Outcomes (What you walk away with) ─────────────────────── */
.training-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.training-outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(1.8rem, 2.5vw, 2.4rem);
  transition: border-color var(--dur), transform var(--dur);
}
.training-outcome-card:hover {
  border-color: var(--border-hov);
  transform: translateY(-3px);
}
.training-outcome-icon {
  width: 44px;
  height: 44px;
  color: var(--teal);
  margin-bottom: 1.4rem;
}
.training-outcome-num {
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: .55rem;
}
.training-outcome-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: .9rem;
  line-height: 1.3;
}
.training-outcome-desc {
  font-size: .95rem;
  line-height: 1.72;
}

/* ── Pricing table ──────────────────────────────────────────── */
.training-pricing-intro {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--text-body);
  max-width: 700px;
}
.training-pricing {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.training-pricing-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 2fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur);
}
.training-pricing-row:last-child { border-bottom: 0; }
.training-pricing-row:hover { background: var(--bg-elevated); }
.training-pricing-row.is-header {
  background: var(--bg-surface);
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.training-pricing-row.is-header:hover { background: var(--bg-surface); }
.training-pricing-name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.3;
}
.training-pricing-duration {
  font-size: .9rem;
  color: var(--text-body);
}
.training-pricing-price {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.375rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.training-pricing-price.is-free {
  background: none;
  -webkit-text-fill-color: var(--live);
  color: var(--live);
  font-size: .9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--f-sans);
  font-weight: 700;
}
.training-pricing-for {
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.55;
}
.training-pricing-note {
  margin-top: 1.4rem;
  font-size: .875rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Pricing row variants: popular tier + retainer anchor ──── */
.training-pricing-row.is-popular {
  position: relative;
  background: linear-gradient(180deg, rgba(0,168,214,0.07), rgba(0,168,214,0.02));
  border-left: 2px solid var(--teal);
}
.training-pricing-row.is-popular:hover {
  background: linear-gradient(180deg, rgba(0,168,214,0.1), rgba(0,168,214,0.03));
}
.training-pricing-badge {
  position: absolute;
  top: -.6rem;
  right: 1.5rem;
  font-family: var(--f-sans);
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--teal);
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 0 18px rgba(0,168,214,0.3);
}
.training-pricing-row.is-anchor {
  background: transparent;
  opacity: 0.78;
}
.training-pricing-row.is-anchor:hover { opacity: 1; }
.training-pricing-row.is-anchor .training-pricing-price {
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}
.training-pricing-sub {
  display: block;
  margin-top: .35rem;
  font-family: var(--f-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--text-muted);
}
.training-pricing-meta {
  display: block;
  margin-top: .55rem;
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}
.training-pricing-subhead {
  margin: 2.5rem 0 1rem;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .8rem;
  padding-left: 2px;
}
.training-pricing-subhead:first-of-type { margin-top: 2rem; }
.training-pricing-subhead span {
  font-family: var(--f-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.training-pricing + .training-pricing-subhead { margin-top: 3.2rem; }

/* ── Training process — 4-column variant ───────────────────── */
.training-process.process-steps {
  grid-template-columns: repeat(4, 1fr);
}

/* ── FAQ accordion ──────────────────────────────────────────── */
.training-faq {
  margin-top: 3rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.training-faq details {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color var(--dur);
}
.training-faq details:hover  { border-color: var(--border-acc); }
.training-faq details[open]  { border-color: var(--border-acc); }
.training-faq summary {
  list-style: none;
  padding: 1.35rem 1.7rem;
  padding-right: 3.2rem;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  position: relative;
  transition: color var(--dur);
  line-height: 1.4;
}
.training-faq summary::-webkit-details-marker { display: none; }
.training-faq summary::after {
  content: '+';
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  transition: transform var(--dur), content var(--dur);
}
.training-faq details[open] summary { color: var(--teal); }
.training-faq details[open] summary::after { content: '−'; }
.training-faq-body {
  padding: 0 1.7rem 1.5rem;
  font-size: .9375rem;
  line-height: 1.78;
  color: var(--text-body);
}

/* ── Training responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .training-process.process-steps { grid-template-columns: repeat(2, 1fr); }
  .training-outcomes { grid-template-columns: 1fr; }
  .training-pricing-row {
    grid-template-columns: 1.3fr 1fr 1fr;
    row-gap: .4rem;
  }
  .training-pricing-for {
    grid-column: 1 / -1;
    padding-top: .1rem;
    border-top: 1px dashed var(--border);
    margin-top: .4rem;
    padding-top: .7rem;
  }
  .training-pricing-row.is-header .training-pricing-for { display: none; }
}
@media (max-width: 768px) {
  .training-foryou { grid-template-columns: 1fr; }
  .training-process.process-steps { grid-template-columns: 1fr; }
  .training-pricing-row {
    grid-template-columns: 1fr;
    gap: .55rem;
    padding: 1.4rem 1.4rem;
  }
  .training-pricing-row.is-header { display: none; }
  .training-pricing-for {
    grid-column: auto;
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }
}

/* ── AT-A-GLANCE ANSWER BLOCK (AEO) ────────────────────────
   Self-contained answer paragraph placed near the top of
   primary pages so LLMs and AI search engines have a clean
   citation target. Spans the full .wrap width so it visually
   aligns with the services / systems grids below it. */
#at-a-glance {
  padding-top: 4rem;
  padding-bottom: 1rem;
}
.answer-block {
  width: 100%;
  padding: 1.6rem 0;
  display: flex;
  align-items: stretch;
  gap: 1.6rem;
}
.answer-block-rule {
  flex-shrink: 0;
  width: 1px;
  background: var(--border-acc);
  align-self: stretch;
}
.answer-block-body {
  flex: 1;
  min-width: 0;
}
.answer-block .overline {
  margin-bottom: .6rem;
}
.answer-block h2 {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 .85rem 0;
  letter-spacing: 0;
}
.answer-block p {
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
}
.answer-block strong {
  color: var(--text);
  font-weight: 700;
}
@media (max-width: 720px) {
  #at-a-glance {
    padding-top: 2.5rem;
  }
  .answer-block {
    padding: 1.2rem 0 1.2rem 1.2rem;
  }
  .answer-block p {
    font-size: 0.9375rem;
    line-height: 1.75;
  }
}

/* ── ABOUT — PORTRAIT STAGE ─────────────────────────────────
   Dossier-style portrait treatment. Reuses the same motifs as
   the hero .logo-stage: rotating dashed halos, corner crosshair
   marks, glass badge with pulsing teal dot, teal glow. Wraps a
   rectangular portrait with a terminal-style header and a
   coordinate caption. */
.portrait-stage {
  position: relative;
  display: inline-block;
  margin: 0 0 0 -2rem; /* negative left margin offsets the 2rem padding so the frame sits flush with the H2 above */
  padding: 2rem 2rem 2rem 2rem;
  isolation: isolate;
}
.portrait-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(0, 168, 157, 0.14);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: rotateSlow 60s linear infinite;
}
.portrait-halo.halo-inner {
  width: 340px;
  height: 340px;
  border: 1px dashed rgba(232, 232, 227, 0.05);
  animation-duration: 110s;
  animation-direction: reverse;
}
.portrait-frame {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 157, 0.28);
  background: #060809;
  box-shadow:
    0 30px 70px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 168, 157, 0.05),
    0 0 80px -10px rgba(0, 168, 157, 0.18);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: grayscale(0.2) contrast(1.08) brightness(0.96);
  transition: filter 0.7s ease, transform 1.2s ease;
}
.portrait-stage:hover .portrait-frame img {
  filter: grayscale(0) contrast(1.08) brightness(1);
  transform: scale(1.03);
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 168, 157, 0.08) 100%),
    radial-gradient(ellipse at 75% 25%, transparent 45%, rgba(6, 8, 9, 0.32) 100%);
  pointer-events: none;
  z-index: 2;
}
/* Terminal-style header */
.portrait-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(6, 8, 9, 0.78) 0%, rgba(6, 8, 9, 0) 100%);
  font-family: var(--f-sans, 'Inter', sans-serif);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(232, 232, 227, 0.7);
}
.portrait-header-dot {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 168, 157, 0.7);
  animation: portraitPulse 2.8s ease-in-out infinite;
}
@keyframes portraitPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
/* Bottom glass badge */
.portrait-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.78rem;
  background: rgba(6, 8, 9, 0.62);
  border: 1px solid rgba(0, 168, 157, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  font-family: var(--f-sans, 'Inter', sans-serif);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8e8e3;
  white-space: nowrap;
}
.portrait-badge-dot {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 168, 157, 0.8);
  animation: portraitPulse 2.8s ease-in-out infinite;
}
/* Corner crosshair marks on the frame */
.portrait-cm {
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 4;
  pointer-events: none;
}
.portrait-cm::before,
.portrait-cm::after {
  content: '';
  position: absolute;
  background: var(--teal);
  opacity: 0.6;
}
.portrait-cm::before { width: 1px; height: 100%; left: 0; top: 0; }
.portrait-cm::after  { width: 100%; height: 1px; left: 0; top: 0; }
.portrait-cm.cm-tl { top: 7px; left: 7px; }
.portrait-cm.cm-tr { top: 7px; right: 7px; transform: scaleX(-1); }
.portrait-cm.cm-br { bottom: 7px; right: 7px; transform: scale(-1); }
.portrait-cm.cm-bl { bottom: 7px; left: 7px; transform: scaleY(-1); }
/* Caption */
.portrait-caption {
  position: relative;
  z-index: 2;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--f-sans, 'Inter', sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.portrait-caption strong {
  color: #e8e8e3;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.portrait-coords {
  font-size: 0.5625rem;
  opacity: 0.75;
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.08em;
}
@media (max-width: 720px) {
  .portrait-stage {
    display: flex;
    justify-content: center;
    padding: 1.4rem;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
  }
  .portrait-frame {
    width: 100%;
    max-width: 300px;
  }
  .portrait-frame img { object-position: center 25%; }
  .portrait-halo { width: 300px; height: 300px; }
  .portrait-halo.halo-inner { width: 220px; height: 220px; }
  .portrait-caption { text-align: center; }
}

/* ── ABOUT — AT A GLANCE inside ORIGIN section ─────────────
   When the answer block lives inside the dark origin section
   (not its own section), drop the #at-a-glance padding and
   give it a top margin separator instead. */
#origin .answer-block {
  margin-top: 4rem;
}
@media (max-width: 720px) {
  #origin .answer-block { margin-top: 2.5rem; }
}

/* ── SERVICES — AT A GLANCE inside services-all section ────
   Answer block sits above the services grid, sharing the same
   section background. Give it a bottom margin separator. */
#services-all .answer-block {
  margin-bottom: 4rem;
}
@media (max-width: 720px) {
  #services-all .answer-block { margin-bottom: 2.5rem; }
}


/* ============================================================
   SERVICE DETAIL PAGE — /services/{slug}
   SYSTEM DETAIL PAGE  — /systems/{slug}
   ============================================================ */

/* Breadcrumb inside a page-hero. Mono uppercase label row sitting
   above the overline. */
.breadcrumb--hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}
.breadcrumb--hero a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.breadcrumb--hero a:hover { color: var(--teal); }
.breadcrumb--hero [aria-current="page"] { color: var(--teal); }
.breadcrumb--hero .breadcrumb-sep { color: var(--border); }


/* Deliverables list — clean 2-col grid of check-marked items. */
.svc-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.svc-deliverable {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.svc-deliverable:hover {
  border-color: var(--border-acc);
  transform: translateY(-2px);
}
.svc-deliverable-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--teal);
  margin-top: 2px;
}
.svc-deliverable-body strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .35rem;
}
.svc-deliverable-body p {
  font-family: var(--f-sans);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}
@media (max-width: 820px) {
  .svc-deliverables { grid-template-columns: 1fr; gap: 1rem; }
}


/* Stack tag cloud — centered wrapping flex. */
.svc-stack-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  max-width: 720px;
  margin: 0 auto;
}


/* System detail — meta row in the hero (status, client, category, year) */
.sys-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin-top: 2.2rem;
  padding: 1.2rem 1.6rem;
  border-radius: 12px;
}
.sys-meta-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}
.sys-meta-label {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sys-meta-item strong {
  font-family: var(--f-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  overflow-wrap: break-word;
}
@media (max-width: 720px) {
  .sys-meta-row {
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
    padding: 1rem 1.1rem;
  }
}


/* Long-form prose inside system sections (problem / approach). */
.sys-prose {
  max-width: 760px;
  margin: 0 auto;
}
.sys-prose p {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0 0 1.4rem;
}
.sys-prose p:last-child { margin-bottom: 0; }
.sys-prose strong { color: var(--text); }


/* System outcomes — stat card grid. */
.sys-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.sys-outcome-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.6rem 1rem;
  border-radius: 12px;
  text-align: center;
}
.sys-outcome-card strong {
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sys-outcome-card span {
  font-family: var(--f-sans);
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.5;
}
@media (max-width: 700px) {
  .sys-outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .sys-outcomes-grid { grid-template-columns: 1fr; }
}
.sys-outcome-note {
  max-width: 720px;
  margin: 2.5rem auto 0;
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  text-align: center;
}

/* ============================================================
   INTAKE FORMS (pre-call.php + training-intake.php)
   Extends .form-group system with radio groups, checkbox grids,
   section dividers and a centered single-column layout.
   ============================================================ */
.intake-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.intake-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 2.4rem;
  background: rgba(0,168,214,0.05);
  border: 1px solid rgba(0,168,214,0.22);
  border-left: 2px solid var(--cyan, #00A8D6);
  border-radius: 4px;
  font-family: var(--f-sans);
  font-size: .875rem;
  color: var(--text-body);
}
.intake-meta strong {
  color: var(--text);
  font-weight: 600;
}
.intake-meta-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--teal);
}

.form-long .form-section {
  padding-top: 2.4rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.form-long .form-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.form-long .form-section-label {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
  padding: .3rem .6rem;
  border: 1px solid rgba(0,168,157,0.35);
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.form-long .form-section-title {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 .5rem 0;
}
.form-long .form-section-desc {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.8rem 0;
  max-width: 58ch;
}
.form-long .form-help {
  display: block;
  margin-top: .5rem;
  font-size: .8125rem;
  color: var(--text-muted);
  font-family: var(--f-sans);
}
.form-long .form-optional {
  display: inline-block;
  margin-left: .5rem;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: .75;
}

/* Radio group (cards) */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
}
.radio-group.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.radio-card {
  position: relative;
  display: block;
  padding: 1rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.radio-card:hover {
  border-color: rgba(0,168,157,0.45);
  background: rgba(0,168,157,0.05);
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card-title {
  font-family: var(--f-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: block;
}
.radio-card-desc {
  display: block;
  margin-top: .35rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.radio-card input[type="radio"]:checked + .radio-card-title,
.radio-card.is-selected .radio-card-title {
  color: var(--teal);
}
.radio-card:has(input[type="radio"]:checked),
.radio-card.is-selected {
  border-color: var(--teal);
  background: rgba(0,168,157,0.08);
  box-shadow: inset 0 0 0 1px rgba(0,168,157,0.4);
}

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
}
.checkbox-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
  font-family: var(--f-sans);
  font-size: .9375rem;
  color: var(--text);
}
.checkbox-card:hover {
  border-color: rgba(0,168,157,0.45);
  background: rgba(0,168,157,0.04);
}
.checkbox-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--dur), background var(--dur);
}
.checkbox-card input[type="checkbox"]:checked {
  border-color: var(--teal);
  background: var(--teal);
}
.checkbox-card input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #060809;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-card:has(input[type="checkbox"]:checked) {
  border-color: var(--teal);
  background: rgba(0,168,157,0.08);
}

/* Goal stack (3 numbered input rows) */
.goal-stack {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.goal-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .8rem;
  align-items: center;
}
.goal-num {
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  padding: .6rem 0;
  border: 1px solid rgba(0,168,157,0.35);
  border-radius: 2px;
  background: rgba(0,168,157,0.05);
}
.goal-row input[type="text"] {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1rem;
  padding: .85rem 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur);
}
.goal-row input[type="text"]:focus {
  border-color: rgba(0,168,157,.5);
}

/* Submit bar */
.form-long .form-submit-bar {
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.form-long .form-submit-note {
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 1rem 0 0 0;
  text-align: center;
}

@media (max-width: 600px) {
  .radio-group,
  .radio-group.is-compact { grid-template-columns: 1fr; }
  .checkbox-grid          { grid-template-columns: 1fr; }
  .goal-row               { grid-template-columns: 32px 1fr; gap: .6rem; }
}

/* ============================================================
   TESTIMONIALS SECTION
   Grid starts as single card, scales to 2 or 3 when more ship.
   To add a second/third card later, just duplicate .testimonial-card
   inside .testimonials-grid — the grid reflows automatically.
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  max-width: 720px;
  margin: 3rem auto 0;
}

@media (min-width: 900px) {
  .testimonials-grid:has(.testimonial-card:nth-child(2)) {
    max-width: 1100px;
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid:has(.testimonial-card:nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Centre the section header for the testimonials block
   (the base .section-header has max-width 640px but no auto margin,
   so it sits left-aligned by default). */
#testimonials .section-header {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#testimonials .section-header .overline {
  justify-content: center;
}

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 3.2rem 2.4rem 2rem;
  background: rgba(22, 24, 26, 0.55);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-2px);
}

.testimonial-quote-mark {
  position: absolute;
  top: 1rem;
  left: 1.9rem;
  font-family: var(--f-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.32;
  pointer-events: none;
  user-select: none;
}

.testimonial-quote {
  margin: 0 0 1.9rem;
  padding: 0;
  font-family: var(--f-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  quotes: none;
  border: none;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.testimonial-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.testimonial-name {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.testimonial-title {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testimonial-link {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.testimonial-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.testimonial-note {
  margin: 2.6rem auto 0;
  max-width: 520px;
  text-align: center;
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .testimonial-card { padding: 2.8rem 1.6rem 1.6rem; }
  .testimonial-quote-mark { font-size: 3.4rem; top: 0.8rem; left: 1.3rem; }
  .testimonial-quote { font-size: 1rem; line-height: 1.7; }
}

/* ============================================================
   SYSTEM DEMO (Try It)
   ============================================================ */
.sys-demo {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.4rem;
  border-radius: 16px;
  background: rgba(22, 24, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.sys-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.08) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sys-demo-label {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4rem;
}
.sys-demo-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.sys-demo select,
.sys-demo input[type="text"] {
  flex: 1 1 200px;
  padding: 0.65rem 1rem;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.sys-demo select:focus,
.sys-demo input[type="text"]:focus {
  border-color: var(--teal);
}
.sys-demo select option {
  background: var(--bg-card);
  color: var(--text);
}
.sys-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sys-demo-btn:hover { opacity: 0.85; }

/* Output area */
.sys-demo-output {
  margin-top: 1.2rem;
  padding: 1.4rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 60px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.sys-demo-output.visible {
  opacity: 1;
  transform: translateY(0);
}
.sys-demo-output h4 {
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.6rem;
}
.sys-demo-output p,
.sys-demo-output li {
  font-family: var(--f-sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 0.4rem;
}
.sys-demo-output ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
}
.sys-demo-output ul li::before {
  content: '→ ';
  color: var(--teal);
}
.sys-demo-output strong {
  color: var(--text);
}

/* Score badge for prospecting demo */
.sys-demo-score {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 1.6rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.sys-demo-score.hot  { color: #fff; background: rgba(0,168,157,0.3); border: 1px solid var(--teal); }
.sys-demo-score.warm { color: #fff; background: rgba(0,153,214,0.25); border: 1px solid var(--blue); }
.sys-demo-score.cold { color: var(--text-muted); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.sys-demo-score.skip { color: var(--text-muted); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.sys-demo-verdict {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Chat UI for Camille demo */
.sys-demo-chat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sys-demo-chat-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.sys-demo-chat-prompt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sys-demo-chat-prompt:hover {
  border-color: var(--teal);
  background: rgba(0,168,157,0.06);
}
.sys-demo-chat-prompt.active {
  border-color: var(--teal);
  background: rgba(0,168,157,0.1);
}
.sys-demo-chat-response {
  padding: 1.2rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--f-sans);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-body);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.sys-demo-chat-response.visible {
  opacity: 1;
  transform: translateY(0);
}
.sys-demo-chat-response .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--teal);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.7s step-end infinite;
}
@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* Disclaimer */
.sys-demo-disclaimer {
  margin-top: 1rem;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .sys-demo { padding: 1.6rem 1.2rem; }
  .sys-demo-row { flex-direction: column; }
  .sys-demo select,
  .sys-demo input[type="text"] { flex: 1 1 100%; }
}

/* Skip-to-content (a11y) */
.skip-link{position:absolute;top:-100%;left:1rem;z-index:10000;padding:.75rem 1.5rem;background:var(--teal);color:#fff;font-family:var(--f-sans);font-weight:600;font-size:.875rem;border-radius:4px;text-decoration:none;transition:top .2s}
.skip-link:focus{top:1rem}
