/* Defentect.AI — shared block CSS
 * Styles for the editable atomic blocks (ai-*) that emit class names not
 * covered by the per-page stylesheets (ai-home.css, ai-platform.css, etc.).
 * Loaded on every /ai page alongside the per-page CSS.
 */

/* ============================================================
 * WORDPRESS BLOCK ALIGNMENT — force full-bleed for the new editable
 * atomic AI blocks (wp-block-defentect-ai-*). Without this they get
 * constrained to the default content-width on the frontend AND clipped
 * to a narrow column in the block editor canvas.
 * ============================================================ */
[class*="wp-block-defentect-ai-"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
[class*="wp-block-defentect-ai-"] > *:first-child { margin-top: 0; }
[class*="wp-block-defentect-ai-"] > *:last-child { margin-bottom: 0; }

/* Editor canvas alignment — strip the default content-width clamp
 * inside our blocks so the editor preview matches the live page width. */
.editor-styles-wrapper [class*="wp-block-defentect-ai-"],
.block-editor-block-list__layout [class*="wp-block-defentect-ai-"] {
    max-width: none !important;
    margin: 0 !important;
}

/* The block editor wraps each top-level block in a .wp-block element
 * that's content-width clamped. For full-width AI blocks we let them
 * bleed to the canvas edge. */
.is-root-container > .wp-block[data-align="full"],
.block-editor-block-list__layout > .wp-block[data-align="full"] {
    max-width: none !important;
    width: 100% !important;
}

/* ============================================================
 * AI Body Section (wrapper for ai-section block)
 * ============================================================ */
.ai-body-section { position: relative; }
.ai-body-section .section-inner { margin: 0 auto; padding: 0 36px; }
.ai-section-body { margin-top: 24px; }
.ai-section-body > * + * { margin-top: 24px; }

/* ============================================================
 * AI Heading (standalone)
 * ============================================================ */
.ai-heading { color: var(--ice); font-family: 'Sora', sans-serif; font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; }
.ai-heading--h1 { font-size: clamp(48px, 5.5vw, 84px); line-height: 1.0; letter-spacing: -0.045em; }
.ai-heading--h2 { font-size: clamp(40px, 4.8vw, 64px); }
.ai-heading--h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.02em; }
.ai-heading--h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.ai-heading .accent {
  font-weight: 500;
  background: linear-gradient(135deg, var(--azure) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
 * AI Nav Card Grid (inter-page link cards at bottom of pages)
 * ============================================================ */
.ai-nav-card-section { padding: 64px 0; border-top: 1px solid var(--hairline); }
.ai-nav-card-section .section-inner { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.ai-nav-card-grid { display: grid; gap: 24px; }
.ai-nav-card {
  display: block;
  padding: 32px 28px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.ai-nav-card:hover {
  border-color: var(--azure);
  background: rgba(91, 142, 255, 0.04);
}
@media (max-width: 720px) {
  .ai-nav-card-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
 * AI Divider
 * ============================================================ */
.ai-divider { width: 100%; }

/* ============================================================
 * AI CTA Banner
 * ============================================================ */
.ai-cta-banner { position: relative; z-index: 1; }
.ai-cta-banner .section-inner { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.ai-cta-banner .cta-row { margin-top: 40px; }

/* ============================================================
 * Leadership cards (Company page)
 * ============================================================ */
.leader-card {
  background: rgba(8,12,24,0.6);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
  color: var(--ice);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s, background 0.2s;
}
.leader-card:hover { border-color: var(--hairline-strong); background: rgba(8,12,24,0.75); }
.leader-portrait {
  width: 140px; height: 180px;
  background: var(--deep);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.leader-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader-body { min-width: 0; }
.leader-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.leader-name {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ice);
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.leader-tenure {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.leader-bio {
  position: relative;
}
.leader-bio p {
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 300;
  margin: 0;
  max-height: 6.8em;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.leader-bio.is-open p { max-height: 1200px; }
.leader-bio-toggle {
  background: transparent;
  border: none;
  color: var(--azure);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: underline;
}
.leader-bio-toggle:hover { color: var(--cyan); }

@media (max-width: 720px) {
  .leader-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .leader-portrait { width: 100%; max-width: 200px; height: 240px; margin: 0 auto; }
}

/* ============================================================
 * Press releases (Resources page)
 * ============================================================ */
.press-release {
  background: rgba(8,12,24,0.5);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px 28px;
  color: var(--ice);
  transition: border-color 0.2s, background 0.2s;
}
.press-release:hover { border-color: var(--hairline-strong); background: rgba(8,12,24,0.7); }
.press-release-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--azure);
  margin-bottom: 12px;
}
.press-release-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ice);
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.press-release-body {
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 300;
  margin: 0 0 14px 0;
}
.press-release-link {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--azure);
  text-decoration: none;
}
.press-release-link:hover { color: var(--cyan); }

/* ============================================================
 * Reference cards (Resources page)
 * ============================================================ */
.reference-card {
  background: rgba(8,12,24,0.6);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px;
  color: var(--ice);
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.reference-card:hover { border-color: var(--hairline-strong); }
.reference-card--highlight {
  background: linear-gradient(180deg, rgba(91,142,255,0.10), rgba(91,142,255,0.02));
  border-color: rgba(91,142,255,0.32);
}
.reference-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.reference-card-subtitle {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ice);
  margin: 0 0 12px 0;
  line-height: 1.25;
}
.reference-card-body {
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 300;
  margin: 0 0 20px 0;
  flex: 1;
}
.reference-card-specs {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin: 0;
}
.reference-card-specs .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 6px 0;
  align-items: baseline;
  border-bottom: 1px solid rgba(165,195,255,0.04);
}
.reference-card-specs .row:last-child { border-bottom: 0; }
.reference-card-specs dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.reference-card-specs dd {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--text);
  margin: 0;
}
.reference-card-specs dd a { color: var(--azure); }
.reference-card-specs dd a:hover { color: var(--cyan); }

/* ============================================================
 * Briefing form (Demo page)
 * ============================================================ */
.ai-briefing-form { padding: 80px 0; }
.ai-briefing-form .section-inner { max-width: 880px; margin: 0 auto; padding: 0 36px; }
.ai-form {
  background: rgba(8,12,24,0.5);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}
.ai-form-row { margin-bottom: 20px; }
.ai-form-row label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.ai-form-row label .req { color: var(--critical); }
.ai-form-row input,
.ai-form-row textarea {
  width: 100%;
  background: #0c1224;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ice);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.ai-form-row input:focus,
.ai-form-row textarea:focus { border-color: var(--azure); }
.ai-form-row textarea { resize: vertical; min-height: 120px; }
.ai-form-row input::placeholder,
.ai-form-row textarea::placeholder { color: var(--text-faint); }

.ai-form button[type="submit"] {
  width: 100%;
  margin-top: 12px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--azure) 0%, var(--azure-deep) 100%);
  color: var(--void);
  border: none;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ai-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(91,142,255,0.55);
}
.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.form-status--ok {
  background: rgba(74,222,128,0.10);
  border: 1px solid rgba(74,222,128,0.25);
  color: var(--ice);
}
.form-status--err {
  background: rgba(255,84,118,0.10);
  border: 1px solid rgba(255,84,118,0.25);
  color: var(--ice);
}

/* ============================================================
 * section-head-meta (industry-deep left/right meta header)
 * Already used by static designs but make sure the meta-left/right
 * align nicely in the new editable block markup.
 * ============================================================ */
.section-head-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 16px;
}
.section-head-meta .meta-right { color: var(--text-muted); }

/* ============================================================
 * AI PAGE TIGHTEN LAYER
 * Proportional ~25% scale-down of typography and spacing so the
 * AI pages "land" the way they did at 75% browser zoom. Every
 * number is updated in place — no transform/zoom filter.
 * Loaded LAST in ai-blocks.css so these win over the per-page CSS.
 * ============================================================ */

/* HERO ------------------------------------------------------- */
.hero { padding: 80px 0 32px; }
.hero-inner { gap: 56px; padding: 0 28px; max-width: 1280px; }
.hero-tag {
  padding: 6px 14px;
  margin-bottom: 26px;
  font-size: 10px;
  gap: 10px;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: clamp(36px, 4.1vw, 63px);
  margin-bottom: 22px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.5;
  max-width: 60ch;
  margin-bottom: 30px;
}

/* HERO CARD (pull-quote variant) ----------------------------- */
.hero-card { padding: 24px 24px 22px; border-radius: 14px; }
.hero-card-meta { font-size: 9px; margin-bottom: 18px; padding-bottom: 14px; }
.pull-quote { font-size: 16px; line-height: 1.45; margin-bottom: 18px; }
.attr-name { font-size: 12px; }
.attr-role { font-size: 9px; }
.attr-badge { font-size: 8px; padding: 3px 8px; }

/* ORBITAL STRIP ---------------------------------------------- */
.orbital { padding: 0; }
.orbital-inner {
  padding: 18px 32px;
  max-width: 1280px;
  gap: 0;
}
.orbital-cell { padding: 4px 0; }
.orbital-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.orbital-num {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* SECTION ---------------------------------------------------- */
section { padding: 84px 0; }
.section-inner { padding: 0 28px; max-width: 1280px; }
.section-head { margin-bottom: 56px; }
.section-eyebrow {
  font-size: 10px;
  padding: 5px 13px;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 60px);
  max-width: 24ch;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.section-head .sub {
  font-size: 21px;
  line-height: 1.55;
  max-width: 64ch;
  color: #cdd5e3;
}

/* INDUSTRY CARDS --------------------------------------------- */
.ind-grid { gap: 20px; }
.ind-card {
  padding: 26px 26px;
  border-radius: 16px;
  grid-template-columns: 1fr auto;
  gap: 16px;
}
.ind-tag {
  font-size: 11px;
  padding: 5px 12px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.ind-card h4 {
  font-size: 21px;
  line-height: 1.22;
  margin: 0 0 12px 0;
}
.ind-card p {
  font-size: 16.5px;
  line-height: 1.55;
  color: #cdd5e3;
}
.ind-arrow {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

/* CAPABILITY CARDS ------------------------------------------- */
.cap-grid { gap: 20px; }
.cap-card {
  padding: 30px 28px;
  border-radius: 16px;
}
.cap-num {
  font-size: 11px;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}
.cap-card h3 {
  font-size: 22px;
  line-height: 1.22;
  margin: 0 0 12px 0;
}
.cap-card p {
  font-size: 16.5px;
  line-height: 1.55;
  color: #cdd5e3;
}

/* PARTNER CARDS ---------------------------------------------- */
.partners-grid, .partners-grid-home { gap: 20px; }
.partner-card { padding: 26px 26px; border-radius: 16px; }
.partner-card-tag {
  font-size: 11px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.partner-card-name {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 4px 0;
}
.partner-card-subtitle {
  font-size: 12px;
  margin-bottom: 14px;
}
.partner-card-body {
  font-size: 16.5px;
  line-height: 1.55;
  color: #cdd5e3;
}
/* Don't override .partner-logo-plate — the original CSS in ai-home.css
 * and ai-partners.css sets plate height: 64px and img height: 48px, which
 * keeps logos appropriately small on a white plate. Overriding here breaks
 * that and lets the natural PNG pixel size show through. */

/* INDUSTRY-DEEP ---------------------------------------------- */
.industry-deep { padding: 76px 0; }
.industry-deep .section-head { margin-bottom: 18px; }
.section-head-meta {
  font-size: 10px;
  margin-bottom: 12px;
  gap: 18px;
}
.industry-deep h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.section-lede {
  font-size: 22px;
  line-height: 1.55;
  max-width: 64ch;
  margin-bottom: 36px;
  color: #cdd5e3;
}
.industry-deep-grid {
  grid-template-columns: 2fr 1fr;
  gap: 36px;
}
.industry-deep-cases { gap: 0; }
.industry-case {
  padding: 16px 0;
  gap: 14px;
  grid-template-columns: 44px 1fr;
}
.industry-case-num {
  font-size: 12px;
  line-height: 1.4;
}
.industry-case h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px 0;
}
.industry-case p {
  font-size: 18px;
  line-height: 1.6;
  color: #cdd5e3;
}
.industry-deep-deploy {
  padding: 24px 26px;
  border-radius: 14px;
}
.industry-deep-deploy-label {
  font-size: 12px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.industry-deep-deploy .row {
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 8px 0;
}
.industry-deep-deploy dt {
  font-size: 11px;
  letter-spacing: 0.07em;
}
.industry-deep-deploy dd {
  font-size: 15px;
  margin: 0;
  color: #cdd5e3;
}

/* BUTTONS ---------------------------------------------------- */
.btn {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 100px;
}
.cta-row { gap: 10px; }

/* DEMO CTA --------------------------------------------------- */
.demo { padding: 80px 0 96px; }
.demo-card-outer { padding: 0 28px; max-width: 1440px; margin: 0 auto; }
.demo-card {
  padding: 56px 56px;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  align-items: center;
}
.demo-tag {
  font-size: 11px;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}
/* High-specificity h2 override so .demo h2 in ai-home.css doesn't win. */
section.demo .demo-card h2,
.demo .demo-card h2 {
  font-size: clamp(32px, 3.8vw, 56px) !important;
  line-height: 1.05 !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.025em !important;
  max-width: none !important;
}
.demo .lede,
.demo-card .lede {
  font-size: 19px !important;
  line-height: 1.55 !important;
  margin-bottom: 28px !important;
  max-width: 50ch !important;
}
.demo-actions { gap: 10px; }
.checklist {
  padding: 22px 22px;
  border-radius: 16px;
}
.checklist-head {
  font-size: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
}
.checklist li {
  font-size: 17px;
  margin-bottom: 12px;
  color: #cdd5e3;
}
.checklist-head { font-size: 11px; }

/* NAV / UTILITY / FOOTER (shell elements) -------------------
 * Intentionally NOT tightened. The top nav and utility bar use
 * the per-page CSS sizes from ai-home.css / ai-*.css so the brand
 * chrome stays at its designed size. The tighten layer only
 * affects body content. */

/* NAV CARDS (inter-page link cards) ------------------------- */
.ai-nav-card-section { padding: 56px 0; }
.ai-nav-card { padding: 28px 26px; border-radius: 16px; }
.ai-nav-card-grid { gap: 20px; }
.ai-nav-card > div:nth-child(1) { font-size: 11px !important; } /* eyebrow */
.ai-nav-card > div:nth-child(2) { font-size: 22px !important; line-height: 1.2 !important; } /* title */
.ai-nav-card > div:nth-child(3) { font-size: 16px !important; line-height: 1.55 !important; color: #cdd5e3 !important; }

/* CTA BANNER ------------------------------------------------- */
.ai-cta-banner { padding: 88px 0 100px; }
.ai-cta-banner .cta-row { margin-top: 30px; }

/* STAT LINE -------------------------------------------------- */
.ai-stat-line-section { padding: 0 !important; }
.stat-cell { padding: 28px 32px; }
.stat-cell-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.stat-cell-value {
  font-size: 24px;
  line-height: 1.25;
  min-height: calc(2 * 24px * 1.25); /* always 2 lines tall, regardless of text length */
  display: flex;
  align-items: center;
}

/* Tighten gap when a normal <section> follows the stat-line. The stat-line
 * has zero vertical padding, so the next section's 84px top padding feels
 * like dead space. Drop it (and any inner anchor-wrapped section) to 28px. */
.ai-stat-line-section + section { padding-top: 0 !important; padding-bottom: 0 !important; }
.ai-stat-line-section + section > .ai-body-section,
.ai-stat-line-section + section > section.ai-body-section,
.ai-stat-line-section + .ai-body-section { padding-top: 28px !important; }

/* PRESS RELEASE --------------------------------------------- */
.press-release {
  padding: 32px 36px;
  border-radius: 16px;
  margin: 0 0 18px 0;
}
.press-release-date {
  font-size: 11.5px;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}
.press-release-title {
  font-size: 26px;
  margin: 0 0 16px 0;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.press-release-body {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  color: #cdd5e3;
}
.press-release-link {
  font-size: 15px;
  font-weight: 600;
}

/* REFERENCE CARD -------------------------------------------- */
.reference-card { padding: 22px; border-radius: 16px; }
.reference-card-tag {
  font-size: 11px;
  margin-bottom: 12px;
  letter-spacing: 0.07em;
}
.reference-card-subtitle {
  font-size: 20px;
  margin: 0 0 12px 0;
  line-height: 1.22;
}
.reference-card-body {
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0 0 16px 0;
  color: #cdd5e3;
}
.reference-card-specs { padding-top: 14px; }
.reference-card-specs .row {
  grid-template-columns: 110px 1fr;
  padding: 5px 0;
}
.reference-card-specs dt { font-size: 10px; }
.reference-card-specs dd { font-size: 13.5px; }

/* LEADERSHIP ------------------------------------------------- */
.leader-card {
  display: grid;
  padding: 36px;
  gap: 36px;
  grid-template-columns: 200px 1fr;
  align-items: start;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: rgba(8,12,24,0.5);
}
.leader-portrait {
  width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--deep);
}
.leader-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leader-role {
  font-size: 11px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.leader-name {
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 4px 0;
}
.leader-tenure {
  font-size: 11px;
  margin-bottom: 16px;
}
.leader-bio p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  max-height: none;
}
.leader-bio { max-height: none; overflow: visible; }
.leader-bio-toggle { display: none; }

/* Empty-portrait fallback: when no headshot is uploaded, collapse the
 * portrait column so the bio body takes the full card width instead of
 * being squished into 112px. */
.leader-card--no-portrait { grid-template-columns: 1fr !important; }
.leader-portrait--empty { display: none; }

/* Leadership grid: cards inside the wp:group ai-leadership-grid wrapper
 * should sit 3-up on desktop with consistent spacing, not stack full-width.
 * WP wraps children in .wp-block-group__inner-container, so we target that. */
.ai-leadership-grid {
  max-width: 1280px !important;
  margin: 32px auto 0 !important;
  padding: 0 28px !important;
}
.ai-leadership-grid > .wp-block-group__inner-container,
.ai-leadership-grid > div {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
  max-width: none !important;
}
/* On narrow viewports collapse to a single-column inside the card too. */
@media (max-width: 760px) {
  .leader-card { grid-template-columns: 1fr !important; gap: 24px !important; padding: 24px !important; }
  .leader-portrait { width: 100% !important; max-width: 280px; margin: 0 auto; }
}

/* PARTNER ROW (deep dive) ----------------------------------- */
.partner-rows { gap: 28px; }
/* When partner-row blocks are stacked directly inside the ai-section body
 * (no explicit .partner-rows wrapper), give them the same vertical gap as
 * the original layout used. */
.ai-section-body > .partner-row + .partner-row { margin-top: 28px; }
.partner-row { gap: 18px; }
.partner-graphic {
  padding: 28px 24px 22px;
  min-height: 280px;
  border-radius: 12px;
}
.partner-graphic-index { font-size: 11px; top: 18px; right: 22px; letter-spacing: 0.16em; }

/* FORM ------------------------------------------------------- */
.ai-briefing-form { padding: 70px 0; }
.ai-briefing-form .section-inner { max-width: 720px; padding: 0 28px; }
.ai-form {
  padding: 26px;
  border-radius: 12px;
  margin-top: 28px;
}
.ai-form-row { margin-bottom: 16px; }
.ai-form-row label {
  font-size: 10px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.ai-form-row input,
.ai-form-row textarea {
  padding: 11px 13px;
  font-size: 14.5px;
  border-radius: 7px;
}
.ai-form-row textarea { min-height: 96px; }
.ai-form button[type="submit"] {
  padding: 13px 22px;
  font-size: 14px;
  margin-top: 10px;
}
.form-status {
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* PIPELINE OVERVIEW (flow-section video frame) -------------- */
.flow-section { padding: 0 0 40px; }
.flow-inner { padding: 0 28px; }
.flow-frame { border-radius: 14px; }

/* MEDIA QUERY RESCALE: keep mobile breakpoint behavior --------
 * The per-page CSS already collapses grids at <980px / <720px.
 * Don't override those — the tighten layer above just adjusts
 * spacing/typography at desktop. */

/* ============================================================
 * PROOF LOG (homepage "Proven In Serious Environments" section)
 * Vertical stacked list — meta col (number + sector) + body
 * (name + description). Distinct from the industries grid.
 * ============================================================ */
.proof-log {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  margin-top: 36px;
}
.proof-entry {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 27px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  transition: background 0.2s;
}
.proof-entry:hover { background: rgba(91,142,255,0.02); }
.proof-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proof-entry-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 42px;
  font-weight: 500;
  color: var(--azure);
  line-height: 1;
  letter-spacing: -0.02em;
}
.proof-entry-sector {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.proof-entry-body { display: flex; flex-direction: column; gap: 9px; }
.proof-entry-name {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ice);
  line-height: 1.15;
  margin: 0;
}
.proof-entry-body p {
  font-size: 18px;
  line-height: 1.6;
  color: #cdd5e3;
  font-weight: 300;
  margin: 0;
}
@media (max-width: 740px) {
  .proof-entry { grid-template-columns: 1fr; gap: 12px; }
  .proof-entry-meta { flex-direction: row; align-items: baseline; gap: 16px; }
  .proof-entry-num { font-size: 28px; }
}

/* PROBLEM CARDS (red-tinted) — homepage "The Problem" section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.problem-card {
  background: rgba(255,84,118,0.03);
  border: 1px solid rgba(255,84,118,0.15);
  border-radius: 14px;
  padding: 24px 22px;
  backdrop-filter: blur(15px);
  position: relative;
}
.problem-card-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--critical);
  font-weight: 500;
}
.problem-card-tagline .signal-pulse {
  background: var(--critical);
  box-shadow: 0 0 9px var(--critical);
}
.problem-card-text {
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ice);
}
.problem-bridge {
  margin-top: 48px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ice);
}
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* HERO STAT-BAR (homepage "Protect | Reduce | Respond" inline bar) */
.hero-statbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px auto 0;
}
.hero-statbar-item {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ice-soft);
  font-weight: 300;
  padding: 8px 28px;
  white-space: nowrap;
}
.hero-statbar-divider {
  width: 1px;
  height: 24px;
  background: var(--hairline-strong);
  flex-shrink: 0;
}
