/*
Theme Name: Hadmil Systems
Theme URI: https://hadmilsystems.com
Author: Hadmil Systems
Author URI: https://hadmilsystems.com
Description: Custom theme for Hadmil Systems — Physical-World Intelligence. Clean, minimal design with Roboto Mono typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hadmil
*/

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FAFAFA;
  --bg-alt: #F0F0F0;
  --bg-card: #FFFFFF;
  --border: #E0E0E0;
  --border-light: #EBEBEB;
  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-faint: #AAAAAA;
  --fire: #C04A1A;
  --site: #2A6BAC;
  --font: 'Roboto Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================
   NAV
   ======================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  height: 52px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-brand {
  font-size: 13px; font-weight: 700; color: var(--text);
  letter-spacing: 3px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--bg) !important; background: var(--text);
  padding: 6px 16px; border-radius: 4px;
  font-size: 11px !important; font-weight: 600 !important;
  letter-spacing: 0.5px; transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.8; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-dark {
  display: inline-block; padding: 12px 28px;
  background: var(--text); color: var(--bg);
  border-radius: 4px; font-size: 13px; font-weight: 600;
  font-family: var(--font); letter-spacing: 0.3px;
  transition: opacity 0.2s; border: none; cursor: pointer;
}
.btn-dark:hover { opacity: 0.8; }

.btn-light {
  display: inline-block; padding: 12px 28px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 13px; font-weight: 600; font-family: var(--font);
  letter-spacing: 0.3px; transition: border-color 0.2s; cursor: pointer;
}
.btn-light:hover { border-color: var(--text-muted); }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 20vh; display: flex; align-content: center;
  padding: 32px 0 32px;

}
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 32px;margin-top:10vh;
}
.hero h1 {
  font-size: clamp(32px, 4.8vw, 56px); font-weight: 700; line-height: 1.12;
  letter-spacing: -1.5px; margin-bottom: 28px;	margin-top:10vh;
}
.hero h1 em { font-style: normal; color: var(--text-muted); }
.hero-sub {
  font-size: 15px; line-height: 1.75; color: var(--text-secondary);
  max-width: 480px; font-weight: 400; margin-bottom: 10px;
}
.hero-actions { display: flex; gap: 12px; align-content: center; }

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  display: flex; gap: 64px; padding: 64px 0;
  border-top: 1px solid var(--border);
}
.stat-val {
  font-size: 32px; font-weight: 700; letter-spacing: -1px;
}
.stat-label {
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
  font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 20px 0; margin: 0; }
.section-border { border-top: 1px solid var(--border); }
.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(24px, 3.2vw, 40px); font-weight: 700; line-height: 1.15;
  letter-spacing: -1px; max-width: 620px; margin-bottom: 12px;
}
.section-desc {
  font-size: 14px; line-height: 1.75; color: var(--text-secondary); max-width: 480px;
  margin-bottom: 4;
}

/* ========================================
   PROBLEM
   ======================================== */
.problem-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 14px;
}
.problem-block { margin-bottom: 40px; }
.problem-block:last-child { margin-bottom: 0; }
.problem-block h3 {
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 1px;
}
.problem-block p {
  font-size: 14px; line-height: 1.75; color: var(--text-secondary);
}

/* ========================================
   PIPELINE
   ======================================== */
.pipeline-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 64px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.pipe-step { background: var(--bg-card); padding: 40px 28px; }
.pipe-num {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 20px;
}
.pipe-step h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px;
}
.pipe-step p { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }

/* ========================================
   CORE GRID
   ======================================== */
.core-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 64px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.core-cell { background: var(--bg-card); padding: 36px 32px; }
.core-cell h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.2px; }
.core-cell p { font-size: 13px; line-height: 1.65; color: var(--text-secondary); }

/* ========================================
   PRODUCTS
   ======================================== */
.products-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 48px 40px;
}
.product-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}
.product-tag.fire { color: var(--fire); }
.product-tag.site { color: var(--site); }
.product-card h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px;
}
.product-card > p {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 28px;
}
.feature-list li {
  font-size: 13px; color: var(--text-secondary); padding: 9px 0;
  border-top: 1px solid var(--border-light);
}
.feature-list li:last-child { border-bottom: 1px solid var(--border-light); }

/* ========================================
   TRUST GRID
   ======================================== */
.trust-grid { gap: 20px; margin-top: 16px !important; margin-bottom: 4px !important; }
.trust-grid:first-of-type { margin-top: 32px !important; }
.trust-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px 28px;
}
.trust-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.trust-card p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 0; }

/* Trust card logos */
.trust-logo { margin: 0 0 1rem 0; }
.trust-logo img {
  max-height: 48px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}
.trust-card:hover .trust-logo img { filter: grayscale(0%); opacity: 1; }

/* ========================================
   VERTICALS
   ======================================== */
.verticals-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 64px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.vert-cell { background: var(--bg-card); padding: 32px 24px; }
.vert-cell h4 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.vert-cell p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ========================================
   MODEL
   ======================================== */
.model-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 64px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.model-cell { background: var(--bg-card); padding: 40px 32px; }
.model-cell h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.model-cell p { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }

/* ========================================
   TEAM
   ======================================== */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px;
}
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 40px 32px;
}
.team-initials {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--text-muted); margin-bottom: 20px;
}
.team-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.team-card .role {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.team-card p { font-size: 13px; line-height: 1.65; color: var(--text-secondary); }

/* ========================================
   TRUST
   ======================================== */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 36px; margin-top: 32px; align-items: center;
}
.trust-name {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-faint);
}

/* ========================================
   THESIS
   ======================================== */
.thesis { padding: 160px 0; text-align: center; }
.thesis blockquote {
  font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.25;
  letter-spacing: -0.8px; max-width: 680px; margin: 0 auto 20px;
}
.thesis .attr {
  font-size: 13px; color: var(--text-muted); max-width: 520px;
  margin: 0 auto; line-height: 1.7;
}

/* ========================================
   CTA
   ======================================== */
.cta-section { padding: 80px 0; text-align: center; border-top: none; }
.cta-section h2,
.cta-section .wp-block-heading {
  font-size: clamp(22px, 3vw, 36px); font-weight: 700;
  letter-spacing: -0.8px; margin-bottom: 14px;
}
.cta-section p {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 28px;
  max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.65;
}
.cta-section .wp-block-buttons {
  margin-bottom: 0;
}
.cta-section .contact-line {
  font-size: 12px; color: var(--text-muted); margin-top: 20px; margin-bottom: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  border-top: 1px solid var(--border); padding: 28px 0;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
}
.site-footer p, .site-footer a {
  font-size: 11px; color: var(--text-muted);
}

/* ========================================
   BLOG: SINGLE POST
   ======================================== */
.post-single { padding-top: 120px; padding-bottom: 80px; max-width: 720px; margin: 0 auto; }
.post-header { margin-bottom: 48px; }
.post-meta {
  font-size: 12px; color: var(--text-muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  letter-spacing: 0.5px;
}
.post-meta a { color: var(--text-muted); transition: color 0.2s; }
.post-meta a:hover { color: var(--text); }
.meta-sep { color: var(--text-faint); }
.post-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  line-height: 1.15; letter-spacing: -1px;
}
.post-excerpt {
  font-size: 16px; line-height: 1.7; color: var(--text-secondary);
  margin-top: 16px;
}
.post-featured-image {
  margin-bottom: 48px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.post-featured-image img { width: 100%; height: auto; display: block; }

/* Post content prose */
.post-content { margin-bottom: 64px; }
.post-content p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.post-content h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; letter-spacing: -0.5px; }
.post-content h3 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; }
.post-content h4 { font-size: 15px; font-weight: 700; margin: 28px 0 10px; }
.post-content ul, .post-content ol { margin: 16px 0 20px 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 6px; }
.post-content blockquote {
  border-left: 3px solid var(--border); padding: 4px 0 4px 24px; margin: 28px 0;
  font-size: 16px; color: var(--text-secondary); font-style: italic;
}
.post-content pre {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px;
  padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 24px 0;
}
.post-content code { font-family: var(--font); font-size: 13px; background: var(--bg-alt); padding: 2px 6px; border-radius: 3px; }
.post-content pre code { background: none; padding: 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 24px 0; }
.post-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--text-secondary); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.post-content th { background: var(--bg-alt); font-weight: 700; }
.post-content figure { margin: 28px 0; }
.post-content figcaption { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* Post footer */
.post-footer { border-top: 1px solid var(--border); padding-top: 40px; }
.post-author {
  display: flex; align-items: center; gap: 16px; margin-bottom: 40px;
}
.post-author img { border-radius: 50%; }
.author-name { font-size: 14px; font-weight: 700; }
.author-bio { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.post-navigation {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--border);
}
.nav-prev, .nav-next { max-width: 45%; }
.nav-next { text-align: right; }
.nav-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.post-navigation a { font-size: 14px; font-weight: 600; color: var(--text); transition: color 0.2s; }
.post-navigation a:hover { color: var(--text-secondary); }

/* ========================================
   BLOG: ARCHIVE / LISTING
   ======================================== */
.archive-page { padding-top: 120px; padding-bottom: 80px; }
.archive-header { margin-bottom: 64px; }

.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-2px); }
.post-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image img { transform: scale(1.02); }
.post-card-body { padding: 28px; }
.post-card-title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.3px; margin-bottom: 8px; }
.post-card-title a { color: var(--text); transition: color 0.2s; }
.post-card-title a:hover { color: var(--text-secondary); }
.post-card-excerpt { font-size: 13px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 16px; }
.read-more {
  font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.3px;
  transition: color 0.2s;
}
.read-more:hover { color: var(--text-muted); }

/* Pagination */
.pagination {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
  text-align: center; font-size: 13px;
}
.pagination a, .pagination span {
  display: inline-block; padding: 8px 14px; margin: 0 2px;
  border: 1px solid var(--border); border-radius: 4px;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  color: var(--text-secondary); transition: all 0.2s;
}
.pagination a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ========================================
   404 PAGE
   ======================================== */
.error-page {
  padding: 200px 0 120px; text-align: center;
}
.error-heading {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  letter-spacing: -1px; margin-bottom: 12px;
}
.error-desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 36px; }
.error-actions { margin-bottom: 48px; }
.error-search { max-width: 400px; margin: 0 auto; }

/* ========================================
   SEARCH
   ======================================== */
.search-bar { margin-bottom: 48px; }
.search-form {
  display: flex; gap: 8px; max-width: 480px;
}
.search-input {
  flex: 1; padding: 12px 16px; font-family: var(--font); font-size: 13px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-card);
  color: var(--text); outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--text-muted); }
.search-input::placeholder { color: var(--text-faint); }
.search-submit { white-space: nowrap; }

/* ========================================
   COMMENTS
   ======================================== */
.comments-area { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.comments-title { font-size: 20px; font-weight: 700; margin-bottom: 32px; }
.comment-list { margin-bottom: 48px; }
.comment-list li { margin-bottom: 0; }
.comment-item { padding: 24px 0; border-bottom: 1px solid var(--border-light); }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-header img { border-radius: 50%; }
.comment-author { font-size: 14px; font-weight: 700; }
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-body p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.comment-reply-link {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-top: 8px; display: inline-block; transition: color 0.2s;
}
.comment-reply-link:hover { color: var(--text); }

/* Comment form */
.comment-respond { margin-top: 48px; }
.comment-reply-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 16px; font-family: var(--font); font-size: 13px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-card);
  color: var(--text); outline: none; transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--text-muted); }
.comment-form textarea { min-height: 140px; resize: vertical; }

/* ========================================
   PAGE TEMPLATE (generic)
   ======================================== */
.page-content { padding-top: 120px; padding-bottom: 80px; max-width: 720px; margin: 0 auto; }
.page-content .section-heading { margin-bottom: 32px; }
.page-content .entry-content p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.page-content .entry-content h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; }
.page-content .entry-content h3 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; }
.page-content .entry-content img { max-width: 100%; border-radius: 6px; margin: 24px 0; }
.page-content .entry-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ========================================
   SIDEBAR / WIDGETS
   ======================================== */
.sidebar { padding-top: 120px; }
.widget { margin-bottom: 40px; }
.widget-title { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--border-light); }
.widget li a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.widget li a:hover { color: var(--text); }

/* ========================================
   GUTENBERG BLOCK SPACING OVERRIDES
   ======================================== */
/* Kill all default WP block vertical margins on the front page */
.entry-content > * { margin-top: 4px; margin-bottom: 4px; }
.entry-content > .wp-block-group + .wp-block-separator,
.entry-content > .wp-block-separator + .wp-block-group { margin: 4px; }

/* Separator: zero margin, thin line only */
.wp-block-separator,
.wp-block-separator.section-border,
.entry-content .wp-block-separator,
hr.wp-block-separator {
  margin: 1px !important;
  padding: 1px !important;
  border: none !important;
  border-top: 1px solid var(--border) !important;
  height: 0 !important;
  max-width: 100%;
  opacity: 1;
}

/* WP group blocks inside entry-content */
.entry-content .wp-block-group {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* WP columns inside sections */
.section .wp-block-columns {
  margin-top: 4px;
  margin-bottom: 4px;
  gap: 4px;
}
.section .wp-block-column {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* WP headings and paragraphs inside sections */
.section .wp-block-heading {
  margin-top: 4px;
  margin-bottom: 4px;
}
.section > p,
.section .wp-block-group > p {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* WP buttons block */
.entry-content .wp-block-buttons {
  margin-top: 4px;
  margin-bottom: 4px;
}
.entry-content .wp-block-button {
  margin: 4px;
}

/* Partner logo grid */
.partner-grid {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  align-items: center;
  gap: 2rem;
}
.partner-logo { text-align: center; }
.partner-img { margin: 0; }
.partner-img img {
  max-height: 40px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-logo:hover .partner-img img { filter: grayscale(0%); opacity: 1; }

/* Hide broken/empty image placeholders */
.wp-block-image img[src=""],
.wp-block-image img:not([src]),
figure.wp-block-image:empty {
  display: none;
}


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .stats-bar { flex-direction: column; gap: 28px; }
  .problem-row { grid-template-columns: 1fr; gap: 4px; }
  .pipeline-grid, .core-grid, .model-row { grid-template-columns: 1fr; }
  .products-row { grid-template-columns: 1fr; }
  .verticals-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 12px 0; }
  .hero { padding: 10px 0 10px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .product-card { padding: 32px 24px; }
  .thesis { padding: 10px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .post-navigation { flex-direction: column; gap: 20px; }
  .nav-next { text-align: left; }
  .nav-prev, .nav-next { max-width: 100%; }
  .error-page { padding: 140px 0 80px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
