/*
Theme Name: Animus Engine
Theme URI: https://animusengine.io
Author: Animus Engine
Author URI: https://animusengine.io
Description: Editorial serif marketing theme for Animus Engine — AI consulting and marketing. Warm paper canvas, Source Serif 4 display type, single sienna accent, live hero demo.
Version: 1.3.1
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: animus-engine
*/

body { margin: 0; background: #ffffff; color: #17191c; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #17191c; text-decoration: none; }
a:hover { color: #17191c; text-decoration: underline; }
img { max-width: 100%; height: auto; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes flowPulse { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(72px); opacity: 0; } }

/* hover states (replaces inline style-hover) */
.ae-btn-dark:hover { background: #2a2d33 !important; text-decoration: none !important; color: #ffffff !important; }
.ae-btn-ghost:hover { background: #f2f2f3 !important; text-decoration: none !important; }
.ae-btn-ghost-white:hover { background: #ffffff !important; text-decoration: none !important; }
.ae-brand:hover { text-decoration: none !important; }
.ae-tile { transition: translate 0.25s ease; }
.ae-tile:hover { translate: 0 -3px; }

@media (max-width: 640px) {
  [data-panel-grid] { grid-template-columns: 1fr !important; }
  [data-panel-steps] { border-right: 0 !important; border-bottom: 1px solid #ececec; }
  [data-nav-links] { display: none !important; }
  [data-two-col] { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  [data-three-col] { grid-template-columns: 1fr !important; }
  [data-two-col] { grid-template-columns: 1fr !important; }
  [data-bento] { grid-template-columns: 1fr !important; }
  [data-bento] > div { grid-row: auto !important; }
  [data-flow-grid] { grid-template-columns: 1fr !important; }
  [data-flow-connector] { display: none !important; }
  [data-demo-rail] { display: none !important; }
  [data-demo-grid] { grid-template-columns: 1fr !important; }
  [data-split] { grid-template-columns: 1fr !important; }
  [data-contact-cols] { grid-template-columns: 1fr !important; }
}
@media (max-width: 1020px) {
  [data-hero-cols] { grid-template-columns: 1fr !important; gap: 32px !important; }
  [data-hero-cols] > div:first-child { text-align: center; }
  [data-hero-cols] > div:first-child > div { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Blog */
.ae-post-row:hover { text-decoration: none !important; }
.ae-post-row:hover [style*="Source Serif"] { text-decoration: underline; text-decoration-color: #c05b38; text-underline-offset: 3px; }
@keyframes settle { 0% { transform: scale(0.8); opacity: 0; } 55% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 900px) {
  .ae-post-row { grid-template-columns: 1fr !important; }
  .ae-row-img { display: none !important; }
}
/* Article typography (single.php content) */
.ae-article p { margin: 0 0 28px; }
.ae-article h2 { font-weight: 600; font-size: 30px; line-height: 1.2; letter-spacing: -0.015em; margin: 48px 0 18px; font-family: 'Source Serif 4', Georgia, serif; }
.ae-article h3 { font-weight: 600; font-size: 24px; margin: 36px 0 14px; font-family: 'Source Serif 4', Georgia, serif; }
.ae-article a { text-decoration: underline; text-underline-offset: 3px; }
.ae-article a:hover { text-decoration-color: #c05b38; }
.ae-article blockquote { margin: 44px 0; padding: 0 0 0 28px; font-style: italic; font-size: 26px; line-height: 1.45; letter-spacing: -0.01em; border-left: 2px solid #c05b38; }
.ae-article img { border-radius: 12px; }
.ae-article ul, .ae-article ol { margin: 0 0 28px; padding-left: 28px; }
.ae-article li { margin-bottom: 10px; }
.ae-article figure.wp-block-table { overflow-x: auto; }
.ae-article table { width: 100%; border-collapse: collapse; font-family: 'IBM Plex Mono', monospace; font-size: 14px; margin: 40px 0; border-top: 2px solid #17191c; }
.ae-article th, .ae-article td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid #ecebe7; }
.ae-article figcaption { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #6b6f78; margin-top: 10px; }

/* Services dropdown */
.ae-dd { position: relative; }
.ae-dd-panel { display: none; position: absolute; top: calc(100% + 10px); left: -16px; background: #17191c; border-radius: 12px; padding: 8px; min-width: 240px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 8px 10px -6px rgba(0,0,0,0.15); }
.ae-dd:hover .ae-dd-panel, .ae-dd:focus-within .ae-dd-panel { display: block; animation: ddIn 0.16s ease; }
.ae-dd-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.04em; color: #ffffff !important; text-decoration: none; }
.ae-dd-item:hover { background: rgba(255,255,255,0.07); text-decoration: underline; text-decoration-color: #c05b38; text-underline-offset: 3px; }
.ae-dd-item .tick-core { fill: transparent; transition: fill 0.15s; }
.ae-dd-item:hover .tick-core { fill: #c05b38; }
@keyframes ddIn { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 900px) {
  [data-cadence] { grid-template-columns: 1fr !important; }
  [data-cadence-arrow] { transform: rotate(90deg); margin: -6px auto; }
}

/* Fractional CMO essay page */
.ae-prose p { margin: 0 0 26px; }
.ae-prose strong { font-weight: 600; }
.ae-h2 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.18; letter-spacing: -0.015em; margin: 72px 0 24px; }

/* ---------------------------------------------------------------------------
   Blog sidebar (v1.3.0)
   BREAKPOINT CONTRACT:
     >1152px      two columns, article measure held at 720px, sidebar STICKY
     1021-1152px  two columns, article column flexes down, sidebar STATIC
     <=1020px     single column, sidebar stacks AFTER the article; the
                  in-article CTA is the early surface at these widths
   Measures preserved from v1.2.0: 720px article, 880px archive rows.
   --------------------------------------------------------------------------*/
.ae-shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.ae-cols { display: grid; align-items: start; gap: 48px; padding: 72px 0 0; }
.ae-cols--post { grid-template-columns: minmax(0, 720px) 320px; justify-content: space-between; }
.ae-cols--archive { grid-template-columns: minmax(0, 1fr) 320px; }
.ae-col-main { min-width: 0; }
.ae-sidebar { position: sticky; top: 96px; min-width: 0; }

.ae-side-head { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: #979799; }
.ae-side-btn:hover { background: #f2f0ec !important; text-decoration: none !important; color: #17191c !important; }
.ae-side-btn:focus-visible,
.ae-toc-list a:focus-visible,
.ae-side-cats summary:focus-visible,
.ae-cat-list a:focus-visible,
.ae-inline-cta-btn:focus-visible { outline: 2px solid #c05b38; outline-offset: 3px; }

/* Table of contents - stays hidden until sidebar-toc.js finds headings */
.ae-toc { display: none; margin-top: 28px; border-top: 1px solid #e4e2de; padding-top: 18px; }
.ae-toc.is-populated { display: block; }
.ae-toc .ae-side-head { display: block; margin-bottom: 12px; }
.ae-toc-list { list-style: none; margin: 0; padding: 0; max-height: 216px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d8d5d0 transparent; }
.ae-toc-list::-webkit-scrollbar { width: 4px; }
.ae-toc-list::-webkit-scrollbar-thumb { background: #d8d5d0; border-radius: 2px; }
.ae-toc-list li { margin: 0; }
.ae-toc-list a { display: block; font-size: 14px; line-height: 1.35; color: #777b86; padding: 6px 0 6px 14px; border-left: 2px solid #ecebe7; text-decoration: none; }
.ae-toc-list a:hover { color: #17191c; text-decoration: none; }
.ae-toc-list a.is-active { color: #17191c; border-left-color: #c05b38; }
.ae-toc-list li.is-h3 a { padding-left: 28px; font-size: 13px; }

/* Categories - collapsed by default */
.ae-side-cats { margin-top: 28px; border-top: 1px solid #e4e2de; padding-top: 18px; }
.ae-side-cats summary { cursor: pointer; list-style: none; display: block; }
.ae-side-cats summary::-webkit-details-marker { display: none; }
.ae-side-cats summary::after { content: ' +'; }
.ae-side-cats[open] summary::after { content: ' \2212'; }
.ae-cat-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ae-cat-list li { margin: 0; }
.ae-cat-list a { display: block; font-size: 15px; line-height: 1.4; color: #777b86; padding: 5px 0; text-decoration: none; }
.ae-cat-list a:hover { color: #17191c; text-decoration: underline; text-decoration-color: #c05b38; text-underline-offset: 3px; }

/* In-article book CTA - the mobile-primary surface (placement blog-inline-book) */
.ae-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 40px 0; padding: 22px 24px; border: 1px solid #e4e2de; border-left: 3px solid #c05b38; border-radius: 14px; background: #faf9f7; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }
.ae-inline-cta-copy { flex: 1 1 260px; min-width: 0; }
.ae-inline-cta .ae-inline-cta-title { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.25; color: #17191c; margin: 0 0 6px; }
.ae-inline-cta .ae-inline-cta-sub { font-size: 15px; line-height: 1.5; color: #777b86; margin: 0; }
.ae-inline-cta .ae-inline-cta-btn { flex: 0 0 auto; display: inline-block; background: #17191c; color: #ffffff; border-radius: 9999px; padding: 11px 22px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.ae-inline-cta .ae-inline-cta-btn:hover { background: #2a2d33; color: #ffffff; text-decoration: none; }

@media (max-width: 1152px) {
  .ae-cols--post { grid-template-columns: minmax(0, 1fr) 320px; justify-content: normal; }
  .ae-sidebar { position: static; }
}
@media (max-width: 1020px) {
  .ae-cols, .ae-cols--post, .ae-cols--archive { grid-template-columns: 1fr; gap: 44px; }
  .ae-sidebar { position: static; }
  .ae-cols--post > * { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
  .ae-cols--archive > * { width: 100%; max-width: 880px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .ae-inline-cta { padding: 20px; }
  .ae-inline-cta .ae-inline-cta-btn { width: 100%; text-align: center; }
}
