/*
Theme Name: AI ThinkLab
Theme URI: https://aitl.ai/
Author: AI ThinkLab (OPC) Private Limited
Author URI: https://aitl.ai/
Description: A dark, deep-tech WordPress theme built for AI ThinkLab (aitl.ai), an independent AI R&D lab — software optimisation on hardware accelerators (Arm NEON/SVE, DSP, GPU, NPU), computer-vision engines, neural-network optimisation and edge-AI deployment. Includes a one-click content installer, customizer-driven homepage, capability/case-study post types and a full set of technical section shortcodes.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-thinklab
Tags: technology, business, dark, one-column, custom-logo, custom-menu, featured-images, blog, translation-ready
*/

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
  --bg:            #070a0f;
  --bg-alt:        #0b1119;
  --surface:       #0e141d;
  --surface-2:     #131c27;
  --line:          rgba(148, 173, 204, 0.14);
  --line-strong:   rgba(148, 173, 204, 0.28);

  --text:          #e9eff7;
  --text-muted:    #93a3b8;
  --text-dim:      #64748b;

  --accent:        #00e5c7;
  --accent-2:      #6e8bff;
  --accent-3:      #ffb454;
  --brand-orange:  #ff8a2b;
  --brand-orange-soft: rgba(255, 138, 43, 0.13);
  --accent-soft:   rgba(0, 229, 199, 0.12);
  --accent-line:   rgba(0, 229, 199, 0.34);

  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;

  --font:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:          "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap:          1180px;
  --wrap-narrow:   760px;
  --gutter:        clamp(20px, 5vw, 48px);

  --shadow:        0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   2. Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #6cf5e2; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .55em;
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 650;
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.3vw, 3.85rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.7rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.18rem, 1.02rem + 0.6vw, 1.42rem); }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

code, kbd, pre, samp { font-family: var(--mono); font-size: .9em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12em .42em;
  color: var(--accent);
}
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  overflow-x: auto;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; color: var(--text); }

blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 1.08rem;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #fff; font-weight: 600; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

::selection { background: var(--accent); color: #04211d; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--accent); color: #04211d; padding: 10px 18px;
  border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #04211d; }

/* =========================================================================
   3. Layout primitives
   ========================================================================= */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(64px, 8vw, 118px) 0; position: relative; }
.section--tight { padding: clamp(48px, 5vw, 74px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Eyebrow / section heading */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent-line); flex: none;
}
.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 56px); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); color: var(--text-muted); }

/* =========================================================================
   4. Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  text-align: center;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: #04211d;
  box-shadow: 0 10px 30px -12px rgba(0, 229, 199, .55);
}
.btn--primary:hover { background: #4ff0d9; color: #04211d; box-shadow: 0 16px 38px -12px rgba(0, 229, 199, .7); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent-line); color: #fff; background: var(--accent-soft); }
.btn--sm { padding: 9px 17px; font-size: .87rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

/* =========================================================================
   5. Header / navigation
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7, 10, 15, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(7, 10, 15, .92); }
.site-header__inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand:hover .brand__mark { filter: brightness(1.12); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 700; font-size: 1.06rem; color: #fff; letter-spacing: -.02em; }
.brand__ai { color: var(--brand-orange); }
.brand__tag { font-family: var(--mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.brand img.custom-logo { max-height: 40px; width: auto; }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav li { margin: 0; position: relative; }
.nav a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: var(--text-muted); font-size: .935rem; font-weight: 500;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: #fff; }
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after {
  content: ""; display: block; height: 2px; width: 18px;
  background: var(--accent); border-radius: 2px; margin: 5px auto -4px;
}
/* dropdowns */
.nav ul ul {
  position: absolute; top: calc(100% + 8px); left: 0;
  display: block; min-width: 226px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease);
  flex-direction: column; align-items: stretch;
}
.nav li:hover > ul, .nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav ul ul a { padding: 9px 12px; font-size: .9rem; }

.header-cta { flex: none; }
@media (max-width: 1080px) { .header-cta { display: none; } }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .32s var(--ease);
  }
  .nav.is-open { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 26px; }
  .nav a { padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .current-menu-item > a::after, .nav .current_page_item > a::after { display: none; }
  .nav ul ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0;
  }
}

/* =========================================================================
   6. Hero
   ========================================================================= */
.hero { position: relative; padding: clamp(48px, 6vw, 92px) 0 clamp(52px, 6vw, 88px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(0, 229, 199, .17), transparent 62%),
    radial-gradient(760px 420px at 6% 8%, rgba(110, 139, 255, .14), transparent 60%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(148,173,204,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,173,204,.06) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(closest-side at 50% 30%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 30%, #000 45%, transparent 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero__badge b { background: var(--brand-orange); color: #2a1400; border-radius: 999px; padding: 3px 8px; font-weight: 700; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: clamp(1.04rem, .98rem + .45vw, 1.24rem); color: var(--text-muted); max-width: 60ch; }

/* Terminal / profile card visual */
.termcard {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.termcard__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.termcard__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.termcard__dot:first-child { background: #ff5f57; }
.termcard__dot:nth-child(2) { background: #febc2e; }
.termcard__dot:nth-child(3) { background: #28c840; }
.termcard__title { font-family: var(--mono); font-size: .74rem; color: var(--text-dim); margin-left: 8px; }
.termcard__body { padding: 20px 22px 24px; font-family: var(--mono); font-size: .8rem; line-height: 1.85; }
.termcard__body .c-dim { color: var(--text-dim); }
.termcard__body .c-key { color: var(--accent-2); }
.termcard__body .c-ok  { color: var(--accent); }
.termcard__body .c-warn{ color: var(--accent-3); }

/* speed bars */
.speedbar { margin-top: 16px; }
.speedbar__row { display: grid; grid-template-columns: 92px 1fr 60px; align-items: center; gap: 12px; margin-bottom: 9px; }
.speedbar__label { font-family: var(--mono); font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.speedbar__track { display: block; height: 7px; border-radius: 99px; background: rgba(148,173,204,.12); overflow: hidden; }
.speedbar__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); width: 0; transition: width 1.1s var(--ease); }
.speedbar__row--base .speedbar__fill { background: rgba(148,173,204,.4); }
.speedbar__val { font-family: var(--mono); font-size: .74rem; color: var(--text); text-align: right; }

/* =========================================================================
   7. Metric strip
   ========================================================================= */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 780px) { .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.metric { background: var(--bg-alt); padding: 26px 22px; }
.metric__num { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.35rem); font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.metric__num span { color: var(--accent); }
.metric__label { font-size: .87rem; color: var(--text-muted); }

/* =========================================================================
   8. Cards
   ========================================================================= */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--surface-2); }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent);
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 9px; font-size: 1.12rem; }
.card p { color: var(--text-muted); font-size: .945rem; margin-bottom: 0; }
.card > p:not(:last-child) { margin-bottom: 16px; }
.card__meta {
  margin-top: auto;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); padding-top: 14px; border-top: 1px solid var(--line);
}
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .9rem; font-weight: 600; }
a.card { color: inherit; }
a.card:hover { color: inherit; }

/* numbered process steps */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg-alt); padding: 26px 26px 28px; counter-increment: step; position: relative; }
.step::before {
  content: "0" counter(step);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .93rem; margin-bottom: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1040px) { .steps--5 { grid-template-columns: repeat(5, minmax(0,1fr)); } }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  color: var(--text-muted); font-size: .97rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 15px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--text); font-weight: 600; }

/* chip / tag cloud */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--text-muted);
  transition: .18s var(--ease);
}
.chip:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* stack table */
.stack-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stack-group + .stack-group { margin-top: 16px; }
.stack-group__head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.stack-group__head h3 { margin: 0; font-size: 1.02rem; }
.stack-group__head span { font-family: var(--mono); font-size: .74rem; color: var(--text-dim); }
.stack-group__body { padding: 20px 22px 22px; }

/* two-column feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 62px); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* quote / callout */
.callout {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius); padding: 24px 26px;
}
.callout p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(600px 260px at 50% 0%, rgba(0,229,199,.16), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* logo / marquee strip */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.trust span { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

/* =========================================================================
   9. Page & post content
   ========================================================================= */
.page-hero { padding: clamp(58px, 7vw, 96px) 0 clamp(30px, 4vw, 46px); position: relative; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background: radial-gradient(800px 380px at 20% -20%, rgba(110,139,255,.16), transparent 60%); pointer-events: none; }
.page-hero__inner { position: relative; max-width: 780px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { margin-bottom: 0; }

.breadcrumbs { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 2.1em; }
.entry-content h3 { margin-top: 1.7em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul li, .entry-content ol li { color: var(--text-muted); }
.entry-content .wp-block-image { margin: 2em 0; }
.entry-content img { border-radius: var(--radius); border: 1px solid var(--line); }
.entry-content figcaption { font-size: .85rem; color: var(--text-dim); text-align: center; margin-top: 10px; }

/* blog list */
.post-card { display: flex; flex-direction: column; }
.post-card__thumb { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.post-card__date { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card p { color: var(--text-muted); font-size: .93rem; }

.post-meta { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; color: var(--text-muted); font-size: .9rem;
}
.pagination .page-numbers:hover { border-color: var(--accent-line); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #04211d; font-weight: 600; }

/* =========================================================================
   10. Forms
   ========================================================================= */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: .97rem;
  padding: 12px 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(0,229,199,.12);
}
::placeholder { color: var(--text-dim); }
textarea { min-height: 148px; resize: vertical; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
input[type="submit"], button[type="submit"] {
  background: var(--accent); color: #04211d; border: 0; border-radius: 999px;
  padding: 13px 28px; font-weight: 600; font-size: .95rem; font-family: inherit; cursor: pointer;
  transition: .18s var(--ease);
}
input[type="submit"]:hover, button[type="submit"]:hover { background: #4ff0d9; transform: translateY(-2px); }

.form-note { font-size: .84rem; color: var(--text-dim); }
.form-status { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .93rem; }
.form-status--ok { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.form-status--err { background: rgba(255,95,87,.1); border: 1px solid rgba(255,95,87,.35); color: #ff8f89; }

/* =========================================================================
   11. Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: clamp(48px, 6vw, 76px) 0 34px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: .93rem; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { color: var(--text-muted); font-size: .92rem; max-width: 40ch; }
.footer-about .brand { margin-bottom: 16px; }
.footer-legal {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .84rem; color: var(--text-dim);
}
.footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--accent); }
.socials { display: flex; gap: 9px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-muted);
}
.socials a:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.socials svg { width: 17px; height: 17px; }

/* =========================================================================
   12. Reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* =========================================================================
   13. WordPress core classes
   ========================================================================= */
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: min(1180px, 92vw); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.wp-block-button__link { border-radius: 999px; background: var(--accent); color: #04211d; font-weight: 600; }
.wp-block-separator { border-color: var(--line); }
.wp-block-quote { border-left: 3px solid var(--accent); padding-left: 24px; }
.wp-block-table td, .wp-block-table th { border-color: var(--line); }

/* admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* =========================================================================
   14. Print
   ========================================================================= */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  a { color: #111; text-decoration: underline; }
  h1, h2, h3 { color: #000; }
}

/* =========================================================================
   15. Components added by shortcodes & inner templates
   ========================================================================= */

/* Readable measure for prose inside pages and posts, while letting the
   designed shortcode sections span the full container. */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > blockquote,
.entry-content > .wp-block-paragraph,
.entry-content > .wp-block-heading,
.entry-content > .wp-block-list { max-width: 74ch; }
.wrap--narrow .entry-content > * { max-width: 100%; }

.entry-content > .grid,
.entry-content > .steps,
.entry-content > .metrics,
.entry-content > .cta-band,
.entry-content > .stack-group,
.entry-content > .faq,
.entry-content > .section-head { margin-block: 2.6rem; }
.entry-content > .section-head { margin-bottom: 1.6rem; }

.page-thumb { margin: 0 0 2.6rem; }

/* FAQ ------------------------------------------------------------------ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 600; color: #fff; font-size: 1.02rem;
  display: flex; align-items: flex-start; gap: 14px;
  transition: background .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; font-family: var(--mono); color: var(--accent);
  font-size: 1.15rem; line-height: 1.3; flex: none; transition: transform .2s var(--ease);
}
.faq__item[open] summary::before { content: "\2212"; }
.faq summary:hover { background: rgba(255,255,255,.025); }
.faq__a { padding: 0 24px 22px 52px; color: var(--text-muted); font-size: .97rem; }
.faq__a p { max-width: 78ch; }

/* Contact details ------------------------------------------------------ */
.contact-list { display: grid; gap: 18px; }
.contact-list__row { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__row .card__icon { margin-bottom: 0; flex: none; }
.contact-list__row h4 { margin: 0 0 4px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.contact-list__row p, .contact-list__row a { margin: 0; font-size: .97rem; color: var(--text); }
.contact-list__row a:hover { color: var(--accent); }

/* Contact form --------------------------------------------------------- */
.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
}
.contact-form h3 { margin-bottom: 20px; }
.aitl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Post navigation ------------------------------------------------------ */
.post-nav { display: grid; gap: 12px; margin-top: 3rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav__link {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  color: var(--text); font-weight: 600; font-size: .96rem; transition: .18s var(--ease);
}
.post-nav__link:hover { border-color: var(--accent-line); color: #fff; background: var(--surface); }
.post-nav__link span {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 400; margin-bottom: 6px;
}
.post-nav__link--next { text-align: right; }

/* Footer legal menu ---------------------------------------------------- */
.legal-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.legal-menu li { margin: 0; }
.legal-menu a { color: var(--text-dim); font-size: .84rem; }
.legal-menu a:hover { color: var(--accent); }

/* Comments ------------------------------------------------------------- */
.comments { margin-top: 3.4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 2.4rem; }
.comment-list ol.children { list-style: none; padding-left: 26px; }
.comment-body {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px; background: var(--surface);
}
.comment-meta { font-size: .84rem; color: var(--text-dim); margin-bottom: 10px; }
.comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }
.comment-reply-link { font-size: .86rem; font-weight: 600; }
.comment-form label { margin-top: 12px; }

/* Search form ---------------------------------------------------------- */
.search-form button[type="submit"] { flex: none; }

/* Widget --------------------------------------------------------------- */
.widget-title { margin-bottom: 12px; }

/* =========================================================================
   16. Benchmark table
   ========================================================================= */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bench { margin: 0; min-width: 720px; font-size: .92rem; }
.bench th {
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.bench td { border-bottom: 1px solid var(--line); white-space: nowrap; }
.bench tbody tr:last-child td { border-bottom: 0; }
.bench td:first-child { font-weight: 600; color: #fff; white-space: normal; }
.bench td:nth-child(4), .bench td:nth-child(5) { font-family: var(--mono); color: var(--accent); }
.bench td:nth-child(6) { font-family: var(--mono); color: var(--text-muted); }
.entry-content > .table-scroll { margin-block: 2.6rem; }
.callout .btn { margin-top: 4px; }

/* =========================================================================
   17. Solution blocks
   ========================================================================= */
.solution {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .22s var(--ease);
}
.solution + .solution { margin-top: 20px; }
.solution:hover { border-color: var(--accent-line); }
.solution__head {
  display: flex; gap: 16px; align-items: center;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.solution__head .card__icon { margin-bottom: 0; flex: none; }
.solution__head h3 { margin: 0 0 3px; font-size: 1.16rem; }
.solution__tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-orange);
}
.solution__body { padding: 24px 26px 26px; }
.solution__lede { color: var(--text-muted); max-width: 74ch; margin-bottom: 20px; }
.solution__body .checklist { margin-bottom: 0; }
.solution__body .checklist li { font-size: .94rem; }
.solution__meta {
  padding: 14px 26px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}
.entry-content > .solution { margin-block: 20px; }
.entry-content > .solution:first-of-type { margin-top: 2.6rem; }
